From 255e8bcf4adc9d760a21c3e454bc14aabb4e327a Mon Sep 17 00:00:00 2001
From: liangjin <liangjin@finlean.com>
Date: Wed, 17 Mar 2021 13:56:12 +0800
Subject: [PATCH] 公众租机
---
pages/hbfqPage/orderInfo/orderInfo.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/pages/hbfqPage/orderInfo/orderInfo.js b/pages/hbfqPage/orderInfo/orderInfo.js
index 89702f6..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) => {
@@ -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