This commit is contained in:
徐哼唧L
2024-01-19 09:54:22 +08:00
parent 9508a6b216
commit 67ab1c5973
3 changed files with 94 additions and 87 deletions

View File

@@ -10,7 +10,8 @@
<text class="name" v-if="userMes.nickname!=null">{{userMes.nickname}}</text> <text class="name" v-if="userMes.nickname!=null">{{userMes.nickname}}</text>
<text class="name" v-if="userMes.nickname==null">未设置</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> --> <!-- <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本 <!-- <text class="tong">累计读书5本
<span style="margin: 0 20upx;">|</span> 今日读50分钟 <span style="margin: 0 20upx;">|</span> 今日读50分钟

View File

@@ -9,6 +9,9 @@
<image src="../../static/icon/login_icon_2.png" mode="aspectFit" class="icon_hua_2"></image> <image src="../../static/icon/login_icon_2.png" mode="aspectFit" class="icon_hua_2"></image>
</view> </view>
<view class="register_page"> <view class="register_page">
<view class="login_method"> <view class="login_method">
<view class="title" :class="{ active: type == 2000 }" v-if="type == 2000">验证码登录/注册</view> <view class="title" :class="{ active: type == 2000 }" v-if="type == 2000">验证码登录/注册</view>
<view class="title" :class="{ active: type == 1000 }" v-if="type == 1000">密码登录</view> <view class="title" :class="{ active: type == 1000 }" v-if="type == 1000">密码登录</view>
@@ -32,8 +35,9 @@
</view> --> </view> -->
<view class="quhao"> <view class="quhao">
<uni-data-select class="myselect" placeholder="请选择区号" v-model="quCode" :localdata="quCodeList" <uni-data-select class="myselect" placeholder="请选择区号" v-model="quCode"
style="height: 30rpx !important;" @change="quChange"></uni-data-select> :localdata="quCodeList" style="height: 30rpx !important;"
@change="quChange"></uni-data-select>
</view> </view>
<view class="triangle borderBottom phoneNumberInput" <view class="triangle borderBottom phoneNumberInput"
:clasfs="[type == 1000 ? 'left_triangle': 'right_triangle']"> :clasfs="[type == 1000 ? 'left_triangle': 'right_triangle']">
@@ -54,8 +58,8 @@
</view> </view>
<view class="input_tit">验证码</view> <view class="input_tit">验证码</view>
<view class="input_box"> <view class="input_box">
<input v-model="code" placeholder="请输入您的验证码" placeholder-class="grey" @input="onInput" maxlength="6" <input v-model="code" placeholder="请输入您的验证码" placeholder-class="grey" @input="onInput"
@confirm="onSubmit" /> maxlength="6" @confirm="onSubmit" />
<button class="active" @click="onSetCode">{{ codeText }}</button> <button class="active" @click="onSetCode">{{ codeText }}</button>
</view> </view>
</view> </view>
@@ -65,12 +69,13 @@
<!-- 手机号/邮箱 --> <!-- 手机号/邮箱 -->
<view class="input_tit" style=" margin-top: 80rpx;">手机号 / 邮箱</view> <view class="input_tit" style=" margin-top: 80rpx;">手机号 / 邮箱</view>
<view class="input_box"> <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>
<view class="input_tit">密码</view> <view class="input_tit">密码</view>
<view class="input_box"> <view class="input_box">
<input class="input_item" v-model="password" @input="onInput" :password="!isSee" placeholder="请输入密码" <input class="input_item" v-model="password" @input="onInput" :password="!isSee"
placeholder-class="grey" @confirm="onSubmit" /> placeholder="请输入密码" placeholder-class="grey" @confirm="onSubmit" />
<image v-if="isSee" src="../../static/icon/ic_logon_display.png" mode="aspectFit" <image v-if="isSee" src="../../static/icon/ic_logon_display.png" mode="aspectFit"
@click="isSee = false"> @click="isSee = false">
</image> </image>
@@ -101,7 +106,8 @@
<view class="third_party_login_box"> <view class="third_party_login_box">
<view class="third_party_title"><text>第三方登录</text></view> <view class="third_party_title"><text>第三方登录</text></view>
<view class="third_party_content"> <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>
</view> </view>
@@ -114,7 +120,7 @@
</view> </view>
</view> </view>
<view class="youKeL"> <view class="youKeL" style="margin-bottom: 80rpx;">
<view @click="onPageJump('/pages/user/visitor')">免登陆体验</view> <view @click="onPageJump('/pages/user/visitor')">免登陆体验</view>
</view> </view>

View File

@@ -7,13 +7,13 @@
<view class="per_list"> <view class="per_list">
<text class="biaoti">手机号</text> <text class="biaoti">手机号</text>
<text class="neirong">{{userMsage.tel}}</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> style="background-color: #ed901d;">点击绑定</text>
</view> </view>
<view class="per_list"> <view class="per_list">
<text class="biaoti">邮箱</text> <text class="biaoti">邮箱</text>
<text class="neirong">{{userMsage.email}}</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> style="background-color: #ed901d;">点击绑定</text>
</view> </view>
<view class="per_list per_list_arrow" @click="avatarShow = true"> <view class="per_list per_list_arrow" @click="avatarShow = true">
@@ -310,7 +310,6 @@
that.userMes.avatar = res.user.avatar that.userMes.avatar = res.user.avatar
that.userMes.oldName = that.userMes.nickname that.userMes.oldName = that.userMes.nickname
that.userMes.id = res.user.id that.userMes.id = res.user.id
that.userMsage.age = res.user.age that.userMsage.age = res.user.age
that.userMsage.email = res.user.email that.userMsage.email = res.user.email
that.userMsage.sex = res.user.sex that.userMsage.sex = res.user.sex
@@ -491,6 +490,7 @@
// 邮箱 // 邮箱
choseEmail(e) { choseEmail(e) {
this.userMes.code = this.userMes.emailcode this.userMes.code = this.userMes.emailcode
if (this.userMes.email == '') { if (this.userMes.email == '') {
uni.showToast({ uni.showToast({