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); + }) + } } }) },