| | |
| | | |
| | | </view> |
| | | <view class="t-a form-input" v-if="loginType=='code'"> |
| | | <!-- <input type="text" :password="true" name="password" placeholder="请输入密码" v-model="password" /> --> |
| | | |
| | | <u-input :password="true" :border="false" placeholder="请输入密码" v-model="password"></u-input> |
| | | </view> |
| | |
| | | <!-- #endif --> |
| | | <!-- #ifdef PUB_CUSTOMER --> |
| | | <!-- open-type="getUserInfo"--> |
| | | <button @tap="wxreg('')" class="bottom-button">注 册</button> |
| | | <button @tap="wxreg('')" |
| | | class="bottom-button">注册,{{!partnerId?'未绑定合伙人':`已绑定${partnerName}`}}</button> |
| | | |
| | | <!-- #endif --> |
| | | |
| | | <view class="flex"> |
| | | <view class="topic-font m-l-0 m-r-a" @click="backInfoPage" v-if="source==='step'">返回上一步 |
| | | </view> |
| | | <!-- #ifdef PUB_CUSTOMER --> |
| | | <view class="topic-font m-l-a m-r-a" @click="scanPartnerCode" v-if="source==='step'">扫码绑定合伙人 |
| | | </view> |
| | | <!-- #endif --> |
| | | <view class="topic-font m-l-a m-r-0" @click="toLogin">前往登录</view> |
| | | |
| | | </view> |
| | |
| | | |
| | | phoneNumber: '', |
| | | smsCode: '', |
| | | |
| | | partnerId: '', |
| | | partnerName: '', |
| | | checked: false, |
| | | loginType: 'code', //pwd和code,密码和验证码登录 |
| | | pcfvalue: undefined, |
| | |
| | | this.source = options.source || '' |
| | | }, |
| | | methods: { |
| | | async scanPartnerCode() { |
| | | await this.$message.confirm('确定要绑定合伙人吗?') |
| | | //扫二维码确认 |
| | | let that = this |
| | | uni.scanCode({ |
| | | success: async function(res) { |
| | | console.log('条码内容:' + res.result); |
| | | var dto = undefined |
| | | try { |
| | | dto = JSON.parse(res.result) |
| | | if (!!dto['userId']) { |
| | | that.partnerName = dto['name'] || '' |
| | | that.partnerId = dto['userId'] || '' |
| | | that.$message.showToast(`绑定合伙人${that.partnerName}成功`) |
| | | } else { |
| | | that.$message.showToast('二维码格式不正确扫码失败') |
| | | } |
| | | } catch (e) { |
| | | that.$message.showToast('二维码格式不正确扫码失败') |
| | | } |
| | | }, |
| | | fail() { |
| | | that.$message.showToast('扫码失败') |
| | | |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | backInfoPage() { |
| | | console.log('backInfoPage') |
| | | uni.navigateBack() |
| | |
| | | return |
| | | } |
| | | var dto = JSON.parse(tjson) |
| | | dto.partnerId = this.partnerId || undefined |
| | | post.dto = dto |
| | | } |
| | | post.wxcode = wxcode |