|
|
|
@ -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 }) |
|
|
|
|