1.钱包优化
parent
3f2044cb44
commit
8286b4eceb
|
|
@ -121,7 +121,7 @@
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: 0,
|
default: 0,
|
||||||
},
|
},
|
||||||
// 支付跳转页面
|
// 支付跳转页面------跳转成功页面---后返回的页面
|
||||||
propToPage: {
|
propToPage: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {
|
default: () => {
|
||||||
|
|
@ -133,11 +133,21 @@
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
//
|
//是否需要关闭页面进行跳转
|
||||||
propIsRedirectTo: {
|
propIsRedirectTo: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
// 是否需要停留在当前页面
|
||||||
|
propIsKeepThisPage: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
// 指定跳转页面----不进入充值成功页面
|
||||||
|
propToAppointPage: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
componentPopup,
|
componentPopup,
|
||||||
|
|
@ -297,16 +307,14 @@
|
||||||
break;
|
break;
|
||||||
// 线下支付
|
// 线下支付
|
||||||
case 1:
|
case 1:
|
||||||
|
let $self = this;
|
||||||
// 现金支付
|
// 现金支付
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: res.data.msg,
|
content: res.data.msg,
|
||||||
showCancel: false,
|
showCancel: false,
|
||||||
success(res) {
|
success(res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
// 跳转订单列表页
|
$self.to_other(order_id);
|
||||||
uni.redirectTo({
|
|
||||||
url: '/pages/user-order/user-order?data=' + order_id,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -598,6 +606,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
to_other(order_id) {
|
||||||
|
if (!this.propIsKeepThisPage) {
|
||||||
|
if (this.propToAppointPage) {
|
||||||
|
// 跳转订单列表页
|
||||||
|
uni.redirectTo({
|
||||||
|
url: this.propToAppointPage,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// 跳转订单列表页
|
||||||
|
uni.redirectTo({
|
||||||
|
url: '/pages/user-order/user-order?data=' + order_id,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
// 页面卸载
|
// 页面卸载
|
||||||
onUnload(e) {
|
onUnload(e) {
|
||||||
clearInterval(this.popup_view_pay_timer);
|
clearInterval(this.popup_view_pay_timer);
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@
|
||||||
:prop-temp-pay-index="temp_pay_index"
|
:prop-temp-pay-index="temp_pay_index"
|
||||||
:prop-pay-price="pay_price"
|
:prop-pay-price="pay_price"
|
||||||
:prop-payment-id="payment_id"
|
:prop-payment-id="payment_id"
|
||||||
|
:prop-to-appoint-page="to_appoint_page"
|
||||||
:prop-default-payment-id="default_payment_id"
|
:prop-default-payment-id="default_payment_id"
|
||||||
:prop-is-show-payment="is_show_payment_popup"
|
:prop-is-show-payment="is_show_payment_popup"
|
||||||
@close-payment-poupon="payment_popup_event_close"
|
@close-payment-poupon="payment_popup_event_close"
|
||||||
|
|
@ -111,6 +112,7 @@
|
||||||
default_payment_id: 0,
|
default_payment_id: 0,
|
||||||
is_show_payment_popup: false,
|
is_show_payment_popup: false,
|
||||||
pay_price: 0,
|
pay_price: 0,
|
||||||
|
to_appoint_page:'/pages/plugins/wallet/user/user?type=1'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@
|
||||||
:prop-payment-id="payment_id"
|
:prop-payment-id="payment_id"
|
||||||
:propIsRedirectTo="true"
|
:propIsRedirectTo="true"
|
||||||
:prop-to-fail-page="to_fail_page"
|
:prop-to-fail-page="to_fail_page"
|
||||||
|
:prop-to-appoint-page="to_appoint_page"
|
||||||
:prop-is-show-payment="is_show_payment_popup"
|
:prop-is-show-payment="is_show_payment_popup"
|
||||||
@close-payment-poupon="payment_popup_event_close"
|
@close-payment-poupon="payment_popup_event_close"
|
||||||
></component-payment>
|
></component-payment>
|
||||||
|
|
@ -98,6 +99,7 @@
|
||||||
payment_id: 0,
|
payment_id: 0,
|
||||||
// 支付失败跳转的页面
|
// 支付失败跳转的页面
|
||||||
to_fail_page: '/pages/plugins/wallet/user/user',
|
to_fail_page: '/pages/plugins/wallet/user/user',
|
||||||
|
to_appoint_page:'/pages/plugins/wallet/user/user?type=3'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue