Browse Source

no message

featrue/v4.3
xpz2018 5 years ago
parent
commit
68e0eee435
2 changed files with 8 additions and 1 deletions
  1. 4
      pages/agent/edit/index.js
  2. 5
      pages/withdrawal/balance/index.js

4
pages/agent/edit/index.js

@ -213,10 +213,12 @@ Page({
for (let index = 0; index < this.data.factoryDetail.paperCategoryList.length; index++) { for (let index = 0; index < this.data.factoryDetail.paperCategoryList.length; index++) {
const element = this.data.factoryDetail.paperCategoryList[index] const element = this.data.factoryDetail.paperCategoryList[index]
if(element.categoryId == detail.value){ if(element.categoryId == detail.value){
this.data.form.unitPrice = element.unitPrice
if(element.publicSubsidies && Number(element.publicSubsidies) > 0){ if(element.publicSubsidies && Number(element.publicSubsidies) > 0){
this.data.form.publicSubsidies = element.publicSubsidies this.data.form.publicSubsidies = element.publicSubsidies
this.data.form.unitPrice = math.plus(element.unitPrice, element.publicSubsidies) this.data.form.unitPrice = math.plus(element.unitPrice, element.publicSubsidies)
} else {
this.data.form.unitPrice = element.unitPrice
this.data.form.publicSubsidies = 0
} }
this.data.cateName = element.categoryName this.data.cateName = element.categoryName
break break

5
pages/withdrawal/balance/index.js

@ -25,6 +25,11 @@ Page({
}) })
}).catch(err => { }).catch(err => {
wx.hideLoading() wx.hideLoading()
this.setData({
StatusBar: app.globalData.StatusBar || 40,
CustomBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 80),
Custom: app.globalData.Custom
})
}) })
}, },
toPage:function(e){ toPage:function(e){

Loading…
Cancel
Save