审核状态等一系列bug修复

This commit is contained in:
丁杰 2026-06-15 14:01:12 +08:00
parent 7fe55a5c6f
commit d01b04bce0
14 changed files with 317 additions and 217 deletions

View File

@ -158,17 +158,16 @@
<text class="item-label">资质信息</text>
</view>
<view>
<image
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/338d957b-cbb6-409b-9e7a-ef5faa0f9b70.png"
mode="widthFix"
style="width:26rpx;margin-top: 26rpx;position: relative;top: 4rpx;left: -10rpx;"
v-if="userInfo.credentials_state === 0">
</image>
<text style="margin-right: 16rpx;"
:style="{ color: userInfo.credentials_state === 0 ? '#ec5d57' : userInfo.credentials_state === 1 ? '#e59e45' : '#389930' }">
{{ userInfo.credentials_state === 0 ? '待完善' : userInfo.credentials_state === 1 ? '审核中' :
'已认证' }}
</text>
<image
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/338d957b-cbb6-409b-9e7a-ef5faa0f9b70.png"
mode="widthFix"
style="width:26rpx;margin-top: 26rpx;position: relative;top: 4rpx;left: -10rpx;"
v-if="userInfo.credentials_state === 0 || userInfo.id_type < 0 || qualificationAuditStatus == 3">
</image>
<text style="margin-right: 16rpx;"
:style="{ color: qualificationStatusColor() }">
{{ qualificationStatusText() }}
</text>
<image class="arrow-right" src="/static/images/arrow_right.png" mode="aspectFit">
</image>
</view>
@ -199,12 +198,15 @@ import request from "../../utils/request";
export default {
data() {
return {
identity: '',
currentUserId: '', // ID
userInfo: {}, //
sharing: false //
}
},
identity: '',
currentUserId: '', // ID
userInfo: {}, //
authDetails: null,
qualificationAuditStatus: null,
isQualificationAuditLoaded: false,
sharing: false //
}
},
onLoad() {
//
this.loadIdentity()
@ -492,12 +494,18 @@ export default {
type
})
if (result.data && result.data.id) {
this.userInfo = result.data
this.currentUserId = result.data.id
//
uni.setStorageSync('userInfo', result.data)
if (result.data && result.data.id) {
this.userInfo = result.data
this.currentUserId = result.data.id
this.fetchQualificationApplyDetails()
if (this.isSettled()) {
this.fetchAuthDetails()
} else {
this.authDetails = null
}
//
uni.setStorageSync('userInfo', result.data)
console.log('从接口获取用户信息成功:', this.userInfo)
} else {
console.log('接口返回数据异常:', result)
@ -512,8 +520,8 @@ export default {
},
//
tryAlternativeUserInfo() {
try {
tryAlternativeUserInfo() {
try {
const app = getApp()
// 1: ID
@ -544,10 +552,60 @@ export default {
console.log('所有获取用户信息的方法都失败了')
} catch (e) {
console.log('备用方案获取用户信息失败:', e)
}
},
loadIdentity() {
}
},
fetchAuthDetails() {
return request.post("/sj/userSjAuth/details", {
type: 1,
id_type: '1'
}).then(res => {
if (res.code == 200 && res.data) {
this.authDetails = res.data;
}
return res;
});
},
fetchQualificationApplyDetails() {
this.isQualificationAuditLoaded = false;
return request.post('/sj/userSjAuth/details', {
apply_type: 4
}).then(res => {
if ((res.code == 200 || res.state == 1) && res.data) {
this.qualificationAuditStatus = Number(res.data.apply_state);
} else {
this.qualificationAuditStatus = null;
}
this.isQualificationAuditLoaded = true;
return res;
}).catch(error => {
console.log('获取资质信息申请详情失败:', error);
this.qualificationAuditStatus = null;
this.isQualificationAuditLoaded = true;
});
},
isSettled() {
return typeof this.userInfo.id_type !== 'undefined' && this.userInfo.id_type !== 0;
},
isCertified() {
return typeof this.userInfo.id_type !== 'undefined' && this.userInfo.id_type > 0;
},
isUnderReview() {
return this.authDetails && Object.keys(this.authDetails).length > 0;
},
async ensureAuthDetails() {
if (this.identity != '2' || !this.isSettled() || this.isUnderReview()) {
return;
}
await this.fetchAuthDetails();
},
loadIdentity() {
//
const app = getApp()
const globalIdentity = app.globalData.artisanType
@ -630,50 +688,50 @@ export default {
})
},
navigateToQualification() {
const idType = this.userInfo.id_type;
const credentialsState = this.userInfo.credentials_state;
if (idType < 0 && credentialsState === 0) {
// +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=2'
});
} else if (idType < 0 && credentialsState === 1) {
// +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1'
});
} else if (idType === 0 && credentialsState === 0) {
//
uni.navigateTo({
url: '/pages/ruzhu/ruzhu'
});
} else if (idType > 0 && credentialsState === 0) {
// +
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
} else if (idType > 0 && credentialsState === 1) {
// +
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
} else if (idType > 0 && credentialsState === 2) {
// +
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
}
},
navigateToBelongShop() { //
uni.navigateTo({
url: '/pages/artisan/belong_shop'
})
}
}
}
async navigateToQualification() {
if (this.identity != '2' || this.isCertified()) {
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
return;
}
await this.ensureAuthDetails();
if (!this.isSettled()) {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu'
});
} else if (this.isUnderReview()) {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1'
});
} else {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?step=3'
});
}
},
navigateToBelongShop() { //
uni.navigateTo({
url: '/pages/artisan/belong_shop'
})
},
qualificationStatusText() {
if (this.qualificationAuditStatus == 3) return '审核未通过';
if (this.userInfo.id_type < 0) return '审核未通过';
if (this.qualificationAuditStatus == 1) return '审核中';
if (!this.isQualificationAuditLoaded) return '';
if (this.userInfo.credentials_state === 0) return '待完善';
if (this.userInfo.credentials_state === 1) return '审核中';
return '已认证';
},
qualificationStatusColor() {
if (this.qualificationAuditStatus == 3 || this.userInfo.id_type < 0 || this.userInfo.credentials_state === 0) return '#ec5d57';
if (this.qualificationAuditStatus == 1 || this.userInfo.credentials_state === 1) return '#e59e45';
return '#389930';
}
}
}
</script>
<style>
@ -855,4 +913,4 @@ export default {
width: 11rpx;
height: 22rpx;
}
</style>
</style>

