Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
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
pseer
gxpt_wechat
Commits
360d35cd
Commit
360d35cd
authored
May 13, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
fafeb31f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
orderResult.vue
pages/orderResult/orderResult.vue
+7
-2
No files found.
pages/orderResult/orderResult.vue
View file @
360d35cd
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
<view
class=
"part"
>
<view
class=
"part"
>
<button
class=
"cu-btn block round line-pink lg"
open-type=
"share"
>
分享好友
</button>
<button
class=
"cu-btn block round line-pink lg"
open-type=
"share"
>
分享好友
</button>
</view>
</view>
<view
v-if=
"
continStatus || orderInfo.status ==1 "
class=
"part"
>
<view
v-if=
"continStatus || orderInfo.status ==1 "
class=
"part"
>
<button
class=
"cu-btn block round bg-mauve lg"
@
tap=
"onCheckLogin"
>
房间续单
</button>
<button
class=
"cu-btn block round bg-mauve lg"
@
tap=
"onCheckLogin"
>
房间续单
</button>
</view>
</view>
</view>
</view>
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
if
(
res
.
data
.
data
.
status
===
2
){
if
(
res
.
data
.
data
.
status
===
2
){
let
nowTime
=
moment
().
valueOf
();
let
nowTime
=
moment
().
valueOf
();
let
endTime
=
moment
(
res
.
data
.
data
.
endDate
).
valueOf
();
let
endTime
=
moment
(
res
.
data
.
data
.
endDate
).
valueOf
();
if
(
nowTime
-
endTime
<
15
*
60
*
1000
){
if
(
nowTime
-
endTime
<
15
*
60
*
1000
){
this
.
continStatus
=
true
;
this
.
continStatus
=
true
;
}
}
}
}
...
@@ -262,6 +262,11 @@
...
@@ -262,6 +262,11 @@
},
},
onGetOrderInfo
(){
onGetOrderInfo
(){
noLoginGetOrderInfo
(
this
.
orderNo
).
then
(
res
=>
{
noLoginGetOrderInfo
(
this
.
orderNo
).
then
(
res
=>
{
let
nowTime
=
moment
().
valueOf
();
let
endTime
=
moment
(
res
.
data
.
data
.
endDate
).
valueOf
();
if
(
nowTime
-
endTime
<
15
*
60
*
1000
){
this
.
continStatus
=
true
;
}
this
.
orderInfo
=
{
this
.
orderInfo
=
{
...
res
.
data
.
data
,
...
res
.
data
.
data
,
roomImages
:
res
.
data
.
data
.
roomImages
.
split
(
','
),
roomImages
:
res
.
data
.
data
.
roomImages
.
split
(
','
),
...
...
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