|
@@ -0,0 +1,36 @@
|
|
|
+<template>
|
|
|
+ <view class="app-container" :style="{'height' : !content ? '100%' : ''}">
|
|
|
+ <view v-if="content" class="ql-snow">
|
|
|
+ <rich-text class="ql-editor" :nodes="content" />
|
|
|
+ </view>
|
|
|
+ <noData v-else>
|
|
|
+ 暂无引导内容
|
|
|
+ </noData>
|
|
|
+ <button type="submit" circle @click="close">知道了</button>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { getGuidePageContent } from '@/api/guide'
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ content: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(e) {
|
|
|
+ getGuidePageContent({
|
|
|
+ clientType: e.deviceModel
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.content = res.data.data.guidePageContent
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ close() {
|
|
|
+ closePage.postMessage('关闭页面')
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|