zhangwei 3 سال پیش
والد
کامیت
227eabbd22
1فایلهای تغییر یافته به همراه16 افزوده شده و 11 حذف شده
  1. 16 11
      pages/index.vue

+ 16 - 11
pages/index.vue

@@ -5,9 +5,9 @@
 		</div>
 		<!-- 红包 -->
 		<div class="redPacket" :class="{ redPacket2: status != 'open', key_packet: status == 'open' }"
-				 v-show="status != 'error'">
+			v-show="status != 'error'">
 			<div class="area" :class="{ key_area: status == 'open' }"
-					 v-show="status == 'open' || status == 'no-chrome'">
+				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>
@@ -16,9 +16,9 @@
 			</div>
 
 			<img src="/svg/back-top.svg" alt class="top" v-show="status == 'open' || status == 'no-chrome'"
-					 :class="{ key_top: status == 'open' }" />
+				:class="{ key_top: status == 'open' }" />
 			<img src="/svg/back-down.svg" alt class="down" v-show="status == 'open' || status == 'no-chrome'"
-					 :class="{ key_down: status == 'open' }" />
+				:class="{ key_down: 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'" />
 
@@ -33,7 +33,7 @@
 				<div class="head-area" v-else-if="status == 'nothing'">Better luck next time!</div>
 				<div class="head-area" v-else-if="status == 'expire'">
 					<div>This Giveaways</div>
-					<div>expired on {{ formatTime(detail.postBizData.endTimestamp,'MM-DD') }}</div>
+					<div>expired on {{ formatTime(detail.postBizData.endTimestamp, 'MM-DD') }}</div>
 				</div>
 				<div class="head-money" v-if="status == 'open' || status == 'opened'">
 					<img src="/svg/icon-usd.svg" alt />
@@ -48,8 +48,8 @@
 				</div>
 				<div>Total ${{ detail.postBizData.amountValue / 100 || '' }} {{
 					detail.postBizData.amountCurrencyCode ||
-					''
-					}}</div>
+						''
+				}}</div>
 			</div>
 			<div class="luck-list" @scroll="handleScroll" ref="list">
 				<div class="luck-item" v-for="item, i in luck_list" v-bind:key="i">
@@ -131,7 +131,12 @@ const api = {
 	pre: 'https://preapi.denetme.net',
 	test: 'https://testapi.denetme.net'
 }
-
+const page = {
+	prod: "https://h5.denetme.net",
+	pre: "https://preh5.denetme.net",
+	test: 'https://testh5.denetme.net'
+}
+const jumpUrl = page[process.env.NUXT_ENV.MODE]
 const baseURL = api[process.env.NUXT_ENV.MODE]
 
 
@@ -157,7 +162,7 @@ export default {
 			},
 			title: '',
 			twitterTitle: 'deNet',
-			jumpUrl: 'https://de-net-test.piaoquantv.com/',
+			jumpUrl: jumpUrl,
 			status: '',
 			page_index: 1,
 			page_size: 20,
@@ -205,9 +210,9 @@ export default {
 			this.$router.push({
 				path: '/install'
 			})
-			location.href= url;
+			location.href = url;
 		},
-		formatTime(time,_type = 'MM-DD HH:mm:ss') {
+		formatTime(time, _type = 'MM-DD HH:mm:ss') {
 			return moment(time).format(_type)
 		},
 		guid() {