|
|
@@ -267,6 +267,7 @@ |
|
|
|
state.orderQuery = option.orderQuery; |
|
|
|
state.qdSignUrl = option.qdSignUrl; |
|
|
|
state.qdSignAppId = option.qdSignAppId; |
|
|
|
state.qtSign = option.qtSign; |
|
|
|
|
|
|
|
// #ifdef MP-WEIXIN |
|
|
|
uni.login({ |
|
|
@@ -324,13 +325,15 @@ |
|
|
|
console.log(data); |
|
|
|
if (data.paymentStatus == 'ALLSUCCESS') { |
|
|
|
// isValueCard 1 储值卡 2 记账卡 |
|
|
|
if (state.isValueCard == 1) { |
|
|
|
if (state.orderQuery == '1') { |
|
|
|
if (state.orderQuery == '1') { |
|
|
|
console.log("state.qtSign",state.qtSign,state.qtSign=='0') |
|
|
|
if(state.qtSign=='0'){ |
|
|
|
if(state.qdSignAppId){ |
|
|
|
uni.navigateToMiniProgram({ |
|
|
|
appId: state.qdSignAppId, |
|
|
|
path: state.qdSignUrl, |
|
|
|
extraData: {}, |
|
|
|
envVersion:'trial', |
|
|
|
success(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
@@ -346,15 +349,21 @@ |
|
|
|
const params = encodeURIComponent(JSON.stringify(state.qdSignUrl)) |
|
|
|
tools.toUrl(`/subpackage/personal-center/webview?url=` + params) |
|
|
|
} |
|
|
|
} else { |
|
|
|
}else{ |
|
|
|
uni.navigateBack() |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if (state.isValueCard == 1) { |
|
|
|
// 不签约 |
|
|
|
uni.switchTab({ |
|
|
|
url: "/pages/order/order" |
|
|
|
}) |
|
|
|
} else { |
|
|
|
// 签约 |
|
|
|
navTo( |
|
|
|
`/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`, |
|
|
|
); |
|
|
|
} |
|
|
|
} else { |
|
|
|
navTo( |
|
|
|
`/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`, |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
state.dataArray = data.datas; |
|
|
@@ -424,21 +433,45 @@ |
|
|
|
|
|
|
|
// isValueCard 1 储值卡 2 记账卡 |
|
|
|
const gotoEditUserOrUnitInfo = () => { |
|
|
|
if (state.isValueCard == 1) { |
|
|
|
if (state.orderQuery == '1') { |
|
|
|
const params = encodeURIComponent(JSON.stringify(state.qdSignUrl)) |
|
|
|
tools.toUrl(`/subpackage/personal-center/webview?url=` + params) |
|
|
|
} else { |
|
|
|
if (state.orderQuery == '1') { |
|
|
|
if(state.qtSign=='0'){ |
|
|
|
if(state.qdSignAppId){ |
|
|
|
uni.navigateToMiniProgram({ |
|
|
|
appId: state.qdSignAppId, |
|
|
|
path: state.qdSignUrl, |
|
|
|
extraData: {}, |
|
|
|
envVersion:'trial', |
|
|
|
success(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
|
complete(res) { |
|
|
|
console.log(res); |
|
|
|
}, |
|
|
|
fail(res) { |
|
|
|
console.log(res); |
|
|
|
// 未成功跳转到车主小程序 |
|
|
|
}, |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
const params = encodeURIComponent(JSON.stringify(state.qdSignUrl)) |
|
|
|
tools.toUrl(`/subpackage/personal-center/webview?url=` + params) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
uni.navigateBack() |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if (state.isValueCard == 1) { |
|
|
|
// 不签约 |
|
|
|
uni.switchTab({ |
|
|
|
url: "/pages/order/order" |
|
|
|
}) |
|
|
|
} else { |
|
|
|
// 签约 |
|
|
|
navTo( |
|
|
|
`/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`, |
|
|
|
); |
|
|
|
} |
|
|
|
} else { |
|
|
|
navTo( |
|
|
|
`/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=${state.orderQuery}`, |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
const state = reactive({ |
|
|
|
isValueCard: 1, //卡的类型 |
|
|
@@ -471,7 +504,8 @@ |
|
|
|
latitude: "", |
|
|
|
openidData: {}, |
|
|
|
qdSignUrl:"", |
|
|
|
qdSignAppId:"" |
|
|
|
qdSignAppId:"", |
|
|
|
qtSign:"" |
|
|
|
|
|
|
|
}); |
|
|
|
</script> |