Browse Source

倒计时显示问题

zhanghui 1 year ago
parent
commit
60d409e6ed

+ 2 - 2
pages/groupbuying_details/index.vue

@@ -74,10 +74,10 @@
                   <text class="yellow" v-else>开团倒计时</text>
 									<!-- <text class="red2">02时25分19秒</text> -->
 									<u-count-down v-if="storeInfo.isStart"  :style="{'height':'96rpx'}" :time="storeInfo.seconds * 1000" format="HH:mm:ss" @change="timechange">
-										<text  :style="{'color':'#B42A3E','font-size':'28rpx'}">{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}}时{{ timeData.minutes }}分{{ timeData.seconds }}秒</text>
+										<text  :style="{'color':'#B42A3E','font-size':'28rpx'}">{{timeData.days}}天{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}}时{{ timeData.minutes }}分{{ timeData.seconds }}秒</text>
 									</u-count-down>
                   <u-count-down v-else  :style="{'height':'96rpx'}" :time="storeInfo.secondsStart * 1000" format="HH:mm:ss" @change="timechange">
-                    <text  :style="{'color':'#B42A3E','font-size':'28rpx'}">{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}}时{{ timeData.minutes }}分{{ timeData.seconds }}秒</text>
+                    <text  :style="{'color':'#B42A3E','font-size':'28rpx'}">{{timeData.days}}天{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}}时{{ timeData.minutes }}分{{ timeData.seconds }}秒</text>
                   </u-count-down>
 								</view>
 							</view>

+ 6 - 4
pages/index/diy/components/latestGroupBuying.vue

@@ -62,13 +62,15 @@
 						<text class="yellow" v-if="e.isStart">截止倒计时</text>
 						<text class="yellow" v-else>开团倒计时</text>
 						<u-count-down v-if="e.isStart" :time="e.seconds * 1000" format="HH:mm:ss" @change="timechange">
-							<text  :style="{'color':'#B42A3E','font-size':'26rpx'}">{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}}时{{ timeData.minutes }}分{{ timeData.seconds }}秒</text>
+							<text  :style="{'color':'#B42A3E','font-size':'26rpx'}">{{timeData.days}}天{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}}时{{ timeData.minutes }}分{{ timeData.seconds }}秒</text>
+						</u-count-down>
+						<u-count-down v-if="!e.isStart" :time="e.secondsStart * 1000" format="HH:mm:ss" @change="timechange2">
+						  <text  :style="{'color':'#B42A3E','font-size':'26rpx'}">{{timeData.days}}天{{ timeData2.hours>10?timeData2.hours:'0'+timeData2.hours}}时{{ timeData2.minutes }}分{{ timeData2.seconds }}秒</text>
 						</u-count-down>
-            <u-count-down v-if="!e.isStart" :time="e.secondsStart * 1000" format="HH:mm:ss" @change="timechange2">
-              <text  :style="{'color':'#B42A3E','font-size':'26rpx'}">{{ timeData2.hours>10?timeData2.hours:'0'+timeData2.hours}}时{{ timeData2.minutes }}分{{ timeData2.seconds }}秒</text>
-            </u-count-down>
 
 					</view>
+
+
 				</view>
 				<view class="self-pickup-point">
 					<view class="a-t">