index.vue 74 KB

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