lifanagju_citu 8 ヶ月 前
コミット
020b27a83c
2 ファイル変更567 行追加103 行削除
  1. 3 2
      pages/index/position.vue
  2. 564 101
      utils/testData.js

+ 3 - 2
pages/index/position.vue

@@ -24,7 +24,7 @@ import SwiperAd from '@/components/SwiperAd'
 // import SearchBar from '@/components/SearchBar'
 // import FilterList from '@/components/FilterList'
 import PositionList from '@/components/PositionList'
-import { swiperAdListTest } from '@/utils/testData'
+import { swiperAdListTest, positionList } from '@/utils/testData'
 import { dealDictObjData } from '@/utils/position'
 import { getJobAdvertisedSearch } from '@/api/position';
 import { ref, reactive } from 'vue'
@@ -50,6 +50,7 @@ const getData = async () => {
   query.content = searchContent
   const res = await getJobAdvertisedSearch(query)
   const list = res?.data?.list || []
+  // const list = positionList
   if (list?.length) {
     list.forEach(e => {
       e.job = { ...e.job, ...dealDictObjData({}, e.job) }
@@ -58,7 +59,7 @@ const getData = async () => {
     positionListData.value = positionListData.value.concat(list)
   }
   if (list?.length < query.pageSize) noMore.value = true
-  console.log('列表', positionListData.value)
+  // console.log('列表', positionListData.value)
 }
 getData()
 

+ 564 - 101
utils/testData.js

@@ -5,107 +5,570 @@ export const swiperAdListTest = [
 ]
 export const positionList = [
   {
+    job: {
+      id: "1824267285028823041", 
+      userId: "1", 
+      name: "民宿店长", 
+      positionId: "3", 
+      payFrom: 5000, 
+      payTo: 9000, 
+      payUnit: "2", 
+      areaId: "440100", 
+      expType: "4", 
+      eduType: "3", 
+      tagList: [
+        "全勤奖", 
+        "掌握基础英语"
+      ], 
+      hire: false, 
+      hirePrice: "0", 
+      status: "0", 
+      updateTime: 1725846376000
+    }, 
+    enterprise: {
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [
+        "全勤奖", 
+        "掌握基础英语"
+      ], 
+      updateTime: 1725846376000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
+  }, 
+  {
+    job: {
+      id: "1830920678891683841", 
+      userId: "1", 
+      name: "模板填充完成!", 
+      positionId: "1829099310155833346", 
+      payFrom: 1, 
+      payTo: 2, 
+      payUnit: "1", 
+      areaId: "140100", 
+      expType: "1", 
+      eduType: "0", 
+      tagList: [
+        "五险一金", 
+        "客诉处理", 
+        "酒店运营经理"
+      ], 
+      hire: false, 
+      hirePrice: "0", 
+      status: "0", 
+      updateTime: 1725846376000
+    }, 
+    enterprise: {
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [
+        "五险一金", 
+        "客诉处理", 
+        "酒店运营经理"
+      ], 
+      updateTime: 1725846376000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
+  }, 
+  {
+    job: {
+      id: "1820300358203404290", 
+      userId: "1", 
+      name: "酒店经理", 
+      positionId: "629", 
+      payFrom: 10000, 
+      payTo: 15000, 
+      payUnit: "2", 
+      areaId: "440100", 
+      expType: "5", 
+      eduType: "3", 
+      tagList: [
+        "掌握基础英语", 
+        "全勤奖", 
+        "就近分配", 
+        "连锁酒店", 
+        "普通话标准"
+      ], 
+      hire: false, 
+      hirePrice: "0", 
+      status: "0", 
+      updateTime: 1725846376000
+    }, 
+    enterprise: {
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [
+        "掌握基础英语", 
+        "全勤奖", 
+        "就近分配", 
+        "连锁酒店", 
+        "普通话标准"
+      ], 
+      updateTime: 1725846376000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
+  }, 
+  {
+    job: {
+      id: "1833100222272786434", 
+      userId: "1", 
+      name: "游戏项目策划", 
+      positionId: "1829099314526298114", 
+      payFrom: 6000, 
+      payTo: 9000, 
+      payUnit: "2", 
+      areaId: "440100", 
+      expType: "2", 
+      eduType: "4", 
+      tagList: [ ], 
+      hire: true, 
+      hirePrice: "10", 
+      status: "0", 
+      updateTime: 1725881638000
+    }, 
+    enterprise: {
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [ ], 
+      updateTime: 1725881638000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
+  }, 
+  {
+    job: {
+      id: "1833105821433745409", 
+      userId: "1", 
+      name: "航空英文客服", 
+      positionId: "1829099313330921473", 
+      payFrom: 8000, 
+      payTo: 12000, 
+      payUnit: "2", 
+      areaId: "440100", 
+      expType: "2", 
+      eduType: "3", 
+      tagList: [ ], 
+      hire: false, 
+      hirePrice: "0", 
+      status: "0", 
+      updateTime: 1725881459000
+    }, 
+    enterprise: {
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [ ], 
+      updateTime: 1725881459000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
+  }, 
+  {
+    job: {
+      id: "1833104902839226370", 
+      userId: "1", 
+      name: "康复理疗师", 
+      positionId: "1829099312580141058", 
+      payFrom: 4000, 
+      payTo: 9000, 
+      payUnit: "2", 
+      areaId: "440100", 
+      expType: "4", 
+      eduType: "1", 
+      tagList: [ ], 
+      hire: false, 
+      hirePrice: "0", 
+      status: "0", 
+      updateTime: 1725881240000
+    }, 
+    enterprise: {
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [ ], 
+      updateTime: 1725881240000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
+  }, 
+  {
+    job: {
+      id: "1833098558866345986", 
+      userId: "1", 
+      name: "视频剪辑师", 
+      positionId: "1829099321010692097", 
+      payFrom: 8000, 
+      payTo: 13000, 
+      payUnit: "2", 
+      areaId: "440100", 
+      expType: "3", 
+      eduType: "2", 
+      tagList: [
+        "五险一金"
+      ], 
+      hire: false, 
+      hirePrice: "0", 
+      status: "0", 
+      updateTime: 1725879728000
+    }, 
     enterprise: {
-      authStatus: "1", 
-      cityCode: "", 
-      contacts: "", 
-      createDate: null, 
-      deleted: 0, 
-      email: "", 
-      employeeSex: "男", 
-      enterpriseAddress: "", 
-      enterpriseEmployeeNickname: "苗世航", 
-      enterpriseEmployeePosition: "董事长", 
-      enterpriseId: "1812393946853281792", 
-      enterpriseIndustry: "", 
-      enterpriseName: "六六六公司", 
-      enterpriseStatus: "审核中", 
-      enterpriselndustryId: 0, 
-      headImg: "", 
-      introduce: "", 
-      phone: "15929954826", 
-      photos: [ ], 
-      provinceCode: "", 
-      regionCode: "", 
-      scale: 0, 
-      site: "", 
-      superAdmin: 0, 
-      tages: [ ], 
-      tradeCategory: 0, 
-      updateDate: null, 
-      userId: "502", 
-      scaleChinese: null, 
-      tradeCategoryChinese: null
-    }, 
-    enterpriseRecruit: {
-      addrress: "灞桥区十里铺南街1666号", 
-      eduName: "硕士", 
-      enterpriseId: "1812393946853281792", 
-      enterpriseRecruitDetail: "能熟练利用规划软件", 
-      enterpriseRecruitHitNum: 0, 
-      enterpriseRecruitId: "1812396722849189888", 
-      enterpriseRecruitJobName: "旅游策划师", 
-      enterpriseRecruitSalary: 400, 
-      enterpriseRecruitSendDate: "2024-07-14 16:00:26", 
-      enterpriseRecruitStatus: "招聘中", 
-      enterpriseRecruitType: 2, 
-      frequency: {
-        day: 5, 
-        dateType: "week"
-      }, 
-      hot: 1, 
-      jobCode: "280200", 
-      jobDept: "规划部", 
-      jobName: "旅游产品开发/策划", 
-      majorCode: "120901K", 
-      majorName: "旅游管理", 
-      responsibilityDetail: "进行景区规划与活动策划组织", 
-      sort: "1720944346", 
-      workCityCode: "610100", 
-      workCityName: "西安市", 
-      workProvinceCode: "610000", 
-      workProvinceName: "陕西省", 
-      enterpriseRecruitTypeChinese: null, 
-      hotChinese: null
-    }, 
-    enterpriseRecruitTags: [
-      {
-        createDate: "2024-07-14 16:00:26", 
-        enterpriseRecruitId: "1812396722849189888", 
-        enterpriseRecruitTagId: "1812396722866073601", 
-        title: "双休"
-      }, 
-      {
-        createDate: "2024-07-14 16:00:26", 
-        enterpriseRecruitId: "1812396722849189888", 
-        enterpriseRecruitTagId: "1812396722870267906", 
-        title: "氛围好"
-      }, 
-      {
-        createDate: "2024-07-14 16:00:26", 
-        enterpriseRecruitId: "1812396722849189888", 
-        enterpriseRecruitTagId: "1812396722882850817", 
-        title: "五险一金"
-      }, 
-      {
-        createDate: "2024-07-14 16:00:26", 
-        enterpriseRecruitId: "1812396722849189888", 
-        enterpriseRecruitTagId: "1812396722882850818", 
-        title: "生育补贴"
-      }, 
-      {
-        createDate: "2024-07-14 16:00:26", 
-        enterpriseRecruitId: "1812396722849189888", 
-        enterpriseRecruitTagId: "1812396722887045122", 
-        title: "住房补贴"
-      }, 
-      {
-        createDate: "2024-07-14 16:00:26", 
-        enterpriseRecruitId: "1812396722849189888", 
-        enterpriseRecruitTagId: "1812396722895433729", 
-        title: "弹性工作"
-      }
-    ], 
-    waitStudentCount: 0
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [
+        "五险一金"
+      ], 
+      updateTime: 1725879728000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
   }, 
+  {
+    job: {
+      id: "1826924363685978114", 
+      userId: "1813092520724946945", 
+      name: "1", 
+      positionId: "3", 
+      payFrom: 200, 
+      payTo: 600, 
+      payUnit: "2", 
+      areaId: "130400", 
+      expType: "4", 
+      eduType: "3", 
+      tagList: [
+        "五险一金", 
+        "全勤奖", 
+        "房补", 
+        "餐补"
+      ], 
+      hire: true, 
+      hirePrice: "10", 
+      status: "0", 
+      updateTime: 1724407685000
+    }, 
+    enterprise: {
+      id: "1813093228103229441", 
+      name: "广州喜茶茶有限公司", 
+      anotherName: "广州喜茶茶有限公司", 
+      industryId: "30", 
+      scale: "2", 
+      financingStatus: "0", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/4a0025c039036777218db30512553716f3c4aef3c7d6e031b40f7a2ecae7140b.jpg", 
+      welfareList: [
+        "五险一金", 
+        "交通补助", 
+        "节日礼物", 
+        "技能培训", 
+        "午餐补贴", 
+        "话补补贴", 
+        "带薪年假", 
+        "住房补贴", 
+        "岗位晋升", 
+        "住房优惠"
+      ], 
+      tagList: [
+        "五险一金", 
+        "全勤奖", 
+        "房补", 
+        "餐补"
+      ], 
+      updateTime: 1724407685000
+    }, 
+    contact: {
+      enterpriseId: "1813093228103229441", 
+      userId: "1813092520724946945", 
+      name: "广州喜茶茶有限公司-BOSS", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/4a0025c039036777218db30512553716f3c4aef3c7d6e031b40f7a2ecae7140b.jpg", 
+      status: "0", 
+      postNameCn: null, 
+      postNameEn: null, 
+      postCode: null
+    }
+  }, 
+  {
+    job: {
+      id: "1826204721174700034", 
+      userId: "1", 
+      name: "ios应用开发工程师", 
+      positionId: "20", 
+      payFrom: 7000, 
+      payTo: 10000, 
+      payUnit: "2", 
+      areaId: "440100", 
+      expType: "4", 
+      eduType: "3", 
+      tagList: [
+        "全勤奖", 
+        "五险一金"
+      ], 
+      hire: true, 
+      hirePrice: "30", 
+      status: "0", 
+      updateTime: 1724236109000
+    }, 
+    enterprise: {
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [
+        "全勤奖", 
+        "五险一金"
+      ], 
+      updateTime: 1724236109000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
+  }, 
+  {
+    job: {
+      id: "1826164166155575298", 
+      userId: "1", 
+      name: "10-1-2", 
+      positionId: "164", 
+      payFrom: 1, 
+      payTo: 2, 
+      payUnit: "1", 
+      areaId: "120100", 
+      expType: "1", 
+      eduType: "1", 
+      tagList: [ ], 
+      hire: true, 
+      hirePrice: "10", 
+      status: "0", 
+      updateTime: 1724226440000
+    }, 
+    enterprise: {
+      id: "1", 
+      name: "门墩儿信息科技有限公司", 
+      anotherName: "门墩儿科技", 
+      industryId: "1829087620475494402", 
+      scale: "0", 
+      financingStatus: "2", 
+      logoUrl: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/2e9798f673f29409ad9dda9af6a3c98aa228f55608d2f7d8209759eb70c9e763.png", 
+      welfareList: [
+        "住房优惠", 
+        "午餐补贴", 
+        "带薪年假", 
+        "技能培训", 
+        "节日礼物", 
+        "五险一金", 
+        "岗位晋升", 
+        "美女多", 
+        "帅哥多"
+      ], 
+      tagList: [ ], 
+      updateTime: 1724226440000
+    }, 
+    contact: {
+      enterpriseId: "1", 
+      userId: "1", 
+      name: "史迪奇", 
+      sex: "2", 
+      avatar: "http://menduner.citupro.com:6868/admin-api/infra/file/24/get/7d3f51ae5c8ae075b77ab9370a6b14cb0456723ef75a28d3df9e65b77f0ffd22.jpeg", 
+      status: "0", 
+      postNameCn: "总经理", 
+      postNameEn: "Boss", 
+      postCode: "Boss"
+    }
+  }
 ]