hwb0 3 gadi atpakaļ
vecāks
revīzija
90b824bb3d
1 mainītis faili ar 8 papildinājumiem un 14 dzēšanām
  1. 8 14
      pages/index/index.vue

+ 8 - 14
pages/index/index.vue

@@ -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) {