✨ 清理 console.log 过多个人信息
parent
6f2455fec3
commit
afa7220f58
|
@ -245,16 +245,16 @@
|
||||||
state.model.avatar = data;
|
state.model.avatar = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改密码 TODO
|
// 修改密码
|
||||||
function onSetPassword() {
|
function onSetPassword() {
|
||||||
showAuthModal('changePassword');
|
showAuthModal('changePassword');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 绑定第三方账号 TODO
|
// 绑定第三方账号
|
||||||
async function bindThirdOauth() {
|
async function bindThirdOauth() {
|
||||||
let result = await sheep.$platform.useProvider('wechat').bind();
|
let result = await sheep.$platform.useProvider('wechat').bind();
|
||||||
if (result) {
|
if (result) {
|
||||||
getUserInfo();
|
await getUserInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ const user = defineStore({
|
||||||
if (code !== 0 || code2 != 0) return;
|
if (code !== 0 || code2 != 0) return;
|
||||||
data.money = data2.balance;
|
data.money = data2.balance;
|
||||||
this.userInfo = data;
|
this.userInfo = data;
|
||||||
console.log(data2, '信息')
|
// console.log(data2, '信息')
|
||||||
return Promise.resolve(data);
|
return Promise.resolve(data);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -91,9 +91,9 @@ const user = defineStore({
|
||||||
} = await userApi.data();
|
} = await userApi.data();
|
||||||
const data2 = await userApi.data2();
|
const data2 = await userApi.data2();
|
||||||
let data3 = await userApi.getUnused();
|
let data3 = await userApi.getUnused();
|
||||||
console.log(data3.data, '优惠券')
|
// console.log(data3.data, '优惠券')
|
||||||
if (code === 0 && data2.code === 0) {
|
if (code === 0 && data2.code === 0) {
|
||||||
console.log('订单数据', data);
|
// console.log('订单数据', data);
|
||||||
this.numData = {
|
this.numData = {
|
||||||
coupons_num: data3.data,
|
coupons_num: data3.data,
|
||||||
order_num: {
|
order_num: {
|
||||||
|
|
Loading…
Reference in New Issue