Преглед на файлове

feat(支付流程): 添加湖南耒阳地区身份证号风险警示弹窗

在支付流程中增加对湖南耒阳地区(身份证号430481开头)的风险警示弹窗
用户确认警示后继续支付流程
Yannay преди 1 месец
родител
ревизия
1c7352f63f
променени са 1 файла, в които са добавени 19 реда и са изтрити 0 реда
  1. 19 0
      pages/orderDetailRefactored/components/PageThree.vue

+ 19 - 0
pages/orderDetailRefactored/components/PageThree.vue

@@ -122,6 +122,10 @@
122 122
     </u-modal>
123 123
 
124 124
     <!-- 确认支付模态窗 -->
125
+    <u-modal showCancelButton showConfirmButton @confirm="confirmRiskWarning" @cancel="riskWarningModalVisible = false"
126
+      confirmText="确认并继续付款" :show="riskWarningModalVisible" title="付款警示" :content="'湖南耒阳地区身份证号请确认!'">
127
+    </u-modal>
128
+
125 129
     <u-modal :show="payNowModalVisible" title="确认支付信息" :showConfirmButton="false">
126 130
       <view class="modal-content">
127 131
         <view class="payment-amount-display">¥{{ paymentAmount }}</view>
@@ -201,6 +205,7 @@ export default {
201 205
       unpaidModalVisible: false,
202 206
       followUpModalVisible: false,
203 207
       payNowModalVisible: false,
208
+      riskWarningModalVisible: false,
204 209
       unpaidRating: 0,
205 210
       followUpNotes: ''
206 211
     }
@@ -547,6 +552,20 @@ export default {
547 552
         return
548 553
       }
549 554
 
555
+      //判断当前账号是否敏感地区
556
+      if (String(this.paymentInfo.idNumber).startsWith('430481')) {
557
+        this.riskWarningModalVisible = true
558
+        return
559
+      }
560
+
561
+      this.payNowModalVisible = true
562
+    },
563
+
564
+    /**
565
+     * 确认风险警示
566
+     */
567
+    confirmRiskWarning() {
568
+      this.riskWarningModalVisible = false
550 569
       this.payNowModalVisible = true
551 570
     },
552 571