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
74e3c7dd
Commit
74e3c7dd
authored
Oct 18, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增接口
parent
43d917bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
first-pay.vue
src/pages/pay/firstPay/first-pay.vue
+21
-3
No files found.
src/pages/pay/firstPay/first-pay.vue
View file @
74e3c7dd
...
...
@@ -31,7 +31,7 @@
</div>
</div>
<bottom-tab>
<tab-button
class=
"footer"
@
click
.
native=
"toPayEntry(money)"
>
<tab-button
class=
"footer"
@
click
.
native=
"
pay();
toPayEntry(money)"
>
支
付
</tab-button>
</bottom-tab>
...
...
@@ -46,12 +46,12 @@ export default {
},
data
()
{
return
{
money
:
''
,
money
:
0
,
}
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
//
vm.getDownPayment()
vm
.
getDownPayment
()
})
},
computed
:
{},
...
...
@@ -73,11 +73,29 @@ export default {
}
})
},
pay
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'create_order_0_amount'
let
param
=
{
bp_id
:
vm
.
$route
.
params
.
bp_id
,
amount
:
vm
.
money
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
console
.
log
(
res
)
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
toPayEntry
(
money
)
{
this
.
$router
.
push
({
name
:
'PayEntry'
,
params
:
{
money
,
bp_id
:
this
.
$route
.
params
.
bp_id
,
},
})
},
...
...
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