Commit e3dcec44 authored by FE-安焕焕's avatar FE-安焕焕 👣

风控提示

parent a3928988
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
:disabled="disabled" :disabled="disabled"
:coupon-info="couponInfo" :coupon-info="couponInfo"
:show-coupon="showCoupon" :show-coupon="showCoupon"
:risk-limit="riskLimit"
:coupon-disabled="showCoupon && !payCouponCouldBeUsed" :coupon-disabled="showCoupon && !payCouponCouldBeUsed"
/> />
<template v-else> <template v-else>
...@@ -21,7 +20,6 @@ ...@@ -21,7 +20,6 @@
:disabled="disabled" :disabled="disabled"
:coupon-info="couponInfo" :coupon-info="couponInfo"
:show-coupon="showCoupon" :show-coupon="showCoupon"
:risk-limit="riskLimit"
:coupon-disabled="showCoupon && !payCouponCouldBeUsed" :coupon-disabled="showCoupon && !payCouponCouldBeUsed"
/> />
</template> </template>
......
...@@ -20,20 +20,20 @@ ...@@ -20,20 +20,20 @@
<p>{{ value.accountStatusDesc }}</p> <p>{{ value.accountStatusDesc }}</p>
</div> </div>
</div> </div>
<div <div v-if="showCoupon && value.payType === 1" class="coupon">
v-if="showCoupon && value.payType === 1" <p class="couponDes" :class="{ disable: couponDisabled }" @click.stop="openCouponModal">
class="couponDes" <span v-if="couponInfo.pickupId">
:class="{ disable: couponDisabled }" {{ `满${couponInfo.limitAmount}减${couponInfo.faceValue}元` }}
@click.stop="openCouponModal" </span>
> <span v-else>
<span v-if="couponInfo.pickupId"> 未选择优惠券
{{ `满${couponInfo.limitAmount}减${couponInfo.faceValue}元` }} </span>
</span> <cr-icon type="arrow" class="selectArrow" size="15px" />
<span v-else> </p>
未选择优惠券
</span>
<cr-icon type="arrow" class="selectArrow" size="15px" />
</div> </div>
<p v-if="value.riskLimitDesc" class="limitDes">
{{ value.riskLimitDesc }}
</p>
</div> </div>
<cr-checkbox <cr-checkbox
v-if="!isGroupPay" v-if="!isGroupPay"
...@@ -45,18 +45,9 @@ ...@@ -45,18 +45,9 @@
@click.native="changePayType(value)" @click.native="changePayType(value)"
/> />
</div> </div>
<p v-if="riskLimit && value.riskManagementDesc && !disabled" class="limitDes">
{{ value.riskManagementDesc }}
</p>
</div> </div>
</template> </template>
<script> <script>
// import { registeredEvents } from '@/utils/sa';
// const payTypeE = [
// 'PD_YXMMAEC_UserClickCashierSelectXiangHuaCardPay',
// 'PD_YXMMAEC_UserClickCashierSelectWechatPay'
// ];
// const payTypeMiniAppE = ['c_cashierselectxianghuacardpay', 'c_cashierselectwechatpay'];
export default { export default {
name: 'PayCardItem', name: 'PayCardItem',
inject: ['payCard', 'pay'], inject: ['payCard', 'pay'],
...@@ -93,8 +84,13 @@ export default { ...@@ -93,8 +84,13 @@ export default {
width: 100%; width: 100%;
padding-bottom: 2px; padding-bottom: 2px;
} }
.coupon {
margin-top: 4px;
height: 20px;
padding-left: 51px;
display: flex;
}
.couponDes { .couponDes {
margin-left: 50px;
display: inline-block; display: inline-block;
color: @text-color-red; color: @text-color-red;
.text-12; .text-12;
...@@ -116,8 +112,8 @@ export default { ...@@ -116,8 +112,8 @@ export default {
.limitDes { .limitDes {
color: #ed6a0c; color: #ed6a0c;
background: #fffbe8; background: #fffbe8;
.text-12; .text-11;
padding: 10px 8px; padding: 4px 8px;
margin: 8px; margin: 8px;
border-radius: 3px; border-radius: 3px;
} }
...@@ -187,5 +183,6 @@ export default { ...@@ -187,5 +183,6 @@ export default {
} }
.selectArrow { .selectArrow {
vertical-align: text-top; vertical-align: text-top;
margin-left: -2px;
} }
</style> </style>
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
</template> </template>
<script> <script>
// import { registeredEvents } from '@/utils/sa';
import localStorage from '@/service/localStorage.service'; import localStorage from '@/service/localStorage.service';
import { sendSms as sendSmsApi } from '@/api/pay.api'; import { sendSms as sendSmsApi } from '@/api/pay.api';
export default { export default {
...@@ -69,12 +68,9 @@ export default { ...@@ -69,12 +68,9 @@ export default {
success(smsCode) { success(smsCode) {
this.$emit('submit', smsCode); this.$emit('submit', smsCode);
}, },
async sendSms(val) { async sendSms() {
// 页面摧毁清掉定时器 // 页面摧毁清掉定时器
if (this.send) return; if (this.send) return;
if (!val) {
// registeredEvents('PD_YXMMACP_UserClickResendCaptcha');
}
const [, error] = await sendSmsApi({ orderNo: this.orderNo, flowOrderNo: this.flowOrderNo }); const [, error] = await sendSmsApi({ orderNo: this.orderNo, flowOrderNo: this.flowOrderNo });
if (!error) { if (!error) {
this.send = true; this.send = true;
...@@ -91,12 +87,6 @@ export default { ...@@ -91,12 +87,6 @@ export default {
const phoneS = `${phone}`.replace(/(\d{3})\d*(\d{4})/, '+86 $1 **** $2'); const phoneS = `${phone}`.replace(/(\d{3})\d*(\d{4})/, '+86 $1 **** $2');
return phoneS; return phoneS;
}, },
sendSa() {
// if (!this.numberArr.length && !this.isDel) {
// registeredEvents('PD_YXMMACP_UserClickAgainVerificationCodeInputbox');
// wx.reportAnalytics('c_againverificationcodeinputbox', {});
// }
},
clearTimer() { clearTimer() {
clearInterval(this.timer); clearInterval(this.timer);
this.send = false; this.send = false;
...@@ -129,9 +119,10 @@ export default { ...@@ -129,9 +119,10 @@ export default {
text-align: center; text-align: center;
width: 100%; width: 100%;
font-size: 16px; font-size: 16px;
font-weight: bold;
} }
&-des { &-des {
padding: 17px 0 0 8px; padding: 18px 0 0 8px;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
font-size: 12px; font-size: 12px;
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
v-model="thirdPayList" v-model="thirdPayList"
:pay-type="payType" :pay-type="payType"
:disabled="overtime" :disabled="overtime"
:risk-limit="riskLimit"
:show-coupon="showCoupon" :show-coupon="showCoupon"
:coupon-info="selectedCoupon" :coupon-info="selectedCoupon"
:has-pwd="creditPayInfo.hasPwd" :has-pwd="creditPayInfo.hasPwd"
......
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