Files
midi-h5/pages/other/aboutUs.vue

73 lines
1.6 KiB
Vue
Raw Normal View History

2025-08-11 11:51:38 +08:00
<template>
2025-08-14 11:26:34 +08:00
<view class="view-page" :style="{backgroundImage : `url('${ThemeData?.app_bg ?? $config.PRIMARY_BGURL}')`}">
2025-08-11 11:51:38 +08:00
<!-- <headerHeight /> -->
<navBar :style="{marginTop: `${statusBarHeight}${uni.getSystemInfoSync().platform === 'ios' ? 'px': 'dp'}`}" :navTitle="`关于我们`" :emitBack="true" @backEvent="back">
</navBar>
<view class="dec-view">
2025-09-02 16:28:18 +08:00
<web-view :src="`${httpUrl}/api/Page/page_show?id=20`"></web-view>
2025-08-11 11:51:38 +08:00
</view>
</view>
</template>
<script>
2025-09-02 16:28:18 +08:00
import config from '@/until/config.js';
2025-08-11 11:51:38 +08:00
import navBar from '@/component/nav.vue';
export default {
components: {
navBar
},
data() {
return {
2025-08-13 10:51:01 +08:00
statusBarHeight:0,
2025-09-02 16:28:18 +08:00
ThemeData:null,
httpUrl:null
2025-08-11 11:51:38 +08:00
}
},
onLoad(options) {
2025-09-02 16:28:18 +08:00
this.httpUrl = config.BASE_URL
2025-08-11 11:51:38 +08:00
const {
h
} = options
this.statusBarHeight = h
2025-08-13 10:51:01 +08:00
if(uni.getStorageSync('Theme_Data')) {
this.ThemeData = JSON.parse(uni.getStorageSync('Theme_Data'))
}
2025-08-11 11:51:38 +08:00
},
methods: {
back() {
this.closeWeb()
},
closeWeb(){
const platform = uni.getSystemInfoSync().platform;
if (platform === 'ios') {
window.webkit.messageHandlers.nativeHandler.postMessage({
'action': 'closeWeb'
});
} else if (platform === 'android') {
window.Android.closeWeb();
}
},
}
}
</script>
<style scoped lang="scss">
.view-page {
min-height: 100vh;
font-family: Source Han Sans CN, Source Han Sans CN;
2025-08-13 10:51:01 +08:00
// background-image: url('@/static/image/help/bg.png');
2025-08-11 11:51:38 +08:00
background-repeat: no-repeat;
background-size: 100% 100%;
img{
width: 100%;
}
.dec-view {
min-height: calc(99vh - 160rpx);
position: relative;
border-radius: 16rpx;
margin: 24rpx;
}
}
</style>