Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yimu
h5-front
Commits
4b83e95d
Commit
4b83e95d
authored
Apr 22, 2022
by
verestrasz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付初始倒计时
parent
64089c8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
index.vue
src/views/order/payment/index.vue
+5
-4
vue.config.js
vue.config.js
+2
-2
No files found.
src/views/order/payment/index.vue
View file @
4b83e95d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"content-scroll"
>
<div
class=
"content-scroll"
>
<div
class=
"header flex-default"
>
<div
class=
"header flex-default"
>
<div
class=
"title"
>
待支付
</div>
<div
class=
"title"
>
待支付
</div>
<div
class=
"left-time flex-default"
v-if=
"payTypeObj.showLeftTime"
>
<div
class=
"left-time flex-default"
v-if=
"payTypeObj.showLeftTime
&&!loading
"
>
<span>
支付剩余时间
</span>
<span>
支付剩余时间
</span>
<van-count-down
<van-count-down
class=
"count-down"
class=
"count-down"
...
@@ -52,13 +52,12 @@
...
@@ -52,13 +52,12 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"bottom-con flex-default"
>
<div
class=
"bottom-con flex-default"
>
<van-button
<van-button
type=
"primary"
type=
"primary"
round
round
@
click=
"handlePay"
@
click=
"handlePay"
:disabled=
"btnDisabled"
:disabled=
"
loading ||
btnDisabled"
block
block
>
>
立即支付
立即支付
...
@@ -135,7 +134,8 @@ export default {
...
@@ -135,7 +134,8 @@ export default {
leftTime
:
3
*
60
*
1000
,
leftTime
:
3
*
60
*
1000
,
formType
:
"order"
,
formType
:
"order"
,
timeFinish
:
false
,
timeFinish
:
false
,
oid
:
""
oid
:
""
,
loading
:
true
};
};
},
},
computed
:
{
computed
:
{
...
@@ -298,6 +298,7 @@ export default {
...
@@ -298,6 +298,7 @@ export default {
apiName
:
this
.
payTypeObj
.
detailApi
,
apiName
:
this
.
payTypeObj
.
detailApi
,
postData
:
this
.
pid
,
postData
:
this
.
pid
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
this
.
loading
=
false
let
oids
=
JSON
.
parse
(
res
.
oidsJson
)
let
oids
=
JSON
.
parse
(
res
.
oidsJson
)
this
.
oid
=
oids
[
0
]
||
""
this
.
oid
=
oids
[
0
]
||
""
this
.
payInfo
=
res
;
this
.
payInfo
=
res
;
...
...
vue.config.js
View file @
4b83e95d
...
@@ -65,8 +65,8 @@ module.exports = {
...
@@ -65,8 +65,8 @@ module.exports = {
// target: 'http://172.22.20.64:8100/root'
// target: 'http://172.22.20.64:8100/root'
// target: 'http://172.22.17.176:12008'
// target: 'http://172.22.17.176:12008'
// target: 'http://172.22.17.108:9089'
// target: 'http://172.22.17.108:9089'
target
:
'https://mall.inmvo.com/root'
//
target: 'https://mall.inmvo.com/root'
// target: 'https://testym
.8n.cn/root'
target
:
'https://testslg
.8n.cn/root'
},
},
'/chat'
:
{
'/chat'
:
{
pathRewrite
:
{
pathRewrite
:
{
...
...
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