扫码校验登录实名认证
This commit is contained in:
parent
a8a2f969b3
commit
b21681991d
@ -177,8 +177,6 @@
|
||||
const orderState = ref(0);
|
||||
const showOrderPay = ref(false);
|
||||
|
||||
|
||||
|
||||
//车辆
|
||||
let arrBikeData = [];
|
||||
const showBikeInfo = ref(false);
|
||||
@ -188,6 +186,7 @@
|
||||
let arrSiteData = []
|
||||
|
||||
onLoad((query) => {
|
||||
|
||||
if (query.q) {
|
||||
const q = decodeURIComponent(query.q) // 获取到二维码原始链接内容
|
||||
const scancode_time = parseInt(query.scancode_time) // 获取用户扫码时间 UNIX 时间戳
|
||||
@ -198,10 +197,8 @@
|
||||
const [key, value] = param.split('=');
|
||||
p[key] = value;
|
||||
});
|
||||
console.log("p===>" + JSON.stringify(p))
|
||||
onLoadData.value = p;
|
||||
} else if (query.number) {
|
||||
console.log("query" + JSON.stringify(query))
|
||||
onLoadData.value['number'] = query.number;
|
||||
onLoadData.value['_tbScancodeApproach_'] = query._tbScancodeApproach_;
|
||||
}
|
||||
@ -214,18 +211,35 @@
|
||||
});
|
||||
ismount = true;
|
||||
getLoalcationData();
|
||||
console.log("loadValue===>" + JSON.stringify(onLoadData.value))
|
||||
if (onLoadData.value) {
|
||||
if (onLoadData.value['_tbScancodeApproach_'] == 'scan') {
|
||||
if (!oUser) {
|
||||
tologin();
|
||||
showModelMessage("登录后开始骑行", "登录提醒", true, "去登录").then(res => {
|
||||
if (res.confirm) {
|
||||
tologin()
|
||||
}
|
||||
})
|
||||
} else if (!oUser['realNameStatus']) {
|
||||
showModelMessage("请进行实名认证后骑行", "实名认证", true, "去认证").then(res => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/views/IdentityVerification?number=" + onLoadData
|
||||
.value["number"] + "&_tbScancodeApproach_=" + onLoadData.value[
|
||||
'_tbScancodeApproach_']
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
getOrder((flag) => {
|
||||
if (flag) {
|
||||
map.addOrder(onLoadData.value["number"], false, (res) => {
|
||||
if (res) {
|
||||
getOrder();
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
map.addOrder(onLoadData.value["number"], false, (res) => {
|
||||
console.log("00000000000000000000", res);
|
||||
if (res) {
|
||||
getOrder();
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -303,6 +317,14 @@
|
||||
if (!oUser) {
|
||||
tologin();
|
||||
return;
|
||||
} else if (!oUser['realNameStatus']) {
|
||||
showModelMessage("请进行实名认证后骑行", "实名认证", true, "去认证").then(res => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/views/IdentityVerification"
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/login/TroubleReportUser"
|
||||
@ -314,6 +336,14 @@
|
||||
if (!oUser) {
|
||||
tologin();
|
||||
return;
|
||||
} else if (!oUser['realNameStatus']) {
|
||||
showModelMessage("请进行实名认证后骑行", "实名认证", true, "去认证").then(res => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/views/IdentityVerification"
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/scan/applysite"
|
||||
@ -325,6 +355,14 @@
|
||||
if (!oUser) {
|
||||
tologin();
|
||||
return;
|
||||
} else if (!oUser['realNameStatus']) {
|
||||
showModelMessage("请进行实名认证后骑行", "实名认证", true, "去认证").then(res => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/views/IdentityVerification"
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/mine/MePage"
|
||||
@ -336,20 +374,24 @@
|
||||
if (!oUser) {
|
||||
tologin();
|
||||
return;
|
||||
} else if (!oUser['realNameStatus']) {
|
||||
showModelMessage("请进行实名认证后骑行", "实名认证", true, "去认证").then(res => {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/views/IdentityVerification"
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
const {
|
||||
userId
|
||||
} = oUser;
|
||||
console.log("11111" + getCurrentPages());
|
||||
uni.navigateTo({
|
||||
url: "/pages/user/scan/scancode?type=ride"
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//显示订单
|
||||
function openOrderPay() {
|
||||
showTools.value = false;
|
||||
@ -357,7 +399,7 @@
|
||||
}
|
||||
|
||||
//获取订单
|
||||
function getOrder() {
|
||||
function getOrder(callBack) {
|
||||
const {
|
||||
userId
|
||||
} = oUser;
|
||||
@ -371,10 +413,12 @@
|
||||
} = res;
|
||||
if (code != 200) {
|
||||
showModelMessage(message);
|
||||
if (callBack) callBack(true)
|
||||
return;
|
||||
}
|
||||
if (!data) { //订单完成
|
||||
completeRiding();
|
||||
if (callBack) callBack(true)
|
||||
return;
|
||||
}
|
||||
const {
|
||||
@ -424,6 +468,7 @@
|
||||
// }
|
||||
})
|
||||
}
|
||||
|
||||
const getOrderInfo = (bikeCode) => {
|
||||
const params = {
|
||||
"userId": oUser.userId,
|
||||
@ -670,7 +715,6 @@
|
||||
getOrder();
|
||||
}
|
||||
}
|
||||
|
||||
if (ismount) getLoalcationData();
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user