瀏覽代碼

协议页面

DESKTOP-SVI9JE1\muzen 2 年之前
父節點
當前提交
7fd2d5e217
共有 1 個文件被更改,包括 35 次插入0 次删除
  1. 35 0
      src/pages/agreement/index.vue

+ 35 - 0
src/pages/agreement/index.vue

@@ -0,0 +1,35 @@
+<template>
+  <view class='app-container'>
+    <rich-text :nodes="form.content" />
+  </view>
+</template>
+
+<script>
+import { detail } from '@/api/agreement.js'
+export default {
+  data() {
+    return {
+      // 表单
+      form: {}
+    }
+  },
+  onLoad(e) {
+    this.getDetail(e.type)
+  },
+  methods: {
+    getDetail(type) {
+      uni.showLoading({
+        mask: true
+      })
+      detail({
+        type: type
+      }).then(res => {
+        if (res.data.code === 0) {
+          this.form = res.data.data
+          uni.hideLoading()
+        }
+      })
+    }
+  }
+}
+</script>