| | |
| | | mounted(){ |
| | | // this.$refs.codeUi.open() |
| | | this.windowHeight = uni.getSystemInfoSync().windowHeight; |
| | | this.interval = setInterval(() => { |
| | | let newHeight = window.innerHeight; |
| | | if (this.windowHeight !== newHeight) { |
| | | this.windowHeight = newHeight; |
| | | this.handleResize(); |
| | | } |
| | | }, 200); |
| | | // this.interval = setInterval(() => { |
| | | // let newHeight = window.innerHeight; |
| | | // if (this.windowHeight !== newHeight) { |
| | | // this.windowHeight = newHeight; |
| | | // this.handleResize(); |
| | | // } |
| | | // }, 200); |
| | | }, |
| | | methods: { |
| | | kk(){ |
| | |
| | | }); |
| | | |
| | | |
| | | that.isCounting = true; |
| | | // that.isCounting = true; |
| | | |
| | | |
| | | |
| | |
| | | "bankId": "1", |
| | | |
| | | }, |
| | | success(){ |
| | | success(response){ |
| | | if(response.data.code != 200) { |
| | | uni.showToast({ |
| | | title: response.data.data, |
| | | icon: 'none' |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | uni.request({ |
| | | url: that.$webHost+'/api/v2/pay/bindCardToCodes', |
| | | method:'POST', |
| | |
| | | }) |
| | | return; |
| | | } |
| | | |
| | | that.isCounting = true; |
| | | if(res.data.code === 200){ |
| | | that.bindCardId = res.data.data; |
| | | } else { |
| | |
| | | |
| | | } |
| | | }) |
| | | |
| | | |
| | | let count = 60; |
| | | that.countText = `${count}s秒后重新获取`; |