im.vue 112 KB

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