Commit 4c031cd0 authored by caimeng's avatar caimeng

更新弹框有bug;已修复

parent 3a74269c
......@@ -16,7 +16,7 @@ export default {
uni.setStorageSync('version', res.appVersion)
}
})
// 强制竖屏
plus.screen.lockOrientation("portrait-primary")
......@@ -44,15 +44,13 @@ export default {
// 存储所有请求的头部信息
uni.setStorage({ key: 'm-header-version', data: versionNumber });
})
/*** tabbar*/
switchShowTabbar()
},
async onShow() {
await ininIndex()
await initSettings()
await initApp()
switchShowTabbar()
},
/** 切换到后台 */
onHide() {
......
This diff is collapsed.
......@@ -235,9 +235,9 @@
}
}
}
.box-at-home{
// height: 1200rpx;
.box-at-home{
background:#F7FAFF ;
.main-box{
display:flex;
flex-wrap: wrap;
......
......@@ -3,6 +3,7 @@
<view class='i-header' v-show='isFixed != true'>
<text>多典花</text>
</view>
<view v-if='index !== null' class='i-boxs'>
<!-- Banner 位 -->
<view class='i-banner'>
......@@ -76,9 +77,9 @@
</view>
</view>
</scroll-view>
</view>
</view>
</view>
<!-- 更新 -->
......@@ -88,8 +89,7 @@
</template>
<script>
import { isLogin, ininIndex } from '@/utils/index'
import { isLogin, switchShowTabbar, ininIndex } from '@/utils/index'
const cacheIndexData = uni.getStorageSync('dataIndex') ? JSON.parse(uni.getStorageSync('dataIndex')) : null;
export default {
......@@ -97,7 +97,7 @@ export default {
return {
index: cacheIndexData,
hotList: [
{ title: '浏览量', id: 0 },
{ title: '价格', id: 1 },
......@@ -108,7 +108,7 @@ export default {
headerHeight: 0,
scrollTop: 0,
IndexList: [],
pageNum: 1,
pageSize: 50,
......@@ -134,16 +134,19 @@ export default {
},
async onLoad() {
this.isFirstShow = uni.getStorageSync('isFirstShow')
await this.getAppVersion()
},
async onShow() {
// 初始化首页数据
ininIndex()
// 显示隐藏tabBar
// switchShowTabbar()
// initSettings()
switchShowTabbar()
// 首页流量埋点
this.buryingPoint('app:index_page_view')
await this.initAjax();
// await this.getAppVersion()
},
methods: {
......
......@@ -9,9 +9,7 @@ import { ininIndex, initSettings, initApp } from '@/utils/index'
export default {
async onLoad() {
await ininIndex()
await initSettings()
await initApp()
// 有网络了再弹窗
uni.getNetworkType({
......@@ -33,6 +31,9 @@ export default {
})
await ininIndex()
await initSettings()
await initApp()
},
methods: {
init() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment