初始化
This commit is contained in:
29
pages/webview/html.vue
Normal file
29
pages/webview/html.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user