From a607077e83562b37f671286b4595c26fb51e1b40 Mon Sep 17 00:00:00 2001
From: TM <923727421@qq.com>
Date: Wed, 16 Dec 2020 10:54:54 +0800
Subject: [PATCH] 修改按钮文字

---
 pages/hbfqPage/orderInfo/orderInfo.js |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/pages/hbfqPage/orderInfo/orderInfo.js b/pages/hbfqPage/orderInfo/orderInfo.js
index 41184e4..54fbcda 100644
--- a/pages/hbfqPage/orderInfo/orderInfo.js
+++ b/pages/hbfqPage/orderInfo/orderInfo.js
@@ -250,6 +250,14 @@
       });
       return
     }
+    if (!validator.checkPhone(info.userMblNo)) {
+      my.showToast({
+        type: 'none',
+        content: '请输入正确的客户手机号',
+        duration: 2000,
+      });
+      return
+    }
     my.scan({
       scanType: ['qrCode', 'barCode'],
       success: (res) => {
@@ -266,7 +274,7 @@
           true,
           {
             ...this.data.info,
-            authCode: res.resultStr
+            authCode: res.code
           }
         )
       },
@@ -343,6 +351,14 @@
       });
       return
     }
+    if (!validator.checkPhone(info.userMblNo)) {
+      my.showToast({
+        type: 'none',
+        content: '请输入正确的客户手机号',
+        duration: 2000,
+      });
+      return
+    }
     let str = JSON.stringify(this.data.info)
     my.navigateTo({
       url: `../qrCode/qrCode?info=${str}`

--
Gitblit v1.8.0