Преглед изворни кода

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
     </u-modal>
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
     <u-modal :show="payNowModalVisible" title="确认支付信息" :showConfirmButton="false">
129
     <u-modal :show="payNowModalVisible" title="确认支付信息" :showConfirmButton="false">
126
       <view class="modal-content">
130
       <view class="modal-content">
127
         <view class="payment-amount-display">¥{{ paymentAmount }}</view>
131
         <view class="payment-amount-display">¥{{ paymentAmount }}</view>
@@ -201,6 +205,7 @@ export default {
201
       unpaidModalVisible: false,
205
       unpaidModalVisible: false,
202
       followUpModalVisible: false,
206
       followUpModalVisible: false,
203
       payNowModalVisible: false,
207
       payNowModalVisible: false,
208
+      riskWarningModalVisible: false,
204
       unpaidRating: 0,
209
       unpaidRating: 0,
205
       followUpNotes: ''
210
       followUpNotes: ''
206
     }
211
     }
@@ -547,6 +552,20 @@ export default {
547
         return
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
       this.payNowModalVisible = true
569
       this.payNowModalVisible = true
551
     },
570
     },
552
 
571