Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
cauchy-ui
Commits
e3dcec44
Commit
e3dcec44
authored
Jul 22, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
风控提示
parent
a3928988
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
40 deletions
+25
-40
PayCard.vue
src/views/pay/components/PayCard.vue
+0
-2
PayCardItem.vue
src/views/pay/components/PayCardItem.vue
+22
-25
SmsModal.vue
src/views/pay/components/SmsModal.vue
+3
-12
index.vue
src/views/pay/index.vue
+0
-1
No files found.
src/views/pay/components/PayCard.vue
View file @
e3dcec44
...
...
@@ -8,7 +8,6 @@
:disabled=
"disabled"
:coupon-info=
"couponInfo"
:show-coupon=
"showCoupon"
:risk-limit=
"riskLimit"
:coupon-disabled=
"showCoupon && !payCouponCouldBeUsed"
/>
<template
v-else
>
...
...
@@ -21,7 +20,6 @@
:disabled=
"disabled"
:coupon-info=
"couponInfo"
:show-coupon=
"showCoupon"
:risk-limit=
"riskLimit"
:coupon-disabled=
"showCoupon && !payCouponCouldBeUsed"
/>
</
template
>
...
...
src/views/pay/components/PayCardItem.vue
View file @
e3dcec44
...
...
@@ -20,12 +20,8 @@
<p>
{{
value
.
accountStatusDesc
}}
</p>
</div>
</div>
<div
v-if=
"showCoupon && value.payType === 1"
class=
"couponDes"
:class=
"
{ disable: couponDisabled }"
@click.stop="openCouponModal"
>
<div
v-if=
"showCoupon && value.payType === 1"
class=
"coupon"
>
<p
class=
"couponDes"
:class=
"
{ disable: couponDisabled }" @click.stop="openCouponModal">
<span
v-if=
"couponInfo.pickupId"
>
{{
`满${couponInfo.limitAmount
}
减${couponInfo.faceValue
}
元`
}}
<
/span
>
...
...
@@ -33,7 +29,11 @@
未选择优惠券
<
/span
>
<
cr
-
icon
type
=
"
arrow
"
class
=
"
selectArrow
"
size
=
"
15px
"
/>
<
/p
>
<
/div
>
<
p
v
-
if
=
"
value.riskLimitDesc
"
class
=
"
limitDes
"
>
{{
value
.
riskLimitDesc
}}
<
/p
>
<
/div
>
<
cr
-
checkbox
v
-
if
=
"
!isGroupPay
"
...
...
@@ -45,18 +45,9 @@
@
click
.
native
=
"
changePayType(value)
"
/>
<
/div
>
<
p
v
-
if
=
"
riskLimit && value.riskManagementDesc && !disabled
"
class
=
"
limitDes
"
>
{{
value
.
riskManagementDesc
}}
<
/p
>
<
/div
>
<
/template
>
<
script
>
// import
{
registeredEvents
}
from
'
@/utils/sa
'
;
// const payTypeE = [
// 'PD_YXMMAEC_UserClickCashierSelectXiangHuaCardPay',
// 'PD_YXMMAEC_UserClickCashierSelectWechatPay'
// ];
// const payTypeMiniAppE = ['c_cashierselectxianghuacardpay', 'c_cashierselectwechatpay'];
export
default
{
name
:
'
PayCardItem
'
,
inject
:
[
'
payCard
'
,
'
pay
'
],
...
...
@@ -93,8 +84,13 @@ export default {
width
:
100
%
;
padding
-
bottom
:
2
px
;
}
.
coupon
{
margin
-
top
:
4
px
;
height
:
20
px
;
padding
-
left
:
51
px
;
display
:
flex
;
}
.
couponDes
{
margin
-
left
:
50
px
;
display
:
inline
-
block
;
color
:
@
text
-
color
-
red
;
.
text
-
12
;
...
...
@@ -116,8 +112,8 @@ export default {
.
limitDes
{
color
:
#
ed6a0c
;
background
:
#
fffbe8
;
.
text
-
1
2
;
padding
:
10
px
8
px
;
.
text
-
1
1
;
padding
:
4
px
8
px
;
margin
:
8
px
;
border
-
radius
:
3
px
;
}
...
...
@@ -187,5 +183,6 @@ export default {
}
.
selectArrow
{
vertical
-
align
:
text
-
top
;
margin
-
left
:
-
2
px
;
}
<
/style
>
src/views/pay/components/SmsModal.vue
View file @
e3dcec44
...
...
@@ -29,7 +29,6 @@
</
template
>
<
script
>
// import { registeredEvents } from '@/utils/sa';
import
localStorage
from
'
@/service/localStorage.service
'
;
import
{
sendSms
as
sendSmsApi
}
from
'
@/api/pay.api
'
;
export
default
{
...
...
@@ -69,12 +68,9 @@ export default {
success
(
smsCode
)
{
this
.
$emit
(
'
submit
'
,
smsCode
);
},
async
sendSms
(
val
)
{
async
sendSms
()
{
// 页面摧毁清掉定时器
if
(
this
.
send
)
return
;
if
(
!
val
)
{
// registeredEvents('PD_YXMMACP_UserClickResendCaptcha');
}
const
[,
error
]
=
await
sendSmsApi
({
orderNo
:
this
.
orderNo
,
flowOrderNo
:
this
.
flowOrderNo
});
if
(
!
error
)
{
this
.
send
=
true
;
...
...
@@ -91,12 +87,6 @@ export default {
const
phoneS
=
`
${
phone
}
`
.
replace
(
/
(\d{3})\d
*
(\d{4})
/
,
'
+86 $1 **** $2
'
);
return
phoneS
;
},
sendSa
()
{
// if (!this.numberArr.length && !this.isDel) {
// registeredEvents('PD_YXMMACP_UserClickAgainVerificationCodeInputbox');
// wx.reportAnalytics('c_againverificationcodeinputbox', {});
// }
},
clearTimer
()
{
clearInterval
(
this
.
timer
);
this
.
send
=
false
;
...
...
@@ -129,9 +119,10 @@ export default {
text-align: center;
width: 100%;
font-size: 16px;
font-weight: bold;
}
&-des {
padding: 1
7
px 0 0 8px;
padding: 1
8
px 0 0 8px;
display: flex;
justify-content: flex-start;
font-size: 12px;
...
...
src/views/pay/index.vue
View file @
e3dcec44
...
...
@@ -32,7 +32,6 @@
v-model=
"thirdPayList"
:pay-type=
"payType"
:disabled=
"overtime"
:risk-limit=
"riskLimit"
:show-coupon=
"showCoupon"
:coupon-info=
"selectedCoupon"
:has-pwd=
"creditPayInfo.hasPwd"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment