|
|
|
|
|
|
|
|
getOpenID();
|
|
|
getOpenID();
|
|
|
/*传参*/
|
|
|
/*传参*/
|
|
|
state.cardId = option.cardId
|
|
|
state.cardId = option.cardId
|
|
|
|
|
|
console.log(state.cardId); |
|
|
|
|
|
console.log('888888888')
|
|
|
state.connectSuccess = option.connectSuccess
|
|
|
state.connectSuccess = option.connectSuccess
|
|
|
state.orderNum = getItem("orderNum")
|
|
|
state.orderNum = getItem("orderNum")
|
|
|
if (state.connectSuccess === '1') {
|
|
|
if (state.connectSuccess === '1') {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//链接蓝牙
|
|
|
//链接蓝牙
|
|
|
uni.navigateTo({
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/bluetooth/device-active-step3?routeType=2`,
|
|
|
|
|
|
|
|
|
url: `/pages/bluetooth/device-active-step3?routeType=2&&cardId=${state.cardId}`
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
|
} else {
|
|
|
console.log(`进行充值申请`)
|
|
|
console.log(`进行充值申请`)
|
|
|
|
|
|
|
|
|
} else {
|
|
|
} else {
|
|
|
//走蓝牙进行修复
|
|
|
//走蓝牙进行修复
|
|
|
uni.navigateTo({
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/bluetooth/device-active-step3?routeType=2`,
|
|
|
|
|
|
|
|
|
url: `/pages/bluetooth/device-active-step3?routeType=2&&cardId=${state.cardId}`,
|
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if (data.tradeState === 'SUCCESS')
|
|
|
if (data.tradeState === 'SUCCESS')
|
|
|
|
|
|
|
|
|
uni.navigateTo({
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/bluetooth/device-active-step3?routeType=2`,
|
|
|
|
|
|
|
|
|
url: `/pages/bluetooth/device-active-step3?routeType=2&&cardId=${state.cardId}`
|
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|
console.log(data)
|
|
|
console.log(data)
|