getData(){
let customer_id = localStorage.getItem('customer_id')
let param = new URLSearchParams();
param.append('customer_id', customer_id); this.$http({
method: 'post',
url: '/Cases/list.do', data: param
})
.then(({data})=>{ data.data.medicationCasesVoList.forEach((e)=>{ if(e.medicationName !== ''){ this.medicationCasesVoList.medicationName = e.medicationName;
} if(e.medicationTime !== ''){ this.medicationCasesVoList.medicationTime = e.medicationTime; // 時(shí)間戳轉(zhuǎn)日期
this.changeTime1()
}
})
}
在網(wǎng)頁(yè)上調(diào)試可以進(jìn)行賦值,但到app上的話就報(bào)錯(cuò)
app內(nèi)嵌h5,得到數(shù)據(jù)無(wú)法賦值
夢(mèng)里花落0921
2018-08-26 11:31:30