|
@@ -8,10 +8,10 @@
|
|
|
<text class="content-top-title-label-l">猎聘</text>
|
|
|
<text class="content-top-title-label-s">全球海量岗位 | 推荐有赏</text>
|
|
|
</view>
|
|
|
- <view class="content-top-title-local" @tap="handleMap">
|
|
|
+ <!-- <view class="content-top-title-local" @tap="handleMap">
|
|
|
<uni-icons type="icon-map" custom-prefix="iconfont" color="#999"/>
|
|
|
{{ useUserStore.isLogin ? localtion : null }}
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="content-top-carousel">
|
|
|
<view class="content-top-carousel-box">
|
|
@@ -110,7 +110,7 @@ import { ref, reactive } from 'vue'
|
|
|
import SwiperAd from '@/components/SwiperAd'
|
|
|
import { showAuthModal } from '@/hooks/useModal'
|
|
|
import { swiperAdListTest } from '@/utils/testData'
|
|
|
-import { userStore } from '@/store/user'
|
|
|
+// import { userStore } from '@/store/user'
|
|
|
import layoutPage from '@/layout'
|
|
|
import ResumeStatus from '@/components/ResumeStatus'
|
|
|
import { getJobAdvertisedHire } from '@/api/position.js'
|
|
@@ -119,14 +119,14 @@ import { dealDictArrayData } from '@/utils/position.js'
|
|
|
import PositionList from '@/components/PositionList'
|
|
|
|
|
|
const swiperAdList = ref(swiperAdListTest)
|
|
|
-const useUserStore = userStore()
|
|
|
-const localtion = ref('全国')
|
|
|
-const chooseItem = ref('同城')
|
|
|
-const chooseItems = reactive(['同城','最新'])
|
|
|
+// const useUserStore = userStore()
|
|
|
+// const localtion = ref('全国')
|
|
|
+// const chooseItem = ref('同城')
|
|
|
+// const chooseItems = reactive(['同城','最新'])
|
|
|
|
|
|
const items = reactive([])
|
|
|
-const unitDict = ref([])
|
|
|
-const areaDict = ref([])
|
|
|
+// const unitDict = ref([])
|
|
|
+// const areaDict = ref([])
|
|
|
|
|
|
const pageInfo = ref({
|
|
|
pageNo: 1,
|
|
@@ -136,21 +136,21 @@ const pageInfo = ref({
|
|
|
const total = ref(0)
|
|
|
|
|
|
// 选择地区
|
|
|
-const handleMap = () => {
|
|
|
- // 检测是否登录
|
|
|
- // 未登录
|
|
|
- if (!useUserStore.isLogin) {
|
|
|
- console.log(111)
|
|
|
- showAuthModal()
|
|
|
- return
|
|
|
- }
|
|
|
- // 已登录
|
|
|
+// const handleMap = () => {
|
|
|
+// // 检测是否登录
|
|
|
+// // 未登录
|
|
|
+// if (!useUserStore.isLogin) {
|
|
|
+// console.log(111)
|
|
|
+// showAuthModal()
|
|
|
+// return
|
|
|
+// }
|
|
|
+// // 已登录
|
|
|
|
|
|
-}
|
|
|
+// }
|
|
|
// 切换同城、最新
|
|
|
-const handleChoose = (item) => {
|
|
|
- chooseItem.value = item
|
|
|
-}
|
|
|
+// const handleChoose = (item) => {
|
|
|
+// chooseItem.value = item
|
|
|
+// }
|
|
|
|
|
|
const loadingMore = (e) => {
|
|
|
console.log(total.value, items.length)
|
|
@@ -161,17 +161,17 @@ const loadingMore = (e) => {
|
|
|
getList()
|
|
|
}
|
|
|
|
|
|
-async function getRatio () {}
|
|
|
+// async function getRatio () {}
|
|
|
|
|
|
-async function getDictionaries () {
|
|
|
+// async function getDictionaries () {
|
|
|
|
|
|
- const { data } = await getDict('menduner_pay_unit')
|
|
|
- unitDict.value = data.data
|
|
|
+// const { data } = await getDict('menduner_pay_unit')
|
|
|
+// unitDict.value = data.data
|
|
|
|
|
|
- const { data: _data } = await getDict('menduner_area_type')
|
|
|
- areaDict.value = _data.data
|
|
|
- getList()
|
|
|
-}
|
|
|
+// const { data: _data } = await getDict('menduner_area_type')
|
|
|
+// areaDict.value = _data.data
|
|
|
+// getList()
|
|
|
+// }
|
|
|
|
|
|
|
|
|
async function getList () {
|
|
@@ -195,11 +195,10 @@ async function getList () {
|
|
|
}
|
|
|
}
|
|
|
}))
|
|
|
- console.log(items)
|
|
|
total.value = +data.total
|
|
|
}
|
|
|
|
|
|
-getDictionaries()
|
|
|
+getList()
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|