审核状态等一系列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

@ -162,12 +162,11 @@
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"> v-if="userInfo.credentials_state === 0 || userInfo.id_type < 0 || qualificationAuditStatus == 3">
</image> </image>
<text style="margin-right: 16rpx;" <text style="margin-right: 16rpx;"
:style="{ color: userInfo.credentials_state === 0 ? '#ec5d57' : userInfo.credentials_state === 1 ? '#e59e45' : '#389930' }"> :style="{ color: qualificationStatusColor() }">
{{ userInfo.credentials_state === 0 ? '待完善' : userInfo.credentials_state === 1 ? '审核中' : {{ qualificationStatusText() }}
'已认证' }}
</text> </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>
@ -202,6 +201,9 @@ export default {
identity: '', identity: '',
currentUserId: '', // ID currentUserId: '', // ID
userInfo: {}, // userInfo: {}, //
authDetails: null,
qualificationAuditStatus: null,
isQualificationAuditLoaded: false,
sharing: false // sharing: false //
} }
}, },
@ -495,6 +497,12 @@ export default {
if (result.data && result.data.id) { if (result.data && result.data.id) {
this.userInfo = result.data this.userInfo = result.data
this.currentUserId = result.data.id this.currentUserId = result.data.id
this.fetchQualificationApplyDetails()
if (this.isSettled()) {
this.fetchAuthDetails()
} else {
this.authDetails = null
}
// //
uni.setStorageSync('userInfo', result.data) uni.setStorageSync('userInfo', result.data)
@ -547,6 +555,56 @@ export default {
} }
}, },
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() { loadIdentity() {
// //
const app = getApp() const app = getApp()
@ -630,47 +688,47 @@ export default {
}) })
}, },
navigateToQualification() { async navigateToQualification() {
const idType = this.userInfo.id_type; if (this.identity != '2' || this.isCertified()) {
const credentialsState = this.userInfo.credentials_state; uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
});
return;
}
if (idType < 0 && credentialsState === 0) { await this.ensureAuthDetails();
// + if (!this.isSettled()) {
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({ uni.navigateTo({
url: '/pages/ruzhu/ruzhu' url: '/pages/ruzhu/ruzhu'
}); });
} else if (idType > 0 && credentialsState === 0) { } else if (this.isUnderReview()) {
// +
uni.navigateTo({ uni.navigateTo({
url: '/pages/shop/qualification_sj_change' url: '/pages/ruzhu/ruzhu?type=1'
}); });
} else if (idType > 0 && credentialsState === 1) { } else {
// +
uni.navigateTo({ uni.navigateTo({
url: '/pages/shop/qualification_sj_change' url: '/pages/ruzhu/ruzhu?step=3'
});
} else if (idType > 0 && credentialsState === 2) {
// +
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
}); });
} }
}, },
navigateToBelongShop() { // navigateToBelongShop() { //
uni.navigateTo({ uni.navigateTo({
url: '/pages/artisan/belong_shop' 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';
} }
} }
} }

View File

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

View File

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

View File

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

View File

