فهرست منبع

Merge branch 'yuan' of panhui/lasuo_nft_front into dev

yuanyuan 3 سال پیش
والد
کامیت
9a6cbd484f
1فایلهای تغییر یافته به همراه12 افزوده شده و 11 حذف شده
  1. 12 11
      src/views/product/Detail.vue

+ 12 - 11
src/views/product/Detail.vue

@@ -310,7 +310,9 @@
                     <img :src="require('@assets/maisui.png')" alt="" class="list_of_details_one_title_img" />
                     <div class="list_of_details_one_title_con">{{ info.name }}</div>
                     <div class="limited_label">
-                        <div class="limited_label_title" v-if="info.collectionCategory">{{ info.collectionCategory }}</div>
+                        <div class="limited_label_title" v-if="info.collectionCategory">
+                            {{ info.collectionCategory }}
+                        </div>
                         <div class="limited_label_number">限量</div>
                         <div class="limited_label_total">{{ info.total }}份</div>
                         <div class="limited_label_category">{{ info.category }}</div>
@@ -384,7 +386,7 @@
                     </div>
                     <div class="work_story_creator" v-if="info.issuer">
                         <div class="work_story_creator_left">发行方</div>
-                        <div class="work_story_creator_right">{{info.issuer}}</div>
+                        <div class="work_story_creator_right">{{ info.issuer }}</div>
                     </div>
                 </div>
             </div>
@@ -397,7 +399,7 @@
                 <div class="purchase_instructions_con">
                     <div class="purchase_instructions_title">购买须知</div>
                     <div class="purchase_instructions_text">
-                       {{info.purchaseInstructions}}
+                        {{ info.purchaseInstructions }}
                     </div>
                 </div>
             </div>
@@ -799,7 +801,7 @@ export default {
             this.limit = res;
         });
         this.getProduct();
-        this.timer();
+        
         // if (this.isLogin) {
         //     this.$http
         //         .post(
@@ -849,7 +851,6 @@ export default {
         // },
         // 定时器
         timer() {
-            console.log("qddddddag",this.millisecond)
             if (this.startTime) {
                 clearTimeout(this.startTime);
             }
@@ -977,32 +978,32 @@ export default {
                             this.dayjs(),
                             'Millisecond'
                         );
-                    }
-                    if (res.subscribeStatus == 'ONGOING') {
+                        this.timer();
+                    } else if (res.subscribeStatus == 'ONGOING') {
                         this.millisecond = this.dayjs(res.endTime, 'YYYY-MM-DD HH:mm:ss').diff(
                             this.dayjs(),
                             'Millisecond'
                         );
                         this.active = 0;
-                        // this.timeNode = new Date(this.info.startTime).getTime();
+                        this.timer();
                     } else if (res.subscribeStatus == 'SUBSCRIBE_ENDING') {
                         this.millisecond = this.dayjs(res.publishTime, 'YYYY-MM-DD HH:mm:ss').diff(
                             this.dayjs(),
                             'Millisecond'
                         );
                         this.active = 1;
-                        // this.timeNode = new Date(this.info.endTime).getTime();
+                        this.timer();
                     } else if (res.subscribeStatus == 'ANNOUNCING') {
                         this.millisecond = this.dayjs(res.purchaseTime, 'YYYY-MM-DD HH:mm:ss').diff(
                             this.dayjs(),
                             'Millisecond'
                         );
                         this.active = 2;
-                        // this.timeNode = new Date(this.info.publishTime).getTime();
+                        this.timer();
                     } else if (res.subscribeStatus == 'ON_SALE') {
                         this.active = 3;
-                        // this.timeNode = new Date(this.info.purchaseTime).getTime();
                     }
+                    
                     //优惠券
                     if (res.couponPayment) {
                         this.getCouponList();