Commit 0d4aab6b by liuquan

3.1.4

U:修改认证提示 
U:修改支付按钮置灰问题
parent f9763f68
...@@ -332,8 +332,8 @@ Page({ ...@@ -332,8 +332,8 @@ Page({
if (that.data.idType == 1) { if (that.data.idType == 1) {
that.servicePay(); that.servicePay();
} else { } else {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, (res) => { Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res) { switch (res.code) {
case 0: case 0:
if (that.data.phoneYes) { if (that.data.phoneYes) {
if (that.data.backPhone == '') { if (that.data.backPhone == '') {
...@@ -368,17 +368,11 @@ Page({ ...@@ -368,17 +368,11 @@ Page({
case 6001: case 6001:
case 6002: case 6002:
case 6003: case 6003:
wx.showModal({
title: '提示',
content: '服务器异常',
showCancel: false,
})
return;
case 6004: case 6004:
case 6005: case 6005:
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '每人当天最多认证三次', content: res.msg,
showCancel: false, showCancel: false,
}) })
return; return;
......
...@@ -360,7 +360,7 @@ Page({ ...@@ -360,7 +360,7 @@ Page({
} else if (that.data.idCard != '') { } else if (that.data.idCard != '') {
if (that.data.idType == 0) { if (that.data.idType == 0) {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => { Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res) { switch (res.code) {
case 0: case 0:
var allData = wx.getStorageSync("data"); var allData = wx.getStorageSync("data");
var data var data
......
...@@ -366,7 +366,7 @@ Page({ ...@@ -366,7 +366,7 @@ Page({
} else if (that.data.idCard != '') { } else if (that.data.idCard != '') {
if (that.data.idType == 0) { if (that.data.idType == 0) {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => { Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res) { switch (res.code) {
case 0: case 0:
var allData = wx.getStorageSync("data"); var allData = wx.getStorageSync("data");
var data var data
......
...@@ -500,7 +500,7 @@ function verifyIdCardAnName(name, idCard, C) { ...@@ -500,7 +500,7 @@ function verifyIdCardAnName(name, idCard, C) {
unionid: wx.getStorageSync('data').unionid unionid: wx.getStorageSync('data').unionid
} }
Service.checkCard(data).then((res) => { 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