index.vue 81 KB

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