View File

@ -187,7 +187,7 @@ export default {
}
.brand-name {
font-size: 26rpx;
font-size: 28rpx;
font-weight: 500;
color: #333333;
line-height: 34rpx;

View File

@ -88,7 +88,7 @@ export default {
<style lang="scss" scoped>
.skill-item {
display: flex;
margin-bottom: 20rpx;
margin-bottom: 30rpx;
&:last-child {
margin-bottom: 0;
@ -133,7 +133,7 @@ export default {
overflow: hidden;
font-size: 28rpx;
color: #333;
font-weight: 400;
font-weight: 500;
line-height: 40rpx;
}

View File

@ -128,7 +128,7 @@
</view>
<view class="stat-item">
<text class="num">{{ orderBasic.finished }}</text>
<text class="label">完成</text>
<text class="label">取消</text>
</view>
</view>
</view>
@ -196,7 +196,7 @@
<view class="brands-section card-box">
<view class="card-header">
<view class="header-left"><text class="title" style="margin-left: 10rpx;">精选品牌</text></view>
<view class="header-right" @tap="goToBrandList">更多品牌 <image class="more-right-icon"
<view class="header-right brand-more" @tap="goToBrandList">更多品牌 <image class="more-right-icon"
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/ee119e24-1cb2-43df-86e6-61af8e9fd0ad.png">
</image>
</view>
@ -783,8 +783,7 @@ export default {
// /
toggleStatus() {
const currentStatus = this.userInfo.order_taking;
const isCurrentlyResting = currentStatus != 1; //
const isCurrentlyResting = !this.isOpenStore; //
//
if (isCurrentlyResting && !this.canOpenStore) {
@ -793,7 +792,7 @@ export default {
}
//
let newStatus = currentStatus == 1 ? 2 : 1;
let newStatus = this.isOpenStore ? 2 : 1;
// Loading
uni.showLoading({
@ -1085,10 +1084,14 @@ page {
.header-right {
font-weight: 400;
font-size: 22rpx;
font-size: 24rpx;
color: #666666;
line-height: 28rpx;
}
.brand-more {
font-size: 24rpx;
}
}
.header-section {
@ -1459,7 +1462,7 @@ page {
.notice-btn {
// font-weight: 400;
font-size: 20rpx;
font-size: 22rpx;
color: #8D4C1B;
padding: 6rpx 18rpx;
border-radius: 30rpx;

View File

@ -917,7 +917,7 @@ export default {
line-height: 37rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 19;
-webkit-line-clamp: 10;
overflow: hidden;
white-space: pre-line;
@ -1337,4 +1337,4 @@ export default {
font-size: 32rpx;
color: #333333;
}
</style>
</style>

View File

@ -28,16 +28,16 @@
<view class="sort-item" @tap="toggleSort('time')">
<text class="sort-text" :class="{ active: orderType === 1 || orderType === 2 }">发布时间</text>
<view class="arrows">
<image class="arrow-icon" :src="orderType === 1 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 2 ? iconPinkDown : iconGreyDown"></image>
<image class="arrow-icon" :src="orderType === 2 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 1 ? iconPinkDown : iconGreyDown"></image>
</view>
</view>
<view class="sort-item" @tap="toggleSort('view')">
<text class="sort-text" :class="{ active: orderType === 3 || orderType === 4 }">浏览量</text>
<view class="arrows">
<image class="arrow-icon" :src="orderType === 3 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 4 ? iconPinkDown : iconGreyDown"></image>
<image class="arrow-icon" :src="orderType === 4 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 3 ? iconPinkDown : iconGreyDown"></image>
</view>
</view>
</view>
@ -153,9 +153,21 @@ export default {
// ============ ============
toggleSort(type) {
if (type === 'time') {
this.orderType = this.orderType === 1 ? 2 : 1;
if (this.orderType === 1) {
this.orderType = 2;
} else if (this.orderType === 2) {
this.orderType = 0;
} else {
this.orderType = 1;
}
} else if (type === 'view') {
this.orderType = this.orderType === 3 ? 4 : 3;
if (this.orderType === 3) {
this.orderType = 4;
} else if (this.orderType === 4) {
this.orderType = 0;
} else {
this.orderType = 3;
}
}
this.refreshBrandList();
},
@ -522,4 +534,4 @@ export default {
width: 36rpx !important;
height: 36rpx !important;
}
</style>
</style>

View File

@ -28,16 +28,16 @@
<view class="sort-item" @tap="toggleSort('time')">
<text class="sort-text" :class="{ active: orderType === 1 || orderType === 2 }">发布时间</text>
<view class="arrows">
<image class="arrow-icon" :src="orderType === 1 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 2 ? iconPinkDown : iconGreyDown"></image>
<image class="arrow-icon" :src="orderType === 2 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 1 ? iconPinkDown : iconGreyDown"></image>
</view>
</view>
<view class="sort-item" @tap="toggleSort('view')">
<text class="sort-text" :class="{ active: orderType === 3 || orderType === 4 }">浏览量</text>
<view class="arrows">
<image class="arrow-icon" :src="orderType === 3 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 4 ? iconPinkDown : iconGreyDown"></image>
<image class="arrow-icon" :src="orderType === 4 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 3 ? iconPinkDown : iconGreyDown"></image>
</view>
</view>
</view>
@ -176,9 +176,11 @@ export default {
toggleSort(type) {
if (type === 'time') {
if (this.orderType === 1) this.orderType = 2
else if (this.orderType === 2) this.orderType = 0
else this.orderType = 1
} else if (type === 'view') {
if (this.orderType === 3) this.orderType = 4
else if (this.orderType === 4) this.orderType = 0
else this.orderType = 3
}
this.fetchData(true)
@ -574,4 +576,4 @@ export default {
width: 36rpx !important;
height: 36rpx !important;
}
</style>
</style>

View File

@ -781,17 +781,55 @@ export default {
});
this.getInviteList();
},
//
fetchAuthDetails() {
request.post("/sj/userSjAuth/details", {
type: 1,
id_type: '1'
}).then(res => {
if (res.code == 200 && res.data) {
this.authDetails = res.data;
}
});
},
//
fetchAuthDetails() {
return request.post("/sj/userSjAuth/details", {
type: 1,
id_type: '1'
}).then(res => {
if (res.code == 200 && res.data) {
this.authDetails = res.data;
}
return res;
});
},
async ensureAuthDetails() {
if (!this.isSettled || (this.authDetails && Object.keys(this.authDetails).length > 0)) {
return;
}
await this.fetchAuthDetails();
},
navigateToCertificationForm() {
if (this.isSettled) {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?step=3'
});
} else {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu'
});
}
},
async navigateToCertificationProcess() {
if (this.isCertified) {
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
return;
}
await this.ensureAuthDetails();
if (!this.isSettled) {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu'
});
} else if (this.isUnderReview) {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1'
});
} else {
this.navigateToCertificationForm();
}
},
async goLogin() {
// 访
if (this.isAccountDisabled) {
@ -841,11 +879,17 @@ export default {
return;
}
// 2.
if (!this.isLogin) {
uni.showToast({
title: `您暂未登录,无法使用${item.title || item.text || ''}`,
icon: "none",
// 2.
if (!this.isLogin) {
if (item.path == "/pages/ruzhu/ruzhu") {
uni.navigateTo({
url: "/pages/blogPopup/blogPopup",
});
return;
}
uni.showToast({
title: `您暂未登录,无法使用${item.title || item.text || ''}`,
icon: "none",
});
return;
}
@ -920,41 +964,9 @@ export default {
url: "/pages/artisan/profile",
});
},
toruzhu() {
const idType = this.userInfo.id_type;
const credentialsState = this.userInfo.credentials_state;
if (idType < 0 && credentialsState === 0) {
// +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=2'
});
} else if (idType < 0 && credentialsState === 1) {
// +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1'
});
} else if (idType === 0 && credentialsState === 0) {
//
uni.navigateTo({
url: '/pages/ruzhu/ruzhu'
});
} else if (idType > 0 && credentialsState === 0) {
// +
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
} else if (idType > 0 && credentialsState === 1) {
// +
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
} else if (idType > 0 && credentialsState === 2) {
// +
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
}
},
toruzhu() {
this.navigateToCertificationProcess();
},
closeSetupModal() {
this.showSetupModal = false;
},
@ -970,24 +982,10 @@ export default {
url: '/pages/shop/service-skills'
});
},
goToAuth() {
this.showSetupModal = false;
if (this.isUnderReview) {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1'
});
} else {
if (this.isSettled) {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?step=3'
});
} else {
uni.navigateTo({
url: '/pages/ruzhu/ruzhu'
});
}
}
},
goToAuth() {
this.showSetupModal = false;
this.navigateToCertificationProcess();
},
goToInviteList() {
// 访
if (this.isAccountDisabled) {
@ -1705,7 +1703,7 @@ button::after {
gap: 12rpx;
margin-top: 10rpx;
width: auto;
height: 36rpx;
height: 46rpx;
padding: 0 8rpx 0 8rpx;
background-image: url('https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/378a6936-a543-4ff5-9aa0-cfcb4d4e14b3.png');
background-size: 100% 100%;
@ -1891,4 +1889,4 @@ button::after {
}
}
}
</style>
</style>

View File

@ -1,5 +1,5 @@
<template>
<view class="order-list-page" style="background-color: #fafafa">
<view class="order-list-page">
<view class="status" v-if="isLogin">
<scroll-view scroll-x class="status-tabs" :show-scrollbar="false">
@ -21,7 +21,7 @@
</view>
</scroll-view>
</view>
<view style="background-color: #f5f5f5; height: 20rpx"></view>
<view class="status-gap"></view>
<CommonList nList ref="groupRef" :isLogin="isLogin" :apiUrl="apiUrl"
:listScrollHeight="`calc(100vh - 280rpx - 20rpx)`" @load-success="loadSuccess" class="nodatamit">
<template #listData="{ list }" class="commit">
@ -41,10 +41,12 @@
<view class="noDataBox">
<noData tipText="暂无服务订单哟~" v-if="isLogin"></noData>
<view class="nologin_part" v-else>
<image src="/static/images/no_login.png" class="nologin_icon" mode="aspectFit"></image>
<view class="btn-login" @click="goLogin">
<text class="login-text">前去登录</text>
</view>
<image
src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/15e33bab-8868-40bf-935b-a9ee9ca3c0d2.png"
class="nologin_icon"
mode="aspectFit"
@click="goLogin"
></image>
</view>
</view>
</template>
@ -570,6 +572,7 @@ export default {
min-height: 100vh;
display: flex;
flex-direction: column;
background-color: #FAFAFA;
}
/* 状态标签栏 (移植自用户端示例) */
@ -654,7 +657,7 @@ export default {
/* 数据列表及卡片外框样式 */
.order-item-wrap {
background-color: #f5f5f5;
background-color: #FAFAFA;
overflow: hidden;
}
@ -669,33 +672,15 @@ export default {
/* 未登录状态的样式 */
.nologin_part {
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.nologin_icon {
width: 360rpx;
height: 360rpx;
margin-top: 100rpx;
margin-bottom: 40rpx;
}
.btn-login {
width: 200rpx;
height: 68rpx;
background-color: #ff4767;
border-radius: 34rpx;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
box-shadow: 0 4rpx 10rpx rgba(255, 71, 103, 0.3);
}
.login-text {
font-size: 30rpx;
color: #fff;
width: 422rpx;
height: 378rpx;
}
::v-deep .list-scroll {
@ -705,6 +690,11 @@ export default {
}
.nodatamit {
background-color: #f5f5f5;
background-color: #FAFAFA;
}
</style>
.status-gap {
background-color: #FAFAFA;
height: 20rpx;
}
</style>

View File

@ -42,7 +42,7 @@ export default {
} else {
this.infoData = {
top: '审核结果',
title: '审核失败',
title: '审核未通过',
photo: res.data.photo
};
this.$emit('stateChange', 3);
@ -114,6 +114,7 @@ export default {
line-height: 67rpx;
text-align: center;
font-style: normal;
margin-top: -40rpx;
}
.title-content {

View File

@ -21,16 +21,16 @@
<view class="sort-item" @tap="toggleSort('time')">
<text class="sort-text" :class="{ active: orderType === 1 || orderType === 2 }">发布时间</text>
<view class="arrows">
<image class="arrow-icon" :src="orderType === 1 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 2 ? iconPinkDown : iconGreyDown"></image>
<image class="arrow-icon" :src="orderType === 2 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 1 ? iconPinkDown : iconGreyDown"></image>
</view>
</view>
<view class="sort-item" @tap="toggleSort('view')">
<text class="sort-text" :class="{ active: orderType === 3 || orderType === 4 }">浏览量</text>
<view class="arrows">
<image class="arrow-icon" :src="orderType === 3 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 4 ? iconPinkDown : iconGreyDown"></image>
<image class="arrow-icon" :src="orderType === 4 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 3 ? iconPinkDown : iconGreyDown"></image>
</view>
</view>
</view>
@ -150,9 +150,21 @@ export default {
//
toggleSort(type) {
if (type === 'time') {
this.orderType = this.orderType === 1 ? 2 : 1;
if (this.orderType === 1) {
this.orderType = 2;
} else if (this.orderType === 2) {
this.orderType = 0;
} else {
this.orderType = 1;
}
} else if (type === 'view') {
this.orderType = this.orderType === 3 ? 4 : 3;
if (this.orderType === 3) {
this.orderType = 4;
} else if (this.orderType === 4) {
this.orderType = 0;
} else {
this.orderType = 3;
}
}
//
@ -439,4 +451,4 @@ export default {
font-size: 24rpx;
color: #999;
}
</style>
</style>

View File

@ -308,6 +308,11 @@ export default {
}).then(res => {
if (res.code == 200 && res.data) {
this.authDetails = res.data;
if (!this.userInfo.business_time && res.data.business_time) {
this.currentTime = res.data.business_time;
this.originalTime = res.data.business_time;
this.parseTimeString(res.data.business_time);
}
}
});
},
@ -352,9 +357,9 @@ export default {
//
let newStatus = currentStatus == 1 ? 2 : 1;
//
if (newStatus === 1 && !this.hasBusinessTime) {
uni.showToast({ title: '请配置营业时间', icon: 'none' });
//
if (newStatus === 1 && !this.canOpenStore) {
uni.showToast({ title: '当前资料不完善,无法开启接单', icon: 'none' });
return;
}
@ -503,9 +508,21 @@ export default {
// 使 code
if (res.code === 200) {
const savedTime = this.currentTime;
this.showBottomActions = false
this.tempTime = ''
this.originalTime = this.currentTime //
this.originalTime = savedTime //
this.userInfo = {
...(this.userInfo || {}),
business_time: savedTime
}
if (this.authDetails) {
this.authDetails = {
...this.authDetails,
business_time: savedTime
}
}
this.parseTimeString(savedTime)
uni.showToast({
title: '营业时间更新成功',
@ -1051,4 +1068,4 @@ export default {
background: linear-gradient(135deg, #FF4767, #FF6B8A);
color: white;
}
</style>
</style>

View File

@ -162,13 +162,17 @@ export default {
if (!this.lastApplyTime) return false;
//
return true;
},
// /
isChangeUnderReview() {
return this.auditStatus === 1 || this.showAuditTip || this.buttonType === 'view';
}
},
async onLoad() {
this.sjInformation = await request.post('/sj/user/getUser');
await this.initPage();
//
if (this.currentSkills.length === 0 && !this.originalMajor) {
if (this.currentSkills.length === 0 && !this.originalMajor && !this.isChangeUnderReview) {
this.startChange();
}
},
@ -960,4 +964,4 @@ export default {
width: 33.333%;
}
} */
</style>
</style>

View File

@ -19,7 +19,7 @@
<image class="avatar" :src="sryDetail.head_photo" mode="aspectFill"></image>
<view class="user-detail">
<view class="flex-row-center-between">
<text class="user-name">{{ sryDetail.name }}</text>
<text class="user-name">{{ sryDisplayName }}</text>
<view class="enter-btn flex-row-center" @click="goDetail">进入详情</view>
</view>
<view class="tags">
@ -117,6 +117,9 @@ export default {
}
},
computed: {
sryDisplayName() {
return this.sryDetail.nick_name || this.sryDetail.name || "";
},
mergeServiceList() {
// 1.
let allSubArrays = Object.values(this.$store.state.sjServiceList);
@ -487,4 +490,4 @@ export default {
::v-deep .navbar-content .title {
margin-left: 20rpx !important;
}
</style>
</style>