protocol.vue
835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
<view>
<view id="text">
<rich-text :nodes="item.dictDescribe"></rich-text>
</view>
</view>
</template>
<script>
const NET = require('../../utils/request')
const API = require('../../config/api')
export default {
data() {
return {
type: 'app_privacy_agreement',
item: {}
}
},
onLoad(item) {
this.type = item.type
let title = "《锦江公园》商城用户协议"
if (this.type === 'app_privacy_agreement') {
title = "《锦江公园》商城隐私协议"
}
uni.setNavigationBarTitle({
title: title
})
this.getquery()
},
methods: {
getquery() {
NET.request(API.Query, {
name: this.type
}, 'GET').then(res => {
this.item = res.data
}).catch(res => {
})
}
}
}
</script>
<style scoped>
#text {
padding: 40rpx;
}
</style>