最近业务调整
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
<template>
|
||||
<view class="view-page" :style="{backgroundImage: `url('${ThemeData?.app_bg || baseBgUrl}')`}">
|
||||
<view class="view-page" :style="{backgroundImage: `url('${ThemeData ? ThemeData.app_bg : baseBgUrl }')`}">
|
||||
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
|
||||
:navTitle="'公会协议'">
|
||||
</navBar>
|
||||
<view class="dec-view" v-if="detailData">
|
||||
<web-view :src="detailData.agreement"></web-view>
|
||||
<view class="" v-for="(item,index) in agreemenrList" :key="index">
|
||||
<img :src="item" alt="" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import PdfCanvasViewer from '@/component/pdf-canvas-viewer.vue';
|
||||
import http from '@/until/http.js';
|
||||
import navBar from '@/component/nav.vue';
|
||||
import config from '@/until/config.js';
|
||||
export default {
|
||||
components: {
|
||||
navBar
|
||||
// PdfCanvasViewer
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -23,7 +26,9 @@
|
||||
unionBgUrl: config.unicon_url || '',
|
||||
statusBarHeight: 0,
|
||||
ThemeData: null,
|
||||
detailData:null
|
||||
detailData: null,
|
||||
isAndroid: false,
|
||||
agreemenrList: []
|
||||
|
||||
}
|
||||
},
|
||||
@@ -33,19 +38,21 @@
|
||||
} = options
|
||||
this.statusBarHeight = h
|
||||
uni.setStorageSync('BarHeight', h)
|
||||
if(uni.getStorageSync('token'))this.getInfo()
|
||||
if (uni.getStorageSync('token')) this.getInfo()
|
||||
|
||||
},
|
||||
methods:{
|
||||
methods: {
|
||||
async getInfo() {
|
||||
http.get('/api/Guild/my_guild', {
|
||||
token: uni.getStorageSync('token') || ''
|
||||
}).then(response => {
|
||||
|
||||
const {
|
||||
data,
|
||||
code
|
||||
} = response
|
||||
// console.log(data)
|
||||
this.detailData = code ? data : false
|
||||
this.agreemenrList = this.detailData.agreement.split(',')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user