| | |
| | | <template> |
| | | <view> |
| | | <view v-if="source==='step'" style="padding: 20rpx 0rpx;color: red;;background-color: #e6e6e6;"> |
| | | <!-- #ifdef PUB_PARTNER --> |
| | | <view style="padding: 20rpx;text-align: center;background-color: #fff;">仅限花满芫合伙人入驻</view> |
| | | <!-- #endif -->e |
| | | |
| | | <view v-if="source==='step'" class="" style="background-color: #fff;margin-top: 20rpx;padding: 20rpx;"> |
| | | <u-steps current="1"> |
| | | <u-steps-item title="信息填写" class="u-steps-item"> |
| | |
| | | <button @tap="login()" class="bottom-button">注 册</button> |
| | | |
| | | <view class="flex"> |
| | | <view class="topic-font m-l-0 m-r-a" @click="backInfoPage" v-if="source==='step'">返回填写</view> |
| | | <view class="topic-font m-l-0 m-r-a" @click="backInfoPage" v-if="source==='step'">返回上一步</view> |
| | | <view class="topic-font m-l-a m-r-0" @click="toLogin">前往登录</view> |
| | | |
| | | </view> |
| | | <view class="flex flex-wrap-normal" |
| | | style="position: fixed;bottom: 40rpx;left: 40rpx;right: 40rpx;" v-if="false"> |
| | |
| | | // #endif |
| | | // #ifdef PUB_PARTNER |
| | | apitype: 'partner', |
| | | // #endif |
| | | // #ifdef PUB_CUSTOMER |
| | | apitype: 'customer', |
| | | // #endif |
| | | |
| | | }; |
| | |
| | | userType: this.apitype |
| | | } |
| | | }) |
| | | if (code == 0) { |
| | | if (code === 0) { |
| | | uni.showToast({ |
| | | title: '验证码已发送', |
| | | icon: "none" |
| | |
| | | type: this.apitype |
| | | // openId: '123456789' |
| | | } |
| | | if (this.source == 'step') { |
| | | var tjson = this.$storage.getItem('cache_partner_info') |
| | | if (this.source === 'step') { |
| | | var tjson = '' |
| | | // #ifdef PUB_PARTNER |
| | | tjson = this.$storage.getItem('cache_partner_info') |
| | | // #endif |
| | | // #ifdef PUB_CUSTOMER |
| | | this.$storage.getItem('cache_customer_info') |
| | | // #endif |
| | | |
| | | if (!tjson) { |
| | | this.$message.showToast('没有合伙人信息请返回重新填写') |
| | | this.$message.showToast('没有填写用户信息请返回重新填写') |
| | | return |
| | | } |
| | | var dto = JSON.parse(tjson) |
| | |
| | | const resp = await this.$store.dispatch('regUser', post); |
| | | // uni.hideLoading() |
| | | |
| | | if (resp.code == 0) { |
| | | if (resp.code === 0) { |
| | | |
| | | // myCache.cache("userToken", res.data.accessToken) |
| | | // let userRes = await gzmzApi.getMemberInfo(); |
| | |
| | | // this.toLogin() |
| | | // }, 1000); |
| | | // } |
| | | |
| | | |
| | | |
| | | // } else { |