This commit is contained in:
zmr900709
2020-07-04 11:03:20 +08:00
parent 64b43b6b3d
commit 3d8cfd23d4
5 changed files with 62 additions and 45 deletions

View File

@@ -6,7 +6,7 @@
<view class="backes"></view>
<view class="content">
<view class="title">手机注册</view>
<view class="labales">
<view class="labales phones">
<!-- <text></text> -->
<input type="tel" placeholder="请输入您的手机号" v-model="member_mobile" />
</view>
@@ -21,9 +21,7 @@
<view class="pact">
<view></view>
<text>我已详细阅读并同意</text>
<text class="pact_text">用户协议</text>
<text class="pact_text">隐私协议</text>
<text class="pact_text">使用协议</text>
<text class="pact_text" v-for="(item,index) in pact_text" :key="index" @click="pact_click(index)"> {{item.text}} </text>
<u-checkbox-group @change="checkboxGroupChange" size="27">
<u-checkbox @change="checkboxChange" v-model="item.checked" v-for="(item, index) in list" :key="index" :name="item.name"
shape="circle" size="14" active-color="#19BE6B" ></u-checkbox>
@@ -72,12 +70,32 @@
member_mobile: '', //手机号
smslog_type : '1',//状态
sms_code : '', //验证码
// 协议渲染
pact_text: [{
"id": '1',
"text": "《用户协议》"
}, {
"id": '2',
"text": "《隐私协议》"
}, {
"id": '3',
"text": "《使用协议》"
},
]
};
},
onLoad() {
},
methods: {
// 协议跳转
pact_click(index){
console.log(index)
uni.navigateTo({
url: '/pageA/pactList/pactList?index=' + index
});
},
// 用户注册
loginIn(){
let type_phone = this.$u.test.mobile( this.member_mobile)
@@ -113,8 +131,8 @@
if(res.errCode == 0){
// 缓存用户的信息
uni.setStorage({
key: 'user_info',
data: res.data,
key: 'token',
data: res.data.token,
success: function () {
console.log('success');
// 跳转选择页面
@@ -421,4 +439,7 @@
// text-overflow: ellipsis; //溢出用省略号显示
// white-space: nowrap; //溢出不换行
}
.phones{
margin-bottom: 90rpx!important;
}
</style>