You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
691 B
36 lines
691 B
<template>
|
|
<view class="content" v-html="content">
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
content: ""
|
|
};
|
|
},
|
|
onLoad() {
|
|
this.content=uni.getStorageSync("pcontent").content.replace(/style=""/g, '')
|
|
.replace(/<img " src=/g, '<img src=')
|
|
.replace(/<img src=/g, '<img style="width: 100%; height:100%; display:block" src=');
|
|
uni.setNavigationBarTitle({
|
|
title: uni.getStorageSync("pcontent").title
|
|
})
|
|
},
|
|
destroyed() {
|
|
uni.removeStorageSync("pcontent")
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content{
|
|
padding: 25rpx;
|
|
overflow: hidden;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
}
|
|
</style>
|
|
|
|
|