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.
40 lines
721 B
40 lines
721 B
<template>
|
|
<view class="pages">
|
|
<view class="header">
|
|
<u-navbar is-back="false" :title="title" ></u-navbar>
|
|
</view>
|
|
<view class="content" v-html="strings">
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default{
|
|
data(){
|
|
return{
|
|
title:'',
|
|
strings:'',
|
|
itemInfo:{}
|
|
}
|
|
},
|
|
onLoad(options){
|
|
this.itemInfo = JSON.parse(decodeURIComponent(options.itemInfo))
|
|
this.title = this.itemInfo.title;
|
|
this.strings = this.itemInfo.content.replace(/style=\"text-wrap: nowrap;\"/g,'style=\"text-wrap: inherit;\"');
|
|
},
|
|
methods:{
|
|
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.pages{
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 30rpx;
|
|
span{
|
|
white-space: normal !important
|
|
}
|
|
}
|
|
</style> |