diff --git a/app/api/property.js b/app/api/property.js index a507d56..fc0f7af 100644 --- a/app/api/property.js +++ b/app/api/property.js @@ -217,3 +217,12 @@ export function getAdminInfoByUid() { ); } +// 绑定微信(对应后台 api/front/bindingWx) +export function bindingWx(data) { + return request.post('bindingWx', data, { useAdminUrl: true }); +} + +// 解绑微信(对应后台 api/front/unbindWx) +export function unbindWx(data) { + return request.post('unbindWx', data, { useAdminUrl: true }); +} diff --git a/app/libs/wechat.js b/app/libs/wechat.js index 77fcbff..db96e88 100644 --- a/app/libs/wechat.js +++ b/app/libs/wechat.js @@ -324,7 +324,7 @@ export default new AuthWechat(); */ export function wxGZHAuth() { return new Promise((resolve, reject) => { - const redirectUri = encodeURIComponent('https://www.fjyfzh.com/gzh-mp/gzh-login'); + const redirectUri = encodeURIComponent('https://fzbfwy.com/login'); const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx49d7d3aba9479a85&redirect_uri=${redirectUri}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`; uni.navigateTo({ diff --git a/app/pages/users/login/index.vue b/app/pages/users/login/index.vue index 037b30f..4e5458b 100644 --- a/app/pages/users/login/index.vue +++ b/app/pages/users/login/index.vue @@ -49,7 +49,7 @@