twt 2 年之前
父節點
當前提交
872236c13c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      pages/shop/goodsDetail.vue

+ 2 - 1
pages/shop/goodsDetail.vue

@@ -4,7 +4,8 @@
 		<swiper class="swiper" circular  :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
 			<swiper-item v-for="(item,index) in info.ImgList">
 				<view class="swiper-item">
-					<img mode="aspectFit" :src="item.url" alt="" class="swiper-itemImg">
+					<img mode="aspectFit" :src="item.url" alt="" class="swiper-itemImg" v-if="item.bizType==1">
+					<video :src="item.url" v-if="item.bizType==2" show-fullscreen-btn controls style="width: 100%;height: 100%;"></video>
 				</view>
 			</swiper-item>