index.vue 61 KB

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