31 lines
612 B
Vue
31 lines
612 B
Vue
<template>
|
|
<up-parse :content="Info"></up-parse>
|
|
</template>
|
|
|
|
<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
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
page {
|
|
background-color: #ffffff;
|
|
}
|
|
</style>
|