29 lines
424 B
Vue
29 lines
424 B
Vue
<template>
|
|
<view class="content" v-html="src">
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
src: ''
|
|
};
|
|
},
|
|
async onLoad(options) {
|
|
let res = await this.api.useruserpolicy();
|
|
if (options.src == 1) {
|
|
//用户协议
|
|
this.src = res.data.agreement
|
|
} else {
|
|
this.src = res.data.policy
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
<style scoped>
|
|
.content {
|
|
padding: 20rpx 30rpx;
|
|
}
|
|
</style> |