Pārlūkot izejas kodu

订单查询跳转

master
yangteng pirms 3 mēnešiem
vecāks
revīzija
6d7c69cac8

+ 24
- 3
subpackage/orders/order_payment.vue Parādīt failu

@@ -266,6 +266,8 @@
state.vehicleId = option.vehicleId;
state.orderQuery = option.orderQuery;
state.qdSignUrl = option.qdSignUrl;
state.qdSignAppId = option.qdSignAppId;
// #ifdef MP-WEIXIN
uni.login({
provider: "weixin",
@@ -324,8 +326,26 @@
// isValueCard 1 储值卡 2 记账卡
if (state.isValueCard == 1) {
if (state.orderQuery == '1') {
const params = encodeURIComponent(JSON.stringify(state.qdSignUrl))
tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
if(state.qdSignAppId){
uni.navigateToMiniProgram({
appId: state.qdSignAppId,
path: state.qdSignUrl,
extraData: {},
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.switchTab({
url: "/pages/order/order"
@@ -450,7 +470,8 @@
longitude: "",
latitude: "",
openidData: {},
qdSignUrl:""
qdSignUrl:"",
qdSignAppId:""

});
</script>

+ 22
- 3
subpackage/orders/transfer-page-sign.vue Parādīt failu

@@ -183,13 +183,32 @@
isValueCard = 2
}
// orderQuery 1 订单查询 0正常订单
navTo(`/subpackage/orders/order_payment?orderId=${state.orderId}&&isValueCard=${isValueCard}&vehicleId=${vehicleId}&orderQuery=1&qdSignUrl=${state.details['qdSignUrl']}`);
navTo(`/subpackage/orders/order_payment?orderId=${state.orderId}&&isValueCard=${isValueCard}&vehicleId=${vehicleId}&orderQuery=1&qdSignUrl=${state.details['qdSignUrl']}&qdSignAppId=${state.details['qdSignAppId']}`);
})
} else if (state.details['orderStep'] == OrderStatus['已支付/待签约']) {
// 去签约
if (state.details['qtSign'] == 0) {
const params = encodeURIComponent(JSON.stringify(state.details.qdSignUrl))
tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
if(state.details['qdSignAppId']){
uni.navigateToMiniProgram({
appId: state.details['qdSignAppId'],
path: state.details['qdSignUrl'],
extraData: {},
success(res) {
console.log(res);
},
complete(res) {
console.log(res);
},
fail(res) {
console.log(res);
// 未成功跳转到车主小程序
},
});
}else{
const params = encodeURIComponent(JSON.stringify(state.details['qdSignUrl']))
tools.toUrl(`/subpackage/personal-center/webview?url=` + params)
}
} else {
navTo(`/subpackage/orders/release-products?orderId=${state.orderId}&orderQuery=1`);
}

Notiek ielāde…
Atcelt
Saglabāt