From ff282c9430e06cc6e6a667b7692a41d04be975a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Tue, 8 Mar 2022 16:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E9=A6=96=E9=A1=B5=EF=BC=8C?= =?UTF-8?q?=E8=B0=83=E6=8B=A8=EF=BC=8C=E7=9B=98=E7=82=B9=EF=BC=8C=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/allot/index.wxml | 2 +- pages/index/index.js | 29 ++++++----------------------- pages/index/index.wxml | 37 ++++++++++++++++++------------------- pages/index/index.wxss | 4 +++- 4 files changed, 28 insertions(+), 44 deletions(-) diff --git a/pages/allot/index.wxml b/pages/allot/index.wxml index 26d513f..b89f531 100644 --- a/pages/allot/index.wxml +++ b/pages/allot/index.wxml @@ -21,7 +21,7 @@ {{stock.inventory.title}} - + {{stock.inventory.value}} diff --git a/pages/index/index.js b/pages/index/index.js index 3982c32..fbfc442 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -47,29 +47,6 @@ Page({ banneractive3: 0, remindTab:[],//调拨盘点入口 remindMsg:[],//调拨盘点弹框 - // inventory:[ - // { - // title:'车库存天数已超过20天,请尽快销售,以免造成损失!', - // name:'哪吒V', - // num:'AWR20210833232221', - // tip:'已库存:66天', - // img:'https://img.liche.cn/liche/2021/11/5438e63bb9c4963d/c5b5e20b2ecf285a.png' - // }, - // { - // title:'车库存天数已超过20天,请尽快销售,以免造成损失!', - // name:'哪吒V', - // num:'AWR20210833232221', - // tip:'已库存:66天', - // img:'https://img.liche.cn/liche/2021/11/5438e63bb9c4963d/c5b5e20b2ecf285a.png' - // }, - // { - // title:'车库存天数已超过20天,请尽快销售,以免造成损失!', - // name:'哪吒V', - // num:'AWR20210833232221', - // tip:'已库存:66天', - // img:'https://img.liche.cn/liche/2021/11/5438e63bb9c4963d/c5b5e20b2ecf285a.png' - // }, - // ], }, onLoad(options) { @@ -148,6 +125,9 @@ Page({ //调拨提醒 getAppTransferRemind(){ _.apiQuery.getAppTransferRemind().then(res => { + this.setData({ + diaoboNum:res.data.total, + }) if(res.data.total>0){ let remindTab = this.data.remindTab remindTab.push({ @@ -181,6 +161,9 @@ Page({ //盘点提醒 getAppInventoryRemind(){ _.apiQuery.getAppInventoryRemind().then(res => { + this.setData({ + pandianNum:res.data.total, + }) if(res.data.total>0){ let remindTab = this.data.remindTab remindTab.push({ diff --git a/pages/index/index.wxml b/pages/index/index.wxml index fb01309..c256ae4 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -15,27 +15,26 @@ - - - - 店铺概况 + + + {{diaoboNum}} + + 车辆盘点 - - - 当月表现 + + {{pandianNum}} + + 车辆调拨 - - - 访店SOP - - - - 数据模型 + + {{inventory.value}} + + {{inventory.title}} - + - + - 客户代办事项 + 客户代办事项 diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 8915afa..8c28f5b 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -7,4 +7,6 @@ .indicator-pin.active{background-color:#36afa2;} .indicator-pin2{width:20rpx;height:6rpx;display:inline-block;background-color:#fad6c9;cursor:pointer;transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;margin:0 6rpx;vertical-align:top} -.indicator-pin2.active{background-color:#f9394d;} \ No newline at end of file +.indicator-pin2.active{background-color:#f9394d;} + +.peg-tip{top:-7rpx;} \ No newline at end of file