179 lines
3.8 KiB
Vue
179 lines
3.8 KiB
Vue
<template>
|
|
<view class="page" :style="themeColor">
|
|
<view class="flex benben-position-layout flex flex-wrap align-center agreementPolicy_flex_0"
|
|
:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
|
|
<view class='flex flex-wrap align-center justify-between flex-sub agreementPolicy_fd0_0'>
|
|
<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
|
|
<text class='fu-iconfont2 agreementPolicy_fd0_0_c0_c0' @tap.stop="handleJumpDiy" data-type="back"
|
|
data-url="1"></text>
|
|
</view>
|
|
<view class='flex flex-wrap align-stretch justify-center flex-sub'>
|
|
<text class='agreementPolicy_fd0_0_c1_c0'>{{title}}</text>
|
|
<!-- <text class='agreementPolicy_fd0_0_c1_c0_1' v-if="type=='2'">隐私政策</text> -->
|
|
</view>
|
|
<view class='flex flex-wrap align-center agreementPolicy_fd0_0_c2'>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
|
|
<view class="ben_fu-jyf-parser_1">
|
|
<jyf-parser :html="parser1 | richTextFormat"></jyf-parser>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
components: {},
|
|
|
|
|
|
data() {
|
|
return {
|
|
"parser1": "",
|
|
type: "",
|
|
title: ''
|
|
};
|
|
},
|
|
computed: {
|
|
themeColor() {
|
|
return this.$store.getters.themeColor
|
|
},
|
|
|
|
},
|
|
watch: {},
|
|
onLoad(options) {
|
|
let {
|
|
type
|
|
} = options
|
|
if (type !== undefined) this.type = type
|
|
|
|
switch (this.type - 0){
|
|
case 8:
|
|
this.title = '用户协议'
|
|
break;
|
|
case 16:
|
|
this.title = '隐私政策'
|
|
break;
|
|
case 17:
|
|
this.title = '到店服务协议'
|
|
break;
|
|
case 18:
|
|
this.title = '商家认证协议'
|
|
break;
|
|
case 22:
|
|
this.title = '积分规则'
|
|
break;
|
|
case 24:
|
|
this.title = '抵用券规则'
|
|
break;
|
|
case 23:
|
|
this.title = '积分规则'
|
|
break;
|
|
case 25:
|
|
this.title = '公司信息'
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
this.getXieyi();
|
|
},
|
|
onUnload() {
|
|
|
|
},
|
|
onReady() {
|
|
|
|
},
|
|
onShow() {
|
|
|
|
},
|
|
onHide() {
|
|
|
|
},
|
|
onResize() {
|
|
|
|
},
|
|
onPullDownRefresh() {
|
|
|
|
},
|
|
onReachBottom(e) {
|
|
|
|
},
|
|
onPageScroll(e) {
|
|
|
|
},
|
|
methods: {
|
|
getXieyi(type) {
|
|
this.$api.post(global.apiUrls.getXieyi, {aid: this.type}).then(res => {
|
|
if (res.data.code == 1) {
|
|
let info = res.data.data;
|
|
this.parser1 = info.body;
|
|
}
|
|
})
|
|
.catch(err => {
|
|
console.log(err);
|
|
});
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.page {
|
|
width: 100vw;
|
|
overflow-x: hidden;
|
|
min-height: calc(100vh - var(--window-bottom));
|
|
background: #fff;
|
|
background-size: 100% auto !important;
|
|
}
|
|
|
|
.agreementPolicy_flex_0 {
|
|
background: #fff;
|
|
width: 750rpx;
|
|
height: 88rpx;
|
|
z-index: 10;
|
|
top: 0rpx;
|
|
background-size: 100% auto !important;
|
|
}
|
|
|
|
.agreementPolicy_fd0_0_c2 {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
}
|
|
|
|
.agreementPolicy_fd0_0_c1_c0_1 {
|
|
font-size: 36rpx;
|
|
font-weight: 500;
|
|
color: #333333;
|
|
line-height: 50rpx;
|
|
}
|
|
|
|
.agreementPolicy_fd0_0_c1_c0 {
|
|
font-size: 36rpx;
|
|
font-weight: 500;
|
|
color: #333333;
|
|
line-height: 50rpx;
|
|
}
|
|
|
|
.agreementPolicy_fd0_0_c0_c0 {
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
color: #333;
|
|
line-height: 88rpx;
|
|
}
|
|
|
|
.agreementPolicy_fd0_0 {
|
|
border-bottom: 1px solid rgba(238, 238, 238, 1);
|
|
padding: 0rpx 24rpx 0rpx 24rpx;
|
|
}
|
|
|
|
.ben_fu-jyf-parser_1 {
|
|
background-color: #fff;
|
|
padding-left: 32rpx;
|
|
padding-right: 32rpx;
|
|
padding-top: 32rpx;
|
|
padding-bottom: 32rpx;
|
|
|
|
}
|
|
</style>
|