index.vue 81 KB

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