...
|
...
|
@@ -31,12 +31,11 @@ Page({ |
|
|
|
|
|
async getDeatils() {
|
|
|
let that = this
|
|
|
wx.showLoading({
|
|
|
mask: true
|
|
|
})
|
|
|
// wx.showLoading({
|
|
|
// mask: true
|
|
|
// })
|
|
|
if (that.data.type == 1) {
|
|
|
if (that.data.tap == '') {
|
|
|
|
|
|
try {
|
|
|
const {
|
|
|
data: {
|
...
|
...
|
@@ -48,18 +47,17 @@ Page({ |
|
|
id: that.data.id
|
|
|
}
|
|
|
})
|
|
|
console.log(data);
|
|
|
that.setData({
|
|
|
details: data,
|
|
|
content: that.text(data.content)
|
|
|
})
|
|
|
WxParse.wxParse('content', 'html', that.data.content, that, 5);
|
|
|
wx.hideLoading()
|
|
|
console.log(data);
|
|
|
|
|
|
} catch (err) {
|
|
|
that.setData({
|
|
|
msg: err.msg
|
|
|
})
|
|
|
that.popMaskTest()
|
|
|
console.log(err);
|
|
|
a.popTest(err.msg)
|
|
|
}
|
|
|
} else {
|
|
|
try {
|
...
|
...
|
@@ -82,10 +80,8 @@ Page({ |
|
|
WxParse.wxParse('content', 'html', that.data.content, that, 5);
|
|
|
console.log(data, "type");
|
|
|
} catch (err) {
|
|
|
that.setData({
|
|
|
msg: err.msg
|
|
|
})
|
|
|
that.popMaskTest()
|
|
|
console.log(err);
|
|
|
a.popTest(err.msg)
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|