
cms模块里面加了多个字段在小程序调用到内容页
像这们只能调用一个字段,多个字段怎么调用
WxParse.wxParse('article', 'html', datas.data.content, that, 5); getDetail() {
const that = this;
const url = App.HttpResource('/index.php/cms/wxapp.show/index.html')
const id = this.data.id;
url.getAsync({id: id})
.then(res => {
const datas = res.data
console.log('info', datas)
if (datas.code == 0) {
//data.data.images.forEach(n => n.path = App.renderImage(n.path))
this.setData({
info: datas.data,
images: datas.data.picurls,
})
WxParse.wxParse('article', 'html', datas.data.content, that, 5);
}
})
},