2025-12-03 18:59:18 +08:00
|
|
|
<template>
|
2025-12-31 14:44:40 +08:00
|
|
|
<view class="view-page" :style="{backgroundImage: `url('${ThemeData ? ThemeData.app_bg : baseBgUrl }')`}">
|
2025-12-03 18:59:18 +08:00
|
|
|
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}"
|
|
|
|
|
:navTitle="'公会协议'">
|
|
|
|
|
</navBar>
|
|
|
|
|
<view class="dec-view" v-if="detailData">
|
2025-12-31 14:44:40 +08:00
|
|
|
<view class="" v-for="(item,index) in agreemenrList" :key="index">
|
|
|
|
|
<img :src="item" alt="" />
|
|
|
|
|
</view>
|
2025-12-03 18:59:18 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
2025-12-31 14:44:40 +08:00
|
|
|
// import PdfCanvasViewer from '@/component/pdf-canvas-viewer.vue';
|
2025-12-03 18:59:18 +08:00
|
|
|
import http from '@/until/http.js';
|
|
|
|
|
import navBar from '@/component/nav.vue';
|
|
|
|
|
import config from '@/until/config.js';
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
navBar
|
2025-12-31 14:44:40 +08:00
|
|
|
// PdfCanvasViewer
|
2025-12-03 18:59:18 +08:00
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
baseBgUrl: config.new_unionUrl || '',
|
|
|
|
|
unionBgUrl: config.unicon_url || '',
|
|
|
|
|
statusBarHeight: 0,
|
|
|
|
|
ThemeData: null,
|
2025-12-31 14:44:40 +08:00
|
|
|
detailData: null,
|
|
|
|
|
isAndroid: false,
|
|
|
|
|
agreemenrList: []
|
2025-12-03 18:59:18 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
const {
|
|
|
|
|
h
|
|
|
|
|
} = options
|
|
|
|
|
this.statusBarHeight = h
|
|
|
|
|
uni.setStorageSync('BarHeight', h)
|
2025-12-31 14:44:40 +08:00
|
|
|
if (uni.getStorageSync('token')) this.getInfo()
|
|
|
|
|
|
2025-12-03 18:59:18 +08:00
|
|
|
},
|
2025-12-31 14:44:40 +08:00
|
|
|
methods: {
|
2025-12-03 18:59:18 +08:00
|
|
|
async getInfo() {
|
|
|
|
|
http.get('/api/Guild/my_guild', {
|
|
|
|
|
token: uni.getStorageSync('token') || ''
|
|
|
|
|
}).then(response => {
|
2025-12-31 14:44:40 +08:00
|
|
|
|
2025-12-03 18:59:18 +08:00
|
|
|
const {
|
|
|
|
|
data,
|
|
|
|
|
code
|
|
|
|
|
} = response
|
|
|
|
|
this.detailData = code ? data : false
|
2025-12-31 14:44:40 +08:00
|
|
|
this.agreemenrList = this.detailData.agreement.split(',')
|
2025-12-03 18:59:18 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.view-page {
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
|
|
|
|
.dec-view {
|
|
|
|
|
min-height: calc(99vh - 160rpx);
|
|
|
|
|
position: relative;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
margin: 24rpx;
|
|
|
|
|
// background-color: white;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|