| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <template>
- <view class="page flex-col" :style="{'height':height}">
- <scroll-view scroll-y="true" class="scroll-y ">
- <view class="content-box flex-col">
- <!-- <web-view src="http://www.gzqcdj.cn/doc/2.html"></web-view>-->
- <rich-text v-html="name">
- </rich-text>
- </view>
- </scroll-view>
- <!--#ifdef H5-->
- <liu-drag-button @clickBtn="back">返回</liu-drag-button>
- <!--#endif-->
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- name: '',
- height: '',
- type:''
- };
- },
- mounted() {
- },
- onLoad(option) {
- let sysInfo = uni.getSystemInfoSync();
- this.height = sysInfo.windowHeight + 'px';
- console.log("获取到的高度", this.height)
- uni.setNavigationBarTitle({
- title: option.name
- })
- this.type = option.type
- this.aboutByType(this.type)
- },
- methods: {
- back() {
- let pages = getCurrentPages()
- if (pages.length > 1){
- uni.navigateBack({
- delta: 1,
- fail:err=>{
- console.log(err)
- }
- })
- }else {
- uni.switchTab({
- url: '/pages/my/my'
- });
- }
- },
- aboutByType(type) {
- this.$api.service.aboutByType({type:type}).then(res => {
- this.name = res.data.data.aboutContent
- })
- }
- }
- };
- </script>
- <style lang="scss">
- @import './index.rpx.css';
- </style>
|