Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8ebf22a7
authored
Apr 18, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
79dbf54f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
src/views/coupon/index.vue
src/views/coupon/index.vue
View file @
8ebf22a
...
@@ -126,8 +126,8 @@ export default {
...
@@ -126,8 +126,8 @@ export default {
mounted
()
{
mounted
()
{
let
{
corpId
}
=
this
.
getQuery
()
let
{
corpId
}
=
this
.
getQuery
()
if
(
!
corpId
)
corpId
=
this
.
getLocalStorage
(
'dj_scrm_corpId'
).
corpId
if
(
!
corpId
)
corpId
=
this
.
getLocalStorage
(
'dj_scrm_corpId'
).
corpId
const
tomorrow
=
this
.
getLocalStorage
(
`
dj_scrm_
coupon_tips_
${
corpId
}
`
)
const
tomorrow
=
this
.
getLocalStorage
(
`coupon_tips_
${
corpId
}
`
)
const
couponModal
=
this
.
getLocalStorage
(
`
dj_scrm_
coupon_modal_
${
corpId
}
`
)
const
couponModal
=
this
.
getLocalStorage
(
`coupon_modal_
${
corpId
}
`
)
const
now
=
new
Date
().
getTime
()
const
now
=
new
Date
().
getTime
()
this
.
corpId
=
corpId
this
.
corpId
=
corpId
if
(
tomorrow
)
this
.
showTips
=
now
>=
tomorrow
if
(
tomorrow
)
this
.
showTips
=
now
>=
tomorrow
...
@@ -150,13 +150,12 @@ export default {
...
@@ -150,13 +150,12 @@ export default {
let
{
corpId
}
=
this
let
{
corpId
}
=
this
this
.
showTips
=
false
this
.
showTips
=
false
let
tomorrow
=
new
Date
(
`
${
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
+
1
)).
format
(
'yyyy/MM/dd'
)}
00:00:00`
).
getTime
()
let
tomorrow
=
new
Date
(
`
${
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
+
1
)).
format
(
'yyyy/MM/dd'
)}
00:00:00`
).
getTime
()
this
.
setLocalStorage
(
`
dj_scrm_
coupon_tips_
${
corpId
}
`
,
tomorrow
)
this
.
setLocalStorage
(
`coupon_tips_
${
corpId
}
`
,
tomorrow
)
},
},
closeCouponModal
()
{
closeCouponModal
()
{
let
{
modalChecked
,
corpId
}
=
this
let
{
modalChecked
,
corpId
}
=
this
console
.
log
(
modalChecked
)
if
(
!
modalChecked
)
return
if
(
!
modalChecked
)
return
this
.
setLocalStorage
(
`
dj_scrm_
coupon_modal_
${
corpId
}
`
,
true
)
this
.
setLocalStorage
(
`coupon_modal_
${
corpId
}
`
,
true
)
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment