|
|
|
@ -132,11 +132,10 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(o) { |
|
|
|
|
console.log(o.info) |
|
|
|
|
let info = o.info ? JSON.parse(o.info) : uni.getStorageSync("getInfo"); |
|
|
|
|
uni.setStorageSync("getInfo",info) |
|
|
|
|
if (info.content) { |
|
|
|
|
info.content = info.content.replace(/<img src=/g, '<img style="width: 100%; display:block" src=') |
|
|
|
|
console.log(info.content) |
|
|
|
|
} |
|
|
|
|
this.info = info; |
|
|
|
|
this.type = o.type; |
|
|
|
@ -146,7 +145,7 @@ |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
if (uni.getStorageSync("userInfo").user_id) { |
|
|
|
|
this.getList() |
|
|
|
|
this.getList() |
|
|
|
|
this.userInfo = uni.getStorageSync("userInfo"); |
|
|
|
|
this.isToken = true; |
|
|
|
|
} else { |
|
|
|
|