| | |
| | | <image class="component-bg" |
| | | src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/a5/a54508de179a4942918ecb2c5a4aa9f5bg.png" |
| | | mode="scaleToFill" /> |
| | | |
| | | |
| | | <view v-if="source==='step'" style="padding: 20rpx 0rpx;color: red;"> |
| | | <view style="padding: 20rpx;text-align: center;background-color: #fff;">先阶段仅限云南产地的供应商入住</view> |
| | | </view> |
| | | <view v-if="source==='step'" > |
| | | <u-steps current="0"> |
| | | <u-steps-item title="信息填写"> |
| | | </u-steps-item> |
| | | <u-steps-item title="提交申请" ></u-steps-item> |
| | | </u-steps> |
| | | </view> |
| | | |
| | | <view class="t-login top-bg"> |
| | | <view class="nav-title">注册</view> |
| | |
| | | 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({ |