index.vue 81 KB

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