Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
xugong
hls-xcmg-vue-app
Commits
640e7153
Commit
640e7153
authored
Jan 02, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add保证金支付
parent
f2ffbf06
Pipeline
#4409
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
354 additions
and
136 deletions
+354
-136
first-pay.vue
src/pages/pay/marginPay/first-pay.vue
+29
-14
pay-entry.vue
src/pages/pay/marginPay/pay-entry.vue
+322
-119
pay-entry.vue
src/pages/pay/payment/pay-entry.vue
+1
-1
index.js
src/router/index.js
+2
-2
No files found.
src/pages/pay/marginPay/first-pay.vue
View file @
640e7153
...
@@ -30,14 +30,14 @@
...
@@ -30,14 +30,14 @@
<CurrencyInput
v-model=
"money"
type=
"number"
placeholder=
"请输入支付金额"
/>
<CurrencyInput
v-model=
"money"
type=
"number"
placeholder=
"请输入支付金额"
/>
<!--
<div
@
click=
"createOrder"
>
<!--
<div
@
click=
"createOrder"
>
<img
src=
"@/assets/payment/into.png"
>
<img
src=
"@/assets/payment/into.png"
>
</div>
-->
</div>
-->
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"write"
>
<div
class=
"write"
>
<div
class=
"box"
>
<div
class=
"box"
>
<span>
备注
</span>
<span>
备注
</span>
<textarea
placeholder=
"请输入您的备注……"
/>
<textarea
v-model=
"pay_note"
placeholder=
"请输入您的备注……"
/>
</div>
</div>
</div>
</div>
</section>
</section>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</div>
</div>
</h-content>
</h-content>
<bottom-tab>
<bottom-tab>
<tab-button
class=
"footer"
@
click
.
native=
"
toPayEntry(money)"
>
支
付
</tab-button>
<tab-button
class=
"footer"
@
click
.
native=
"
putOrder(money)"
>
提交订单
</tab-button>
</bottom-tab>
</bottom-tab>
</h-view>
</h-view>
</
template
>
</
template
>
...
@@ -69,25 +69,40 @@ export default {
...
@@ -69,25 +69,40 @@ export default {
return
{
return
{
money
:
0
,
money
:
0
,
default
:
0
,
default
:
0
,
pay_note
:
''
,
// 备注
}
}
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
vm
=>
{})
})
},
},
computed
:
{},
computed
:
{},
watch
:
{},
watch
:
{},
methods
:
{
methods
:
{
putOrder
(
money
)
{
toPayEntry
(
money
)
{
let
vm
=
this
this
.
$router
.
push
({
let
url
=
process
.
env
.
basePath
+
'create_order_agent_amt'
name
:
'MarginPayEntry'
,
let
param
=
{
params
:
{
info
:
{
money
,
bp_id
:
window
.
localStorage
.
bp_id
,
amount
:
money
,
pay_note
:
this
.
pay_note
,
},
},
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
this
.
$router
.
push
({
name
:
'MarginPayEntry'
,
params
:
{
order_id
:
res
.
order_id
,
money
,
},
})
}
})
})
},
},
toPayEntry
(
money
)
{},
},
},
}
}
</
script
>
</
script
>
...
@@ -97,7 +112,7 @@ export default {
...
@@ -97,7 +112,7 @@ export default {
width: 96%;
width: 96%;
height: 172px;
height: 172px;
background-color: #fff;
background-color: #fff;
margin-top:10px;
margin-top:
10px;
box-shadow: 0 1px 3px 2px rgba(168, 168, 168, 0.14);
box-shadow: 0 1px 3px 2px rgba(168, 168, 168, 0.14);
span {
span {
font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular;
...
@@ -119,7 +134,7 @@ export default {
...
@@ -119,7 +134,7 @@ export default {
}
}
}
}
}
}
.top-head {
.top-head {
width: 100%;
width: 100%;
height: 142px;
height: 142px;
background: url("../../../assets/payment/back1.png");
background: url("../../../assets/payment/back1.png");
...
...
src/pages/pay/marginPay/pay-entry.vue
View file @
640e7153
<
template
>
<
template
>
<h-view
id=
"
pay-entry-margin
"
class=
"public-style"
>
<h-view
id=
"
marginPay-pay-entry
"
class=
"public-style"
>
<transition
name=
"trans"
>
<transition
name=
"trans"
>
<div
v-show=
"downNum"
class=
"modal-show"
>
<div
v-show=
"downNum"
class=
"modal-show"
>
<div
class=
"down"
>
<div
class=
"down"
>
...
@@ -14,57 +14,18 @@
...
@@ -14,57 +14,18 @@
<div
class=
"down"
>
<div
class=
"down"
>
<div
class=
"top"
>
<div
class=
"top"
>
<img
src=
"@/assets/payment/back.png"
@
click=
"show=false"
>
<img
src=
"@/assets/payment/back.png"
@
click=
"show=false"
>
<span>
支付方式
</span>
<span>
选择支付渠道
</span>
</div>
</div>
<scroll>
<scroll>
<list-item
:item-height=
"56"
class=
"pay-way"
>
<list-item
:item-height=
"56"
class=
"pay-way"
>
<item
<item
v-for=
"(item,index) in nongBank"
v-for=
"(item,index) in payTypeList"
:proportion=
"[7,1,1]"
:key=
"item.bank_account_num"
@
click
.
native=
"isSelect(`nong$
{index}`);ischeck(item)"
>
<div
slot=
"name"
style=
"flex=3"
>
<img
:src=
"selectImg(item)"
alt
class=
"icon"
>
{{
item
.
bank_full_name
}}
(
{{
selectLast
(
item
)
}}
)
<img
v-show=
"item.recommand"
class=
"push"
src=
"@/assets/payment/push.png"
>
</div>
<section
slot=
"content"
>
<img
v-show=
"select === `nong$
{index}`" src="@/assets/payment/select.png" alt >
<img
v-show=
"select !== `nong$
{index}`" src="@/assets/payment/unselect.png" alt >
</section>
</item>
<item
:proportion=
"[7,1,1]"
@
click
.
native=
"isSelect('one');ischeck('one')"
>
<div
slot=
"name"
>
<img
src=
"@/assets/payment/alipay.png"
alt
class=
"icon1"
>
支付宝
</div>
<section
slot=
"content"
>
<img
v-show=
"select === 'one'"
src=
"@/assets/payment/select.png"
alt
>
<img
v-show=
"select !== 'one'"
src=
"@/assets/payment/unselect.png"
alt
>
</section>
</item>
<item
:proportion=
"[7,1,1]"
@
click
.
native=
"isSelect('two');ischeck('two')"
>
<div
slot=
"name"
>
<img
src=
"@/assets/payment/wx.png"
alt
class=
"icon2"
>
微信
</div>
<section
slot=
"content"
>
<img
v-show=
"select === 'two'"
src=
"@/assets/payment/select.png"
alt
>
<img
v-show=
"select !== 'two'"
src=
"@/assets/payment/unselect.png"
alt
>
</section>
</item>
<item
v-for=
"(item,index) in newList"
:proportion=
"[7,1,1]"
:proportion=
"[7,1,1]"
:key=
"index"
:key=
"index"
@
click
.
native=
"isSelect(`three$
{index}`);ischeck(item)"
@
click
.
native=
"isSelect(`three$
{index}`);ischeck(item)">
<!--;confirmToPay(item)-->
>
<div
slot=
"name"
style=
"flex=3"
>
<div
slot=
"name"
style=
"flex=3"
>
<img
:src=
"selectImg(item)"
alt
class=
"icon"
>
<img
:src=
"selectImg(item)"
alt
class=
"icon"
>
{{
item
.
bank_full_name
}}
(
{{
selectLast
(
item
)
}}
)
{{
item
.
code_name
}}
<img
<img
v-show=
"item.recommand"
v-show=
"item.recommand"
class=
"push"
class=
"push"
...
@@ -86,7 +47,7 @@
...
@@ -86,7 +47,7 @@
<div
class=
"down"
>
<div
class=
"down"
>
<div
class=
"top"
>
<div
class=
"top"
>
<img
src=
"@/assets/payment/back.png"
@
click=
"confirm=false"
>
<img
src=
"@/assets/payment/back.png"
@
click=
"confirm=false"
>
<span>
确认付款
</span>
<span>
确认付款
方式
</span>
</div>
</div>
<div
class=
"info"
>
<div
class=
"info"
>
<div
class=
"info-item"
>
<div
class=
"info-item"
>
...
@@ -101,17 +62,23 @@
...
@@ -101,17 +62,23 @@
<span>
+¥
{{
serviceCharge
|
currency
}}
</span>
<span>
+¥
{{
serviceCharge
|
currency
}}
</span>
</div>
</div>
<div
class=
"info-item"
@
click=
"show=true"
>
<div
class=
"info-item"
@
click=
"show=true"
>
<span>
付款方式
</span>
<span>
支付渠道
</span>
<span>
<span>
<img
:src=
"checkType.img"
>
<img
:src=
"payTypeObj.img"
>
<span>
{{
checkType
.
bank_full_name
}}
</span>
<span>
{{
payTypeObj
.
payType_n
}}
</span>
<span
v-if=
"sectctNong"
>
(
{{
selectLast
(
checkType
)
}}
)
</span>
<img
class=
"arrow"
src=
"@/assets/payment/go.png"
>
<img
class=
"arrow"
src=
"@/assets/payment/go.png"
>
</span>
</span>
</div>
</div>
<!--
<list-item
:item-height=
"44"
>
<item
:showArrow=
"true"
@
click
.
native=
"selectPayType"
>
<div
slot=
"name"
>
支付渠道
</div>
<input
slot=
"content"
v-model=
"payTypeObj.payType_n"
readonly
>
</item>
</list-item>
-->
</div>
</div>
<bottom-tab>
<bottom-tab>
<tab-button
class=
"foot"
@
click
.
native=
"
pay"
>
立即
支付
</tab-button>
<tab-button
class=
"foot"
@
click
.
native=
"
checkPay"
>
去
支付
</tab-button>
</bottom-tab>
</bottom-tab>
</div>
</div>
</div>
</div>
...
@@ -119,7 +86,7 @@
...
@@ -119,7 +86,7 @@
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
支付中心
</span>
<span>
{{
title
}}
</span>
</div>
</div>
</h-header>
</h-header>
<h-content
class=
"entry-content"
>
<h-content
class=
"entry-content"
>
...
@@ -139,24 +106,32 @@
...
@@ -139,24 +106,32 @@
<span>
手续费
</span>
<span>
手续费
</span>
<span>
+¥
{{
serviceCharge
}}
</span>
<span>
+¥
{{
serviceCharge
}}
</span>
</div>
</div>
<!--
<list-item
:item-height=
"44"
>
<item
:showArrow=
"true"
@
click
.
native=
"selectPayType"
>
<div
slot=
"name"
>
支付渠道
</div>
<input
slot=
"content"
v-model=
"payTypeObj.payType_n"
readonly
>
</item>
</list-item>
-->
<div
class=
"info-item"
@
click=
"show=true"
>
<div
class=
"info-item"
@
click=
"show=true"
>
<span>
付款方式
</span>
<span>
支付渠道
</span>
<span>
<span>
<img
:src=
"checkType.img"
>
<img
:src=
"payTypeObj.img"
>
<span>
{{
checkType
.
bank_full_name
}}
</span>
<span>
{{
payTypeObj
.
payType_n
}}
</span>
<span
v-if=
"sectctNong"
>
(
{{
selectLast
(
checkType
)
}}
)
</span>
<img
class=
"arrow"
src=
"@/assets/payment/go.png"
>
<img
class=
"arrow"
src=
"@/assets/payment/go.png"
>
</span>
</span>
</div>
</div>
</div>
</div>
</h-content>
</h-content>
<bottom-tab>
<bottom-tab>
<tab-button
class=
"foot"
@
click
.
native=
"affirm"
>
确认
支付
</tab-button>
<tab-button
class=
"foot"
@
click
.
native=
"affirm"
>
确认
订单
</tab-button>
</bottom-tab>
</bottom-tab>
</h-view>
</h-view>
</
template
>
</
template
>
<
script
>
<
script
>
import
zfb
from
'@/assets/payment/alipay.png'
import
wx
from
'@/assets/payment/wx.png'
import
js
from
'@/assets/payment/js.png'
import
js
from
'@/assets/payment/js.png'
import
ny
from
'@/assets/payment/ly.png'
import
ny
from
'@/assets/payment/ly.png'
import
pf
from
'@/assets/payment/pf.png'
import
pf
from
'@/assets/payment/pf.png'
...
@@ -170,50 +145,94 @@ import xy from '@/assets/payment/xy.png'
...
@@ -170,50 +145,94 @@ import xy from '@/assets/payment/xy.png'
import
yzcx
from
'@/assets/payment/yzcx.png'
import
yzcx
from
'@/assets/payment/yzcx.png'
import
zg
from
'@/assets/payment/zg.png'
import
zg
from
'@/assets/payment/zg.png'
import
zs
from
'@/assets/payment/zs.png'
import
zs
from
'@/assets/payment/zs.png'
import
yinlian
from
'@/assets/payment/bind.png'
import
zx
from
'@/assets/payment/zx.png'
import
zx
from
'@/assets/payment/zx.png'
import
bank
from
'@/assets/payment/bank.png'
export
default
{
export
default
{
name
:
'PayEntry'
,
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
money
:
''
,
money
:
''
,
wayShow
:
false
,
timer
:
null
,
select
:
'three0'
,
select
:
'three0'
,
name
:
''
,
name
:
''
,
sectctNong
:
false
,
pay_type
:
''
,
bank_account_id
:
''
,
isNongPay
:
false
,
checkType
:
{
img
:
''
,
bank_full_name
:
''
,
bank_account_num
:
''
,
},
payTypeList
:
[],
payTypeObj
:
{
img
:
ny
,
payType
:
'ABC_PAY'
,
payType_n
:
'农行支付'
,
},
confirm
:
false
,
show
:
false
,
showOutside
:
false
,
downNum
:
false
,
downNum
:
false
,
recommand
:
false
,
recommand
:
false
,
userName
:
window
.
localStorage
.
getItem
(
'bp_name'
),
flag
:
false
,
// 用于判断是否有农业银行卡
flag
:
false
,
// 用于判断是否有农业银行卡
lists
:
[],
lists
:
[],
nongBank
:
[],
// 存农行卡
nongBank
:
[],
// 存农行卡
notNongList
:
[],
nongPayList
:
[],
}
}
},
},
computed
:
{
computed
:
{
title
()
{
if
(
this
.
confirm
)
{
return
'支付中心'
}
else
{
return
'确认订单'
}
},
text
()
{
if
(
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行'
)
!==
-
1
)
{
return
'K码/K令支付'
}
else
if
(
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行'
)
===
-
1
)
{
return
'银联支付'
}
},
serviceCharge
()
{
return
(
this
.
money
*
(
this
.
rate
/
100
)).
toFixed
(
2
)
},
rate
()
{
return
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行'
)
!==
-
1
?
0.0
:
0.18
},
sumMoney
()
{
return
(
parseFloat
(
this
.
serviceCharge
)
+
parseFloat
(
this
.
money
)).
toFixed
(
2
)
},
newList
()
{
newList
()
{
let
vm
=
this
let
vm
=
this
vm
.
nongBank
=
[]
vm
.
lists
.
forEach
((
item
,
i
)
=>
{
if
(
item
.
bank_full_name
.
indexOf
(
'农业'
)
!==
-
1
)
{
vm
.
nongBank
.
push
(
vm
.
lists
[
i
])
vm
.
flag
=
true
}
})
let
notNong
=
vm
.
lists
.
filter
(
i
=>
{
let
notNong
=
vm
.
lists
.
filter
(
i
=>
{
return
(
i
.
bank_full_name
.
indexOf
(
'农业'
)
===
-
1
)
return
i
.
bank_full_name
.
indexOf
(
'农业'
)
===
-
1
})
})
if
(
vm
.
flag
)
{
vm
.
select
=
'nong0'
}
else
{
vm
.
select
=
'one'
}
return
notNong
return
notNong
},
},
},
},
watch
:
{},
watch
:
{
'payTypeObj.payType_n'
()
{
// this.confirmToPay()
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
vm
=>
{
vm
.
confirm
=
false
vm
.
show
=
false
vm
.
showOutside
=
false
vm
.
downNum
=
false
vm
.
name
=
from
.
name
vm
.
name
=
from
.
name
vm
.
getType
()
vm
.
getType
()
vm
.
nongBank
=
[]
vm
.
nongBank
=
[]
vm
.
getPayType
()
})
})
},
},
...
@@ -221,38 +240,41 @@ export default {
...
@@ -221,38 +240,41 @@ export default {
this
.
money
=
this
.
$route
.
params
.
money
this
.
money
=
this
.
$route
.
params
.
money
},
},
methods
:
{
methods
:
{
selectPayType
(
e
)
{
let
vm
=
this
vm
.
hlsPopup
.
selectList
({
list
:
vm
.
payTypeList
,
code
:
'bp_type'
,
object
:
{},
returnItem
:
function
(
index
,
obj
)
{
vm
.
payTypeObj
.
payType
=
obj
.
bp_type
vm
.
payTypeObj
.
payType_n
=
obj
.
bp_type_n
},
})
},
getPayType
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'payment_type_query'
let
param
=
{}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
payTypeList
=
res
.
lists
.
map
(
item
=>
{
return
{
code
:
item
.
pay_type
,
code_name
:
item
.
pay_type_name
,
}
})
}
})
},
selectImg
(
e
)
{
selectImg
(
e
)
{
if
(
e
.
bank_full_name
.
indexOf
(
'建设'
)
!==
-
1
)
{
if
(
e
.
code_name
.
indexOf
(
'农行'
)
!==
-
1
)
{
return
js
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'农业'
)
!==
-
1
)
{
e
.
recommand
=
true
e
.
recommand
=
true
return
ny
return
ny
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'光大'
)
!==
-
1
)
{
}
else
if
(
e
.
code_name
.
indexOf
(
'银联'
)
!==
-
1
)
{
return
gd
return
yinlian
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'广发'
)
!==
-
1
)
{
return
gf
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'浦'
)
!==
-
1
)
{
return
pf
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'工商'
)
!==
-
1
)
{
return
gs
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'交通'
)
!==
-
1
)
{
return
jt
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'民生'
)
!==
-
1
)
{
return
ms
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'平安'
)
!==
-
1
)
{
return
pa
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'兴业'
)
!==
-
1
)
{
return
xy
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'邮'
)
!==
-
1
)
{
return
yzcx
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'中国'
)
!==
-
1
)
{
return
zg
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'招商'
)
!==
-
1
)
{
return
zs
}
else
if
(
e
.
bank_full_name
.
indexOf
(
'中信'
)
!==
-
1
)
{
return
zx
}
else
{
return
bank
}
}
},
},
selectLast
(
item
)
{
selectLast
(
item
)
{
...
@@ -262,17 +284,78 @@ export default {
...
@@ -262,17 +284,78 @@ export default {
isSelect
(
way
)
{
isSelect
(
way
)
{
this
.
select
=
way
this
.
select
=
way
},
},
pay
()
{
ischeck
(
way
)
{
this
.
payTypeObj
.
payType
=
way
.
code
this
.
payTypeObj
.
payType_n
=
way
.
code_name
this
.
payTypeObj
.
img
=
this
.
selectImg
(
way
)
this
.
show
=
false
},
confirmToPay
(
e
)
{
let
vm
=
this
let
vm
=
this
let
randomString
=
Math
.
floor
(
Math
.
random
()
*
21
)
let
url
=
process
.
env
.
basePath
+
'update_order_info'
+
'&index'
+
`'
${
randomString
}
'`
if
(
e
)
{
vm
.
pay_type
=
e
.
pay_type
vm
.
bank_account_id
=
e
.
bank_account_id
}
let
param
=
{
info
:
{
order_id
:
vm
.
$route
.
params
.
order_id
,
fee
:
vm
.
serviceCharge
,
bank_account_id
:
'0'
,
pay_type
:
vm
.
payTypeObj
.
payType
,
},
}
hlsPopup
.
showLoading
(
'请稍候'
)
hlsPopup
.
showLoading
(
'请稍候'
)
setTimeout
(()
=>
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
checkPay
()
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
checkPay
()
{
let
vm
=
this
if
(
parseFloat
(
vm
.
sumMoney
)
===
0
)
{
hlsPopup
.
showLongCenter
(
'您支付的金额为0元'
)
}
else
{
vm
.
pay
()
}
},
pay
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'merchant_payment'
let
param
=
{
order_id
:
vm
.
$route
.
params
.
order_id
,
}
// hlsPopup.showLoading('请稍候')
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
vm
.
money
===
0
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
downNum
=
true
if
(
res
.
return_code
!==
'0000'
)
{
hlsPopup
.
showLongCenter
(
res
.
error_message
)
}
else
{
vm
.
$router
.
push
({
name
:
'PayPage'
,
params
:
{
url
:
res
.
paymentURL
,
order_id
:
vm
.
$route
.
params
.
order_id
,
text
:
vm
.
text
,
payType
:
vm
.
payTypeObj
.
payType
,
},
})
}
}
else
{
}
else
{
vm
.
changePage
(
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
},
2000
)
})
},
affirm
()
{
// this.confirm = true
this
.
confirmToPay
()
},
},
changePage
()
{
changePage
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -283,7 +366,6 @@ export default {
...
@@ -283,7 +366,6 @@ export default {
},
},
})
})
},
},
getType
()
{
getType
()
{
let
vm
=
this
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'payment_method_query'
let
url
=
process
.
env
.
basePath
+
'payment_method_query'
...
@@ -295,6 +377,36 @@ export default {
...
@@ -295,6 +377,36 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
lists
=
res
.
lists
vm
.
lists
=
res
.
lists
vm
.
nongBank
=
[]
vm
.
lists
.
forEach
((
item
,
i
)
=>
{
if
(
item
.
bank_full_name
.
indexOf
(
'农业'
)
!==
-
1
)
{
vm
.
nongBank
.
push
(
vm
.
lists
[
i
])
vm
.
flag
=
true
}
})
if
(
vm
.
flag
)
{
vm
.
select
=
'nong0'
vm
.
checkType
.
bank_full_name
=
'农业银行'
vm
.
checkType
.
img
=
ny
vm
.
checkType
.
bank_account_num
=
vm
.
nongBank
[
0
].
bank_account_num
vm
.
sectctNong
=
true
// vm.confirmToPay(vm.nongBank[0])
vm
.
pay_type
=
vm
.
nongBank
[
0
].
pay_type
vm
.
bank_account_id
=
vm
.
nongBank
[
0
].
bank_account_id
}
else
if
(
!
vm
.
flag
&&
vm
.
lists
.
length
!==
0
)
{
vm
.
select
=
'three0'
vm
.
checkType
.
bank_full_name
=
vm
.
newList
[
0
].
bank_full_name
vm
.
checkType
.
img
=
vm
.
selectImg
(
vm
.
newList
[
0
])
vm
.
checkType
.
bank_account_num
=
vm
.
newList
[
0
].
bank_account_num
vm
.
sectctNong
=
true
vm
.
pay_type
=
vm
.
lists
[
0
].
pay_type
vm
.
bank_account_id
=
vm
.
lists
[
0
].
bank_account_id
// vm.confirmToPay(vm.lists[0])
}
else
if
(
!
vm
.
flag
&&
vm
.
lists
===
0
)
{
vm
.
sectctNong
=
false
hlsPopup
.
showLongCenter
(
'请先绑定银行卡'
)
vm
.
checkType
.
bank_full_name
=
'(无)'
}
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
...
@@ -304,8 +416,11 @@ export default {
...
@@ -304,8 +416,11 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
'less'
>
<
style
lang=
'less'
>
#pay-entry-margin {
#marginPay-pay-entry{
.vue-better-scroll__wrapper{
.hls-list-item{
margin-bottom: 2px !important;
}
.vue-better-scroll__wrapper {
padding: 0;
padding: 0;
}
}
.trans-enter-active,
.trans-enter-active,
...
@@ -328,8 +443,8 @@ export default {
...
@@ -328,8 +443,8 @@ export default {
.down {
.down {
height: 466px;
height: 466px;
width: 100%;
width: 100%;
position: relative;
position: relative;
top:18%;
top:
18%;
background: #fff;
background: #fff;
border-radius: 12px 12px 0 0;
border-radius: 12px 12px 0 0;
overflow: scroll;
overflow: scroll;
...
@@ -346,7 +461,7 @@ export default {
...
@@ -346,7 +461,7 @@ export default {
width: 20px;
width: 20px;
}
}
span {
span {
margin-left: 3
8
%;
margin-left: 3
0
%;
font-family: PingFangSC-Semibold;
font-family: PingFangSC-Semibold;
font-size: 16px;
font-size: 16px;
color: #656464;
color: #656464;
...
@@ -359,6 +474,94 @@ export default {
...
@@ -359,6 +474,94 @@ export default {
}
}
}
}
}
}
.modal-show-payWay{
width: 100%;
height: 100%;
position: absolute;
display: flex;
z-index: 910;
background-color: rgba(56, 63, 69, 0.3);
justify-content: center;
align-items: center;
.down {
height: 466px;
width: 100%;
position: relative;
top: 18%;
background: #fff;
border-radius: 12px 12px 0 0;
overflow: scroll;
display: flex;
align-items: center;
flex-direction: column;
.top {
left: 24px;
width: 330px;
height: 54px;
display: flex;
align-items: center;
background-color: #fff;
img {
width: 20px;
}
span {
margin-left: 38%;
font-family: PingFangSC-Semibold;
font-size: 16px;
color: #656464;
letter-spacing: 0.49px;
text-align: center;
}
}
.pay-way {
//width: 350px;
//margin: 0 auto;
width: 100%;
padding: 0 4% 0 4%;
background: #fff;
.hls-item {
padding-left: 12px;
.add-name {
flex: 3;
line-height: 56px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #656464;
div {
display: flex;
justify-content: center;
align-items: center;
}
.icon1 {
width: 34px;
height: 34px;
display: block;
float: left;
margin-top: 10px;
margin-right: 5px;
}
.icon2 {
width: 32px;
display: block;
float: left;
margin-top: 12px;
margin-right: 8px;
}
.icon {
width: 30px;
margin: 0 8px 0 3px;
}
}
.add-content {
img {
width: 21px;
}
}
}
}
}
}
.modal-show-bank {
.modal-show-bank {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
...
@@ -371,8 +574,8 @@ export default {
...
@@ -371,8 +574,8 @@ export default {
.down {
.down {
height: 466px;
height: 466px;
width: 100%;
width: 100%;
position: relative;
position: relative;
top:18%;
top:
18%;
background: #fff;
background: #fff;
border-radius: 12px 12px 0 0;
border-radius: 12px 12px 0 0;
overflow: scroll;
overflow: scroll;
...
@@ -402,7 +605,7 @@ export default {
...
@@ -402,7 +605,7 @@ export default {
//width: 350px;
//width: 350px;
//margin: 0 auto;
//margin: 0 auto;
width: 100%;
width: 100%;
padding: 0 4% 0 4%;
padding: 0 4% 0 4%;
background: #fff;
background: #fff;
.hls-item {
.hls-item {
padding-left: 12px;
padding-left: 12px;
...
@@ -412,7 +615,7 @@ export default {
...
@@ -412,7 +615,7 @@ export default {
font-family: PingFangSC-Regular;
font-family: PingFangSC-Regular;
font-size: 14px;
font-size: 14px;
color: #656464;
color: #656464;
div{
div
{
display: flex;
display: flex;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
...
@@ -434,7 +637,7 @@ export default {
...
@@ -434,7 +637,7 @@ export default {
}
}
.icon {
.icon {
width: 30px;
width: 30px;
/* display: block;
/* display: block;
float: left;
float: left;
position: relative;*/
position: relative;*/
margin: 0 8px 0 3px;
margin: 0 8px 0 3px;
...
@@ -514,7 +717,7 @@ export default {
...
@@ -514,7 +717,7 @@ export default {
}
}
}
}
.push {
.push {
/* position: absolute;
/* position: absolute;
top: 10px;
top: 10px;
margin-left: 10px;*/
margin-left: 10px;*/
width: 35px;
width: 35px;
...
...
src/pages/pay/payment/pay-entry.vue
View file @
640e7153
...
@@ -258,7 +258,7 @@ export default {
...
@@ -258,7 +258,7 @@ export default {
})
})
},
},
affirm
()
{
affirm
()
{
// this.confirm = true
// this.confirm = true
this
.
confirmToPay
()
this
.
confirmToPay
()
},
},
confirmToPay
(
e
)
{
confirmToPay
(
e
)
{
...
...
src/router/index.js
View file @
640e7153
...
@@ -244,8 +244,8 @@ export default new Router({
...
@@ -244,8 +244,8 @@ export default new Router({
{
path
:
'/new-list'
,
component
:
NewList
,
name
:
'NewList'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/new-list'
,
component
:
NewList
,
name
:
'NewList'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/payment-contract-record'
,
component
:
PaymentContractRecord
,
name
:
'PaymentContractRecord'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/payment-contract-record'
,
component
:
PaymentContractRecord
,
name
:
'PaymentContractRecord'
,
meta
:
{
keepAlive
:
true
}},
// 保证金支付
// 保证金支付
{
path
:
'/margin-first-pay'
,
component
:
MarginFirstPay
,
name
:
'MarginFirstPay'
,
meta
:
{
keepAlive
:
tru
e
}},
{
path
:
'/margin-first-pay'
,
component
:
MarginFirstPay
,
name
:
'MarginFirstPay'
,
meta
:
{
keepAlive
:
fals
e
}},
{
path
:
'/margin-pay-entry'
,
component
:
MarginPayEntry
,
name
:
'MarginPayEntry'
,
meta
:
{
keepAlive
:
tru
e
}},
{
path
:
'/margin-pay-entry'
,
component
:
MarginPayEntry
,
name
:
'MarginPayEntry'
,
meta
:
{
keepAlive
:
fals
e
}},
// 支付页
// 支付页
{
path
:
'/pay-page'
,
component
:
PayPage
,
name
:
'PayPage'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/pay-page'
,
component
:
PayPage
,
name
:
'PayPage'
,
meta
:
{
keepAlive
:
false
}},
// 产品查询
// 产品查询
...
...
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