2025-08-11 11:06:07 +08:00
|
|
|
<template>
|
2025-10-23 16:04:28 +08:00
|
|
|
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg || $config.PRIMARY_BGURL}')`}">
|
|
|
|
|
<navBar :navTitle="`规则说明`" :style="{'margin-top' : `${statusBarHeight || 0}px`}">
|
2025-08-11 11:06:07 +08:00
|
|
|
</navBar>
|
|
|
|
|
<view class="dec-view" v-if="flagIndex !== null">
|
2025-10-23 16:04:28 +08:00
|
|
|
<web-view :src="`${httpUrl}/api/Page/page_show?id=${flagIndex === 1 ? 10 : 11}`"></web-view>
|
2025-08-11 11:06:07 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import navBar from '@/component/nav.vue';
|
2025-10-23 16:04:28 +08:00
|
|
|
import config from '@/until/config.js';
|
2025-08-11 11:06:07 +08:00
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
navBar
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2025-10-23 16:04:28 +08:00
|
|
|
httpUrl: null,
|
|
|
|
|
statusBarHeight: 0,
|
|
|
|
|
flagIndex: null,
|
|
|
|
|
ThemeData: null
|
2025-08-11 11:06:07 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
const {
|
2025-10-23 16:04:28 +08:00
|
|
|
h,
|
|
|
|
|
flag
|
2025-08-11 11:06:07 +08:00
|
|
|
} = options
|
|
|
|
|
this.flagIndex = +flag
|
2025-10-23 16:04:28 +08:00
|
|
|
this.httpUrl = config.BASE_URL
|
2025-08-11 11:06:07 +08:00
|
|
|
this.statusBarHeight = h
|
2025-10-23 16:04:28 +08:00
|
|
|
if (uni.getStorageSync('Theme_Data')) {
|
2025-08-13 10:39:47 +08:00
|
|
|
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
|
|
|
|
|
}
|
2025-08-11 11:06:07 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.view-page {
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
2025-08-13 10:39:47 +08:00
|
|
|
// background-image: url('@/static/image/help/bg.png');
|
2025-08-11 11:06:07 +08:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
2025-10-23 16:04:28 +08:00
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
width: 100%;
|
2025-08-11 11:06:07 +08:00
|
|
|
}
|
2025-10-23 16:04:28 +08:00
|
|
|
|
2025-08-11 11:06:07 +08:00
|
|
|
.dec-view {
|
|
|
|
|
min-height: calc(99vh - 160rpx);
|
|
|
|
|
position: relative;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
margin: 24rpx;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|