diff --git a/pages/my/my.vue b/pages/my/my.vue index 191108d..8e46126 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -70,8 +70,7 @@ tabBarVue, VNavigationBar }, - - onLoad(data) { + onShow(data) { this.getServer() }, data() { @@ -109,13 +108,8 @@ params:{} }) this.customInfo = res.data - uni.setStorageSync('customerInfo', JSON.stringify(this.customInfo)) - // JSON.parse(JSON.stringify(files)) - // const a = uni.getStorageSync('customerInfo') - // console.log(JSON.parse(a),115) - - - } + uni.setStorageSync('customerInfo', JSON.stringify(this.customInfo)) + } } } diff --git a/pages/my/myEquity.vue b/pages/my/myEquity.vue index ff2a87d..9a96832 100644 --- a/pages/my/myEquity.vue +++ b/pages/my/myEquity.vue @@ -80,7 +80,7 @@ levelEquityList: [] }; }, - onLoad(data) { + onShow(data) { //当前登录用户信息 this.customInfo = JSON.parse(uni.getStorageSync('customerInfo')) this.getMemberList() diff --git a/pages/my/myInfo.vue b/pages/my/myInfo.vue index 614921e..26791d5 100644 --- a/pages/my/myInfo.vue +++ b/pages/my/myInfo.vue @@ -37,7 +37,7 @@ customInfo:{} }; }, - onLoad(data) { + onShow(data) { //当前登录用户信息 this.customInfo = JSON.parse(uni.getStorageSync('customerInfo')) }, diff --git a/pages/orderList/orderList.vue b/pages/orderList/orderList.vue index 2429be5..7f0a7b5 100644 --- a/pages/orderList/orderList.vue +++ b/pages/orderList/orderList.vue @@ -37,9 +37,9 @@ {{ formatTimestamp(item.createTime) }} - 支付 - 查看订单 - 评价订单 + 支付 + 查看订单 + 评价订单 @@ -176,7 +176,7 @@ export default { async goPay(data) { let that = this await request({ - url: '/pay/toPay', + url: '/userClient/pay/toPay', method: 'get', params: {orderId: data.id} }).then((res) => {