|
@@ -29,7 +29,7 @@
|
|
|
|
|
|
<!-- 盲票轮播 -->
|
|
|
<view class="ticket">
|
|
|
- <swiper class="ticket-swiper" :current="ticketIndex" :autoplay="false" :circular="true" @change="changeTicket">
|
|
|
+ <swiper class="ticket-swiper" :current="ticketIndex" :autoplay="false" :circular="true" :duration="200" @change="changeTicket">
|
|
|
<swiper-item v-for="(item, index) in ticketList" :key="index" @click="toTicketBox(item)">
|
|
|
<view class="ticket-swiper-item flex">
|
|
|
<image class="ticket-swiper-item-box" :src="item.picUrl[2]" mode="scaleToFill"></image>
|
|
@@ -70,7 +70,7 @@
|
|
|
|
|
|
<!-- 盲票名称轮播 -->
|
|
|
<view class="ticket-title" flex>
|
|
|
- <swiper class="ticket-title-swiper flex" :current="ticketTitleIndex" previous-margin="110px" next-margin="110px" :autoplay="false" :circular="true" @change="changeTicketTitle">
|
|
|
+ <swiper class="ticket-title-swiper flex" :duration="0" :current="ticketTitleIndex" previous-margin="110px" next-margin="110px" :autoplay="false" :circular="true" @change="changeTicketTitle">
|
|
|
<swiper-item v-for="(item, index) in ticketList" :key="index" @click="clickTicketTitle(index)">
|
|
|
<view class="ticket-title-swiper-item flex" :class="{ 'action': ticketTitleIndex == index }">
|
|
|
<text>{{ item.title }}</text>
|
|
@@ -196,7 +196,7 @@
|
|
|
this.setNum(detail.current)
|
|
|
setTimeout(()=> {
|
|
|
this.clickLoading = true
|
|
|
- }, 500)
|
|
|
+ }, 200)
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -210,22 +210,16 @@
|
|
|
this.setNum(detail.current)
|
|
|
setTimeout(()=> {
|
|
|
this.clickLoading = true
|
|
|
- }, 500)
|
|
|
+ }, 200)
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// 点击名称
|
|
|
clickTicketTitle(index) {
|
|
|
- if(this.clickLoading) {
|
|
|
- this.clickLoading = false
|
|
|
- this.ticketIndex = index
|
|
|
- this.ticketTitleIndex = index
|
|
|
- this.getTicketDetail(this.ticketList[index].boxId)
|
|
|
- this.setNum(index)
|
|
|
- setTimeout(()=> {
|
|
|
- this.clickLoading = true
|
|
|
- }, 1000)
|
|
|
- }
|
|
|
+ this.ticketIndex = index
|
|
|
+ this.ticketTitleIndex = index
|
|
|
+ this.getTicketDetail(this.ticketList[index].boxId)
|
|
|
+ this.setNum(index)
|
|
|
},
|
|
|
|
|
|
setNum(index) {
|
|
@@ -254,9 +248,11 @@
|
|
|
// 活动
|
|
|
getActivityList() {
|
|
|
$http.post(`/api/v1/mp/user/marketing/recent`, {}).then(res => {
|
|
|
- let data = res && res.data
|
|
|
- let timestamp = parseInt(new Date().getTime())
|
|
|
- this.activityTime = data.endTime - timestamp
|
|
|
+ if(res && res.data) {
|
|
|
+ let data = res && res.data
|
|
|
+ let timestamp = parseInt(new Date().getTime())
|
|
|
+ this.activityTime = data.endTime - timestamp
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
|