绑定
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
<text class="name" v-if="userMes.nickname!=null">{{userMes.nickname}}</text>
|
||||
<text class="name" v-if="userMes.nickname==null">未设置</text>
|
||||
<!-- <image v-if="userMes.vip==1" src="../../static/icon/mine_v.png" alt="" class="per_user_img"></image> -->
|
||||
<text style="margin-left: 20rpx;font-size: 22rpx;color: #888;">({{userMes.tel}})</text>
|
||||
<text style="margin-left: 20rpx;font-size: 22rpx;color: #888;" v-if="userMes.tel">({{userMes.tel}})</text>
|
||||
<text style="margin-left: 20rpx;font-size: 22rpx;color: #888;" v-else>({{userMes.email}})</text>
|
||||
|
||||
<!-- <text class="tong">累计读书5本
|
||||
<span style="margin: 0 20upx;">|</span> 今日读50分钟
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
<image src="../../static/icon/login_icon_2.png" mode="aspectFit" class="icon_hua_2"></image>
|
||||
</view>
|
||||
<view class="register_page">
|
||||
|
||||
|
||||
|
||||
<view class="login_method">
|
||||
<view class="title" :class="{ active: type == 2000 }" v-if="type == 2000">验证码登录/注册</view>
|
||||
<view class="title" :class="{ active: type == 1000 }" v-if="type == 1000">密码登录</view>
|
||||
@@ -32,8 +35,9 @@
|
||||
|
||||
</view> -->
|
||||
<view class="quhao">
|
||||
<uni-data-select class="myselect" placeholder="请选择区号" v-model="quCode" :localdata="quCodeList"
|
||||
style="height: 30rpx !important;" @change="quChange"></uni-data-select>
|
||||
<uni-data-select class="myselect" placeholder="请选择区号" v-model="quCode"
|
||||
:localdata="quCodeList" style="height: 30rpx !important;"
|
||||
@change="quChange"></uni-data-select>
|
||||
</view>
|
||||
<view class="triangle borderBottom phoneNumberInput"
|
||||
:clasfs="[type == 1000 ? 'left_triangle': 'right_triangle']">
|
||||
@@ -54,8 +58,8 @@
|
||||
</view>
|
||||
<view class="input_tit">验证码</view>
|
||||
<view class="input_box">
|
||||
<input v-model="code" placeholder="请输入您的验证码" placeholder-class="grey" @input="onInput" maxlength="6"
|
||||
@confirm="onSubmit" />
|
||||
<input v-model="code" placeholder="请输入您的验证码" placeholder-class="grey" @input="onInput"
|
||||
maxlength="6" @confirm="onSubmit" />
|
||||
<button class="active" @click="onSetCode">{{ codeText }}</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -65,12 +69,13 @@
|
||||
<!-- 手机号/邮箱 -->
|
||||
<view class="input_tit" style=" margin-top: 80rpx;">手机号 / 邮箱</view>
|
||||
<view class="input_box">
|
||||
<input v-model="phoneEmail" placeholder="请输入您的手机号或者邮箱" placeholder-class="grey" @input="onInput" />
|
||||
<input v-model="phoneEmail" placeholder="请输入您的手机号或者邮箱" placeholder-class="grey"
|
||||
@input="onInput" />
|
||||
</view>
|
||||
<view class="input_tit">密码</view>
|
||||
<view class="input_box">
|
||||
<input class="input_item" v-model="password" @input="onInput" :password="!isSee" placeholder="请输入密码"
|
||||
placeholder-class="grey" @confirm="onSubmit" />
|
||||
<input class="input_item" v-model="password" @input="onInput" :password="!isSee"
|
||||
placeholder="请输入密码" placeholder-class="grey" @confirm="onSubmit" />
|
||||
<image v-if="isSee" src="../../static/icon/ic_logon_display.png" mode="aspectFit"
|
||||
@click="isSee = false">
|
||||
</image>
|
||||
@@ -101,7 +106,8 @@
|
||||
<view class="third_party_login_box">
|
||||
<view class="third_party_title"><text>第三方登录</text></view>
|
||||
<view class="third_party_content">
|
||||
<image src="../../static/icon/ic_login_health.png" @click="onHealthLogin" mode="aspectFit"></image>
|
||||
<image src="../../static/icon/ic_login_health.png" @click="onHealthLogin" mode="aspectFit">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -114,7 +120,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="youKeL">
|
||||
<view class="youKeL" style="margin-bottom: 80rpx;">
|
||||
<view @click="onPageJump('/pages/user/visitor')">免登陆体验</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
<view class="per_list">
|
||||
<text class="biaoti">手机号</text>
|
||||
<text class="neirong">{{userMsage.tel}}</text>
|
||||
<text class="marPer" v-if="userMsage.tel==''" @click="phoneShow = true;OpenClear()"
|
||||
<text class="marPer" v-if="!userMsage.tel" @click="phoneShow = true;OpenClear()"
|
||||
style="background-color: #ed901d;">点击绑定</text>
|
||||
</view>
|
||||
<view class="per_list">
|
||||
<text class="biaoti">邮箱</text>
|
||||
<text class="neirong">{{userMsage.email}}</text>
|
||||
<text class="marPer" v-if="userMsage.email==''" @click="emailShow = true;OpenClear()"
|
||||
<text class="marPer" v-if="!userMsage.email" @click="emailShow = true;OpenClear()"
|
||||
style="background-color: #ed901d;">点击绑定</text>
|
||||
</view>
|
||||
<view class="per_list per_list_arrow" @click="avatarShow = true">
|
||||
@@ -310,7 +310,6 @@
|
||||
that.userMes.avatar = res.user.avatar
|
||||
that.userMes.oldName = that.userMes.nickname
|
||||
that.userMes.id = res.user.id
|
||||
|
||||
that.userMsage.age = res.user.age
|
||||
that.userMsage.email = res.user.email
|
||||
that.userMsage.sex = res.user.sex
|
||||
@@ -491,6 +490,7 @@
|
||||
|
||||
// 邮箱
|
||||
choseEmail(e) {
|
||||
|
||||
this.userMes.code = this.userMes.emailcode
|
||||
if (this.userMes.email == '') {
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user