Commit 0d4aab6b by liuquan

3.1.4

U:修改认证提示 
U:修改支付按钮置灰问题
parent f9763f68
......@@ -332,8 +332,8 @@ Page({
if (that.data.idType == 1) {
that.servicePay();
} else {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, (res) => {
switch (res) {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res.code) {
case 0:
if (that.data.phoneYes) {
if (that.data.backPhone == '') {
......@@ -368,17 +368,11 @@ Page({
case 6001:
case 6002:
case 6003:
wx.showModal({
title: '提示',
content: '服务器异常',
showCancel: false,
})
return;
case 6004:
case 6005:
wx.showModal({
title: '提示',
content: '每人当天最多认证三次',
content: res.msg,
showCancel: false,
})
return;
......
......@@ -360,7 +360,7 @@ Page({
} else if (that.data.idCard != '') {
if (that.data.idType == 0) {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res) {
switch (res.code) {
case 0:
var allData = wx.getStorageSync("data");
var data
......
......@@ -366,7 +366,7 @@ Page({
} else if (that.data.idCard != '') {
if (that.data.idType == 0) {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res) {
switch (res.code) {
case 0:
var allData = wx.getStorageSync("data");
var data
......
......@@ -500,7 +500,7 @@ function verifyIdCardAnName(name, idCard, C) {
unionid: wx.getStorageSync('data').unionid
}
Service.checkCard(data).then((res) => {
C(res.code);
C(res);
})
}
// 对象深拷贝函数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment