|
@@ -1,10 +1,6 @@
|
|
|
-<!--
|
|
|
- * @Author: yizhiyang
|
|
|
- * @Date: 2023-11-30 09:40:24
|
|
|
- * @Description:
|
|
|
--->
|
|
|
<template>
|
|
|
<view class="shop">
|
|
|
+ <view style="height: 85rpx" />
|
|
|
<view class="shop__data">
|
|
|
<view class="shop__data--left">
|
|
|
<view class="text-title">店铺分</view>
|
|
@@ -18,7 +14,8 @@
|
|
|
<view class="line"></view>
|
|
|
<view>
|
|
|
<view class="text-title">今日订单(单)</view>
|
|
|
- <view class="text-num">30</view>
|
|
|
+ <!-- <view class="text-num">{{ orderCount }}</view> -->
|
|
|
+ <view class="text-num">{{ orderCount }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -74,6 +71,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { getOrderQuantityApi } from '@/api/merchant/order';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -124,6 +122,7 @@ export default {
|
|
|
title: '全部',
|
|
|
},
|
|
|
],
|
|
|
+ orderCount: 0
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -133,21 +132,31 @@ export default {
|
|
|
switch (index) {
|
|
|
case 0:
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/merchant/tabBar/store/shopManage'
|
|
|
- })
|
|
|
- break;
|
|
|
+ url: '/pages/merchant/tabBar/store/shopManage',
|
|
|
+ });
|
|
|
+ break;
|
|
|
case 1:
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/merchant/tabBar/store/evaluateManagement'
|
|
|
- })
|
|
|
- break;
|
|
|
+ url: '/pages/merchant/tabBar/store/evaluateManagement',
|
|
|
+ });
|
|
|
+ break;
|
|
|
case 5:
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/merchant/tabBar/store/myTeam'
|
|
|
- })
|
|
|
- break;
|
|
|
+ url: '/pages/merchant/tabBar/store/myTeam',
|
|
|
+ });
|
|
|
+ break;
|
|
|
}
|
|
|
},
|
|
|
+ async getOrderQuantity() {
|
|
|
+ let res = await getOrderQuantityApi();
|
|
|
+
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.orderCount = res.data.orderCount;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getOrderQuantity();
|
|
|
},
|
|
|
};
|
|
|
</script>
|