uniapp 方式开发的app
1、页面切换经常会白屏1一会(1-2s),才会显示网页内容
2、安卓中css动画会和卡,ios不会
网页代码详见附件
<template>
<view class="content">
<view class="nav">
<text :class="{'active':active===0}" @tap="clkNav(0)">常见问题</text>
<text :class="{'active':active===1}" @tap="clkNav(1)">意见反馈</text>
</view>
<swiper class="swiper" :current="active" @change="spchange">
<swiper-item>
<image class="no-record center-hv" src="../../../static/invite/otc_kby.png" mode="aspectFit" v-if="allList===null"></image>
<scroll-view class="wrap-list" :scroll-y="true" @scrolltolower="scrolltolowerAll" v-else>
<uni-list>
<uni-list-item v-for="(item,index) in allList" :key="item.id" :title="item.title" :note="item.cont" :showArrow="false" />
</uni-list>
<uni-load-more :status="more"></uni-load-more>
</scroll-view>
</swiper-item>
<swiper-item>
<image class="no-record center-hv" src="../../../static/invite/otc_kby.png" mode="aspectFit" v-if="historyList===null"></image>
<scroll-view class="wrap-list" :scroll-y="true" @scrolltolower="scrolltolowerHistory" v-else>
<uni-list>
<uni-list-item v-for="(item,index) in historyList" :key="item.id" :title="item.question" @tap="clkItem(item)" />
</uni-list>
<uni-load-more :status="more2"></uni-load-more>
</scroll-view>
</swiper-item>
</swiper>
</view>
</template>
<script>
import uniList from '@/components/uni-list/uni-list.vue'
import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
import uniLoadMore from "@/components/uni-load-more/uni-load-more.vue"
import { getGetFeedbackList, getGetHelpList, getGetWtList } from '@/service.js';
export default {
components: {
uniList, uniListItem, uniLoadMore
},
data() {
return {}
},
onNavigationBarButtonTap () {
uni.navigateTo({
url: '/pages/my/help/new'
})
},
onLoad () {
setTimeout(() => {
this.clkNav(0);
}, 500)
uni.$on('freshFeedList', () => {
this.page = 1;
this.clkNav(1);
})
}
}
</script>
Yuhuawang
IOS也是这情况,而且至少白屏1-2秒,这个好像不是背景引起的吧
2019-11-20 17:03
DCloud_heavensoft
回复 Yuhuawang: iOS没有背景操作ui的问题。检查其他原因吧
2019-11-20 18:25