diff --git a/components/AppLayout/AppLayout.vue b/components/AppLayout/AppLayout.vue
index e9b405f..c439a44 100644
--- a/components/AppLayout/AppLayout.vue
+++ b/components/AppLayout/AppLayout.vue
@@ -6,6 +6,7 @@
>
diff --git a/pages/job/publishJob.vue b/pages/job/publishJob.vue
index 4afa4d6..ddae20d 100644
--- a/pages/job/publishJob.vue
+++ b/pages/job/publishJob.vue
@@ -2,11 +2,7 @@
@@ -216,10 +212,12 @@
+
+
+
@@ -282,7 +280,9 @@ const calculateScrollViewHeight = () => {
const windowHeight = systemInfo.windowHeight;
const headerHeight = 100; // 头部高度
const footerHeight = 120; // 底部按钮高度
- const scrollHeight = windowHeight - headerHeight - footerHeight;
+ const tabbarHeight = 88; // 自定义tabbar高度
+ const extraPadding = 50; // 额外间距,确保内容不被遮挡
+ const scrollHeight = windowHeight - headerHeight - footerHeight - tabbarHeight - extraPadding;
scrollViewHeight.value = `${scrollHeight}px`;
};
const userType = ref(Number(userStore.userInfo.isCompanyUser));
@@ -417,10 +417,6 @@ const handleCompanySelected = (company) => {
formData.companyId = company.id;
};
-// 返回上一页
-const goBack = () => {
- uni.navigateBack();
-};
// 发布岗位
const publishJob = async () => {
@@ -464,10 +460,10 @@ const publishJob = async () => {
icon: 'success'
});
- // 延迟返回
- setTimeout(() => {
- goBack();
- }, 1500);
+ uni.redirectTo({
+ url: '/pages/index/index'
+ });
+
} else {
uni.showToast({
title: response.msg || '发布失败',
@@ -565,18 +561,6 @@ const validateForm = () => {
background: #fff;
border-bottom: 1rpx solid #eee;
- .header-left {
- width: 60rpx;
- height: 60rpx;
- display: flex;
- align-items: center;
- justify-content: center;
-
- .back-icon {
- width: 40rpx;
- height: 40rpx;
- }
- }
.header-title {
font-size: 36rpx;
@@ -864,23 +848,22 @@ const validateForm = () => {
}
.bottom-safe-area {
- height: 120rpx;
+ height: 250rpx;
background: transparent;
}
.footer {
position: fixed;
- bottom: 0;
+ bottom: 140rpx;
left: 0;
right: 0;
background: #fff;
- padding: 20rpx 30rpx;
+ padding: 25rpx 30rpx;
border-top: 1rpx solid #eee;
z-index: 100;
.btn-group {
display: flex;
- gap: 20rpx;
.btn {
flex: 1;
@@ -890,11 +873,6 @@ const validateForm = () => {
font-weight: 500;
border: none;
- &.btn-cancel {
- background: #f5f5f5;
- color: #666;
- }
-
&.btn-publish {
background: #256BFA;
color: #fff;
diff --git a/pages/mine/company-info.vue b/pages/mine/company-info.vue
index 9a7aea4..8481036 100644
--- a/pages/mine/company-info.vue
+++ b/pages/mine/company-info.vue
@@ -1,15 +1,10 @@
-
-
-
-
+
编辑头像
-
+
@@ -19,7 +14,7 @@
企业名称
- {{ companyInfo.name || '科里(北京)科技有限公司(喀什分公司)' }}
+ {{ companyInfo.name || '暂无公司名称' }}
@@ -27,7 +22,7 @@
统一社会代码
- {{ companyInfo.socialCode || '6217171301012562295' }}
+ {{ companyInfo.socialCode || '暂无统一社会代码' }}
@@ -35,7 +30,7 @@
企业注册地点
- {{ companyInfo.location || '北京' }}
+ {{ companyInfo.location || '暂无注册地点' }}
@@ -43,7 +38,7 @@
企业信息介绍
- {{ companyInfo.description || '公司成立于2003年01月27日,位于北京市大兴区经济技术产业开发区天泰一路3号一号楼南四、五楼,目前处于开业状态,经营范围包括信息技术咨询服务;科技中介服务;人工智能等。' }}
+ {{ companyInfo.description || '暂无企业介绍' }}
@@ -51,7 +46,7 @@
企业法人姓名
- {{ companyInfo.legalPerson || '孙正云' }}
+ {{ companyInfo.legalPerson || '暂无法人信息' }}
@@ -59,7 +54,7 @@
企业联系人名称
- {{ companyInfo.contact1Name || '吴宣萱' }}
+ {{ companyInfo.contact1Name || '暂无联系人' }}
@@ -67,7 +62,7 @@
企业联系人电话
- {{ companyInfo.contact1Phone || '15547143804' }}
+ {{ companyInfo.contact1Phone || '暂无联系电话' }}
@@ -75,7 +70,7 @@
企业联系人名称
- {{ companyInfo.contact2Name || '李杰' }}
+ {{ companyInfo.contact2Name || '暂无联系人' }}
@@ -83,7 +78,7 @@
企业联系人电话
- {{ companyInfo.contact2Phone || '10700010700' }}
+ {{ companyInfo.contact2Phone || '暂无联系电话' }}
@@ -94,22 +89,24 @@
diff --git a/pages/msglog/unread.vue b/pages/msglog/unread.vue
index 9181049..b9b7088 100644
--- a/pages/msglog/unread.vue
+++ b/pages/msglog/unread.vue
@@ -1,6 +1,7 @@
+
{{ item.subTitle || '消息' }}
+
+
+
+
+ 暂无未读消息
+ 您没有未读的消息
+
@@ -132,4 +140,26 @@ defineExpose({ loadData });
font-size: 28rpx;
color: #6C7282;
margin-top: 4rpx;
+
+// 空状态样式
+.empty-state
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: 120rpx 40rpx;
+ .empty-icon
+ width: 200rpx;
+ height: 200rpx;
+ margin-bottom: 40rpx;
+ opacity: 0.6;
+ .empty-text
+ font-size: 32rpx;
+ color: #999999;
+ font-weight: 500;
+ margin-bottom: 16rpx;
+ .empty-desc
+ font-size: 28rpx;
+ color: #CCCCCC;
+ font-weight: 400;
diff --git a/static/imgs/avatar.jpg b/static/imgs/avatar.jpg
new file mode 100644
index 0000000..6637135
Binary files /dev/null and b/static/imgs/avatar.jpg differ
diff --git a/stores/useReadMsg.js b/stores/useReadMsg.js
index 5e78e60..256bdee 100644
--- a/stores/useReadMsg.js
+++ b/stores/useReadMsg.js
@@ -48,31 +48,22 @@ export const useReadMsg = defineStore('readMsg', () => {
const count = unreadCount.value
const index = 3
const countVal = count > 99 ? '99+' : String(count)
- if (count === 0) {
- uni.removeTabBarBadge({
- index
- }) // 替换为你消息页面的 TabBar index
- badges.value[index] = {
- count: 0
- }
- } else {
- badges.value[index] = {
- count: countVal
- }
- uni.setTabBarBadge({
- index,
- text: countVal
- })
+
+ // 更新徽章数据,不直接调用 uni.removeTabBarBadge 和 uni.setTabBarBadge
+ // 因为项目使用的是自定义 TabBar,这些方法只能在原生 TabBar 页面使用
+ badges.value[index] = {
+ count: count === 0 ? 0 : countVal
}
+
+ // 如果需要使用原生 TabBar 的徽章功能,需要确保在 TabBar 页面中调用
+ // 这里只更新数据,让自定义 TabBar 组件根据数据来显示徽章
}
// 拉取消息列表
async function fetchMessages() {
try {
- $api.createRequest('/app/notice/info', {
- isRead: 1
- }, "GET").then((res) => {
+ $api.createRequest('/app/notice/info', {}, "GET").then((res) => {
msgList.value = res.data || []
updateTabBarBadge()
})
diff --git a/stores/useUserStore.js b/stores/useUserStore.js
index baf025f..9e586a9 100644
--- a/stores/useUserStore.js
+++ b/stores/useUserStore.js
@@ -64,7 +64,7 @@ const useUserStore = defineStore("user", () => {
});
}
- const logOut = (redirect = true) => {
+ const logOut = (showLoginModal = true) => {
hasLogin.value = false;
token.value = ''
resume.value = {}
@@ -73,11 +73,10 @@ const useUserStore = defineStore("user", () => {
uni.removeStorageSync('userInfo')
uni.removeStorageSync('token')
- // 只有在明确需要跳转时才跳转到登录页
- if (redirect) {
- uni.redirectTo({
- url: '/pages/complete-info/complete-info',
- });
+ // 如果需要显示登录弹窗,则通过事件通知页面显示微信登录弹窗
+ if (showLoginModal) {
+ // 通过 uni.$emit 发送全局事件,通知页面显示登录弹窗
+ uni.$emit('showLoginModal');
}
}