| | |
| | | code: '', |
| | | num: 0, |
| | | error: false, |
| | | timer: null |
| | | timer: null, |
| | | loading: false |
| | | }; |
| | | }, |
| | | computed: _objectSpread({}, (0, _vuex.mapState)(['userInfo'])), |
| | |
| | | }, |
| | | // 打开发送验证码弹窗 |
| | | openmessage: function 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.show1 = true |
| | | this.confirm1(); |
| | | }, |
| | | signApplication: function signApplication() { |
| | | uni.navigateTo({ |
| | |
| | | }, |
| | | confirm1: function confirm1() { |
| | | var _this6 = this; |
| | | if (!this.code) { |
| | | this.error = 1; |
| | | return; |
| | | } |
| | | // if (!this.code) { |
| | | // this.error = 1 |
| | | // return |
| | | // } |
| | | // 签署投保单 |
| | | this.loading = true; |
| | | if (this.type === 1) { |
| | | this.$u.api.getSignWTBTBDLink({ |
| | | code: this.code, |
| | | businessId: this.info.id |
| | | }).then(function (res) { |
| | | _this6.loading = false; |
| | | if (res.code === 200) { |
| | | _this6.error = ''; |
| | | _this6.show1 = false; |
| | | // this.error = '' |
| | | // this.show1 = false |
| | | uni.navigateTo({ |
| | | url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data)) |
| | | }); |
| | | } else { |
| | | _this6.error = 2; |
| | | } |
| | | // else { |
| | | // this.error = 2 |
| | | // } |
| | | }); |
| | | // 确认书 |
| | | } else if (this.type === 2) { |
| | |
| | | code: this.code |
| | | }).then(function (res) { |
| | | if (res.code === 200) { |
| | | _this6.error = ''; |
| | | _this6.show1 = false; |
| | | _this6.loading = false; |
| | | // this.error = '' |
| | | // this.show1 = false |
| | | uni.navigateTo({ |
| | | url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data)) |
| | | }); |
| | | } else { |
| | | _this6.error = 2; |
| | | } |
| | | // else { |
| | | // this.error = 2 |
| | | // } |
| | | }); |
| | | // 签署申请单 --- 委托 |
| | | } else if (this.type === 3) { |
| | |
| | | code: this.code |
| | | }).then(function (res) { |
| | | if (res.code === 200) { |
| | | _this6.error = ''; |
| | | _this6.show1 = false; |
| | | _this6.loading = false; |
| | | // this.error = '' |
| | | // this.show1 = false |
| | | uni.navigateTo({ |
| | | url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data)) |
| | | }); |
| | | } else { |
| | | _this6.error = 2; |
| | | } |
| | | // else { |
| | | // this.error = 2 |
| | | // } |
| | | }); |
| | | // 签署申请单 --- 直保 |
| | | } else if (this.type === 4) { |
| | |
| | | }).then(function (res) { |
| | | if (res.code === 200) { |
| | | _this6.$u.api.getSignLink(_this6.info.id).then(function (data) { |
| | | _this6.loading = false; |
| | | if (data.code === 200) { |
| | | _this6.error = ''; |
| | | _this6.show1 = false; |
| | | // this.error = '' |
| | | // this.show1 = false |
| | | uni.navigateTo({ |
| | | url: "/pages/webView/webView?url=".concat(encodeURIComponent(data.data)) |
| | | }); |
| | | } |
| | | }); |
| | | } else { |
| | | _this6.error = 2; |
| | | } |
| | | // else { |
| | | // this.error = 2 |
| | | // } |
| | | }); |
| | | } |
| | | }, |