Commit 8ebf22a7 by 李伟康

commit

1 parent 79dbf54f
...@@ -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)
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!