Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
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
member
member
Commits
35b60706
Commit
35b60706
authored
Aug 09, 2022
by
huaying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/7月迭代-会员' into dev
parents
dbcb7211
a3d14314
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
cardvoucher.vue
src/components/wechatmembers/cardvoucher.vue
+11
-5
No files found.
src/components/wechatmembers/cardvoucher.vue
View file @
35b60706
...
...
@@ -135,7 +135,7 @@
label=
"优惠额度"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
cardType
==
0
?
`${row.cardDenomination
}
元`
:
row
.
cardType
==
1
?
`${row.cardDenomination
}
折`
:
row
.
cardType
==
2
?
`${row.cardDenomination
}
`
:
'--'
}}
{{
row
.
cardType
==
0
?
`${row.cardDenomination
}
元`
:
row
.
cardType
==
1
?
`${row.cardDenomination
}
折`
:
'--'
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
...
...
@@ -145,8 +145,9 @@
>
<
template
slot
-
scope
=
"{row
}
"
>
<
span
v
-
if
=
"row.cardEffectiveMode == 0 || (row.cardEffectiveMode == 2 && row.receiveTime != null) || (row.cardEffectiveMode == 1 && row.receiveTime != null)"
>
{{
row
.
effectTime
|
formatTime
}}
-
{{
row
.
limitTime
|
formatTime
}}
<
/span
>
<
span
v
-
if
=
"row.cardEffectiveMode == 1 && row.receiveTime == null"
>
领取后
{{
row
.
startDay
}}
天生效,有效期
{{
row
.
limitDay
}}
天
<
/span
>
<
span
v
-
if
=
"row.cardEffectiveMode == 2 && row.receiveTime == null"
>
领取后当月有效
<
/span
>
<
span
v
-
if
=
"row.cardEffectiveMode == 1 && row.receiveTime == null"
>
领取后
{{
row
.
startDay
}}
天生效,有效期
{{
row
.
limitDay
}}
天
<
/span
>
<!--
<
span
v
-
if
=
"row.cardEffectiveMode == 2 && row.receiveTime == null"
>
领取后当月有效
<
/span> --
>
<
span
v
-
if
=
"row.cardEffectiveMode == 2 && row.receiveTime == null"
>
{{
row
.
effectTime
|
formatTime
}}
-
{{
row
.
limitTime
|
formatTime
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
...
...
@@ -390,9 +391,14 @@ export default {
let
_content
=
''
;
const
{
status
}
=
row
;
// console.log(row)
let
isOverdue
=
Date
.
now
()
>=
row
.
limitTime
;
let
isOverdue
;
if
(
row
.
limitTime
==
null
)
{
isOverdue
=
false
}
else
{
isOverdue
=
Date
.
now
()
>=
row
.
limitTime
;
}
// limitTime 为 null 就不算过期
if
(
row
.
limitTime
==
null
)
return
isOverdue
=
false
;
//
if(row.limitTime == null) return isOverdue = false;
if
(
status
==
3
)
{
_content
=
`<div class="${isOverdue ? 'dm-status--info' : 'dm-status--error'
}
">${isOverdue ? '已过期' : '待领取'
}
</div>`
;
}
else
if
(
status
==
4
)
{
...
...
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