|
|
@@ -26,7 +26,7 @@
|
|
|
@tap="isHidePassword = !isHidePassword"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="code d-flex">
|
|
|
<view class="title">验证码</view>
|
|
|
<input placeholder="请输入验证码" v-model="code" maxlength="5" style="padding-right: 200rpx;" />
|
|
|
@@ -54,6 +54,11 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
+ <view class=" left-0 right-0 dis a-c j-start text-light-muted" style="bottom:30rpx">
|
|
|
+ <u-checkbox v-model="checked"></u-checkbox>
|
|
|
+ 我已确认并同意<view> <text @tap="nav('/pages/register/xieyi')" style="color: #0052FF;">个人信息授权示范性条款</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<button class="my-3 mt-4 d-flex a-center j-center font-weight main-bg-color" :loading="loading"
|
|
|
:class="{'main-bf-hover-color':disabled}" type="primary" @tap="submit" :disabled="disabled"
|
|
|
style="letter-spacing: 20rpx;">注册</button>
|
|
|
@@ -61,6 +66,8 @@
|
|
|
<!-- <view class="d-flex a-center j-center my-3">
|
|
|
已有帐号?<view class="main-text-color" @tap="navigate({url:'/pages/login/login'},'reLaunch')">去登录</view>
|
|
|
</view> -->
|
|
|
+ <u-toast ref="uToast" />
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -88,7 +95,8 @@
|
|
|
codetime: 0,
|
|
|
showRecommend: false,
|
|
|
recommendername: "",
|
|
|
- recommenderid: ""
|
|
|
+ recommenderid: "",
|
|
|
+ checked:false
|
|
|
}
|
|
|
},
|
|
|
async onLoad(params) {
|
|
|
@@ -151,12 +159,17 @@
|
|
|
...mapMutations(['setUserModules']),
|
|
|
// 改变按钮状态
|
|
|
OnBtnChange() {
|
|
|
- if (this.phone && this.password && this.code && this.name) {
|
|
|
+ if (this.phone && this.password && this.code && this.name ) {
|
|
|
this.disabled = false;
|
|
|
return;
|
|
|
}
|
|
|
this.disabled = true;
|
|
|
},
|
|
|
+ nav(url) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: url
|
|
|
+ });
|
|
|
+ },
|
|
|
isPwdRules() {
|
|
|
let mPattern = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/;
|
|
|
return mPattern.test(this.password);
|
|
|
@@ -228,6 +241,12 @@
|
|
|
icon: 'none'
|
|
|
});
|
|
|
}
|
|
|
+ if (!this.checked) {
|
|
|
+ return this.$refs.uToast.show({
|
|
|
+ title: '请阅读后勾选并同意《个人信息授权示范性条款》',
|
|
|
+ type: 'default',
|
|
|
+ })
|
|
|
+ }
|
|
|
// 请求服务器,发送验证码
|
|
|
let res = await this.$http.post('/user/agentRegist', {
|
|
|
"name": this.name,
|