This commit is contained in:
GGJ
2025-01-09 19:02:44 +08:00
commit 92e7a7a5eb
2943 changed files with 1152283 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
<template>
<div class="html-wrap" v-html="value"></div>
</template>
<script>
import {queryAppInfoByType} from '@/api/h5/user'
export default {
data() {
return {
showFlag: 0,
pageNameFlag: 1,
pageName: '用户协议',
loading: true,
value: '',
}
},
methods: {},
created() {
document.title = '用户协议'
console.log('User_Agreement')
this.$tools.getDictData('appInformationType').then((res) => {
console.log(res)
res.forEach((item2) => {
if (item2.code === 'User_Agreement') {
queryAppInfoByType(item2.id).then((res) => {
this.value = res.data.content
this.loading = false
})
}
})
})
},
}
</script>
<style lang="scss">
html, body {
width: 100vw;
}
.html-wrap {
overflow-y: scroll;
overflow-x: hidden;
box-sizing: border-box;
width: 100vw;
height: 100vh;
padding: 10px;
color: #666;
word-break: break-all;
white-space: pre-wrap;
box-sizing: border-box;
img {
width: 100%;
}
}
</style>

60
src/views/h5/policy.vue Normal file
View File

@@ -0,0 +1,60 @@
<template>
<div class="html-wrap" v-html="value">
</div>
</template>
<script>
import {queryAppInfoByType} from "@/api/h5/user";
export default {
data() {
return {
showFlag: 0,
pageNameFlag: 1,
pageName: '用户协议',
loading: true,
value: '',
}
},
methods: {},
created() {
console.log('User_Agreement')
document.title = '个人信息保护政策'
this.$tools.getDictData('appInformationType').then(res => {
console.log(res)
res.forEach((item2) => {
if (item2.code === 'Personal_Infor_Protect') {
queryAppInfoByType(item2.id).then((res) => {
this.value = res.data.content
this.loading = false
})
}
})
})
},
}
</script>
<style lang="scss">
html, body {
width: 100vw;
}
.html-wrap {
overflow-y: scroll;
overflow-x: hidden;
box-sizing: border-box;
width: 100vw;
height: 100vh;
padding: 10px;
color: #666;
word-break: break-all;
white-space: pre-wrap;
box-sizing: border-box;
img {
width: 100%;
}
}
</style>