333
This commit is contained in:
parent
e69e1798b2
commit
553163ca7c
|
|
@ -3,10 +3,13 @@ import RequestManager from '@/common/request.js'
|
|||
import {
|
||||
sleep,
|
||||
parseQueryString
|
||||
} from '@/common/util.js'
|
||||
} from '@/common/util.js';
|
||||
import {
|
||||
getOrderStatus
|
||||
} from '@/common/server/order.js'
|
||||
} from '@/common/server/order.js';
|
||||
import {
|
||||
getPlatform
|
||||
} from '../server/config';
|
||||
class AppPlatform extends BasePlatform {
|
||||
constructor() {
|
||||
super();
|
||||
|
|
@ -16,12 +19,43 @@ class AppPlatform extends BasePlatform {
|
|||
getPayData(url, data) {
|
||||
return data;
|
||||
}
|
||||
// async getPlatformConfig() {
|
||||
// console.log("开启动态获取数据。。。。。。。。");
|
||||
// const res = await getPlatform();
|
||||
// if (this.config != null) {
|
||||
// if (this.config.isCheck != res.isCheck) {
|
||||
// uni.setStorageSync('platformConfig', res);
|
||||
// plus.runtime.restart();
|
||||
// }
|
||||
// }
|
||||
// this.config = res;
|
||||
// uni.setStorageSync('platformConfig', res);
|
||||
// }
|
||||
// async getConfig() {
|
||||
// // return new Promise((resolve, reject) => {
|
||||
// if (this.config) {
|
||||
// return this.config;
|
||||
// }
|
||||
// if (uni.getStorageSync('platformConfig')) {
|
||||
// this.config = uni.getStorageSync('platformConfig');
|
||||
// this.getPlatformConfig();
|
||||
// return this.config;
|
||||
// }
|
||||
// this.config = {
|
||||
// isCheck: true,
|
||||
// isWebPay: false,
|
||||
// version: '1.0.0',
|
||||
// };
|
||||
// this.getPlatformConfig();
|
||||
// // const res = await getPlatform();
|
||||
// // this.config = res;
|
||||
// return this.config;
|
||||
// }
|
||||
AppLaunch(options) {
|
||||
console.log("AppLaunch", options);
|
||||
uni.hideTabBar({})
|
||||
// uni.hideTabBar({})
|
||||
this.getConfig().then(res => {
|
||||
console.log("AppLaunch", res);
|
||||
|
||||
if (res.isCheck) {
|
||||
console.log("开启审核模式开启审核模式开启审核模式开启审核模式开启审核模式开启审核模式开启审核模式");
|
||||
uni.setTabBarItem({
|
||||
|
|
@ -37,11 +71,23 @@ class AppPlatform extends BasePlatform {
|
|||
index: 3,
|
||||
visible: false,
|
||||
});
|
||||
uni.showTabBar({})
|
||||
// uni.showTabBar({})
|
||||
uni.switchTab({
|
||||
url: '/pages/mall/index'
|
||||
});
|
||||
// uni.tos
|
||||
} else {
|
||||
uni.setTabBarItem({
|
||||
index: 0,
|
||||
visible: true,
|
||||
});
|
||||
uni.setTabBarItem({
|
||||
index: 3,
|
||||
visible: true,
|
||||
});
|
||||
uni.switchTab({
|
||||
url: '/pages/shouye/index'
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
15
pages.json
15
pages.json
|
|
@ -8,6 +8,11 @@
|
|||
"^banner$": "@/components/banner/banner.vue"
|
||||
},
|
||||
"pages": [{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/shouye/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
|
|
@ -388,16 +393,14 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/user/cancel-account-page",
|
||||
"style" :
|
||||
{
|
||||
"path": "pages/user/cancel-account-page",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/hegui/hegui",
|
||||
"style" :
|
||||
{
|
||||
"path": "pages/hegui/hegui",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
121
pages/index/index.vue
Normal file
121
pages/index/index.vue
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<template>
|
||||
<view class="index-page">
|
||||
<view class="about-container">
|
||||
<image class="app-icon" src="https://image.zfunbox.cn/icon_108.png" mode="aspectFit" @click="handleIconClick">
|
||||
</image>
|
||||
<image src="https://image.zfunbox.cn/app/index_login.gif" style="width: 200rpx;height: 200rpx"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PageContainer from '@/components/page-container/page-container.vue'
|
||||
|
||||
|
||||
export default {
|
||||
components: {
|
||||
PageContainer
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
userinfo: null,
|
||||
clickCount: 0,
|
||||
lastClickTime: 0,
|
||||
isTestMode: false,
|
||||
logEnabled: false,
|
||||
version: '',
|
||||
domain: ''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.load();
|
||||
|
||||
},
|
||||
methods: {
|
||||
async load() {
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.index-page {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
.about-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
|
||||
.app-icon {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
margin-top: 20vh;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.app-info {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
|
||||
.app-name {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.app-version {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.test-mode-container {
|
||||
margin-top: 30px;
|
||||
border: 1px dashed #ff6600;
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
width: 80%;
|
||||
|
||||
.test-mode-content {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.test-mode-title {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
color: #ff6600;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.test-mode-item {
|
||||
margin: 10px 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.button-group {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.log-button {
|
||||
width: 48%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.test-button {
|
||||
margin-top: 15px;
|
||||
background-color: #ff6600;
|
||||
color: white;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user