修复登录页面重复调用token导致token失效的bug

This commit is contained in:
唐明明
2022-06-15 16:07:25 +08:00
parent fe178cc98c
commit 7d8b0994f5
127 changed files with 167 additions and 31 deletions

View File

@@ -45,9 +45,6 @@
isShowParent: false
};
},
mounted() {
this.$store.commit('setToken', '')
},
methods: {
// 获取验证码
getPhoneCode() {

View File

@@ -87,7 +87,7 @@
<image src="../../static/life/icon_04.png" mode="widthFix"></image>
我的订单
</view>
<view class="other-subtitle">{{order.all || '暂无订单'}}</view>
<view class="other-subtitle">{{order.all === 0 ? '暂无订单': '订单数量' + order.all}}</view>
<image class="other-back" src="../../static/life/icon_09.png"></image>
</view>
<!-- <view class="life-flex-item other" @click="onToast('共力好友暂未开放尽情期待')">

View File

@@ -87,21 +87,9 @@
refunds({
page: this.page
}).then(res => {
console.log(res)
if (res.page.current === 1) {
this.array = []
}
// let ordersArr = res.data.map(val => {
// return {
// no: val.order_no,
// cover: val.items[0].sku.cover,
// name: val.items[0].sku.goods_name,
// price: val.total,
// sum: val.items[0].qty,
// stateText: val.state,
// cans: val.can
// }
// })
}
uni.stopPullDownRefresh();
this.array = this.array.concat(res.data);
this.status = res.page.has_more ? 'loadmore' : 'nomore';