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