Files
app-govern/pages/mine/policy.vue

54 lines
1.2 KiB
Vue
Raw Normal View History

2023-01-12 10:03:25 +08:00
<template>
2023-08-10 09:18:17 +08:00
<Cn-page :loading="loading">
<view slot="body">
<view class="html-wrap">
<view v-html="value"></view>
2023-01-12 10:03:25 +08:00
</view>
</view>
</Cn-page>
</template>
2023-08-10 09:18:17 +08:00
2023-01-12 10:03:25 +08:00
<script>
2023-08-10 09:18:17 +08:00
import { queryAppInfoByType } from '@/common/api/mine.js'
2023-01-12 10:03:25 +08:00
export default {
2023-08-10 09:18:17 +08:00
data() {
2023-01-12 10:03:25 +08:00
return {
2023-08-10 09:18:17 +08:00
showFlag: 0,
pageNameFlag: 1,
pageName: '用户协议',
loading: true,
value: '',
2023-01-12 10:03:25 +08:00
}
},
2023-08-10 09:18:17 +08:00
methods: {},
created() {
let dictData = uni.getStorageSync(this.$cacheKey.dictData)
dictData.forEach((item) => {
if (item.code === 'appInformationType') {
item.children.forEach((item2) => {
if (item2.code === 'Personal_Infor_Protect') {
queryAppInfoByType(item2.id).then((res) => {
this.value = res.data.content
this.loading = false
})
}
})
}
})
},
2023-01-12 10:03:25 +08:00
}
</script>
2023-08-10 09:18:17 +08:00
<style lang="scss">
.html-wrap {
width: 750rpx;
box-sizing: border-box;
2023-02-20 14:19:28 +08:00
padding: 20rpx;
2023-08-10 09:18:17 +08:00
font-size: 24rpx;
color: #666;
img {
width: 100%;
}
2023-01-12 10:03:25 +08:00
}
2023-08-10 09:18:17 +08:00
</style>