index.vue 81 KB

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