From e293974e1be9d2b6894cbf2fa5841a8bd21163de Mon Sep 17 00:00:00 2001
From: liangjin <liangjin@finlean.com>
Date: Tue, 11 May 2021 15:40:40 +0800
Subject: [PATCH] 支付宝重构
---
pages/hbfqPage/orderInfo/orderInfo.js | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/pages/hbfqPage/orderInfo/orderInfo.js b/pages/hbfqPage/orderInfo/orderInfo.js
index 41184e4..a3047da 100644
--- a/pages/hbfqPage/orderInfo/orderInfo.js
+++ b/pages/hbfqPage/orderInfo/orderInfo.js
@@ -38,7 +38,7 @@
},
getList(obj) {
$api.ajax(
- '/sib/xcx/order/hbCreateInit',
+ '/zic/order/hbCreateInit',
'POST',
(res) => {
this.setData({
@@ -54,7 +54,7 @@
},
orderhbTrial() {
$api.ajax(
- '/sib/xcx/order/hbTrial',
+ '/zic/order/hbTrial',
'POST',
(res) => {
let body = res.data.body
@@ -250,12 +250,20 @@
});
return
}
+ if (!validator.checkPhone(info.userMblNo)) {
+ my.showToast({
+ type: 'none',
+ content: '请输入正确的客户手机号',
+ duration: 2000,
+ });
+ return
+ }
my.scan({
scanType: ['qrCode', 'barCode'],
success: (res) => {
console.log(res)
$api.ajax(
- '/sib/xcx/order/createHb',
+ '/zic/order/createHb',
'POST',
(res) => {
my.reLaunch({
@@ -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