index.vue 81 KB

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