新增意见反馈、帮助中心
This commit is contained in:
27
pages/me/help_center_detail.vue
Normal file
27
pages/me/help_center_detail.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<rich-text :nodes="content.helpWordContent"></rich-text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
|
||||
const content = ref('');
|
||||
|
||||
onLoad(() => {
|
||||
content.value = uni.getStorageSync('helpDetail');
|
||||
const regex = new RegExp('img', 'gi');
|
||||
content.value.helpWordContent = content.value.helpWordContent.replace(regex, `img style="width:100%;"`);
|
||||
uni.setNavigationBarTitle({
|
||||
title: content.value.helpWordTitle
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.container {
|
||||
padding: 28upx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user