| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | onReachBottom() { |
| | | this.getList() |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | methods: { |
| | | send () { |
| | | this.$u.api.sendSms({ |
| | | phone: this.userInfo.mobile |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.num = 60 |
| | | this.setTime() |
| | | } |
| | | }) |
| | | }, |
| | | setTime () { |
| | | this.timer = setInterval(() => { |
| | | if (this.num === 0) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | return |
| | | } |
| | | this.num = this.num - 1 |
| | | }, 1000) |
| | | }, |
| | | // 签署 |
| | | confirm1() { |
| | | if (!this.code) { |