index.vue 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255
  1. <template>
  2. <div class="message flex align-center justify-center" @click.stop="closeDialog()">
  3. <!-- 消息主体 -->
  4. <div class="content flex align-center justify-between">
  5. <!-- 左侧聊天列表 -->
  6. <div class="content-l">
  7. <div class="tabs">
  8. <el-tabs v-model="activeName" @tab-click="handleTabClick">
  9. <el-tab-pane label="全部" name="all"></el-tab-pane>
  10. <el-tab-pane label="已读" name="read"></el-tab-pane>
  11. <el-tab-pane label="未读" name="unread"></el-tab-pane>
  12. <el-tab-pane label="沟通过" name="communicated"></el-tab-pane>
  13. <el-tab-pane label="已邀约" name="invited"></el-tab-pane>
  14. <el-tab-pane label="面试过" name="interviewed"></el-tab-pane>
  15. </el-tabs>
  16. </div>
  17. <div class="content-l-box flex algin-center justify-center flex-wrap">
  18. <div class="content-l-box-items" :class="selectIndex==1?'megActive':''" @click="getSysMsgList(true)"
  19. v-for="(item,index) in msgList" :key="index">
  20. <div class="content-l-box-item flex justify-between">
  21. <div class="content-l-box-item-l flex align-center">
  22. <img src="/images/message/sysIcon.png" alt="" srcset="" />
  23. <div class="content-l-box-item-con">
  24. <div class="content-l-box-item-con-title">
  25. {{item.title?item.title: '系统消息'}}
  26. </div>
  27. <div class="content-l-box-item-con-cons">
  28. {{item.content}}
  29. </div>
  30. </div>
  31. </div>
  32. <div class="content-l-box-item-r">
  33. <div v-if="messageCount>0"
  34. class="content-l-box-item-r-dian flex align-center justify-center">
  35. {{messageCount}}
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. <!-- <div class="content-l-box-items">
  41. <div class="content-l-box-item flex justify-between">
  42. <div class="content-l-box-item-l flex align-center">
  43. <img src="/images/message/kefuIcon.png" alt="" srcset="" />
  44. <div class="content-l-box-item-con">
  45. <div class="content-l-box-item-con-title">
  46. 在线客服
  47. </div>
  48. <div class="content-l-box-item-con-cons">
  49. 联系在线客服
  50. </div>
  51. </div>
  52. </div>
  53. <div class="content-l-box-item-r">
  54. <div v-if="userCount>0"
  55. class="content-l-box-item-r-dian flex align-center justify-center">
  56. {{userCount}}
  57. </div>
  58. </div>
  59. </div>
  60. </div> -->
  61. <div class="content-l-box-items" :class="liftIndex==index?'megActive':''"
  62. @click.stop="startMsg(item,index)" v-for="(item,index) in leftList" :key="index">
  63. <div class="content-l-box-item flex justify-between">
  64. <div class="content-l-box-item-l flex align-center">
  65. <img :src="item.avatar?item.avatar:'/default.jpg'" alt="" srcset="" />
  66. <div class="content-l-box-item-con">
  67. <div class="content-l-box-item-con-title flex algin-center">
  68. {{item.userName}}
  69. <span>
  70. {{item.stationName}}
  71. </span>
  72. </div>
  73. <div v-if="item.messageType == 1" class="content-l-box-item-con-cons">
  74. {{ item.content }}
  75. </div>
  76. <div v-else-if="item.messageType == 10" class="content-l-box-item-con-cons">
  77. 简历已发送
  78. </div>
  79. <div v-else-if="item.messageType == 18" class="content-l-box-item-con-cons">
  80. 位置
  81. </div>
  82. <div v-else-if="item.messageType == 9" class="content-l-box-item-con-cons">
  83. 简历请求
  84. </div>
  85. <div v-else-if="item.messageType == 6" class="content-l-box-item-con-cons">
  86. 微信请求
  87. </div>
  88. <div v-else-if="item.messageType == 5" class="content-l-box-item-con-cons">
  89. 手机号请求
  90. </div>
  91. <div v-else-if="item.messageType == 2" class="content-l-box-item-con-cons">
  92. [图片]
  93. </div>
  94. <div v-else-if="item.messageType == 3" class="content-l-box-item-con-cons">
  95. [语音]
  96. </div>
  97. <div v-else-if="item.messageType == 7" class="content-l-box-item-con-cons">
  98. [交换手机]
  99. </div>
  100. <div v-else-if="item.messageType == 8" class="content-l-box-item-con-cons">
  101. [交换微信]
  102. </div>
  103. <div v-else-if="item.messageType == 12" class="content-l-box-item-con-cons">
  104. {{ item.content }}已拒绝
  105. </div>
  106. <div v-else-if="item.messageType == 4" class="content-l-box-item-con-cons">
  107. <img v-if="item.content && item.messageType === 4" :src="emjSrc + item.content"
  108. style="height: 20px; width: 20px;" alt="icon" />
  109. </div>
  110. <div v-else-if="item.messageType == 20" class="content-l-box-item-con-cons">
  111. [视频通话]
  112. </div>
  113. <div v-else-if="item.messageType == 21" class="content-l-box-item-con-cons">
  114. [语音通话]
  115. </div>
  116. <div v-else-if="item.messageType == 99" class="content-l-box-item-con-cons">
  117. [面试邀约]
  118. </div>
  119. <div v-else-if="item.messageType == 98" class="content-l-box-item-con-cons">
  120. [{{ item.content }}]
  121. </div>
  122. <div v-else-if="item.messageType == 96 || item.messageType == 97"
  123. class="content-l-box-item-con-cons">
  124. [{{ item.content }}]
  125. </div>
  126. <div v-else class="content-l-box-item-con-cons">
  127. [其他消息类型]
  128. </div>
  129. </div>
  130. </div>
  131. <div class="content-l-box-item-r" style="flex-shrink: 0;">
  132. {{item.messageTime? getDateDiff(item.messageTime):''}}
  133. <div class="flex justify-end delete-btn" style="margin-top: 5px;" @click="deleteMsg(item)">
  134. 删除
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. <!-- 右侧消息窗口 -->
  142. <div class="content-r">
  143. <div v-if="selectIndex==1" v-infinite-scroll="handleScroll" ref="contentrtz" class="content-r-tz">
  144. <div class="content-r-tz-item" v-for="(item,index) in sysMsgList" :key="index">
  145. <div class="content-r-tz-item-title">
  146. {{item.title}}
  147. </div>
  148. <div class="content-r-tz-item-cons flex align-center justify-between">
  149. {{item.content}}
  150. <el-badge :is-dot="item.isSee == 0?true:false" style="margin-right: 10px;">
  151. <span>{{item.createAt}}</span>
  152. </el-badge>
  153. </div>
  154. </div>
  155. </div>
  156. <div v-else-if="selectIndex==3" class="content-r-msg">
  157. <view class="content-r-msg-title flex align-center" v-if="userType == 1">
  158. <div class="content-r-msg-title-s" v-if="title">
  159. {{title}}
  160. </div>
  161. <el-divider direction="vertical" />
  162. <div class="content-r-msg-title-n" v-if="postPushInfo.ruleClassifyName">
  163. {{ postPushInfo.ruleClassifyName }}
  164. </div>
  165. <div class="content-r-msg-title-p" v-if="postPushInfo.salaryRange">
  166. {{postPushInfo.salaryRange}}
  167. </div>
  168. </view>
  169. <view class="content-r-msg-title flex align-center" v-if="userType == 2">
  170. <div class="content-r-msg-title-s" v-if="resumesInfo.userName">
  171. {{resumesInfo.userName}}
  172. </div>
  173. <el-divider direction="vertical" />
  174. <div class="content-r-msg-title-n" v-if="resumesInfo.intentionRuleClassifyName">
  175. {{resumesInfo.intentionRuleClassifyName}}
  176. </div>
  177. </view>
  178. <!-- 聊天记录 -->
  179. <div class="content-r-msg-chat flex align-center justify-center">
  180. <div ref="messageBox" class="content-r-msg-chats">
  181. <!-- 岗位简介 -->
  182. <div class="resume-box" v-if="JSON.stringify(postPushInfo) != '{}' && userType == 1" @click.stop="handleClick(postPushInfo.postPushId)">
  183. <div class="position-title">{{ postPushInfo.ruleClassifyName || '暂无岗位' }}
  184. <span class="position-num">{{ postPushInfo.salaryRange }}</span>
  185. </div>
  186. <div class="company-text">{{ title }} {{ postPushInfo.company ? postPushInfo.company.companyPeople : '0人' }}</div>
  187. <div class="resume-label information flex flex-wrap">
  188. <el-tag type="info">{{ postPushInfo.education }}</el-tag>
  189. <el-tag type="info">{{ postPushInfo.experience }}</el-tag>
  190. <el-tag type="info" v-if="postPushInfo.company">{{ postPushInfo.company.workRestTime }}</el-tag>
  191. <el-tag type="info" v-for="(item, index) in postPushInfo.welfareTag ? postPushInfo.welfareTag.split(';') : []"
  192. :key="index">{{ item }}</el-tag>
  193. </div>
  194. <template v-if="isHtmlContent">
  195. <div :class="['position-content', !isJobDescExpanded ? 'position-content-itemAll' : '']" v-html="postPushInfo.positionDetails"></div>
  196. </template>
  197. <template v-else>
  198. <div :class="['position-content', !isJobDescExpanded ? 'position-content-itemAll' : '']">{{ postPushInfo.positionDetails }}</div>
  199. </template>
  200. <div class="expand-more" @click.stop="isJobDescExpanded = !isJobDescExpanded">{{ isJobDescExpanded ? '收起' : '展开更多' }}</div>
  201. <!-- hr信息 -->
  202. <div class="flex align-center personnel">
  203. <img class="resume-avatar" :src="postPushInfo.hr && postPushInfo.hr.hrImg ? postPushInfo.hr.hrImg : '/default.jpg'" alt="" style="width: 35px;height: 35px;">
  204. <div>{{ postPushInfo.user && postPushInfo.user.userName ? postPushInfo.user.userName : '未知' }}·{{ postPushInfo.hr && postPushInfo.hr.hrPosition || '创始人' }}</div>
  205. </div>
  206. <div class="resume-time resume-label">{{ conversationInfo.createTime && conversationInfo.createTime }}向你发起沟通</div>
  207. </div>
  208. <!-- 简历简介 -->
  209. <div class="resume-box" v-if="JSON.stringify(resumesInfo) != '{}' && userType == 2" @click="goToPage">
  210. <div class="flex align-center">
  211. <img class="resume-avatar" :src="resumesInfo && resumesInfo.avatar || '/default.jpg'" alt="" />
  212. <div class="flex flex-direction justify-between" style="gap: 5px;">
  213. <div>期望:{{ resumesInfo.intentionRuleClassifyName }}
  214. <span class="text-color">{{ resumesInfo.intentionSalaryRange }}</span>
  215. </div>
  216. <div class="resume-label flex">
  217. <span>{{ resumesInfo.resumesWorkExperience || 0 }}年</span>
  218. <span>{{ postPushInfo.education }}</span>
  219. <span>{{ postPushInfo.salaryRange }}</span>
  220. <span>{{ resumesStatusMap[resumesInfo.resumesStatus] || '未知' }}</span>
  221. </div>
  222. </div>
  223. </div>
  224. <div class="resume-label information">{{
  225. resumesInfo.resumesListDtoList && resumesInfo.resumesListDtoList.companyName || '' }}·{{
  226. resumesInfo.resumesListDtoList && resumesInfo.resumesListDtoList.lastWorkPosition || ''
  227. }}</div>
  228. <div class="resume-label information">{{
  229. resumesInfo.resumesListDtoList && resumesInfo.resumesListDtoList.school || '' }}·{{
  230. resumesInfo.resumesListDtoList && resumesInfo.resumesListDtoList.profession || '' }}
  231. </div>
  232. <div class="resume-tag flex flex-wrap">
  233. <el-tag type="info" v-for="(skill, skillIndex) in resumesInfo.resumesListDtoList && resumesInfo.resumesListDtoList.intentIndustry && resumesInfo.resumesListDtoList.intentIndustry.split('/') || []"
  234. :key="skillIndex">{{ skill }}</el-tag>
  235. </div>
  236. <div class="information resume-content">{{ resumesInfo.adv }}</div>
  237. <div class="resume-time resume-label flex">
  238. <span>{{ conversationInfo.createTime && conversationInfo.createTime }}</span>
  239. <span>沟通的职位-{{ resumesInfo.intentionRuleClassifyName }}</span>
  240. </div>
  241. </div>
  242. <div class="message-box-item" v-for="(item,index) in megList" :key="index">
  243. <!-- 对方的消息 -->
  244. <div class="message-boxs message-box-l flex flex-wrap" v-if="item.userId != userId">
  245. <img class="message-boxs-avatar" :src="item.avatar?item.avatar:'/default.jpg'" @click="goToPageDetail"
  246. alt="" />
  247. <div class="message-box-l-con" v-if="item.messageType==1">
  248. {{item.content}}
  249. </div>
  250. <div class="message-box-l-con flex align-center" v-if="item.messageType==20">
  251. 视频通话
  252. <img src="../../../public/images/message/historyVideo_black.png"
  253. style="width: 25px;height: 25px;margin-left: 10px;" mode=""></img>
  254. </div>
  255. <div class="message-box-l-con flex align-center" v-if="item.messageType==21">
  256. 语音通话
  257. <img src="../../../public/images/message/historyAudio_black.png"
  258. style="width: 25px;height: 25px;margin-left: 10px;" mode=""></img>
  259. </div>
  260. <div class="message-box-l-con flex algin-center" style="cursor: pointer;"
  261. @click="jumpToTencentMap(item.content.latitude,item.content.longitude,item.content.address)"
  262. v-if="item.messageType==18">
  263. {{item.content.address}}
  264. <el-icon style="margin-left: 10px;" :size="20" color="#00DD9A">
  265. <MapLocation />
  266. </el-icon>
  267. </div>
  268. <!-- 图片 -->
  269. <div class="message-box-l-con" style="background-color: #ffffff;"
  270. v-if="item.messageType==2">
  271. <el-image style="width: 100px;height: 100px;border-radius: 4px;"
  272. :src="item.content" fit="cover" :zoom-rate="1.2" :max-scale="7"
  273. :min-scale="0.2" :preview-src-list="[item.content]" :initial-index="4" />
  274. </div>
  275. <!-- 语音消息 -->
  276. <div class="message-box-l-con" v-if="item.messageType==3">
  277. 语音消息,请前往APP或小程序查看
  278. </div>
  279. <!-- 表情 -->
  280. <div class="message-box-l-con" style="background-color: #ffffff;"
  281. v-if="item.messageType==4">
  282. <img :src="emjSrc+item.content" alt="" />
  283. </div>
  284. <!-- 交换手机号请求 -->
  285. <div class="message-box-l-phone"
  286. v-if="item.messageType==5 && item.content=='手机号请求'">
  287. 我想跟你交换手机号,是否同意?
  288. <div class="message-box-l-phone-btn flex align-center">
  289. <el-button plain size="small"
  290. @click.stop="refuseFun(item.chatContentId)">拒绝</el-button>
  291. <el-button type="primary" size="small"
  292. @click.stop="tongyi(item.messageType,item.chatContentId)">同意</el-button>
  293. </div>
  294. </div>
  295. <!-- 交换手机号请求同意 -->
  296. <div class="message-box-l-con"
  297. v-if="item.messageType === 5 && item.content!='手机号请求'">
  298. 已同意交换手机号
  299. </div>
  300. <!-- 交换微信号请求 -->
  301. <div class="message-box-l-phone"
  302. v-if="item.messageType==6 && item.content=='微信号请求'">
  303. 我想跟你交换微信号,是否同意?
  304. <div class="message-box-l-phone-btn flex align-center">
  305. <el-button plain size="small"
  306. @click.stop="refuseFun(item.chatContentId)">拒绝</el-button>
  307. <el-button type="primary" size="small"
  308. @click.stop="tongyi(item.messageType,item.chatContentId)">同意</el-button>
  309. </div>
  310. </div>
  311. <!-- 交换微信号请求同意 -->
  312. <div class="message-box-l-con"
  313. v-if="item.messageType === 6 && item.content!='微信号请求'">
  314. 已同意交换微信号
  315. </div>
  316. <div class="message-box-l-con" v-if="item.messageType==7">
  317. <div class="" v-if="item.userType==1">
  318. 我的手机号为:{{JSON.parse(item.content).userPhone}}
  319. </div>
  320. <div v-else>
  321. 我的手机号为:{{JSON.parse(item.content).companyPhone}}
  322. </div>
  323. </div>
  324. <div class="message-box-l-con" v-if="item.messageType==8">
  325. <div class="" v-if="item.userType==1">
  326. 我的微信号为:{{JSON.parse(item.content).userWx}}
  327. </div>
  328. <div v-else>
  329. 我的微信号为:{{JSON.parse(item.content).companyWx}}
  330. </div>
  331. </div>
  332. <!-- 交换手机号请求拒绝 -->
  333. <div class="message-box-l-con" v-if="item.messageType==12">
  334. {{item.content}}已拒绝
  335. </div>
  336. <!-- 简历请求 -->
  337. <div class="message-box-l-phone" v-if="item.messageType==9 && item.content=='简历请求'">
  338. 我想要你的一份简历,是否同意?
  339. <div class="message-box-l-phone-btn flex align-center">
  340. <el-button plain size="small"
  341. @click.stop="refuseFun(item.chatContentId)">拒绝</el-button>
  342. <el-button type="primary" size="small"
  343. @click.stop="resumesTy()">同意</el-button>
  344. </div>
  345. </div>
  346. <!-- 简历请求已同意 -->
  347. <div class="message-box-l-con"
  348. v-if="item.content && item.messageType === 9 && item.content!=='简历请求'">
  349. {{item.content}}
  350. </div>
  351. <!-- 预览简历 -->
  352. <div class="message-box-l-con inv-style" v-if="item.content && item.messageType === 10">
  353. <template v-if="userType == 1">{{ item.content }}</template>
  354. <template v-else>
  355. <view class="flex align-center" @click="previewResume(item.content)">
  356. 点击预览附件简历
  357. </view>
  358. </template>
  359. </div>
  360. <!-- 面试邀约消息 -->
  361. <div class="message-box-l-con inv-style" v-if="item.content && item.messageType === 99">您收到了{{ item.content }}</div>
  362. <!-- 面试拒绝或同意 -->
  363. <div class="message-box-l-con inv-style" v-if="item.content && (item.messageType === 96 || item.messageType === 97)">{{ item.content }}</div>
  364. <div
  365. style="width: 100%;color: #999999;font-size: 12px;padding-left: 50px;margin-top: 4px;">
  366. {{ getDateDiff(item.createTime) }}
  367. </div>
  368. </div>
  369. <!-- 我发的消息 -->
  370. <div class="message-boxs message-box-r flex flex-wrap" v-else>
  371. <!-- 文字消息 -->
  372. <div class="message-box-r-con" v-if="item.messageType==1">
  373. {{item.content}}
  374. </div>
  375. <div class="message-box-r-con flex align-center" v-if="item.messageType==20">
  376. 视频通话
  377. <img src="../../../public/images/message/historyVideo_white.png"
  378. style="width: 25px;height: 25px;margin-left: 10px;" mode=""></img>
  379. </div>
  380. <div class="message-box-r-con flex align-center" v-if="item.messageType==21">
  381. 语音通话
  382. <img src="../../../public/images/message/historyAudio_white.png"
  383. style="width: 25px;height: 25px;margin-left: 10px;" mode=""></img>
  384. </div>
  385. <div class="message-box-r-con flex algin-center" style="cursor: pointer;"
  386. @click="jumpToTencentMap(item.content.latitude,item.content.longitude,item.content.address)"
  387. v-if="item.messageType==18">
  388. {{item.content.address}}
  389. <el-icon style="margin-left: 10px;" :size="20" color="#ffffff">
  390. <MapLocation />
  391. </el-icon>
  392. </div>
  393. <!-- 简历请求 -->
  394. <div class="message-box-r-con" v-if="item.messageType==9">
  395. 简历请求已发送,等待对方同意
  396. </div>
  397. <!-- 图片 -->
  398. <div class="message-box-r-con" style="background-color: #ffffff;"
  399. v-if="item.messageType==2">
  400. <el-image style="width: 100px;height: 100px;border-radius: 4px;"
  401. :src="item.content" fit="cover" :zoom-rate="1.2" :max-scale="7"
  402. :min-scale="0.2" :preview-src-list="[item.content]" :initial-index="4" />
  403. </div>
  404. <!-- 语音消息 -->
  405. <div class="message-box-r-con" v-if="item.messageType==3">
  406. 语音消息,请前往APP或小程序查看
  407. </div>
  408. <!-- 表情消息 -->
  409. <div class="message-box-r-con" style="background-color: #ffffff;"
  410. v-if="item.messageType==4">
  411. <img :src="emjSrc+item.content" alt="" />
  412. </div>
  413. <!-- 交换手机号请求 -->
  414. <div class="message-box-r-con" v-if="item.messageType==5">
  415. 交换手机号请求已发送,等待对方同意
  416. </div>
  417. <div class="message-box-r-con" v-if="item.messageType==7">
  418. <div class="" v-if="item.userType==1">
  419. 我的手机号为:{{JSON.parse(item.content).userPhone}}
  420. </div>
  421. <div v-else>
  422. 我的手机号为:{{JSON.parse(item.content).companyPhone}}
  423. </div>
  424. </div>
  425. <!-- 交换微信号请求 -->
  426. <div class="message-box-r-con" v-if="item.messageType==6">
  427. 交换微信号请求已发送,等待对方同意
  428. </div>
  429. <div class="message-box-r-con" v-if="item.messageType==8">
  430. <div class="" v-if="item.userType==1">
  431. 我的微信号为:{{JSON.parse(item.content).userWx}}
  432. </div>
  433. <div v-else>
  434. 我的微信号为:{{JSON.parse(item.content).companyWx}}
  435. </div>
  436. </div>
  437. <!-- 交换手机号请求拒绝 -->
  438. <div class="message-box-r-con" v-if="item.messageType==12">
  439. {{item.content}}已拒绝
  440. </div>
  441. <!-- 简历预览 -->
  442. <div class="message-box-r-con invitation" v-if="item.content && item.messageType === 10">
  443. <template v-if="userType == 1">
  444. <view class="flex align-center" @click="previewResume(item.content)">点击预览附件简历</view>
  445. </template>
  446. <template v-else>{{ item.content }}</template>
  447. </div>
  448. <!-- 面试邀约消息 -->
  449. <div class="message-box-r-con invitation" v-if="item.content && item.messageType === 99">您发送了{{ item.content }}</div>
  450. <!-- 面试拒绝或同意 -->
  451. <div class="message-box-r-con invitation"
  452. v-if="item.content && (item.messageType === 96 || item.messageType === 97)">{{
  453. item.content }}</div>
  454. <img class="message-boxs-avatar" :src="avatar?avatar:'/default.jpg'" alt="" />
  455. <div
  456. style="width: 100%;color: #999999;font-size: 12px;padding-right: 50px;margin-top: 4px;text-align: right;">
  457. {{getDateDiff(item.createTime)}}
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. </div>
  463. <!-- 底部 -->
  464. <div class="content-r-msg-btom flex align-center justify-center">
  465. <div class="content-r-msg-btoms">
  466. <div class="message-btom-content">
  467. <el-input @keyup.enter.prevent="sendMessage(1)" style="margin-top: 10px;" resize="none"
  468. :input-style="inputStyles" v-model="content" :autosize="{ minRows: 3, maxRows: 3 }"
  469. type="textarea" placeholder="请输入内容" />
  470. </div>
  471. <div class="message-btom-btn flex align-center justify-between">
  472. <div class="message-btom-btn-l flex align-center">
  473. <div @click.stop="czlist(index)" @mouseover="changeImageSrc(index)"
  474. @mouseout="resetImageSrc(index)"
  475. class="message-btom-btn-l-item flex align-center" v-for="(item,index) in czList"
  476. :key="index">
  477. <div v-if="index == 1" class="flex align-center">
  478. <el-upload class="flex align-center" :action="action"
  479. :show-file-list="false" :on-success="handleAvatarSuccess">
  480. <img :src="czIndex==index?item.srcS:item.src" alt="" srcset="" />
  481. </el-upload>
  482. </div>
  483. <div v-else class="flex align-center">
  484. <img :src="czIndex==index?item.srcS:item.src" alt="" srcset="" />
  485. {{item.name}}
  486. </div>
  487. </div>
  488. <div v-if="isShowEmoj"
  489. class="message-btom-btn-l-emj flex align-center justify-center">
  490. <div class="message-btom-btn-l-emj-box">
  491. <img @click="sendMessage(4,item.url)" v-for="(item,index) in emojList"
  492. :key="index" :src="emjSrc+item.url" :alt="item.alt" srcset="" />
  493. </div>
  494. </div>
  495. <div v-if="isShowEmoj" class="message-btom-btn-l-emjs"></div>
  496. <!-- 常用语 -->
  497. <div v-if="isShowCommon"
  498. class="message-btom-btn-l-emj flex align-center justify-center">
  499. <ul class="message-btom-btn-l-emj-box sentence-panel">
  500. <li class="message-text" v-for="item in changYongList" :key="item.id" @click="selConfirm(item.label)">{{ item.label }}</li>
  501. </ul>
  502. </div>
  503. </div>
  504. <el-button type="primary" @click="sendMessage(1)">发送</el-button>
  505. </div>
  506. </div>
  507. </div>
  508. </div>
  509. <div v-else class="content-r-no flex align-center justify-center flex-wrap">
  510. <img src="/images/index/noJl.png" alt="" />
  511. <div class="content-r-no-txt">
  512. 与你沟通过的都会在左侧列表展示
  513. </div>
  514. </div>
  515. </div>
  516. </div>
  517. <el-dialog v-model="dialogms" title="面试邀请" width="30%" @close="closeMs" :destroy-on-close="true">
  518. <div style="padding: 20px;">
  519. <el-form label-position="right" ref="formms" :model="miamshi" class="">
  520. <el-form-item prop="position"
  521. :rules="[{ required: true, message: '请选择面试岗位', trigger: 'blur', },]" label="面试岗位">
  522. <el-select v-model="miamshi.position" placeholder="请选择面试岗位" filterable clearable>
  523. <el-option v-for="item in jobList" :key="item.id" :label="item.ruleClassifyName"
  524. :value="item.ruleClassifyId" />
  525. </el-select>
  526. </el-form-item>
  527. <el-form-item prop="interviewDateTime"
  528. :rules="[{required: true,message: '请选择面试时间',trigger: 'blur',},]" label="面试时间">
  529. <el-date-picker style="width: 100%;" v-model="miamshi.interviewDateTime" type="datetime"
  530. placeholder="请选择面试时间" format="YYYY-MM-DD HH:mm" date-format="MMM DD, YYYY"
  531. time-format="HH:mm" />
  532. </el-form-item>
  533. <el-form-item prop="address"
  534. :rules="[{required: true,message: '请选择面试地点',trigger: 'blur',},]" label="面试地点">
  535. <el-autocomplete style="width: 100%;" v-model="miamshi.address"
  536. :fetch-suggestions="querySearchAsync" placeholder="请输入面试地点" @select="handleSelect" />
  537. </el-form-item>
  538. <el-form-item prop="detailedAddress" :rules="[{ required: true, message: '请输入详细地址', trigger: 'blur', },]"
  539. label="详细地址">
  540. <el-input v-model="miamshi.detailedAddress" placeholder="请输入详细地址" clearable />
  541. </el-form-item>
  542. <el-form-item prop="hrName" :rules="[{ required: true, message: '请输入联系人名称', trigger: 'blur', },]"
  543. label="联系姓名">
  544. <el-input v-model="miamshi.hrName" placeholder="请输入联系人" clearable />
  545. </el-form-item>
  546. <el-form-item prop="hrPhone"
  547. :rules="[{ required: true, message: '请输入手机号', trigger: 'blur', },]" label="手机号码">
  548. <el-input v-model="miamshi.hrPhone" placeholder="请输入手机号" clearable />
  549. </el-form-item>
  550. <el-form-item prop="remarks" :rules="[{required: true,message: '请输入备注',trigger: 'blur',},]"
  551. label="面试备注">
  552. <el-input v-model="miamshi.remarks" placeholder="请输入备注" clearable />
  553. </el-form-item>
  554. </el-form>
  555. </div>
  556. <template #footer>
  557. <span class="dialog-footer flex align-center justify-end">
  558. <el-button @click="dialogms = false">取消</el-button>
  559. <el-button type="primary" @click="submitMs()">
  560. 确认
  561. </el-button>
  562. </span>
  563. </template>
  564. </el-dialog>
  565. <!-- 简历预览弹窗 -->
  566. <el-dialog v-model="showResumeDialog" title="简历预览" width="80%" top="5vh" :close-on-click-modal="false">
  567. <!-- 文件预览 -->
  568. <div class="preview-box">
  569. <iframe :src="previewUrl" style="width:100%;height:80vh;border:none;"></iframe>
  570. </div>
  571. <template #footer>
  572. <el-button @click="showResumeDialog = false">关闭</el-button>
  573. <el-button type="primary" @click="downloadResume">下载简历</el-button>
  574. </template>
  575. </el-dialog>
  576. <!-- 附件列表 -->
  577. <AttachmentSelectDialog @closePostPush="closePostPush" @select="selectItem" v-if="showDialog" :showDialog="showDialog" />
  578. </div>
  579. </template>
  580. <script>
  581. import {
  582. ROOTPATH,
  583. ROOTPATH2,
  584. ROOTPATH3
  585. } from '../../../comment/httpUrl.js'
  586. //引入表情的json
  587. import emoj from './emoj.json'
  588. import {
  589. ElMessageBox,
  590. ElMessage,
  591. } from 'element-plus'
  592. import axios from 'axios';
  593. import jsonp from 'axios-jsonp'
  594. import AttachmentSelectDialog from '../../components/AttachmentSelectDialog/AttachmentSelectDialog.vue'
  595. export default {
  596. components: { AttachmentSelectDialog },
  597. data() {
  598. return {
  599. showResumeDialog:false,
  600. previewUrl:'',
  601. currentFileUrl:'',
  602. isJobDescExpanded: false,
  603. showDialog: false,
  604. miamshi: {
  605. hrPhone: '', //手机号
  606. hrName: '', //联系人
  607. position: '', //面试岗位
  608. interviewDateTime: '', //面试时间
  609. companyId: '', //公司id
  610. remarks: '', //面试备注
  611. userId: '', //面试者id
  612. postPushId: '', //岗位id
  613. province: '', //省
  614. city: '', //市
  615. county: '', //区
  616. lng: '', //经度
  617. lat: '', //纬度
  618. address: '', //地址
  619. detailedAddress: '', //详细地址
  620. },
  621. dialogms: false, //面试邀请弹窗
  622. webSco: null, //webscoket对象
  623. msgList: [], //系统消息
  624. userCount: 0,
  625. leftList: [], //左侧聊天列表
  626. byUserId: '', //userid
  627. chatConversationId: '', //聊天室id
  628. postPushId: '', //岗位id
  629. resumesId: '', //简历id
  630. postPushInfo: {}, //岗位信息
  631. resumesInfo: {}, //简历信息
  632. title: '',
  633. page: 1,
  634. limit: 100,
  635. megList: [],
  636. userId: '',
  637. isSendWx: false, //是否交换微信
  638. isSendPhone: false, //是否交换电话
  639. action: ROOTPATH + '/alioss/upload', //上传图片地址
  640. screenHeight: 0, //屏幕高度
  641. emjSrc: ROOTPATH3,
  642. content: '', //消息内容
  643. emojList: emoj.emojList, //表情
  644. czIndex: -1,
  645. czList: [{
  646. name: '',
  647. src: '/images/postimg/emij.png',
  648. srcS: '/images/postimg/emij_s.png',
  649. },
  650. {
  651. name: '',
  652. src: '/images/postimg/photo.png',
  653. srcS: '/images/postimg/photo_s.png',
  654. },
  655. {
  656. name: '',
  657. src: '/images/postimg/cyy.png',
  658. srcS: '/images/postimg/cyy_s.png',
  659. },
  660. {
  661. name: '发简历',
  662. src: '/images/postimg/jl.png',
  663. srcS: '/images/postimg/jl_s.png',
  664. },
  665. {
  666. name: '换电话',
  667. src: '/images/postimg/phone.png',
  668. srcS: '/images/postimg/phone_s.png',
  669. },
  670. {
  671. name: '换微信',
  672. src: '/images/postimg/weichat.png',
  673. srcS: '/images/postimg/weichat_s.png',
  674. }
  675. ], //操作图片
  676. isShowEmoj: false, //是否显示表情弹窗
  677. liftIndex: -1,
  678. selectIndex: -1,
  679. sysMsgList: [], //系统消息
  680. sysPgae: 1,
  681. sysPages: 1,
  682. sysLimit: 10,
  683. jobList:[],
  684. isShowCommon:false, //是否显示常用语
  685. changYongList:[],
  686. webSocketState:false,
  687. webSco:null,
  688. conversationInfo: {},
  689. resumesStatusMap: {
  690. 0: '离职-随时到岗',
  691. 1: '在职-月内到岗',
  692. 2: '在职-考虑机会',
  693. 3: '在职-暂不考虑',
  694. 4:'实习'
  695. },
  696. activeName: 'all',
  697. }
  698. },
  699. computed: {
  700. messageCount() {
  701. return this.$store.state.messageCount;
  702. },
  703. userType() {
  704. return this.$store.state.userType;
  705. },
  706. avatar() {
  707. return this.$store.state.avatar;
  708. },
  709. isHtmlContent() {
  710. const str = this.postPushInfo?.positionDetails || '';
  711. return /<[^>]+>/.test(str);
  712. }
  713. },
  714. mounted() {
  715. this.screenHeight = window.innerHeight
  716. this.userId = localStorage.getItem('userId')
  717. this.getMsgList()
  718. this.getweiduMsg()
  719. this.getChatList()
  720. setTimeout(() => {
  721. this.getChangYong();
  722. }, 1000);
  723. },
  724. methods: {
  725. previewResume(attachmentAddress){
  726. const isFileLink = /^https?:\/\/.+\.(pdf|doc|docx|xls|xlsx)$/i.test(attachmentAddress);
  727. if (!isFileLink) {
  728. ElMessage({
  729. message: '该简历无法预览',
  730. type: 'warning',
  731. duration: 1500,
  732. offset: this.screenHeight / 2
  733. })
  734. return;
  735. }
  736. window.open(attachmentAddress, '_blank');
  737. // this.showResumeDialog = true;
  738. this.currentFileUrl = attachmentAddress;
  739. },
  740. // 下载简历
  741. downloadResume() {
  742. if (!this.currentFileUrl) return;
  743. window.open(this.currentFileUrl, '_blank');
  744. },
  745. goToPageDetail(){
  746. if (this.userType == 1) {
  747. this.handleClick(this.postPushInfo.postPushId)
  748. } else {
  749. this.goToPage()
  750. }
  751. },
  752. handleTabClick(tab) {
  753. this.activeName = tab.props.name
  754. },
  755. deleteMsg(item){
  756. ElMessageBox.confirm(
  757. '确定删除这条消息?',
  758. '温馨提示', {
  759. confirmButtonText: '确定',
  760. cancelButtonText: '取消',
  761. type: 'warning',
  762. })
  763. .then(() => {
  764. this.$Request.get(`/app/chat/deleteConversation?chatConversationId=${item.chatConversationId}`).then(res => {
  765. if (res.code == 0) {
  766. ElMessage({
  767. message: res.msg || '删除成功',
  768. type: 'success',
  769. duration: 1500,
  770. offset: this.screenHeight / 2
  771. })
  772. this.getChatList()
  773. }
  774. });
  775. })
  776. },
  777. getDateDiff(data) {
  778. // 兼容字符串或时间戳
  779. let timePublish;
  780. if (typeof data === 'string') {
  781. // PC 浏览器可以正常识别 "2026-01-05 18:46:39"
  782. timePublish = new Date(data.replace(/-/g, '/')); // 保留这步以防某些老浏览器异常
  783. } else if (typeof data === 'number') {
  784. timePublish = new Date(data);
  785. } else {
  786. timePublish = data instanceof Date ? data : new Date();
  787. }
  788. if (isNaN(timePublish.getTime())) return '';
  789. const timeNow = new Date();
  790. const publishYear = timePublish.getFullYear();
  791. const publishMonth = timePublish.getMonth() + 1;
  792. const publishDate = timePublish.getDate();
  793. const publishHour = timePublish.getHours().toString().padStart(2, '0');
  794. const publishMinute = timePublish.getMinutes().toString().padStart(2, '0');
  795. // 计算两个日期的“自然日”差值
  796. const nowZero = new Date(timeNow.getFullYear(), timeNow.getMonth(), timeNow.getDate());
  797. const publishZero = new Date(publishYear, timePublish.getMonth(), publishDate);
  798. const diffDays = Math.floor((nowZero - publishZero) / (1000 * 60 * 60 * 24));
  799. const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  800. const weekStr = weekDays[timePublish.getDay()];
  801. const sameYear = publishYear === timeNow.getFullYear();
  802. let result = '';
  803. if (diffDays === 0) {
  804. // 今天
  805. result = `${publishHour}:${publishMinute}`;
  806. } else if (diffDays === 1) {
  807. // 昨天
  808. result = `昨天 ${publishHour}:${publishMinute}`;
  809. } else if (diffDays < 7) {
  810. // 一周内
  811. result = `${weekStr} ${publishHour}:${publishMinute}`;
  812. } else if (sameYear) {
  813. // 同一年
  814. result = `${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
  815. } else {
  816. // 跨年
  817. result = `${publishYear}年${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
  818. }
  819. return result;
  820. },
  821. goToPage(){
  822. if (localStorage.getItem('token')) {
  823. const routeUrl = this.$router.resolve({
  824. name: 'resumeInfo',
  825. query: {
  826. resumesId: this.resumesId,
  827. postPushId: this.postPushId,
  828. ruleClassifyId: this.postPushInfo?.ruleClassifyId || '',
  829. }
  830. });
  831. window.open(routeUrl.href, '_blank');
  832. } else {
  833. this.$router.push({
  834. name: 'login'
  835. })
  836. }
  837. },
  838. handleClick(postPushId){
  839. if (localStorage.getItem('token')) {
  840. const routeUrl = this.$router.resolve({
  841. name: 'postInfo',
  842. query: {
  843. postPushId: postPushId
  844. }
  845. });
  846. window.open(routeUrl.href, '_blank');
  847. } else {
  848. this.$router.push({
  849. name: 'login'
  850. })
  851. }
  852. },
  853. getChangYong() {
  854. let state = 0
  855. if (this.userType == 1) {
  856. state = 70
  857. } else {
  858. state = 80
  859. }
  860. this.$Request.get(`/app/message/selectMessageByType?page=1&limit=100&state=${state}`)
  861. .then(res => {
  862. if (res.code == 0) {
  863. console.log(res.data.list)
  864. this.changYongList = [{ label: '你好啊,可以聊一聊~', id: 0 }];
  865. res.data.list.forEach(d => {
  866. let data = {
  867. label: d.content,
  868. id: d.id
  869. }
  870. this.changYongList.push(data);
  871. });
  872. }
  873. });
  874. },
  875. selConfirm(val){
  876. this.content = val;
  877. this.isShowCommon = false;
  878. },
  879. closePostPush(){
  880. this.showDialog = false
  881. },
  882. // 选择附件简历的数据
  883. selectItem(item){
  884. if(item.resumesAttachmentId){
  885. this.sendResumesSave(item.resumesAttachmentId);
  886. }
  887. },
  888. //关闭面试邀请回掉
  889. closeMs() {
  890. //清楚输入的值
  891. this.miamshi.detailedAddress = '';
  892. this.miamshi.interviewDateTime = '';
  893. this.miamshi.address = '';
  894. this.miamshi.remarks = '';
  895. this.miamshi.userId = '';
  896. this.miamshi.hrPhone = ''; //手机号
  897. this.miamshi.hrName = ''; //联系人
  898. this.miamshi.position = ''; //面试岗位
  899. },
  900. jumpToTencentMap(latitude, longitude, name) {
  901. var url = 'https://apis.map.qq.com/uri/v1/search?keyword=' + name + '&center=' + latitude + ',' +
  902. longitude + '&radius=100&referer=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77';
  903. window.open(url)
  904. },
  905. formatDate(dates, type) {
  906. let date = new Date(dates)
  907. let year = date.getFullYear()
  908. let month = ("0" + (date.getMonth() + 1)).slice(-2)
  909. let day = ("0" + date.getDate()).slice(-2)
  910. let hour = date.getHours()
  911. let minute = ("0" + date.getMinutes()).slice(-2)
  912. // 处理 12小时制
  913. let ampm = hour >= 12 ? 'PM' : 'AM'
  914. hour = hour % 12
  915. hour = hour ? hour : 12 // 0点转成12
  916. hour = ("0" + hour).slice(-2)
  917. if (type == 1) {
  918. // 返回完整日期 + 固定时间
  919. return `${year}-${month}-${day} 00:00:00`
  920. } else {
  921. // 返回 12小时制时间 + AM/PM
  922. return `${hour}:${minute} ${ampm}`
  923. }
  924. },
  925. submitMs() {
  926. let obj = JSON.parse(JSON.stringify(this.miamshi))
  927. let Time = this.formatDate(obj.interviewDateTime,1);
  928. obj.detailTime = this.formatDate(obj.interviewDateTime,2);
  929. let formms = this.$refs.formms
  930. formms.validate((valid) => {
  931. if (valid) {
  932. if (!obj.lng || !obj.lat) {
  933. ElMessage({
  934. message: '请选择搜索出来的地址',
  935. type: 'info',
  936. duration: 1500,
  937. offset: this.screenHeight / 2
  938. })
  939. return
  940. }
  941. let dataInfo = {
  942. address:obj.address,
  943. companyId:obj.companyId,
  944. detailTime: obj.detailTime,
  945. detailedAddress:obj.detailedAddress,
  946. hrName: obj.hrName,
  947. hrPhone: obj.hrPhone,
  948. interviewDateTime: Time,
  949. interviewerId:obj.userId,
  950. lat: obj.lat,
  951. lng: obj.lng,
  952. onlineMsg:'',
  953. onlineType:'',
  954. postPushId: obj.postPushId,
  955. recordId:'',//发送的这份面试的id,为空,代表添加,如果有值的话代表修改
  956. remarks: obj.remarks,
  957. resumesId:this.resumesId,
  958. type:0
  959. }
  960. this.$Request.post("/app/interviewRecord/saveInterview", dataInfo, {
  961. type: 'json'
  962. }).then(res => {
  963. if (res.code == 0) {
  964. ElMessage({
  965. message: '面试邀请已发送',
  966. type: 'success',
  967. duration: 1500,
  968. offset: this.screenHeight / 2
  969. })
  970. this.sendMessage(99)
  971. this.dialogms = false
  972. }
  973. // else {
  974. // ElMessage({
  975. // message: res.msg,
  976. // type: 'error',
  977. // duration: 1500,
  978. // offset: this.screenHeight / 2
  979. // })
  980. // }
  981. })
  982. }
  983. })
  984. },
  985. //选择地址
  986. handleSelect(item) {
  987. this.miamshi.companyId = localStorage.getItem('companyId');
  988. this.miamshi.userId = this.byUserId
  989. this.miamshi.postPushId = this.postPushId
  990. this.miamshi.province = item.province
  991. this.miamshi.city = item.city
  992. this.miamshi.county = item.district
  993. this.miamshi.lng = item.location.lng
  994. this.miamshi.lat = item.location.lat
  995. },
  996. //地址搜索
  997. querySearchAsync(queryString, cd) {
  998. if (!queryString) {
  999. cd([])
  1000. return
  1001. }
  1002. let data = {
  1003. key: "ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75", //申请的密钥
  1004. keyword: queryString, //搜索内容
  1005. output: 'jsonp',
  1006. };
  1007. let url =
  1008. "https://apis.map.qq.com/ws/place/v1/suggestion"
  1009. axios.get(url, {
  1010. params: data,
  1011. adapter: jsonp
  1012. }).then(res => {
  1013. if (res.data.status == 0) {
  1014. let arr = res.data.data
  1015. arr.map(item => {
  1016. item.value = item.title
  1017. })
  1018. cd(arr)
  1019. }
  1020. }).catch(err => {
  1021. console.log(err)
  1022. })
  1023. },
  1024. //系统消息加载更多
  1025. handleScroll(e) {
  1026. if (this.sysPgae < this.sysPages) {
  1027. this.sysPgae += 1
  1028. this.getSysMsgList(false)
  1029. }
  1030. },
  1031. //获取系统通知列表
  1032. getSysMsgList(type) {
  1033. if (type) {
  1034. this.sysPgae = 1
  1035. }
  1036. this.liftIndex = -1
  1037. this.loading = true
  1038. let data = {
  1039. page: this.sysPgae,
  1040. limit: this.sysLimit,
  1041. // state: 5
  1042. }
  1043. this.$Request.get('/app/message/selectMessageByUserId', {
  1044. params: data
  1045. }).then(res => {
  1046. if (res.code === 0) {
  1047. this.selectIndex = 1
  1048. this.sysPages = res.data.totalPage
  1049. if (this.sysPgae == 1) {
  1050. this.sysMsgList = res.data.list
  1051. } else {
  1052. this.sysMsgList = [...this.sysMsgList, ...res.data.list]
  1053. }
  1054. }
  1055. });
  1056. },
  1057. initScoket() {
  1058. this.webSco = this.$socket.getSocket();
  1059. // 如果 WebSocket 已经连接,直接把状态标记为 true
  1060. if (this.webSco.readyState === WebSocket.OPEN) {
  1061. this.webSocketState = true
  1062. // console.log('✅ WebSocket 已经连接,状态直接标记为 true')
  1063. } else {
  1064. // 还未连接,绑定 onopen
  1065. this.webSco.onopen = this.websocketonopen.bind(this)
  1066. }
  1067. // 绑定其他回调
  1068. this.webSco.onmessage = this.websocketonmessage.bind(this)
  1069. this.webSco.onerror = this.websocketonerror.bind(this)
  1070. this.webSco.onclose = this.websocketclose.bind(this)
  1071. },
  1072. //监听接收到消息的回调
  1073. websocketonmessage(event) {
  1074. this.webSocketState = true
  1075. // console.log(event, '收到消息')
  1076. //收到消息后再获取聊天记录
  1077. this.getCHarList()
  1078. },
  1079. //监听错误的回调
  1080. websocketonerror(event) {
  1081. //连接错误后把连接状态设为false
  1082. this.webSocketState = false
  1083. // console.log(event, '连接错误')
  1084. },
  1085. //监听链接打开的回调
  1086. websocketonopen(event) {
  1087. this.webSocketState = true
  1088. // console.log(event, '连接已打开')
  1089. },
  1090. //监听关闭的回调
  1091. websocketclose(event) {
  1092. // 关闭连接后把状态设为false
  1093. this.webSocketState = false
  1094. // console.log(event, '连接已关闭')
  1095. },
  1096. //开始聊天
  1097. startMsg(item, index) {
  1098. this.ruleClassifyName = item.stationName;//岗位名称
  1099. this.liftIndex = index
  1100. this.czList = [{
  1101. name: '',
  1102. src: '/images/postimg/emij.png',
  1103. srcS: '/images/postimg/emij_s.png',
  1104. },
  1105. {
  1106. name: '',
  1107. src: '/images/postimg/photo.png',
  1108. srcS: '/images/postimg/photo_s.png',
  1109. },
  1110. {
  1111. name: '',
  1112. src: '/images/postimg/cyy.png',
  1113. srcS: '/images/postimg/cyy_s.png',
  1114. },
  1115. {
  1116. name: '发简历',
  1117. src: '/images/postimg/jl.png',
  1118. srcS: '/images/postimg/jl_s.png',
  1119. },
  1120. {
  1121. name: '换电话',
  1122. src: '/images/postimg/phone.png',
  1123. srcS: '/images/postimg/phone_s.png',
  1124. },
  1125. {
  1126. name: '换微信',
  1127. src: '/images/postimg/weichat.png',
  1128. srcS: '/images/postimg/weichat_s.png',
  1129. }
  1130. ]
  1131. this.postPushId = item.postPushId
  1132. this.chatConversationId = item.chatConversationId
  1133. this.getPostPushInfo()
  1134. if (this.userType == 1) { //用户
  1135. this.byUserId = item.focusedUserId
  1136. this.czList[3].name = '发简历'
  1137. } else { //招聘者
  1138. this.byUserId = item.userId
  1139. this.resumesId = item.resumesId
  1140. this.czList[3].name = '求简历'
  1141. this.czList.push({
  1142. name: '约面试',
  1143. src: '/images/postimg/yms.png',
  1144. srcS: '/images/postimg/yms_.png',
  1145. })
  1146. this.getResumesInfo(this.resumesId)
  1147. }
  1148. //获取聊天记录
  1149. this.getCHarList();
  1150. this.getChatList();
  1151. //获取交换状态
  1152. this.getStatusInfo()
  1153. this.initScoket()
  1154. this.selectIndex = 3
  1155. },
  1156. //关闭弹窗
  1157. closeDialog() {
  1158. this.isShowEmoj = false
  1159. this.isShowCommon = false
  1160. },
  1161. // 同意简历请求并发送简历
  1162. sendResumesSave(resumesAttachmentId) {
  1163. let that = this
  1164. let data = {
  1165. to: this.byUserId, //接收人的userId
  1166. postPushId: this.postPushId, //岗位id
  1167. resumesAttachmentId
  1168. }
  1169. this.$Request.post("/app/resumes/sendResumes", data).then(res => {
  1170. if (res.code == 0) {
  1171. ElMessage({
  1172. message: '简历已发送',
  1173. type: 'success',
  1174. duration: 1500,
  1175. offset: this.screenHeight / 2
  1176. })
  1177. this.sendMessage(24)
  1178. this.getCHarList()
  1179. this.getStatusInfo()
  1180. }
  1181. })
  1182. },
  1183. //同意简历请求
  1184. resumesTy() {
  1185. ElMessageBox.confirm(
  1186. '确定发送简历给对方?',
  1187. '提示', {
  1188. confirmButtonText: '确定',
  1189. cancelButtonText: '取消',
  1190. type: 'warning',
  1191. }
  1192. )
  1193. .then(() => {
  1194. this.showDialog = true;
  1195. }).catch(() => {
  1196. })
  1197. },
  1198. //同意交换手机号/微信
  1199. tongyi(messageType, chatContentId) {
  1200. if (messageType == 6 && !this.$store.state.weChatNum) {
  1201. ElMessageBox.confirm(
  1202. '请点击右上角头像的个人信息完善微信号后操作',
  1203. '提示', {
  1204. confirmButtonText: '去完善',
  1205. cancelButtonText: '取消',
  1206. type: 'warning',
  1207. }
  1208. )
  1209. .then(() => {
  1210. }).catch(() => {
  1211. })
  1212. return
  1213. }
  1214. let that = this
  1215. ElMessageBox.confirm(
  1216. messageType == 5 ? '同意后将交换手机号,是否同意?' : '同意后将交换微信号,是否同意?',
  1217. '提示', {
  1218. confirmButtonText: '同意',
  1219. cancelButtonText: '取消',
  1220. type: 'warning',
  1221. }
  1222. )
  1223. .then(() => {
  1224. let data = {
  1225. messageType: messageType,
  1226. chatContentId: chatContentId
  1227. }
  1228. that.$Request.post("/app/chat/sendPhoneOrWx", data).then(res => {
  1229. if (res.code == 0) {
  1230. this.sendMessage(24)
  1231. this.getCHarList()
  1232. that.getStatusInfo()
  1233. }
  1234. })
  1235. }).catch(() => {
  1236. })
  1237. },
  1238. //请求拒绝
  1239. refuseFun(id) {
  1240. ElMessageBox.confirm(
  1241. '确定拒绝吗?',
  1242. '提示', {
  1243. confirmButtonText: '确认',
  1244. cancelButtonText: '取消',
  1245. type: 'warning',
  1246. }
  1247. )
  1248. .then(() => {
  1249. let data = {
  1250. chatContentId: id
  1251. }
  1252. this.$Request.get("/app/chat/refuseReqs", {
  1253. params: data
  1254. }).then(res => {
  1255. if (res.code == 0) {
  1256. ElMessage({
  1257. message: '已拒绝',
  1258. type: 'success',
  1259. duration: 1500,
  1260. offset: this.screenHeight / 2
  1261. })
  1262. this.sendMessage(24)
  1263. this.getCHarList()
  1264. this.getStatusInfo()
  1265. } else {
  1266. ElMessage({
  1267. message: res.msg,
  1268. type: 'error',
  1269. duration: 1500,
  1270. offset: this.screenHeight / 2
  1271. })
  1272. }
  1273. })
  1274. }).catch(() => {
  1275. })
  1276. },
  1277. //发送图片
  1278. handleAvatarSuccess(res) {
  1279. let data = {
  1280. userId: this.byUserId, //id
  1281. content: res.data, //消息内容
  1282. messageType: 2, //消息类型
  1283. chatConversationId: this.chatConversationId //聊天室id
  1284. }
  1285. //把要发送的消息转换为json字符串
  1286. data = JSON.stringify(data);
  1287. //如果scoket是连接状态,那么就直接发送消息
  1288. if (this.webSocketState) {
  1289. // 发送消息
  1290. this.webSco.send(data)
  1291. setTimeout(() => {
  1292. //发送消息后晴空输入框
  1293. this.content = ''
  1294. //获取聊天记录
  1295. this.getCHarList()
  1296. }, 50)
  1297. } else { //如果不是,那么就重新连接
  1298. this.initScoket()
  1299. }
  1300. },
  1301. // 发送消息 type:1:文字 2:图片 3:语音 4:表情
  1302. sendMessage(type, url) {
  1303. let data = {
  1304. userId: this.byUserId, //id
  1305. content: this.content.replace(/\n/g, ''), //消息内容
  1306. messageType: type, //消息类型
  1307. chatConversationId: this.chatConversationId //聊天室id
  1308. }
  1309. if (type == 1 && !data.content) { //文字
  1310. ElMessage({
  1311. message: '请输入聊天内容',
  1312. type: 'error',
  1313. duration: 1500,
  1314. offset: this.screenHeight / 2
  1315. })
  1316. this.content = ''
  1317. return
  1318. }
  1319. if (type == 4) { //发送表情
  1320. data.content = url
  1321. }
  1322. if (type == 5) { //交换手机号请求
  1323. data.content = '手机号请求';
  1324. }
  1325. if (type == 6) { //交换微信号请求
  1326. data.content = '微信号请求';
  1327. }
  1328. if (type == 9) { //简历请求
  1329. data.content = '简历请求';
  1330. }
  1331. if (type == 24) { //刷新
  1332. data.content = '刷新';
  1333. }
  1334. if(type == 99){ //面试邀约
  1335. data.content = '一份面试邀约';
  1336. }
  1337. //把要发送的消息转换为json字符串
  1338. data = JSON.stringify(data);
  1339. //如果scoket是连接状态,那么就直接发送消息
  1340. if (this.webSocketState) {
  1341. // 发送消息
  1342. this.webSco.send(data)
  1343. setTimeout(() => {
  1344. //发送消息后晴空输入框
  1345. this.content = ''
  1346. //获取聊天记录
  1347. this.getCHarList()
  1348. }, 50)
  1349. } else { //如果不是,那么就重新连接
  1350. this.initScoket()
  1351. }
  1352. },
  1353. //发简历
  1354. sendResumes() {
  1355. ElMessageBox.confirm(
  1356. '是否将简历发送给对方?',
  1357. '提示', {
  1358. confirmButtonText: '发送',
  1359. cancelButtonText: '取消',
  1360. type: 'warning',
  1361. }
  1362. )
  1363. .then(() => {
  1364. this.showDialog = true;
  1365. }).catch(() => {
  1366. })
  1367. },
  1368. //交换手机号弹窗
  1369. currentPhone() {
  1370. let that = this
  1371. if (this.isSendPhone == false) {
  1372. ElMessageBox.confirm(
  1373. '确定后,电话交换请求将发送给对方,对方同意后将会看到彼此的手机号',
  1374. '确定与对方交换电话吗?', {
  1375. confirmButtonText: '确定',
  1376. cancelButtonText: '取消',
  1377. type: 'warning',
  1378. }
  1379. )
  1380. .then(() => {
  1381. that.sendMessage(5)
  1382. }).catch(() => {
  1383. })
  1384. } else {
  1385. ElMessage({
  1386. message: '已交换过手机号,请查看聊天记录',
  1387. type: 'error',
  1388. duration: 1500,
  1389. offset: this.screenHeight / 2
  1390. })
  1391. }
  1392. },
  1393. //交换微信号弹窗
  1394. currentWchat() {
  1395. let that = this
  1396. if (!this.$store.state.weChatNum) {
  1397. ElMessageBox.confirm(
  1398. '请点击右上角头像的个人信息完善微信号后操作',
  1399. '提示', {
  1400. confirmButtonText: '去完善',
  1401. cancelButtonText: '取消',
  1402. type: 'warning',
  1403. }
  1404. )
  1405. .then(() => {
  1406. }).catch(() => {
  1407. })
  1408. return
  1409. }
  1410. if (this.isSendWx == false) {
  1411. ElMessageBox.confirm(
  1412. '确定后,微信交换请求将发送给对方,对方同意后将会看到彼此的微信号',
  1413. '确定与对方交换微信吗?', {
  1414. confirmButtonText: '确定',
  1415. cancelButtonText: '取消',
  1416. type: 'warning',
  1417. }
  1418. )
  1419. .then(() => {
  1420. that.sendMessage(6)
  1421. }).catch(() => {
  1422. })
  1423. } else {
  1424. ElMessage({
  1425. message: '已交换过微信号,请查看聊天记录',
  1426. type: 'error',
  1427. duration: 1500,
  1428. offset: this.screenHeight / 2
  1429. })
  1430. }
  1431. },
  1432. //求简历
  1433. giveSendResumes() {
  1434. ElMessageBox.confirm(
  1435. '是否将简历请求发送给对方?',
  1436. '确定获取对方简历吗?', {
  1437. confirmButtonText: '确定',
  1438. cancelButtonText: '取消',
  1439. type: 'warning',
  1440. }
  1441. )
  1442. .then(() => {
  1443. this.sendMessage(9)
  1444. }).catch(() => {
  1445. })
  1446. },
  1447. //操作
  1448. czlist(index) {
  1449. switch (index) {
  1450. case 0: //显示表情
  1451. this.isShowEmoj = true
  1452. break;
  1453. case 2: //显示常用语
  1454. this.isShowCommon = true
  1455. break;
  1456. case 3: //发简历
  1457. if (this.userType == 1) { //发简历
  1458. this.sendResumes()
  1459. } else { //求简历
  1460. this.giveSendResumes()
  1461. }
  1462. break;
  1463. case 4: //换电话
  1464. this.currentPhone()
  1465. break;
  1466. case 5: //换微信
  1467. this.currentWchat()
  1468. break;
  1469. case 6: //约面试
  1470. this.openDialog();
  1471. break;
  1472. default:
  1473. break;
  1474. }
  1475. },
  1476. // 赋值地址和联系人数据
  1477. openDialog() {
  1478. this.miamshi = {
  1479. hrPhone: this.$store.state.phone || '',
  1480. hrName: this.$store.state.nickName || '',
  1481. position: this.jobList[0].ruleClassifyId,
  1482. interviewDateTime: '',
  1483. companyId: localStorage.getItem('companyId') || '',
  1484. remarks: '',
  1485. userId: this.byUserId || '',
  1486. postPushId: this.postPushId || '',
  1487. province: this.jobList[0].province || '',
  1488. city: this.jobList[0].city || '',
  1489. county: this.jobList[0].county || '',
  1490. lng: this.jobList[0].lng || '',
  1491. lat: this.jobList[0].lat || '',
  1492. address: this.jobList[0]?.address.split(' ')[0] || '',
  1493. detailedAddress: this.jobList[0]?.address.split(' ')[1] || '',
  1494. }
  1495. this.dialogms = true;
  1496. },
  1497. //还原图片
  1498. resetImageSrc(index) {
  1499. this.czIndex = -1
  1500. },
  1501. //显示图片
  1502. changeImageSrc(index) {
  1503. this.czIndex = index
  1504. },
  1505. //获取交换状态
  1506. getStatusInfo() {
  1507. let data = {
  1508. chatConversationId: this.chatConversationId
  1509. }
  1510. this.$Request.get("/app/chat/getConversationInfo", {
  1511. params: data
  1512. }).then(res => {
  1513. if (res.code == 0) {
  1514. this.conversationInfo = res.data
  1515. if (res.data.isSendWx) { //是否交换微信
  1516. this.isSendWx = true
  1517. } else {
  1518. this.isSendWx = false
  1519. }
  1520. if (res.data.isSendPhone) { //是否交换电话
  1521. this.isSendPhone = true
  1522. } else {
  1523. this.isSendPhone = false
  1524. }
  1525. }
  1526. })
  1527. },
  1528. //获取聊天记录
  1529. getCHarList() {
  1530. let data = {
  1531. page: this.page,
  1532. limit: this.limit,
  1533. chatConversationId: this.chatConversationId,
  1534. userId: this.userId
  1535. }
  1536. this.$Request.get('/app/chat/selectChatContent', {
  1537. params: data
  1538. }).then(res => {
  1539. if (res.code == 0) {
  1540. res.data.list.map(item => {
  1541. if (item.messageType == 18) {
  1542. item.content = JSON.parse(item.content)
  1543. }
  1544. })
  1545. this.megList = res.data.list
  1546. this.megList.reverse();
  1547. //等数据更新后滚动到最底下
  1548. this.$nextTick(() => {
  1549. this.$refs.messageBox.scrollTop = this.$refs.messageBox.scrollHeight
  1550. })
  1551. }
  1552. })
  1553. },
  1554. //获取简历数据
  1555. getResumesInfo(id) {
  1556. let data = {
  1557. userId: localStorage.getItem('userId'),
  1558. resumesId: id,
  1559. companyId: localStorage.getItem('companyId')
  1560. }
  1561. this.$Request.get("/app/resumes/selectResumesByResumesId", {
  1562. params: data
  1563. }).then(res => {
  1564. if (res.code == 0) {
  1565. res.data.intentionRuleClassifyName = this.ruleClassifyName
  1566. res.data.intentionSalaryRange = ''
  1567. res.data.intentionList.forEach(item => {
  1568. if (item.ruleClassifyName == this.ruleClassifyName) {
  1569. res.data.intentionRuleClassifyName = item.ruleClassifyName
  1570. res.data.intentionSalaryRange = item.salaryRange
  1571. }
  1572. })
  1573. this.resumesInfo = res.data
  1574. }
  1575. })
  1576. },
  1577. //获取岗位数据
  1578. getPostPushInfo() {
  1579. let data = {
  1580. userId: this.userId,
  1581. postPushId: this.postPushId
  1582. }
  1583. this.$Request.get("/app/postPush/selectPostPushDetails", {
  1584. params: data
  1585. }).then(res => {
  1586. if (res.code == 0) {
  1587. this.title = res.data.company.companyName
  1588. this.postPushInfo = res.data
  1589. // this.postPushInfo.positionWelfare = this.postPushInfo?.positionWelfare.split(',');
  1590. // 选择的岗位列表
  1591. this.jobList = [{
  1592. ...res.data
  1593. }];
  1594. }
  1595. })
  1596. },
  1597. getChatList() {
  1598. let data = {
  1599. page: 1,
  1600. limit: 99999
  1601. }
  1602. this.$Request.get("/app/chat/selectChatConversationPage", {
  1603. params: data
  1604. }).then(res => {
  1605. if (res.code == 0) {
  1606. this.leftList = res.data?.list || []
  1607. }
  1608. });
  1609. },
  1610. getweiduMsg() {
  1611. this.$Request.get("/app/chats/userCount").then(res => {
  1612. if (res.code == 0) {
  1613. this.userCount = res.data
  1614. }
  1615. });
  1616. },
  1617. //获取系统消息
  1618. getMsgList() {
  1619. this.$Request.get("/app/message/selectMessageByUserIdLimit1").then(res => {
  1620. if (res.code == 0) {
  1621. this.msgList = res.data.list
  1622. }
  1623. });
  1624. },
  1625. }
  1626. }
  1627. </script>
  1628. <style lang="scss" scoped>
  1629. $margin-60: 120px;
  1630. .message {
  1631. width: 100%;
  1632. // padding-top: 20px;
  1633. }
  1634. .megActive {
  1635. background-color: #F0F0F0;
  1636. }
  1637. :deep(.el-textarea) {
  1638. --el-input-focus-border: none;
  1639. --el-input-focus-border-color: none;
  1640. }
  1641. :deep(.el-textarea__inner) {
  1642. box-shadow: none !important;
  1643. }
  1644. :deep(.el-textarea__inner:hover) {
  1645. box-shadow: none;
  1646. .is-focus {
  1647. box-shadow: none;
  1648. }
  1649. }
  1650. :deep(.el-dialog) {
  1651. border-radius: 14px !important;
  1652. }
  1653. :deep(.el-dialog__body) {
  1654. padding: 0 !important;
  1655. padding-top: 10px !important;
  1656. }
  1657. :deep(.el-dialog__header) {
  1658. background: linear-gradient(45deg, #f2fffa, #FFFFFF);
  1659. border-radius: 14px 14px 0 0;
  1660. }
  1661. .content {
  1662. width: calc(100% - $margin-60 * 2);
  1663. height: 80vh;
  1664. margin-top: 20px;
  1665. }
  1666. .content-l {
  1667. width: 30%;
  1668. height: 80vh;
  1669. background-color: #ffffff;
  1670. border-radius: 14px;
  1671. .tabs {
  1672. padding: 20px;
  1673. padding-bottom: 0;
  1674. }
  1675. .content-l-box {
  1676. width: 100%;
  1677. height: calc(80vh - 40px);
  1678. align-content: flex-start;
  1679. overflow: hidden;
  1680. overflow-y: scroll;
  1681. }
  1682. .content-l-box::-webkit-scrollbar {
  1683. /* Chrome, Safari, Opera */
  1684. width: 0px;
  1685. }
  1686. .content-l-box::-webkit-scrollbar-thumb {
  1687. background-color: #cccccc;
  1688. /* 滚动条颜色 */
  1689. }
  1690. .content-l-box::-webkit-scrollbar-track {
  1691. background-color: #ffffff;
  1692. /* 轨道颜色 */
  1693. }
  1694. .content-l-box-items:hover {
  1695. background-color: #F0F0F0;
  1696. }
  1697. .content-l-box-items {
  1698. width: calc(100% - 20px);
  1699. height: fit-content;
  1700. border-radius: 13px;
  1701. margin-bottom: 10px;
  1702. }
  1703. .content-l-box-item {
  1704. margin: 10px 0;
  1705. cursor: pointer;
  1706. padding: 0 20px;
  1707. }
  1708. .content-l-box-item-l {
  1709. img {
  1710. width: 46px;
  1711. height: 46px;
  1712. border-radius: 50%;
  1713. }
  1714. }
  1715. .content-l-box-item-con {
  1716. margin-left: 10px;
  1717. }
  1718. .content-l-box-item-con-title {
  1719. color: #222222;
  1720. font-size: 15px;
  1721. font-weight: 500;
  1722. span {
  1723. color: #999999;
  1724. font-size: 13px;
  1725. font-weight: 400;
  1726. margin-left: 5px;
  1727. }
  1728. }
  1729. .content-l-box-item-con-cons {
  1730. color: #999999;
  1731. font-size: 13px;
  1732. margin-top: 5px;
  1733. }
  1734. .content-l-box-item-r {
  1735. width: fit-content;
  1736. color: #999999;
  1737. font-size: 13px;
  1738. .content-l-box-item-r-dian {
  1739. width: 20px;
  1740. height: 20px;
  1741. border-radius: 50%;
  1742. background-color: red;
  1743. color: #ffffff;
  1744. }
  1745. }
  1746. }
  1747. .content-r {
  1748. width: calc(70% - 20px);
  1749. height: 80vh;
  1750. background-color: #ffffff;
  1751. border-radius: 14px;
  1752. .content-r-tz {
  1753. width: 90%;
  1754. height: 90%;
  1755. margin: auto;
  1756. margin-top: 3%;
  1757. overflow: hidden;
  1758. overflow-y: scroll;
  1759. }
  1760. .content-r-tz::-webkit-scrollbar {
  1761. /* Chrome, Safari, Opera */
  1762. width: 0px;
  1763. }
  1764. .content-r-tz::-webkit-scrollbar-thumb {
  1765. background-color: #cccccc;
  1766. /* 滚动条颜色 */
  1767. }
  1768. .content-r-tz::-webkit-scrollbar-track {
  1769. background-color: #ffffff;
  1770. /* 轨道颜色 */
  1771. }
  1772. .content-r-tz-item {
  1773. width: 100%;
  1774. padding: 10px 0;
  1775. border-bottom: 1px solid #f8f8f8;
  1776. }
  1777. .content-r-tz-item-title {
  1778. color: #222222;
  1779. font-size: 15px;
  1780. font-weight: 500px;
  1781. }
  1782. .content-r-tz-item-cons {
  1783. font-size: 13px;
  1784. font-weight: 400;
  1785. margin-top: 10px;
  1786. color: #999999;
  1787. }
  1788. .content-r-no {
  1789. width: 100%;
  1790. height: 100%;
  1791. align-content: center;
  1792. img {
  1793. width: 300px;
  1794. height: 200px;
  1795. }
  1796. .content-r-no-txt {
  1797. width: 100%;
  1798. text-align: center;
  1799. margin-top: 20px;
  1800. font-size: 14px;
  1801. }
  1802. }
  1803. .content-r-msg {
  1804. width: 100%;
  1805. height: 100%;
  1806. }
  1807. .content-r-msg-title {
  1808. width: calc(100% - 40px);
  1809. height: 55px;
  1810. padding: 0 20px;
  1811. border-bottom: 1px solid #EBEBEB;
  1812. .content-r-msg-title-s {
  1813. font-size: 16px;
  1814. font-weight: 5000;
  1815. color: #222222;
  1816. }
  1817. .content-r-msg-title-n {
  1818. color: #999999;
  1819. font-size: 14px;
  1820. font-weight: 400;
  1821. }
  1822. .content-r-msg-title-p {
  1823. color: red;
  1824. font-size: 14px;
  1825. font-weight: 400;
  1826. margin-left: 10px;
  1827. }
  1828. .content-r-msg-title-e {
  1829. color: #999999;
  1830. font-size: 14px;
  1831. font-weight: 400;
  1832. margin-left: 10px;
  1833. }
  1834. }
  1835. .content-r-msg-chat {
  1836. width: 100%;
  1837. height: calc(80vh - 255px);
  1838. }
  1839. .content-r-msg-chats {
  1840. width: calc(100% - 40px);
  1841. height: calc(100% - 40px);
  1842. overflow: hidden;
  1843. overflow-y: scroll;
  1844. }
  1845. .content-r-msg-chats::-webkit-scrollbar {
  1846. /* Chrome, Safari, Opera */
  1847. width: 0px;
  1848. }
  1849. .content-r-msg-chats::-webkit-scrollbar-thumb {
  1850. background-color: #cccccc;
  1851. /* 滚动条颜色 */
  1852. }
  1853. .content-r-msg-chats::-webkit-scrollbar-track {
  1854. background-color: #ffffff;
  1855. /* 轨道颜色 */
  1856. }
  1857. .message-box-item {
  1858. width: 100%;
  1859. margin-bottom: 20px;
  1860. }
  1861. .message-boxs {
  1862. width: 100%;
  1863. .message-boxs-avatar {
  1864. width: 40px;
  1865. height: 40px;
  1866. border-radius: 50%;
  1867. }
  1868. }
  1869. .message-box-l {
  1870. img {
  1871. margin-right: 10px;
  1872. }
  1873. .message-box-l-con {
  1874. max-width: 40%;
  1875. padding: 10px;
  1876. border-radius: 13px 13px 13px 0;
  1877. background-color: #F8F8F8;
  1878. color: #333333;
  1879. cursor: pointer;
  1880. }
  1881. .message-box-l-phone {
  1882. background: linear-gradient(to bottom, #D9FEED, #ffffff);
  1883. // background-color: red;
  1884. padding: 10px;
  1885. border-radius: 13px 13px 13px 0;
  1886. }
  1887. .message-box-l-phone-btn {
  1888. justify-content: flex-end;
  1889. margin-top: 10px;
  1890. }
  1891. }
  1892. .message-box-r {
  1893. justify-content: flex-end;
  1894. img {
  1895. margin-left: 10px;
  1896. }
  1897. .message-box-r-con {
  1898. max-width: 40%;
  1899. padding: 10px;
  1900. border-radius: 13px 13px 0 13px;
  1901. background: #00DD9A;
  1902. color: #FFFFFF;
  1903. cursor: pointer;
  1904. }
  1905. .invitation{
  1906. background: linear-gradient(rgb(217, 254, 237), rgb(255, 255, 255));
  1907. border: 0.5px solid rgb(198, 254, 231);
  1908. color: #000;
  1909. }
  1910. }
  1911. .inv-style{
  1912. background: linear-gradient(rgb(217, 254, 237), rgb(255, 255, 255));
  1913. border: 0.5px solid rgb(198, 254, 231);
  1914. color: #000;
  1915. }
  1916. .content-r-msg-btom {
  1917. width: 100%;
  1918. height: 200px;
  1919. border-top: 1px solid #E6E6E6;
  1920. }
  1921. .content-r-msg-btoms {
  1922. width: calc(100% - 40px);
  1923. height: calc(100% - 40px);
  1924. }
  1925. .message-btom-content {
  1926. width: 100%;
  1927. height: 70%;
  1928. }
  1929. .message-btom-btn {
  1930. width: 100%;
  1931. height: 30%;
  1932. }
  1933. .message-btom-btn-l {
  1934. position: relative;
  1935. .message-btom-btn-l-emj {
  1936. width: 490px;
  1937. height: 300px;
  1938. background-color: #ffffff;
  1939. border-radius: 10px 10px 10px 0;
  1940. position: absolute;
  1941. bottom: 30px;
  1942. border: 1px solid #f2f5fa;
  1943. box-shadow: 0 0 14px rgba(0, 0, 0, .11);
  1944. }
  1945. .message-btom-btn-l-emj-box {
  1946. width: calc(100% - 40px);
  1947. height: calc(100% - 40px);
  1948. overflow: hidden;
  1949. overflow-y: scroll;
  1950. img {
  1951. width: 30px;
  1952. height: 30px;
  1953. padding: 5px;
  1954. cursor: pointer;
  1955. }
  1956. }
  1957. .message-btom-btn-l-emj-box::-webkit-scrollbar {
  1958. /* Chrome, Safari, Opera */
  1959. width: 0px;
  1960. }
  1961. .message-btom-btn-l-emj-box::-webkit-scrollbar-thumb {
  1962. background-color: #ffffff;
  1963. /* 滚动条颜色 */
  1964. }
  1965. .message-btom-btn-l-emj-box::-webkit-scrollbar-track {
  1966. background-color: #ffffff;
  1967. /* 轨道颜色 */
  1968. }
  1969. .message-btom-btn-l-emjs {
  1970. position: absolute;
  1971. bottom: 22px;
  1972. width: 0;
  1973. height: 0;
  1974. border-left: 10px solid transparent;
  1975. /* 根据需要设置边框宽度 */
  1976. border-right: 10px solid transparent;
  1977. /* 根据需要设置边框宽度 */
  1978. border-top: 10px solid #ffffff;
  1979. /* 根据需要设置边框颜色 */
  1980. }
  1981. .message-btom-btn-l-item {
  1982. margin-right: 15px;
  1983. cursor: pointer;
  1984. color: #666666;
  1985. font-size: 14px;
  1986. img {
  1987. width: 20px;
  1988. height: 20px;
  1989. margin-right: 2px;
  1990. }
  1991. }
  1992. .message-btom-btn-l-item:hover {
  1993. color: #00DD9A;
  1994. }
  1995. .message-btom-btn-l-item:nth-of-type(1):hover {
  1996. img {
  1997. src: '/images/postimg/emij_s.png'
  1998. }
  1999. }
  2000. }
  2001. }
  2002. .sentence-panel{
  2003. margin: 0 !important;
  2004. padding: 0 !important;
  2005. }
  2006. .message-text{
  2007. height: 34px;
  2008. line-height: 34px;
  2009. border-radius: 4px;
  2010. z-index: 1;
  2011. overflow: hidden;
  2012. cursor: pointer;
  2013. white-space: nowrap;
  2014. text-overflow: ellipsis;
  2015. padding: 0 12px 0 24px;
  2016. font-size: 13px;
  2017. font-weight: 400;
  2018. color: #333;
  2019. border: none;
  2020. position: relative;
  2021. }
  2022. .message-text:hover{
  2023. background-color: #f8f8f8;
  2024. }
  2025. .message-text:before{
  2026. content: "";
  2027. position: absolute;
  2028. top: 14px;
  2029. left: 10px;
  2030. width: 6px;
  2031. height: 6px;
  2032. border-radius: 50%;
  2033. background: #d9d9d9;
  2034. }
  2035. .resume-box{
  2036. margin-bottom: 20px;
  2037. background-color: #F0F0F0;
  2038. border-radius: 8px;
  2039. padding: 15px;
  2040. cursor: pointer;
  2041. .resume-avatar{
  2042. width: 46px;
  2043. height: 46px;
  2044. border-radius: 50%;
  2045. margin-right: 10px;
  2046. }
  2047. .text-color{
  2048. color: #016BF6;
  2049. font-size: 14px;
  2050. margin-left: 5px;
  2051. }
  2052. .resume-label{
  2053. color: #9ca4ab;
  2054. font-size: 14px;
  2055. gap: 10px;
  2056. }
  2057. .information{
  2058. margin: 10px 0;
  2059. }
  2060. .resume-tag{
  2061. gap:6px;
  2062. }
  2063. .resume-content{
  2064. color: #616e7c;
  2065. font-size: 14px;
  2066. }
  2067. .resume-time{
  2068. border-top: 1px solid #e9e3e3;
  2069. padding-top: 5px;
  2070. }
  2071. .position-title{
  2072. font-size: 20px;
  2073. font-weight: 500;
  2074. }
  2075. .position-num{
  2076. color: #016bf6;
  2077. font-size: 16px;
  2078. margin-left: 10px;
  2079. }
  2080. .company-text{
  2081. color: #9ca4ab;
  2082. margin-top: 5px;
  2083. }
  2084. .position-content{
  2085. color: #999999;
  2086. font-size: 14px;
  2087. white-space: pre-wrap;
  2088. }
  2089. .position-content-itemAll{
  2090. display: -webkit-box;
  2091. -webkit-line-clamp: 4;
  2092. -webkit-box-orient: vertical;
  2093. overflow: hidden;
  2094. text-overflow: ellipsis;
  2095. }
  2096. .expand-more{
  2097. color: #007AFF;
  2098. font-size: 14px;
  2099. cursor: pointer;
  2100. margin-top: 10px;
  2101. }
  2102. .personnel{
  2103. margin: 10px 0;
  2104. font-size: 14px;
  2105. color: #1A1A1A;
  2106. }
  2107. }
  2108. .delete-btn{
  2109. display: none;
  2110. }
  2111. .content-l-box-item:hover .delete-btn {
  2112. display: flex;
  2113. }
  2114. </style>