You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
824 B
48 lines
824 B
<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 = this.$t('page.malluseragreement')
|
|
if (this.type === 'app_privacy_agreement') {
|
|
title = this.$t('page.mallusersafement')
|
|
}
|
|
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>
|