Commit 56cf9ad9 by 赵雅纹

update

parent abf8824a
...@@ -113,7 +113,7 @@ App({ ...@@ -113,7 +113,7 @@ App({
loginFirst: false, loginFirst: false,
imageUrl:"", //图片地址 imageUrl:"", //图片地址
isFullSucreen: false, // 当前设备是否为 FullSucreen isFullSucreen: false, // 当前设备是否为 FullSucreen
// brandId: 2005, brandId: 2005,
brandId: 1001, // brandId: 1001,
} }
}) })
...@@ -43,13 +43,6 @@ Component({ ...@@ -43,13 +43,6 @@ Component({
//立即兑换 //立即兑换
query() {}, query() {},
_getUserInfo(res = {}) { _getUserInfo(res = {}) {
if(!this.data.checkAll) {
wx.showToast({
title: '请同意会员规则',
icon: 'none'
})
return false
}
this.setData({ this.setData({
isAuthorization: false isAuthorization: false
}) })
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<view class='auth-shop'> <view class='auth-shop'>
广东7-Eleven申请获取授权,用于会员服务 广东7-Eleven申请获取授权,用于会员服务
</view> </view>
<button type='primary' bindgetuserinfo="_getUserInfo" open-type='getUserInfo' class='agree' >同意</button> <button type='primary' bindgetuserinfo="_getUserInfo" open-type='getUserInfo' class='agree' disabled='{{!checkAll}}'>同意</button>
<view class='rule-wrap'> <view class='rule-wrap'>
<view class='agree-rule'> <view class='agree-rule'>
<view class="agree-icon"><icon size="18" type="{{checkAll ? 'success' : 'circle'}}" bindtap="checkAll"></icon></view> <view class="agree-icon"><icon size="18" type="{{checkAll ? 'success' : 'circle'}}" bindtap="checkAll"></icon></view>
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<button type="primary" plain='false' bindtap="handleTtoActiveMemebr">激活立享会员特权</button> <button type="primary" plain='false' bindtap="handleTtoActiveMemebr">激活立享会员特权</button>
</view>--> </view>-->
<view wx:if='{{!memberActivateStatus}}' class="member-unActive"> <view wx:if='{{!memberActivateStatus}}' class="member-unActive" bindtap="handleTtoActiveMemebr">
<text class="un-active-btn" bindtap="handleTtoActiveMemebr">激活立享会员特权</text> <text class="un-active-btn" >激活立享会员特权</text>
</view> </view>
<view wx:if='{{memberActivateStatus}}' class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(' + baseUrl + ');'}}"> <view wx:if='{{memberActivateStatus}}' class="activation-content activation-bg {{true ? 'user-content' : ''}}" style="{{personData.backgroundImageUrl ? 'background-image: url('+ personData.backgroundImageUrl +');' : 'background-image: url(' + baseUrl + ');'}}">
......
const PROJECT_ENV = 'dev' // 生产 prod, 测试 dev, 预生产 pre const PROJECT_ENV = 'pre' // 生产 prod, 测试 dev, 预生产 pre
const needMock = '' // const needMock = '' //
// appid_dev_wx wxc3b64b09b1d3dfc2 // appid_dev_wx wxc3b64b09b1d3dfc2
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.6.6", "libVersion": "2.6.6",
"appid": "wxc3b64b09b1d3dfc2", "appid": "wx358b56af62edbde1",
"projectname": "7-Eleven", "projectname": "7-Eleven",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
......
...@@ -148,7 +148,7 @@ class Http { ...@@ -148,7 +148,7 @@ class Http {
content: '请求数据超时' content: '请求数据超时'
}) })
} }
if (error.msg && error.msg !='用户未登录'){ if (error.msg && error.msg !='该用户尚未登录'){
wx.showToast({ wx.showToast({
title: `${error.msg}`, title: `${error.msg}`,
icon: 'none' icon: 'none'
......
...@@ -48,7 +48,8 @@ class WXService extends Http { ...@@ -48,7 +48,8 @@ class WXService extends Http {
wx.hideLoading() wx.hideLoading()
}).catch(res => { }).catch(res => {
console.log(res) console.log(res)
if (res.msg === '用户未登录') { if (res.msg === '该用户尚未登录') {
wx.setStorageSync('token', '')
var _this = this var _this = this
let userInfo = wx.getStorageSync('_baseUserInfo') let userInfo = wx.getStorageSync('_baseUserInfo')
_this.login().then(result=>{ _this.login().then(result=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment