index.vue 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962
  1. <template>
  2. <view style="background-color: #f2f2f7;">
  3. <!-- <template v-if="XCXIsSelect != '是'">
  4. <view class="banner flex justify-center">
  5. <view class="banner-box">
  6. <swiper :indicator-dots="false" style="width: 100%;height: 100%;" :autoplay="true" :interval="300"
  7. :duration="1000">
  8. <swiper-item v-for="(item, index) in bannerList" :key="index" @click="goNave(item.url)">
  9. <view class="swiper-item" style="width: 100%;height: 100%;">
  10. <image :src="item.imageUrl" style="width: 100%;height: 100%;border-radius: 24rpx;"
  11. mode="scaleToFill"></image>
  12. </view>
  13. </swiper-item>
  14. </swiper>
  15. </view>
  16. </view>
  17. <view class="" style="width: 100%;margin-top: 20rpx;" v-for="(item, index) in dataList" :key="index">
  18. <view class=""
  19. style="padding: 20rpx 20rpx;width: 686rpx;background-color: #ffffff;border-radius: 18rpx;margin: auto;">
  20. <view class="">
  21. <text>{{ item.company ? item.company.companyName : '' }}</text>信息简介
  22. </view>
  23. <view class="flex flex-wrap" style="margin-top: 20rpx;">
  24. <text
  25. style="color: #666666;font-size: 26rpx;padding: 10rpx 25rpx 10rpx 25rpx;background-color: #F6F6F6;border-radius: 8rpx;margin-right: 20rpx;margin-bottom: 20rpx;"
  26. v-for="(ite, ind) in item.positionWelfare" :key="ind">{{ ite }}</text>
  27. </view>
  28. <view class="" style="margin-top: 20rpx;">
  29. <text>{{ item.company ? item.company.companyName : '' }}提供数据支持</text>
  30. </view>
  31. </view>
  32. </view>
  33. </template> -->
  34. <template v-if="isShowDefaultPage">
  35. <!---------------------------------------- 陈列页 -------------------------------------------------------->
  36. <view class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  37. <image class="top-bg" src="/static/images/index/index-bg.svg" mode="aspectFill" />
  38. <scroll-view
  39. scroll-y="true"
  40. class="default-scroll-view"
  41. :style="{ height: `calc(100vh - 12px - ${statusBarHeight}px)` }"
  42. refresher-enabled="true"
  43. :refresher-threshold="80"
  44. refresher-background=""
  45. refresher-default-style="white"
  46. :refresher-triggered="isRefreshing"
  47. @refresherrefresh="handlePullDownRefresh"
  48. @refresherpulling="onPullingDown"
  49. @scrolltolower="loadMore"
  50. scroll-with-animation="true"
  51. >
  52. <view class="recommend-section">
  53. <view class="recommend-title flex align-center justify-between">
  54. <view class="recommend-title-l">热门企业</view>
  55. <view class="recommend-title-r" @click="refreshRecommendCompany">
  56. <text>换一批推荐</text>
  57. <image src="/static/images/svg/refresh-arrow.svg" class="refresh-icon"></image>
  58. </view>
  59. </view>
  60. <view class="recommend-company-wrapper">
  61. <view
  62. class="recommend-company-item flex"
  63. v-for="company in recommendHostCompanys"
  64. :key="company.companyId"
  65. @click="toCompanyPage(company.companyId)"
  66. >
  67. <image :src="company.companyLogo ? company.companyLogo : '/static/images/logo.jpg'" class="company-img"></image>
  68. <view class="recommend-company-info-wrapper">
  69. <view class="recommend-company-name">{{ company.companyName }}</view>
  70. <view class="tip">{{ company.companyPeople }} · {{ company.isCrossCompany ? '跨境电商' : '' }} {{ company.workTime }}</view>
  71. <view class="tip">{{ company.welfare }}</view>
  72. <view class="positions flex align-center">
  73. <image src="/static/images/svg/tie.svg" class="position-icon"></image>
  74. <view class="position-text">
  75. {{ company.postPushRuleNames }}
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="position-title">
  83. <text>精选职位</text>
  84. </view>
  85. <view class="position-list">
  86. <view class="gwList-box">
  87. <view class="gwList-box-item flex justify-center" @click="gotoInfo(item.postPushId)"
  88. v-for="item in recommendPositions" :key="item.postPushId">
  89. <view class="gwList-box-item-box">
  90. <!-- 标题-薪资 -->
  91. <view class="gwList-box-item-box-title flex justify-between align-center">
  92. <view class="title-left flex align-center">
  93. <view class="job-title-text"
  94. style="max-width: 450rpx;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow:ellipsis;">
  95. <template>
  96. {{ item.ruleClassifyName }}
  97. </template>
  98. </view>
  99. <view v-if="item.isDue == 1" class="salary-text-box">
  100. <image src="../../static/images/index/jipinIcom.svg"
  101. class="jipin-icon" />
  102. <text class="jipin-text">急聘</text>
  103. </view>
  104. </view>
  105. <view>
  106. <text class="clip-color">{{ item.salaryRange }}</text>
  107. <text class="clip-color"> · </text>
  108. <text class="clip-color">{{ item.salaryTimes }}</text>
  109. </view>
  110. </view>
  111. <!-- 公司名称-公司人数 -->
  112. <view class="flex align-center justify-between">
  113. <view class="gwList-box-item-box-name flex align-center">
  114. <text class="company-name company-name-overflow">{{ item.companyName }}</text>
  115. <text class="company-people">{{ item.companyPeople ?
  116. item.companyPeople : '0人' }}</text>
  117. </view>
  118. <view class="experience">
  119. <text>{{ item.experience }}</text>
  120. <text>{{ item.education }}</text>
  121. </view>
  122. </view>
  123. <!-- 福利标签 -->
  124. <view class="benefits" v-if="item.welfareTag">{{ item.welfareTag }}</view>
  125. <!-- 职位标签 -->
  126. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  127. <text class="job-tag" v-for="(tag, i) in item.positionTag || []"
  128. :key="i">{{ tag }}</text>
  129. </view>
  130. <!-- 公司简介-位置 -->
  131. <view class="gwList-box-item-box-info flex justify-between align-center">
  132. <view class="gwList-box-item-box-info-l flex align-center">
  133. <view class="user-image">
  134. <image
  135. :src="item.hr && item.hr.hrImg ? item.hr.hrImg : '../../static/images/logo.jpg'" class="hr-avatar">
  136. </image>
  137. <view class="online-status"
  138. :style="{ 'background-color': item.user && item.user.onlineStatus == 'ONLINE' ? '#00DD9A' : '#999' }">
  139. </view>
  140. </view>
  141. <view class="company-info-text">
  142. {{ item.user && item.user.userName || '未知' }}·{{ item.hr &&
  143. item.hr.hrPosition || '未知' }}
  144. </view>
  145. <view v-if="item.respondTime" class="reply-time">{{ item.respondTime }}
  146. </view>
  147. </view>
  148. <view class="location-text">
  149. {{ item.distance }} {{ item.county }}
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. <nomore v-if="!loadingRecommendPosition"></nomore>
  155. </view>
  156. </view>
  157. </scroll-view>
  158. </view>
  159. </template>
  160. <template v-else>
  161. <!---------------------------------------- 求职端 -------------------------------------------------------->
  162. <view v-if="userType == 1" class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  163. <view class="topbg-sticky">
  164. <image class="top-bg" src="/static/images/index/index-bg.svg" mode="aspectFill" />
  165. <!-- 标题-搜索 -->
  166. <view class="topbg-sticky-box">
  167. <view class="topbg-sticky-title flex justify-between align-center">
  168. <view class="topbg-sticky-title-left flex align-center">
  169. <image src="../../static/images/index/xingIcon.svg" class="xing-icon" />
  170. <view>亿职赞,愿你在追梦路上找到心仪工作</view>
  171. </view>
  172. <view class="topbg-sticky-title-right flex align-center"
  173. @click="goNavs('/package/search/search')">
  174. <u-icon name="search" color="#ffffff" size="32"></u-icon>
  175. </view>
  176. </view>
  177. </view>
  178. <!-- tabs和筛选 -->
  179. <view class="topbg-type flex justify-center">
  180. <view class="topbg-type-box">
  181. <!-- 第一行:tabs -->
  182. <view class="topbg-type-box-row flex justify-between align-center">
  183. <view class="topbg-type-box-l flex align-center">
  184. <view class="topbg-type-box-l-i" :class="current == index ? 'i-active' : ''"
  185. @tap="current = index" v-for="(item, index) in typeList" :key="index">
  186. {{ item.label }}
  187. </view>
  188. </view>
  189. <!-- 添加求职意向 -->
  190. <view class="topbg-yx-box-r flex align-center" @click="addDirection">
  191. <image src="../../static/images/index/Attachment.svg" class="attachment-icon" />
  192. </view>
  193. </view>
  194. <view class="topbg-search flex justify-between align-center">
  195. <view class="topbg-search-l flex align-center">
  196. <view class="topbg-search-item topbg-search-item__active flex align-center" @click="openTagPopup">
  197. <text class="topbg-search-item__text">{{ selectTagText ? selectTagText : '跨境标签' }}</text>
  198. <u-icon name="arrow-down"></u-icon>
  199. </view>
  200. <view
  201. class="topbg-search-item mr-4"
  202. :class="{ 'topbg-search-item__active': currentSx == 1 }"
  203. @click="handleChangeSx"
  204. >最新</view>
  205. </view>
  206. <view class="topbg-search-r flex align-center">
  207. <view class="topbg-search-item topbg-search-item__active flex align-center" @click="getLocalJobs('go')">
  208. <text class="topbg-search-item__text">{{ county ? county : city ? city : '选择地区'
  209. }}</text>
  210. <u-icon name="arrow-down"></u-icon>
  211. </view>
  212. <view
  213. class="topbg-search-item mr-4"
  214. :class="{ 'topbg-search-item__active': filledFieldsCount }"
  215. @click="goNavs('/package/screen/screen')"
  216. >
  217. 筛选{{ filledFieldsCount }}
  218. <u-icon name="arrow-down" :color="filledFieldsCount ? '#016bf6' : '#999999'"></u-icon>
  219. </view>
  220. </view>
  221. </view>
  222. </view>
  223. </view>
  224. </view>
  225. <!-- 岗位推荐 -->
  226. <template v-if="current != typeList.length - 1">
  227. <view class="gwList flex justify-center" v-if="dataList.length > 0">
  228. <view class="gwList-box">
  229. <scroll-view scroll-y="true" style="width: 100%;height: 100%;" refresher-enabled="true"
  230. :refresher-threshold="80" refresher-background="#F2F2F7" refresher-default-style="white"
  231. :refresher-triggered="isRefreshing" @refresherrefresh="handlePullDownRefresh"
  232. @refresherpulling="onPullingDown" @scrolltolower="loadMore"
  233. scroll-with-animation="true">
  234. <view class="gwList-box-item flex justify-center" @click="gotoInfo(item.postPushId)"
  235. v-for="(item, index) in dataList" :key="index">
  236. <view class="gwList-box-item-box">
  237. <!-- 标题-薪资 -->
  238. <view class="gwList-box-item-box-title flex justify-between align-center">
  239. <view class="title-left flex align-center">
  240. <view class="job-title-text"
  241. style="max-width: 450rpx;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow:ellipsis;">
  242. <template>
  243. {{ item.ruleClassifyName }}
  244. </template>
  245. </view>
  246. <view v-if="item.isDue == 1" class="salary-text-box">
  247. <image src="../../static/images/index/jipinIcom.svg"
  248. class="jipin-icon" />
  249. <text class="jipin-text">急聘</text>
  250. </view>
  251. </view>
  252. <view>
  253. <text class="clip-color">{{ item.salaryRange }}</text>
  254. <text class="clip-color"> · </text>
  255. <text class="clip-color">{{ item.salaryTimes }}</text>
  256. </view>
  257. </view>
  258. <!-- 公司名称-公司人数 -->
  259. <view class="flex align-center justify-between">
  260. <view class="gwList-box-item-box-name flex align-center">
  261. <text class="company-name company-name-overflow">{{ item.company ?
  262. item.company.companyName : '' }}</text>
  263. <text class="company-people" v-if="item.company">{{ item.company ?
  264. item.company.companyPeople : '0人' }}</text>
  265. </view>
  266. <view class="experience">
  267. <text>{{ item.experience }}</text>
  268. <text>{{ item.education }}</text>
  269. </view>
  270. </view>
  271. <!-- 福利标签 -->
  272. <view class="benefits" v-if="item.welfareTag">{{ item.welfareTag }}</view>
  273. <!-- 职位标签 -->
  274. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  275. <text class="job-tag" v-for="(ite, ind) in item.positionTag || []"
  276. :key="ind">{{ ite }}</text>
  277. </view>
  278. <!-- 公司简介-位置 -->
  279. <view class="gwList-box-item-box-info flex justify-between align-center">
  280. <view class="gwList-box-item-box-info-l flex align-center">
  281. <view class="user-image">
  282. <image
  283. :src="item.hr && item.hr.hrImg ? item.hr.hrImg : '../../static/images/logo.jpg'" class="hr-avatar">
  284. </image>
  285. <view class="online-status"
  286. :style="{ 'background-color': item.user && item.user.onlineStatus == 'ONLINE' ? '#00DD9A' : '#999' }">
  287. </view>
  288. </view>
  289. <view class="company-info-text">
  290. {{ item.user && item.user.userName || '未知' }}·{{ item.hr &&
  291. item.hr.hrPosition || '未知' }}
  292. </view>
  293. <view v-if="item.respondTime" class="reply-time">{{ item.respondTime }}
  294. </view>
  295. </view>
  296. <view class="location-text">
  297. {{ item.distance }} {{ item.county }}
  298. </view>
  299. </view>
  300. </view>
  301. </view>
  302. <nomore v-if="dataList.length > 0 && page >= totlo"></nomore>
  303. </scroll-view>
  304. </view>
  305. </view>
  306. <!-- 暂无数据 -->
  307. <view class="gwList" v-else>
  308. <empty />
  309. </view>
  310. </template>
  311. <view class="companyListBox" v-if="current == typeList.length - 1 && companList.length > 0">
  312. <companyListIndex @goInfo="goInfo" :item="item" v-for="(item, index) in companList" :key="index" />
  313. </view>
  314. <view class="gwList" v-if="current == typeList.length - 1 && companList.length == 0">
  315. <empty />
  316. </view>
  317. </view>
  318. <!---------------------------------------- 招聘端 -------------------------------------------------------->
  319. <view v-else class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  320. <image class="top-bg" src="/static/images/index/index-bg.svg" mode="aspectFill" />
  321. <view class="topbg-sticky">
  322. <!-- 标题-搜索 -->
  323. <view class="topbg-sticky-box">
  324. <view class="topbg-sticky-title flex justify-between align-center">
  325. <view class="topbg-sticky-title-left flex align-center">
  326. <image src="../../static/images/index/xingIcon.svg" class="xing-icon" />
  327. <view>亿职赞,愿你在逐梦路上找到心仪伙伴</view>
  328. </view>
  329. </view>
  330. </view>
  331. </view>
  332. <!-- tabs和筛选 -->
  333. <view class="topbg-type flex justify-center">
  334. <view class="topbg-type-box">
  335. <!-- 岗位 -->
  336. <view class="topbg-type-box-row flex justify-between align-center">
  337. <view class="topbg-type-box-l flex align-center">
  338. <view class="topbg-type-box-l-i" :class="currentJobSx == index ? 'i-active' : ''"
  339. @tap="selectJob(item, index)" v-for="(item, index) in jobSxTypeList" :key="index">
  340. {{ item.name }}
  341. </view>
  342. </view>
  343. <!-- 添加岗位招聘 -->
  344. <view class="topbg-yx-box-r flex align-center" @click="goNavss('/pages/my/jobPosting?companyId=' + companyId + '&status=' + companyStatus + '&companyName=' + companyName)">
  345. <image src="../../static/images/index/Attachment.svg" class="attachment-icon" />
  346. </view>
  347. </view>
  348. <view class="topbg-search flex justify-between align-center">
  349. <view class="topbg-search-l flex align-center">
  350. <view class="topbg-search-item topbg-search-item__active flex align-center" @click="openTagPopup">
  351. <text class="topbg-search-item__text">{{ selectTagText ? selectTagText : '跨境标签' }}</text>
  352. <u-icon name="arrow-down"></u-icon>
  353. </view>
  354. <view
  355. class="topbg-search-item mr-4"
  356. :class="{ 'topbg-search-item__active': currentJobSxs == 1 }"
  357. @click="handleChangeSx"
  358. >最新</view>
  359. </view>
  360. <view class="topbg-search-r flex align-center">
  361. <view class="topbg-search-item topbg-search-item__active flex align-center" @click="getLocalJobs('go', true)">
  362. <text class="topbg-search-item__text">{{ county ? county : city ? city : '选择地区'
  363. }}</text>
  364. <u-icon name="arrow-down"></u-icon>
  365. </view>
  366. <view
  367. class="topbg-search-item mr-4"
  368. :class="{ 'topbg-search-item__active': filledFieldsCount }"
  369. @click="goNavs('/package/screen/screen?type=2')"
  370. >
  371. 筛选{{ filledFieldsCount }}
  372. <u-icon name="arrow-down" :color="filledFieldsCount ? '#016bf6' : '#999999'"></u-icon>
  373. </view>
  374. </view>
  375. </view>
  376. </view>
  377. </view>
  378. <!-- 简历列表 -->
  379. <view class="qyList flex justify-center">
  380. <view class="qyList-box" v-if="datasList.length > 0">
  381. <scroll-view scroll-y="true" style="width: 100%;height: 100%;" refresher-enabled="true"
  382. :refresher-threshold="80" refresher-background="#F2F2F7" refresher-default-style="white"
  383. :refresher-triggered="isRefreshing" @refresherrefresh="handlePullDownRefresh"
  384. @refresherpulling="onPullingDown" @scrolltolower="loadMore" scroll-with-animation="true">
  385. <view
  386. class="qyList-box-item flex"
  387. v-for="(item, index) in datasList"
  388. :key="index"
  389. @click="goNav('/pages/talentSearch/resumeDetail?resumesId=' + item.resumesId + '&postPushId=' + (jobSxTypeList.length > 0 ? jobSxTypeList[currentJobSx].id : ''), 'company')"
  390. >
  391. <view class="qyList-box-item-box">
  392. <view class="qyList-box-item-info flex align-center">
  393. <view class="qyList-box-item-info-r">
  394. <image :src="item.userAvatar ? item.userAvatar : '../../static/images/logo.jpg'" class="avatar" mode="aspectFill"></image>
  395. <image src="@/static/images/svg/male.svg" v-if="item.userSex == 1" class="sex-icon"></image>
  396. <image src="@/static/images/svg/female.svg" v-else-if="item.userSex == 2" class="sex-icon"></image>
  397. </view>
  398. <view class="qyList-box-item-info-l">
  399. <view class="flex align-center justify-between">
  400. <view class="flex align-center">
  401. <view class="user-name">{{ item.userName }}</view>
  402. <view class="status-tag online-minutes" v-if="item.onlineMinutes">{{ item.onlineMinutes }}</view>
  403. <view class="status-tag online-status" v-if="item.browseTag">{{ item.browseTag }}</view>
  404. </view>
  405. <text class="clip-color" v-if="item.salaryRange">{{ item.salaryRange }}</text>
  406. </view>
  407. <view class="base-info flex align-center">
  408. <text v-for="(baseItem, i) in item.baseInfoArr" :key="i">{{ baseItem }}</text>
  409. </view>
  410. </view>
  411. </view>
  412. <view class="flex align-center justify-between company-info">
  413. <view class="flex align-center">
  414. <image src="@/static/images/svg/bag.svg" class="icon"></image>
  415. <view class="company-text">{{ item.companyName }} · {{ item.lastWorkPosition }}</view>
  416. <view class="company-tag" v-if="item.isCrossCompany">跨境</view>
  417. </view>
  418. <view class="time">{{ item.lastWorkTime }}</view>
  419. </view>
  420. <view class="tags">
  421. <view class="tag" v-for="(skill, i) in parseSkills(item.intentIndustry)" :key="i">{{ skill }}</view>
  422. </view>
  423. <view class="bottom-section flex align-center">
  424. <image src="@/static/images/svg/heart.svg" class="expection-icon"></image>
  425. 求职期望:{{ item.expectedPosition }}
  426. </view>
  427. </view>
  428. </view>
  429. <nomore v-if="datasList.length > 0 && page >= totlo"></nomore>
  430. </scroll-view>
  431. </view>
  432. <view class="qyList-box" v-else>
  433. <empty :isShow="false" v-if="datasList.length == 0" style="margin-top: 240rpx" />
  434. </view>
  435. </view>
  436. </view>
  437. </template>
  438. <!-- 跨境标签popup -->
  439. <u-popup v-model="showTagPopup" mode="top" border-radius="14">
  440. <view class="tag-popup-container" :style="{ paddingTop: (18 + statusBarHeight) + 'px' }">
  441. <view class="tag-popup-title">我的跨境标签</view>
  442. <view class="tag-popup-tip">根据您的跨境标签,为您推荐{{ isJobHunting ? '更匹配的职位' : '更匹配的牛人' }}</view>
  443. <view class="tag-popup-section" v-for="(tag, index) in tags" :key="index">
  444. <view class="tag-popup-sub-title">{{ tag.postSkillName }}</view>
  445. <view class="tag-wrapper">
  446. <view
  447. class="tag"
  448. :class="{ 'tag-select-active': judgeSelectTags(item) }"
  449. v-for="item in tag.childrenList" :key="item.postSkillId"
  450. @click="handleSelectTag(item)"
  451. >{{ item.postSkillName }}</view>
  452. </view>
  453. </view>
  454. <view class="tag-popup-buttons">
  455. <view class="tag-popup-button" @click="handleResetTags">重置</view>
  456. <view class="tag-popup-button main-button" @click="handleSearch">搜索</view>
  457. </view>
  458. </view>
  459. </u-popup>
  460. <view v-if="goback == true" class="goback" @click="gotoBack">
  461. <image style="width: 88rpx;height: 88rpx;border-radius: 50%;" src="../../static/images/up.jpg" mode="">
  462. </image>
  463. </view>
  464. <u-popup mode="top" ref="permission">
  465. <view class="popup-content">
  466. <view class="popup-text-permission">获取位置需要定位权限,用于推荐同城的求职岗位或牛人</view>
  467. </view>
  468. </u-popup>
  469. </view>
  470. </template>
  471. <script>
  472. import empty from '../../components/empty.vue'
  473. import nomore from '../../components/nomore.vue'
  474. import permision from '@/js_sdk/wa-permission/permission.js'
  475. import companyListIndex from '@/components/companyListIndex/companyListIndex.vue'
  476. import { formatNumberToK } from '@/utils/util.js'
  477. import { debounce } from '@/utils/util'
  478. export default {
  479. components: {
  480. empty,
  481. companyListIndex,
  482. nomore
  483. },
  484. data() {
  485. return {
  486. statusBarHeight: 0, // 状态栏高度
  487. enable: true, //开启吸顶
  488. goback: false,
  489. county: '', //区
  490. city: '',
  491. companyName: "",
  492. companyId: "",
  493. datasList: [],
  494. isfixeds: false,
  495. userType: 1,
  496. dataList: [],
  497. current: 0,
  498. typeList: [],
  499. isRefreshing: false,
  500. currentSx: 0,
  501. sxTypeList: [{
  502. id: 1,
  503. name: '推荐',
  504. },
  505. {
  506. id: 2,
  507. name: '最新',
  508. }
  509. ],
  510. currentjob: 0,
  511. jobTypeList: [{
  512. projectName: '',
  513. name: '全部',
  514. },],
  515. currentJobSx: 0,
  516. jobSxTypeList: [{
  517. projectName: '',
  518. name: '全部',
  519. }],
  520. currentJobSxs: 0,
  521. // jobSxsTypeList: [{
  522. // id: 1,
  523. // name: '跨境标签',
  524. // },
  525. // {
  526. // id: 2,
  527. // name: '最新',
  528. // },
  529. // //{
  530. // // id: 2,
  531. // // name: '优选',
  532. // // }
  533. // ],
  534. token: '',
  535. page: 1,
  536. limit: 10,
  537. latitude: '',
  538. longitude: '',
  539. totlo: 0,
  540. education: '', //学历
  541. experience: '', //经验
  542. industry: '', //行业
  543. salaryRange: '', //薪资
  544. companyPeople: '', //公司规模
  545. preference: [],
  546. domeWidth: 0,
  547. showModal: true,
  548. arr: [],
  549. companyStatus: '',
  550. XCXIsSelect: '是',
  551. // bannerList: [], //企业端轮播图
  552. bannerListuser: [], //用户端轮播图
  553. gongao: [], //公告
  554. tuiguang: '', //分享标题
  555. bgImg: '', //分享图片
  556. companList: [], //公司列表
  557. directionList: [ //方向列表
  558. {
  559. id: '不限',
  560. name: '不限',
  561. ruleClassifyId:0
  562. }
  563. ],
  564. // 招聘端标签
  565. positionTag:[
  566. {
  567. id: '不限',
  568. name: '不限',
  569. }
  570. ],
  571. positionTagArr:[],
  572. preferenceChange:false,
  573. showTagPopup: false, // 跨境标签弹窗
  574. tags: [], // 跨境tags
  575. tempSelectTags: [], // 临时选择的跨境标签
  576. selectTags: [], // 选择的跨境标签
  577. expecteJobCount: -1, // 求职岗位数量
  578. findJobCount: -1, // 招聘岗位数量
  579. recommendHostCompanys: [], // 推荐热门公司
  580. loadingRecommendHostCompany: false,
  581. RCPage: 1,
  582. recommendPositions: [], // 精选职位
  583. loadingRecommendPosition: false,
  584. RPPage: 1,
  585. currentPostionCity: '', // 当前岗位城市(招聘端限制城市使用)
  586. };
  587. },
  588. onShareAppMessage(res) {
  589. return {
  590. path: '/pages/index/index?invitation=' + uni.getStorageSync(
  591. 'invitationCode'), //这是为了传参 onload(data){let id=data.id;}
  592. title: this.tuiguang,
  593. imageUrl: this.bgImg
  594. }
  595. },
  596. onShareTimeline(res) {
  597. return {
  598. path: '/pages/index/index?invitation=' + uni.getStorageSync(
  599. 'invitationCode'), //这是为了传参
  600. title: this.tuiguang,
  601. imageUrl: this.bgImg
  602. }
  603. },
  604. computed: {
  605. filledFieldsCount() {
  606. const fields = [this.education, this.experience, this.industry, this.salaryRange, this.companyPeople];
  607. const count = fields.filter(item => item).length;
  608. return count > 0 ? '·' + count : '';
  609. },
  610. // 选择的跨境标签文案
  611. selectTagText() {
  612. if (this.selectTags.length) {
  613. return this.selectTags.map(item => item.postSkillName).join('/')
  614. }
  615. return ''
  616. },
  617. // 判断是否是求职端
  618. isJobHunting() {
  619. return this.userType == 1
  620. },
  621. // 判断是否显示陈列页
  622. isShowDefaultPage() {
  623. // 1.求职端时没有期望岗位
  624. // 2.招聘端时没有招聘岗位
  625. if (
  626. (this.isJobHunting && this.expecteJobCount > 0) ||
  627. (!this.isJobHunting && this.findJobCount > 0)
  628. ) {
  629. return false
  630. }
  631. return true
  632. },
  633. isLoading() {
  634. if (
  635. (this.isJobHunting && this.expecteJobCount > -1) ||
  636. (!this.isJobHunting && this.findJobCount > -1)
  637. ) {
  638. return false
  639. }
  640. return true
  641. }
  642. },
  643. watch: {
  644. current(newData, oldData) {
  645. uni.showLoading({
  646. title: '加载中'
  647. })
  648. this.page = 1
  649. if (this.current == this.typeList.length - 1) { //公司
  650. this.getComanyList()
  651. } else {
  652. this.directionList=[ //方向列表
  653. {
  654. id: '不限',
  655. name: '不限',
  656. ruleClassifyId:0
  657. }
  658. ]
  659. this.preferenceChange=false
  660. this.preference=[]
  661. this.industry=''
  662. this.getPostType()
  663. }
  664. // 情况选择条件
  665. this.selectTags = []
  666. // 求职岗位变更,自动请求对于的跨境标签数据
  667. this.getTagsData()
  668. },
  669. currentSx(newData, oldData) {
  670. uni.showLoading({
  671. title: '加载中'
  672. })
  673. this.page = 1
  674. this.getUserList();
  675. },
  676. currentjob(newData, oldData) {
  677. uni.showLoading({
  678. title: '加载中'
  679. })
  680. this.page = 1
  681. this.getUserList()
  682. },
  683. currentJobSx(newData, oldData) {
  684. uni.showLoading({
  685. title: '加载中'
  686. })
  687. this.page = 1
  688. this.getPeopList()
  689. // 招聘岗位变更,自动请求对于的跨境标签数据
  690. this.getTagsData()
  691. },
  692. currentJobSxs(newData, oldData) {
  693. uni.showLoading({
  694. title: '加载中'
  695. })
  696. this.page = 1
  697. this.getPeopList()
  698. },
  699. //监听userType的变化 如果有旧值跟新值不同 则把分页重置为初始状态,为了解决切换身份后数据分页错误的问题
  700. userType(newType, oldType) {
  701. if (newType != oldType) {
  702. this.page = 1
  703. if (this.userType == 1) {
  704. uni.showLoading({
  705. title: '加载中'
  706. })
  707. this.page = 1
  708. this.getUserList()
  709. } else {
  710. uni.showLoading({
  711. title: '加载中'
  712. })
  713. this.page = 1
  714. this.getCompanyClassify()
  715. }
  716. }
  717. },
  718. // 监听跨境标签弹窗显示
  719. showTagPopup(value) {
  720. if (value) {
  721. this.tempSelectTags = JSON.parse(JSON.stringify(this.selectTags))
  722. } else {
  723. this.tempSelectTags = []
  724. }
  725. }
  726. },
  727. onPageScroll(e) {
  728. if (e.scrollTop > 350) {
  729. this.goback = true
  730. } else {
  731. this.goback = false
  732. }
  733. },
  734. onLoad(e) {
  735. // 获取状态栏高度
  736. let systemInfo = uni.getSystemInfoSync();
  737. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  738. this.companyId = uni.getStorageSync('companyId');
  739. // #ifdef APP
  740. /* this.getAudioPermision() */
  741. // #endif
  742. // 获取邀请码保存到本地
  743. if (e.invitation) {
  744. this.$queue.setData('inviterCode', e.invitation);
  745. }
  746. // #ifdef MP-WEIXIN
  747. if (e.scene) {
  748. const scene = decodeURIComponent(e.scene);
  749. this.$queue.setData('inviterCode', scene.split(',')[0]);
  750. }
  751. // #endif
  752. // this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
  753. // uni.showLoading({
  754. // title: '加载中'
  755. // })
  756. if (uni.getStorageSync('userType')) {
  757. this.userType = uni.getStorageSync('userType');
  758. }
  759. let that = this
  760. uni.$on('preferenceUpdated', (data) => {
  761. let prefer = []
  762. data.preferences.forEach(function (item) {
  763. var tem = {
  764. id: item,
  765. name: item,
  766. ruleClassifyId:that.typeList[that.current].id
  767. }
  768. prefer.push(tem)
  769. })
  770. let preference = this.preference;
  771. that.preference = preference.filter(item => data.preferences.includes(item));
  772. that.directionList = prefer
  773. that.preferenceChange=true
  774. })
  775. uni.$on("skillsUpdated", (data) => {
  776. console.log("接收到的职位技能数据:", data);
  777. let prefer = data.selectedTags.map(item => ({
  778. id: item,
  779. name: item
  780. }))
  781. prefer = prefer.filter(tag => tag.id !== '不限')
  782. prefer.unshift({ id: '不限', name: '不限' })
  783. // 更新当前岗位下的标签
  784. if (this.currentRuleClassifyId) {
  785. this.$set(this.positionTagMap, this.currentRuleClassifyId, prefer)
  786. this.positionTag = prefer
  787. }
  788. })
  789. //#ifdef H5
  790. this.getLocalJobs('');
  791. //#endif
  792. //#ifdef APP-PLUS
  793. const appAuthorizeSetting = uni.getAppAuthorizeSetting()
  794. if (appAuthorizeSetting.locationAuthorized == 'authorized')
  795. this.getLocalJobs('');
  796. //#endif
  797. this.getDomWidth()
  798. this.$Request.getT('/app/common/type/255').then(res => {
  799. if (res.code === 0) {
  800. if (res.data && res.data.value) {
  801. this.tuiguang = res.data.value;
  802. }
  803. }
  804. });
  805. if (this.userType == 1) { //用户邀请图
  806. this.$Request.getT('/app/banner/selectBannerList?state=-1&classify=5').then(res => {
  807. if (res.code === 0) {
  808. this.bgImg = res.data[0].imageUrl;
  809. }
  810. });
  811. } else { //企业邀请图
  812. this.$Request.getT('/app/banner/selectBannerList?state=-1&classify=6').then(res => {
  813. if (res.code === 0) {
  814. this.bgImg = res.data[0].imageUrl;
  815. }
  816. });
  817. }
  818. // 监听筛选条件触发getJobSearchList
  819. uni.$on('updateScreenFilterRecord', () => {
  820. //待处理
  821. })
  822. // uni.$on('city', data => {
  823. // that.city = data.city
  824. // uni.setStorageSync('city', that.city)
  825. // })
  826. uni.$on('filterCity', data => {
  827. console.log(data, '选择的市')
  828. that.city = data.city
  829. that.county = data.county
  830. uni.setStorageSync('city', that.city)
  831. this.page = 1
  832. that.getUserList();
  833. })
  834. uni.$on('updateIndexType', data => {
  835. this.page = 1
  836. this.getPostType()
  837. })
  838. },
  839. onUnload() {
  840. uni.$off('filterCity');
  841. uni.$off('preferenceUpdated')
  842. uni.$off('updateScreenFilterRecord')
  843. uni.$off('updateIndexType')
  844. uni.$off('skillsUpdated')
  845. },
  846. onHide() {
  847. //离开页面时关闭吸顶功能,用于处理h5环境运行下'bottom' of null报错的问题
  848. this.enable = false
  849. },
  850. onShow() {
  851. let that = this;
  852. // this.getBannerList()
  853. // this.getgridList()
  854. // this.getgonggaoList()
  855. // #ifdef MP-WEIXIN
  856. // this.$Request.get('/app/common/type/257').then(res => {
  857. // if (res.code == 0) {
  858. // // #ifdef MP-WEIXIN
  859. // this.XCXIsSelect = res.data.value
  860. // // #endif
  861. // // #ifndef MP-WEIXIN
  862. // this.XCXIsSelect = '是'
  863. // // #endif
  864. // }
  865. // });
  866. // this.$Request.get('/app/common/type/238').then(res => {
  867. // if (res.code == 0) {
  868. // // #ifdef MP-WEIXIN
  869. // this.XCXIsSelect = res.data.value
  870. // // #endif
  871. // // #ifndef MP-WEIXIN
  872. // this.XCXIsSelect = '是'
  873. // // #endif
  874. // }
  875. // });
  876. // #endif
  877. this.enable = true
  878. if (uni.getStorageSync('userType')) {
  879. this.userType = uni.getStorageSync('userType');
  880. }
  881. this.token = uni.getStorageSync('token');
  882. const condition = this.$queue.getFilterData()
  883. this.education = condition.education //学历
  884. this.experience = condition.experience //经验
  885. this.industry = condition.industry //行业
  886. this.salaryRange = condition.salaryRange //薪资
  887. this.companyPeople = condition.companyPeople //公司规模
  888. // this.getPostType();
  889. // if (this.userType == 1) {
  890. // uni.setNavigationBarColor({
  891. // frontColor: '#ffffff',
  892. // backgroundColor: '#00DD9A'
  893. // })
  894. // } else {
  895. // uni.setNavigationBarColor({
  896. // frontColor: '#000000',
  897. // backgroundColor: '#F2F2F7'
  898. // })
  899. // }
  900. if (this.token) {
  901. this.getUserInfo();
  902. if (this.userType == 1) {
  903. this.getJobType();
  904. } else {
  905. this.jobTypeList = [{
  906. projectName: '',
  907. name: '全部',
  908. }]
  909. this.getCompanyClassify()
  910. this.getCompanyStatus()
  911. }
  912. this.$Request.getT('/app/common/type/310').then(res => { //消息未读提醒
  913. if (res.code == 0) {
  914. if (res.data && res.data.value) {
  915. this.arr.push(res.data.value)
  916. }
  917. }
  918. })
  919. this.$Request.getT('/app/common/type/337').then(res => { //预约成功通知(通用)
  920. if (res.code == 0) {
  921. if (res.data && res.data.value) {
  922. this.arr.push(res.data.value)
  923. }
  924. }
  925. })
  926. this.$Request.getT('/app/common/type/338').then(res => { //订单状态通知
  927. if (res.code == 0) {
  928. if (res.data && res.data.value) {
  929. this.arr.push(res.data.value)
  930. }
  931. }
  932. })
  933. // #ifdef MP-WEIXIN
  934. // if (this.showModal) {
  935. // this.openMsg()
  936. // }
  937. // #endif
  938. } else {
  939. this.jobTypeList = [{
  940. projectName: '',
  941. name: '全部',
  942. }]
  943. }
  944. if (this.city || true) {
  945. if (this.userType == 1) {
  946. if (this.current != this.typeList.length - 1) {
  947. this.getPostType(true);
  948. } else {
  949. this.getComanyList()
  950. }
  951. } else {
  952. this.getCompanyClassify()
  953. }
  954. }
  955. },
  956. methods: {
  957. calculateWorkDuration(start, end) {
  958. if (!start || !end) return ''
  959. const startDate = new Date(start)
  960. const endDate = new Date(end)
  961. if (endDate < startDate) return ''
  962. let years = endDate.getFullYear() - startDate.getFullYear()
  963. let months = endDate.getMonth() - startDate.getMonth()
  964. if (months < 0) {
  965. years -= 1
  966. months += 12
  967. }
  968. let result = ''
  969. if (years > 0) result += years + '年'
  970. if (months > 0) result += months + '个月'
  971. return result || '0个月'
  972. },
  973. parseSkills(str) {
  974. if (!str) return [];
  975. try {
  976. // ✅ 如果是多个 JSON 数组拼接:比如 ["A"],["B"]
  977. if (str.includes('],[')) {
  978. const wrapped = `[${str}]`; // 变成 [["A"],["B"]]
  979. const parsed = JSON.parse(wrapped);
  980. return [...new Set(parsed.flat())]; // 扁平化 + 去重
  981. }
  982. // ✅ 正常的单个 JSON 数组字符串
  983. const parsed = JSON.parse(str);
  984. if (Array.isArray(parsed)) {
  985. return [...new Set(parsed)];
  986. }
  987. } catch (e) {
  988. // 非 JSON 格式的情况继续往下处理
  989. }
  990. // ✅ 替换中文逗号
  991. str = str.replace(/,/g, ',');
  992. // ✅ 支持多种分隔符
  993. let arr = [];
  994. if (str.includes('/')) {
  995. arr = str.split('/');
  996. } else if (str.includes(',')) {
  997. arr = str.split(',');
  998. } else {
  999. arr = [str];
  1000. }
  1001. return [...new Set(arr.map(s => s.trim()).filter(Boolean))];
  1002. },
  1003. selectJob(job, index) {
  1004. this.currentJobSx = index
  1005. this.currentRuleClassifyId = job.ruleClassifyId
  1006. this.positionTag = this.positionTagMap[job.ruleClassifyId] || [{ id: '不限', name: '不限' }]
  1007. this.currentPostionCity = job.city
  1008. this.city = job.city
  1009. this.getDomWidth()
  1010. },
  1011. //下拉过程
  1012. onPullingDown() {
  1013. // 可以在这里处理下拉过程中的逻辑,比如显示下拉进度
  1014. },
  1015. //下拉刷新处理
  1016. handlePullDownRefresh() {
  1017. this.isRefreshing = true
  1018. // 判断是否是陈列页
  1019. if (!this.isShowDefaultPage) {
  1020. this.page = 1
  1021. if (this.userType == 1) {
  1022. if (this.current != this.typeList.length - 1) {
  1023. this.getUserList()
  1024. } else {
  1025. this.getComanyList()
  1026. }
  1027. } else {
  1028. this.getPeopList()
  1029. }
  1030. } else {
  1031. this.RCPage = 1
  1032. this.RPPage = 1
  1033. this.getRecommendCompanys()
  1034. this.getDefaultPositions()
  1035. }
  1036. },
  1037. // 加载更多
  1038. loadMore() {
  1039. if (!this.isShowDefaultPage) {
  1040. // 检查是否还有更多数据(当前页码小于总页数)
  1041. if (this.page < this.totlo) {
  1042. this.page += 1
  1043. if (this.userType == 1) {
  1044. if (this.current != this.typeList.length - 1) {
  1045. this.getUserList()
  1046. } else {
  1047. this.getComanyList()
  1048. }
  1049. } else {
  1050. this.getPeopList()
  1051. }
  1052. } else {
  1053. // uni.showToast({
  1054. // title: '已加载全部数据',
  1055. // icon: 'none'
  1056. // })
  1057. }
  1058. } else if (this.total > this.recommendPositions.length) {
  1059. this.RPPage++
  1060. this.getDefaultPositions()
  1061. }
  1062. },
  1063. //去企业详情
  1064. goInfo(item) {
  1065. uni.navigateTo({
  1066. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + item.companyId
  1067. })
  1068. },
  1069. //
  1070. async getLocalJobs(go = 'go', isBusiness = false) {
  1071. // isBusiness:判断是否是招聘端,如果是则限制选择城市,以公司城市为准
  1072. // #ifdef APP
  1073. const hasLocation = await this.$queue.checkPermission(
  1074. 'location',
  1075. '获取位置需要定位权限,用于推荐同城的求职岗位或牛人',
  1076. this
  1077. );
  1078. if (!hasLocation) return this.goNav('/package/screen/city?city=' + this.city + '&county=' + this.county);
  1079. // #endif
  1080. this.getCity(go, isBusiness)
  1081. },
  1082. getCity(go = '', isBusiness = false) {
  1083. var that = this
  1084. // 权限通过,调用定位API
  1085. uni.getLocation({
  1086. type: 'wgs84', //wgs84 gcj02
  1087. success: (res) => {
  1088. console.log(res, '地理位置');
  1089. that.latitude = res.latitude;
  1090. that.longitude = res.longitude;
  1091. if (that.$queue.array_column(that.sxTypeList, 'id').indexOf(3) < 0)
  1092. that.sxTypeList.push({
  1093. id: 3,
  1094. name: '附近'
  1095. })
  1096. if (that.userType == 1) {
  1097. that.getPostType()
  1098. } else {
  1099. that.getCompanyClassify()
  1100. }
  1101. if (isBusiness && this.currentPostionCity) {
  1102. that.goNav(`/package/screen/city?city=${that.currentPostionCity}&county=${that.county}&type=search&onlyShowOneCity=true`)
  1103. return
  1104. }
  1105. if (!uni.getStorageSync('city') || uni.getStorageSync('city') == '' || uni.getStorageSync('city') == null) {
  1106. // #ifdef APP-PLUS
  1107. if (res.address) {
  1108. that.city = res.address.city
  1109. if (go == 'go')
  1110. that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county + '&type=' + 'search')
  1111. return;
  1112. } else {
  1113. that.getSelectCity(that.longitude, that.latitude, go);
  1114. return
  1115. }
  1116. // #endif
  1117. // #ifndef APP
  1118. that.getSelectCity(that.longitude, that.latitude, go);
  1119. return
  1120. // #endif
  1121. } else {
  1122. that.city = that.city ?? uni.getStorageSync('city')
  1123. if (go == 'go') {
  1124. that.goNav(`/package/screen/city?city=${that.city}&county=${that.county}&type=search&onlyShowOneCity=${ this.userType == 2 ? 'true' : '' }`)
  1125. }
  1126. }
  1127. },
  1128. fail: function () {
  1129. console.log('获取地址失败');
  1130. // 获取位置失败时也要关闭加载并调用数据接口
  1131. uni.hideLoading()
  1132. // 即使没有位置信息,也要加载数据
  1133. if (that.userType == 1) {
  1134. that.getPostType()
  1135. } else {
  1136. that.getCompanyClassify()
  1137. }
  1138. if (go == 'go')
  1139. that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county + '&type=' + 'search')
  1140. }
  1141. })
  1142. },
  1143. //获取公司列表
  1144. getComanyList() {
  1145. let data = {
  1146. page: this.page,
  1147. limit: this.limit,
  1148. city: this.city == '全国' ? '' : this.city, //城市
  1149. companyScope: this.industry,
  1150. companyPeople: this.companyPeople
  1151. }
  1152. this.$Request.getT('/app/company/listCompany', data).then(res => {
  1153. uni.hideLoading()
  1154. this.isRefreshing = false
  1155. if (res.code == 0) {
  1156. this.totlo = res.data.pages
  1157. if (this.page == 1) {
  1158. this.companList = res.data.records
  1159. } else {
  1160. this.companList = [...this.companList, ...res.data.records]
  1161. }
  1162. // this.companList = res.data
  1163. } else {
  1164. uni.showToast({
  1165. title: res.msg,
  1166. icon: 'none'
  1167. })
  1168. }
  1169. }).catch(err => {
  1170. this.isRefreshing = false
  1171. uni.hideLoading()
  1172. })
  1173. },
  1174. // isSameName(className, name) {
  1175. // let str1 = className.trim();
  1176. // if (str2 == null)
  1177. // return false;
  1178. // let str2 = name.trim();
  1179. // if (str1.length !== str2.length) {
  1180. // return true;
  1181. // }
  1182. // return str1.toLowerCase() !== str2.toLowerCase();
  1183. // },
  1184. // //获取麦克风/摄像头权限
  1185. // async getAudioPermision() {
  1186. // let status = permision.isIOS ? await permision.judgeIosPermission("record") : await permision
  1187. // .requestAndroidPermission("android.permission.RECORD_AUDIO")
  1188. // let status2 = permision.isIOS ? await permision.judgeIosPermission("camera") : await permision
  1189. // .requestAndroidPermission("android.permission.CAMERA")
  1190. // if (status === null || status === 1 || status == true) { //已经同意授权
  1191. // console.log('获取到权限了')
  1192. // } else { //未授权的
  1193. // this.popupshowsq = true
  1194. // }
  1195. // },
  1196. // goNave(url) {
  1197. // if (url.indexOf('/pages/') !== -1 || url.indexOf('/my/') !== -1 || url.indexOf('/package/') !== -1) {
  1198. // uni.navigateTo({
  1199. // url
  1200. // });
  1201. // } else {
  1202. // //#ifndef H5
  1203. // uni.navigateTo({
  1204. // url: '/pages/index/webView?url=' + url
  1205. // });
  1206. // //#endif
  1207. // //#ifdef H5
  1208. // window.location.href = url;
  1209. // //#endif
  1210. // }
  1211. // },
  1212. // //获取公告
  1213. // getgonggaoList() {
  1214. // if (!uni.getStorageSync('userType') || uni.getStorageSync('userType') == 1) {
  1215. // this.$Request.get('/app/message/page/1/1/100').then(res => {
  1216. // if (res.code == 0) {
  1217. // let arr = []
  1218. // res.data.list.map(item => {
  1219. // if (item.type == 1) {
  1220. // arr.push(item.title)
  1221. // }
  1222. // })
  1223. // this.gongao = arr
  1224. // } else {
  1225. // this.gongao = []
  1226. // }
  1227. // })
  1228. // } else if (uni.getStorageSync('userType') == 2) {
  1229. // this.$Request.get('/app/message/page/1/1/100').then(res => {
  1230. // if (res.code == 0) {
  1231. // let arr = []
  1232. // res.data.list.map(item => {
  1233. // if (item.type == 2) {
  1234. // arr.push(item.title)
  1235. // }
  1236. // })
  1237. // this.gongao = arr
  1238. // } else {
  1239. // this.gongao = []
  1240. // }
  1241. // })
  1242. // }
  1243. // },
  1244. // //获取bannerlist
  1245. // getBannerList() {
  1246. // if (!uni.getStorageSync('userType') || uni.getStorageSync('userType') == 1) {
  1247. // this.$Request.get('/app/banner/selectBannerList?classify=1').then(res => {
  1248. // if (res.code == 0) {
  1249. // this.bannerListuser = res.data
  1250. // this.bannerList = res.data
  1251. // } else {
  1252. // this.bannerListuser = [
  1253. // 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fphoto%2F2007-11-7%2F200711072147151187.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1674883340&t=4b9cbb7796600699ac28f75cd138ba04'
  1254. // ]
  1255. // }
  1256. // })
  1257. // } else if (uni.getStorageSync('userType') == 2) {
  1258. // this.$Request.get('/app/banner/selectBannerList?classify=3').then(res => {
  1259. // if (res.code == 0) {
  1260. // this.bannerList = res.data
  1261. // } else {
  1262. // this.bannerList = [
  1263. // 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fphoto%2F2007-11-7%2F200711072147151187.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1674883340&t=4b9cbb7796600699ac28f75cd138ba04'
  1264. // ]
  1265. // }
  1266. // })
  1267. // }
  1268. // },
  1269. goNavss(url) {
  1270. if (this.companyStatus) {
  1271. if (this.companyStatus == 1) {
  1272. uni.showToast({
  1273. title: '企业认证审核中,请审核通过后操作!',
  1274. icon: 'none'
  1275. })
  1276. return
  1277. }
  1278. if (this.companyStatus == 3) {
  1279. uni.showToast({
  1280. title: '企业认证审核未通过,请重新认证!',
  1281. icon: 'none'
  1282. })
  1283. return
  1284. }
  1285. uni.navigateTo({
  1286. url: url
  1287. })
  1288. } else {
  1289. uni.showModal({
  1290. title: '提示',
  1291. content: '还未完成企业认证,请完成企业认证后操作',
  1292. complete(ret) {
  1293. if (ret.confirm) {
  1294. uni.navigateTo({
  1295. url: '/pages/my/businessLicense'
  1296. })
  1297. }
  1298. }
  1299. })
  1300. }
  1301. },
  1302. //获取企业认证状态(1:审核中 2:通过 3:拒绝)
  1303. getCompanyStatus() {
  1304. this.$Request.get("/app/company/selectCompanyByUserId").then(res => {
  1305. if (res.code == 0 && res.data) {
  1306. this.companyStatus = res.data.status
  1307. this.companyId = res.data.companyId
  1308. this.companyName = res.data.companyAllName
  1309. uni.setStorageSync('companyStatus', this.companyStatus)
  1310. uni.setStorageSync('companyId', res.data.companyId)
  1311. this.companyId = this.companyId
  1312. // if (this.companyStatus == 1) {
  1313. // uni.showModal({
  1314. // title: '提示',
  1315. // content: '企业正在认证审核中。',
  1316. // showCancel: false,
  1317. // complete(ret) {
  1318. // if (ret.confirm) {
  1319. // uni.navigateTo({
  1320. // url: "/package/jobIntention/underReview"
  1321. // });
  1322. // }
  1323. // }
  1324. // })
  1325. // }
  1326. // if (this.companyStatus == 3) {
  1327. // uni.showModal({
  1328. // title: '提示',
  1329. // content: '企业认证被拒绝。请修改',
  1330. // complete(ret) {
  1331. // if (ret.confirm) {
  1332. // uni.navigateTo({
  1333. // url: "/package/jobIntention/underReview"
  1334. // });
  1335. // }
  1336. // }
  1337. // })
  1338. // }
  1339. } else {
  1340. this.companyStatus = ''
  1341. }
  1342. })
  1343. },
  1344. // // 开启订阅消息
  1345. // openMsg() {
  1346. // console.log('订阅消息')
  1347. // var that = this
  1348. // uni.getSetting({
  1349. // withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1350. // success(ret) {
  1351. // console.log(ret.subscriptionsSetting, '------------------')
  1352. // // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1353. // if (ret.subscriptionsSetting.itemSettings) {
  1354. // uni.setStorageSync('sendMsg', true)
  1355. // uni.openSetting({ // 打开设置页
  1356. // success(rea) {
  1357. // console.log(rea.authSetting)
  1358. // }
  1359. // });
  1360. // } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1361. // console.log(99999)
  1362. // uni.setStorageSync('sendMsg', false)
  1363. // uni.showModal({
  1364. // title: '提示',
  1365. // content: '为了更好的体验,请绑定消息推送',
  1366. // confirmText: '确定',
  1367. // cancelText: '取消',
  1368. // confirmColor: '#016BF6',
  1369. // success: function (res) {
  1370. // if (res.confirm) {
  1371. // console.log(that.arr)
  1372. // wx.requestSubscribeMessage({
  1373. // tmplIds: that.arr,
  1374. // success(re) {
  1375. // console.log(JSON.stringify(re),
  1376. // '++++++++++++++')
  1377. // var datas = JSON.stringify(re);
  1378. // if (datas.indexOf("accept") != -1) {
  1379. // console.log(re)
  1380. // uni.setStorageSync('sendMsg', true)
  1381. // }
  1382. // },
  1383. // fail: (res) => {
  1384. // console.log(res)
  1385. // }
  1386. // })
  1387. // uni.setStorageSync('sendMsg', true)
  1388. // console.log('确认')
  1389. // that.showModal = false
  1390. // } else if (res.cancel) {
  1391. // console.log('取消')
  1392. // uni.setStorageSync('sendMsg', false)
  1393. // that.showModal = true
  1394. // }
  1395. // }
  1396. // })
  1397. // }
  1398. // }
  1399. // })
  1400. // },
  1401. //回到顶部
  1402. gotoBack() {
  1403. uni.pageScrollTo({
  1404. scrollTop: 0,
  1405. duration: 300
  1406. })
  1407. },
  1408. /**
  1409. * 获取简历列表
  1410. */
  1411. getPeopList() {
  1412. if(this.jobSxTypeList.length == 0) return;
  1413. let intentPostSkill = this.selectTags.map(item => item.postSkillName)?.join(',') || ''
  1414. let data = {
  1415. page: this.page,
  1416. limit: this.limit,
  1417. postType: '', //工作性质
  1418. expectedPosition:this.jobSxTypeList.length > 0 ? this.jobSxTypeList[this.currentJobSx].projectName : '', //岗位名称
  1419. screen: +this.currentJobSxs + 1, //1推荐 2最新
  1420. city: this.city == '全国' ? '' : this.city, //城市
  1421. salaryRange: this.salaryRange, //薪资范围
  1422. eduRange: this.education, //学历
  1423. expRange: this.experience, //经验
  1424. // intentPostSkill:this.positionTagArr.join(','),
  1425. intentPostSkill,
  1426. //industryName: this.industry, //行业
  1427. // companyPeople: this.companyPeople, //公司规模
  1428. lng: this.longitude,
  1429. lat: this.latitude,
  1430. //isRecommend:this.currentJobSxs==1?this.currentJobSxs:0,//推荐
  1431. companyId: uni.getStorageSync('companyId') ? uni.getStorageSync('companyId') : ''
  1432. }
  1433. this.$Request.postJson('/app/resumes/selectResumesList', data).then(res => {
  1434. // 1. 停止下拉刷新和隐藏loading(无论请求结果如何都执行)
  1435. this.isRefreshing = false
  1436. uni.hideLoading()
  1437. // 2. 第一层校验:确保res、res.data、res.data.records都存在且为数组
  1438. if (res.code == 0 && res.data && Array.isArray(res.data.records)) {
  1439. this.totalPage = res.data.totalPage
  1440. this.totlo = res.data.totalPage // 注意:变量名疑似笔误(totlo → totalPage?)
  1441. // 3. 处理列表:过滤null/undefined元素 + 安全访问skillTags
  1442. const list = res.data.records
  1443. .filter(item => item !== null && item !== undefined) // 过滤空元素
  1444. .map(item => {
  1445. // 安全赋值:item存在时才访问skillTags,否则赋值为空字符串
  1446. item.skills = item?.skillTags || '';
  1447. // 设置薪资范围
  1448. if (!item.salaryRange && item.minSalary && item.maxSalary) {
  1449. item.salaryRange = `${formatNumberToK(item.minSalary)}-${formatNumberToK(item.maxSalary)}`
  1450. }
  1451. // 设置基本信息年龄、工作年限、学历
  1452. let baseInfoArr = []
  1453. if (item.userAge) {
  1454. baseInfoArr.push(`${item.userAge}岁`)
  1455. }
  1456. if (item.resumesWorkExperience) {
  1457. baseInfoArr.push(item.resumesWorkExperience)
  1458. }
  1459. if (item.degree) {
  1460. baseInfoArr.push(item.degree)
  1461. }
  1462. item.baseInfoArr = baseInfoArr
  1463. // 判断是否是跨境公司
  1464. let isCrossCompany = false
  1465. let workTypeArr = []
  1466. if (typeof item.workType == 'string') {
  1467. workTypeArr = JSON.parse(item.workType?.split(';')[0] || [])
  1468. }
  1469. if (Array.isArray(workTypeArr)) {
  1470. isCrossCompany = workTypeArr.findIndex(type => type == '0') != -1
  1471. }
  1472. item.isCrossCompany = isCrossCompany
  1473. // 计算最新一家公司的工作年限
  1474. let lastWorkTime = ''
  1475. if (item.lastWorkStartTime && item.lastWorkEndTime) {
  1476. lastWorkTime = this.calculateWorkDuration(item.lastWorkStartTime, item.lastWorkEndTime)
  1477. }
  1478. item.lastWorkTime = lastWorkTime
  1479. return item;
  1480. });
  1481. // 4. 分页赋值(避免空数组覆盖)
  1482. if (this.page == 1) {
  1483. this.datasList = list
  1484. } else {
  1485. this.datasList = [...this.datasList, ...list]
  1486. }
  1487. this.totlo = res.data.pages
  1488. } else {
  1489. // 5. 异常情况:仅第一页清空列表,避免翻页时丢失数据
  1490. if (this.page === 1) {
  1491. this.datasList = []
  1492. }
  1493. // 可选:提示用户无数据
  1494. // uni.showToast({ title: '暂无数据', icon: 'none' })
  1495. }
  1496. }).catch(err => {
  1497. // 6. 捕获请求异常(如网络错误、接口500)
  1498. this.isRefreshing = false
  1499. uni.hideLoading()
  1500. uni.showToast({
  1501. title: '请求失败,请重试',
  1502. icon: 'none'
  1503. })
  1504. console.error('简历列表请求失败:', err)
  1505. })
  1506. },
  1507. /**
  1508. * 获取公司发布的岗位列表
  1509. */
  1510. getCompanyClassify() {
  1511. let data = {
  1512. }
  1513. if (uni.getStorageSync('companyId') && uni.getStorageSync('companyId') != 'null')
  1514. data.companyId = uni.getStorageSync('companyId')
  1515. this.$Request.getT('/app/postPush/getCompanyClassify', data).then(res => {
  1516. uni.hideLoading()
  1517. if (res.code === 0 && res.data.length > 0) {
  1518. this.findJobCount = res.data.length
  1519. let arr = []
  1520. let tagMap = {}
  1521. res.data.forEach(item => {
  1522. let obj = {
  1523. id: item.postPushId,
  1524. projectName: item.ruleClassifyName,
  1525. name: item.ruleClassifyName,
  1526. ruleClassifyId: item.ruleClassifyId,
  1527. city: item.city
  1528. }
  1529. if (!this.currentPostionCity) {
  1530. this.currentPostionCity = item.city
  1531. this.city = item.city
  1532. }
  1533. arr.push(obj)
  1534. // 处理标签
  1535. let tags = []
  1536. if (item.positionTag && item.positionTag.trim() !== '') {
  1537. tags = item.positionTag
  1538. .split(',')
  1539. .filter(Boolean)
  1540. .map(tag => ({ id: tag, name: tag }))
  1541. }
  1542. if (tags.length === 0) {
  1543. tags = [{ id: '不限', name: '不限' }]
  1544. } else {
  1545. tags.unshift({ id: '不限', name: '不限' })
  1546. }
  1547. tagMap[item.ruleClassifyId] = tags
  1548. })
  1549. if (this.positionTagMap && Object.keys(this.positionTagMap).length > 0) {
  1550. for (const key in tagMap) {
  1551. if (this.positionTagMap[key]) {
  1552. const oldTags = this.positionTagMap[key]
  1553. const newTags = tagMap[key]
  1554. const merged = []
  1555. const seen = new Set()
  1556. ;[...oldTags, ...newTags].forEach(tag => {
  1557. if (!seen.has(tag.id)) {
  1558. seen.add(tag.id)
  1559. merged.push(tag)
  1560. }
  1561. })
  1562. tagMap[key] = merged
  1563. }
  1564. }
  1565. }
  1566. this.jobSxTypeList = arr
  1567. this.positionTagMap = tagMap
  1568. if (!this.currentRuleClassifyId && arr.length > 0) {
  1569. this.currentRuleClassifyId = arr[0].ruleClassifyId
  1570. }
  1571. this.positionTag =
  1572. this.positionTagMap[this.currentRuleClassifyId] ||
  1573. [{ id: '不限', name: '不限' }]
  1574. this.getPeopList()
  1575. } else if (res.code === 0) {
  1576. this.findJobCount = 0
  1577. // 获取公司招聘岗位后判断是否显示陈列页
  1578. if (this.isShowDefaultPage) {
  1579. this.getRecommendCompanys()
  1580. this.getDefaultPositions()
  1581. }
  1582. }
  1583. })
  1584. },
  1585. /**
  1586. * 获取dom元素的宽度
  1587. */
  1588. getDomWidth() {
  1589. this.$nextTick(() => {
  1590. let that = this
  1591. let obj = uni.createSelectorQuery().select('#bottomView' + that
  1592. .currentJobSx) // xx为class或者id,如 .block, #block
  1593. obj.boundingClientRect(function (data) { // data - dom中的参数,宽高等
  1594. // console.log(data.width)
  1595. if (data && data.width) {
  1596. that.domeWidth = data.width * 2 * 0.8
  1597. } else {
  1598. that.domeWidth = 0
  1599. }
  1600. }).exec()
  1601. })
  1602. },
  1603. /**
  1604. * @param {Object} longitude
  1605. * @param {Object} latitude
  1606. * 使用经纬度获取城市
  1607. */
  1608. getSelectCity(longitude, latitude, go) {
  1609. this.$Request.get('/app/Login/selectCity?lat=' + latitude + '&lng=' + longitude).then(res => {
  1610. if (res.code == 0) {
  1611. // console.log(res, '获取地址信息')
  1612. if (!this.city) {
  1613. this.city = res.data.city ? res.data.city : '区域'
  1614. uni.setStorageSync('city', res.data.city)
  1615. }
  1616. if (go == 'go')
  1617. this.goNav('/package/screen/city?city=' + this.city + '&county=' + this.county + '&type=' + 'search')
  1618. if (this.userType == 1) {
  1619. this.getUserList()
  1620. } else {
  1621. this.getPeopList()
  1622. }
  1623. }
  1624. });
  1625. },
  1626. /**
  1627. * 获取求职意向
  1628. */
  1629. getJobType() {
  1630. return
  1631. this.$Request.get('/app/intention/getIntentionList').then(res => {
  1632. if (res.code == 0 && res.data.records.length > 0) {
  1633. let arr = [{
  1634. projectName: '',
  1635. name: '全部',
  1636. },]
  1637. res.data.records.map(item => {
  1638. let obj = {
  1639. projectName: item.ruleClassifyName,
  1640. name: item.ruleClassifyName,
  1641. }
  1642. arr.push(obj)
  1643. })
  1644. console.log(arr)
  1645. this.jobTypeList = arr
  1646. }
  1647. })
  1648. },
  1649. /**
  1650. * 获取岗位列表
  1651. */
  1652. getUserList() {
  1653. if(this.typeList.length == 0) return;
  1654. // 设置跨境标签
  1655. let preference = this.selectTags.map(tag => tag.postSkillName)?.join(',') || ''
  1656. let data = {
  1657. page: this.page,
  1658. limit: this.limit,
  1659. //postType: this.typeList.length > 0 ? this.typeList[this.current].id : '',
  1660. ruleClassifyName: this.typeList.length > 0 ? this.typeList[this.current].name : '', //岗位名称
  1661. screen: +this.currentSx + 1, //1推荐 2最新
  1662. county: this.county, //区
  1663. city: this.city == '全国' ? '' : this.city, //城市
  1664. salaryRange: this.salaryRange, //薪资范围
  1665. education: this.education, //学历
  1666. experience: this.experience, //经验
  1667. industry: this.industry, //行业
  1668. // preference: this.preference.join(','),
  1669. preference,
  1670. companyPeople: this.companyPeople, //公司规模
  1671. lng: this.longitude,
  1672. lat: this.latitude,
  1673. //userId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
  1674. }
  1675. this.$Request.get('/app/postPush/userGetPostPushList', data).then(res => {
  1676. this.isRefreshing = false
  1677. uni.hideLoading()
  1678. if (res.code == 0) {
  1679. res.data.records.map(item => {
  1680. // 设置福利标签数据
  1681. item.welfareTag = item.welfareTag ? item.welfareTag.replace(/;/g, ' | ') : ''
  1682. // 设置岗位tag数据
  1683. item.positionTag = item.positionTag ? item.positionTag.split(',') : []
  1684. if (item.distance) {
  1685. if (parseFloat(item.distance) > 1000) {
  1686. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + 'km'
  1687. } else {
  1688. item.distance = (parseFloat(item.distance)).toFixed(2) + 'm'
  1689. }
  1690. } else {
  1691. item.distance = ''
  1692. }
  1693. })
  1694. if (this.page == 1) {
  1695. // console.log(res.data.records, '岗位数据')
  1696. this.dataList = res.data.records
  1697. } else {
  1698. this.dataList = [...this.dataList, ...res.data.records]
  1699. }
  1700. this.totlo = res.data.pages
  1701. }
  1702. }).catch(err => {
  1703. this.isRefreshing = false
  1704. uni.hideLoading()
  1705. })
  1706. },
  1707. /**
  1708. * 工作性质
  1709. */
  1710. getPostType(notChangeCity = false) {
  1711. var that = this
  1712. if(that.preferenceChange){
  1713. return this.getUserList()
  1714. }
  1715. //行业期望
  1716. this.$Request.get('/app/intention/getIntentionList', {
  1717. }).then(res => {
  1718. if (res.code == 0) {
  1719. this.expecteJobCount = res.data.length
  1720. // 获取求职岗位后判断是否显示陈列页
  1721. if (this.isShowDefaultPage) {
  1722. this.getRecommendCompanys()
  1723. this.getDefaultPositions()
  1724. return
  1725. }
  1726. let arr = res.data
  1727. let classRule = [
  1728. /* {
  1729. id: '',
  1730. name: '',
  1731. label: '全部'
  1732. } */
  1733. ]
  1734. let industry = this.directionList
  1735. arr.forEach((item,index) => {
  1736. var tmp = {}
  1737. tmp.id = item.ruleClassifyId
  1738. tmp.name = item.ruleClassifyName
  1739. tmp.label = item.ruleClassifyName
  1740. classRule.push(tmp)
  1741. let indexRulrId=that.typeList.length>0&&that.typeList[that.current].id?that.typeList[that.current].id:arr[0].ruleClassifyId
  1742. if(indexRulrId==item.ruleClassifyId){
  1743. var indus = item.industry ? item.industry.split('/') : []
  1744. indus.forEach(function (ind) {
  1745. var tm = {}
  1746. tm.name = ind
  1747. tm.id = ind
  1748. tm.ruleClassifyId=item.ruleClassifyId
  1749. if (that.$queue.array_column(industry, 'name').indexOf(tm.name) <
  1750. 0)
  1751. industry.push(tm)
  1752. })
  1753. }
  1754. if (this.current == index && !notChangeCity) {
  1755. this.city = item.citys
  1756. }
  1757. })
  1758. classRule.push({
  1759. id: '',
  1760. name: '',
  1761. label: ''
  1762. }) //模拟个空企业选项,为了兼容源码和设计图
  1763. this.typeList = classRule
  1764. var industryArr = this.industry == '' ? [] : this.industry.split(',')
  1765. industryArr.forEach(function (item) {
  1766. if (that.$queue.array_column(that.directionList, 'name').indexOf(item) < 0)
  1767. industry.push({
  1768. id: item,
  1769. name: item,
  1770. ruleClassifyId:that.typeList[that.current].id
  1771. })
  1772. })
  1773. this.directionList = industry
  1774. // console.log(this.typeList, '1111')
  1775. this.getUserList()
  1776. }
  1777. }).finally(() => {
  1778. uni.hideLoading()
  1779. })
  1780. },
  1781. /**
  1782. * 获取个人信息
  1783. */
  1784. getUserInfo() {
  1785. this.$Request.get("/app/user/selectUserById").then(res => {
  1786. if (res.code == 0) {
  1787. console.log(res.data)
  1788. this.$queue.setData('weChatNum', res.data?.weChatNum)
  1789. if (res.data && res.data.companyId) {
  1790. uni.setStorageSync('companyId', res.data?.companyId)
  1791. }
  1792. if (res.data?.userType == 1 || res.data?.userType == null) {
  1793. this.userType = 1
  1794. uni.setStorageSync('userType', 1)
  1795. } else {
  1796. this.userType = 2
  1797. uni.setStorageSync('userType', 2)
  1798. }
  1799. }
  1800. })
  1801. },
  1802. gotoInfo: debounce(function(postPushId) {
  1803. if (uni.getStorageSync('token')) {
  1804. // #ifdef MP-WEIXIN
  1805. if (uni.getStorageSync('sendMsg')) {
  1806. // console.log('授权+1')
  1807. wx.requestSubscribeMessage({
  1808. tmplIds: this.arr,
  1809. success(re) {
  1810. // console.log(JSON.stringify(re), 111111111111)
  1811. var datas = JSON.stringify(re);
  1812. if (datas.indexOf("accept") != -1) {
  1813. // console.log(re)
  1814. }
  1815. },
  1816. fail: (res) => {
  1817. // console.log(res)
  1818. }
  1819. })
  1820. }
  1821. // #endif
  1822. // uni.navigateTo({
  1823. // url: '/pages/index/game/order?postPushId=' + postPushId
  1824. // })
  1825. }
  1826. // else {
  1827. // this.noLogin()
  1828. // }
  1829. uni.navigateTo({
  1830. url: '/pages/index/game/order?postPushId=' + postPushId
  1831. })
  1832. }, 300),
  1833. //不需要登录跳转
  1834. goNavs: debounce(function(url) {
  1835. // #ifdef MP-WEIXIN
  1836. if (uni.getStorageSync('sendMsg')) {
  1837. // console.log('授权+1')
  1838. wx.requestSubscribeMessage({
  1839. tmplIds: this.arr,
  1840. success(re) {
  1841. // console.log(JSON.stringify(re), 111111111111)
  1842. var datas = JSON.stringify(re);
  1843. if (datas.indexOf("accept") != -1) {
  1844. // console.log(re)
  1845. }
  1846. },
  1847. fail: (res) => {
  1848. // console.log(res)
  1849. }
  1850. })
  1851. }
  1852. // #endif
  1853. uni.navigateTo({
  1854. url: url
  1855. })
  1856. }, 300),
  1857. //跳转
  1858. goNav: debounce(function(url, company = '') {
  1859. if (company == 'company') {
  1860. if (this.jobSxTypeList.length <= 0 || this.jobSxTypeList[this.currentJobSx].id == '') return this.$queue.showToast('请先点击右上角发布岗位');
  1861. }
  1862. if (uni.getStorageSync('token')) {
  1863. // #ifdef MP-WEIXIN
  1864. if (uni.getStorageSync('sendMsg')) {
  1865. // console.log('授权+1')
  1866. wx.requestSubscribeMessage({
  1867. tmplIds: this.arr,
  1868. success(re) {
  1869. // console.log(JSON.stringify(re), 111111111111)
  1870. var datas = JSON.stringify(re);
  1871. if (datas.indexOf("accept") != -1) {
  1872. // console.log(re)
  1873. }
  1874. },
  1875. fail: (res) => {
  1876. // console.log(res)
  1877. }
  1878. })
  1879. }
  1880. // #endif
  1881. uni.navigateTo({
  1882. url: url
  1883. })
  1884. } else {
  1885. this.noLogin()
  1886. }
  1887. }, 300),
  1888. //未登录
  1889. noLogin() {
  1890. uni.showModal({
  1891. title: '提示',
  1892. content: '您还未登录,请先登录',
  1893. confirmColor: '#016BF6',
  1894. success: (res) => {
  1895. if (res.confirm) {
  1896. // console.log('用户点击确定');
  1897. // #ifdef H5
  1898. this.$queue.toLogin('navigateTo')
  1899. // #endif
  1900. // #ifdef APP-PLUS
  1901. this.$queue.toLogin()
  1902. // #endif
  1903. } else if (res.cancel) {
  1904. // console.log('用户点击取消');
  1905. }
  1906. }
  1907. })
  1908. },
  1909. //吸顶
  1910. isfixed(e) {
  1911. // console.log(e, '+++++++++++++')
  1912. this.isfixeds = true
  1913. },
  1914. //不吸顶
  1915. isunfixed() {
  1916. this.isfixeds = false
  1917. },
  1918. //添加方向标签
  1919. addDirection() {
  1920. uni.navigateTo({
  1921. url: '/package/jobIntention/tagManage'
  1922. })
  1923. },
  1924. // 修改推荐类型(最新)
  1925. handleChangeSx() {
  1926. if (this.isJobHunting) {
  1927. // 求职端
  1928. this.currentSx = this.currentSx == 1 ? 0 : 1
  1929. } else {
  1930. // 招聘端
  1931. this.currentJobSxs = this.currentJobSxs == 1 ? 0 : 1
  1932. }
  1933. },
  1934. // 打开跨境标签页面
  1935. openTagPopup() {
  1936. if (!this.tags.length) {
  1937. this.getTagsData()
  1938. }
  1939. this.showTagPopup = true
  1940. },
  1941. // 获取跨境标签数据
  1942. getTagsData() {
  1943. let ruleClassifyId = ''
  1944. if (this.isJobHunting) {
  1945. // 求职端
  1946. ruleClassifyId = this.typeList[this.current].id
  1947. } else {
  1948. // 招聘端
  1949. ruleClassifyId = this.jobSxTypeList[this.currentJobSx].ruleClassifyId
  1950. }
  1951. this.$Request
  1952. .getT('/app/userFirst/getPostSkill', {
  1953. ruleClassifyId
  1954. })
  1955. .then((res) => {
  1956. if (res.code === 0) {
  1957. this.tags = res.data
  1958. }
  1959. })
  1960. },
  1961. // 选择跨境标签
  1962. handleSelectTag(tag) {
  1963. const index = this.tempSelectTags.findIndex(item => item.postSkillId == tag.postSkillId)
  1964. if (index != -1) {
  1965. this.tempSelectTags.splice(index, 1)
  1966. } else {
  1967. this.tempSelectTags.push(tag)
  1968. }
  1969. },
  1970. // 判断跨境标签是否选中了
  1971. judgeSelectTags(tag) {
  1972. return this.tempSelectTags.some(item => item.postSkillId == tag.postSkillId)
  1973. },
  1974. // 重置跨境标签
  1975. handleResetTags() {
  1976. this.selectTags = []
  1977. this.showTagPopup = false
  1978. this.getListData()
  1979. },
  1980. // 设置跨境标签后搜索
  1981. handleSearch() {
  1982. this.selectTags = this.tempSelectTags
  1983. this.showTagPopup = false
  1984. this.getListData()
  1985. },
  1986. // 数据变更后重置页数,且请求数据
  1987. getListData() {
  1988. this.page = 1
  1989. if (this.isJobHunting) {
  1990. // 求职端
  1991. this.getUserList()
  1992. } else {
  1993. // 招聘端
  1994. this.getPeopList()
  1995. }
  1996. },
  1997. // 陈列页,获取推荐热门企业数据
  1998. getRecommendCompanys() {
  1999. if (this.loadingRecommendHostCompany) return
  2000. this.loadingRecommendHostCompany = true
  2001. this.$Request
  2002. .getT('/app/company/getHostCompany', {
  2003. page: this.RCPage,
  2004. limit: 3,
  2005. })
  2006. .then(res => {
  2007. if (res.code === 0) {
  2008. this.recommendHostCompanys = res.data.records.map(item => {
  2009. if (item.welfare) {
  2010. item.welfare = item.welfare.replace(/,/g, ' · ')
  2011. }
  2012. // 判断是否是跨境公司
  2013. let type = JSON.parse(item.type)
  2014. let isCrossCompany = false
  2015. if (item.type && Array.isArray(type)) {
  2016. isCrossCompany = type.some(t => t == '0')
  2017. }
  2018. item.isCrossCompany = isCrossCompany
  2019. return item
  2020. })
  2021. // 如果刷新到最后一页,则重置刷新
  2022. let current = res.data.current
  2023. let size = res.data.size
  2024. let total = res.data.total
  2025. if (this.RCPage !== 1 && current * size >= total) {
  2026. this.RCPage = 0
  2027. this.getRecommendCompanys()
  2028. }
  2029. }
  2030. })
  2031. .finally(() => {
  2032. this.loadingRecommendHostCompany = false
  2033. })
  2034. },
  2035. refreshRecommendCompany() {
  2036. this.RCPage++
  2037. this.getRecommendCompanys()
  2038. },
  2039. // 陈列页,获取列表岗位数据
  2040. getDefaultPositions() {
  2041. if (this.loadingRecommendPosition) return
  2042. this.loadingRecommendPosition = true
  2043. this.$Request
  2044. .getT('/app/postPush/getHostPostPush', {
  2045. page: this.RPPage,
  2046. limit: 10,
  2047. })
  2048. .then(res => {
  2049. if (res.code === 0) {
  2050. this.total = res.data.total
  2051. let list = res.data.records.map(position => {
  2052. position.positionTag = position.positionTag?.split(',') || []
  2053. position.welfareTag = position.welfareTag?.replace(/;/g, '|') || ''
  2054. return position
  2055. })
  2056. if (this.RPPage != 1) {
  2057. this.recommendPositions = [...this.recommendPositions, ...list]
  2058. } else {
  2059. this.recommendPositions = list
  2060. }
  2061. }
  2062. })
  2063. .finally(() => {
  2064. this.loadingRecommendPosition = false
  2065. this.isRefreshing = false
  2066. })
  2067. },
  2068. // 跳转公司页面
  2069. toCompanyPage: debounce(function(companyId) {
  2070. uni.navigateTo({
  2071. url: `/my/enterpriseInfo/enterpriseInfo?companyId=${companyId}`
  2072. })
  2073. }, 300),
  2074. }
  2075. }
  2076. </script>
  2077. <style lang="scss" scoped>
  2078. .page-container {
  2079. display: flex;
  2080. flex-direction: column;
  2081. height: 100vh;
  2082. //#ifdef H5
  2083. height: calc(100vh - var(--window-bottom));
  2084. //#endif
  2085. // margin-bottom: 60px;
  2086. position: relative;
  2087. }
  2088. .user-image {
  2089. position: relative;
  2090. .online-status {
  2091. width: 12rpx;
  2092. height: 12rpx;
  2093. position: absolute;
  2094. bottom: 0rpx;
  2095. right: 0rpx;
  2096. border-radius: 50%;
  2097. box-sizing: border-box;
  2098. border: 0.5px solid rgba(255, 255, 255, 1);
  2099. }
  2100. .hr-avatar {
  2101. display: block;
  2102. width: 40rpx;
  2103. height: 40rpx;
  2104. border: 0.5px solid rgba(240, 240, 240, 1);
  2105. border-radius: 20rpx;
  2106. }
  2107. }
  2108. page {
  2109. background: #F2F2F7;
  2110. }
  2111. .goback {
  2112. position: fixed;
  2113. top: 80%;
  2114. right: 30rpx;
  2115. }
  2116. .jobtitle {
  2117. position: relative;
  2118. .jobtitleBom {
  2119. position: absolute;
  2120. width: 30rpx;
  2121. left: 50%;
  2122. top: 80%;
  2123. transform: translate(-50%, 0);
  2124. }
  2125. }
  2126. .topbg-scroll {
  2127. width: 100%;
  2128. white-space: nowrap;
  2129. }
  2130. .activeQs {
  2131. color: #1A1A1A !important;
  2132. font-weight: 800;
  2133. }
  2134. .activeQ {
  2135. color: #1A1A1A !important;
  2136. font-size: 38rpx;
  2137. font-weight: 800;
  2138. }
  2139. .active {
  2140. font-size: 38rpx !important;
  2141. font-weight: 800 !important;
  2142. }
  2143. .active2 {
  2144. color: #1A1A1A !important;
  2145. font-size: 38rpx !important;
  2146. font-weight: 800 !important;
  2147. }
  2148. .active3 {
  2149. color: #1A1A1A !important;
  2150. font-size: 28rpx !important;
  2151. font-weight: 800 !important;
  2152. }
  2153. .topbg {
  2154. width: 100%;
  2155. background-color: #00DD9A;
  2156. }
  2157. .top-bg {
  2158. position: absolute;
  2159. top: 0;
  2160. z-index: 0;
  2161. width: 100%;
  2162. }
  2163. .topbg-sticky-box {
  2164. width: 100%;
  2165. padding: 0 20rpx;
  2166. position: relative;
  2167. z-index: 1;
  2168. }
  2169. .topbg-sticky-title {
  2170. width: 100%;
  2171. margin-bottom: 20rpx;
  2172. }
  2173. .topbg-sticky-title-left {
  2174. color: rgba(255, 255, 255, 1);
  2175. font-family: DM Sans;
  2176. font-size: 28rpx;
  2177. font-weight: 700;
  2178. line-height: 36rpx;
  2179. letter-spacing: 0%;
  2180. text-align: left;
  2181. }
  2182. .xing-icon {
  2183. width: 42rpx;
  2184. height: 42rpx;
  2185. margin-right: 12rpx;
  2186. }
  2187. .topbg-sticky-title-right {
  2188. color: #ffffff;
  2189. }
  2190. .topbg-sticky-subtitle {
  2191. color: rgba(255, 255, 255, 1);
  2192. font-family: DM Sans;
  2193. font-size: 30rpx;
  2194. font-weight: 700;
  2195. line-height: 36rpx;
  2196. letter-spacing: 0%;
  2197. text-align: left;
  2198. }
  2199. .topbg-type {
  2200. width: 710rpx;
  2201. border-radius: 6px;
  2202. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  2203. background: rgba(255, 255, 255, 1);
  2204. // background: transparent;
  2205. padding: 18rpx;
  2206. margin: 0 auto 12rpx;
  2207. position: relative;
  2208. z-index: 1;
  2209. .topbg-type-box {
  2210. width: 100%;
  2211. margin: 0 20rpx;
  2212. }
  2213. .topbg-type-box-row {
  2214. margin-bottom: 20rpx;
  2215. }
  2216. .topbg-type-box-l {
  2217. flex: 1;
  2218. white-space: nowrap;
  2219. overflow-x: auto;
  2220. }
  2221. .topbg-type-box-l-i {
  2222. color: rgba(153, 153, 153, 1);
  2223. font-family: DM Sans;
  2224. font-size: 24rpx;
  2225. font-weight: 400;
  2226. line-height: 28rpx;
  2227. letter-spacing: 0%;
  2228. text-align: left;
  2229. margin-right: 28rpx;
  2230. &.i-active {
  2231. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  2232. -webkit-background-clip: text;
  2233. -webkit-text-fill-color: transparent;
  2234. background-clip: text;
  2235. text-fill-color: transparent;
  2236. font-family: DM Sans;
  2237. font-size: 28rpx;
  2238. font-weight: 700;
  2239. line-height: 36rpx;
  2240. letter-spacing: 0%;
  2241. text-align: left;
  2242. }
  2243. }
  2244. .topbg-type-box-r {
  2245. color: #ffffff;
  2246. }
  2247. .attachment-icon {
  2248. width: 38rpx;
  2249. height: 38rpx;
  2250. margin-left: 20rpx;
  2251. }
  2252. // 筛选内容
  2253. .topbg-search {
  2254. .topbg-search-item {
  2255. font-size: 16rpx;
  2256. font-weight: 400;
  2257. line-height: 20rpx;
  2258. color: rgba(153, 153, 153, 1);
  2259. padding: 8rpx;
  2260. border: 0.5px solid rgba(198, 198, 198, 0.1);
  2261. border-radius: 8rpx;
  2262. background: rgba(198, 198, 198, 0.1);
  2263. .topbg-search-item__text {
  2264. display: block;
  2265. max-width: 120rpx;
  2266. text-overflow: ellipsis;
  2267. overflow: hidden;
  2268. white-space: nowrap;
  2269. margin-right: 8rpx;
  2270. }
  2271. &.mr-4 {
  2272. margin-left: 10rpx;
  2273. }
  2274. &.topbg-search-item__active {
  2275. color: #016bf6;
  2276. background: rgba(153, 196, 250, 0.4);
  2277. border-color: #016bf6;
  2278. }
  2279. }
  2280. }
  2281. }
  2282. .companyListBox {
  2283. width: 100%;
  2284. background-color: #F2F2F7;
  2285. }
  2286. .title-left {
  2287. display: flex;
  2288. align-items: center;
  2289. gap: 8rpx;
  2290. }
  2291. .job-title-text {
  2292. color: rgba(23, 23, 37, 1);
  2293. font-family: DM Sans;
  2294. font-size: 32rpx;
  2295. font-weight: bold;
  2296. line-height: 48rpx;
  2297. letter-spacing: 0.5%;
  2298. text-align: left;
  2299. }
  2300. .salary-text-box {
  2301. border-radius: 24rpx;
  2302. background: #FEE2E3;
  2303. display: flex;
  2304. justify-content: flex-start;
  2305. align-items: center;
  2306. padding: 0 16rpx;
  2307. .jipin-icon {
  2308. width: 20rpx;
  2309. height: 20rpx;
  2310. margin-right: 8rpx;
  2311. }
  2312. .jipin-text {
  2313. color: rgba(237, 66, 69, 1);
  2314. font-family: DM Sans;
  2315. font-size: 16rpx;
  2316. font-weight: 400;
  2317. line-height: 40rpx;
  2318. letter-spacing: 0.5%;
  2319. text-align: left;
  2320. }
  2321. }
  2322. .clip-color {
  2323. font-size: 24rpx;
  2324. font-weight: bold;
  2325. line-height: 40rpx;
  2326. background-image: linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1));
  2327. -webkit-background-clip: text;
  2328. color: transparent;
  2329. background-clip: text;
  2330. }
  2331. .company-name,
  2332. .company-people {
  2333. color: rgba(156, 164, 171, 1);
  2334. font-family: DM Sans;
  2335. font-size: 24rpx;
  2336. font-weight: 400;
  2337. line-height: 40rpx;
  2338. letter-spacing: 0.5%;
  2339. text-align: left;
  2340. }
  2341. .job-tag {
  2342. padding: 8rpx;
  2343. border-radius: 8rpx;
  2344. background: rgba(198, 198, 198, 0.1);
  2345. margin-right: 8rpx;
  2346. margin-bottom: 8rpx;
  2347. color: rgba(153, 153, 153, 1);
  2348. font-size: 20rpx;
  2349. line-height: 1;
  2350. }
  2351. .company-info-text,
  2352. .location-text {
  2353. color: rgba(156, 164, 171, 1);
  2354. font-family: DM Sans;
  2355. font-size: 20rpx;
  2356. font-weight: 400;
  2357. line-height: 40rpx;
  2358. letter-spacing: 0.5%;
  2359. text-align: left;
  2360. }
  2361. .reply-time {
  2362. display: flex;
  2363. flex-direction: row;
  2364. justify-content: center;
  2365. align-items: center;
  2366. padding: 4rpx 8rpx;
  2367. font-family: DM Sans;
  2368. font-size: 16rpx;
  2369. font-weight: 400;
  2370. line-height: 20rpx;
  2371. letter-spacing: 0.5%;
  2372. text-align: left;
  2373. border-radius: 12rpx;
  2374. background: #ECE1FD;
  2375. color: #8858C5;
  2376. }
  2377. .gwList {
  2378. width: 100%;
  2379. flex: 1;
  2380. overflow: auto;
  2381. }
  2382. .position-list {
  2383. margin: 0 20rpx;
  2384. padding-bottom: 100rpx;
  2385. }
  2386. .gwList,
  2387. .position-list {
  2388. .gwList-box {
  2389. width: 710rpx;
  2390. height: 100%;
  2391. .gwList-box-item {
  2392. width: 712rpx;
  2393. background-color: #ffffff;
  2394. border-radius: 12rpx;
  2395. box-shadow: 0px 2rpx 4rpx 0px rgba(0, 0, 0, 0.1);
  2396. background: rgba(253, 253, 253, 1);
  2397. margin-bottom: 12rpx;
  2398. padding: 16rpx 36rpx;
  2399. }
  2400. .gwList-box-item-box {
  2401. width: 100%;
  2402. .gwList-box-item-box-title {
  2403. margin-bottom: 12rpx;
  2404. }
  2405. .gwList-box-item-box-label {
  2406. margin-top: 14rpx;
  2407. }
  2408. .gwList-box-item-box-name {
  2409. color: rgba(156, 164, 171, 1);
  2410. font-size: 24rpx;
  2411. font-weight: 400;
  2412. line-height: 40rpx;
  2413. .company-name-overflow {
  2414. max-width: 360rpx;
  2415. overflow: hidden;
  2416. text-overflow: ellipsis;
  2417. white-space: nowrap;
  2418. margin-right: 8rpx;
  2419. }
  2420. }
  2421. .experience {
  2422. font-size: 24rpx;
  2423. line-height: 32rpx;
  2424. color: rgba(1, 107, 246, 1);
  2425. text {
  2426. margin-left: 12rpx;
  2427. }
  2428. }
  2429. .benefits {
  2430. width: 640rpx;
  2431. font-size: 20rpx;
  2432. line-height: 28rpx;
  2433. color: rgba(153, 153, 153, 1);
  2434. overflow: hidden;
  2435. text-overflow: ellipsis;
  2436. white-space: nowrap;
  2437. margin-top: 12rpx;
  2438. }
  2439. .gwList-box-item-box-line {
  2440. width: 100%;
  2441. border: 1rpx solid #E6E6E6;
  2442. margin-top: 30rpx;
  2443. margin-bottom: 20rpx;
  2444. }
  2445. .gwList-box-item-box-info {
  2446. font-size: 26rpx;
  2447. margin-top: 10rpx;
  2448. .gwList-box-item-box-info-l {
  2449. color: #1A1A1A;
  2450. display: flex;
  2451. align-items: center;
  2452. gap: 12rpx;
  2453. .people {
  2454. max-width: 110rpx;
  2455. overflow: hidden; //超出的文本隐藏
  2456. text-overflow: ellipsis; //溢出用省略号显示
  2457. white-space: nowrap; // 默认不换行;
  2458. }
  2459. }
  2460. .gwList-box-item-box-info-r {
  2461. color: #999999;
  2462. max-width: 50%;
  2463. overflow: hidden; //超出的文本隐藏
  2464. text-overflow: ellipsis; //溢出用省略号显示
  2465. white-space: nowrap; // 默认不换行;
  2466. }
  2467. }
  2468. }
  2469. }
  2470. }
  2471. .banner {
  2472. width: 100%;
  2473. height: 250rpx;
  2474. // margin-top: 20rpx;
  2475. .banner-box {
  2476. width: 686rpx;
  2477. height: 100%;
  2478. border-radius: 24rpx;
  2479. }
  2480. }
  2481. .isfixed {
  2482. border-radius: 0 !important;
  2483. }
  2484. .isfixeds {
  2485. // border-radius: 40rpx 40rpx 0 0;
  2486. }
  2487. .qyList {
  2488. width: 100%;
  2489. overflow: auto;
  2490. flex: 1;
  2491. .qyList-box {
  2492. width: 712rpx;
  2493. height: 100%;
  2494. .qyList-box-item {
  2495. width: 100%;
  2496. padding: 16rpx 36rpx;
  2497. // height: 400rpx;
  2498. // padding-bottom: 40rpx;
  2499. background-color: #ffffff;
  2500. border-radius: 12rpx;
  2501. margin-bottom: 12rpx;
  2502. box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  2503. .qyList-box-item-box {
  2504. width: 100%;
  2505. height: 100%;
  2506. }
  2507. .qyList-box-item-info {
  2508. // margin-top: 40rpx;
  2509. }
  2510. .qyList-box-item-info-r{
  2511. position: relative;
  2512. margin-right: 20rpx;
  2513. .avatar {
  2514. display: block;
  2515. width: 72rpx;
  2516. height: 72rpx;
  2517. border-radius: 50%;
  2518. border: 0.5px solid rgba(240, 240, 240, 1);
  2519. }
  2520. .sex-icon {
  2521. position: absolute;
  2522. top: 0;
  2523. right: 0;
  2524. display: block;
  2525. width: 22rpx;
  2526. height: 22rpx;
  2527. border-radius: 50%;
  2528. background: #fff;
  2529. border: 0.5px solid #fff;
  2530. }
  2531. }
  2532. .qyList-box-item-info-l {
  2533. flex: 1;
  2534. .user-name {
  2535. max-width: 260rpx;
  2536. font-size: 28rpx;
  2537. font-weight: 500;
  2538. line-height: 36rpx;
  2539. color: rgba(51, 51, 51, 1);
  2540. margin-right: 8rpx;
  2541. overflow: hidden;
  2542. text-overflow: ellipsis;
  2543. white-space: nowrap;
  2544. }
  2545. .status-tag {
  2546. padding: 8rpx;
  2547. font-size: 16rpx;
  2548. line-height: 20rpx;
  2549. border-radius: 8rpx;
  2550. margin-right: 8rpx;
  2551. }
  2552. .online-minutes {
  2553. color: rgba(144.88, 87.8, 191.25, 1);
  2554. background: linear-gradient(132.53deg, rgba(106.94, 84.63, 214.02, 0.1) -1.914%,rgba(144.88, 87.8, 191.25, 0.1) 97.996%);
  2555. }
  2556. .online-status {
  2557. color: rgba(29, 209, 104, 1);
  2558. background: rgba(213, 255, 231, 1);
  2559. }
  2560. .base-info {
  2561. margin-top: 6rpx;
  2562. text {
  2563. font-size: 24rpx;
  2564. line-height: 32rpx;
  2565. color: rgba(1, 107, 246, 1);
  2566. margin-right: 12rpx;
  2567. }
  2568. }
  2569. }
  2570. .company-info {
  2571. margin-top: 16rpx;
  2572. .icon {
  2573. width: 40rpx;
  2574. height: 40rpx;
  2575. margin-right: 8rpx;
  2576. }
  2577. .company-text {
  2578. max-width: 420rpx;
  2579. color: rgba(156, 164, 171, 1);
  2580. font-size: 24rpx;
  2581. }
  2582. .company-tag {
  2583. height: 32rpx;
  2584. font-size: 20rpx;
  2585. line-height: 1;
  2586. color: #fff;
  2587. border-radius: 8rpx;
  2588. background: linear-gradient(90.00deg, rgba(13, 39, 247, 0.75) 0%,rgba(19, 193, 234, 0.75) 100%);
  2589. padding: 6rpx 7rpx;
  2590. margin-left: 20rpx;
  2591. box-sizing: border-box;
  2592. }
  2593. .time {
  2594. font-size: 20rpx;
  2595. line-height: 40rpx;
  2596. color: rgba(144.88, 87.8, 191.25, 1);
  2597. }
  2598. }
  2599. // tag样式
  2600. .tags {
  2601. display: flex;
  2602. flex-wrap: wrap;
  2603. .tag {
  2604. padding: 8rpx;
  2605. border-radius: 8rpx;
  2606. background: rgba(198, 198, 198, 0.1);
  2607. font-size: 20rpx;
  2608. line-height: 1;
  2609. color: rgba(153, 153, 153, 1);
  2610. margin-top: 8rpx;
  2611. margin-right: 8rpx;
  2612. }
  2613. }
  2614. .bottom-section {
  2615. color: rgba(156, 164, 171, 1);
  2616. font-size: 24rpx;
  2617. line-height: 40rpx;
  2618. margin-top: 12rpx;
  2619. .expection-icon {
  2620. width: 40rpx;
  2621. height: 40rpx;
  2622. margin-right: 8rpx;
  2623. }
  2624. }
  2625. }
  2626. }
  2627. }
  2628. // 跨境标签弹窗
  2629. .tag-popup-container {
  2630. padding: 36rpx 40rpx 50rpx;
  2631. .tag-popup-title {
  2632. font-size: 32rpx;
  2633. font-weight: 500;
  2634. line-height: 44rpx;
  2635. color: rgba(31, 44, 55, 1);
  2636. margin-bottom: 24rpx;
  2637. }
  2638. .tag-popup-tip {
  2639. font-size: 28rpx;
  2640. line-height: 36rpx;
  2641. color: rgba(158, 158, 158, 1);
  2642. margin-bottom: 24rpx;
  2643. }
  2644. .tag-popup-section {
  2645. .tag-popup-sub-title {
  2646. color: rgba(31, 44, 55, 1);
  2647. font-size: 28rpx;
  2648. font-weight: 500;
  2649. line-height: 44rpx;
  2650. margin-bottom: 24rpx;
  2651. }
  2652. .tag-wrapper {
  2653. display: flex;
  2654. flex-wrap: wrap;
  2655. .tag {
  2656. font-size: 24rpx;
  2657. line-height: 1;
  2658. color: rgba(153, 153, 153, 1);
  2659. padding: 8rpx;
  2660. margin-right: 12rpx;
  2661. margin-bottom: 24rpx;
  2662. border-radius: 8rpx;
  2663. background: rgba(198, 198, 198, 0.2);
  2664. border: 0.5px solid rgba(198, 198, 198, 0.2);
  2665. &.tag-select-active {
  2666. color: rgba(1, 107, 246, 1);
  2667. background: rgba(1, 107, 246, 0.1);
  2668. border: 0.5px solid rgba(1, 107, 246, 1);
  2669. }
  2670. }
  2671. }
  2672. }
  2673. .tag-popup-buttons {
  2674. display: flex;
  2675. justify-content: space-between;
  2676. align-items: center;
  2677. margin-top: 80rpx;
  2678. .tag-popup-button {
  2679. width: 326rpx;
  2680. height: 80rpx;
  2681. text-align: center;
  2682. line-height: 80rpx;
  2683. border-radius: 80rpx;
  2684. background: rgba(1, 107, 246, 0.1);
  2685. color: rgba(1, 107, 246, 1);
  2686. font-size: 32rpx;
  2687. line-height: 80rpx;
  2688. }
  2689. .main-button {
  2690. color: #fff;
  2691. background: linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1));
  2692. }
  2693. }
  2694. }
  2695. // 陈列页推荐区域
  2696. .default-scroll-view {
  2697. box-sizing: border-box;
  2698. }
  2699. .recommend-section {
  2700. padding: 28rpx 20rpx 20rpx;
  2701. border-radius: 12rpx;
  2702. box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.05);
  2703. background: linear-gradient(90.00deg, rgba(19, 193, 234, 0.3),rgba(13, 39, 247, 0.3) 100%);
  2704. margin: 0 20rpx;
  2705. .recommend-title {
  2706. color: #fff;
  2707. margin-bottom: 20rpx;
  2708. .recommend-title-l {
  2709. font-size: 32rpx;
  2710. font-weight: 700;
  2711. line-height: 44rpx;
  2712. }
  2713. .recommend-title-r {
  2714. display: flex;
  2715. align-items: center;
  2716. font-size: 16rpx;
  2717. .refresh-icon {
  2718. display: block;
  2719. margin-left: 6rpx;
  2720. width: 30rpx;
  2721. height: 30rpx;
  2722. }
  2723. }
  2724. }
  2725. .recommend-company-item {
  2726. padding: 16rpx;
  2727. background: #fff;
  2728. margin-bottom: 8rpx;
  2729. border-radius: 12rpx;
  2730. &:last-child {
  2731. margin-bottom: 0;
  2732. }
  2733. .company-img {
  2734. display: block;
  2735. width: 116rpx;
  2736. height: 116rpx;
  2737. border-radius: 12rpx;
  2738. margin-right: 24rpx;
  2739. }
  2740. .recommend-company-info-wrapper {
  2741. flex: 1;
  2742. .recommend-company-name {
  2743. font-size: 20rpx;
  2744. font-weight: 500;
  2745. line-height: 26rpx;
  2746. color: rgba(29, 33, 41, 1);
  2747. }
  2748. .tip {
  2749. width: 500rpx;
  2750. margin-top: 4rpx;
  2751. font-size: 20rpx;
  2752. line-height: 26rpx;
  2753. color: rgba(153, 153, 153, 1);
  2754. overflow: hidden;
  2755. text-overflow: ellipsis;
  2756. white-space: nowrap;
  2757. }
  2758. .positions {
  2759. height: 40rpx;
  2760. .position-icon {
  2761. display: block;
  2762. width: 24rpx;
  2763. height: 24rpx;
  2764. margin-right: 12rpx;
  2765. }
  2766. .position-text {
  2767. width: 450rpx;
  2768. overflow: hidden;
  2769. text-overflow: ellipsis;
  2770. white-space: nowrap;
  2771. font-size: 24rpx;
  2772. color: rgba(1, 107, 246, 1);
  2773. }
  2774. }
  2775. }
  2776. }
  2777. }
  2778. .position-title {
  2779. margin: 12rpx 20rpx;
  2780. border-radius: 12px;
  2781. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  2782. background: rgba(255, 255, 255, 1);
  2783. padding: 26rpx 20rpx;
  2784. text {
  2785. background-image: linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1));
  2786. -webkit-background-clip: text;
  2787. color: transparent;
  2788. background-clip: text;
  2789. font-style: Bold;
  2790. font-size: 32rpx;
  2791. font-weight: 700;
  2792. }
  2793. }
  2794. </style>