linwenxin il y a 5 mois
Parent
commit
9edecd6ef4

+ 1 - 0
src/components/zhifutanchuan.vue

@@ -95,6 +95,7 @@ export default {
         if (this.timeId) {
           clearTimeout(this.timeId)
         }
+        this.$emit('offTiming')
       }
       this.type = this.state
     },

+ 14 - 1
src/packageMaterial/pages/newSale/pay.vue

@@ -39,7 +39,15 @@
         </view>
       </template>
     </zj-page-layout>
-    <zhifutanchuan v-if="state > 0" :detail="detail" :orderId="orderId" :state="state" @scan="scan" @back="back" />
+    <zhifutanchuan
+      v-if="state > 0"
+      :detail="detail"
+      :orderId="orderId"
+      :state="state"
+      @scan="scan"
+      @back="back"
+      @offTiming="offTiming"
+    />
   </view>
 </template>
 
@@ -81,6 +89,11 @@ export default {
   },
 
   methods: {
+    offTiming() {
+      if (this.timeout) {
+        clearTimeout(this.timeout)
+      }
+    },
     scan() {
       if (this.timeout) {
         clearTimeout(this.timeout)

+ 14 - 1
src/packageMaterial/pages/sale/pay.vue

@@ -39,7 +39,15 @@
         </view>
       </template>
     </zj-page-layout>
-    <zhifutanchuan v-if="state > 0" :detail="detail" :orderId="orderId" :state="state" @scan="scan" @back="back" />
+    <zhifutanchuan
+      v-if="state > 0"
+      :detail="detail"
+      :orderId="orderId"
+      :state="state"
+      @scan="scan"
+      @back="back"
+      @offTiming="offTiming"
+    />
   </view>
 </template>
 
@@ -82,6 +90,11 @@ export default {
   },
 
   methods: {
+    offTiming() {
+      if (this.timeout) {
+        clearTimeout(this.timeout)
+      }
+    },
     scan() {
       if (this.timeout) {
         clearTimeout(this.timeout)