index.vue 81 KB

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