diff --git a/template/uni-app/components/cusPreviewImg/swiperPrevie.vue b/template/uni-app/components/cusPreviewImg/swiperPrevie.vue new file mode 100644 index 000000000..457ef501e --- /dev/null +++ b/template/uni-app/components/cusPreviewImg/swiperPrevie.vue @@ -0,0 +1,150 @@ + + + + + diff --git a/template/uni-app/components/productConSwiper/index.vue b/template/uni-app/components/productConSwiper/index.vue index da1950b26..6f408941c 100644 --- a/template/uni-app/components/productConSwiper/index.vue +++ b/template/uni-app/components/productConSwiper/index.vue @@ -6,10 +6,9 @@ - + @@ -34,7 +33,7 @@ - + @@ -108,6 +107,10 @@ }, change: function(e) { this.$set(this, 'currents', e.detail.current + 1); + }, + // 查看图片详情 + openImage(index) { + this.$emit('showSwiperImg', index) } } } @@ -148,11 +151,12 @@ width: 100%; height: 100%; } - - .goods-video{ - width: 100%; - height: 100%; + + .goods-video { + width: 100%; + height: 100%; } + .product-bg .item { position: relative; width: 100%; diff --git a/template/uni-app/pages/activity/goods_seckill_details/index.vue b/template/uni-app/pages/activity/goods_seckill_details/index.vue index 515dab4d9..273493fd1 100644 --- a/template/uni-app/pages/activity/goods_seckill_details/index.vue +++ b/template/uni-app/pages/activity/goods_seckill_details/index.vue @@ -42,7 +42,7 @@ - + {{$t(`¥`)}}{{storeInfo.price || ''}} @@ -221,6 +221,7 @@ + + :videoline="storeInfo.video_link" @videoPause="videoPause" @showSwiperImg="showSwiperImg"> +