@ -917,7 +917,7 @@ export default {
line-height: 37rpx; line-height: 37rpx;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 19; -webkit-line-clamp: 10;
overflow: hidden; overflow: hidden;
white-space: pre-line; white-space: pre-line;

View File

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

View File

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

View File

@ -783,15 +783,53 @@ export default {
}, },
// //
fetchAuthDetails() { fetchAuthDetails() {
request.post("/sj/userSjAuth/details", { return request.post("/sj/userSjAuth/details", {
type: 1, type: 1,
id_type: '1' id_type: '1'
}).then(res => { }).then(res => {
if (res.code == 200 && res.data) { if (res.code == 200 && res.data) {
this.authDetails = 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() { async goLogin() {
// 访 // 访
if (this.isAccountDisabled) { if (this.isAccountDisabled) {
@ -843,6 +881,12 @@ export default {
// 2. // 2.
if (!this.isLogin) { if (!this.isLogin) {
if (item.path == "/pages/ruzhu/ruzhu") {
uni.navigateTo({
url: "/pages/blogPopup/blogPopup",
});
return;
}
uni.showToast({ uni.showToast({
title: `您暂未登录,无法使用${item.title || item.text || ''}`, title: `您暂未登录,无法使用${item.title || item.text || ''}`,
icon: "none", icon: "none",
@ -921,39 +965,7 @@ export default {
}); });
}, },
toruzhu() { toruzhu() {
const idType = this.userInfo.id_type; this.navigateToCertificationProcess();
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'
});
}
}, },
closeSetupModal() { closeSetupModal() {
this.showSetupModal = false; this.showSetupModal = false;
@ -972,21 +984,7 @@ export default {
}, },
goToAuth() { goToAuth() {
this.showSetupModal = false; this.showSetupModal = false;
if (this.isUnderReview) { this.navigateToCertificationProcess();
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'
});
}
}
}, },
goToInviteList() { goToInviteList() {
// 访 // 访
@ -1705,7 +1703,7 @@ button::after {
gap: 12rpx; gap: 12rpx;
margin-top: 10rpx; margin-top: 10rpx;
width: auto; width: auto;
height: 36rpx; height: 46rpx;
padding: 0 8rpx 0 8rpx; padding: 0 8rpx 0 8rpx;
background-image: url('https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/378a6936-a543-4ff5-9aa0-cfcb4d4e14b3.png'); background-image: url('https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/378a6936-a543-4ff5-9aa0-cfcb4d4e14b3.png');
background-size: 100% 100%; background-size: 100% 100%;

View File

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

View File

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

View File

@ -21,16 +21,16 @@
<view class="sort-item" @tap="toggleSort('time')"> <view class="sort-item" @tap="toggleSort('time')">
<text class="sort-text" :class="{ active: orderType === 1 || orderType === 2 }">发布时间</text> <text class="sort-text" :class="{ active: orderType === 1 || orderType === 2 }">发布时间</text>
<view class="arrows"> <view class="arrows">
<image class="arrow-icon" :src="orderType === 1 ? iconPinkUp : iconGreyUp"></image> <image class="arrow-icon" :src="orderType === 2 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 2 ? iconPinkDown : iconGreyDown"></image> <image class="arrow-icon" :src="orderType === 1 ? iconPinkDown : iconGreyDown"></image>
</view> </view>
</view> </view>
<view class="sort-item" @tap="toggleSort('view')"> <view class="sort-item" @tap="toggleSort('view')">
<text class="sort-text" :class="{ active: orderType === 3 || orderType === 4 }">浏览量</text> <text class="sort-text" :class="{ active: orderType === 3 || orderType === 4 }">浏览量</text>
<view class="arrows"> <view class="arrows">
<image class="arrow-icon" :src="orderType === 3 ? iconPinkUp : iconGreyUp"></image> <image class="arrow-icon" :src="orderType === 4 ? iconPinkUp : iconGreyUp"></image>
<image class="arrow-icon" :src="orderType === 4 ? iconPinkDown : iconGreyDown"></image> <image class="arrow-icon" :src="orderType === 3 ? iconPinkDown : iconGreyDown"></image>
</view> </view>
</view> </view>
</view> </view>
@ -150,9 +150,21 @@ export default {
// //
toggleSort(type) { toggleSort(type) {
if (type === 'time') { 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') { } 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;
}
} }
// //

View File

@ -308,6 +308,11 @@ export default {
}).then(res => { }).then(res => {
if (res.code == 200 && res.data) { if (res.code == 200 && res.data) {
this.authDetails = 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; let newStatus = currentStatus == 1 ? 2 : 1;
// //
if (newStatus === 1 && !this.hasBusinessTime) { if (newStatus === 1 && !this.canOpenStore) {
uni.showToast({ title: '请配置营业时间', icon: 'none' }); uni.showToast({ title: '当前资料不完善,无法开启接单', icon: 'none' });
return; return;
} }
@ -503,9 +508,21 @@ export default {
// 使 code // 使 code
if (res.code === 200) { if (res.code === 200) {
const savedTime = this.currentTime;
this.showBottomActions = false this.showBottomActions = false
this.tempTime = '' 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({ uni.showToast({
title: '营业时间更新成功', title: '营业时间更新成功',

View File

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

View File

@ -19,7 +19,7 @@
<image class="avatar" :src="sryDetail.head_photo" mode="aspectFill"></image> <image class="avatar" :src="sryDetail.head_photo" mode="aspectFill"></image>
<view class="user-detail"> <view class="user-detail">
<view class="flex-row-center-between"> <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 class="enter-btn flex-row-center" @click="goDetail">进入详情</view>
</view> </view>
<view class="tags"> <view class="tags">
@ -117,6 +117,9 @@ export default {
} }
}, },
computed: { computed: {
sryDisplayName() {
return this.sryDetail.nick_name || this.sryDetail.name || "";
},
mergeServiceList() { mergeServiceList() {
// 1. // 1.
let allSubArrays = Object.values(this.$store.state.sjServiceList); let allSubArrays = Object.values(this.$store.state.sjServiceList);