Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-app
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli-app
Commits
44c53af5
Commit
44c53af5
authored
Sep 08, 2023
by
honghong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最终
parent
7dce1974
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
pages/demand/components/index.vue
+14
-9
No files found.
pages/demand/components/index.vue
View file @
44c53af5
...
@@ -49,7 +49,8 @@
...
@@ -49,7 +49,8 @@
<view
class=
"buttoncolor"
v-if=
"subscript == '3'"
>
<view
class=
"buttoncolor"
v-if=
"subscript == '3'"
>
<button
v-if=
"item.status == 3"
style=
"background: red;"
class=
"buttoncl"
<button
v-if=
"item.status == 3"
style=
"background: red;"
class=
"buttoncl"
@
click
.
stop=
"abolish(2,item)"
>
退款
</button>
@
click
.
stop=
"abolish(2,item)"
>
退款
</button>
<button
v-else-if=
"item.status == 4 || item.status == 5 || item.status == 6"
class=
"buttonclde buttonGray"
<button
v-else-if=
"item.status == 4 || item.status == 5 || item.status == 6"
class=
"buttonclde buttonGray"
@
click
.
stop=
"abolish(4,item)"
>
{{
item
.
status
==
4
?
'已完成'
:
item
.
status
==
5
?
'退款中'
:
item
.
status
==
6
?
'已退款'
:
''
}}
</button>
@
click
.
stop=
"abolish(4,item)"
>
{{
item
.
status
==
4
?
'已完成'
:
item
.
status
==
5
?
'退款中'
:
item
.
status
==
6
?
'已退款'
:
''
}}
</button>
<button
class=
"buttoncl"
@
click
.
stop=
"abolish(3,item)"
>
详情
</button>
<button
class=
"buttoncl"
@
click
.
stop=
"abolish(3,item)"
>
详情
</button>
</view>
</view>
...
@@ -97,19 +98,19 @@
...
@@ -97,19 +98,19 @@
},
},
mounted
()
{
mounted
()
{
if
(
this
.
subscript
==
2
)
{
if
(
this
.
subscript
==
2
)
{
this
.
list
.
map
((
item
,
index
)
=>
{
this
.
list
.
map
((
item
,
index
)
=>
{
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
this
.
showtime
(
item
,
index
)
this
.
showtime
(
item
,
index
)
},
1000
)
},
1000
)
})
})
}
}
},
},
beforeDestroy
()
{
beforeDestroy
()
{
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
this
.
timer
=
null
;
},
},
methods
:
{
methods
:
{
showtime
(
item
,
index
)
{
showtime
(
item
,
index
)
{
let
that
=
this
let
that
=
this
//获取当前时间
//获取当前时间
var
curTime
=
new
Date
();
var
curTime
=
new
Date
();
...
@@ -134,9 +135,12 @@
...
@@ -134,9 +135,12 @@
that
.
countdowns
=
lefts
//返回倒计时的字符串
that
.
countdowns
=
lefts
//返回倒计时的字符串
// 倒计时结束时,显示00:00:00
// 倒计时结束时,显示00:00:00
if
(
lefttime
<
0
)
{
if
(
lefttime
<
0
)
{
that
.
countdownh
=
that
.
countdownm
=
that
.
countdowns
=
"00"
// that.countdownh = "00"
// that.countdownm = "00"
// that.countdowns = "00"
that
.
list
.
splice
(
index
,
1
)
}
}
that
.
$set
(
item
,
'isEndTime'
,
that
.
countdownh
+
'时'
+
that
.
countdownm
+
'分'
+
that
.
countdowns
+
'秒'
)
that
.
$set
(
item
,
'isEndTime'
,
that
.
countdownh
+
'时'
+
that
.
countdownm
+
'分'
+
that
.
countdowns
+
'秒'
)
// that.isEndTime = that.countdownh + '时' + that.countdownm + '分' + that.countdowns + '秒'
// that.isEndTime = that.countdownh + '时' + that.countdownm + '分' + that.countdowns + '秒'
},
},
...
@@ -359,4 +363,4 @@
...
@@ -359,4 +363,4 @@
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
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