diff --git a/pages/user/info.vue b/pages/user/info.vue index f2bc7189..1b668c5d 100644 --- a/pages/user/info.vue +++ b/pages/user/info.vue @@ -245,16 +245,16 @@ state.model.avatar = data; } - // 修改密码 TODO + // 修改密码 function onSetPassword() { showAuthModal('changePassword'); } - // 绑定第三方账号 TODO + // 绑定第三方账号 async function bindThirdOauth() { let result = await sheep.$platform.useProvider('wechat').bind(); if (result) { - getUserInfo(); + await getUserInfo(); } } diff --git a/sheep/store/user.js b/sheep/store/user.js index 41eae1f7..32bb13e7 100644 --- a/sheep/store/user.js +++ b/sheep/store/user.js @@ -68,7 +68,7 @@ const user = defineStore({ if (code !== 0 || code2 != 0) return; data.money = data2.balance; this.userInfo = data; - console.log(data2, '信息') + // console.log(data2, '信息') return Promise.resolve(data); }, @@ -91,9 +91,9 @@ const user = defineStore({ } = await userApi.data(); const data2 = await userApi.data2(); let data3 = await userApi.getUnused(); - console.log(data3.data, '优惠券') + // console.log(data3.data, '优惠券') if (code === 0 && data2.code === 0) { - console.log('订单数据', data); + // console.log('订单数据', data); this.numData = { coupons_num: data3.data, order_num: {