1.部分接口对接 页面调整

This commit is contained in:
2025-07-25 17:30:20 +08:00
parent 658d21399d
commit b82bf6ef8c
10 changed files with 1227 additions and 1231 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="change-info-container">
<image src="/static/ic_back.png" class="back-arrow" @click="goBack"/>
<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">
@@ -12,7 +12,7 @@
<view class="form-section">
<view class="form-label">取个昵称</view>
<view class="input-row">
<input class="form-input" v-model="nickname" placeholder="请输入昵称" />
<input class="form-input" v-model="userInfo.nickName" placeholder="请输入昵称" />
<view class="input-suffix">
<image src="/static/ic_i_c_01.png" class="random-icon" />
<text class="random-text">随机</text>
@@ -20,19 +20,19 @@
</view>
<view class="form-label">你的手机号</view>
<view class="input-row">
<input class="form-input" v-model="phone" placeholder="请输入您的手机号" />
<input class="form-input" v-model="userInfo.phonenumber" 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">
<view v-if="userInfo.sex == 1" class="gender-item selected">
<image src="/static/ic_i_c_02.png" class="gender-icon" />
</view>
<view class="gender-item">
<view v-else 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>{{userInfo.deptName}}</view>
<view class="info-row"><text class="info-label">岗位</text>客服</view>
<view class="info-row"><text class="info-label">工号</text>A10235</view>
</view>
@@ -44,10 +44,12 @@
export default {
data() {
return {
nickname: '帅气的小南瓜',
phone: ''
userInfo: {},
}
},
onLoad() {
this.userInfo = this.vuex_user
},
methods: {
goBack() {
uni.navigateBack();
@@ -130,7 +132,7 @@
color: #737373;
font-size: 28rpx;
margin-bottom: 17rpx;
margin-top: 32rpx;
margin-top: 32rpx;
font-weight: bold;
}
@@ -147,7 +149,7 @@
.form-input {
flex: 1;
border: none;
border: none;
font-weight: bold;
font-size: 33rpx;
color: #000000;
@@ -179,14 +181,13 @@
.gender-row {
display: flex;
align-items: center;
margin-bottom: 50rpx;
margin-bottom: 50rpx;
padding-top: 15rpx;
}
.gender-item {
width: 188rpx;
height: 97rpx;
border: 2rpx dashed #bbb;
border-radius: 10rpx;
display: flex;
align-items: center;
@@ -209,14 +210,14 @@
display: flex;
align-items: center;
font-size: 28rpx;
color: #737373;
color: #737373;
margin-bottom: 20rpx;
}
.info-label {
color: #737373;
width: 134rpx;
font-size: 28rpx;
width: 134rpx;
font-size: 28rpx;
font-weight: bold;
display: inline-block;
}