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