|
@@ -179,6 +179,7 @@ export default {
|
|
|
this.getUserInfo();
|
|
|
this.getStats();
|
|
|
this.getIssueStats();
|
|
|
+ this.getBuyStats();
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
@@ -188,6 +189,7 @@ export default {
|
|
|
await this.getUserInfo();
|
|
|
await this.getStats();
|
|
|
await this.getIssueStats();
|
|
|
+ await this.getBuyStats();
|
|
|
this.refresherTriggered = false;
|
|
|
},
|
|
|
|
|
@@ -237,6 +239,22 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ // 获取我发布的统计
|
|
|
+ async getBuyStats() {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ this.$api.get('/orderPay/orderCount', {
|
|
|
+ userId: this.$store.state.user.userId,
|
|
|
+ }).then(res => {
|
|
|
+ if(!res.data) return false;
|
|
|
+ this.buyStats[0].num = res.data.dfk;
|
|
|
+ this.buyStats[1].num = res.data.dfh;
|
|
|
+ this.buyStats[2].num = res.data.dsh;
|
|
|
+ }).finally(res => {
|
|
|
+ resolve(1);
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
navToPage(url) {
|
|
|
if(!this.isLogin) {
|
|
|
url = '/pages/login/indexs';
|
|
@@ -245,7 +263,7 @@ export default {
|
|
|
url
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
openInfoDialog() {
|
|
|
this.infoForm.avatar = this.userInfo.avatar || '';
|
|
|
this.infoForm.nickname = this.userInfo.name || '';
|