首页 undefined

This commit is contained in:
GYJ 2024-12-14 17:19:48 +08:00
parent 31601ff334
commit fa60aeec42
1 changed files with 29 additions and 16 deletions

View File

@ -107,12 +107,18 @@
</view> </view>
</view> </view>
</view> </view>
<recommendVideo @more="moreVideo" @video="seVideo" v-if="rmVideList.length>0" :list="rmVideList" <view v-if="rmVideList.length>0">
title="本周热门" typeId="2" /> <recommendVideo @more="moreVideo" @video="seVideo" v-if="rmVideList.length>0" :list="rmVideList"
<recommendVideo @more="moreVideo" @video="seVideo" v-if="phbVideoList.length>0" :list="phbVideoList" title="本周热门" typeId="2" />
title="本周排行榜" typeId="1" /> </view>
<recommendVideo @more="moreVideo" @video="seVideo" v-if="newVideList.length>0" :list="newVideList" <view v-if="rmVideList.length>0">
title="最新热播" typeId="" /> <recommendVideo @more="moreVideo" @video="seVideo" v-if="phbVideoList.length>0" :list="phbVideoList"
title="本周排行榜" typeId="1" />
</view>
<view v-if="rmVideList.length>0">
<recommendVideo @more="moreVideo" @video="seVideo" v-if="newVideList.length>0" :list="newVideList"
title="最新热播" typeId="" />
</view>
<!-- 视频列表 --> <!-- 视频列表 -->
<view class="videTitle flex align-center justify-center"> <view class="videTitle flex align-center justify-center">
<view class="videTitle-box"> <view class="videTitle-box">
@ -179,10 +185,14 @@
<u-image @click="goMsg('/me/choujiang/choujiang')" :src="`../../static/images/draw/draw.gif`" <u-image @click="goMsg('/me/choujiang/choujiang')" :src="`../../static/images/draw/draw.gif`"
style="width: 150rpx;height: 150rpx;position: fixed;right: 30rpx;bottom: 180rpx;"></u-image> style="width: 150rpx;height: 150rpx;position: fixed;right: 30rpx;bottom: 180rpx;"></u-image>
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<div v-if="isWeixin" style="width: 100%;height: 100%;position: fixed;top: 0;z-index: 999;background: url('../../static/images/open_guide.png') no-repeat center bottom / cover;"></div> <div v-if="isWeixin"
style="width: 100%;height: 100%;position: fixed;top: 0;z-index: 999;background: url('../../static/images/open_guide.png') no-repeat center bottom / cover;">
</div>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<div v-if="isIos" @click="isIos=false" style="width: 100%;height: 100%;position: fixed;top: 0;z-index: 999;background: url('../../static/images/index_guide.png') no-repeat center bottom / 100%;background-color: rgba(0, 0, 0, 0.8);"></div> <div v-if="isIos" @click="isIos=false"
style="width: 100%;height: 100%;position: fixed;top: 0;z-index: 999;background: url('../../static/images/index_guide.png') no-repeat center bottom / 100%;background-color: rgba(0, 0, 0, 0.8);">
</div>
<!-- #endif --> <!-- #endif -->
</view> </view>
</template> </template>
@ -326,11 +336,11 @@
}) })
} }
let u = navigator.userAgent; let u = navigator.userAgent;
if ( u.toLowerCase().indexOf('micromessenger') !== -1) { if (u.toLowerCase().indexOf('micromessenger') !== -1) {
this.isWeixin = true this.isWeixin = true
} }
// uni.removeStorageSync('isIos') // uni.removeStorageSync('isIos')
if ( u.indexOf('iPhone') > -1 && !uni.getStorageSync('isIos')) { if (u.indexOf('iPhone') > -1 && !uni.getStorageSync('isIos')) {
uni.setStorageSync('isIos', true) uni.setStorageSync('isIos', true)
this.isIos = true this.isIos = true
} else { } else {
@ -753,16 +763,19 @@
// //
goPage(item) { goPage(item) {
let token = uni.getStorageSync('token') let token = uni.getStorageSync('token')
const {url,jumpType}=item const {
url,
jumpType
} = item
if (token) { if (token) {
if (url) { if (url) {
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) { if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
if(jumpType==1){ if (jumpType == 1) {
console.log(url); console.log(url);
uni.navigateTo({ uni.navigateTo({
url url
}); });
}else{ } else {
uni.navigateTo({ uni.navigateTo({
url: '/pages/index/webView?url=' + url url: '/pages/index/webView?url=' + url
}); });