diff --git a/api/model/login.js b/api/model/login.js index c818a04..ffaa447 100644 --- a/api/model/login.js +++ b/api/model/login.js @@ -5,14 +5,14 @@ const api = { // 微信登录接口 wxLogin: { - url: '/login_common/appletLogin', + url: '/login/login', method: 'GET', limit : 500, showLoading : true, }, // 获取绑定手机号码 bindPhone: { - url: '/login_common/bindPhone', + url: '/login/bindPhone', method: 'GET', auth: true, }, diff --git a/config.js b/config.js index 8ece511..139623a 100644 --- a/config.js +++ b/config.js @@ -15,7 +15,7 @@ const config = { baseUrl: 'http://h5.xzaiyp.top/jewelry-admin', }, prod: { - baseUrl: 'https://jewelry-admin.hhlm1688.com/jewelry-admin', + baseUrl: 'http://augcl.natapp1.cc/massage-admin/massage', } } diff --git a/manifest.json b/manifest.json index dc7e3c5..5fddb89 100644 --- a/manifest.json +++ b/manifest.json @@ -52,9 +52,10 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx28679cb649907e7e", + "appid" : "wx77ba4c7131677a74", "setting" : { - "urlCheck" : false + "urlCheck" : false, + "minified" : true }, "usingComponents" : true, "permission" : {}, diff --git a/pages/index/index.vue b/pages/index/index.vue index 2708143..f98e0b8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -144,6 +144,13 @@ } }, onShow() { + // 临时改一下 + if (!uni.getStorageSync('token')) { + uni.navigateTo({ + url: '/pages_order/auth/wxLogin' + }) + } + this.getBanner() this.getRiceNoticeList() this.getRiceIconList() diff --git a/pages_order/auth/agreementModal.vue b/pages_order/auth/agreementModal.vue new file mode 100644 index 0000000..81d273c --- /dev/null +++ b/pages_order/auth/agreementModal.vue @@ -0,0 +1,99 @@ + + + + + \ No newline at end of file diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue index b6e80c7..832f246 100644 --- a/pages_order/auth/wxLogin.vue +++ b/pages_order/auth/wxLogin.vue @@ -1,139 +1,144 @@ diff --git a/pages_order/auth/wxUserInfo.vue b/pages_order/auth/wxUserInfo.vue index fa13612..9f866b3 100644 --- a/pages_order/auth/wxUserInfo.vue +++ b/pages_order/auth/wxUserInfo.vue @@ -1,62 +1,73 @@