| | |
| | | 4: '即将开始',
|
| | | 5: '已撤销',
|
| | | },
|
| | | meetingInfo: {}
|
| | | meetingInfo: {}, |
| | | timer: null
|
| | | }
|
| | | },
|
| | | onShow() {
|
| | | this.initDatetime()
|
| | | this.param = uni.getStorageSync('param') || {}
|
| | | if (!this.param.code) {
|
| | | return uni.navigateTo({
|
| | | url: '/pages/index/config'
|
| | | })
|
| | | }
|
| | | this.getData()
|
| | | },
|
| | | onReady() {},
|
| | | onReady() {}, |
| | | onHide(){ |
| | | if(this.timer){ |
| | | clearInterval(this.timer) |
| | | } |
| | | },
|
| | | methods: {
|
| | | getData() {
|
| | | this.showQrbg = false
|
| | |
| | | this.timer = setInterval(() => {
|
| | | this.time = dayjs().format('HH:mm')
|
| | | this.date = dayjs().format('YYYY-MM-DD') + ' ' + weeks[new Date().getDay()]
|
| | | }, 1000)
|
| | | setInterval(() => {
|
| | | }, 1000) |
| | | this.param = uni.getStorageSync('param') || {} |
| | | if(this.timer){ |
| | | clearInterval(this.timer) |
| | | } |
| | | this.getData()
|
| | | this.timer = setInterval(() => {
|
| | | this.getData()
|
| | | }, this.param.time ? this.param.time * 1000 : 60 * 1000)
|
| | | }
|