Commit 670a96f4 authored by 郭志伟's avatar 郭志伟

feat(pay): 新人专享

parent bf475a3c
......@@ -56,7 +56,7 @@ function isDetentionFn() {
// 推荐开通享花卡
if (this.creditPayInfo.accountStatus !== ACCOUNT_APPLY_SUCCESS) {
this.$dialog({
message: '您有一笔免费额度可以使用,40天免息等你拿',
message: this.creditPayInfo.creditPayOpenDesc,
confirmButtonText: '立即开通',
cancelButtonText: '继续支付',
confirmButtonColor: '#EC1500',
......@@ -73,7 +73,7 @@ function isDetentionFn() {
this.creditPayList.isGroupPay
) {
this.$dialog({
message: '使用组合支付部分金额可免息使用40天哦!',
message: this.creditPayInfo.creditPayOpenDesc,
confirmButtonText: '组合支付',
cancelButtonText: '继续支付',
confirmButtonColor: '#EC1500',
......@@ -98,7 +98,7 @@ function isDetentionFn() {
!this.creditPayList.isGroupPay
) {
this.$dialog({
message: '使用享花卡支付可免息使用40天哦',
message: this.creditPayInfo.creditPayOpenDesc,
confirmButtonText: '享花卡支付',
cancelButtonText: '继续支付',
confirmButtonColor: '#EC1500',
......@@ -112,6 +112,17 @@ function isDetentionFn() {
this.pay();
}
});
} else if (
// 本笔订单不支持+额度已用完
this.creditPayInfo.accountStatus === ACCOUNT_APPLY_SUCCESS &&
(this.creditQuotaInfo.orderCanUseAmt === 0 || this.creditPayInfo.canAmt === 0)
) {
this.$dialog({
message: this.creditPayInfo.creditPayOpenDesc,
confirmButtonText: '其他支付方式',
showCancelButton: false,
onConfirm: () => {}
});
}
}
function havePayingOrder() {
......
......@@ -177,6 +177,7 @@ export default {
payCouponInfo: {}
},
creditPayInfo: {},
creditQuotaInfo: {},
accountS: {
text: '确认支付',
fn: this.pay
......@@ -274,6 +275,7 @@ export default {
}
this.isReady = true;
const { displayInfo = {}, payMethods, creditQuotaInfo } = data || {};
this.creditQuotaInfo = creditQuotaInfo;
this.overtime = displayInfo.periodSeconds <= 0;
this.success = true;
if (this.overtime) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment