DESKTOP-O04BTUJ\muzen 3 gadi atpakaļ
vecāks
revīzija
0810c5c433
1 mainītis faili ar 36 papildinājumiem un 0 dzēšanām
  1. 36 0
      src/pages/guide/index.vue

+ 36 - 0
src/pages/guide/index.vue

@@ -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>