48 lines
999 B
Vue
48 lines
999 B
Vue
<template>
|
|
<view>
|
|
<status-nav :ifReturn="true" navBarTitle="关于我们" :marginBottom="0"></status-nav>
|
|
<!-- 内容 -->
|
|
<view class="disclaimers border-box" :style="{'min-height':aboutHeight}">
|
|
<view class="disclaimers-txt font24 color-8c">
|
|
<rich-text :nodes="about"></rich-text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {mapState} from 'vuex'//引入mapState
|
|
export default {
|
|
data() {
|
|
return {
|
|
aboutHeight: `calc(100vh - ${uni.getSystemInfoSync().statusBarHeight + 50}px)`,
|
|
about:'',
|
|
}
|
|
},
|
|
onLoad(op) {
|
|
// 查询关于我们
|
|
this.getAbout();
|
|
},
|
|
methods: {
|
|
// 查询关于我们
|
|
getAbout(){
|
|
uni.showLoading({
|
|
title:'加载中'
|
|
});
|
|
this.$requst.get('/api/index/about').then(res=>{
|
|
if(res.code==0){
|
|
this.about = this.$toolAll.tools.escape2Html(res.data.content);
|
|
} else {
|
|
this.$toolAll.tools.showToast(res.msg);
|
|
}
|
|
uni.hideLoading();
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style>
|