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
e8092f45
Commit
e8092f45
authored
Dec 19, 2019
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuxin' into develop
parents
0e2475bc
278e5da7
Pipeline
#4240
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
192 additions
and
13 deletions
+192
-13
bind.png
src/assets/payment/bind.png
+0
-0
first-pay.vue
src/pages/pay/firstPay/first-pay.vue
+1
-1
pay-entry.vue
src/pages/pay/firstPay/pay-entry.vue
+189
-11
invoice-info.vue
src/pages/userBindNew/np/invoice-info.vue
+2
-1
No files found.
src/assets/payment/bind.png
0 → 100644
View file @
e8092f45
1.82 KB
src/pages/pay/firstPay/first-pay.vue
View file @
e8092f45
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</div>
</div>
</h-content>
</h-content>
<bottom-tab>
<bottom-tab>
<tab-button
class=
"footer"
@
click
.
native=
"pay"
>
支
付
</tab-button>
<tab-button
class=
"footer"
@
click
.
native=
"pay"
>
提交订单
</tab-button>
</bottom-tab>
</bottom-tab>
</h-view>
</h-view>
</
template
>
</
template
>
...
...
src/pages/pay/firstPay/pay-entry.vue
View file @
e8092f45
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<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"
>
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,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"
>
...
@@ -100,26 +100,71 @@
...
@@ -100,26 +100,71 @@
<span>
手续费
</span>
<span>
手续费
</span>
<span>
+¥
{{
serviceCharge
|
currency
}}
</span>
<span>
+¥
{{
serviceCharge
|
currency
}}
</span>
</div>
</div>
<div
class=
"info-item"
@
click=
"
s
how=true"
>
<div
class=
"info-item"
@
click=
"
wayS
how=true"
>
<span>
付款方式
</span>
<span>
付款方式
</span>
<span>
<span>
<img
:src=
"checkType.img"
>
<img
:src=
"checkPayWay.img"
>
<span>
{{
checkType
.
bank_full_name
}}
</span>
<span>
{{
checkPayWay
.
pay_type_name
}}
</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>
<bottom-tab>
<bottom-tab>
<tab-button
class=
"foot"
@
click
.
native=
"checkPay"
>
立即
支付
</tab-button>
<tab-button
class=
"foot"
@
click
.
native=
"checkPay"
>
去
支付
</tab-button>
</bottom-tab>
</bottom-tab>
</div>
</div>
</div>
</div>
</transition>
</transition>
<transition
name=
"trans"
>
<div
v-show=
"wayShow"
class=
"modal-show-payWay"
>
<div
class=
"down"
>
<div
class=
"top"
>
<img
src=
"@/assets/payment/back.png"
@
click=
"wayShow=false"
>
<span>
选择支付方式
</span>
</div>
<scroll>
<list-item
:item-height=
"56"
class=
"pay-way"
>
<item
v-for=
"(item,index) in notNongList"
:proportion=
"[7,1,1]"
:key=
"index"
@
click
.
native=
"isSelect(`bind`);ischeckPay(item)"
>
<div
slot=
"name"
style=
"flex=3"
>
<img
src=
"@/assets/payment/bind.png"
alt
class=
"icon"
>
{{
item
.
pay_type_name
}}
</div>
<section
slot=
"content"
>
<img
v-show=
"select === `bind`"
src=
"@/assets/payment/select.png"
alt
>
<img
v-show=
"select !== `bind`"
src=
"@/assets/payment/unselect.png"
alt
>
</section>
</item>
</list-item>
<list-item
:item-height=
"56"
class=
"pay-way"
>
<item
v-for=
"(item,index) in nongPayList"
:proportion=
"[7,1,1]"
:key=
"index"
@
click
.
native=
"isSelect(`pay$
{index}`);ischeckPay(item)"
>
<div
slot=
"name"
style=
"flex=3"
>
<img
src=
"@/assets/payment/ly.png"
alt
class=
"icon"
>
{{
item
.
pay_type_name
}}
</div>
<section
slot=
"content"
>
<img
v-show=
"select === `pay$
{index}`" src="@/assets/payment/select.png" alt >
<img
v-show=
"select !== `pay$
{index}`" src="@/assets/payment/unselect.png" alt >
</section>
</item>
</list-item>
</scroll>
</div>
</div>
</transition>
<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"
>
...
@@ -140,7 +185,7 @@
...
@@ -140,7 +185,7 @@
<span>
+¥
{{
serviceCharge
}}
</span>
<span>
+¥
{{
serviceCharge
}}
</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=
"checkType.img"
>
<span>
{{
checkType
.
bank_full_name
}}
</span>
<span>
{{
checkType
.
bank_full_name
}}
</span>
...
@@ -151,7 +196,7 @@
...
@@ -151,7 +196,7 @@
</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
>
...
@@ -174,12 +219,14 @@ import zg from '@/assets/payment/zg.png'
...
@@ -174,12 +219,14 @@ import zg from '@/assets/payment/zg.png'
import
zs
from
'@/assets/payment/zs.png'
import
zs
from
'@/assets/payment/zs.png'
import
zx
from
'@/assets/payment/zx.png'
import
zx
from
'@/assets/payment/zx.png'
import
bank
from
'@/assets/payment/bank.png'
import
bank
from
'@/assets/payment/bank.png'
import
yinlian
from
'@/assets/payment/bind.png'
export
default
{
export
default
{
name
:
'PayEntry'
,
name
:
'PayEntry'
,
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
money
:
''
,
money
:
''
,
wayShow
:
false
,
timer
:
null
,
timer
:
null
,
select
:
'three0'
,
select
:
'three0'
,
name
:
''
,
name
:
''
,
...
@@ -191,6 +238,10 @@ export default {
...
@@ -191,6 +238,10 @@ export default {
bank_full_name
:
''
,
bank_full_name
:
''
,
bank_account_num
:
''
,
bank_account_num
:
''
,
},
},
checkPayWay
:
{
img
:
''
,
pay_type_name
:
''
,
},
confirm
:
false
,
confirm
:
false
,
show
:
false
,
show
:
false
,
showOutside
:
false
,
showOutside
:
false
,
...
@@ -200,9 +251,18 @@ export default {
...
@@ -200,9 +251,18 @@ export default {
flag
:
false
,
// 用于判断是否有农业银行卡
flag
:
false
,
// 用于判断是否有农业银行卡
lists
:
[],
lists
:
[],
nongBank
:
[],
// 存农行卡
nongBank
:
[],
// 存农行卡
notNongList
:
[],
nongPayList
:
[],
}
}
},
},
computed
:
{
computed
:
{
title
()
{
if
(
this
.
confirm
)
{
return
'支付中心'
}
else
{
return
'确认订单'
}
},
serviceCharge
()
{
serviceCharge
()
{
return
(
this
.
money
*
(
this
.
rate
/
100
)).
toFixed
(
2
)
return
(
this
.
money
*
(
this
.
rate
/
100
)).
toFixed
(
2
)
},
},
...
@@ -244,6 +304,35 @@ export default {
...
@@ -244,6 +304,35 @@ export default {
this
.
money
=
this
.
$route
.
params
.
money
this
.
money
=
this
.
$route
.
params
.
money
},
},
methods
:
{
methods
:
{
ischeckPay
(
way
)
{
this
.
checkPayWay
.
pay_type_name
=
way
.
pay_type_name
if
(
way
.
pay_type_name
===
'银联支付'
)
{
this
.
checkPayWay
.
img
=
yinlian
}
else
{
debugger
this
.
checkPayWay
.
img
=
ny
}
this
.
sectctNong
=
true
this
.
wayShow
=
false
},
getPayType
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'payment_type_query'
let
param
=
{}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
notNongList
=
res
.
lists
.
filter
(
i
=>
{
return
i
.
pay_type
===
'ABC_UNION'
})
vm
.
nongPayList
=
res
.
lists
.
filter
(
i
=>
{
return
i
.
pay_type
===
'ABC_KM'
||
i
.
pay_type
===
'ABC_KL'
})
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
selectImg
(
e
)
{
selectImg
(
e
)
{
if
(
e
.
bank_full_name
.
indexOf
(
'建设'
)
!==
-
1
)
{
if
(
e
.
bank_full_name
.
indexOf
(
'建设'
)
!==
-
1
)
{
return
js
return
js
...
@@ -364,6 +453,7 @@ export default {
...
@@ -364,6 +453,7 @@ export default {
affirm
()
{
affirm
()
{
this
.
confirm
=
true
this
.
confirm
=
true
this
.
confirmToPay
()
this
.
confirmToPay
()
this
.
getPayType
()
},
},
changePage
()
{
changePage
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -466,7 +556,7 @@ export default {
...
@@ -466,7 +556,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;
...
@@ -479,6 +569,94 @@ export default {
...
@@ -479,6 +569,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%;
...
...
src/pages/userBindNew/np/invoice-info.vue
View file @
e8092f45
...
@@ -99,6 +99,7 @@ export default {
...
@@ -99,6 +99,7 @@ export default {
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
vm
=>
{
vm
.
invoiceInfo
=
{}
if
(
from
.
name
===
'NPBaseInfo'
&&
window
.
localStorage
.
from
)
{
if
(
from
.
name
===
'NPBaseInfo'
&&
window
.
localStorage
.
from
)
{
vm
.
getInvoice
()
vm
.
getInvoice
()
}
}
...
@@ -121,7 +122,7 @@ export default {
...
@@ -121,7 +122,7 @@ export default {
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
invoiceInfo
,
res
.
info
)
vm
.
invoiceInfo
=
res
.
info
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
...
...
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