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
0ea5f6f6
Commit
0ea5f6f6
authored
Dec 26, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付渠道
parent
61e173c5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
136 additions
and
20 deletions
+136
-20
creat-rent-info.vue
src/pages/contractCreate/creat-rent-info.vue
+3
-0
pay-entry.vue
src/pages/pay/firstPay/pay-entry.vue
+63
-9
pay-page.vue
src/pages/pay/pay-page.vue
+13
-1
pay-entry.vue
src/pages/pay/payment/pay-entry.vue
+56
-9
index.js
src/router/index.js
+1
-1
No files found.
src/pages/contractCreate/creat-rent-info.vue
View file @
0ea5f6f6
...
...
@@ -359,6 +359,9 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
Object
.
assign
(
vm
.
saveInfo
,
res
.
info
)
vm
.
productInfo
.
product_num
=
res
.
info
.
product_num
vm
.
productInfo
.
product_id
=
res
.
info
.
product_id
vm
.
productInfo
.
product_id_n
=
res
.
info
.
product_id_n
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
src/pages/pay/firstPay/pay-entry.vue
View file @
0ea5f6f6
...
...
@@ -14,7 +14,7 @@
<div
class=
"down"
>
<div
class=
"top"
>
<img
src=
"@/assets/payment/back.png"
@
click=
"show=false"
>
<span>
选择
银行卡
</span>
<span>
选择
支付渠道
</span>
</div>
<scroll>
<list-item
:item-height=
"56"
class=
"pay-way"
>
...
...
@@ -100,7 +100,7 @@
<span>
手续费
</span>
<span>
+¥
{{
serviceCharge
|
currency
}}
</span>
</div>
<div
class=
"info-item"
@
click=
"show=true"
>
<
!--
<
div
class=
"info-item"
@
click=
"show=true"
>
<span>
银行卡
</span>
<span>
<img
:src=
"checkType.img"
>
...
...
@@ -108,7 +108,14 @@
<span
v-if=
"sectctNong"
>
(
{{
selectLast
(
checkType
)
}}
)
</span>
<img
class=
"arrow"
src=
"@/assets/payment/go.png"
>
</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>
<bottom-tab>
<tab-button
class=
"foot"
@
click
.
native=
"checkPay"
>
去支付
</tab-button>
...
...
@@ -139,7 +146,14 @@
<span>
手续费
</span>
<span>
+¥
{{
serviceCharge
}}
</span>
</div>
<div
class=
"info-item"
@
click=
"show=true"
>
<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"
>
<span>
银行卡
</span>
<span>
<img
:src=
"checkType.img"
>
...
...
@@ -147,7 +161,7 @@
<span
v-if=
"sectctNong"
>
(
{{
selectLast
(
checkType
)
}}
)
</span>
<img
class=
"arrow"
src=
"@/assets/payment/go.png"
>
</span>
</div>
</div>
-->
</div>
</h-content>
<bottom-tab>
...
...
@@ -193,6 +207,11 @@ export default {
bank_full_name
:
''
,
bank_account_num
:
''
,
},
payTypeList
:
[],
payTypeObj
:
{
payType
:
'ABC_PAY'
,
payType_n
:
'农行支付'
,
},
confirm
:
false
,
show
:
false
,
showOutside
:
false
,
...
...
@@ -215,9 +234,9 @@ export default {
}
},
text
()
{
if
(
this
.
checkType
.
bank_full_name
.
indexOf
(
'农业
'
)
!==
-
1
)
{
if
(
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行
'
)
!==
-
1
)
{
return
'K码/K令支付'
}
else
if
(
this
.
checkType
.
bank_full_name
.
indexOf
(
'农业
'
)
===
-
1
)
{
}
else
if
(
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行
'
)
===
-
1
)
{
return
'银联支付'
}
},
...
...
@@ -225,7 +244,7 @@ export default {
return
(
this
.
money
*
(
this
.
rate
/
100
)).
toFixed
(
2
)
},
rate
()
{
return
this
.
checkType
.
bank_full_name
.
indexOf
(
'农业
'
)
!==
-
1
?
0.0
:
0.18
return
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行
'
)
!==
-
1
?
0.0
:
0.18
},
sumMoney
()
{
return
(
parseFloat
(
this
.
serviceCharge
)
+
parseFloat
(
this
.
money
)).
toFixed
(
...
...
@@ -246,6 +265,11 @@ export default {
return
notNong
},
},
watch
:
{
'payTypeObj.payType_n'
()
{
this
.
confirmToPay
()
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
vm
.
confirm
=
false
...
...
@@ -255,6 +279,7 @@ export default {
vm
.
name
=
from
.
name
vm
.
getType
()
vm
.
nongBank
=
[]
vm
.
getPayType
()
})
},
...
...
@@ -262,6 +287,35 @@ export default {
this
.
money
=
this
.
$route
.
params
.
money
},
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
)
{
if
(
e
.
bank_full_name
.
indexOf
(
'建设'
)
!==
-
1
)
{
return
js
...
...
@@ -333,7 +387,7 @@ export default {
order_id
:
vm
.
$route
.
params
.
order_id
,
fee
:
vm
.
serviceCharge
,
bank_account_id
:
vm
.
bank_account_id
,
pay_type
:
vm
.
pay
_t
ype
,
pay_type
:
vm
.
pay
TypeObj
.
payT
ype
,
},
}
hlsPopup
.
showLoading
(
'请稍候'
)
...
...
src/pages/pay/pay-page.vue
View file @
0ea5f6f6
...
...
@@ -61,7 +61,7 @@
</div>
</div>
</div>
<div
v-if=
"
!isSuccess||!isFaild
"
>
<div
v-if=
"
isShowpayInfo
"
>
<div
class=
"box-top"
>
<img
src=
"@/assets/payment/bank-title.png"
>
</div>
...
...
@@ -114,6 +114,7 @@ export default {
return
{
name
:
''
,
url
:
''
,
showInfo
:
true
,
// 展示支付信息
text
:
this
.
$route
.
params
.
text
,
info
:
{
order_number
:
''
,
...
...
@@ -143,6 +144,17 @@ export default {
vm
.
getInfo
()
})
},
computed
:
{
isShowpayInfo
()
{
if
(
this
.
isSuccess
^
this
.
isFaild
==
0
)
{
debugger
return
true
}
else
if
(
this
.
isSuccess
^
this
.
isFaild
==
1
)
{
debugger
return
false
}
},
},
methods
:
{
changePage
()
{
this
.
$router
.
push
({
...
...
src/pages/pay/payment/pay-entry.vue
View file @
0ea5f6f6
...
...
@@ -99,7 +99,13 @@
<span>
手续费
</span>
<span>
+¥
{{
serviceCharge
|
currency
}}
</span>
</div>
<div
class=
"info-item"
@
click=
"show=true"
>
<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>
<!--
<div
class=
"info-item"
@
click=
"show=true"
>
<span>
银行卡
</span>
<span>
<img
:src=
"checkType.img"
>
...
...
@@ -107,8 +113,8 @@
<span
v-if=
"sectctNong"
>
(
{{
selectLast
(
checkType
)
}}
)
</span>
<img
class=
"arrow"
src=
"@/assets/payment/go.png"
>
</span>
</div>
</div>
</div>
-->
</
list-item></
div>
<bottom-tab>
<tab-button
class=
"footer"
@
click
.
native=
"checkPay"
>
立即支付
</tab-button>
</bottom-tab>
...
...
@@ -139,7 +145,13 @@
<span>
手续费
</span>
<span>
+¥
{{
serviceCharge
}}
</span>
</div>
<div
class=
"info-item"
@
click=
"show=true"
>
<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>
<!--
<div
class=
"info-item"
@
click=
"show=true"
>
<span>
银行卡
</span>
<span>
<img
:src=
"checkType.img"
>
...
...
@@ -147,8 +159,8 @@
<span
v-if=
"sectctNong"
>
(
{{
selectLast
(
checkType
)
}}
)
</span>
<img
class=
"arrow"
src=
"@/assets/payment/go.png"
>
</span>
</div>
</div>
</div>
-->
</
list-item></
div>
</h-content>
<bottom-tab>
<tab-button
class=
"footer"
@
click
.
native=
"affirm"
>
确认订单
</tab-button>
...
...
@@ -190,6 +202,11 @@ export default {
bank_full_name
:
''
,
bank_account_num
:
''
,
},
payTypeList
:
[],
payTypeObj
:
{
payType
:
'ABC_PAY'
,
payType_n
:
'农行支付'
,
},
confirm
:
false
,
show
:
false
,
downNum
:
false
,
...
...
@@ -211,9 +228,9 @@ export default {
}
},
text
()
{
if
(
this
.
checkType
.
bank_full_name
.
indexOf
(
'农业
'
)
!==
-
1
)
{
if
(
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行
'
)
!==
-
1
)
{
return
'K码/K令支付'
}
else
if
(
this
.
checkType
.
bank_full_name
.
indexOf
(
'农业
'
)
===
-
1
)
{
}
else
if
(
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行
'
)
===
-
1
)
{
return
'银联支付'
}
},
...
...
@@ -221,7 +238,7 @@ export default {
return
(
this
.
money
*
(
this
.
rate
/
100
)).
toFixed
(
2
)
},
rate
()
{
return
this
.
checkType
.
bank_full_name
.
indexOf
(
'农业
'
)
!==
-
1
?
0.00
:
0.18
return
this
.
payTypeObj
.
payType_n
.
indexOf
(
'农行
'
)
!==
-
1
?
0.00
:
0.18
},
sumMoney
()
{
return
(
parseFloat
(
this
.
serviceCharge
)
+
parseFloat
(
this
.
money
)).
toFixed
(
...
...
@@ -250,10 +267,40 @@ export default {
vm
.
money
=
vm
.
$route
.
params
.
sumMoney
}
vm
.
getType
()
vm
.
getPayType
()
// vm.nongBank = []
})
},
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
,
}
})
}
})
},
affirm
()
{
this
.
confirm
=
true
this
.
confirmToPay
()
...
...
src/router/index.js
View file @
0ea5f6f6
...
...
@@ -240,7 +240,7 @@ export default new Router({
{
path
:
'/pay-entry'
,
component
:
PayEntry
,
name
:
'PayEntry'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/contract-record'
,
component
:
ContractRecord
,
name
:
'ContractRecord'
,
meta
:
{
keepAlive
:
true
}},
// 款项支付
{
path
:
'/payment-pay-entry'
,
component
:
PaymentPayEntry
,
name
:
'PaymentPayEntry'
,
meta
:
{
keepAlive
:
fals
e
}},
{
path
:
'/payment-pay-entry'
,
component
:
PaymentPayEntry
,
name
:
'PaymentPayEntry'
,
meta
:
{
keepAlive
:
tru
e
}},
{
path
:
'/new-list'
,
component
:
NewList
,
name
:
'NewList'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/payment-contract-record'
,
component
:
PaymentContractRecord
,
name
:
'PaymentContractRecord'
,
meta
:
{
keepAlive
:
true
}},
// 保证金支付
...
...
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