diff --git a/src/components/UnlockingDialog.wpy b/src/components/UnlockingDialog.wpy index ad3064f..5265fd4 100644 --- a/src/components/UnlockingDialog.wpy +++ b/src/components/UnlockingDialog.wpy @@ -215,6 +215,9 @@ import https from '../mixins/https' // that.getUserData() that.$emit('toUpdateCut') that.$Toast_success('支付成功') + let userInfo = wx.getStorageSync('userInfo') + userInfo.rank_id = 9 + wx.setStorageSync('userInfo', userInfo) }) }, fail: function (res) { diff --git a/src/pages/home/information.wpy b/src/pages/home/information.wpy index 7e703ea..5c65fef 100644 --- a/src/pages/home/information.wpy +++ b/src/pages/home/information.wpy @@ -1100,6 +1100,8 @@ wepy.page({ vm.throttle = true }).catch(() => { vm.throttle = true + }).finally(() => { + vm.throttle = true }) } }, @@ -1119,9 +1121,7 @@ wepy.page({ wx.navigateBack({delta: 1}) }, 1200) } - wx.hideLoading() }).catch(() => { - wx.hideLoading() }) } else if (res.cancel) { console.log('用户点击取消') @@ -1148,9 +1148,7 @@ wepy.page({ if (code == 0) { vm.$showToast('已标记') } - wx.hideLoading() }).catch(() => { - wx.hideLoading() }) } else if (res.cancel) { console.log('用户点击取消') @@ -1179,9 +1177,7 @@ wepy.page({ wx.navigateBack({delta: 1}) }, 1200) } - wx.hideLoading() }).catch(() => { - wx.hideLoading() }) } else if (res.cancel) { console.log('用户点击取消') @@ -1217,9 +1213,7 @@ wepy.page({ vm.$showToast(`已开启隐身访问`) vm.userInfo.other_info.hidden = true } - wx.hideLoading() }).catch(() => { - wx.hideLoading() }) }, // 发送打招呼消息 @@ -1243,10 +1237,10 @@ wepy.page({ } } vm.throttle = true - wx.hideLoading() }).catch(() => { vm.throttle = true - wx.hideLoading() + }).finally(() => { + vm.throttle = true }) } }, diff --git a/src/pages/users/selfTextarea.wpy b/src/pages/users/selfTextarea.wpy index c0ab316..cd38d3f 100644 --- a/src/pages/users/selfTextarea.wpy +++ b/src/pages/users/selfTextarea.wpy @@ -372,8 +372,21 @@ import base from '../../mixins/base' show: data.interest_label.includes(item) } }) + } else { + that.hobbiesList = that.hobbiesList.map(item => { + return { + title: item, + show: false + } + }) + that.customHobbiesList = that.customHobbiesList.map(item => { + return { + title: item, + show: false + } + }) } - + console.log(that.hobbiesList, 'that.hobbiesList=') try { // this.mate_conditon = data.mate_conditon let ageArr = data.mate_conditon.age.split('-', 2) diff --git a/src/pages/users/upgradeVIP.wpy b/src/pages/users/upgradeVIP.wpy index 8d233e1..e9f44df 100644 --- a/src/pages/users/upgradeVIP.wpy +++ b/src/pages/users/upgradeVIP.wpy @@ -382,6 +382,9 @@ that.$post({url: `${service.host}/order/${that.trade_no}/callback`}).then(({code, data}) => { that.getUserData() that.$Toast_success('支付成功') + let userInfo = wx.getStorageSync('userInfo') + userInfo.rank_id = 9 + wx.setStorageSync('userInfo', userInfo) }) }, fail: function (res) { diff --git a/src/pages/users/upgradeVIP2.wpy b/src/pages/users/upgradeVIP2.wpy index e9f7b36..3173782 100644 --- a/src/pages/users/upgradeVIP2.wpy +++ b/src/pages/users/upgradeVIP2.wpy @@ -438,6 +438,9 @@ that.$post({url: `${service.host}/order/${that.trade_no}/callback`}).then(({code, data}) => { that.getUserData() that.$Toast_success('支付成功') + let userInfo = wx.getStorageSync('userInfo') + userInfo.rank_id = 9 + wx.setStorageSync('userInfo', userInfo) }) }, fail: function (res) {