1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <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 = '《shop》商城用户协议'
- if (this.type === 'app_privacy_agreement') {
- title = '《shop》商城隐私协议'
- }
- uni.setNavigationBarTitle({
- 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>
|