im.vue 110 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622
  1. <template>
  2. <view>
  3. <!-- 顶部导航栏 -->
  4. <view class="top-navbar">
  5. <view class="navbar-content">
  6. <!-- 左侧返回按钮 -->
  7. <view class="navbar-left" @click="goBack">
  8. <u-icon name="arrow-leftward" size="48" color="#333"></u-icon>
  9. </view>
  10. <!-- 中间用户信息 -->
  11. <view class="navbar-center">
  12. <view v-if="userType==1" class="user-info">
  13. <view class="avatar-container">
  14. <image :src="postPushInfo.hr&&postPushInfo.hr.hrImg || '../../static/logo.png'" class="user-avatar" mode="aspectFill"></image>
  15. <view class="status-indicator" :style="{ 'background': postPushInfo.user&&postPushInfo.user.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 0.1)' : '#999' }"></view>
  16. </view>
  17. <view class="user-details">
  18. <view class="user-name">{{ postPushInfo.user&&postPushInfo.user.userName || '未知' }}</view>
  19. <view class="user-title">{{ postPushInfo.company && postPushInfo.company.companyName ||(postPushInfo.company &&postPushInfo.company.companyAllName|| '未知公司') }} · {{postPushInfo.hr&&postPushInfo.hr.hrPosition || '未知'}}</view>
  20. </view>
  21. </view>
  22. <view v-else class="user-info">
  23. <view class="avatar-container">
  24. <image :src="resumesInfo.avatar || '../../static/logo.png'" class="user-avatar" mode="aspectFill"></image>
  25. <view class="status-indicator" :style="{ 'background': postPushInfo.user&&postPushInfo.user.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 0.1)' : '#999' }"></view>
  26. </view>
  27. <view class="user-details">
  28. <view class="user-name">{{ resumesInfo.userName || '未知' }}</view>
  29. <view class="user-title">{{ postPushInfo.ruleClassifyName || '未知岗位' }}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 右侧更多按钮 -->
  34. <view v-if="false" class="navbar-right" @click="showMoreOptions">
  35. <u-icon name="more-dot-fill" size="38" color="#333"></u-icon>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- 顶部操作 -->
  40. <view class="topSe flex justify-center" v-if="userType==1">
  41. <view class="topSe-box flex align-center justify-around">
  42. <view class="topSe-box-item flex flex-wrap justify-center" @click="currentPhone()">
  43. <image src="../../static/im/mobilePhone2.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  44. <view class="" style="color: #999999;">
  45. 换电话
  46. </view>
  47. <view v-if="isSendPhone" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  48. </view>
  49. <view class="topSe-box-item flex flex-wrap justify-center" @click="currentWchat()">
  50. <image src="../../static/im/weiChat2.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  51. <view class="" style="color: #999999;">
  52. 换微信
  53. </view>
  54. <view v-if="isSendWx" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  55. </view>
  56. <view class="topSe-box-item flex flex-wrap justify-center" @click="sendResumes()">
  57. <image src="../../static/im/orderInfo2.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  58. <view class="" style="color: #999999;">
  59. 发简历
  60. </view>
  61. <view v-if="isSendResumes" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  62. </view>
  63. <view class="topSe-box-item flex flex-wrap justify-center" @click="noIdtent()">
  64. <image src="../../static/im/nowei.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  65. <view class="" style="color: #999999;">
  66. 无兴趣
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="topSe flex justify-center" v-else>
  72. <view class="topSe-box flex align-center justify-around">
  73. <view class="topSe-box-item flex flex-wrap justify-center" @click="currentPhone()">
  74. <image src="../../static/im/mobilePhone.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
  75. <view class="" style="color: #999999;">
  76. 换电话
  77. </view>
  78. <view v-if="isSendPhone" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  79. </view>
  80. <view class="topSe-box-item flex flex-wrap justify-center" @click="currentWchat()">
  81. <image src="../../static/im/weiChat.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
  82. <view class="" style="color: #999999;">
  83. 换微信
  84. </view>
  85. <view v-if="isSendWx" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  86. </view>
  87. <view class="topSe-box-item flex flex-wrap justify-center" @click="giveSendResumes()">
  88. <image src="../../static/im/orderInfo.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
  89. <view class="" style="color: #999999;">
  90. 求简历
  91. </view>
  92. <view v-if="isSendResumes" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  93. </view>
  94. <view class="topSe-box-item flex flex-wrap justify-center" @click="mianshiF()">
  95. <image src="../../static/im/mianshi.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
  96. <view class="" style="color: #999999;">
  97. 约面试
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <scroll-view scroll-y="true" @touchstart="hideDrawer" @scroll="scroll" :scroll-top="scrollTop"
  103. style="height: calc(100vh - 360rpx);width: 100%;padding: 20rpx 0;">
  104. <!-- 温馨提示 -->
  105. <!-- <view class="xuanfu">
  106. <view class="xuanfu-box flex">
  107. <view class="" style="margin-right: 10rpx;">
  108. <image style="width: 30rpx;height: 30rpx;"
  109. src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/07/85e0d70ba1d9a78463b36bf7f92f6dca.png"
  110. mode=""></image>
  111. </view>
  112. <view class="">
  113. {{messages}}
  114. </view>
  115. </view>
  116. </view> -->
  117. <!-- 岗位简介 -->
  118. <view class="jobs flex justify-center" v-if="JSON.stringify(postPushInfo)!='{}'&&userType==1">
  119. <view class="jobs-box">
  120. <view class="gwList-box-item flex justify-center" @click="gotoInfo(postPushInfo.postPushId)">
  121. <view class="gwList-box-item-box">
  122. <view class="gwList-box-item-box-title flex justify-between align-center">
  123. <text>{{postPushInfo.ruleClassifyName || '暂无岗位'}}</text>
  124. <text>{{postPushInfo.salaryRange}}</text>
  125. </view>
  126. <!-- 公司和人数 -->
  127. <view class="gwList-box-item-box-name flex align-center">
  128. <text>{{postPushInfo.company?postPushInfo.company.companyName:''}}</text>
  129. <text
  130. v-if="postPushInfo.company">{{postPushInfo.company?postPushInfo.company.companyPeople:'0人'}}</text>
  131. </view>
  132. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  133. <!-- 本科 -->
  134. <text
  135. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;">
  136. {{postPushInfo.education}}
  137. </text>
  138. <!-- 要求年限 -->
  139. <text
  140. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;">
  141. {{postPushInfo.experience}}
  142. </text>
  143. <!-- 单双休 -->
  144. <text v-if="postPushInfo.company"
  145. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;">
  146. {{postPushInfo.company.workRestTime}}
  147. </text>
  148. <!-- 岗位福利 -->
  149. <text v-for="(item, index) in postPushInfo.welfareTag ? postPushInfo.welfareTag.split(';') : []" :key="index"
  150. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;">
  151. {{item}}
  152. </text>
  153. <text
  154. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;"
  155. v-for="(ite,ind) in postPushInfo.positionWelfare" :key="ind">{{ite}}</text>
  156. </view>
  157. <!-- <view class="gwList-box-item-box-line"></view> -->
  158. <!-- 工作描述 -->
  159. <view class="gwList-box-item-box-info-text">
  160. <block v-if="isHtmlContent">
  161. <view :class="['job-description-item',!isJobDescExpanded?'job-description-itemAll':'']" v-html="postPushInfo.positionDetails"></view>
  162. </block>
  163. <block v-else>
  164. <view :class="['job-description-item',!isJobDescExpanded?'job-description-itemAll':'']">{{postPushInfo.positionDetails}}</view>
  165. </block>
  166. <!-- 展开/收起按钮 -->
  167. <view class="expand-btn" @click.stop="toggleJobDesc">
  168. <text class="expand-text">{{ isJobDescExpanded ? '收起' : '展开更多' }}</text>
  169. </view>
  170. </view>
  171. <!-- hr信息 -->
  172. <view class="gwList-box-item-box-info flex justify-between align-center">
  173. <view class="gwList-box-item-box-info-l flex align-center">
  174. <image
  175. :src="postPushInfo.hr&&postPushInfo.hr.hrImg?postPushInfo.hr.hrImg:'../../static/logo.png'"
  176. style="width: 58rpx;height: 58rpx;border-radius: 50%;margin-right: 20rpx;"
  177. mode=""></image>
  178. <view class="people">
  179. {{postPushInfo.user&&postPushInfo.user.userName?postPushInfo.user.userName:'未知'}}
  180. </view>·{{postPushInfo.hr&&postPushInfo.hr.hrPosition||'创始人'}}
  181. </view>
  182. <!--
  183. <view class="gwList-box-item-box-info-r flex justify-end">
  184. {{postPushInfo.county}} {{postPushInfo.address}}
  185. </view>
  186. -->
  187. </view>
  188. <!-- 时间和收藏 -->
  189. <view class="time-favorite flex justify-between align-center">
  190. <view class="time-text">
  191. {{conversationInfo.createTime&&conversationInfo.createTime}} 向你发起的沟通
  192. </view>
  193. <view :class="['favorite-btn flex align-center',postPushInfo.isCollection?'collectActived':'']" @click.stop="setCollection(postPushInfo.postPushId)">
  194. <text class="favorite-icon"><u-icon :name="postPushInfo.isCollection?'star-fill':'star'"></u-icon></text>
  195. <text class="favorite-text">收藏职位</text>
  196. </view>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. <!-- 简历简介 -->
  203. <view class="jobs flex justify-center" v-if="JSON.stringify(resumesInfo)!='{}'"
  204. @click="goNav('/pages/talentSearch/resumeDetail?resumesId=' + resumesId + '&postPushId=' + postPushId + '&isShowBtn=' + 1)">
  205. <view class="talent-list">
  206. <view class="talent-card">
  207. <view class="talent-content">
  208. <!-- 头像和基本信息 -->
  209. <view class="talent-header">
  210. <image :src="resumesInfo&&resumesInfo.avatar||'../../static/logo.png'" class="talent-avatar" mode="aspectFill"></image>
  211. <view class="talent-info">
  212. <view class="talent-name-section">
  213. <view class="talent-name">期望:{{ resumesInfo.intentionRuleClassifyName }} <text class="talentRange">{{resumesInfo.intentionSalaryRange}}</text></view>
  214. <!-- <view class="talent-tags">
  215. <view class="status-tag online" v-if="resumesInfo.isOnline">在线</view>
  216. <view class="status-tag hot" v-if="talent.isHot">热门搜索</view>
  217. <view class="status-tag active" v-if="resumesInfo.lastActive">{{ resumesInfo.lastActive }}
  218. </view>
  219. </view> -->
  220. </view>
  221. <!-- 经验和薪资 -->
  222. <view class="talent-experience">
  223. <text class="experience-text">{{ resumesInfo.resumesWorkExperience || 0 }}年</text>
  224. <text class="education-salary">{{ postPushInfo.education}}</text>
  225. <text class="education-salary">{{ postPushInfo.salaryRange}}</text>
  226. <text class="status-text">{{ jobStatusList[resumesInfo.resumesStatus].text}}</text>
  227. </view>
  228. </view>
  229. </view>
  230. <!-- 当前职位 -->
  231. <view class="current-job">
  232. <image src="../../static/images/aixin.svg" class="job-icon" mode="aspectFit"></image>
  233. <text class="job-text">{{ resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.companyName||'' }}·{{ resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.lastWorkPosition||'' }}</text>
  234. </view>
  235. <!-- 求职期望 -->
  236. <view class="job-expectation">
  237. <image src="../../static/images/xiangzi.svg" class="job-icon" mode="aspectFit"></image>
  238. <text class="expectation-text">{{ resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.school||'' }}·{{ resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.profession||'' }}</text>
  239. </view>
  240. <!-- 技能标签 -->
  241. <view class="skill-tags">
  242. <view class="skill-tag" v-for="(skill, skillIndex) in resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.intentIndustry&&resumesInfo.resumesListDtoList.intentIndustry.split('/')||[]" :key="skillIndex">
  243. {{ skill }}
  244. </view>
  245. </view>
  246. <!-- 工作描述 -->
  247. <view class="job-description">
  248. <text class="description-text">{{ resumesInfo.adv }}</text>
  249. </view>
  250. </view>
  251. <view class="time-favorite flex justify-between align-center">
  252. <view class="time-text">
  253. {{conversationInfo.createTime&&conversationInfo.createTime.substring(0,10)}} 沟通的职位-{{resumesInfo.intentionRuleClassifyName}}
  254. </view>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. <!-- 聊天记录 -->
  260. <view style="display: flex;flex-direction: column;" v-for="(item,index) in ListItem" :key="index" :id=" 'id-'+index">
  261. <view style="margin-top: 15rpx;width: 100%;text-align: center;font-size: 26rpx;color: #999999;"
  262. v-if="item.createTime">
  263. {{item.createTime}}
  264. </view>
  265. <!-- 对方消息 -->
  266. <view v-if="item.userId && userId != item.userId" style="width: 83%;margin-right: 15%;">
  267. <view class="chat-listitem" style="float: left;margin-left: 10rpx;">
  268. <view @click="goGuanZhu">
  269. <image :lazy-load="true" mode="aspectFill" :src="item.avatar ? item.avatar : '/static/logo.png'"
  270. class="chat-listitem-image"></image>
  271. </view>
  272. <view v-if="item.content && item.messageType === 1" @longpress="copyAndJubao(item)"
  273. class="chat-listitem-text"
  274. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">{{item.content}}</view>
  275. <view v-if="item.messageType === 20" @tap="sendCallVideo(2)"
  276. class="chat-listitem-text flex align-center"
  277. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  278. 视频通话
  279. <image src="../../static/im/historyVideo_black.png"
  280. style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
  281. </view>
  282. <view v-if="item.messageType === 21" @tap="sendCallVideo(1)"
  283. class="chat-listitem-text flex align-center"
  284. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  285. 语音通话
  286. <image src="../../static/im/historyAudio_black.png"
  287. style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
  288. </view>
  289. <!-- 互换手机号 -->
  290. <view v-if="item.content && item.messageType === 5 && item.content=='手机号请求'"
  291. @longpress="copy(item.content)" class="chat-listitem-text"
  292. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  293. <view class="flex align-center">
  294. <image src="../../static/im/mobilePhone.png"
  295. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  296. 我想跟你交换手机号,是否同意?
  297. </view>
  298. <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
  299. <view @click.stop="refuseFun(item.chatContentId)"
  300. class="flex justify-center align-center"
  301. style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
  302. 拒绝
  303. </view>
  304. <view @click.stop="tongyi(item.messageType,item.chatContentId)"
  305. class="flex justify-center align-center"
  306. style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
  307. 同意
  308. </view>
  309. </view>
  310. </view>
  311. <view v-if="item.content && item.messageType === 5 && item.content!='手机号请求'"
  312. class="chat-listitem-text"
  313. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  314. 已同意交换手机号
  315. </view>
  316. <view v-if="item.content && item.messageType === 7"
  317. @longpress="copyss(item.content,item.userType,'phone')" class="chat-listitem-text"
  318. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  319. <view class="" v-if="item.userType==1">
  320. 我的手机号为:{{JSON.parse(item.content).userPhone}}
  321. </view>
  322. <view class="" v-else>
  323. 我的手机号为:{{JSON.parse(item.content).companyPhone}}
  324. </view>
  325. </view>
  326. <!-- 互换微信号 -->
  327. <view v-if="item.content && item.messageType === 6 && item.content=='微信号请求'"
  328. @longpress="copy(item.content)" class="chat-listitem-text"
  329. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  330. <view class="flex align-center">
  331. <image src="../../static/im/weiChat.png"
  332. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  333. 我想跟你交换微信号,是否同意?
  334. </view>
  335. <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
  336. <view @click.stop="refuseFun(item.chatContentId)"
  337. class="flex justify-center align-center"
  338. style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
  339. 拒绝
  340. </view>
  341. <view @click.stop="tongyi(item.messageType,item.chatContentId)"
  342. class="flex justify-center align-center"
  343. style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
  344. 同意
  345. </view>
  346. </view>
  347. </view>
  348. <view v-if="item.content && item.messageType === 6 && item.content!='微信号请求'"
  349. class="chat-listitem-text"
  350. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  351. 已同意交换微信号
  352. </view>
  353. <view v-if="item.content && item.messageType === 8"
  354. @longpress="copyss(item.content,item.userType,'wx')" class="chat-listitem-text"
  355. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  356. <view class="" v-if="item.userType==1">
  357. 我的微信号为:{{JSON.parse(item.content).userWx}}
  358. </view>
  359. <view class="" v-else>
  360. 我的微信号为:{{JSON.parse(item.content).companyWx}}
  361. </view>
  362. </view>
  363. <view v-if="item.content && item.messageType === 9 && item.content=='简历请求'"
  364. @longpress="copy(item.content)" class="chat-listitem-text"
  365. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  366. <view class="flex align-center">
  367. <image src="../../static/im/orderInfo.png"
  368. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  369. 我想要你的一份简历,是否同意?
  370. </view>
  371. <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
  372. <view @click.stop="refuseFun(item.chatContentId)"
  373. class="flex justify-center align-center"
  374. style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
  375. 拒绝
  376. </view>
  377. <view @click.stop="resumesTy()" class="flex justify-center align-center"
  378. style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
  379. 同意
  380. </view>
  381. </view>
  382. </view>
  383. <view v-if="item.content && item.messageType === 9 && item.content!='简历请求'"
  384. @longpress="copy(item.content)" class="chat-listitem-text"
  385. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  386. <view class="flex align-center">
  387. <image src="../../static/im/orderInfo.png"
  388. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  389. {{item.content}}
  390. </view>
  391. </view>
  392. <view v-if="item.content && item.messageType === 10" class="chat-listitem-text bg-style"
  393. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  394. <block v-if="item.userType == 1">
  395. <view class="flex align-center" @click="previewResume(item.content)">
  396. <image src="../../static/im/orderInfo.png"
  397. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  398. 点击预览附件简历
  399. </view>
  400. </block>
  401. <block v-else>{{item.content}}</block>
  402. </view>
  403. <view v-if="item.content && item.messageType === 12" class="chat-listitem-text"
  404. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  405. {{item.content}}已拒绝
  406. </view>
  407. <view class="chat-listitem-text bg-style" style="margin-left: 20rpx;"
  408. v-if="item.content && (item.messageType === 96 || item.messageType === 97)" @click="goToInterviewDetail(item)">{{item.content}}</view>
  409. <view v-if="item.content && item.messageType === 99" @click="goToInterviewDetail(item)"
  410. class="chat-listitem-text"
  411. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  412. <view class="flex align-center">
  413. <image src="../../static/im/msyy.svg"
  414. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;flex-shrink: 0;" mode="aspectFill"></image>
  415. 您收到了{{item.content}}
  416. </view>
  417. </view>
  418. <view v-if="item.content && item.messageType === 98" @click="goToInterviewDetail(item)"
  419. class="chat-listitem-text"
  420. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  421. <view class="flex align-center">
  422. <image src="../../static/im/msjg.svg"
  423. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;flex-shrink: 0;" mode="aspectFill"></image>
  424. {{item.content}}
  425. </view>
  426. </view>
  427. <image @tap="viewImg(item.content)" v-if="item.content && item.messageType === 2"
  428. :src="item.content" style="height: 200rpx;width: 200rpx;margin-left: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
  429. <image class="chat-listitem-text"
  430. v-if="item.content && item.messageType === 4"
  431. :src="ossUrl +item.content"
  432. style="height: 80rpx;width: 80rpx;margin-left: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
  433. <view v-if="item.content && item.messageType === 3" class="chat-listitem-text bubble voice textColorLeft"
  434. :class="playMsgid == index?'play':''"
  435. style="margin-left: 20rpx;display: flex;align-items: center;"
  436. @tap="playVoice(item.content,index)">
  437. <image v-if="playMsgid != index" src="../../static/im/laba.png"
  438. style="width: 35upx;height: 40upx;margin-right: 10rpx;"></image>
  439. <image v-if="playMsgid == index" src="../../static/im/labagif.gif"
  440. style="width: 35upx;height: 40upx;margin-right: 10rpx;"></image>
  441. <view class="length">{{item.width ? item.width : 0}}</view>
  442. </view>
  443. <view class="chat-listitem-text "
  444. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;"
  445. v-if="item.content && item.messageType === 18"
  446. @click="openMapss(item.content.latitude,item.content.longitude,item.content.address)">
  447. <view class="padding-sm flex">
  448. <!-- #ifdef APP -->
  449. <u-icon name="map-fill" color="#ffffff" size="28" style="margin-right: 10rpx;"></u-icon>
  450. <!-- #endif -->
  451. {{item.content.address}}
  452. </view>
  453. <!-- #ifndef APP -->
  454. <map style="width: 100%; height: 120px;" scale="14" :latitude="item.content.latitude"
  455. :longitude="item.content.longitude"
  456. @tap="openMapss(item.content.latitude,item.content.longitude,item.content.address)"
  457. :markers="item.markers">
  458. </map>
  459. <!-- #endif -->
  460. </view>
  461. </view>
  462. </view>
  463. <!-- +++++++++++我的消息+++++++++++++++ -->
  464. <view v-if="item.userId && userId == item.userId" style="width: 83%;margin-left: 15%;">
  465. <view class="chat-listitem" style="float: right;">
  466. <view v-if="item.content && item.messageType === 1" @longpress="caozuoActive(item,1)"
  467. class="chat-listitem-text textColor" style="margin-right: 20rpx;">{{item.content}}</view>
  468. <view v-if="item.messageType === 20" @tap="sendCallVideo(2)"
  469. class="chat-listitem-text textColor flex align-center" style="margin-right: 20rpx;">
  470. 视频通话
  471. <image src="../../static/im/historyVideo_white.png"
  472. style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
  473. </view>
  474. <view v-if="item.messageType === 21" @tap="sendCallVideo(1)"
  475. class="chat-listitem-text textColor flex align-center" style="margin-right: 20rpx;">
  476. 语音通话
  477. <image src="../../static/im/historyAudio_white.png"
  478. style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
  479. </view>
  480. <view v-if="item.content && item.messageType === 5" class="chat-listitem-text textColor"
  481. style="margin-right: 20rpx;">
  482. 交换手机号请求已发送,等待对方同意
  483. </view>
  484. <view v-if="item.content && item.messageType === 7"
  485. @longpress="copyss(item.content,item.userType,'phone')" class="chat-listitem-text textColor"
  486. style="margin-right: 20rpx;">
  487. <view class="" v-if="item.userType==1">
  488. 我的手机号为:{{JSON.parse(item.content).userPhone}}
  489. </view>
  490. <view class="" v-else>
  491. 我的手机号为:{{JSON.parse(item.content).companyPhone}}
  492. </view>
  493. </view>
  494. <view v-if="item.content && item.messageType === 6" class="chat-listitem-text textColor"
  495. style="margin-right: 20rpx;">
  496. 交换微信号请求已发送,等待对方同意
  497. </view>
  498. <view v-if="item.content && item.messageType === 8"
  499. @longpress="copyss(item.content,item.userType,'wx')" class="chat-listitem-text textColor"
  500. style="margin-right: 20rpx;">
  501. <view class="" v-if="item.userType==1">
  502. 我的微信号为:{{JSON.parse(item.content).userWx}}
  503. </view>
  504. <view class="" v-else>
  505. 我的微信号为:{{JSON.parse(item.content).companyWx}}
  506. </view>
  507. </view>
  508. <view v-if="item.content && item.messageType === 9" class="chat-listitem-text textColor"
  509. style="margin-right: 20rpx;">
  510. 简历请求已发送,等待对方同意
  511. </view>
  512. <view v-if="item.content && item.messageType === 10" class="chat-listitem-text textColor bg-style"
  513. style="margin-right: 20rpx;">
  514. <block v-if="item.userType == 1">
  515. <view class="flex align-center" @click="previewResume(item.content)">
  516. <image src="../../static/im/orderInfo.png"
  517. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  518. 点击预览附件简历
  519. </view>
  520. </block>
  521. <block v-else>{{item.content}}</block>
  522. </view>
  523. <view v-if="item.content && item.messageType === 12" class="chat-listitem-text textColor"
  524. style="margin-right: 20rpx;">
  525. {{item.content}}已拒绝
  526. </view>
  527. <view class="chat-listitem-text bg-style" style="margin-right: 20rpx;"
  528. v-if="item.content && (item.messageType === 96 || item.messageType === 97)" @click="goToInterviewDetail(item)">{{item.content}}</view>
  529. <view v-if="item.content && item.messageType === 99" @click="goToInterviewDetail(item)"
  530. class="chat-listitem-text textColor"
  531. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  532. <view class="flex align-center">
  533. <image src="../../static/im/msyy.svg"
  534. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;flex-shrink: 0;" mode="aspectFill"></image>
  535. 您发送了{{item.content}}
  536. </view>
  537. </view>
  538. <view v-if="item.content && item.messageType === 98" @click="goToInterviewDetail(item)"
  539. class="chat-listitem-text textColor"
  540. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  541. <view class="flex align-center">
  542. <image src="../../static/im/msjg.svg"
  543. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;flex-shrink: 0;" mode="aspectFill"></image>
  544. {{item.content}}
  545. </view>
  546. </view>
  547. <view class="chat-listitem-text textColor" style="margin-right: 20rpx;"
  548. v-if="item.content && item.messageType === 18"
  549. @click="openMapss(item.content.latitude,item.content.longitude,item.content.address)">
  550. <view class="padding-sm flex">
  551. <!-- #ifdef APP -->
  552. <u-icon name="map-fill" color="#ffffff" size="28" style="margin-right: 10rpx;"></u-icon>
  553. <!-- #endif -->
  554. {{item.content.address}}
  555. </view>
  556. <!-- #ifndef APP -->
  557. <map style="width:520upx; height: 120px;" scale="14" :latitude="item.content.latitude"
  558. :longitude="item.content.longitude"
  559. @tap="openMapss(item.content.latitude,item.content.longitude,item.content.address)"
  560. :markers='item.markers'>
  561. </map>
  562. <!-- #endif -->
  563. </view>
  564. <!-- <view v-if="item.content && item.messageType === 1" @longpress="copy(item.content)"
  565. class="chat-listitem-text" style="margin-right: 20rpx;">{{item.content}}</view> -->
  566. <image @longpress="caozuoActive(item)" @tap="viewImg(item.content)"
  567. v-if="item.content && item.messageType === 2" :src="item.content"
  568. style="height: 200rpx;width: 200rpx;margin-right: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
  569. <image class="chat-listitem-text textColor"
  570. v-if="item.content && item.messageType === 4"
  571. :src="ossUrl +item.content"
  572. style="height: 80rpx;width: 80rpx;margin-right: 20rpx;" :lazy-load="true" mode="aspectFill">
  573. </image>
  574. <view v-if="item.content && item.messageType === 3"
  575. class="chat-listitem-text bubble voice textColor" :class="playMsgid == index?'play':''"
  576. style="margin-right: 20rpx;display: flex;align-items: center;"
  577. @longpress="caozuoActive(item)" @tap="playVoice(item.content,index)">
  578. <view class="length">{{item.width ? item.width : 0}}</view>
  579. <image v-if="playMsgid != index" src="../../static/im/labaleft.png"
  580. style="width: 35upx;height: 40upx;margin-left: 10rpx;"></image>
  581. <image v-if="playMsgid == index" src="../../static/im/labaleft.png"
  582. style="width: 35upx;height: 40upx;margin-left: 10rpx;"></image>
  583. </view>
  584. <view>
  585. <image :lazy-load="true" mode="aspectFill" :src="imageUrl" class="chat-listitem-image"></image>
  586. </view>
  587. </view>
  588. </view>
  589. </view>
  590. <!-- </view> -->
  591. </scroll-view>
  592. <!-- 底部聊天输入框 -->
  593. <!-- <view class="input-box">
  594. <view style="display: flex;margin-top: 15rpx;width: 100%;">
  595. <image src="https://renwu.xiansqx.com/img/20210817/024ca47bc591460daf76762a8e98283f.png" @click="chooseImage(['album'])" style="width: 60rpx;height: 60rpx;margin-top: 8rpx;"></image>
  596. <input confirm-type="send" @confirm='setChatSave(1)' type="text" v-model="content"
  597. style="width: 68%;height: 70rpx;background: #FFFFFF;margin: 4rpx 10rpx 0;border-radius: 10rpx;padding-left: 10rpx;" />
  598. <view class="save" @tap='setChatSave(1)'>发送</view>
  599. </view>
  600. </view> -->
  601. <!-- 长按操作菜单 -->
  602. <u-action-sheet :list="activelist" @click="activeclick" v-model="showActive" :tips="tips"></u-action-sheet>
  603. <!-- 抽屉栏 -->
  604. <view class="popup-layer" :class="popupLayerClass" @touchmove.stop.prevent="discard">
  605. <!-- 表情 -->
  606. <swiper class="emoji-swiper" indicator-active-color="#cccccc" :class="{hidden:hideEmoji}"
  607. indicator-dots="true" duration="150">
  608. <swiper-item v-for="(page1,pid) in emojiList" :key="pid">
  609. <view v-for="(em,eid) in page1" :key="eid" @tap="setChatSave(4,em.url)">
  610. <!-- <image src="../../static/emoji/100.gif" mode="widthFix"></image> -->
  611. <image mode="widthFix" :src="ossUrl+em.url"></image>
  612. </view>
  613. </swiper-item>
  614. </swiper>
  615. <!-- 更多功能 相册-拍照-红包 -->
  616. <view class="more-layer" :class="{hidden:hideMore}">
  617. <view class="list" style="color: #000000;">
  618. <!-- 上传图片 -->
  619. <view style="margin-bottom: 30rpx;">
  620. <view class="box" @click="chooseImage(['album'])">
  621. <image src="../../static/im/tupian.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  622. </view>
  623. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">上传图片</view>
  624. </view>
  625. <!-- #ifdef H5 || APP -->
  626. <!-- 语音 -->
  627. <view v-if="isVip" style="margin-bottom: 20rpx;">
  628. <view class="box" @tap="sendCallVideo(1)">
  629. <image src="../../static/im/yuyin.svg" mode=""
  630. style="width: 48rpx;height: 48rpx;">
  631. </image>
  632. </view>
  633. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">语音通话</view>
  634. </view>
  635. <!-- 视频 -->
  636. <view v-if="false" style="margin-bottom: 20rpx;">
  637. <view class="box" @tap="sendCallVideo(2)">
  638. <image src="../../static/im/shipin.svg" mode=""
  639. style="width: 48rpx;height: 48rpx;">
  640. </image>
  641. </view>
  642. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">视频通话</view>
  643. </view>
  644. <!-- #endif -->
  645. <!-- 常用语 -->
  646. <view style="margin-bottom: 20rpx;">
  647. <view class="box" @tap="showChangYongSelect">
  648. <view class="icon jianpan" style="font-size: 44rpx;"></view>
  649. </view>
  650. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">常用语句</view>
  651. </view>
  652. <!-- 添加常用语或自动回复内容 -->
  653. <view style="margin-bottom: 20rpx;">
  654. <view class="box" @tap="goAdd">
  655. <view class="icon add" style="font-size: 44rpx;"></view>
  656. </view>
  657. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">添加语句</view>
  658. </view>
  659. <view style="margin-bottom: 20rpx;">
  660. <view class="box" @tap="goMapss">
  661. <image src="../../static/images/weizhi.png" mode="" style="width: 48rpx;height: 48rpx;">
  662. </image>
  663. </view>
  664. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">发送位置</view>
  665. </view>
  666. <!-- <view>
  667. <view class="box" @tap="goHistory">
  668. <view class="icon chehui"></view>
  669. </view>
  670. <view style="width: 100%;text-align: center;">聊天记录</view>
  671. </view> -->
  672. </view>
  673. </view>
  674. </view>
  675. <!-- 底部输入栏 -->
  676. <view class="input-box" :class="popupLayerClass" @touchmove.stop.prevent="discard">
  677. <!-- H5下不能录音,输入栏布局改动一下 -->
  678. <!-- #ifndef H5 -->
  679. <view class="voice">
  680. <view class="icon" :class="isVoice?'jianpan':'yuyin'" @tap="switchVoice"></view>
  681. </view>
  682. <!-- #endif -->
  683. <view class="textbox">
  684. <view class="voice-mode" :class="[isVoice?'':'hidden',recording?'recording':'']"
  685. @touchstart="voiceBegin" @touchmove.stop.prevent="voiceIng" @touchend="voiceEnd"
  686. @touchcancel="voiceCancel">{{voiceTis}}</view>
  687. <view class="text-mode" :class="isVoice?'hidden':''">
  688. <!-- 常用语按钮 -->
  689. <view class="changgui" @tap="showChangYongSelect">
  690. <image src="../../static/im/changgui.svg" style="width: 56rpx;height: 56rpx;" mode=""></image>
  691. </view>
  692. <view class="box">
  693. <textarea style="color: #000000;" auto-height="true" @confirm='setChatSave(1)' v-model="content"
  694. @focus="textareaFocus" />
  695. </view>
  696. <view class="em" @tap="chooseEmoji">
  697. <image src="../../static/im/smail.svg" style="width: 56rpx;height: 56rpx;" mode=""></image>
  698. </view>
  699. <!-- #ifdef H5 -->
  700. <view class="more" @tap="showMore" style="height: 70rpx;">
  701. <image src="../../static/im/buleAdd.svg" style="width: 56rpx;height: 56rpx;" mode=""></image>
  702. </view>
  703. <!-- #endif -->
  704. </view>
  705. </view>
  706. <!-- #ifndef H5 -->
  707. <view class="more" @tap="showMore">
  708. <view class="icon add"></view>
  709. </view>
  710. <!-- #endif -->
  711. <view class="send" :class="isVoice?'hidden':''" @tap='setChatSave(1)'>
  712. <view class="btn">发送</view>
  713. </view>
  714. </view>
  715. <!-- 录音UI效果 -->
  716. <view class="record" :class="recording?'':'hidden'">
  717. <view class="ing" :class="willStop?'hidden':''">
  718. <view class="icon luyin2"></view>
  719. </view>
  720. <view class="cancel" :class="willStop?'':'hidden'">
  721. <view class="icon chehui"></view>
  722. </view>
  723. <view class="tis" :class="willStop?'change':''">{{recordTis}}</view>
  724. </view>
  725. <u-select v-model="showChangYong" title="常用词语" mode="single-column" :list="changYongList" @confirm="selConfirm">
  726. </u-select>
  727. <u-action-sheet :list="list" @click="click" v-model="show"></u-action-sheet>
  728. <!-- ——————————————————————————-废弃 开始——————————————————————---- -->
  729. <u-popup v-model="mianshiShow" mode="bottom" z-index="998" :mask-close-able="false" border-radius="14"
  730. @close="cleanMs" :closeable="true">
  731. <view class="mianshiTitle">面试邀请</view>
  732. <view class="mianshiTime flex justify-center">
  733. <view class="mianshiTime-box flex justify-between align-center">
  734. <view class="">
  735. 面试时间
  736. </view>
  737. <view class="flex align-center mianshiTime-box-ti">
  738. <u-input disabled v-model="miamshi.interviewDateTime" @click="msTime=true" type="text"
  739. placeholder="请选择面试时间" />
  740. <u-icon name="arrow-right" style="margin-left: 10rpx;" color="#016BF6" size="28"
  741. @click="msTime=true"></u-icon>
  742. </view>
  743. </view>
  744. </view>
  745. <view class="mianshiTime flex justify-center">
  746. <view class="mianshiTime-box flex justify-between align-center">
  747. <view class="">
  748. 面试地址
  749. </view>
  750. <view class="flex align-center mianshiTime-box-ti">
  751. <u-input disabled @click="goMap()" v-model="miamshi.detailedAddress" type="text"
  752. placeholder="请选择面试地址" />
  753. <u-icon name="arrow-right" style="margin-left: 10rpx;" @click="goMap()" color="#016BF6"
  754. size="28"></u-icon>
  755. </view>
  756. </view>
  757. </view>
  758. <view class="mianshiTime flex justify-center">
  759. <view class="mianshiTime-box" style="border: none;">
  760. <view class="">
  761. 备注
  762. </view>
  763. <view class="flex align-center mianshiTime-box-ti">
  764. <u-input v-model="miamshi.remarks" type="textarea" input-align="left"
  765. style="padding: 10rpx;background-color: #F2F2F7;height: 200rpx;overflow: hidden;border-radius: 14rpx;width: 100%;"
  766. :auto-height="false" />
  767. </view>
  768. </view>
  769. </view>
  770. <view class="btnm flex justify-center">
  771. <view class="btn-box flex justify-around align-center">
  772. <view class="btn-close btnItem" @click="mianshiShow = false">
  773. 取消
  774. </view>
  775. <view class="btn-sub btnItem" @click="submitMs()">
  776. 确认
  777. </view>
  778. </view>
  779. </view>
  780. </u-popup>
  781. <!-- ——————————————————————————-废弃 结束——————————————————————---- -->
  782. <u-toast ref="uToast" />
  783. <u-picker v-model="msTime" mode="time" :params="params" @confirm="mianshiConfirm" confirm-color="#016BF6">
  784. </u-picker>
  785. <!-- 面试邀请弹窗 -->
  786. <u-popup v-model="msshow" mode="center" z-index="998" border-radius="24" :mask-close-able="false" width="80%">
  787. <view class="mssTitle">
  788. 面试邀请
  789. </view>
  790. <view class="avatorm flex justify-center">
  791. <view class="avatorm-box flex justify-center">
  792. <block v-if="records.userEntity && records.userEntity.avatar">
  793. <image :src="records.userEntity.avatar"
  794. style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="aspectFill">
  795. </image>
  796. </block>
  797. <block v-else>
  798. <image src="../../static/logo.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"
  799. mode="">
  800. </image>
  801. </block>
  802. <block v-if="records.hr && records.hr.hrImg">
  803. <image :src="records.hr.hrImg"
  804. style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="aspectFill">
  805. </image>
  806. </block>
  807. <block v-else>
  808. <image src="../../static/logo.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"
  809. mode="">
  810. </image>
  811. </block>
  812. </view>
  813. </view>
  814. <view class="avatorm flex justify-center">
  815. <view class="avatorm-box">
  816. <view class="avatorm-box-item flex">
  817. <view class="avatorm-box-item-t">
  818. 面试岗位:
  819. </view>
  820. <view class="avatorm-box-item-r">
  821. {{records.postPush?records.postPush.ruleClassifyName:'未知'}}
  822. </view>
  823. </view>
  824. <view class="avatorm-box-item flex" v-if="records">
  825. <view class="avatorm-box-item-t">
  826. 面试时间:
  827. </view>
  828. <view class="avatorm-box-item-r">
  829. {{records.interviewDateTime&&records.interviewDateTime.substring(0, 10)||''}} {{records.detailTime}}
  830. </view>
  831. </view>
  832. <view class="avatorm-box-item flex" @click="goMapDap(records)">
  833. <view class="avatorm-box-item-t">
  834. 面试地点:
  835. </view>
  836. <view class="avatorm-box-item-r">
  837. {{records.detailedAddress}}
  838. <u-icon name="map-fill" color="#016BF6" size="28"></u-icon>
  839. </view>
  840. </view>
  841. <view class="avatorm-box-item flex">
  842. <view class="avatorm-box-item-t">
  843. 面试备注:
  844. </view>
  845. <view class="avatorm-box-item-r">
  846. {{records.remarks?records.remarks:'暂无'}}
  847. </view>
  848. </view>
  849. </view>
  850. </view>
  851. <view class="avatorm flex justify-center" v-if="records.company">
  852. <view class="avatorm-box flex justify-center">
  853. 来自{{records.company.companyAllName||records.company.companyName}}的面试邀请,是否接受?
  854. </view>
  855. </view>
  856. <view class="btnm flex justify-center" style="margin-bottom: 30rpx;">
  857. <view class="btn-box flex justify-around align-center">
  858. <view class="btn-close btnItem" @click="setJuJue(records)">
  859. 拒绝
  860. </view>
  861. <view class="btn-sub btnItem" @click="setJuJues(records)">
  862. 接受
  863. </view>
  864. </view>
  865. </view>
  866. </u-popup>
  867. <!-- 交换微信自定义弹窗 -->
  868. <u-popup v-model="wechatExchangeShow" mode="center" z-index="999" border-radius="24" :mask-close-able="false" width="80%">
  869. <view class="phone-exchange-popup">
  870. <!-- 顶部背景区域 -->
  871. <view class="phone-exchange-header">
  872. <image src="../../static/im/Artwork.png" class="phone-exchange-bg" mode="aspectFill"></image>
  873. </view>
  874. <!-- 中间内容区域 -->
  875. <view class="phone-exchange-content">
  876. <view class="phone-exchange-title">确认与对方交换微信吗?</view>
  877. <view class="phone-exchange-desc">交换成功后,双方可以查看彼此的微信号<br/>您可以前往个人中心管理微信号</view>
  878. </view>
  879. <!-- 底部按钮区域 -->
  880. <view class="phone-exchange-buttons">
  881. <view class="phone-exchange-btn phone-exchange-btn-cancel" @click="cancelWechatExchange">取消</view>
  882. <view class="phone-exchange-btn phone-exchange-btn-confirm" @click="confirmWechatExchange">确认</view>
  883. </view>
  884. </view>
  885. </u-popup>
  886. <!-- 交换手机号自定义弹窗 -->
  887. <u-popup v-model="phoneExchangeShow" mode="center" z-index="999" border-radius="24" :mask-close-able="false" width="80%">
  888. <view class="phone-exchange-popup">
  889. <!-- 顶部背景区域 -->
  890. <view class="phone-exchange-header">
  891. <image src="../../static/im/Artwork.png" class="phone-exchange-bg" mode="aspectFill"></image>
  892. </view>
  893. <!-- 中间内容区域 -->
  894. <view class="phone-exchange-content">
  895. <view class="phone-exchange-title">确认与对方交换电话吗?</view>
  896. <view class="phone-exchange-desc">交换成功后,双方可以查看彼此的电话号码<br/>您可以前往个人中心管理电话号码</view>
  897. </view>
  898. <!-- 底部按钮区域 -->
  899. <view class="phone-exchange-buttons">
  900. <view class="phone-exchange-btn phone-exchange-btn-cancel" @click="cancelPhoneExchange">取消</view>
  901. <view class="phone-exchange-btn phone-exchange-btn-confirm" @click="confirmPhoneExchange">确认</view>
  902. </view>
  903. </view>
  904. </u-popup>
  905. <!-- 简历弹框 -->
  906. <u-popup v-model="attachmentShow" z-index="99999" mode="bottom" border-radius="14" height="auto" :closeable="true">
  907. <attachment @select="selectAttachment" :content="attachmentContent"></attachment>
  908. </u-popup>
  909. <u-popup mode="top" ref="permission">
  910. <view class="popup-content">
  911. <view class="popup-text-permission">选择/拍摄照片需要相机/相册权限,用于发送媒体消息</view>
  912. </view>
  913. </u-popup>
  914. <u-popup mode="top" ref="microphonePermission">
  915. <view class="popup-content">
  916. <view class="popup-text-permission">录制语音需要录音权限,用于发送语音消息</view>
  917. </view>
  918. </u-popup>
  919. <u-popup mode="top" ref="locationPermission">
  920. <view class="popup-content">
  921. <view class="popup-text-permission">获取位置需要定位权限,用于发送位置消息</view>
  922. </view>
  923. </u-popup>
  924. </view>
  925. </template>
  926. <script>
  927. const RECONNECT_INTERVAL = 3000; // 延迟3秒后进行重连
  928. const HEARTBEAT_INTERVAL = 20000; // 每20秒发送一次心跳消息
  929. import configdata from '../../common/config.js';
  930. import emoji from '../../common/emoji.json';
  931. import attachment from '../../components/attachment.vue'
  932. import permision from '@/js_sdk/wa-permission/permission.js'
  933. export default {
  934. components: {
  935. attachment
  936. },
  937. data() {
  938. return {
  939. msshow: false,
  940. params: {
  941. year: false,
  942. month: true,
  943. day: true,
  944. hour: true,
  945. minute: true,
  946. second: false
  947. },
  948. msTime: false,
  949. miamshi: {
  950. interviewDateTime: '', //面试时间
  951. companyId: '', //公司id
  952. remarks: '', //面试备注
  953. userId: '', //面试者id
  954. postPushId: '', //岗位id
  955. province: '', //省
  956. city: '', //市
  957. county: '', //区
  958. lng: '', //经度
  959. lat: '', //纬度
  960. detailedAddress: '', //详细地址
  961. },
  962. tips: {
  963. text: '',
  964. color: 'black',
  965. fontSize: 28
  966. },
  967. activelist: [],
  968. showActive: false,
  969. list: [{
  970. text: '查看简历',
  971. color: 'black',
  972. fontSize: 28
  973. }, {
  974. text: '查看企业',
  975. color: 'black',
  976. fontSize: 28
  977. }],
  978. show: false,
  979. recordLength: 0,
  980. initPoint: {
  981. identifier: 0,
  982. Y: 0
  983. },
  984. showChangYong: false,
  985. changYongList: [],
  986. // 工作描述展开状态
  987. isJobDescExpanded: false,
  988. //播放语音相关参数
  989. AUDIO: uni.createInnerAudioContext(),
  990. playMsgid: null,
  991. VoiceTimer: null,
  992. //文字消息
  993. textMsg: '',
  994. //消息列表
  995. isHistoryLoading: false,
  996. scrollAnimation: false,
  997. scrollTop: 0,
  998. scrollToView: '',
  999. msgList: [],
  1000. msgImgList: [],
  1001. myuid: 0,
  1002. //录音相关参数
  1003. // #ifndef H5
  1004. //H5不能录音
  1005. RECORDER: uni.getRecorderManager(),
  1006. // #endif
  1007. isVoice: false,
  1008. voiceTis: '按住 说话',
  1009. recordTis: "手指上滑 取消发送",
  1010. recording: false,
  1011. willStop: false,
  1012. initPoint: {
  1013. identifier: 0,
  1014. Y: 0
  1015. },
  1016. recordTimer: null,
  1017. recordLength: 0,
  1018. //播放语音相关参数
  1019. AUDIO: uni.createInnerAudioContext(),
  1020. playMsgid: null,
  1021. VoiceTimer: null,
  1022. // 抽屉参数
  1023. popupLayerClass: '',
  1024. // more参数
  1025. hideMore: true,
  1026. //表情定义
  1027. hideEmoji: true,
  1028. emojiList: emoji,
  1029. msg: false,
  1030. type4: [],
  1031. listRight: {
  1032. chat: {
  1033. userHead: ""
  1034. },
  1035. content: "",
  1036. messageType: 1,
  1037. type: 1
  1038. },
  1039. content: '',
  1040. chatId: '',
  1041. type: 1,
  1042. ListItem: [],
  1043. index: 0,
  1044. page: 1,
  1045. size: 100,
  1046. byUserId: 0,
  1047. imageUrl: '/static/logo.png',
  1048. chatConversationId: 0,
  1049. userId: 0,
  1050. byNickName: '',
  1051. countDown: '',
  1052. messages: '',
  1053. scrollInto: '',
  1054. tUserId: '', //对方id
  1055. companyId: '', //对方企业的id
  1056. activeInfo: {},
  1057. userType: '',
  1058. postPushId: '', //岗位id
  1059. resumesId: '', //简历id
  1060. postPushInfo: {}, //岗位信息
  1061. resumesInfo: {}, //简历信息
  1062. isSendPhone: false, //是否交换手机号
  1063. isSendWx: false, //是否交换微信
  1064. isSendResumes:false,
  1065. mianshiShow: false, //约面试弹窗
  1066. phoneExchangeShow: false, //交换手机号弹窗
  1067. wechatExchangeShow: false, //交换微信弹窗
  1068. records: {}, //面试邀请信息
  1069. recordsInter: '',
  1070. mapsValue: '',
  1071. showModal: true,
  1072. arr: [],
  1073. old: {
  1074. scrollTop: 0 //记录旧的scrollTop值
  1075. },
  1076. isOpen: false, //scoket是否正在链接
  1077. socketTimer: null, //心跳定时器
  1078. isVip: false, //是否是会员
  1079. isVideo: false, //是否打视频
  1080. ossUrl:configdata.ossUrl,
  1081. jobStatusList:[],
  1082. conversationInfo:{},
  1083. attachmentShow:false,
  1084. attachmentContent:[]
  1085. };
  1086. },
  1087. onUnload() {
  1088. uni.closeSocket()
  1089. uni.hideLoading()
  1090. uni.$off('updateAttachmentList')
  1091. clearInterval(this.recordsInter)
  1092. this.recordsInter = null
  1093. clearInterval(this.socketTimer)
  1094. this.socketTimer = null
  1095. },
  1096. computed: {
  1097. isHtmlContent() {
  1098. const str = this.postPushInfo?.positionDetails || '';
  1099. return /<[^>]+>/.test(str);
  1100. }
  1101. },
  1102. onLoad(d) {
  1103. console.log(d, 'zzzzzzzzz')
  1104. if (d.postPushId) {
  1105. this.postPushId = d.postPushId
  1106. }
  1107. if (d.resumesId) {
  1108. this.resumesId = d.resumesId
  1109. }
  1110. this.userType = uni.getStorageSync('userType')
  1111. if (this.userType == 1) {
  1112. this.postPushId = d.postPushId
  1113. //获取岗位信息
  1114. this.getPostPushInfo(this.postPushId)
  1115. this.getInterviewList()
  1116. } else {
  1117. this.resumesId = d.resumesId
  1118. this.postPushId = d.postPushId
  1119. this.getPostPushInfo(this.postPushId)
  1120. //获取简历信息
  1121. this.getResumesInfo(this.resumesId)
  1122. }
  1123. this.userId = this.$queue.getData('userId');
  1124. this.getMessage();
  1125. this.connect();
  1126. this.byNickName = d.byNickName;
  1127. this.byUserId = d.byUserId;
  1128. if (d.chatConversationId) {
  1129. this.chatConversationId = d.chatConversationId;
  1130. this.getTimeOrListItem1();
  1131. } else {
  1132. this.insertChat();
  1133. }
  1134. let image_url = this.$queue.getData('avatar');
  1135. if (image_url && image_url !== 'undefined') {
  1136. this.imageUrl = image_url;
  1137. } else {
  1138. this.imageUrl = '/static/logo.png';
  1139. }
  1140. // this.emojiList.forEach(d =>{
  1141. // d.forEach(e =>{
  1142. // console.log('/static/emoji/' + e.url)
  1143. // });
  1144. // });
  1145. //语音自然播放结束
  1146. this.AUDIO.onEnded((res) => {
  1147. this.playMsgid = null;
  1148. });
  1149. // #ifndef H5
  1150. //录音开始事件
  1151. this.RECORDER.onStart((e) => {
  1152. this.recordBegin(e);
  1153. })
  1154. //录音结束事件
  1155. this.RECORDER.onStop((e) => {
  1156. this.recordEnd(e);
  1157. })
  1158. // #endif
  1159. this.jobStatusList = this.$queue.resumesStatus()
  1160. this.$Request.get("/app/resumes/getAttachment").then(res => {
  1161. if (res.code == 0) {
  1162. this.attachmentContent=res.data
  1163. }
  1164. uni.hideLoading();
  1165. });
  1166. // #ifdef APP
  1167. //this.getAudioPermision()
  1168. // #endif
  1169. uni.$on('updateAttachmentList',()=>{
  1170. this.$Request.get("/app/resumes/getAttachment").then(res => {
  1171. if (res.code == 0) {
  1172. this.attachmentContent=res.data
  1173. }
  1174. uni.hideLoading();
  1175. });
  1176. })
  1177. },
  1178. onShow() {
  1179. if (this.chatConversationId) {
  1180. this.getTimeOrListItem1();
  1181. }
  1182. // #ifdef MP-WEIXIN
  1183. this.$Request.getT('/app/common/type/342').then(res => { //面试通知
  1184. if (res.code == 0) {
  1185. if (res.data && res.data.value) {
  1186. this.arr.push(res.data.value)
  1187. }
  1188. }
  1189. })
  1190. if (this.showModal) {
  1191. this.openMsg()
  1192. }
  1193. // #endif
  1194. this.userType = uni.getStorageSync('userType')
  1195. this.getChangYong();
  1196. // if (this.isOpen) {
  1197. // this.connect();
  1198. // }
  1199. if (this.userType == 1) {
  1200. //获取用户是否有该岗位待接受的面试邀请
  1201. this.recordsInter = setInterval(() => {
  1202. this.getInterviewList()
  1203. }, 5000)
  1204. }
  1205. this.getUserInfo()
  1206. },
  1207. onBackPress() {
  1208. this.AUDIO.stop();
  1209. this.playMsgid = null;
  1210. },
  1211. onHide() {
  1212. // this.AUDIO.stop();
  1213. // this.playMsgid = null;
  1214. // uni.closeSocket()
  1215. // clearInterval(this.recordsInter)
  1216. // this.recordsInter = null
  1217. },
  1218. methods: {
  1219. // 预览简历
  1220. previewResume(attachmentAddress){
  1221. const isFileLink = /^https?:\/\/.+\.(pdf|doc|docx|xls|xlsx)$/i.test(attachmentAddress);
  1222. if (!isFileLink) {
  1223. uni.showModal({
  1224. title: "提示",
  1225. content: "该简历无法预览",
  1226. showCancel: false,
  1227. });
  1228. return;
  1229. }
  1230. //#ifdef APP-PLUS
  1231. uni.downloadFile({
  1232. url: attachmentAddress,
  1233. success: function (res) {
  1234. var filePath = res.tempFilePath;
  1235. uni.openDocument({
  1236. filePath: filePath,
  1237. showMenu: true,
  1238. success: function (res) {
  1239. console.log('打开文档成功');
  1240. }
  1241. });
  1242. }
  1243. });
  1244. return;
  1245. //#endif
  1246. uni.navigateTo({
  1247. url: '/pages/index/webView?url=' + attachmentAddress + '&title=' + ''
  1248. });
  1249. },
  1250. goToInterviewDetail(item){
  1251. if(item.recordId){
  1252. uni.navigateTo({
  1253. url: `/my/jilu/bossMianshiDetail?recordId=${item.recordId}`
  1254. })
  1255. }
  1256. },
  1257. // 返回上一页
  1258. goBack() {
  1259. uni.navigateBack();
  1260. },
  1261. //获取麦克风/摄像头权限
  1262. async getAudioPermision() {
  1263. let status = permision.isIOS ? await permision.judgeIosPermission("record") : await permision
  1264. .requestAndroidPermission("android.permission.RECORD_AUDIO")
  1265. let status2 = permision.isIOS ? await permision.judgeIosPermission("camera") : await permision
  1266. .requestAndroidPermission("android.permission.CAMERA")
  1267. if (status === null || status === 1 || status == true) { //已经同意授权
  1268. console.log('获取到权限了')
  1269. } else { //未授权的
  1270. this.popupshowsq = true
  1271. }
  1272. },
  1273. // 显示更多选项
  1274. showMoreOptions() {
  1275. return this.$queue.showToast('waiting...')
  1276. // 可以添加更多选项的弹窗或菜单
  1277. // console.log('显示更多选项');
  1278. uni.navigateTo({
  1279. url:'/pages/msg/interviewInvitation'
  1280. })
  1281. },
  1282. // 切换工作描述展开状态
  1283. toggleJobDesc() {
  1284. this.isJobDescExpanded = !this.isJobDescExpanded;
  1285. },
  1286. getUserInfo() {
  1287. this.$Request.get("/app/user/selectUserById").then(res => {
  1288. if (res.code == 0) {
  1289. if (this.userType == 1) { //用户
  1290. if (res.data.isUserVip == 1) { //判断用户是否是vip
  1291. this.isVip = true
  1292. } else {
  1293. this.isVip = false
  1294. }
  1295. } else { //企业
  1296. if (res.data.isCompanyVip == 1) { //判断企业用户是否是vip
  1297. this.isVip = true
  1298. } else {
  1299. this.isVip = false
  1300. }
  1301. }
  1302. }
  1303. })
  1304. },
  1305. /**
  1306. * @param {Object} type 1:语音 2视频
  1307. */
  1308. sendCallVideo(type) {
  1309. if (!this.isVip) {
  1310. uni.showModal({
  1311. title: '提示',
  1312. content: type == 1 ? '语音为会员专属功能,请开通会员!' : '视频为会员专属功能,请开通会员!',
  1313. confirmText: '开通会员',
  1314. cancelText: '取消',
  1315. confirmColor: '#016BF6',
  1316. complete(ret) {
  1317. if (ret.confirm) {
  1318. uni.navigateTo({
  1319. url: '/pages/my/VIP/benefits'
  1320. })
  1321. }
  1322. }
  1323. })
  1324. return
  1325. }
  1326. if (this.isVideo) {
  1327. return
  1328. }
  1329. this.isVideo = true
  1330. let data = {
  1331. focusedUserId: this.byUserId, //对方的userId
  1332. messageType: type == 1 ? 21 : 20,
  1333. userId: uni.getStorageSync('userId'), //我的userId
  1334. userType: this.userType, //1:用户 2:企业,
  1335. postPushId: this.postPushId,
  1336. resumesId: this.resumesId
  1337. }
  1338. let that = this
  1339. this.$Request.postJson('/app/chat/insertChatConversationByChatVideo', data).then(res => {
  1340. if (res.code == 0) {
  1341. //isRol 1:发起人 2:收到人
  1342. console.log(res)
  1343. uni.navigateTo({
  1344. url: '/my/videoVoice/videoVoice?byUserId=' + this.byUserId +
  1345. '&chatContentId=' + res.data.chatContentId +
  1346. '&isRol=1&messageType=' + data.messageType + '&chatConversationId=' + res
  1347. .data
  1348. .chatConversationId + '&userType=' + data.userType + '&postPushId=' + data
  1349. .postPushId + '&resumesId=' + data.resumesId,
  1350. success() {
  1351. uni.setStorageSync('isDial', true)
  1352. uni.setStorageSync('videoStatus', 1)
  1353. that.isVideo = false
  1354. }
  1355. })
  1356. } else {
  1357. that.isVideo = false
  1358. uni.showToast({
  1359. title: res.msg,
  1360. icon: 'none'
  1361. })
  1362. }
  1363. })
  1364. },
  1365. scroll(e) {
  1366. this.old.scrollTop = e.detail.scrollTop
  1367. },
  1368. // 开启订阅消息
  1369. openMsg() {
  1370. console.log('订阅消息')
  1371. var that = this
  1372. uni.getSetting({
  1373. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1374. success(ret) {
  1375. console.log(ret.subscriptionsSetting, '------------------')
  1376. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1377. if (ret.subscriptionsSetting.itemSettings) {
  1378. uni.setStorageSync('sendMsg', true)
  1379. uni.openSetting({ // 打开设置页
  1380. success(rea) {
  1381. console.log(rea.authSetting)
  1382. }
  1383. });
  1384. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1385. console.log(99999)
  1386. uni.setStorageSync('sendMsg', false)
  1387. uni.showModal({
  1388. title: '提示',
  1389. content: '为了更好的体验,请绑定消息推送',
  1390. confirmText: '确定',
  1391. cancelText: '取消',
  1392. confirmColor: '#016BF6',
  1393. success: function(res) {
  1394. if (res.confirm) {
  1395. console.log(that.arr)
  1396. wx.requestSubscribeMessage({
  1397. tmplIds: that.arr,
  1398. success(re) {
  1399. console.log(JSON.stringify(re),
  1400. '++++++++++++++')
  1401. var datas = JSON.stringify(re);
  1402. if (datas.indexOf("accept") != -1) {
  1403. console.log(re)
  1404. uni.setStorageSync('sendMsg', true)
  1405. }
  1406. },
  1407. fail: (res) => {
  1408. console.log(res)
  1409. }
  1410. })
  1411. uni.setStorageSync('sendMsg', true)
  1412. console.log('确认')
  1413. that.showModal = false
  1414. } else if (res.cancel) {
  1415. console.log('取消')
  1416. uni.setStorageSync('sendMsg', false)
  1417. that.showModal = true
  1418. }
  1419. }
  1420. })
  1421. }
  1422. }
  1423. })
  1424. },
  1425. /**
  1426. * @param {Object} info 内容
  1427. * @param {Object} userType 用户类型
  1428. * @param {Object} type 参数类型
  1429. */
  1430. copyss(info, userType, type) {
  1431. let content = ''
  1432. switch (type) {
  1433. //复制手机号
  1434. case 'phone':
  1435. if (userType == 1) {
  1436. content = JSON.parse(info).companyPhone
  1437. } else {
  1438. content = JSON.parse(info).userPhone
  1439. }
  1440. break;
  1441. //复制微信号
  1442. case 'wx':
  1443. if (userType == 1) {
  1444. content = JSON.parse(info).companyWx
  1445. } else {
  1446. content = JSON.parse(info).userWx
  1447. }
  1448. break;
  1449. default:
  1450. break;
  1451. }
  1452. this.copy(content)
  1453. },
  1454. openMapss(latitude, longitude, name) {
  1455. uni.openLocation({
  1456. latitude: latitude - 0, //要去的纬度-地址
  1457. longitude: longitude - 0, //要去的经度-地址
  1458. name: name, //地址名称
  1459. address: name, //详细地址名称
  1460. success: function() {
  1461. console.log('导航成功');
  1462. },
  1463. fail: function(error) {
  1464. console.log(error)
  1465. }
  1466. });
  1467. },
  1468. async goMapss() {
  1469. let that = this
  1470. // #ifdef APP
  1471. const hasLocation = await this.$queue.checkPermission(
  1472. 'location',
  1473. '获取位置需要定位权限,用于发送位置消息',
  1474. this,'locationPermission'
  1475. );
  1476. if (!hasLocation) return;
  1477. // #endif
  1478. uni.chooseLocation({
  1479. success: function(res) {
  1480. console.log('位置名称:' + res.name);
  1481. console.log('详细地址:' + res.address);
  1482. console.log('纬度:' + res.latitude);
  1483. console.log('经度:' + res.longitude);
  1484. let mapsValue = JSON.stringify(res);
  1485. that.setChatSave(18, mapsValue)
  1486. // console.log(typeof(res))
  1487. // return
  1488. that.showMore();
  1489. }
  1490. });
  1491. },
  1492. //接受邀请
  1493. setJuJues(item) {
  1494. // #ifdef MP-WEIXIN
  1495. if (uni.getStorageSync('sendMsg')) {
  1496. // console.log('授权+1')
  1497. wx.requestSubscribeMessage({
  1498. tmplIds: this.arr,
  1499. success(re) {
  1500. // console.log(JSON.stringify(re), 111111111111)
  1501. var datas = JSON.stringify(re);
  1502. if (datas.indexOf("accept") != -1) {
  1503. // console.log(re)
  1504. }
  1505. },
  1506. fail: (res) => {
  1507. // console.log(res)
  1508. }
  1509. })
  1510. }
  1511. // #endif
  1512. let that = this
  1513. uni.showModal({
  1514. title: '提示',
  1515. content: '确定接受来自' + item.company.companyName + '的面试邀请吗?',
  1516. confirmColor: '#016BF6',
  1517. complete(ret) {
  1518. if (ret.confirm) {
  1519. let data = {
  1520. recordId: item.recordId,
  1521. type: 1
  1522. }
  1523. that.$Request.getT("/app/interviewRecord/userUpdateInter", data).then(res => {
  1524. if (res.code == 0) {
  1525. uni.showToast({
  1526. // title: '已接受来自' + item.company.companyName + '的面试邀请'
  1527. title: '已接受面试邀请'
  1528. })
  1529. that.msshow = false;
  1530. that.setChatSave(97,res.data)
  1531. } else {
  1532. uni.showToast({
  1533. title: res.msg,
  1534. icon: 'none'
  1535. })
  1536. }
  1537. })
  1538. }
  1539. }
  1540. })
  1541. },
  1542. //去导航
  1543. goMapDap(info) {
  1544. uni.openLocation({
  1545. latitude: info.lat,
  1546. longitude: info.lng,
  1547. address: info.detailedAddress,
  1548. name: info.detailedAddress,
  1549. complete(ret) {
  1550. }
  1551. })
  1552. },
  1553. //拒绝邀请
  1554. setJuJue(item) {
  1555. let that = this
  1556. uni.showModal({
  1557. title: '提示',
  1558. content: '确定拒绝来自' + item.company.companyName + '的面试邀请吗?',
  1559. confirmColor: '#016BF6',
  1560. complete(ret) {
  1561. if (ret.confirm) {
  1562. let data = {
  1563. recordId: item.recordId,
  1564. type: 2
  1565. }
  1566. that.$Request.getT("/app/interviewRecord/userUpdateInter", data).then(res => {
  1567. if (res.code == 0) {
  1568. uni.showToast({
  1569. title: '已拒绝来自' + item.company.companyName + '的面试邀请'
  1570. })
  1571. that.msshow = false;
  1572. that.setChatSave(96,res.data)
  1573. } else {
  1574. uni.showToast({
  1575. title: res.msg,
  1576. icon: 'none'
  1577. })
  1578. }
  1579. })
  1580. }
  1581. }
  1582. })
  1583. },
  1584. //获取用户是否有面试记录
  1585. getInterviewList() {
  1586. let data = {
  1587. /* userId: uni.getStorageSync('userId'), */
  1588. status: 1,
  1589. postPushId: this.postPushId
  1590. }
  1591. this.$Request.getT("/app/interviewRecord/interviewList", data).then(res => {
  1592. if (res.code == 0) {
  1593. if ((res.data.records).length > 0) {
  1594. this.records = res.data.records[0]
  1595. this.msshow = true
  1596. } else {
  1597. this.msshow = false
  1598. }
  1599. } else {
  1600. uni.showToast({
  1601. title: res.msg,
  1602. icon: 'none'
  1603. })
  1604. this.msshow = false
  1605. }
  1606. })
  1607. },
  1608. submitMs() {
  1609. if (!this.miamshi.interviewDateTime) {
  1610. this.$refs.uToast.show({
  1611. title: '请选择面试时间',
  1612. type: 'default',
  1613. position: 'bottom'
  1614. })
  1615. return
  1616. }
  1617. if (!this.miamshi.detailedAddress) {
  1618. this.$refs.uToast.show({
  1619. title: '请选择面试地点',
  1620. type: 'default',
  1621. position: 'bottom'
  1622. })
  1623. return
  1624. }
  1625. let that = this
  1626. uni.showModal({
  1627. title: '提示',
  1628. content: '确定发起面试邀请吗?',
  1629. confirmColor: '#016BF6',
  1630. complete(ret) {
  1631. if (ret.confirm) {
  1632. let data = {
  1633. interviewDateTime: that.miamshi.interviewDateTime + ':00',
  1634. companyId: uni.getStorageSync('companyId'),
  1635. remarks: that.miamshi.remarks,
  1636. userId: that.byUserId, //求职者id
  1637. postPushId: that.postPushId,
  1638. province: that.miamshi.province,
  1639. city: that.miamshi.city,
  1640. county: that.miamshi.county,
  1641. lng: that.miamshi.lng,
  1642. lat: that.miamshi.lat,
  1643. detailedAddress: that.miamshi.detailedAddress
  1644. }
  1645. that.$Request.postJson("/app/interviewRecord/saveInterview", data).then(res => {
  1646. if (res.code == 0) {
  1647. uni.showToast({
  1648. title: '面试邀请已发送'
  1649. })
  1650. that.mianshiShow = false
  1651. } else {
  1652. that.mianshiShow = false
  1653. uni.showToast({
  1654. title: res.msg,
  1655. icon: 'none'
  1656. })
  1657. }
  1658. })
  1659. }
  1660. }
  1661. })
  1662. },
  1663. //关闭弹窗的时候清空表单的值
  1664. cleanMs() {
  1665. this.miamshi = {
  1666. interviewDateTime: '', //面试时间
  1667. companyId: '', //公司id
  1668. remarks: '', //面试备注
  1669. userId: '', //面试者id
  1670. postPushId: '', //岗位id
  1671. province: '', //省
  1672. city: '', //市
  1673. county: '', //区
  1674. lng: '', //经度
  1675. lat: '', //纬度
  1676. detailedAddress: '', //详细地址
  1677. }
  1678. },
  1679. // 点击调起地图选择位置
  1680. goMap() {
  1681. let that = this
  1682. uni.chooseLocation({
  1683. success: function(res) {
  1684. let arrress = res.address
  1685. let reg = /.+?(省|市|自治区|自治州|县|区)/g;
  1686. let adds = arrress.match(reg)
  1687. console.log(adds)
  1688. that.miamshi.province = adds[0]
  1689. that.miamshi.city = adds[1]
  1690. that.miamshi.county = adds[2]
  1691. that.miamshi.detailedAddress = res.address + '' + res.name
  1692. that.miamshi.lat = res.latitude
  1693. that.miamshi.lng = res.longitude
  1694. }
  1695. });
  1696. },
  1697. //选择面试时间
  1698. mianshiConfirm(e) {
  1699. //获取当前时间的年份
  1700. let date = new Date()
  1701. let year = date.getFullYear()
  1702. this.miamshi.interviewDateTime = year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute
  1703. },
  1704. mianshiF() {
  1705. // #ifdef MP-WEIXIN
  1706. if (uni.getStorageSync('sendMsg')) {
  1707. // console.log('授权+1')
  1708. wx.requestSubscribeMessage({
  1709. tmplIds: this.arr,
  1710. success(re) {
  1711. // console.log(JSON.stringify(re), 111111111111)
  1712. var datas = JSON.stringify(re);
  1713. if (datas.indexOf("accept") != -1) {
  1714. // console.log(re)
  1715. }
  1716. },
  1717. fail: (res) => {
  1718. // console.log(res)
  1719. }
  1720. })
  1721. }
  1722. // #endif
  1723. let data = {
  1724. userId: this.byUserId,
  1725. postPushId: this.postPushId
  1726. }
  1727. this.$Request.getT("/app/interviewRecord/isSendView", data).then(res => {
  1728. if (res.code == 0) {
  1729. //这里要判断是boss还是求职者,跳不同的页面 bossMianshiDetail
  1730. if (!res.data) {//表示没有面试,去约面试
  1731. //this.mianshiShow = true
  1732. if(!this.resumesInfo&&!this.resumesInfo.userId)
  1733. return this.$queue.showToast('简历用户信息获取失败')
  1734. uni.navigateTo({
  1735. url:`/pages/msg/interviewInvitation?postPushId=${this.postPushId}&resumesId=${this.resumesId}&interviewerId=${this.resumesInfo.userId}`
  1736. })
  1737. } else {
  1738. //这里的逻辑是不是应跳到面试详情了?
  1739. uni.navigateTo({
  1740. url:`/my/jilu/bossMianshiDetail?recordId=${res.data}&companyId=${uni.getStorageSync('companyId')}`
  1741. })
  1742. uni.showToast({
  1743. title: '已发送过面试邀请',
  1744. icon: 'none'
  1745. })
  1746. this.mianshiShow = false
  1747. }
  1748. } else {
  1749. this.mianshiShow = false
  1750. uni.showToast({
  1751. title: res.msg,
  1752. icon: 'none'
  1753. })
  1754. }
  1755. })
  1756. },
  1757. //请求拒绝
  1758. refuseFun(id) {
  1759. let that = this
  1760. uni.showModal({
  1761. title: '提示',
  1762. content: '确定拒绝吗?',
  1763. confirmColor: '#016BF6',
  1764. complete(ret) {
  1765. if (ret.confirm) {
  1766. let data = {
  1767. chatContentId: id
  1768. }
  1769. that.$Request.getT("/app/chat/refuseReqs", data).then(res => {
  1770. if (res.code == 0) {
  1771. uni.showToast({
  1772. title: '已拒绝'
  1773. })
  1774. that.setChatSave(24)
  1775. that.getTimeOrListItem1()
  1776. that.getStatusInfo()
  1777. } else {
  1778. uni.showToast({
  1779. title: res.msg,
  1780. icon: 'none'
  1781. })
  1782. }
  1783. })
  1784. }
  1785. }
  1786. })
  1787. },
  1788. selectAttachment(item){
  1789. this.attachmentShow=false
  1790. let that = this
  1791. let data = {
  1792. to: this.byUserId, //接收人的userId
  1793. postPushId: this.postPushId, //岗位id
  1794. resumesAttachmentId:item.resumesAttachmentId
  1795. }
  1796. this.$Request.postT("/app/resumes/sendResumes", data).then(res => {
  1797. if (res.code == 0) {
  1798. uni.showToast({
  1799. title: '简历已发送',
  1800. })
  1801. that.setChatSave(24,item.attachmentAddress,'jl')
  1802. that.getTimeOrListItem1()
  1803. that.getStatusInfo()
  1804. } else {
  1805. uni.showToast({
  1806. title: res.msg,
  1807. icon: 'none'
  1808. })
  1809. }
  1810. })
  1811. },
  1812. // 同意简历请求并发送简历
  1813. sendResumesSave() {
  1814. this.attachmentShow=true
  1815. },
  1816. resumesTy() {
  1817. let that = this
  1818. return that.sendResumesSave()
  1819. uni.showModal({
  1820. title: '提示',
  1821. content: '确定发送简历给对方?',
  1822. confirmColor: '#016BF6',
  1823. complete(ret) {
  1824. if (ret.confirm) {
  1825. that.sendResumesSave()
  1826. }
  1827. }
  1828. })
  1829. },
  1830. //求简历
  1831. giveSendResumes() {
  1832. let that = this
  1833. uni.showModal({
  1834. title: '提示',
  1835. content: '是否将简历请求发送给对方?,对方同意后将会收到对方的简历',
  1836. confirmColor: '#016BF6',
  1837. complete(ret) {
  1838. if (ret.confirm) {
  1839. that.setChatSave(9)
  1840. }
  1841. }
  1842. })
  1843. },
  1844. //发简历
  1845. sendResumes() {
  1846. let that = this
  1847. return that.sendResumesSave()
  1848. uni.showModal({
  1849. title: '提示',
  1850. content: '是否将简历发送给对方?',
  1851. confirmColor: '#016BF6',
  1852. complete(ret) {
  1853. if (ret.confirm) {
  1854. that.sendResumesSave()
  1855. }
  1856. }
  1857. })
  1858. },
  1859. //获取交换状态
  1860. getStatusInfo() {
  1861. let data = {
  1862. chatConversationId: this.chatConversationId
  1863. }
  1864. this.$Request.getT("/app/chat/getConversationInfo", data).then(res => {
  1865. if (res.code == 0) {
  1866. this.conversationInfo=res.data
  1867. if (res.data.isSendWx) {
  1868. this.isSendWx = true
  1869. } else {
  1870. this.isSendWx = false
  1871. }
  1872. if (res.data.isSendPhone) {
  1873. this.isSendPhone = true
  1874. } else {
  1875. this.isSendPhone = false
  1876. }
  1877. if(res.data.isSendResumes)
  1878. this.isSendResumes=true
  1879. else
  1880. this.isSendResumes=false
  1881. }
  1882. })
  1883. },
  1884. //交换微信号弹窗
  1885. currentWchat() {
  1886. let that = this
  1887. if (!uni.getStorageSync('weChatNum')) {
  1888. uni.showModal({
  1889. title: '提示',
  1890. content: '请先再个人信息页面完善微信号后操作',
  1891. confirmColor: '#016BF6',
  1892. confirmText: '去完善',
  1893. complete(re) {
  1894. if (re.confirm) {
  1895. uni.navigateTo({
  1896. url: '/pages/my/userinfo'
  1897. })
  1898. }
  1899. }
  1900. })
  1901. return
  1902. }
  1903. if (this.isSendWx == false) {
  1904. this.wechatExchangeShow = true;
  1905. } else {
  1906. uni.showToast({
  1907. title: '已交换过微信号,请查看聊天记录',
  1908. icon: 'none'
  1909. })
  1910. }
  1911. },
  1912. //同意交换手机号/微信
  1913. tongyi(messageType, chatContentId) {
  1914. if (messageType == 6 && !uni.getStorageSync('weChatNum')) {
  1915. uni.showModal({
  1916. title: '提示',
  1917. content: '请先再个人信息页面完善微信号后操作',
  1918. confirmColor: '#016BF6',
  1919. confirmText: '去完善',
  1920. complete(re) {
  1921. if (re.confirm) {
  1922. uni.navigateTo({
  1923. url: '/pages/my/userinfo'
  1924. })
  1925. }
  1926. }
  1927. })
  1928. return
  1929. }
  1930. let that = this
  1931. uni.showModal({
  1932. title: '提示',
  1933. content: messageType == 5 ? '同意后将交换手机号,是否同意?' : '同意后将交换微信号,是否同意?',
  1934. confirmColor: '#016BF6',
  1935. complete(ret) {
  1936. if (ret.confirm) {
  1937. let data = {
  1938. messageType: messageType,
  1939. chatContentId: chatContentId
  1940. }
  1941. that.$Request.postT("/app/chat/sendPhoneOrWx", data).then(res => {
  1942. if (res.code == 0) {
  1943. that.setChatSave(24)
  1944. that.getTimeOrListItem1()
  1945. that.getStatusInfo()
  1946. }
  1947. })
  1948. }
  1949. }
  1950. })
  1951. },
  1952. //交换手机号弹窗
  1953. currentPhone() {
  1954. if (this.isSendPhone == false) {
  1955. this.phoneExchangeShow = true;
  1956. } else {
  1957. uni.showToast({
  1958. title: '已交换过手机号,请查看聊天记录',
  1959. icon: 'none'
  1960. })
  1961. }
  1962. },
  1963. // 取消交换手机号
  1964. cancelPhoneExchange() {
  1965. this.phoneExchangeShow = false;
  1966. },
  1967. // 确认交换手机号
  1968. confirmPhoneExchange() {
  1969. this.phoneExchangeShow = false;
  1970. this.setChatSave(5);
  1971. },
  1972. // 取消微信交换
  1973. cancelWechatExchange() {
  1974. this.wechatExchangeShow = false;
  1975. },
  1976. // 确认微信交换
  1977. confirmWechatExchange() {
  1978. this.wechatExchangeShow = false;
  1979. this.setChatSave(6);
  1980. },
  1981. goNav(url) {
  1982. uni.navigateTo({
  1983. url: url
  1984. })
  1985. },
  1986. //获取简历数据
  1987. getResumesInfo(id) {
  1988. var that=this
  1989. this.$Request.getT("/app/resumes/selectResumesByResumesId", {
  1990. userId: uni.getStorageSync('userId'),
  1991. resumesId: id,
  1992. companyId: uni.getStorageSync('companyId')
  1993. }).then(res => {
  1994. if (res.code == 0) {
  1995. let title = res.data.userName
  1996. uni.setNavigationBarTitle({
  1997. title: title
  1998. })
  1999. res.data.intentionRuleClassifyName=this.postPushInfo.ruleClassifyName
  2000. res.data.intentionSalaryRange=this.postPushInfo.salaryRange
  2001. res.data.intentionExprence=[]
  2002. res.data.intentionList.forEach(function(item){
  2003. if(item.ruleClassifyName==that.postPushInfo.ruleClassifyName){
  2004. res.data.intentionRuleClassifyName=item.ruleClassifyName
  2005. res.data.intentionSalaryRange=item.salaryRange
  2006. res.data.intentionExprence=item.industry&&item.industry.split('/')||[]
  2007. }
  2008. })
  2009. this.resumesInfo = res.data
  2010. // this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare.split(',')
  2011. }
  2012. })
  2013. },
  2014. noIdtent(){
  2015. this.content='抱歉,我对该岗位暂无兴趣';
  2016. this.setChatSave(1)
  2017. },
  2018. gotoInfo(id) {
  2019. uni.navigateTo({
  2020. url: '/pages/index/game/order?postPushId=' + id
  2021. })
  2022. },
  2023. //获取岗位数据
  2024. getPostPushInfo(id) {
  2025. this.$Request.getT("/app/postPush/selectPostPushDetails", {
  2026. userId: uni.getStorageSync('userId'),
  2027. postPushId: id
  2028. }).then(res => {
  2029. if (res.code == 0) {
  2030. if(this.userType==1){
  2031. let title = res.data.company?res.data.company.companyName:'聊天'
  2032. uni.setNavigationBarTitle({
  2033. title: title
  2034. })
  2035. }
  2036. this.postPushInfo = res.data
  2037. this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare&&this.postPushInfo.positionWelfare.split(',')||[]
  2038. }
  2039. })
  2040. },
  2041. caozuoActive(item, type) {
  2042. if (type == 1) {
  2043. this.activelist = [{
  2044. text: '复制',
  2045. color: 'black',
  2046. fontSize: 24
  2047. }, {
  2048. text: '撤回',
  2049. color: 'black',
  2050. fontSize: 24
  2051. }]
  2052. } else {
  2053. this.activelist = [{
  2054. text: '撤回',
  2055. color: 'black',
  2056. fontSize: 24
  2057. }]
  2058. }
  2059. this.activeInfo = item
  2060. this.showActive = true
  2061. },
  2062. activeclick(index) {
  2063. if (this.activelist[index].text == '复制') { // 复制
  2064. this.copy(this.activeInfo.content)
  2065. } else { //撤回
  2066. let t2 = this.activeInfo.createTimes; //格式不正确需要转换
  2067. let aftert2 = new Date(t2.replace(/-/g, "/")); //转换
  2068. let data = new Date(); //获取当前时间
  2069. let times = data.getTime() - aftert2.getTime(); //时间差的毫秒数
  2070. //计算分钟数
  2071. let minu = parseInt(times / (1000 * 60))
  2072. if (minu > 5) {
  2073. uni.showToast({
  2074. title: '超过五分钟无法撤回',
  2075. icon: 'none'
  2076. })
  2077. } else {
  2078. let that = this
  2079. uni.showModal({
  2080. title: '提示',
  2081. content: '确定要撤回吗?',
  2082. confirmColor: '#016BF6',
  2083. complete(ret) {
  2084. if (ret.confirm) {
  2085. that.$Request.postT('/app/chat/deleteChatContentById', {
  2086. chatContentId: that.activeInfo.chatContentId
  2087. })
  2088. .then(res => {
  2089. if (res.code == 0) {
  2090. uni.showToast({
  2091. title: '已撤回',
  2092. icon: 'none'
  2093. })
  2094. that.getTimeOrListItem1();
  2095. }
  2096. });
  2097. }
  2098. }
  2099. })
  2100. }
  2101. }
  2102. },
  2103. //跳转
  2104. click(index) {
  2105. console.log(index)
  2106. switch (index) {
  2107. case 0: //简历
  2108. uni.navigateTo({
  2109. url: '/pages/index/game/orderDet?userId=' + this.tUserId
  2110. })
  2111. break;
  2112. case 1: //企业
  2113. uni.navigateTo({
  2114. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + this.companyId + '&type=yes'
  2115. })
  2116. break;
  2117. default:
  2118. break;
  2119. }
  2120. },
  2121. //消息公告
  2122. getMessage() {
  2123. this.$Request.getT('/app/common/type/311')
  2124. .then(res => {
  2125. if (res.code == 0) {
  2126. this.messages = res.data.value
  2127. }
  2128. });
  2129. },
  2130. showChangYongSelect() {
  2131. this.showMore();
  2132. this.showChangYong = !this.showChangYong;
  2133. },
  2134. selConfirm(e) {
  2135. // this.form.game = e[0].label
  2136. // this.form.gameId = e[0].value
  2137. this.content = e[0].label;
  2138. this.showMore();
  2139. this.showChangYong = false;
  2140. // this.setChatSave(1);
  2141. },
  2142. getChangYong() {
  2143. let state = 0
  2144. if(this.userType == 1){
  2145. state = 70
  2146. }else{
  2147. state = 80
  2148. }
  2149. this.$Request.getT(`/app/message/selectMessageByType?page=1&limit=100&state=${state}`)
  2150. .then(res => {
  2151. if (res.code == 0) {
  2152. this.changYongList = [{label:'你好啊,可以聊一聊~',value:0}];
  2153. res.data.list.forEach(d => {
  2154. let data = {
  2155. label: d.content,
  2156. value: d.id
  2157. }
  2158. this.changYongList.push(data);
  2159. });
  2160. }
  2161. });
  2162. },
  2163. goGuanZhu() {
  2164. if(this.userType == 1){
  2165. this.gotoInfo(this.postPushInfo.postPushId)
  2166. }else{
  2167. this.goNav('/pages/talentSearch/resumeDetail?resumesId=' + this.resumesId + '&postPushId=' + this.postPushId + '&isShowBtn=' + 1)
  2168. }
  2169. // this.hideDrawer();
  2170. // this.tUserId = item.userId
  2171. // this.$Request.get('/app/user/selectUserByIds', {
  2172. // 'userId': item.userId
  2173. // }).then(res => {
  2174. // if (res.code == 0) {
  2175. // if (res.data.userType == 1 || res.data.userType == null) { //个人
  2176. // uni.navigateTo({
  2177. // url: '/pages/index/game/orderDet?userId=' + item.userId
  2178. // })
  2179. // } else {
  2180. // this.$Request.get('/app/resumes/selectResumesByUserIds', {
  2181. // 'userId': item.userId
  2182. // }).then(ret => {
  2183. // if (ret.code == 0) {
  2184. // if (ret.data && JSON.stringify(ret.data) != '{}') { //有简历则选择
  2185. // this.$Request.get('/app/company/selectCompanyByUserIds', {
  2186. // userId: item.userId
  2187. // }).then(ree => {
  2188. // if (ree.code == 0) {
  2189. // this.companyId = ree.data.companyId
  2190. // }
  2191. // });
  2192. // this.show = true
  2193. // } else { //没有简历直接跳转企业详情
  2194. // this.$Request.get('/app/company/selectCompanyByUserIds', {
  2195. // userId: item.userId
  2196. // }).then(ree => {
  2197. // if (ree.code == 0) {
  2198. // uni.navigateTo({
  2199. // url: '/my/enterpriseInfo/enterpriseInfo?companyId=' +
  2200. // ree.data.companyId + '&type=yes'
  2201. // })
  2202. // }
  2203. // });
  2204. // }
  2205. // }
  2206. // });
  2207. // }
  2208. // }
  2209. // });
  2210. },
  2211. //添加常用语/自动回复
  2212. goAdd() {
  2213. this.showMore();
  2214. uni.navigateTo({
  2215. url: '/pages/msg/addmsg',
  2216. success: (res) => {
  2217. // 监听返回的数据
  2218. res.eventChannel.on('selectData', (data) => {
  2219. console.log('子页面返回的数据:', data);
  2220. this.content = data;
  2221. });
  2222. }
  2223. });
  2224. },
  2225. goHistory() {
  2226. this.showMore();
  2227. uni.navigateTo({
  2228. url: '/pages/msg/chathistory?chatConversationId=' + this.chatConversationId
  2229. });
  2230. },
  2231. insertChat() {
  2232. let userId = this.$queue.getData('userId');
  2233. let data = {
  2234. focusedUserId: this.byUserId,
  2235. userId: userId
  2236. }
  2237. this.$Request.postJson('/appChat/insertChatConversation', data).then(res => {
  2238. if (res.code == 0 && res.data) {
  2239. this.chatConversationId = res.data.chatConversationId;
  2240. this.getTimeOrListItem1();
  2241. }
  2242. });
  2243. },
  2244. //更多功能(点击+弹出)
  2245. showMore() {
  2246. this.isVoice = false;
  2247. this.hideEmoji = true;
  2248. if (this.hideMore) {
  2249. this.hideMore = false;
  2250. this.openDrawer();
  2251. } else {
  2252. this.hideDrawer();
  2253. }
  2254. },
  2255. // 打开抽屉
  2256. openDrawer() {
  2257. this.popupLayerClass = 'showLayer';
  2258. },
  2259. // 隐藏抽屉
  2260. hideDrawer() {
  2261. this.popupLayerClass = '';
  2262. setTimeout(() => {
  2263. this.hideMore = true;
  2264. this.hideEmoji = true;
  2265. }, 150);
  2266. },
  2267. // 选择表情
  2268. chooseEmoji() {
  2269. this.hideMore = true;
  2270. if (this.hideEmoji) {
  2271. this.hideEmoji = false;
  2272. this.openDrawer();
  2273. } else {
  2274. this.hideDrawer();
  2275. }
  2276. },
  2277. //添加表情
  2278. addEmoji(em) {
  2279. this.textMsg += em.alt;
  2280. },
  2281. //获取焦点,如果不是选表情ing,则关闭抽屉
  2282. textareaFocus() {
  2283. if (this.popupLayerClass == 'showLayer' && this.hideMore == false) {
  2284. this.hideDrawer();
  2285. }
  2286. },
  2287. //替换表情符号为图片
  2288. replaceEmoji(str) {
  2289. let replacedStr = str.replace(/\[([^(\]|\[)]*)\]/g, (item, index) => {
  2290. console.log("item: " + item);
  2291. for (let i = 0; i < this.emojiList.length; i++) {
  2292. let row = this.emojiList[i];
  2293. for (let j = 0; j < row.length; j++) {
  2294. let EM = row[j];
  2295. if (EM.alt == item) {
  2296. //在线表情路径,图文混排必须使用网络路径,请上传一份表情到你的服务器后再替换此路径
  2297. //比如你上传服务器后,你的100.gif路径为https://www.xxx.com/emoji/100.gif 则替换onlinePath填写为https://www.xxx.com/emoji/
  2298. let onlinePath = 'https://s2.ax1x.com/2019/04/12/'
  2299. let imgstr = '<img src="' + onlinePath + this.onlineEmoji[EM.url] + '">';
  2300. console.log("imgstr: " + imgstr);
  2301. return imgstr;
  2302. }
  2303. }
  2304. }
  2305. });
  2306. return '<div style="display: flex;align-items: center;word-wrap:break-word;">' + replacedStr + '</div>';
  2307. },
  2308. // 播放语音
  2309. playVoice(msg, index) {
  2310. console.log(msg)
  2311. this.playMsgid = index;
  2312. this.AUDIO.src = msg;
  2313. this.$nextTick(function() {
  2314. this.AUDIO.play();
  2315. });
  2316. },
  2317. // 录音开始
  2318. async voiceBegin(e) {
  2319. let that = this
  2320. // 1. 先判断系统类型,区分Android/iOS权限
  2321. const hasPermission = await this.$queue.checkPermission(
  2322. 'microphone',
  2323. '选择/拍摄照片需要相机/相册权限,用于发送图片消息',
  2324. this,
  2325. 'microphonePermission'
  2326. );
  2327. // 2. 如果未授权或者用户拒绝,显示提示
  2328. if (!hasPermission) {
  2329. return;
  2330. }
  2331. if (e.touches.length > 1) {
  2332. return;
  2333. }
  2334. this.initPoint.Y = e.touches[0].clientY;
  2335. this.initPoint.identifier = e.touches[0].identifier;
  2336. this.RECORDER.start({
  2337. format: "mp3"
  2338. }); //录音开始,
  2339. },
  2340. //录音开始UI效果
  2341. recordBegin(e) {
  2342. this.recording = true;
  2343. this.voiceTis = '松开 结束';
  2344. this.recordLength = 0;
  2345. this.recordTimer = setInterval(() => {
  2346. this.recordLength++;
  2347. }, 1000)
  2348. },
  2349. // 录音被打断
  2350. voiceCancel() {
  2351. this.recording = false;
  2352. this.voiceTis = '按住 说话';
  2353. this.recordTis = '手指上滑 取消发送'
  2354. this.willStop = true; //不发送录音
  2355. this.RECORDER.stop(); //录音结束
  2356. },
  2357. // 录音中(判断是否触发上滑取消发送)
  2358. voiceIng(e) {
  2359. if (!this.recording) {
  2360. return;
  2361. }
  2362. let touche = e.touches[0];
  2363. //上滑一个导航栏的高度触发上滑取消发送
  2364. if (this.initPoint.Y - touche.clientY >= uni.upx2px(100)) {
  2365. this.willStop = true;
  2366. this.recordTis = '松开手指 取消发送'
  2367. } else {
  2368. this.willStop = false;
  2369. this.recordTis = '手指上滑 取消发送'
  2370. }
  2371. },
  2372. // 结束录音
  2373. voiceEnd(e) {
  2374. if (!this.recording) {
  2375. return;
  2376. }
  2377. this.recording = false;
  2378. this.voiceTis = '按住 说话';
  2379. this.recordTis = '手指上滑 取消发送'
  2380. this.RECORDER.stop(); //录音结束
  2381. },
  2382. //录音结束(回调文件)
  2383. recordEnd(e) {
  2384. clearInterval(this.recordTimer);
  2385. if (!this.willStop) {
  2386. this.$queue.showLoading('发送中...')
  2387. console.log("e: " + JSON.stringify(e));
  2388. let msg = {
  2389. length: 0,
  2390. url: e.tempFilePath
  2391. }
  2392. let min = parseInt(this.recordLength / 60);
  2393. let sec = this.recordLength % 60;
  2394. min = min < 10 ? '0' + min : min;
  2395. sec = sec < 10 ? '0' + sec : sec;
  2396. msg.length = min + ':' + sec;
  2397. console.log('msg.length___:' + msg.length)
  2398. uni.uploadFile({ // 上传接口
  2399. url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
  2400. filePath: e.tempFilePath,
  2401. name: 'file',
  2402. success: (uploadFileRes) => {
  2403. uni.hideLoading();
  2404. this.content = JSON.parse(uploadFileRes.data).data;
  2405. console.log("语音:" + this.content)
  2406. this.setChatSave(3, msg.length);
  2407. uni.hideLoading();
  2408. }
  2409. });
  2410. } else {
  2411. console.log('取消发送录音');
  2412. }
  2413. this.willStop = false;
  2414. },
  2415. // 切换语音/文字输入
  2416. switchVoice() {
  2417. this.hideDrawer();
  2418. this.isVoice = this.isVoice ? false : true;
  2419. },
  2420. copy(content) {
  2421. uni.showModal({
  2422. title: '温馨提示',
  2423. content: '确认要复制此文字吗?',
  2424. showCancel: true,
  2425. cancelText: '取消',
  2426. confirmText: '确认',
  2427. confirmColor: '#016BF6',
  2428. success: res => {
  2429. if (res.confirm) {
  2430. uni.setClipboardData({
  2431. data: content,
  2432. success: r => {
  2433. this.$queue.showToast('复制成功');
  2434. }
  2435. });
  2436. }
  2437. }
  2438. });
  2439. },
  2440. h5Copy(content) {
  2441. if (!document.queryCommandSupported('copy')) {
  2442. // 不支持
  2443. return false
  2444. }
  2445. let textarea = document.createElement("textarea")
  2446. textarea.value = content
  2447. textarea.readOnly = "readOnly"
  2448. document.body.appendChild(textarea)
  2449. textarea.select() // 选择对象
  2450. textarea.setSelectionRange(0, content.length) //核心
  2451. let result = document.execCommand("copy") // 执行浏览器复制命令
  2452. textarea.remove()
  2453. return result
  2454. },
  2455. getDateDiff(data) {
  2456. // 1️⃣ 手动解析字符串,避免 iOS 时区问题
  2457. let timePublish;
  2458. if (typeof data === 'string') {
  2459. // 格式:2026-01-05 18:46:39
  2460. const parts = data.split(/[- :]/);
  2461. // 注意:月份从 0 开始
  2462. timePublish = new Date(parts[0], parts[1] - 1, parts[2], parts[3] || 0, parts[4] || 0, parts[5] || 0);
  2463. } else {
  2464. timePublish = new Date(data);
  2465. }
  2466. const timeNow = new Date();
  2467. const publishYear = timePublish.getFullYear();
  2468. const publishMonth = timePublish.getMonth() + 1;
  2469. const publishDate = timePublish.getDate();
  2470. const publishHour = timePublish.getHours().toString().padStart(2, '0');
  2471. const publishMinute = timePublish.getMinutes().toString().padStart(2, '0');
  2472. const oneDay = 1000 * 60 * 60 * 24;
  2473. // 用本地时间差计算天数
  2474. const diffDays = Math.floor((timeNow.setHours(0, 0, 0, 0) - timePublish.setHours(0, 0, 0, 0)) / oneDay);
  2475. const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  2476. const weekStr = weekDays[timePublish.getDay()];
  2477. const sameYear = publishYear === timeNow.getFullYear();
  2478. let result = '';
  2479. if (diffDays === 0) {
  2480. result = `${publishHour}:${publishMinute}`;
  2481. } else if (diffDays === 1) {
  2482. result = `昨天 ${publishHour}:${publishMinute}`;
  2483. } else if (diffDays < 7) {
  2484. result = `${weekStr} ${publishHour}:${publishMinute}`;
  2485. } else if (sameYear) {
  2486. result = `${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
  2487. } else {
  2488. result = `${publishYear}年${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
  2489. }
  2490. return result;
  2491. },
  2492. // 发送心跳包
  2493. startHeartbeat() {
  2494. // HeartBeat 这里是和后端约定好的值,我们发送给后端,后端再把这个值返给我们
  2495. // 目的就是让后端知道我们一直在
  2496. const heartbeatMsg = 'HeartBeat';
  2497. const sendHeartbeat = () => {
  2498. if (this.isOpen) {
  2499. console.log('发送HeartBeat')
  2500. uni.sendSocketMessage({
  2501. data: heartbeatMsg,
  2502. }).catch(error => {
  2503. console.log('发送心跳消息失败:', error);
  2504. //发送消息失败则进行重新链接
  2505. this.connect()
  2506. });
  2507. }
  2508. };
  2509. this.socketTimer = setInterval(sendHeartbeat, HEARTBEAT_INTERVAL);
  2510. },
  2511. // 开始重连
  2512. reconnect() {
  2513. if (!this.isOpen) {
  2514. clearTimeout(this.socketTimer);
  2515. this.socketTimer = setTimeout(() => {
  2516. console.log('开始重连...');
  2517. this.connect();
  2518. }, RECONNECT_INTERVAL);
  2519. }
  2520. },
  2521. connect() {
  2522. // #ifdef MP-WEIXIN
  2523. if (uni.getStorageSync('sendMsg')) {
  2524. // console.log('授权+1')
  2525. wx.requestSubscribeMessage({
  2526. tmplIds: this.arr,
  2527. success(re) {
  2528. // console.log(JSON.stringify(re), 111111111111)
  2529. var datas = JSON.stringify(re);
  2530. if (datas.indexOf("accept") != -1) {
  2531. // console.log(re)
  2532. }
  2533. },
  2534. fail: (res) => {
  2535. // console.log(res)
  2536. }
  2537. })
  2538. }
  2539. // #endif
  2540. let that = this
  2541. let userId = this.$queue.getData('userId');
  2542. uni.showLoading({
  2543. title: '连接中...'
  2544. })
  2545. uni.closeSocket()
  2546. uni.connectSocket({
  2547. // url: 'wss://h5.youxb.icu/wss/sqx_fast/chatSocket/' + userId,
  2548. // url: this.config("WSHOST1") + userId,
  2549. url: configdata.WSHOST1 + '' + userId,
  2550. // url: 'wss://h5.bosszan.com/wss/chatSocket/' + userId,
  2551. // url: 'ws://192.168.0.128:7152/sqx_fast/chatSocket/' + userId,
  2552. data() {
  2553. return {
  2554. msg: 'Hello'
  2555. }
  2556. },
  2557. header: {
  2558. 'content-type': 'application/json'
  2559. },
  2560. method: 'GET',
  2561. success(res) {
  2562. // 这里是接口调用成功的回调,不是连接成功的回调,请注意
  2563. },
  2564. fail(err) {
  2565. // 这里是接口调用失败的回调,不是连接失败的回调,请注意
  2566. }
  2567. })
  2568. uni.onSocketOpen((res) => {
  2569. uni.hideLoading()
  2570. that.isOpen = true;
  2571. that.startHeartbeat()
  2572. if (that.mapsValue) {
  2573. that.setChatSave(18, that.mapsValue)
  2574. }
  2575. })
  2576. uni.onSocketError((err) => {
  2577. uni.hideLoading()
  2578. //如果连接异常那么把状态设置为false
  2579. that.isOpen = false;
  2580. //并尝试进行重连
  2581. that.reconnect();
  2582. })
  2583. uni.onSocketMessage((res) => {
  2584. if (res.data == 'HeartBeat') { //如果是心跳回推则不进行处理
  2585. return
  2586. }
  2587. let msg
  2588. try {
  2589. msg = JSON.parse(res.data)
  2590. } catch (e) {
  2591. that.getTimeOrListItem1();
  2592. return;
  2593. }
  2594. if (msg.type === 'kickOut') {
  2595. uni.showModal({
  2596. title: '提示',
  2597. content: msg.content,
  2598. showCancel: false,
  2599. success() {
  2600. that.$queue.logout();
  2601. uni.reLaunch({ url: '/pages/public/loginphone?type=1' })
  2602. }
  2603. })
  2604. }else{
  2605. that.getTimeOrListItem1();
  2606. }
  2607. })
  2608. uni.onSocketClose((res) => {
  2609. uni.hideLoading()
  2610. that.isOpen = false;
  2611. //链接关闭的时候也尝试进行重连
  2612. // that.reconnect();
  2613. })
  2614. },
  2615. close() {
  2616. uni.closeSocket()
  2617. },
  2618. getTimeOrListItem1() {
  2619. let userId = this.$queue.getData('userId')
  2620. this.$Request.getT('/app/chat/selectChatContent?page=' + this.page + '&limit=' + this.size +
  2621. '&chatConversationId=' + this.chatConversationId + '&userId=' + userId).then(
  2622. res => {
  2623. // this.ListItem = [];
  2624. if (res.data) {
  2625. var time = '';
  2626. res.data.list.forEach(d => {
  2627. d.createTimes = d.createTime;
  2628. d.createTime = this.getDateDiff(d.createTime);
  2629. if (d.createTime === time) {
  2630. d.createTime = '';
  2631. } else {
  2632. time = d.createTime;
  2633. }
  2634. if (d.type === 4) {
  2635. let data = d.content.split(',');
  2636. d.content = data;
  2637. }
  2638. if (d.type === 3) {
  2639. let data = d.content.split(',');
  2640. d.content = data;
  2641. }
  2642. if (d.messageType === 18) {
  2643. d.content = JSON.parse(d.content);
  2644. d.markers = [{
  2645. id: 1,
  2646. latitude: d.content.latitude,
  2647. longitude: d.content.longitude,
  2648. width: 20,
  2649. height: 20,
  2650. iconPath: '../../static/images/mapMarker.png',
  2651. callout: {
  2652. content: d.content.name,
  2653. color: '#000', //文字颜色
  2654. fontSize: 10, //文本大小
  2655. padding: 10, //附近留白
  2656. borderRadius: 24, //边框圆角
  2657. bgColor: '#FFFFFF', //背景颜色
  2658. display: 'ALWAYS', //常显
  2659. }
  2660. }]
  2661. }
  2662. // this.ListItem.push(d);
  2663. });
  2664. this.ListItem = res.data.list
  2665. this.ListItem.reverse();
  2666. this.scrollTop = this.old.scrollTop
  2667. this.$nextTick(() => {
  2668. this.scrollTop = 99999
  2669. })
  2670. this.getStatusInfo()
  2671. }
  2672. uni.hideLoading();
  2673. });
  2674. },
  2675. setChatSave(type, url,val) {
  2676. //type:1文字 2图片
  2677. if (type === 1 && this.content == '') {
  2678. this.$queue.showToast('请输入聊天内容');
  2679. return;
  2680. }
  2681. if (type != 3 && type != 2 && this.$queue.getChatSearchKeys(this.content)) {
  2682. uni.showToast({
  2683. title: "输入内容带有非法关键字请重新输入",
  2684. mask: false,
  2685. duration: 1500,
  2686. icon: "none"
  2687. });
  2688. return;
  2689. }
  2690. // if (type === 1 && this.$queue.getChatSearchKeys(this.content) != -1) {
  2691. // uni.showToast({
  2692. // title: "输入内容带有非法关键字请重新输入",
  2693. // mask: false,
  2694. // duration: 1500,
  2695. // icon: "none"
  2696. // });
  2697. // return;
  2698. // }
  2699. let userId = this.$queue.getData('userId');
  2700. if (type === 4) {
  2701. this.content = url;
  2702. }
  2703. if (type === 18) { //定位
  2704. this.content = url;
  2705. }
  2706. let data = {};
  2707. if (type == 3) {
  2708. data = {
  2709. userId: this.byUserId,
  2710. content: this.content,
  2711. width: url,
  2712. messageType: type,
  2713. chatConversationId: this.chatConversationId
  2714. }
  2715. } else if (type == 5) { //交换手机号
  2716. data = {
  2717. userId: this.byUserId,
  2718. content: '手机号请求',
  2719. messageType: type,
  2720. chatConversationId: this.chatConversationId
  2721. }
  2722. } else if (type == 6) { //交换微信号
  2723. data = {
  2724. userId: this.byUserId,
  2725. content: '微信号请求',
  2726. messageType: type,
  2727. chatConversationId: this.chatConversationId
  2728. }
  2729. } else if (type == 9) { //简历请求
  2730. data = {
  2731. userId: this.byUserId,
  2732. content: '简历请求',
  2733. messageType: type,
  2734. chatConversationId: this.chatConversationId
  2735. }
  2736. } else if (type == 24 && !val) {
  2737. data = {
  2738. userId: this.byUserId,
  2739. content: '刷新',
  2740. messageType: type,
  2741. chatConversationId: this.chatConversationId
  2742. }
  2743. } else if (type == 24 && val) {
  2744. data = {
  2745. userId: this.byUserId,
  2746. content: url,
  2747. messageType: type,
  2748. chatConversationId: this.chatConversationId
  2749. }
  2750. } else if (type == 96){
  2751. data = {
  2752. userId: this.byUserId,
  2753. content: '已拒绝面试邀请',
  2754. messageType: type,
  2755. chatConversationId: this.chatConversationId,
  2756. recordId:url
  2757. }
  2758. }else if(type == 97){
  2759. data = {
  2760. userId: this.byUserId,
  2761. content: '已接受面试邀请',
  2762. messageType: type,
  2763. chatConversationId: this.chatConversationId,
  2764. recordId:url
  2765. }
  2766. }else {
  2767. data = {
  2768. userId: this.byUserId,
  2769. content: this.content,
  2770. messageType: type,
  2771. chatConversationId: this.chatConversationId
  2772. }
  2773. }
  2774. data = JSON.stringify(data);
  2775. let that = this;
  2776. uni.sendSocketMessage({
  2777. data: data,
  2778. success(res) {
  2779. that.mapsValue = ''
  2780. let image_url = that.$queue.getData('image_url');
  2781. if (!image_url) {
  2782. image_url = '/static/logo.png';
  2783. }
  2784. let datas = {
  2785. chat: {
  2786. userHead: image_url
  2787. },
  2788. content: that.content,
  2789. type: type,
  2790. sendType: 1
  2791. }
  2792. that.ListItem.push(datas);
  2793. setTimeout(() => {
  2794. that.getTimeOrListItem1();
  2795. that.content = '';
  2796. that.hideDrawer();
  2797. }, 50);
  2798. console.log(that.content);
  2799. },
  2800. fail(err) {
  2801. console.log(err);
  2802. }
  2803. })
  2804. },
  2805. //发送图片
  2806. async chooseImage(sourceType) {
  2807. let that = this
  2808. // 1. 先判断系统类型,区分Android/iOS权限
  2809. const hasPermission = await this.$queue.checkPermission(
  2810. 'camera',
  2811. '选择/拍摄照片需要相机/相册权限,用于发送图片消息',
  2812. this
  2813. );
  2814. // 2. 如果未授权或者用户拒绝,显示提示
  2815. if (!hasPermission) {
  2816. return;
  2817. }
  2818. uni.chooseImage({
  2819. count: 1,
  2820. sourceType: ['album','camera'],
  2821. success: res => {
  2822. for (let i = 0; i < res.tempFilePaths.length; i++) {
  2823. this.$queue.showLoading("上传中...");
  2824. uni.uploadFile({ // 上传接口
  2825. url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
  2826. filePath: res.tempFilePaths[i],
  2827. name: 'file',
  2828. success: (uploadFileRes) => {
  2829. let content = JSON.parse(uploadFileRes.data).data;
  2830. uni.hideLoading();
  2831. let data = {
  2832. userId: that.byUserId,
  2833. content: content,
  2834. messageType: 2,
  2835. chatConversationId: that.chatConversationId
  2836. }
  2837. data = JSON.stringify(data);
  2838. uni.sendSocketMessage({
  2839. data: data,
  2840. success(res) {
  2841. let image_url = that.$queue.getData(
  2842. 'image_url');
  2843. if (!image_url) {
  2844. image_url = '/static/logo.png';
  2845. }
  2846. let datas = {
  2847. chat: {
  2848. userHead: image_url
  2849. },
  2850. content: content,
  2851. type: 2,
  2852. sendType: 1
  2853. }
  2854. that.ListItem.push(datas);
  2855. setTimeout(() => {
  2856. that.getTimeOrListItem1();
  2857. that.hideDrawer();
  2858. }, 50);
  2859. },
  2860. fail(err) {
  2861. console.log(err);
  2862. }
  2863. })
  2864. }
  2865. });
  2866. }
  2867. }
  2868. })
  2869. },
  2870. config: function(name) {
  2871. var info = null;
  2872. if (name) {
  2873. var name2 = name.split("."); //字符分割
  2874. if (name2.length > 1) {
  2875. info = configdata[name2[0]][name2[1]] || null;
  2876. } else {
  2877. info = configdata[name] || null;
  2878. }
  2879. if (info == null) {
  2880. let web_config = cache.get("web_config");
  2881. if (web_config) {
  2882. if (name2.length > 1) {
  2883. info = web_config[name2[0]][name2[1]] || null;
  2884. } else {
  2885. info = web_config[name] || null;
  2886. }
  2887. }
  2888. }
  2889. }
  2890. return info;
  2891. },
  2892. //查看大图
  2893. viewImg(item) {
  2894. let imgsArray = [];
  2895. imgsArray[0] = item;
  2896. uni.previewImage({
  2897. current: 0,
  2898. urls: imgsArray
  2899. });
  2900. },
  2901. /**
  2902. * 收藏岗位
  2903. */
  2904. setCollection(postPushId) {
  2905. this.$Request.postT("/app/myCollection/saveCollection", {
  2906. postPushId: postPushId,
  2907. type: 1
  2908. }).then(res => {
  2909. if (res.code == 0) {
  2910. uni.showToast({
  2911. title: res.msg
  2912. })
  2913. this.postPushInfo.isCollection=1-(this.postPushInfo.isCollection?this.postPushInfo.isCollection:0)
  2914. }
  2915. })
  2916. },
  2917. copyAndJubao(item) {
  2918. var that=this
  2919. uni.showActionSheet({
  2920. itemList: ['举报', '复制'],
  2921. success(res) {
  2922. if (res.tapIndex === 0) {
  2923. setTimeout(() => {
  2924. that.$queue.showToast('该用户聊天信息举报已成功提交审核');
  2925. }, 200);
  2926. } else if (res.tapIndex === 1) {
  2927. that.copy(item.content);
  2928. }
  2929. },
  2930. fail(res) {
  2931. console.log(res.errMsg);
  2932. }
  2933. });
  2934. }
  2935. },
  2936. };
  2937. </script>
  2938. <style lang="scss">
  2939. @import "../msg/css/style.scss";
  2940. // 展开按钮样式
  2941. .expand-btn {
  2942. text-align: left;
  2943. margin-top: 20rpx;
  2944. padding: 10rpx 0;
  2945. .expand-text {
  2946. color: #007AFF;
  2947. font-size: 28rpx;
  2948. }
  2949. }
  2950. // 时间和收藏样式
  2951. .time-favorite {
  2952. padding: 10rpx 0;
  2953. .time-text {
  2954. color: rgba(156, 164, 171, 1);
  2955. font-family: DM Sans;
  2956. font-size: 12px;
  2957. font-weight: 400;
  2958. line-height: 20px;
  2959. letter-spacing: undefined;
  2960. text-align: right;
  2961. }
  2962. .favorite-btn {
  2963. color: rgba(156, 164, 171, 1);
  2964. font-size: 12px;
  2965. .favorite-icon {
  2966. margin-right: 8rpx;
  2967. font-size: 12px;
  2968. }
  2969. .favorite-text {
  2970. font-size: 12px;
  2971. }
  2972. }
  2973. .collectActived{
  2974. color: #016BF6;
  2975. }
  2976. }
  2977. .avatorm {
  2978. width: 100%;
  2979. // height: 100rpx;
  2980. margin-top: 20rpx;
  2981. color: #000;
  2982. .avatorm-box {
  2983. width: 90%;
  2984. height: 100%;
  2985. .avatorm-box-item {
  2986. margin-bottom: 10rpx;
  2987. .avatorm-box-item-t {
  2988. width: 30%;
  2989. }
  2990. .avatorm-box-item-r {
  2991. width: 70%;
  2992. }
  2993. }
  2994. }
  2995. }
  2996. .mssTitle {
  2997. width: 100%;
  2998. margin-top: 30rpx;
  2999. text-align: center;
  3000. font-size: 30rpx;
  3001. color: #000;
  3002. font-weight: bold;
  3003. }
  3004. .btnm {
  3005. width: 100%;
  3006. margin-top: 20rpx;
  3007. height: 80rpx;
  3008. margin-bottom: 100rpx;
  3009. .btn-box {
  3010. width: 686rpx;
  3011. height: 100%;
  3012. .btnItem {
  3013. display: flex;
  3014. align-items: center;
  3015. justify-content: center;
  3016. width: 200rpx;
  3017. height: 100%;
  3018. border-radius: 14rpx;
  3019. }
  3020. .btn-close {
  3021. color: #016BF6;
  3022. border: 1rpx solid #016BF6;
  3023. }
  3024. .btn-sub {
  3025. color: #FFFFFF;
  3026. background-color: #016BF6;
  3027. }
  3028. }
  3029. }
  3030. .mianshiTime {
  3031. width: 100%;
  3032. margin-top: 20rpx;
  3033. .mianshiTime-box {
  3034. padding-bottom: 20rpx;
  3035. width: 686rpx;
  3036. height: 100%;
  3037. color: #000000;
  3038. border-bottom: 1rpx solid #F2F2F7;
  3039. .mianshiTime-box-ti {
  3040. height: 100%;
  3041. margin-top: 20rpx;
  3042. }
  3043. }
  3044. }
  3045. .mianshiTitle {
  3046. width: 100%;
  3047. margin-top: 30rpx;
  3048. font-size: 30rpx;
  3049. text-align: center;
  3050. font-weight: bold;
  3051. color: #000000;
  3052. }
  3053. .qyList-box-item {
  3054. width: 100%;
  3055. // height: 400rpx;
  3056. padding-bottom: 40rpx;
  3057. background-color: #ffffff;
  3058. border-radius: 24rpx;
  3059. margin-bottom: 20rpx;
  3060. .qyList-box-item-box {
  3061. width: 626rpx;
  3062. height: 100%;
  3063. }
  3064. .qyList-box-item-info {
  3065. margin-top: 40rpx;
  3066. }
  3067. .qyList-box-item-job {
  3068. color: #121212;
  3069. font-size: 28rpx;
  3070. font-weight: 500;
  3071. margin-top: 20rpx;
  3072. }
  3073. .qyList-box-item-rem {
  3074. color: #999999;
  3075. font-size: 26rpx;
  3076. margin-top: 20rpx;
  3077. }
  3078. }
  3079. .topSe {
  3080. width: 100%;
  3081. height: 100%;
  3082. // padding-top: 80rpx;
  3083. background-color: #FFFFFF;
  3084. box-sizing: border-box;
  3085. .topSe-box {
  3086. width: 686rpx;
  3087. height: 100%;
  3088. .topSe-box-item {
  3089. font-size: 24rpx;
  3090. width: 80rpx;
  3091. position: relative;
  3092. .status-indicator{
  3093. position: absolute;
  3094. top: -12rpx;
  3095. right: 12rpx;
  3096. width: 20rpx;
  3097. height: 20rpx;
  3098. color: #4CAF50;
  3099. }
  3100. }
  3101. }
  3102. }
  3103. .jobs {
  3104. width: 100%;
  3105. .jobs-box {
  3106. width: 95%;
  3107. }
  3108. }
  3109. .gwList-box-item {
  3110. width: 100%;
  3111. // height: 329rpx;
  3112. border: 0.5px solid rgba(227, 231, 236, 1);
  3113. background: #FDFDFD;
  3114. border-radius: 24rpx;
  3115. // margin-bottom: 20rpx;
  3116. padding-bottom: 20rpx;
  3117. }
  3118. .gwList-box-item-box {
  3119. width: 100%;
  3120. height: 100%;
  3121. padding: 0 40rpx;
  3122. .gwList-box-item-box-title {
  3123. margin-top: 30rpx;
  3124. text:nth-of-type(1) {
  3125. color: rgba(23, 23, 37, 1);
  3126. font-family: DM Sans;
  3127. font-size: 24px;
  3128. font-weight: 700;
  3129. line-height: 24px;
  3130. letter-spacing: 0%;
  3131. text-align: left;
  3132. }
  3133. text:nth-of-type(2) {
  3134. color: rgba(1, 107, 246, 1);
  3135. font-family: DM Sans;
  3136. font-size: 16px;
  3137. font-weight: 700;
  3138. line-height: 20px;
  3139. letter-spacing: 0.5%;
  3140. text-align: right;
  3141. }
  3142. }
  3143. .gwList-box-item-box-label {
  3144. margin-top: 30rpx;
  3145. }
  3146. .gwList-box-item-box-name {
  3147. color: rgba(156, 164, 171, 1);
  3148. font-family: DM Sans;
  3149. font-size: 16px;
  3150. font-weight: 400;
  3151. line-height: 20px;
  3152. letter-spacing: 0.5%;
  3153. text-align: left;
  3154. gap: 8rpx;
  3155. margin-top: 20rpx;
  3156. }
  3157. .gwList-box-item-box-line {
  3158. width: 100%;
  3159. border: 1rpx solid #E6E6E6;
  3160. margin-top: 30rpx;
  3161. margin-bottom: 20rpx;
  3162. }
  3163. .gwList-box-item-box-info-text {
  3164. color: rgba(153, 153, 153, 1);
  3165. font-family: DM Sans;
  3166. font-size: 12px;
  3167. font-weight: 400;
  3168. line-height: 12px;
  3169. letter-spacing: 0px;
  3170. text-align: left;
  3171. margin-bottom: 20rpx;
  3172. white-space: pre-wrap;
  3173. .job-description-item {
  3174. margin-bottom: 6rpx;
  3175. line-height: 1.2;
  3176. &:last-child {
  3177. margin-bottom: 0;
  3178. }
  3179. }
  3180. .job-description-itemAll{
  3181. display: -webkit-box;
  3182. -webkit-line-clamp: 4;
  3183. -webkit-box-orient: vertical;
  3184. overflow: hidden;
  3185. text-overflow: ellipsis;
  3186. }
  3187. }
  3188. .gwList-box-item-box-info {
  3189. font-size: 26rpx;
  3190. padding-bottom: 20rpx;
  3191. border-bottom: 1rpx solid #E6E6E6;
  3192. .gwList-box-item-box-info-l {
  3193. color: #1A1A1A;
  3194. .people {
  3195. max-width: 110rpx;
  3196. overflow: hidden; //超出的文本隐藏
  3197. text-overflow: ellipsis; //溢出用省略号显示
  3198. white-space: nowrap; // 默认不换行;
  3199. color: rgba(156, 164, 171, 1);
  3200. font-family: DM Sans;
  3201. font-size: 14px;
  3202. font-weight: 400;
  3203. line-height: 20px;
  3204. letter-spacing: undefined;
  3205. text-align: left;
  3206. }
  3207. }
  3208. .gwList-box-item-box-info-r {
  3209. color: #999999;
  3210. width: 50%;
  3211. overflow: hidden; //超出的文本隐藏
  3212. text-overflow: ellipsis; //溢出用省略号显示
  3213. white-space: nowrap; // 默认不换行;
  3214. }
  3215. }
  3216. }
  3217. .xuanfu {
  3218. width: 100%;
  3219. display: flex;
  3220. justify-content: center;
  3221. align-items: center;
  3222. color: #016BF6;
  3223. .xuanfu-box {
  3224. width: 95%;
  3225. background-color: #FFFFFF;
  3226. border-radius: 10rpx;
  3227. padding: 20rpx 15rpx 20rpx 20rpx;
  3228. letter-spacing: 5rpx;
  3229. font-size: 26rpx;
  3230. }
  3231. }
  3232. page {
  3233. background: #FAFAFA;
  3234. color: #FFFFFF;
  3235. }
  3236. .chat-listitem {
  3237. display: flex;
  3238. margin-top: 20rpx;
  3239. padding: 10rpx;
  3240. }
  3241. .textColor {
  3242. color: #FFFFFF;
  3243. border-radius: 16px 16px 0px 16px;
  3244. background: rgba(1, 107, 246, 1);
  3245. }
  3246. .textColorLeft{
  3247. color: #000;
  3248. border-radius: 16px 16px 0px 16px;
  3249. background: #fff;
  3250. }
  3251. .chat-listitem-text {
  3252. // color: #FFFFFF;
  3253. margin-top: 6rpx;
  3254. width: fit-content;
  3255. padding: 15rpx;
  3256. font-size: 30rpx;
  3257. height: max-content;
  3258. word-wrap: break-word;
  3259. word-break: break-all;
  3260. border-radius: 10rpx;
  3261. }
  3262. .chat-listitem-image-type4 {
  3263. color: #000000;
  3264. background: #FFFFFF;
  3265. width: fit-content;
  3266. font-size: 30rpx;
  3267. height: max-content;
  3268. word-wrap: break-word;
  3269. word-break: break-all;
  3270. border-top-left-radius: 20rpx;
  3271. border-top-right-radius: 20rpx;
  3272. }
  3273. .chat-listitem-image {
  3274. margin-top: 5rpx;
  3275. width: 75rpx;
  3276. height: 75rpx;
  3277. border-radius: 50%;
  3278. }
  3279. .save {
  3280. width: 130rpx;
  3281. text-align: center;
  3282. border-radius: 10rpx;
  3283. height: 70rpx;
  3284. background: #FFFFFF;
  3285. margin: 5rpx 10rpx 0;
  3286. line-height: 70rpx;
  3287. }
  3288. .talent-list {
  3289. // margin-top: 280rpx; // 已改为动态计算,在模板中通过 :style 设置
  3290. padding: 20rpx;
  3291. z-index: 100;
  3292. position: relative;
  3293. width:96%
  3294. }
  3295. .talent-card {
  3296. background-color: #ffffff;
  3297. border-radius: 16rpx;
  3298. margin-bottom: 20rpx;
  3299. padding: 30rpx;
  3300. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  3301. .time-favorite{
  3302. border-top: 1px solid #efefef;
  3303. margin-top: 20rpx;
  3304. }
  3305. }
  3306. .talent-content {
  3307. .talent-header {
  3308. display: flex;
  3309. align-items: flex-start;
  3310. .talent-avatar {
  3311. width: 80rpx;
  3312. height: 80rpx;
  3313. border-radius: 50%;
  3314. margin-right: 20rpx;
  3315. }
  3316. .talent-info {
  3317. flex: 1;
  3318. .talentRange{
  3319. color: #016BF6;
  3320. font-size: 24rpx;
  3321. margin-left: 10rpx;
  3322. }
  3323. .talent-name-section {
  3324. display: flex;
  3325. align-items: center;
  3326. justify-content: flex-start;
  3327. width: 100%;
  3328. margin-bottom: 6rpx;
  3329. }
  3330. .talent-name {
  3331. color: rgba(51, 51, 51, 1);
  3332. font-family: DM Sans;
  3333. font-size: 28rpx;
  3334. font-weight: 500;
  3335. line-height: 36rx;
  3336. letter-spacing: 0.5%;
  3337. text-align: left;
  3338. margin-right: 16rpx;
  3339. }
  3340. .talent-tags {
  3341. display: flex;
  3342. flex-wrap: wrap;
  3343. gap: 10rpx;
  3344. .status-tag {
  3345. padding: 8rpx;
  3346. border-radius: 12rpx;
  3347. font-size: 18rpx;
  3348. font-family: DM Sans;
  3349. font-weight: 400;
  3350. line-height: 20rpx;
  3351. letter-spacing: -0.5px;
  3352. text-align: left;
  3353. &.online {
  3354. background: rgba(213, 255, 231, 1);
  3355. color: rgba(29, 209, 104, 1);
  3356. }
  3357. &.hot {
  3358. background: rgba(252, 233, 220, 1);
  3359. color: rgba(1, 107, 246, 1);
  3360. }
  3361. &.active {
  3362. color: rgba(153, 153, 153, 1);
  3363. }
  3364. }
  3365. }
  3366. }
  3367. }
  3368. .talent-experience {
  3369. display: flex;
  3370. align-items: center;
  3371. margin-bottom: 12rpx;
  3372. gap: 16rpx;
  3373. color: rgba(156, 164, 171, 1);
  3374. font-family: DM Sans;
  3375. font-size: 24rpx;
  3376. font-weight: 400;
  3377. line-height: 32rpx;
  3378. letter-spacing: 0.5%;
  3379. text-align: left;
  3380. }
  3381. .current-job {
  3382. display: flex;
  3383. align-items: center;
  3384. margin-bottom: 12rpx;
  3385. .job-icon {
  3386. width: 40rpx;
  3387. height: 40rpx;
  3388. margin-right: 8rpx;
  3389. }
  3390. .job-text {
  3391. color: rgba(156, 164, 171, 1);
  3392. font-family: DM Sans;
  3393. font-size: 24rpx;
  3394. font-weight: 400;
  3395. line-height: 40rpx;
  3396. letter-spacing: 0.5%;
  3397. text-align: left;
  3398. }
  3399. }
  3400. .job-expectation {
  3401. display: flex;
  3402. align-items: center;
  3403. margin-bottom: 16rpx;
  3404. .job-icon {
  3405. width: 40rpx;
  3406. height: 40rpx;
  3407. margin-right: 8rpx;
  3408. }
  3409. .expectation-text {
  3410. color: rgba(156, 164, 171, 1);
  3411. font-family: DM Sans;
  3412. font-size: 24rpx;
  3413. font-weight: 400;
  3414. line-height: 40rpx;
  3415. letter-spacing: 0.5%;
  3416. text-align: left;
  3417. }
  3418. }
  3419. .skill-tags {
  3420. display: flex;
  3421. flex-wrap: wrap;
  3422. gap: 10rpx;
  3423. margin-bottom: 16rpx;
  3424. .skill-tag {
  3425. padding: 8rpx;
  3426. background: rgba(198, 198, 198, 0.1);
  3427. border-radius: 12rpx;
  3428. color: rgba(153, 153, 153, 1);
  3429. font-family: DM Sans;
  3430. font-size: 20rpx;
  3431. font-weight: 400;
  3432. line-height: 20rpx;
  3433. letter-spacing: -0.5px;
  3434. text-align: left;
  3435. }
  3436. }
  3437. .job-description {
  3438. margin-bottom: 12rpx;
  3439. width: 100%;
  3440. .description-text {
  3441. color: rgba(97, 110, 124, 1);
  3442. font-family: DM Sans;
  3443. font-size: 24rpx;
  3444. font-weight: 400;
  3445. line-height: 32rpx;
  3446. letter-spacing: 0px;
  3447. text-align: left;
  3448. display: -webkit-box;
  3449. -webkit-line-clamp: 2;
  3450. /* 只显示2行 */
  3451. -webkit-box-orient: vertical;
  3452. overflow: hidden;
  3453. /* 隐藏超出内容 */
  3454. text-overflow: ellipsis;
  3455. /* 显示省略号 */
  3456. }
  3457. }
  3458. .work-period {
  3459. text-align: right;
  3460. .period-text {
  3461. font-size: 22rpx;
  3462. color: #999;
  3463. }
  3464. }
  3465. }
  3466. .bg-style{
  3467. padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);
  3468. }
  3469. </style>