Commit c51f88b5 by liuquan

3.1.4

U:修改实名认证规则
parent 0d4aab6b
...@@ -329,7 +329,8 @@ Page({ ...@@ -329,7 +329,8 @@ Page({
}) })
return; return;
} else { } else {
if (that.data.idType == 1) { //非大陆和新疆不走验证
if (that.data.idType == 1||that.data.idCard.substring(0,2)=='65') {
that.servicePay(); that.servicePay();
} else { } else {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => { Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
......
...@@ -358,10 +358,7 @@ Page({ ...@@ -358,10 +358,7 @@ Page({
}) })
return; return;
} else if (that.data.idCard != '') { } else if (that.data.idCard != '') {
if (that.data.idType == 0) { if (that.data.idType == 1 || that.data.idCard.substring(0, 2) == '65') {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res.code) {
case 0:
var allData = wx.getStorageSync("data"); var allData = wx.getStorageSync("data");
var data var data
if (that.data.id == '') { if (that.data.id == '') {
...@@ -443,25 +440,10 @@ Page({ ...@@ -443,25 +440,10 @@ Page({
} }
}) })
} }
break;
case 6000:
case 6001:
case 6002:
case 6003:
case 6004:
case 6005:
wx.showModal({
title: '提示',
content: res.msg,
showCancel: false,
})
that.setData({
sava: true
})
return;
}
})
} else { } else {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res.code) {
case 0:
var allData = wx.getStorageSync("data"); var allData = wx.getStorageSync("data");
var data var data
if (that.data.id == '') { if (that.data.id == '') {
...@@ -543,6 +525,25 @@ Page({ ...@@ -543,6 +525,25 @@ Page({
} }
}) })
} }
break;
case 6000:
case 6001:
case 6002:
case 6003:
case 6004:
case 6005:
wx.showModal({
title: '提示',
content: res.msg,
showCancel: false,
})
that.setData({
sava: true
})
return;
}
})
} }
} else { } else {
var allData = wx.getStorageSync("data"); var allData = wx.getStorageSync("data");
......
...@@ -364,10 +364,7 @@ Page({ ...@@ -364,10 +364,7 @@ Page({
}) })
return; return;
} else if (that.data.idCard != '') { } else if (that.data.idCard != '') {
if (that.data.idType == 0) { if (that.data.idType == 1 || that.data.idCard.substring(0, 2) == '65') {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res.code) {
case 0:
var allData = wx.getStorageSync("data"); var allData = wx.getStorageSync("data");
var data var data
if (that.data.id == '') { if (that.data.id == '') {
...@@ -476,25 +473,10 @@ Page({ ...@@ -476,25 +473,10 @@ Page({
} }
}) })
} }
break;
case 6000:
case 6001:
case 6002:
case 6003:
case 6004:
case 6005:
wx.showModal({
title: '提示',
content: res.msg,
showCancel: false,
})
that.setData({
sava: true
})
return;
}
})
} else { } else {
Util.verifyIdCardAnName(that.data.name, that.data.idCard, res => {
switch (res.code) {
case 0:
var allData = wx.getStorageSync("data"); var allData = wx.getStorageSync("data");
var data var data
if (that.data.id == '') { if (that.data.id == '') {
...@@ -603,6 +585,24 @@ Page({ ...@@ -603,6 +585,24 @@ Page({
} }
}) })
} }
break;
case 6000:
case 6001:
case 6002:
case 6003:
case 6004:
case 6005:
wx.showModal({
title: '提示',
content: res.msg,
showCancel: false,
})
that.setData({
sava: true
})
return;
}
})
} }
} else { } else {
var allData = wx.getStorageSync("data"); var allData = wx.getStorageSync("data");
......
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