|
|
@@ -86,7 +86,7 @@ |
|
|
|
state.orderId = option.orderId; |
|
|
|
if (option.from == '37') { |
|
|
|
state.from = option.from; |
|
|
|
state.vehicleId = option.vehicleId; |
|
|
|
state.vehicleId = decodeURIComponent(option.vehicleId); |
|
|
|
} |
|
|
|
|
|
|
|
if (option.channelSing) { |
|
|
@@ -98,6 +98,7 @@ |
|
|
|
}); |
|
|
|
|
|
|
|
onShow(() => { |
|
|
|
console.log() |
|
|
|
if (state.isTestSign >= 1) { |
|
|
|
if (state.from == '37') { // 恢复签约 |
|
|
|
isReSignCheck() |
|
|
@@ -292,40 +293,40 @@ |
|
|
|
requestNew(reSign, options).then((res) => { |
|
|
|
console.log(res, 3222); |
|
|
|
const data = res; |
|
|
|
if (data.userState === "UNAUTHORIZED") { |
|
|
|
uni.navigateToMiniProgram({ |
|
|
|
appId: "wxbcad394b3d99dac9", |
|
|
|
path: "pages/route/index", |
|
|
|
extraData: { |
|
|
|
appid: data.appId, |
|
|
|
sub_appid: data.subAppId, |
|
|
|
mch_id: data.mchId, |
|
|
|
sub_mch_id: data.subMchId, |
|
|
|
nonce_str: data.nonceStr, |
|
|
|
sign_type: data.signType, |
|
|
|
trade_scene: data.tradeScene, |
|
|
|
plate_number: data.plateNumber, |
|
|
|
sub_openid: data.subOpenId, |
|
|
|
sign: data.sign, |
|
|
|
channel_type: data.channelType |
|
|
|
}, |
|
|
|
success(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
|
complete(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
|
fail(res) { |
|
|
|
console.log(res); |
|
|
|
// 未成功跳转到车主小程序 |
|
|
|
}, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
msg("用户已签约"); |
|
|
|
setTimeout(() => { |
|
|
|
uni.navigateBack(); |
|
|
|
}, 1000); |
|
|
|
} |
|
|
|
// if (data.userState === "UNAUTHORIZED") { |
|
|
|
uni.navigateToMiniProgram({ |
|
|
|
appId: "wxbcad394b3d99dac9", |
|
|
|
path: "pages/route/index", |
|
|
|
extraData: { |
|
|
|
appid: data.appId, |
|
|
|
sub_appid: data.subAppId, |
|
|
|
mch_id: data.mchId, |
|
|
|
sub_mch_id: data.subMchId, |
|
|
|
nonce_str: data.nonceStr, |
|
|
|
sign_type: data.signType, |
|
|
|
trade_scene: data.tradeScene, |
|
|
|
plate_number: data.plateNumber, |
|
|
|
sub_openid: data.subOpenId, |
|
|
|
sign: data.sign, |
|
|
|
channel_type: data.channelType |
|
|
|
}, |
|
|
|
success(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
|
complete(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
|
fail(res) { |
|
|
|
console.log(res); |
|
|
|
// 未成功跳转到车主小程序 |
|
|
|
}, |
|
|
|
}); |
|
|
|
// } else { |
|
|
|
// msg("用户已签约"); |
|
|
|
// setTimeout(() => { |
|
|
|
// uni.navigateBack(); |
|
|
|
// }, 1000); |
|
|
|
// } |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |