index.vue 80 KB

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