首页 undefined
This commit is contained in:
parent
31601ff334
commit
fa60aeec42
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view style="padding-bottom: 20rpx;">
|
||||
|
||||
|
||||
<!-- 自定义导航栏(带搜索) -->
|
||||
<!-- #ifdef H5 -->
|
||||
<u-navbar :background="background" height="60" :is-back="false" :title="title" :border-bottom="false">
|
||||
|
|
@ -107,12 +107,18 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<recommendVideo @more="moreVideo" @video="seVideo" v-if="rmVideList.length>0" :list="rmVideList"
|
||||
title="本周热门" typeId="2" />
|
||||
<recommendVideo @more="moreVideo" @video="seVideo" v-if="phbVideoList.length>0" :list="phbVideoList"
|
||||
title="本周排行榜" typeId="1" />
|
||||
<recommendVideo @more="moreVideo" @video="seVideo" v-if="newVideList.length>0" :list="newVideList"
|
||||
title="最新热播" typeId="" />
|
||||
<view v-if="rmVideList.length>0">
|
||||
<recommendVideo @more="moreVideo" @video="seVideo" v-if="rmVideList.length>0" :list="rmVideList"
|
||||
title="本周热门" typeId="2" />
|
||||
</view>
|
||||
<view v-if="rmVideList.length>0">
|
||||
<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-box">
|
||||
|
|
@ -179,10 +185,14 @@
|
|||
<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>
|
||||
<!-- #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 -->
|
||||
<!-- #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 -->
|
||||
</view>
|
||||
</template>
|
||||
|
|
@ -326,11 +336,11 @@
|
|||
})
|
||||
}
|
||||
let u = navigator.userAgent;
|
||||
if ( u.toLowerCase().indexOf('micromessenger') !== -1) {
|
||||
if (u.toLowerCase().indexOf('micromessenger') !== -1) {
|
||||
this.isWeixin = true
|
||||
}
|
||||
// uni.removeStorageSync('isIos')
|
||||
if ( u.indexOf('iPhone') > -1 && !uni.getStorageSync('isIos')) {
|
||||
if (u.indexOf('iPhone') > -1 && !uni.getStorageSync('isIos')) {
|
||||
uni.setStorageSync('isIos', true)
|
||||
this.isIos = true
|
||||
} else {
|
||||
|
|
@ -753,21 +763,24 @@
|
|||
//轮播图跳转
|
||||
goPage(item) {
|
||||
let token = uni.getStorageSync('token')
|
||||
const {url,jumpType}=item
|
||||
const {
|
||||
url,
|
||||
jumpType
|
||||
} = item
|
||||
if (token) {
|
||||
if (url) {
|
||||
if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) {
|
||||
if(jumpType==1){
|
||||
if (jumpType == 1) {
|
||||
console.log(url);
|
||||
uni.navigateTo({
|
||||
url
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/webView?url=' + url
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
//#ifndef H5
|
||||
uni.navigateTo({
|
||||
|
|
@ -1041,7 +1054,7 @@
|
|||
height: auto;
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
|
||||
|
||||
.swipers-box {
|
||||
width: 686rpx;
|
||||
height: 270rpx;
|
||||
|
|
|
|||
Loading…
Reference in New Issue