Commit 2c1aa35e authored by 郭志伟's avatar 郭志伟

Merge branch 'master' into feature/activity

parents 24f035c9 d49aa8e3
...@@ -5563,6 +5563,11 @@ ...@@ -5563,6 +5563,11 @@
"integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
"dev": true "dev": true
}, },
"fastclick": {
"version": "1.0.6",
"resolved": "https://registry.npm.taobao.org/fastclick/download/fastclick-1.0.6.tgz",
"integrity": "sha1-FhYlsnsaWAZAWTa9qaLBkm0Gvmo="
},
"faye-websocket": { "faye-websocket": {
"version": "0.10.0", "version": "0.10.0",
"resolved": "http://npmprivate.quantgroups.com/faye-websocket/-/faye-websocket-0.10.0.tgz", "resolved": "http://npmprivate.quantgroups.com/faye-websocket/-/faye-websocket-0.10.0.tgz",
......
...@@ -13,6 +13,9 @@ import RavenVue from 'raven-js/plugins/vue'; ...@@ -13,6 +13,9 @@ import RavenVue from 'raven-js/plugins/vue';
import { release } from '../.sentryclirc'; import { release } from '../.sentryclirc';
import fontResize from './directives/fontResize'; import fontResize from './directives/fontResize';
import cfg from './config'; import cfg from './config';
import FastClick from 'fastclick';
FastClick.attach(document.body, { tapDelay: 1 });
if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production') { if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production') {
Raven.config('//7fc2cea5ef8244fd9b4cf13051e408d8@sentry.quantgroups.com/73', { Raven.config('//7fc2cea5ef8244fd9b4cf13051e408d8@sentry.quantgroups.com/73', {
release, release,
......
export default [ export default [
{ {
path: '/', path: '/',
redirect: '/vipLife' redirect: '/home'
}, },
{ {
path: '/home', path: '/home',
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
:disabled="!disabled" :disabled="!disabled"
@click="goOrder" @click="goOrder"
> >
{{ selectedRechargeInfo.price ? `¥${selectedRechargeInfo.price}` : '' }} 立即充值 {{ selectedRechargeInfo.salePrice ? `¥${selectedRechargeInfo.salePrice}` : '' }} 立即充值
</cr-button> </cr-button>
</div> </div>
</div> </div>
...@@ -81,13 +81,13 @@ export default { ...@@ -81,13 +81,13 @@ export default {
this.selectedRechargeInfo = rechargeInfo; this.selectedRechargeInfo = rechargeInfo;
}, },
async goOrderApi() { async goOrderApi() {
const { skuNo, price } = this.selectedRechargeInfo; const { skuNo, price, salePrice } = this.selectedRechargeInfo;
this.$track.registeredEvents('h5_RechargeCenterPagePhoneBillClick', { this.$track.registeredEvents('h5_RechargeCenterPagePhoneBillClick', {
recharge_type: this.phoneRecharge[`${this.rechargeType}Type`] === 601 ? '快充' : '慢充', recharge_type: this.phoneRecharge[`${this.rechargeType}Type`] === 601 ? '快充' : '慢充',
cost_value: price cost_value: price
}); });
const [res, error] = await orderApi.orderCreate({ const [res, error] = await orderApi.orderCreate({
totalFee: price, totalFee: salePrice,
terminal: 'H5', terminal: 'H5',
account: this.rechargePhoneInfo?.phoneNo, account: this.rechargePhoneInfo?.phoneNo,
registrationLocation: this.rechargePhoneInfo?.phoneNoHome, registrationLocation: this.rechargePhoneInfo?.phoneNoHome,
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div v-if="showCoupon && value.payType === 1" class="coupon"> <div v-if="showCoupon && value.payType === 1" class="coupon">
<p class="couponDes" :class="{ disable: couponDisabled }" @click.stop="openCouponModal"> <p class="couponDes" :class="{ disable: couponDisabled }" @click.stop="openCouponModal">
<span v-if="couponInfo.pickupId"> <span v-if="couponInfo.pickupId">
{{ `满${couponInfo.limitAmount}减${couponInfo.faceValue}元` }} {{ `满${couponInfo.limitAmountNew}减${couponInfo.faceValueNew}元` }}
</span> </span>
<span v-else> <span v-else>
未选择优惠券 未选择优惠券
......
...@@ -191,9 +191,9 @@ export default { ...@@ -191,9 +191,9 @@ export default {
return this.isRiskLimit(); return this.isRiskLimit();
}, },
amount() { amount() {
return IS_THIRD_PAY(this.payType) || !this.selectedCoupon.faceValue return IS_THIRD_PAY(this.payType) || !this.selectedCoupon.faceValueNew
? this.displayInfo.orderAmt ? this.displayInfo.orderAmt
: (this.displayInfo.orderAmt - this.selectedCoupon.faceValue).toFixed(2); : (this.displayInfo.orderAmt - this.selectedCoupon.faceValueNew).toFixed(2);
}, },
isShowProtocol() { isShowProtocol() {
return ( return (
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
}, },
canUseAmount() { canUseAmount() {
return ( return (
((this.selectedCoupon?.faceValue && +this.selectedCoupon.faceValue) || 0) + ((this.selectedCoupon?.faceValueNew && +this.selectedCoupon.faceValueNew) || 0) +
((this.displayInfo?.creditPayInfo?.canAmt && +this.displayInfo.creditPayInfo.canAmt) || 0) - ((this.displayInfo?.creditPayInfo?.canAmt && +this.displayInfo.creditPayInfo.canAmt) || 0) -
((this.displayInfo?.orderAmt && +this.displayInfo.orderAmt) || 0) ((this.displayInfo?.orderAmt && +this.displayInfo.orderAmt) || 0)
); );
...@@ -334,7 +334,7 @@ export default { ...@@ -334,7 +334,7 @@ export default {
const { accountStatus, riskManagementAmt } = this.creditPayInfo; const { accountStatus, riskManagementAmt } = this.creditPayInfo;
const { orderAmt } = this.displayInfo; const { orderAmt } = this.displayInfo;
if (accountStatus === ACCOUNT_APPLY_SUCCESS) { if (accountStatus === ACCOUNT_APPLY_SUCCESS) {
const coupon = +this.selectedCoupon.faceValue || 0; const coupon = +this.selectedCoupon.faceValueNew || 0;
return +riskManagementAmt + coupon < +orderAmt; return +riskManagementAmt + coupon < +orderAmt;
} else { } else {
return false; return false;
...@@ -363,7 +363,7 @@ export default { ...@@ -363,7 +363,7 @@ export default {
}; };
} else if (accountStatus === ACCOUNT_APPLY_SUCCESS) { } else if (accountStatus === ACCOUNT_APPLY_SUCCESS) {
const finalCount = this.showCoupon const finalCount = this.showCoupon
? (this.displayInfo.orderAmt - (this.selectedCoupon.faceValue || 0)).toFixed(2) ? (this.displayInfo.orderAmt - (this.selectedCoupon.faceValueNew || 0)).toFixed(2)
: this.displayInfo.orderAmt; : this.displayInfo.orderAmt;
const txt = `实际支付${finalCount || '0.00'}`; const txt = `实际支付${finalCount || '0.00'}`;
this.accountS = { this.accountS = {
...@@ -544,6 +544,12 @@ export default { ...@@ -544,6 +544,12 @@ export default {
coupon_id: id coupon_id: id
}); });
this.selectedCoupon = selectedCoupon || {}; this.selectedCoupon = selectedCoupon || {};
if (!('faceValueNew' in this.selectedCoupon) && 'faceValue' in this.selectedCoupon) {
this.selectedCoupon.faceValueNew = this.selectedCoupon.faceValue;
}
if (!('limitAmountNew' in this.selectedCoupon) && 'limitAmount' in this.selectedCoupon) {
this.selectedCoupon.limitAmountNew = this.selectedCoupon.limitAmount;
}
this.getBtnStatus(this.isRiskLimit()); this.getBtnStatus(this.isRiskLimit());
this.couponPopup = false; this.couponPopup = false;
}, },
...@@ -606,7 +612,7 @@ export default { ...@@ -606,7 +612,7 @@ export default {
return Object.keys(obj); return Object.keys(obj);
}, },
setAmount() { setAmount() {
const faceValue = +this.selectedCoupon?.faceValue || 0; const faceValue = +this.selectedCoupon?.faceValueNew || 0;
const orderAmt = +this.displayInfo?.orderAmt || 0; const orderAmt = +this.displayInfo?.orderAmt || 0;
const finalAmt = const finalAmt =
IS_THIRD_PAY(this.payType) || !this.showCoupon IS_THIRD_PAY(this.payType) || !this.showCoupon
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
:placeholder="`请输入${info.name || ''}账号`" :placeholder="`请输入${info.name || ''}账号`"
clearable clearable
class="Vl__account__field" class="Vl__account__field"
:type="info.type === 101 ? 'text' : 'number'" type="tel"
@input="checkPhone" @input="checkPhone"
> >
<template #button> <template #button>
......
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