| | |
| | | getCodeisWaiting: false, |
| | | Timer: undefined, |
| | | protocal: false, |
| | | source: '', |
| | | // #ifdef PUB_SUPPLIER |
| | | apitype: 'supplier', |
| | | // #endif |
| | |
| | | // #endif |
| | | |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | | this.source = options.source || '' |
| | | }, |
| | | methods: { |
| | | toProtocol() { |
| | |
| | | title: '注册成功!', |
| | | icon: 'none' |
| | | }); |
| | | setTimeout(() => { |
| | | this.toLogin() |
| | | }, 1000); |
| | | if (this.source == 'step') { |
| | | // cache_partner_info |
| | | var tjson = this.$storage.getItem('cache_partner_info') |
| | | if (tjson) { |
| | | var dto = JSON.parse(tjson) |
| | | { |
| | | |
| | | this.$message.showLoading() |
| | | const re = await this.$http.request('post', '/api/partner/addOrUpdate', { |
| | | data: dto |
| | | }) |
| | | this.$message.hideLoading() |
| | | if (re.code == 2000 || re.code == 0) { |
| | | this.toLogin() |
| | | } else { |
| | | this.$message.showToast('合伙人信息失效,请登录后重新填写提交审核') |
| | | setTimeout(() => { |
| | | this.toLogin() |
| | | }, 1000); |
| | | } |
| | | } |
| | | } |
| | | |
| | | }else{ |
| | | this.$message.showToast('合伙人信息失效,请登录后重新填写提交审核') |
| | | setTimeout(() => { |
| | | this.toLogin() |
| | | }, 1000); |
| | | } |
| | | |
| | | } else { |
| | | setTimeout(() => { |
| | | this.toLogin() |
| | | }, 1000); |
| | | } |
| | | |
| | | |
| | | } else { |
| | | // uni.showToast({ |