Commit 237539b8 authored by zhoucong's avatar zhoucong

处理我的vlog bug

parent 9a899114
......@@ -28,7 +28,7 @@
export default {
data() {
return {
show: true, //显示默认页面
show: true, //跳转过渡页面
vlogList: [], //我的vlog集合
}
},
......@@ -44,10 +44,10 @@
this.$request("wechatUser/myPage/getVlogRecord", {
openid: uni.getStorageSync("openid")
}).then(res => {
this.show = false
if(res.code==="00"){
this.vlogList = res.data
if (this.vlogList.length > 0) { //如果有数据
this.show = false
uni.setNavigationBarColor({ //动态更改导航条颜色
frontColor: '#ffffff',
backgroundColor: '#192033',
......
......@@ -5,7 +5,7 @@
<video class="video" :src="item.productUrl" :poster="item.thumbImageUrl" @error="error" controls
play-btn-position="center" :id="index" @play="playing(index)"></video>
<view class="">
<button v-if="item.shareNumber===4" :data-productUrl="item.productUrl" :data-productId="item.productId" class="btnn"
<button v-if="item.shareNumber===0" :data-productUrl="item.productUrl" :data-productId="item.productId" class="btnn"
open-type="share">分享下载</button>
<button v-else class="btnn" @click="handleDownload">下载视频</button>
<text class="price">¥<text>0</text></text>
......
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