|
|
@@ -50,6 +50,13 @@
|
|
|
<view class="stat-label">总数</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="card stat-card jifen-card" @click="navigateToPoint()">
|
|
|
+ <view class="stat-content">
|
|
|
+ <view class="stat-title">拓店积分</view>
|
|
|
+ <view class="stat-value">{{stats.storePointTotal}}</view>
|
|
|
+ <view class="stat-label">总数</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<select-store-drawer
|
|
|
:show="showDrawer"
|
|
|
@@ -84,7 +91,8 @@ export default {
|
|
|
},
|
|
|
stats: {
|
|
|
storeCount: 0,
|
|
|
- pointsCount: 0
|
|
|
+ pointsCount: 0,
|
|
|
+ storePointTotal:0
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -97,6 +105,7 @@ export default {
|
|
|
getAdminUserInfo().then(res=>{
|
|
|
this.stats.storeCount = res.data.storeCount;
|
|
|
this.stats.pointsCount = res.data.pointTotal;
|
|
|
+ this.stats.storePointTotal = res.data.storePointTotal;
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -143,10 +152,13 @@ export default {
|
|
|
if("stockRecords" === page){
|
|
|
uni.navigateTo({ url: `/pages/hexiao/ywy/add_goods_record` });
|
|
|
}else if("pointsStats" === page){
|
|
|
- uni.navigateTo({ url: `/pages/cjx/shop/score_list?pointsCount=`+this.stats.pointsCount });
|
|
|
+ uni.navigateTo({ url: `/pages/cjx/shop/score_list?pointType=1&pointsCount=`+this.stats.pointsCount });
|
|
|
}else{
|
|
|
this.build();
|
|
|
}
|
|
|
+ },
|
|
|
+ navigateToPoint(){
|
|
|
+ uni.navigateTo({ url: `/pages/cjx/shop/score_list?pointType=2&pointsCount=`+this.stats.storePointTotal });
|
|
|
}
|
|
|
}
|
|
|
}
|