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

50 lines
1.1 KiB
Vue
Raw Normal View History

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