talk_appAmin/pages/common/webview/index.vue

31 lines
612 B
Vue
Raw Normal View History

2024-04-23 23:01:35 +08:00
<template>
2024-06-13 23:15:52 +08:00
<up-parse :content="Info"></up-parse>
2024-04-23 23:01:35 +08:00
</template>
2024-06-13 23:15:52 +08:00
<script setup>
import {getAgreement} from '@/api/system/agreement'
import { ref, getCurrentInstance } from 'vue';
import { onShow, onLoad } from '@dcloudio/uni-app'
const type = ref()
const Info = ref()
onLoad( (info) => {
type.value = info.type
getAgreement().then( res => {
console.log(res)
if(type.value == 2){
Info.value = res.data.userAgreement
}else if(type.value == 1){
Info.value = res.data.privacyAgreement
2024-04-23 23:01:35 +08:00
}
2024-06-13 23:15:52 +08:00
})
})
2024-04-23 23:01:35 +08:00
</script>
2024-06-13 23:15:52 +08:00
<style lang="scss" scoped>
page {
background-color: #ffffff;
}
</style>