im.vue 113 KB

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