mall-laonong/pagesB/disclaimers/disclaimers.vue

48 lines
1.1 KiB
Vue
Raw Permalink Normal View History

2022-07-31 02:14:22 +00:00
<template>
<view>
<status-nav :ifReturn="true" navBarTitle="免责声明" :marginBottom="0"></status-nav>
<!-- 内容 -->
<view class="disclaimers border-box" :style="{'min-height':disclaimersHeight}">
<view class="disclaimers-txt font24 color-8c">
<rich-text :nodes="disclaimers"></rich-text>
</view>
</view>
</view>
</template>
<script>
import {mapState} from 'vuex'//引入mapState
export default {
data() {
return {
disclaimersHeight: `calc(100vh - ${uni.getSystemInfoSync().statusBarHeight + 50}px)`,
disclaimers:'',
}
},
onLoad(op) {
// 查询免责声明
this.getDisclaimers();
},
methods: {
// 查询免责声明
getDisclaimers(){
uni.showLoading({
title:'加载中'
});
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>