From 03bc80f0dff8f2f43022bc1573b94f643b68f652 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Fri, 5 Aug 2022 18:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=86=E9=A2=91=E6=92=AD?= =?UTF-8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/base.css | 1 + components/list.vue | 10 +- pages/tabbar/pagehome/pagehome.vue | 153 ++++++++++++++++++++++++----- pages/tabbar/video/video.vue | 56 ++++++++--- pagesB/play-video/play-video.nvue | 79 ++++++++------- pagesB/shop-detail/shop-detail.vue | 29 +++++- 6 files changed, 244 insertions(+), 84 deletions(-) diff --git a/commons/base.css b/commons/base.css index 42de2cc..9908f69 100644 --- a/commons/base.css +++ b/commons/base.css @@ -33,6 +33,7 @@ image{vertical-align: middle;} .width26{width: 26%;} .width25{width: 25%;} +.posi{position: fixed;z-index: 10;} .posAll{position: fixed;top: 0;left: 0;right: 0;bottom: 0;background-color: rgba(0,0,0,.45);z-index: 12;} .posiszy{position: fixed;left: 0;right: 0;z-index: 5;} .posixzy{position: fixed;left: 0;right: 0;z-index: 2;bottom: 0;} diff --git a/components/list.vue b/components/list.vue index 5ba9eec..69650e8 100644 --- a/components/list.vue +++ b/components/list.vue @@ -9,8 +9,8 @@ ¥{{item.price}} ¥{{item.original_price}} - 购买 - 去学习 + 购买 + 去学习 @@ -20,12 +20,6 @@ diff --git a/pagesB/play-video/play-video.nvue b/pagesB/play-video/play-video.nvue index 53d4786..f7ee50a 100644 --- a/pagesB/play-video/play-video.nvue +++ b/pagesB/play-video/play-video.nvue @@ -1,23 +1,15 @@ @@ -49,6 +51,7 @@ richText:'', shopId:'',//产品id shopInfo:'',//产品详情 + bannerList:[],//产品轮播 } }, onShow() { @@ -73,6 +76,22 @@ this.shopInfo = res.data.detail; // 富文本 this.richText = this.$toolAll.tools.escape2Html(this.shopInfo.content); + // 产品详情 + let newImg = []; + if(this.shopInfo.images){ + newImg = this.shopInfo.images.split(','); + } + if(newImg.length){ + newImg.forEach(item=>{ + let obj = { + imgSrc:item, + url:'', + isVideo:false, + poster:'' + } + this.bannerList.push(obj); + }) + } } }) },