修改参数

This commit is contained in:
丁杰 2026-06-01 11:16:19 +08:00
parent ce03c0de2b
commit 21425c0306
2 changed files with 608 additions and 594 deletions

View File

@ -47,14 +47,17 @@
<image <image
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/338d957b-cbb6-409b-9e7a-ef5faa0f9b70.png" src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/338d957b-cbb6-409b-9e7a-ef5faa0f9b70.png"
mode="widthFix" mode="widthFix"
style="width:26rpx;margin-top: 26rpx;position: relative;top: 4rpx;left: -10rpx;"> style="width:26rpx;margin-top: 26rpx;position: relative;top: 4rpx;left: -10rpx;"
v-if="!userInfo.business_time">
</image> </image>
<text style="margin-right: 16rpx; color: #ec5d57;">待完善</text> <text style="margin-right: 16rpx;"
:style="{ color: userInfo.business_time ? '#c9c9c9' : '#ec5d57' }">
{{ userInfo.business_time ? '已设置' : '待完善' }}
</text>
<image class="arrow-right" src="/static/images/arrow_right.png" mode="aspectFit"> <image class="arrow-right" src="/static/images/arrow_right.png" mode="aspectFit">
</image> </image>
</view> </view>
</view> </view>
<!-- 服务技能 -->
<view class="info-item" @click="navigateToServiceSkill"> <view class="info-item" @click="navigateToServiceSkill">
<view class="info-left"> <view class="info-left">
<image class="item-icon" <image class="item-icon"
@ -66,9 +69,14 @@
<image <image
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/338d957b-cbb6-409b-9e7a-ef5faa0f9b70.png" src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/338d957b-cbb6-409b-9e7a-ef5faa0f9b70.png"
mode="widthFix" mode="widthFix"
style="width:26rpx;margin-top: 26rpx;position: relative;top: 4rpx;left: -10rpx;"> style="width:26rpx;margin-top: 26rpx;position: relative;top: 4rpx;left: -10rpx;"
v-if="!userInfo.servers_kill_arr || userInfo.servers_kill_arr.length === 0">
</image> </image>
<text style="margin-right: 16rpx; color: #389930;">已认证</text> <text style="margin-right: 16rpx;"
:style="{ color: (userInfo.servers_kill_arr && userInfo.servers_kill_arr.length > 0) ? '#333333' : '#ec5d57' }">
{{ (userInfo.servers_kill_arr && userInfo.servers_kill_arr.length > 0) ? '已设置' :
'待完善' }}
</text>
<image class="arrow-right" src="/static/images/arrow_right.png" mode="aspectFit"> <image class="arrow-right" src="/static/images/arrow_right.png" mode="aspectFit">
</image> </image>
</view> </view>
@ -153,9 +161,14 @@
<image <image
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/338d957b-cbb6-409b-9e7a-ef5faa0f9b70.png" src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/338d957b-cbb6-409b-9e7a-ef5faa0f9b70.png"
mode="widthFix" mode="widthFix"
style="width:26rpx;margin-top: 26rpx;position: relative;top: 4rpx;left: -10rpx;"> style="width:26rpx;margin-top: 26rpx;position: relative;top: 4rpx;left: -10rpx;"
v-if="userInfo.credentials_state === 0">
</image> </image>
<text style="margin-right: 16rpx; color: #e59e45;">审核中</text> <text style="margin-right: 16rpx;"
:style="{ color: userInfo.credentials_state === 0 ? '#ec5d57' : userInfo.credentials_state === 1 ? '#e59e45' : '#c9c9c9' }">
{{ userInfo.credentials_state === 0 ? '待完善' : userInfo.credentials_state === 1 ? '审核中' :
'已认证' }}
</text>
<image class="arrow-right" src="/static/images/arrow_right.png" mode="aspectFit"> <image class="arrow-right" src="/static/images/arrow_right.png" mode="aspectFit">
</image> </image>
</view> </view>
@ -178,12 +191,12 @@
</template> </template>
<script> <script>
import { import {
handleImgSizeUni handleImgSizeUni
} from '@/utils/service.js' } from '@/utils/service.js'
import request from "../../utils/request"; import request from "../../utils/request";
export default { export default {
data() { data() {
return { return {
identity: '', identity: '',
@ -475,7 +488,7 @@
console.log('调用接口获取用户信息type:', type) console.log('调用接口获取用户信息type:', type)
// //
const result = await request.post('sj/user/getUser', { const result = await request.post('/sj/user/getUser', {
type type
}) })
@ -494,6 +507,7 @@
// ID // ID
this.tryAlternativeUserInfo() this.tryAlternativeUserInfo()
uni.hideLoading();
} }
}, },
@ -636,17 +650,17 @@
}) })
} }
} }
} }
</script> </script>
<style> <style>
.profile-page { .profile-page {
min-height: 100vh; min-height: 100vh;
background-color: #f5f5f5; background-color: #f5f5f5;
} }
/* 自定义导航栏样式 */ /* 自定义导航栏样式 */
.custom-navbar { .custom-navbar {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
@ -663,21 +677,21 @@
/* 适配不同机型的顶部安全区域 */ /* 适配不同机型的顶部安全区域 */
padding-top: var(--status-bar-height); padding-top: var(--status-bar-height);
height: calc(128rpx + var(--status-bar-height)); height: calc(128rpx + var(--status-bar-height));
} }
/* 导航栏左侧 */ /* 导航栏左侧 */
.navbar-left { .navbar-left {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.back-icon { .back-icon {
width: 16rpx; width: 16rpx;
height: 32rpx; height: 32rpx;
margin-right: 23rpx; margin-right: 23rpx;
} }
.navbar-title { .navbar-title {
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
@ -685,29 +699,29 @@
line-height: 45rpx; line-height: 45rpx;
text-align: left; text-align: left;
font-style: normal; font-style: normal;
} }
/* 导航栏右侧状态栏 */ /* 导航栏右侧状态栏 */
.navbar-right { .navbar-right {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.nav-status-item { .nav-status-item {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-left: 11rpx; margin-left: 11rpx;
padding: 16rpx; padding: 16rpx;
} }
.nav-status-icon { .nav-status-icon {
width: 44rpx; width: 44rpx;
height: 44rpx; height: 44rpx;
margin-bottom: 7rpx; margin-bottom: 7rpx;
} }
.nav-status-text { .nav-status-text {
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 20rpx; font-size: 20rpx;
@ -715,29 +729,29 @@
line-height: 28rpx; line-height: 28rpx;
text-align: left; text-align: left;
font-style: normal; font-style: normal;
} }
.content { .content {
padding: 20rpx; padding: 20rpx;
/* 动态计算内容区域的上边距 */ /* 动态计算内容区域的上边距 */
padding-top: calc(128rpx + var(--status-bar-height) + 20rpx); padding-top: calc(128rpx + var(--status-bar-height) + 20rpx);
} }
/* 部分卡片 */ /* 部分卡片 */
.section-card { .section-card {
background: white; background: white;
border-radius: 20rpx; border-radius: 20rpx;
padding: 20rpx 20rpx 0 20rpx; padding: 20rpx 20rpx 0 20rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.section-header { .section-header {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 8rpx; margin-bottom: 8rpx;
} }
.section-title { .section-title {
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
@ -745,17 +759,17 @@
line-height: 48rpx; line-height: 48rpx;
text-align: left; text-align: left;
font-style: normal; font-style: normal;
} }
.title-bar { .title-bar {
width: 6rpx; width: 6rpx;
height: 30rpx; height: 30rpx;
background-color: #E8101E; background-color: #E8101E;
margin-right: 10rpx; margin-right: 10rpx;
border-radius: 5rpx; border-radius: 5rpx;
} }
.section-desc { .section-desc {
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 24rpx;
@ -765,45 +779,45 @@
font-style: normal; font-style: normal;
margin-left: 20rpx; margin-left: 20rpx;
letter-spacing: 0.5rpx; letter-spacing: 0.5rpx;
} }
/* 子部分 */ /* 子部分 */
.subsection { .subsection {
/* margin-top: 10rpx; */ /* margin-top: 10rpx; */
/* margin-left: 17rpx; */ /* margin-left: 17rpx; */
} }
.subsection-content { .subsection-content {
border-radius: 12rpx; border-radius: 12rpx;
overflow: hidden; overflow: hidden;
margin-left: 17rpx; margin-left: 17rpx;
} }
/* 信息项 */ /* 信息项 */
.info-item { .info-item {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 32rpx 0; padding: 32rpx 0;
border-bottom: 1rpx solid #f0f0f0; border-bottom: 1rpx solid #f0f0f0;
} }
.info-item:last-child { .info-item:last-child {
border-bottom: none; border-bottom: none;
} }
.info-left { .info-left {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.item-icon { .item-icon {
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;
margin-right: 24rpx; margin-right: 24rpx;
} }
.item-label { .item-label {
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
@ -811,11 +825,11 @@
line-height: 40rpx; line-height: 40rpx;
text-align: left; text-align: left;
font-style: normal; font-style: normal;
} }
.arrow-right { .arrow-right {
margin-right: 19rpx; margin-right: 19rpx;
width: 11rpx; width: 11rpx;
height: 22rpx; height: 22rpx;
} }
</style> </style>

View File

@ -110,7 +110,7 @@ export default {
}, },
data() { data() {
return { return {
currentStep: 4, // currentStep: 0, //
isAgree: false, isAgree: false,
identity: null, identity: null,
textData: {}, textData: {},