Explorar o código

[edit][v-hsow]

zhangwei %!s(int64=3) %!d(string=hai) anos
pai
achega
11e44d0bcc
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      pages/index.vue

+ 6 - 6
pages/index.vue

@@ -5,8 +5,8 @@
 		</div>
 		<!-- 红包 -->
 		<div class="redPacket" :class="{ redPacket2: status != 'open', key_packet: status == 'open' }"
-			v-if="status != 'error'">
-			<div class="area" :class="{ key_area: status == 'open' }" v-if="status == 'open' || status == 'no-chrome'">
+			v-show="status != 'error'">
+			<div class="area" :class="{ key_area: status == 'open' }" v-show="status == 'open' || status == 'no-chrome'">
 				<div class="title">
 					<img :src="detail.postBizData.postUserInfo.avatarUrl" alt />
 					<span>Giveaways from: {{ detail.postBizData.postUserInfo.nickName }}</span>
@@ -14,12 +14,12 @@
 				<div class="txt">Good Luck!</div>
 			</div>
 
-			<img src="/svg/back-top.svg" alt class="top" v-if="status == 'open' || status == 'no-chrome'"
+			<img src="/svg/back-top.svg" alt class="top" v-show="status == 'open' || status == 'no-chrome'"
 				:class="{ key_top: status == 'open' }" />
-			<img src="/svg/back-down.svg" alt class="down" v-if="status == 'open' || status == 'no-chrome'"
+			<img src="/svg/back-down.svg" alt class="down" v-show="status == 'open' || status == 'no-chrome'"
 				:class="{ key_down: status == 'open' }" />
-			<img src="/svg/icon-usd.svg" alt class="start" v-if="status == 'no-chrome'" />
-			<img src="/git/icon-start.gif" alt class="start" v-if="status == 'open'" />
+			<img src="/svg/icon-usd.svg" alt class="start" v-show="status == 'no-chrome'" />
+			<img src="/git/icon-start.gif" alt class="start" v-show="status == 'open'" />
 
 			<!-- 内容 -->
 			<div class="head">