index.vue 81 KB

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