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
5 years ago
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 @@
...
@@ -31,7 +31,7 @@
</div>
</div>
</div>
</div>
<bottom-tab>
<bottom-tab>
<tab-button
class=
"footer"
@
click
.
native=
"toPayEntry(money)"
>
<tab-button
class=
"footer"
@
click
.
native=
"
pay();
toPayEntry(money)"
>
支
付
支
付
</tab-button>
</tab-button>
</bottom-tab>
</bottom-tab>
...
@@ -46,12 +46,12 @@ export default {
...
@@ -46,12 +46,12 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
money
:
''
,
money
:
0
,
}
}
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
vm
=>
{
//
vm.getDownPayment()
vm
.
getDownPayment
()
})
})
},
},
computed
:
{},
computed
:
{},
...
@@ -73,11 +73,29 @@ export default {
...
@@ -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
)
{
toPayEntry
(
money
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'PayEntry'
,
name
:
'PayEntry'
,
params
:
{
params
:
{
money
,
money
,
bp_id
:
this
.
$route
.
params
.
bp_id
,
},
},
})
})
},
},
...
...
This diff is collapsed.
Click to expand it.
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