| | |
| | | code: '', |
| | | num: 0, |
| | | error: false, |
| | | timer: null |
| | | timer: null, |
| | | |
| | | loading: false |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | }, |
| | | // 打开发送验证码弹窗 |
| | | openmessage(type) { |
| | | this.code = '' |
| | | clearInterval(this.timer) |
| | | this.error = '' |
| | | this.timer = null |
| | | this.num = 0 |
| | | // this.code = '' |
| | | // clearInterval(this.timer) |
| | | // this.error = '' |
| | | // this.timer = null |
| | | // this.num = 0 |
| | | this.type = type |
| | | this.show1 = true |
| | | this.confirm1() |
| | | // this.show1 = true |
| | | }, |
| | | IdCard(UUserCard) { |
| | | let idcard = UUserCard.toString(); |
| | |
| | | }, |
| | | // 签署 |
| | | confirm1() { |
| | | if (!this.code) { |
| | | this.error = 1 |
| | | return |
| | | } |
| | | // if (!this.code) { |
| | | // this.error = 1 |
| | | // return |
| | | // } |
| | | this.loading = true |
| | | // 签署投保单 |
| | | if (this.type === 1) { |
| | | console.log('签署申请单') |
| | |
| | | code: this.code |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.error = '' |
| | | this.show1 = false |
| | | // this.error = '' |
| | | // this.show1 = false |
| | | this.$u.api.getJiajianBaoSignLink({ id: this.info.id }) |
| | | .then(url => { |
| | | if (url.code === 200) { |
| | | this.loading = false |
| | | uni.navigateTo({ |
| | | url: `/pages/webView/webView?url=${encodeURIComponent(url.data)}` |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | this.error = 2 |
| | | } |
| | | // else { |
| | | // this.error = 2 |
| | | // } |
| | | }) |
| | | this.show1 = false |
| | | // this.show1 = false |
| | | // 申请单 |
| | | } else if (this.type === 2) { |
| | | this.$u.api.getChangeMemberListOnlineSignLink({ |
| | |
| | | code: this.code |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.error = '' |
| | | this.show1 = false |
| | | // this.error = '' |
| | | // this.show1 = false |
| | | this.loading = false |
| | | uni.navigateTo({ |
| | | url: `/pages/webView/webView?url=${encodeURIComponent(res.data)}` |
| | | }) |
| | | } else { |
| | | this.error = 2 |
| | | } |
| | | // else { |
| | | // this.error = 2 |
| | | // } |
| | | }) |
| | | } |
| | | }, |