diff --git a/pages/index/index.vue b/pages/index/index.vue
index 54c441f..db3ad3e 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -6,9 +6,11 @@
待退货
+ {{waitCount.waitReturnCount > 99 ? '99+' :waitCount.waitReturnCount}}
待配货
+ {{waitCount.waitAddProductCount > 99 ? '99+' :waitCount.waitAddProductCount}}
挂单
@@ -18,22 +20,13 @@
待入库
+ {{waitCount.waitPurchaseCount > 99 ? '99+' :waitCount.waitPurchaseCount}}
-
-
-
- 今日营收详情
-
-
-
-
-
+ 今日营收详情
@@ -67,11 +60,7 @@
- 近期订单列表
-
-
+ 近期订单列表
-
@@ -108,7 +97,13 @@
+ arrow-direction="left">
+
+
+
@@ -126,13 +121,7 @@
export default {
computed: mapState(['shopName', 'userId', 'shopIndex', 'avatar']),
data() {
- return {
- list: [
- '1',
- '22222',
- '33333',
- '34567'
- ],
+ return {
type:'',
src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
inventoryList: [],
@@ -175,9 +164,8 @@
}
},
},
- shopInfo: {
-
- }
+ shopInfo: {},
+ waitCount:{}
}
},
components: {
@@ -197,9 +185,19 @@
this.getSaleInfo()
this.getServerData();
this.getOrderInfoList();
-
+ this.getWaitCount()
},
- methods: {
+ methods: {
+ getWaitCount(){
+ this.tui.request("/app/sale/getWaitCount", "POST", {}, false, false).then((res) => {
+ if(res.code == 200){
+ this.waitCount = res.result
+ }else{
+ this.tui.toast(res.message)
+ }
+
+ })
+ },
getSaleInfo() {
this.tui.request("/app/sale/getShopAll", "POST", {
shopId: this.shopIndex
@@ -386,6 +384,7 @@
flex: 1;
line-height: 80upx;
text-align: center;
+ position: relative;
}
.title-btn-sbtn:hover{
color: #B22222;
@@ -393,7 +392,19 @@
.title-btn-sbtn:nth-child(1),.title-btn-sbtn:nth-child(2){
border-right: 1px solid #fff;
}
-
+ .red-circle{
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 40rpx;
+ height: 40rpx;
+ line-height: 40rpx;
+ font-size: 22rpx;
+ border-radius: 50%;
+ background: red;
+ color: #fff;
+ text-align: center;
+ }