1.修改视频播放方式

master
杨杰 3 years ago
parent a585a6714e
commit 8866ea3313
  1. 33
      high-unionPay/pages/user/mineCouponsDestails/mineCouponsDestails.vue

@ -33,23 +33,23 @@
</view> </view>
<view class="info" v-else> <view class="info" v-else>
<view class="price"> <view class="price">
<image style="width: 15px;height: 15px;vertical-align: sub;" <image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png">
src="../../../static/img/jfx.png">
</image>{{ product.highCoupon.discountPrice*100}} </image>{{ product.highCoupon.discountPrice*100}}
</view> </view>
<view class="slogan" v-if="product.highCoupon.discountPrice !== product.highCoupon.salesPrice"> <view class="slogan" v-if="product.highCoupon.discountPrice !== product.highCoupon.salesPrice">
<image style="width: 15px;height: 15px;vertical-align: sub;" <image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfh.png">
src="../../../static/img/jfh.png">
</image>{{ product.highCoupon.salesPrice*100}} </image>{{ product.highCoupon.salesPrice*100}}
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="width90 mart10 fcor666" v-if="videourl !=''">视频教程</view> <view class="width90 mart40 fcor666" v-if="videourl != ''">视频教程</view>
<view class="width80 mart10 marb30" v-if="videourl !=''"> <view class="btnplay" @click="playvideo" v-if="videourl != ''">播放视频教学</view>
<view class="width80 mart20 marb30" v-if="isplayvideo">
<yy-video-player :auto-play="false" :url="imageUrl+imagedess1" :poster="poster" :show-back-btn="true"> <yy-video-player :auto-play="false" :url="imageUrl+imagedess1" :poster="poster" :show-back-btn="true">
</yy-video-player> </yy-video-player>
</view> </view>
</view> </view>
</template> </template>
@ -70,7 +70,7 @@
minecoupones: [], minecoupones: [],
imageUrl: app.globalData.imgUrl, imageUrl: app.globalData.imgUrl,
imagewxUrl: app.globalData.imageWxImg, imagewxUrl: app.globalData.imageWxImg,
imgadres:'noorder.png', imgadres: 'noorder.png',
imagedess1: '/CMS/html/11641540903873.mp4', imagedess1: '/CMS/html/11641540903873.mp4',
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
@ -78,7 +78,8 @@
couponsDetails: '', couponsDetails: '',
salesEndTime: '', salesEndTime: '',
couponId: '', couponId: '',
videourl: '' // videourl: '' ,//
isplayvideo: false //
} }
}, },
filters: { filters: {
@ -149,6 +150,10 @@
// uni.navigateTo({ // uni.navigateTo({
// url: '../../goods/goods?id='+e // url: '../../goods/goods?id='+e
// }); // });
},
//
playvideo(){
this.isplayvideo = true;
} }
} }
} }
@ -220,5 +225,17 @@
bottom: 0px; bottom: 0px;
background-color: red; background-color: red;
color: #FFFFFF; color: #FFFFFF;
border-radius: 0px;
}
.btnplay{
width: 120px;
text-align: center;
height: 40px;
line-height: 40px;
color: #FFFFFF;
background-color: #089bf5;
border-radius: 5px;
margin-left: 5%;
margin-top: 20px;
} }
</style> </style>

Loading…
Cancel
Save