|
@@ -129,9 +129,9 @@ export default {
|
|
|
CustomBar: this.CustomBar, // 顶部导航栏高度
|
|
|
UserInfo: {}, //用户信息
|
|
|
isRequest: true,
|
|
|
- paymentCount: 1, //待付款角标
|
|
|
- waitShipmentsCount: 20, //待收货角标
|
|
|
- shipmentsCount: 123, //已发货角标
|
|
|
+ paymentCount: 0, //待付款角标
|
|
|
+ waitShipmentsCount: 0, //待收货角标
|
|
|
+ shipmentsCount: 0, //已发货角标
|
|
|
salesReturnCount: 0, //退货/款角标
|
|
|
userId:0
|
|
|
}
|
|
@@ -166,7 +166,11 @@ export default {
|
|
|
},
|
|
|
//初始化个人中心数据
|
|
|
GetUserInfoPersonal() {
|
|
|
- this.UserService.GetUserOrderTotal({ userId: this.userId })
|
|
|
+ this.UserService.GetUserOrderTotal(
|
|
|
+ {
|
|
|
+ userId: this.userId
|
|
|
+ }
|
|
|
+ )
|
|
|
.then(response => {
|
|
|
const data = response.data
|
|
|
this.paymentCount = data.paymentCount //待付款
|
|
@@ -178,7 +182,7 @@ export default {
|
|
|
this.$util.msg(error.msg, 2000)
|
|
|
})
|
|
|
},
|
|
|
- handleContact(e) {// 客服
|
|
|
+ handleContact(e) {//客服
|
|
|
console.log(e.detail.path)
|
|
|
console.log(e.detail.query)
|
|
|
},
|