38 lines
785 B
Vue
38 lines
785 B
Vue
<template>
|
|
<u-popup :show="show" @close="show = false" @open="open" mode="center" round="15">
|
|
<view style="height: 80vh; overflow-y: auto;width: 80vw" class="p-20">
|
|
<u-parse :content="agreement"/>
|
|
</view>
|
|
<u-button shape="circle" @click="show = false">关闭</u-button>
|
|
</u-popup>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "agreement",
|
|
data() {
|
|
return {
|
|
agreement: '',
|
|
show: false
|
|
}
|
|
},
|
|
methods: {
|
|
open() {
|
|
this.getAgreement()
|
|
},
|
|
async getAgreement() {
|
|
const res = await vk.callFunction({
|
|
url: 'client/dict/pub/getDetail',
|
|
data: {
|
|
id: '65885d5b862066f18a4e4a36'
|
|
},
|
|
})
|
|
this.agreement = res.content
|
|
this.show = true
|
|
},
|
|
},
|
|
mounted() {
|
|
|
|
},
|
|
}
|
|
</script> |