gdpaoup
This commit is contained in:
@@ -180,7 +180,6 @@
|
||||
})
|
||||
return false
|
||||
} else {
|
||||
console.log(123)
|
||||
me.loginIn(res.data.token); //存储一个字符传值
|
||||
// 缓存用户的信息
|
||||
uni.setStorageSync('user_info',res.data);
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
<view class="title">手机注册</view>
|
||||
<view class="labales phones">
|
||||
<!-- <text></text> -->
|
||||
<input type="tel" placeholder="请输入您的手机号" v-model="member_mobile" />
|
||||
<input type="tel" placeholder="请输入您的手机号" maxlength="11" v-model="member_mobile" />
|
||||
</view>
|
||||
<view class="labales">
|
||||
<!-- <text></text> -->
|
||||
<input type="tel" placeholder="请输入验证码" v-model="sms_code" />
|
||||
<input type="tel" placeholder="请输入验证码" maxlength="6" v-model="sms_code" />
|
||||
<!-- <text class="identifying" @click="apiwelcome()">获取验证码</text> -->
|
||||
<!-- 验证码接口的引入 -->
|
||||
<identifying @tochange="tochange" :smslog_type="smslog_type" :member_mobile="member_mobile" ></identifying>
|
||||
@@ -24,17 +24,18 @@
|
||||
<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>
|
||||
shape="circle" size="30" active-color="#19BE6B" ></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 注册 -->
|
||||
<view class="more_Login">
|
||||
<text></text>
|
||||
<text class="other" @click="mask_u">其他方式登录</text>
|
||||
<!-- <text class="other" @click="mask_u">其他方式登录</text> -->
|
||||
</view>
|
||||
<!-- denglu QQ weixin -->
|
||||
<view class="u-btn" @click="loginIn">{{login}}</view>
|
||||
<view class="u-btn" @click="loginIns">{{login}}</view>
|
||||
<view class="go-login" @click="goLogin">已有账号,立即登录</view>
|
||||
<u-mask :show="show" @click="show = false">
|
||||
<view class="warp">
|
||||
<view class="rect" @tap.stop>
|
||||
@@ -56,7 +57,10 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import identifying from '@/components/logininput/identifying'
|
||||
import identifying from '@/components/logininput/identifying';
|
||||
import {
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -89,6 +93,7 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['loginIn']),
|
||||
// 协议跳转
|
||||
pact_click(index){
|
||||
console.log(index)
|
||||
@@ -97,7 +102,7 @@
|
||||
});
|
||||
},
|
||||
// 用户注册
|
||||
loginIn(){
|
||||
loginIns(){
|
||||
let type_phone = this.$u.test.mobile( this.member_mobile)
|
||||
if( this.member_mobile == ''){
|
||||
this.$refs.uToast.show({
|
||||
@@ -129,18 +134,16 @@
|
||||
|
||||
// console.log(res)
|
||||
if(res.errCode == 0){
|
||||
// 缓存用户的信息
|
||||
uni.setStorage({
|
||||
key: 'token',
|
||||
data: res.data.token,
|
||||
success: function () {
|
||||
console.log('success');
|
||||
// 跳转选择页面
|
||||
uni.navigateTo({
|
||||
url : '/pageA/topick/topick'
|
||||
})
|
||||
}
|
||||
});
|
||||
//存储一个字符传值
|
||||
me.loginIn(res.data.token);
|
||||
// 缓存用户的信息
|
||||
uni.setStorageSync('user_info',res.data);
|
||||
// 跳转选择页面
|
||||
if (uni.getStorageSync("token")) {
|
||||
uni.navigateTo({
|
||||
url: '/pageA/topick/topick'
|
||||
})
|
||||
}
|
||||
// 注册返回参数
|
||||
// this.$refs.uToast.show({
|
||||
// title: res.message,
|
||||
@@ -174,11 +177,14 @@
|
||||
mask_u() {
|
||||
this.show = !this.show
|
||||
},
|
||||
goLogin() {
|
||||
this.$u.route("/pageA/login/login");
|
||||
},
|
||||
// 注册接口
|
||||
tochange() {
|
||||
// console.log("调用父组件的方法")
|
||||
// console.log('2222',this._data.member_mobile)
|
||||
let member_mobile = this._data.member_mobile
|
||||
let member_mobile = this._data.member_mobile;
|
||||
|
||||
}
|
||||
},
|
||||
@@ -314,6 +320,12 @@
|
||||
border-color: rgba(255, 120, 15, 1) !important;
|
||||
text-align: center;
|
||||
}
|
||||
.go-login {
|
||||
margin-top: 26rpx;
|
||||
text-align: center;
|
||||
font-size: 26rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.warp {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user