From afa7220f58f58bc5e39ca3aa0cd5a202e248b389 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 25 Dec 2023 23:42:06 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=B8=85=E7=90=86=20console.log=20?= =?UTF-8?q?=E8=BF=87=E5=A4=9A=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/info.vue | 6 +++--- sheep/store/user.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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: {