Browse Source

no message

feature/v2.3
xpz2018 4 years ago
parent
commit
d7bff5fd36
2 changed files with 9 additions and 4 deletions
  1. 8
      pages/home/factory-info/index.js
  2. 5
      pages/process/payment/index.js

8
pages/home/factory-info/index.js

@ -17,7 +17,13 @@ Scene({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({ settlePriceType: String(app.userInfo.factory.settlePriceType), settleType: String(app.userInfo.factory.settleType)})
if(app.userInfo.factory.settlePriceType){
this.data.settlePriceType = String(app.userInfo.factory.settlePriceType)
}
if(app.userInfo.factory.settleType){
this.data.settleType = String(app.userInfo.factory.settleType)
}
this.setData({ settlePriceType: this.data.settlePriceType, settleType: this.data.settleType})
},
onTypeChange: function({detail}){
this.setData({ settlePriceType: detail })

5
pages/process/payment/index.js

@ -73,9 +73,8 @@ Scene({
result.data.productName = productName
result.data.settleWeight = settleWeight
result.data.settlePrice = this.data.amount
var settleType = app.userInfo.factory.settleType
if(settleType){
this.data.settleType = String(settleType)
if(app.userInfo.factory.settleType){
this.data.settleType = String(app.userInfo.factory.settleType)
}
this.setData({ orderList: [result.data], settleType: this.data.settleType, amount: this.data.amount, orderStatus: result.data.orderStatus })
this.fetchCustomerInfo(result.data)

Loading…
Cancel
Save