111
This commit is contained in:
parent
5a49868556
commit
7335f0baf8
|
|
@ -58,7 +58,7 @@
|
|||
<view class="" style="width: 544rpx; height: 500rpx; margin: 0 auto 0;">
|
||||
|
||||
<swiper class="swiper-box" :current="currentItemId" :style="{ height: '500rpx' }" :autoplay="false"
|
||||
:indicator-dots="false" :circular="true" :interval="3000">
|
||||
@change="handleSwiperChange" :indicator-dots="false" :circular="true" :interval="3000">
|
||||
<swiper-item v-for="(item, index) in goodsList" :key="index" :item-id="item.index">
|
||||
|
||||
<view
|
||||
|
|
@ -217,7 +217,10 @@ export default {
|
|||
await this.load(options.goods_id)
|
||||
},
|
||||
methods: {
|
||||
|
||||
handleSwiperChange(e) {
|
||||
console.log(e.detail.current);
|
||||
this.currentItemId = e.detail.current
|
||||
},
|
||||
async load(goods_id) {
|
||||
const res = await this.req({
|
||||
url: "fuliwu_detail",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user