Merge branch 'test' of https://e.coding.net/g-cphe0354/duanju/video_app into ymf
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view style="padding-bottom: 20rpx;">
|
||||
|
||||
<!-- 自定义导航栏(带搜索) -->
|
||||
<!-- #ifdef H5 -->
|
||||
<u-navbar :background="background" height="60" :is-back="false" :title="title" :border-bottom="false">
|
||||
@@ -177,6 +178,12 @@
|
||||
:existTabBar="true" @btnClick="btnClick" /> -->
|
||||
<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>
|
||||
<!-- #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>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -233,6 +240,8 @@
|
||||
newVideList: [], //最新热播
|
||||
videoInfo: [],
|
||||
draw: Math.floor((Math.random() * 12) + 1),
|
||||
isWeixin: false,
|
||||
isIos: true,
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
@@ -317,7 +326,17 @@
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
let u = navigator.userAgent;
|
||||
if ( u.toLowerCase().indexOf('micromessenger') !== -1) {
|
||||
this.isWeixin = true
|
||||
}
|
||||
// uni.removeStorageSync('isIos')
|
||||
if ( u.indexOf('iPhone') > -1 && !uni.getStorageSync('isIos')) {
|
||||
uni.setStorageSync('isIos', true)
|
||||
this.isIos = true
|
||||
} else {
|
||||
this.isIos = false
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
//本周热门
|
||||
|
||||
Reference in New Issue
Block a user