liyongli 1 жил өмнө
parent
commit
205ff41363

+ 27 - 5
src/view/CalligraphyAndPaintingCompetition/index.vue

@@ -83,6 +83,18 @@
       </div>
     </van-dialog>
 
+    <van-dialog
+      theme="round-button"
+      confirm-button-text="关 闭"
+      v-model:show="end"
+      title="活动已截止"
+      confirm-button-color="#cc0003"
+    >
+      <div class="DetailMain">
+        <!-- <p class="DetailLine">请登录闪视频查看</p> -->
+      </div>
+    </van-dialog>
+
     <van-dialog
       theme="round-button"
       confirm-button-text="关 闭"
@@ -92,7 +104,9 @@
     >
       <div class="DetailMain">
         <p class="DetailLine">5月即将开启,敬请关注!</p>
-        <p class="DetailLine">届时,我们将组织标准评委团对线上线下提交的作品进行初评,评选出优秀选手,通过初评的优秀选手将参加现场绘画、书法环节,现场所画作品直接参与专家评审团现场评审,最终选出各类优秀作品,并进行表彰。</p>
+        <p class="DetailLine">
+          届时,我们将组织标准评委团对线上线下提交的作品进行初评,评选出优秀选手,通过初评的优秀选手将参加现场绘画、书法环节,现场所画作品直接参与专家评审团现场评审,最终选出各类优秀作品,并进行表彰。
+        </p>
       </div>
     </van-dialog>
 
@@ -122,13 +136,13 @@ const toDetail = ref(false);
 const total = ref(0);
 const showWixin = ref(false);
 const toTC = ref(false);
+const end = ref(false);
 
 tot();
 window.setInterval(() => tot(), 5000);
 
 function tot() {
   getTotalNum().then(r => {
-    console.log(r);
     const res = r || { real: 0, unreal: 0 };
     total.value = Number(res.real || 0) + Number(res.unreal || 0);
   });
@@ -155,9 +169,17 @@ function toShanshipinFunc() {
 }
 
 function tougao() {
-    console.log(window.$shanshipin)
-  if(window.$shanshipin && window.$shanshipin.invitedIp) openShanshipinDetail('https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441');
-    else toShanshipin.value = true;
+  console.log(end.value);
+  if(Date.now()>=1683505658627){
+    end.value = true;
+    return
+  }
+  
+  if (window.$shanshipin && window.$shanshipin.invitedIp)
+    openShanshipinDetail(
+      'https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441'
+    );
+  else toShanshipin.value = true;
 }
 
 function openxuanshou() {