浏览代码

[edit][bug]

zhangwei 2 年之前
父节点
当前提交
838cacf4a0
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/view/iframe/red-packet/red-packet.vue

+ 7 - 2
src/view/iframe/red-packet/red-packet.vue

@@ -286,7 +286,8 @@
     </div>
 
   </div>
-  <div style="width: 100%; height: 30px; position: fixed; color: red; top:0;">{{ state.detail.validity }}</div>
+  <div style="width: 100%; height: 30px; position: fixed; color: red; top:0;" v-if="state.process_mode != 'production'">
+    {{ state.detail.validity }}</div>
 </template>
 
 <script>
@@ -657,7 +658,9 @@ const handleStatusPage = () => {
       // 显示任务未完成页面
       showOpenedPage()
       showOpenedPageReport()
-      getValidity()
+      if (state.process_mode != 'production') {
+        getValidity()
+      }
       //如果 任务完成状态 = 已经完成
     } else if (state.detail.myReceived.taskFinishStatus == 1) {
       // 领取到空红包
@@ -767,6 +770,8 @@ function initTaskDetail() {
   })
 }
 onMounted(() => {
+  state.process_mode = process.env.NODE_ENV
+  console.log('state.process_mode',state.process_mode)
   state.postId = getQueryString('postId')
   state.tweetId = getQueryString('tweetId')
   init()