2022-07-08 08:15:29 +00:00
|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<status-nav :ifReturn="true" navBarTitle="个人中心" :marginBottom="0"></status-nav>
|
|
|
|
<!-- 内容 -->
|
|
|
|
<view class="disclaimers" :style="{'min-height':disclaimersHeight}">
|
|
|
|
<view class="disclaimers-title">免责条款</view>
|
|
|
|
<view class="disclaimers-txt">
|
|
|
|
<rich-text :nodes="disclaimers"></rich-text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import statusNav from '@/components/status-navs/status-nav';
|
2022-07-25 03:18:38 +00:00
|
|
|
import {userInfoEv} from '@/jsFile/public-api.js';
|
2022-07-08 08:15:29 +00:00
|
|
|
export default {
|
|
|
|
components:{
|
|
|
|
statusNav
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
disclaimersHeight: `calc(100vh - ${uni.getSystemInfoSync().statusBarHeight + 50}px)`,
|
|
|
|
disclaimers:'',
|
2022-07-15 03:05:54 +00:00
|
|
|
cacheBusinessId:-1, //商户id
|
2022-07-08 08:15:29 +00:00
|
|
|
}
|
|
|
|
},
|
2022-07-12 10:07:08 +00:00
|
|
|
onLoad(op) {
|
|
|
|
if(op.business_id){
|
2022-07-15 03:05:54 +00:00
|
|
|
this.cacheBusinessId = op.business_id;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
if(this.cacheBusinessId !== -1){
|
|
|
|
this.$requst.post('/api/index/change-business',{business_id:this.cacheBusinessId}).then(res=>{
|
2022-07-12 10:07:08 +00:00
|
|
|
if(res.code == 0){
|
|
|
|
this.getDisclaimers();
|
2022-07-13 08:04:38 +00:00
|
|
|
userInfoEv();
|
2022-07-12 10:07:08 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
this.getDisclaimers();
|
2022-07-13 08:04:38 +00:00
|
|
|
userInfoEv();
|
2022-07-12 10:07:08 +00:00
|
|
|
}
|
2022-07-08 08:15:29 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
// 查询免责声明
|
|
|
|
getDisclaimers(){
|
2022-07-14 02:00:23 +00:00
|
|
|
uni.showLoading({
|
|
|
|
title: '加载中'
|
|
|
|
});
|
2022-07-08 08:15:29 +00:00
|
|
|
this.$requst.get('/api/index/statement').then(res=>{
|
|
|
|
if(res.code==0){
|
|
|
|
this.disclaimers = this.$toolAll.tools.escape2Html(res.data.content);
|
|
|
|
} else {
|
|
|
|
this.$toolAll.tools.showToast(res.msg);
|
|
|
|
}
|
|
|
|
uni.hideLoading();
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
</style>
|