vear:添加返回按钮

This commit is contained in:
2026-07-15 20:27:19 +08:00
parent 7488ad30f2
commit c7be2d1dcb
3 changed files with 43 additions and 36 deletions

View File

@@ -1,14 +1,16 @@
<template> <template>
<view v-if="show" class="filter-container"> <view v-if="show" class="filter-container">
<!-- 头部 --> <!-- 头部 -->
<!-- <view class="filter-header"> <view class="filter-header">
<text class="back-btn" @click="handleClose"> <view class="back-btn" @click="handleClose">
<uni-icons type="left" size="24"></uni-icons> <uni-icons type="left" size="24" color="#333"></uni-icons>
</text> </view>
<text class="filter-title">喀什智慧就业平台</text> <text class="filter-title">筛选</text>
<view class="back-btn"></view> <view class="back-btn"></view>
</view> --> </view>
<!-- 标签页 + 内容区域 -->
<view class="filter-body">
<!-- 标签页 --> <!-- 标签页 -->
<view class="filter-tabs"> <view class="filter-tabs">
<view <view
@@ -119,6 +121,7 @@
<button class="footer-btn confirm-btn" @click="handleConfirm">确认</button> <button class="footer-btn confirm-btn" @click="handleConfirm">确认</button>
</view> </view>
</view> </view>
</view><!-- end filter-body -->
</view> </view>
@@ -230,10 +233,17 @@ const handleClose = () => {
background-color: #fff; background-color: #fff;
z-index: 9999; z-index: 9999;
display: flex; display: flex;
flex-direction: row; flex-direction: column;
box-sizing: border-box; box-sizing: border-box;
} }
.filter-body {
display: flex;
flex-direction: row;
flex: 1;
overflow: hidden;
}
.filter-header { .filter-header {
height: 144rpx; height: 144rpx;
display: flex; display: flex;
@@ -273,8 +283,7 @@ const handleClose = () => {
border-right: 1rpx solid #eee; border-right: 1rpx solid #eee;
background-color: #f9f9f9; background-color: #f9f9f9;
box-shadow: 3rpx 0 15rpx rgba(0, 0, 0, 0.05); box-shadow: 3rpx 0 15rpx rgba(0, 0, 0, 0.05);
height: 100vh; height: 100%;
padding-top: 84rpx;
box-sizing: border-box; box-sizing: border-box;
.tab-item { .tab-item {

50
package-lock.json generated
View File

@@ -1,11 +1,13 @@
{ {
"name": "ks-app-employment-service",
"lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"dependencies": { "dependencies": {
"@dcloudio/uni-ui": "^1.5.11", "@dcloudio/uni-ui": "^1.5.11",
"crypto-js": "^3.3.0",
"dayjs": "^1.11.19", "dayjs": "^1.11.19",
"mp-html": "^2.5.2",
"sm-crypto": "^0.3.13" "sm-crypto": "^0.3.13"
}, },
"devDependencies": { "devDependencies": {
@@ -13,40 +15,36 @@
} }
}, },
"node_modules/@dcloudio/uni-ui": { "node_modules/@dcloudio/uni-ui": {
"lockfileVersion": 1, "version": "1.5.12",
"dependencies": { "resolved": "https://registry.npmjs.org/@dcloudio/uni-ui/-/uni-ui-1.5.12.tgz",
"@dcloudio/uni-ui": { "integrity": "sha512-mGDl2OZSz7D8xcUAzJegWDHOqB4MEFBSW9Esb/oJiu2/3Gk9+P/Z4bA4JZ9jv9VWBYbMrYwaTfK1Z728kABdYg==",
"version": "1.5.11", "license": "Apache-2.0"
"resolved": "https://registry.npmmirror.com/@dcloudio/uni-ui/-/uni-ui-1.5.11.tgz",
"integrity": "sha512-DBtk046ofmeFd82zRI7d89SoEwrAxYzUN3WVPm1DIBkpLPG5F5QDNkHMnZGu2wNrMEmGBjBpUh3vqEY1L3jaMw=="
}, },
"node_modules/crypto-js": { "node_modules/crypto-js": {
"version": "4.2.0", "version": "4.2.0",
"resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.2.0.tgz", "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
"integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==", "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==",
"dev": true "dev": true,
"license": "MIT"
}, },
"node_modules/dayjs": { "node_modules/dayjs": {
"crypto-js": { "version": "1.11.21",
"version": "3.3.0", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.21.tgz",
"resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-3.3.0.tgz", "integrity": "sha512-98IT+HOahAisibz/yjKbzuOBwYcjJ7BCLPzARyHiyEBmRz4fatF+KPJszEHXsGYjUG234aH/cOjW1wwTbKUZlA==",
"integrity": "sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==" "license": "MIT"
}, },
"dayjs": { "node_modules/jsbn": {
"version": "1.11.19",
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.19.tgz",
"integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw=="
},
"jsbn": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmmirror.com/jsbn/-/jsbn-1.1.0.tgz", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
"integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
"license": "MIT"
}, },
"sm-crypto": { "node_modules/sm-crypto": {
"version": "0.3.13", "version": "0.3.14",
"resolved": "https://registry.npmmirror.com/sm-crypto/-/sm-crypto-0.3.13.tgz", "resolved": "https://registry.npmjs.org/sm-crypto/-/sm-crypto-0.3.14.tgz",
"integrity": "sha512-ztNF+pZq6viCPMA1A6KKu3bgpkmYti5avykRHbcFIdSipFdkVmfUw2CnpM2kBJyppIalqvczLNM3wR8OQ0pT5w==", "integrity": "sha512-sR7NuGAJH93Om8keAF2/rj1EqFzEiUey4aKGyDo3nQ2BiVqhgq8UkiIoIp5qhV9w4pG7qArhfqyewcG8AbhXbg==",
"requires": { "license": "MIT",
"dependencies": {
"jsbn": "^1.1.0" "jsbn": "^1.1.0"
} }
} }

View File

@@ -740,7 +740,7 @@ const rangeOptions = ref([
{ value: 1, text: '最热' }, { value: 1, text: '最热' },
{ value: 2, text: '最新发布' }, { value: 2, text: '最新发布' },
// { value: 3, text: '疆外' }, // { value: 3, text: '疆外' },
{ value: 4, text: '零工市场' } { value: 4, text: '零工岗位' }
]); ]);
const isLoaded = ref(false); const isLoaded = ref(false);
const isInitialized = ref(false); // 添加初始化标志 const isInitialized = ref(false); // 添加初始化标志