1234567891011121314151617181920212223242526272829303132333435363738 |
- <template>
- <view class="content">
- <rich-text :nodes="couContent" ></rich-text>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- couContent: '',
- }
- },
- onLoad(opt) {
- console.log('content',opt.couContent);
- if (opt.couContent) {
- this.couContent = opt.couContent.replace(/\<p/gi, '<p style="display: inline-block"');
- }
- },
- methods: {
-
- }
- }
- </script>
- <style scoped>
- .content {
- background: #F4F5F7;
- min-height: 100vh;
- padding: 30rpx 24rpx;
-
- }
-
-
- </style>
|