订单数量,个人信息修改,收藏,收货地址,全部订单接口简单替换

This commit is contained in:
落日晚风
2023-11-06 17:50:55 +08:00
parent cfa35b2c6f
commit 627b3d015f
11 changed files with 1207 additions and 1146 deletions
+10 -3
View File
@@ -62,9 +62,16 @@ const user = defineStore({
// 获取订单、优惠券等其他资产信息
async getNumData() {
const { error, data } = await userApi.data();
if (error === 0) {
this.numData = data;
const { code, data } = await userApi.data();
const data2 = await userApi.data2();
if (code === 0&&data2.code===0) {
console.log(data);
this.numData = {order_num:{
noget:data.deliveredCount,
unpaid:data.unpaidCount,
nocomment:data.uncommentedCount,
aftersale:data2.data
}};
}
},