Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
phobos-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
phobos-ui
Commits
670a96f4
Commit
670a96f4
authored
Oct 26, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(pay): 新人专享
parent
bf475a3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
STATIC_DATA.js
src/views/pay/STATIC_DATA.js
+14
-3
index.vue
src/views/pay/index.vue
+2
-0
No files found.
src/views/pay/STATIC_DATA.js
View file @
670a96f4
...
...
@@ -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
()
{
...
...
src/views/pay/index.vue
View file @
670a96f4
...
...
@@ -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
)
{
...
...
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