diff --git a/public/appmini/old/wechat/app.js b/public/appmini/old/wechat/app.js index db3443d15f9cf74e06f21d4f8505dda73137b07c..7bdfea8e546f39a9933c675fdea36b45f621c7f1 100755 --- a/public/appmini/old/wechat/app.js +++ b/public/appmini/old/wechat/app.js @@ -181,23 +181,6 @@ App({ ); }, - /** - * 获取平台用户信息 - * object 回调操作对象 - * method 回调操作对象的函数 - * return 有用户数据直接返回, 则回调调用者 - */ - get_user_info(object, method) { - var user = this.get_user_cache_info(); - if (user == false) { - // 唤醒用户授权 - this.user_auth_code(object, method); - - return false; - } - return user; - }, - /** * 从缓存获取用户信息 */ @@ -209,50 +192,13 @@ App({ return user; }, - /** - * 用户授权 - * object 回调操作对象 - * method 回调操作对象的函数 - */ - user_auth_code(object, method) { - // 加载loding - wx.showLoading({ title: '授权中...' }); - var $this = this; - - // 请求授权接口 - wx.getSetting({ - success(res) { - if (!res.authSetting['scope.userInfo']) { - wx.navigateTo({ - url: "/pages/login/login" - }); - // wx.authorize({ - // scope: 'scope.userInfo', - // success() { - // $this.user_auth_login(object, method); - // }, - // fail: (e) => { - // wx.hideLoading(); - // $this.showToast('授权失败'); - // } - // }); - } else { - $this.user_auth_login(object, method); - } - }, - fail: (e) => { - wx.hideLoading(); - $this.showToast('授权校验失败'); - } - }); - }, - /** * 用户登录 * object 回调操作对象 * method 回调操作对象的函数 */ user_auth_login(object, method) { + wx.showLoading({ title: "授权中..." }); var $this = this; wx.checkSession({ success: function () { diff --git a/public/appmini/old/wechat/app.wxss b/public/appmini/old/wechat/app.wxss index 69bb3c3023b1bf0d5055ae440b4b8f8702496e53..2f98590156d1fa78aa6c3ab0990272e46e4aa260 100755 --- a/public/appmini/old/wechat/app.wxss +++ b/public/appmini/old/wechat/app.wxss @@ -120,20 +120,20 @@ textarea { .my-btn-default{ font-size: 38rpx; - color: #fff; - border: none; - background-color:#d2364c; + color: #fff !important; + border: none !important; + background-color:#d2364c !important; border-radius: 2px; } .my-btn-default.btn-disabled{ - background-color: #a6a6a6; - color: #fff; + background-color: #a6a6a6 !important; + color: #fff !important; } .my-btn-gray{ font-size: 30rpx; - color: #fff; - border: none; - background-color:#a6a6a6; + color: #fff !important; + border: none !important; + background-color:#a6a6a6 !important; border-radius: 2px; } @@ -240,7 +240,7 @@ textarea { background-color: #ed6977 !important; } .bg-warning { - background-color: #F37B1D !important; + background-color: #F37B1D !important; } .bg-active-main { background-color: #d2364c !important; diff --git a/public/appmini/old/wechat/pages/buy/buy.wxml b/public/appmini/old/wechat/pages/buy/buy.wxml index 64dec6fcaf55ec282d78041a0ede70bd6a9abd89..86ba920c7d03c2dd16b416afbd79e48cd4d299c5 100755 --- a/public/appmini/old/wechat/pages/buy/buy.wxml +++ b/public/appmini/old/wechat/pages/buy/buy.wxml @@ -42,7 +42,7 @@ -