|
@@ -41,12 +41,13 @@
|
|
|
|
|
|
<!-- 投诉建议 -->
|
|
|
<view class="proposal flex">
|
|
|
- <view class="proposal-time flex" v-show="filterActivityList.length" @click="toActivity">
|
|
|
+ <view class="proposal-time flex" v-if="filterActivityList.length" @click="toActivity">
|
|
|
<image src="../../static/index/index_time_top.png" mode="scaleToFill"></image>
|
|
|
<view class="time">
|
|
|
<u-count-down :time="activityTime" format="HH:mm:ss:SSS" autoStart millisecond></u-count-down>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view v-else></view>
|
|
|
<view class="proposal-progress">
|
|
|
<u-line-progress :percentage="percentage" height="3" :showText="false" inactiveColor="rgba(255, 255, 255, .36)" activeColor="#fff" />
|
|
|
</view>
|
|
@@ -70,7 +71,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-item v-for="(item, index) in ticketList" :key="index">
|
|
|
+ <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>
|
|
|
</view>
|
|
@@ -217,6 +218,14 @@
|
|
|
this.setNum(detail.current)
|
|
|
},
|
|
|
|
|
|
+ // 点击名称
|
|
|
+ clickTicketTitle(index) {
|
|
|
+ this.ticketIndex = index
|
|
|
+ this.ticketTitleIndex = index
|
|
|
+ this.getTicketDetail(this.ticketList[index].boxId)
|
|
|
+ this.setNum(index)
|
|
|
+ },
|
|
|
+
|
|
|
setNum(index) {
|
|
|
let num = Math.round(100 / this.list.length)
|
|
|
if (index == 0) {
|
|
@@ -249,6 +258,7 @@
|
|
|
this.filterActivityList = data.filter(item=> {
|
|
|
return JSON.parse(item.status).value == 3
|
|
|
})
|
|
|
+ console.log(this.filterActivityList);
|
|
|
let activityInfo = this.filterActivityList.length ? this.filterActivityList[0] : {}
|
|
|
let timestamp = parseInt(new Date().getTime())
|
|
|
this.activityTime = activityInfo.endTime - timestamp
|