商品展示页面详情图展示

This commit is contained in:
red-deng-deng 2022-01-24 17:04:25 +08:00
parent 0f8af73b78
commit 791a868489
1 changed files with 10 additions and 2 deletions

View File

@ -67,6 +67,10 @@
<p v-if="acctype!='tel'"><span>再次输入:</span><input :type="acctype" :maxlength="maxlen" v-model="reaccount" <p v-if="acctype!='tel'"><span>再次输入:</span><input :type="acctype" :maxlength="maxlen" v-model="reaccount"
placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p> placeholder="请再次输入" @focus="(e)=>focusFn(e)"></p>
</div> </div>
<div v-show="detailUrl" class="detail-bottom">
<img :src="detailUrl">
</div>
<div class="bottom" id="bottom" v-show="describe.type"> <div class="bottom" id="bottom" v-show="describe.type">
<img :src="describe.bg_image" v-show="describe.type==1&&describe.bg_image"> <img :src="describe.bg_image" v-show="describe.type==1&&describe.bg_image">
<div v-html="describe.content" class="goodsTip" v-show="describe.type==3&&describe.content"></div> <div v-html="describe.content" class="goodsTip" v-show="describe.type==3&&describe.content"></div>
@ -142,6 +146,7 @@
suspension: false, suspension: false,
popboxtype: '', popboxtype: '',
describe: {}, describe: {},
detailUrl:'',
successTip: '', successTip: '',
goodInfo: '', goodInfo: '',
bgcolor: '', bgcolor: '',
@ -163,8 +168,11 @@
this.ftcolor = detailsConfig.font_color; this.ftcolor = detailsConfig.font_color;
this.describe = detailsConfig.describe; this.describe = detailsConfig.describe;
this.goodInfo = JSON.parse(sessionStorage.getItem('goodsInfo')); let goodsInform=JSON.parse(sessionStorage.getItem('goodsInfo'));//商品信息
this.goodsShow = JSON.parse(sessionStorage.getItem('goodsInfo')).describe_url?[JSON.parse(sessionStorage.getItem('goodsInfo')).describe_url]:[JSON.parse(sessionStorage.getItem('goodsInfo')).show_url]; this.goodInfo = goodsInform;
let goods_desc=goodsInform.describe_url.split(',');
this.goodsShow = goods_desc.length>0?goods_desc:[JSON.parse(sessionStorage.getItem('goodsInfo')).show_url];
this.detailUrl=goodsInform.detail_url;
this.productType = JSON.parse(sessionStorage.getItem('goodsInfo')).account_type; this.productType = JSON.parse(sessionStorage.getItem('goodsInfo')).account_type;
self.$nextTick(function () { self.$nextTick(function () {