修改演示站点发现的问题

master
学习很差啦 2022-08-18 12:44:53 +08:00
parent f7c310b126
commit 116c168ed7
2 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@
</div>
<swiper :options="swiperOption" ref="mySwiper">
<swiper-slide v-for="(item,index) in goodsList" :key="index">
<div class="content hover-pointer" @click="goToSeckill">
<div class="content hover-pointer" @click.stop="goToSeckill">
<img :src="item.goodsImage" width="140" height="140" :alt="item.goodsName">
<div class="ellipsis">{{item.goodsName}}</div>
<div>
@ -58,7 +58,7 @@ export default {
seconds: 0, //
interval: null, //
swiperOption: { //
loop: true,
slidesPerView: 5,
//
navigation: {
@ -157,6 +157,7 @@ export default {
// ]
this.list = this.data.options.list
this.goodsList = this.list[0].seckillGoodsList
console.log( this.goodsList)
this.countDown(this.currIndex)
}
}

View File

@ -363,7 +363,7 @@
<!-- 链接地址-->
<div
class="decorate-view"
v-if="item.url.url && item.url.___type == 'other'"
v-if="item.url && item.url.url && item.url.___type == 'other'"
>
<div class="decorate-view-title">外部链接</div>
<div>
@ -371,7 +371,7 @@
</div>
</div>
<p v-if="item.url.url && item.url.___type == 'other'">
<p v-if="item.url && item.url.url && item.url.___type == 'other'">
(如非同域名下则在小程序与公众号中无效)
</p>
</div>