|
|
|
@ -15,7 +15,8 @@ Scene({ |
|
|
|
type: 0, |
|
|
|
id: null, |
|
|
|
userId: null, |
|
|
|
form: null |
|
|
|
form: null, |
|
|
|
factoryName: null, |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
@ -34,7 +35,7 @@ Scene({ |
|
|
|
let channel = this.getOpenerEventChannel() |
|
|
|
let that = this |
|
|
|
channel.once('onParam', function (data) { |
|
|
|
that.setData({ form: data, type: that.data.type }) |
|
|
|
that.setData({ form: data, type: that.data.type, factoryName: app.userInfo.factoryName }) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
@ -54,7 +55,7 @@ Scene({ |
|
|
|
fetchCustomerInfo: function(){ |
|
|
|
wx.showLoading({ title: '正在获取', mask: true }) |
|
|
|
getCustomerInfo(this.data.id).then(result => { |
|
|
|
this.setData({ form: result.data, type: this.data.type }) |
|
|
|
this.setData({ form: result.data, type: this.data.type, factoryName: app.userInfo.factoryName }) |
|
|
|
wx.hideLoading() |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
|