success: function(res) { //res就是接收后台返回的数据
console.log(res.data.source)
if (res.data.source) {
that.setData({
person: res.data.source,
['furuiMeterreading.userName']: res.data.source.userName,
['furuiMeterreading.userCode']: res.data.source.userCode,
['furuiMeterreading.gauGeno']: res.data.source.gauGeno,
['furuiMeterreading.userAddress']: res.data.source.userAddress,
})
console.log(that.data.furuiMeterreading)
console.log(that.data.person);
}
AppData里已经set上值 单页面不渲染
'furuiMeterreading.userName 最好不要这样赋值,你可以页面上这样取值,然后赋值直接赋值给furuiMeterreading