From bfcbb044c208b2d0984cda0b0adb9ae8ff72b004 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Thu, 27 May 2021 18:58:38 +0800 Subject: [PATCH] no message --- components/field/index.js | 2 +- pages/index/index.js | 10 ++++++++-- pages/process/order-price/index.wxml | 4 ++-- pages/setting/paper-detial/index.js | 6 +++--- pages/setting/paper-detial/index.wxml | 8 ++++---- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/components/field/index.js b/components/field/index.js index 1d355e4..714ad11 100644 --- a/components/field/index.js +++ b/components/field/index.js @@ -38,7 +38,7 @@ VantComponent({ this.$emit('focus', event.detail) }, onBlur(event) { - this.focused = false + this.data.focused = false this.setShowClear() this.$emit('blur', event.detail) }, diff --git a/pages/index/index.js b/pages/index/index.js index b683ab0..40f7d53 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -27,6 +27,7 @@ Scene({ factoryName: '', items: [], mActiveIndex: 0, + popIndex: 0, factoryId: '', arrow: false, visible: false @@ -74,6 +75,7 @@ Scene({ enterprise.children = children this.data.items.push(enterprise) } + this.data.popIndex = this.data.mActiveIndex this.setData({ userInfo: app.userInfo, items: this.data.items, @@ -123,7 +125,10 @@ Scene({ this.setData({zIndex: detail}) }, showFactoryList: function(){ - this.setData({ visible: !this.data.visible }) + if(!this.data.arrow){ + return + } + this.setData({ visible: !this.data.visible, mActiveIndex: this.data.popIndex }) if (this.data.tabIndex == 0) { var pageView = this.selectComponent('#' + this.data.tabList[this.data.tabIndex].value) pageView.onClose() @@ -133,7 +138,7 @@ Scene({ this.setData({ visible: false }) }, onClickNav({ detail }) { - this.setData({ mActiveIndex: detail.index || 0 }); + this.setData({ mActiveIndex: detail.index || 0 }) }, changeFactory({ detail }) { if(app.userInfo.factoryId == detail.id){ @@ -143,6 +148,7 @@ Scene({ wx.showLoading({ title: '正在切换', mask: true }) app.userInfo.factoryId = detail.id storage.put('X-FACTORY-ID' + app.userInfo.userId, detail.id) + this.data.popIndex = this.data.mActiveIndex const element = app.userInfo.enterpriseInfos[this.data.mActiveIndex] if(element.isEnterprisePrimary){ app.userInfo.type = 'ADMIN' diff --git a/pages/process/order-price/index.wxml b/pages/process/order-price/index.wxml index ad2869e..8de2ec6 100644 --- a/pages/process/order-price/index.wxml +++ b/pages/process/order-price/index.wxml @@ -41,13 +41,13 @@ {{form.factoryCustomerName}} - + 车牌号码 {{form.plateNumber || '请输入车牌号码'}} - + * diff --git a/pages/setting/paper-detial/index.js b/pages/setting/paper-detial/index.js index 07ca612..70977b3 100644 --- a/pages/setting/paper-detial/index.js +++ b/pages/setting/paper-detial/index.js @@ -74,7 +74,7 @@ Scene({ wx.showLoading({ title: '正在处理', mask: true }) delePaperPrice(this.data.form.id).then(result => { wx.hideLoading() - util.showBackToast('删除成功!') + util.showBackToast('删除成功') event.emit('OrderMessage', { what: 201 }) }).catch(err => { wx.hideLoading() @@ -96,7 +96,7 @@ Scene({ if(util.isEmpty(this.data.form.id)){ savePaperPrice(this.data.form).then(result => { wx.hideLoading() - util.showBackToast('添加成功!') + util.showBackToast('添加成功') event.emit('OrderMessage', { what: 201 }) }).catch(err => { wx.hideLoading() @@ -105,7 +105,7 @@ Scene({ } else { editPaperPrice(this.data.form).then(result => { wx.hideLoading() - util.showBackToast('修改成功!') + util.showBackToast('修改成功') event.emit('OrderMessage', { what: 202, detail: this.data.form }) }).catch(err => { wx.hideLoading() diff --git a/pages/setting/paper-detial/index.wxml b/pages/setting/paper-detial/index.wxml index 1c8a19a..e3b7fa9 100644 --- a/pages/setting/paper-detial/index.wxml +++ b/pages/setting/paper-detial/index.wxml @@ -4,14 +4,14 @@ - + placeholder="请输入品类别名" input-align="right" clearable bind:input="bindInput" /> + placeholder="请输入收货价格" input-align="right" clearable type="digit" bind:input="bindInput" /> + placeholder="请输入最高收货价格" input-align="right" clearable type="digit" bind:input="bindInput" /> 删除