1.合并前段时间写的页面
This commit is contained in:
236
pages/sys/user/changeInfo/changeInfo.vue
Normal file
236
pages/sys/user/changeInfo/changeInfo.vue
Normal file
@@ -0,0 +1,236 @@
|
||||
<template>
|
||||
<view class="change-info-container">
|
||||
<image src="/static/ic_back.png" class="back-arrow" @click="goBack"/>
|
||||
<view class="title-main">完善你的资料</view>
|
||||
<view class="title-sub">让大家更好地了解你</view>
|
||||
<view class="avatar-section">
|
||||
<image class="avatar-img" src="/static/avatar.png" />
|
||||
<view class="avatar-camera">
|
||||
<image src="/static/ic_camera.png" class="camera-icon" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="form-section">
|
||||
<view class="form-label">取个昵称</view>
|
||||
<view class="input-row">
|
||||
<input class="form-input" v-model="nickname" placeholder="请输入昵称" />
|
||||
<view class="input-suffix">
|
||||
<image src="/static/ic_i_c_01.png" class="random-icon" />
|
||||
<text class="random-text">随机</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="form-label">你的手机号</view>
|
||||
<view class="input-row">
|
||||
<input class="form-input" v-model="phone" placeholder="请输入您的手机号" />
|
||||
<image src="/static/ic_arrow_right.png" class="arrow-icon" />
|
||||
</view>
|
||||
<view class="form-label">你的性别(不可修改)</view>
|
||||
<view class="gender-row">
|
||||
<view class="gender-item selected">
|
||||
<image src="/static/ic_i_c_02.png" class="gender-icon" />
|
||||
</view>
|
||||
<view class="gender-item">
|
||||
<image src="/static/ic_i_c_03.png" class="gender-icon" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-row"><text class="info-label">部门</text>生活服务部</view>
|
||||
<view class="info-row"><text class="info-label">岗位</text>客服</view>
|
||||
<view class="info-row"><text class="info-label">工号</text>A10235</view>
|
||||
</view>
|
||||
<button class="submit-btn">确认修改</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
nickname: '帅气的小南瓜',
|
||||
phone: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
uni.navigateBack();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.change-info-container {
|
||||
position: relative;
|
||||
padding-bottom: 60rpx;
|
||||
padding-top: 118rpx;
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(180deg, #d2edff 0%, #ffffff 100%);
|
||||
}
|
||||
|
||||
.back-arrow {
|
||||
width: 24rpx;
|
||||
height: 42rpx;
|
||||
left: 45rpx;
|
||||
}
|
||||
|
||||
.title-main {
|
||||
font-size: 50rpx;
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
margin-top: 45rpx;
|
||||
margin-left: 65rpx;
|
||||
}
|
||||
|
||||
.title-sub {
|
||||
font-size: 50rpx;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
margin-left: 65rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.avatar-section {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin-left: 68rpx;
|
||||
margin-bottom: 62rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.avatar-img {
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.avatar-camera {
|
||||
position: absolute;
|
||||
left: 100rpx;
|
||||
top: 90rpx;
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
background: #bbb;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.camera-icon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
margin: 0 68rpx;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
color: #737373;
|
||||
font-size: 28rpx;
|
||||
margin-bottom: 17rpx;
|
||||
margin-top: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.input-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 14rpx;
|
||||
border: 2rpx solid #e0e0e0;
|
||||
margin-bottom: 18rpx;
|
||||
padding: 0 20rpx;
|
||||
height: 98rpx;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
flex: 1;
|
||||
border: none;
|
||||
font-weight: bold;
|
||||
font-size: 33rpx;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.input-suffix {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
|
||||
.random-icon {
|
||||
width: 31rpx;
|
||||
height: 27rpx;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.random-text {
|
||||
color: #636363;
|
||||
font-size: 25rpx;
|
||||
}
|
||||
|
||||
.arrow-icon {
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
|
||||
.gender-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 50rpx;
|
||||
padding-top: 15rpx;
|
||||
}
|
||||
|
||||
.gender-item {
|
||||
width: 188rpx;
|
||||
height: 97rpx;
|
||||
border: 2rpx dashed #bbb;
|
||||
border-radius: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 24rpx;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.gender-item.selected {
|
||||
background: #e0e0e0;
|
||||
border-color: #bbb;
|
||||
}
|
||||
|
||||
.gender-icon {
|
||||
width: 38rpx;
|
||||
height: 38rpx;
|
||||
}
|
||||
|
||||
.info-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 28rpx;
|
||||
color: #737373;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
color: #737373;
|
||||
width: 134rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
width: 90vw;
|
||||
height: 80rpx;
|
||||
background: linear-gradient(90deg, #2e6cf6 0%, #4fc3f7 100%);
|
||||
color: #fff;
|
||||
font-size: 32rpx;
|
||||
border: none;
|
||||
border-radius: 40rpx;
|
||||
margin: 80rpx auto 40rpx auto;
|
||||
display: block;
|
||||
box-shadow: 0 8rpx 24rpx rgba(46, 108, 246, 0.12);
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user