messageCom.vue 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458
  1. <template>
  2. <div class="messageCom" @click.stop="closeDialog()">
  3. <el-dialog :close-on-press-escape="false" :close-on-click-modal="false" width="70%" v-model="show"
  4. @close="closeShow" :draggable="true" destroy-on-close align-center center>
  5. <template #header>
  6. <div class="my-header flex align-center" v-if="userType==1">
  7. <div class="my-header-title" style="font-weight: bold;">
  8. {{title}}
  9. </div>
  10. <el-divider direction="vertical" />
  11. <div class="my-header-name">
  12. {{postPushInfo.stationName}}
  13. </div>
  14. <div class="my-header-price">
  15. {{postPushInfo.salaryRange}}
  16. </div>
  17. <div class="my-header-yq">
  18. {{postPushInfo.education}}
  19. </div>
  20. </div>
  21. <div class="my-header flex align-center" v-else>
  22. <div class="my-header-title" style="font-weight: bold;">
  23. {{resumesInfo.userName}}
  24. </div>
  25. <el-divider direction="vertical" />
  26. <div class="my-header-name">
  27. {{resumesInfo.intentionRuleClassifyName}}
  28. </div>
  29. <div class="my-header-price">
  30. {{resumesInfo.intentionSalaryRange}}
  31. </div>
  32. <div class="my-header-yq">
  33. {{ resumesInfo.resumesWorkExperience || '0' }}年
  34. </div>
  35. </div>
  36. </template>
  37. <div class="message">
  38. <div ref="messageBox" class="message-box">
  39. <div class="message-box-item" v-for="(item,index) in megList" :key="index">
  40. <!-- 对方的消息 -->
  41. <div class="message-boxs message-box-l flex flex-wrap" v-if="item.userId != userId">
  42. <img class="message-boxs-avatar" :src="item.avatar?item.avatar:'/default.jpg'" alt="" />
  43. <div class="message-box-l-con" v-if="item.messageType==1 || item.messageType==10">
  44. {{item.content}}
  45. </div>
  46. <div class="message-box-l-con flex align-center" v-if="item.messageType==20">
  47. 视频通话
  48. <img src="/public/images/message/historyVideo_black.png"
  49. style="width: 25px;height: 25px;margin-left: 10px;" mode=""></img>
  50. </div>
  51. <div class="message-box-l-con flex align-center" v-if="item.messageType==21">
  52. 语音通话
  53. <img src="/public/images/message/historyAudio_black.png"
  54. style="width: 25px;height: 25px;margin-left: 10px;" mode=""></img>
  55. </div>
  56. <div class="message-box-l-con flex algin-center" style="cursor: pointer;"
  57. @click="jumpToTencentMap(item.content.latitude,item.content.longitude,item.content.address)"
  58. v-if="item.messageType==18">
  59. {{item.content.address}}
  60. <el-icon style="margin-left: 10px;" :size="20" color="#00DD9A">
  61. <MapLocation />
  62. </el-icon>
  63. </div>
  64. <!-- 图片 -->
  65. <div class="message-box-l-con" style="background-color: #ffffff;"
  66. v-if="item.messageType==2">
  67. <el-image style="width: 100px;height: 100px;border-radius: 4px;" :src="item.content"
  68. fit="cover" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2"
  69. :preview-src-list="[item.content]" :initial-index="4" />
  70. </div>
  71. <!-- 语音消息 -->
  72. <div class="message-box-l-con" v-if="item.messageType==3">
  73. 语音消息,请前往APP或小程序查看
  74. </div>
  75. <!-- 表情 -->
  76. <div class="message-box-l-con" style="background-color: #ffffff;"
  77. v-if="item.messageType==4">
  78. <img :src="emjSrc+item.content" alt="" />
  79. </div>
  80. <!-- 交换手机号请求 -->
  81. <div class="message-box-l-phone" v-if="item.messageType==5 && item.content=='手机号请求'">
  82. 我想跟你交换手机号,是否同意?
  83. <div class="message-box-l-phone-btn flex align-center">
  84. <el-button plain size="small"
  85. @click.stop="refuseFun(item.chatContentId)">拒绝</el-button>
  86. <el-button type="primary" size="small"
  87. @click.stop="tongyi(item.messageType,item.chatContentId)">同意</el-button>
  88. </div>
  89. </div>
  90. <!-- 交换手机号请求同意 -->
  91. <div class="message-box-l-con" v-if="item.messageType === 5 && item.content!='手机号请求'">
  92. 已同意交换手机号
  93. </div>
  94. <!-- 交换微信号请求 -->
  95. <div class="message-box-l-phone" v-if="item.messageType==6 && item.content=='微信号请求'">
  96. 我想跟你交换微信号,是否同意?
  97. <div class="message-box-l-phone-btn flex align-center">
  98. <el-button plain size="small"
  99. @click.stop="refuseFun(item.chatContentId)">拒绝</el-button>
  100. <el-button type="primary" size="small"
  101. @click.stop="tongyi(item.messageType,item.chatContentId)">同意</el-button>
  102. </div>
  103. </div>
  104. <!-- 交换微信号请求同意 -->
  105. <div class="message-box-l-con" v-if="item.messageType === 6 && item.content!='微信号请求'">
  106. 已同意交换微信号
  107. </div>
  108. <div class="message-box-l-con" v-if="item.messageType==7">
  109. <div class="" v-if="item.userType==1">
  110. 我的手机号为:{{JSON.parse(item.content).userPhone}}
  111. </div>
  112. <div v-else>
  113. 我的手机号为:{{JSON.parse(item.content).companyPhone}}
  114. </div>
  115. </div>
  116. <div class="message-box-l-con" v-if="item.messageType==8">
  117. <div class="" v-if="item.userType==1">
  118. 我的微信号为:{{JSON.parse(item.content).userWx}}
  119. </div>
  120. <div v-else>
  121. 我的微信号为:{{JSON.parse(item.content).companyWx}}
  122. </div>
  123. </div>
  124. <!-- 交换手机号请求拒绝 -->
  125. <div class="message-box-l-con" v-if="item.messageType==12">
  126. {{item.content}}已拒绝
  127. </div>
  128. <!-- 简历请求 -->
  129. <div class="message-box-l-phone" v-if="item.messageType==9 && item.content=='简历请求'">
  130. 我想要你的一份简历,是否同意?
  131. <div class="message-box-l-phone-btn flex align-center">
  132. <el-button plain size="small"
  133. @click.stop="refuseFun(item.chatContentId)">拒绝</el-button>
  134. <el-button type="primary" size="small" @click.stop="resumesTy()">同意</el-button>
  135. </div>
  136. </div>
  137. <!-- 简历请求已同意 -->
  138. <div class="message-box-l-con"
  139. v-if="item.content && item.messageType === 9 && item.content!='简历请求'">
  140. {{item.content}}
  141. </div>
  142. <div style="width: 100%;color: #999999;font-size: 12px;padding-left: 50px;margin-top: 4px;">
  143. {{item.createTime}}
  144. </div>
  145. </div>
  146. <!-- 我发的消息 -->
  147. <div class="message-boxs message-box-r flex flex-wrap" v-else>
  148. <!-- 文字消息 -->
  149. <div class="message-box-r-con" v-if="item.messageType==1 || item.messageType==10">
  150. {{item.content}}
  151. </div>
  152. <div class="message-box-r-con flex align-center" v-if="item.messageType==20">
  153. 视频通话
  154. <img src="/public/images/message/historyVideo_white.png"
  155. style="width: 25px;height: 25px;margin-left: 10px;" mode=""></img>
  156. </div>
  157. <div class="message-box-r-con flex align-center" v-if="item.messageType==21">
  158. 语音通话
  159. <img src="/public/images/message/historyAudio_white.png"
  160. style="width: 25px;height: 25px;margin-left: 10px;" mode=""></img>
  161. </div>
  162. <div class="message-box-r-con flex algin-center" style="cursor: pointer;"
  163. @click="jumpToTencentMap(item.content.latitude,item.content.longitude,item.content.address)"
  164. v-if="item.messageType==18">
  165. {{item.content.address}}
  166. <el-icon style="margin-left: 10px;" :size="20" color="#ffffff">
  167. <MapLocation />
  168. </el-icon>
  169. </div>
  170. <!-- 简历请求 -->
  171. <div class="message-box-r-con" v-if="item.messageType==9">
  172. 简历请求已发送,等待对方同意
  173. </div>
  174. <!-- 图片 -->
  175. <div class="message-box-r-con" style="background-color: #ffffff;"
  176. v-if="item.messageType==2">
  177. <el-image style="width: 100px;height: 100px;border-radius: 4px;" :src="item.content"
  178. fit="cover" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2"
  179. :preview-src-list="[item.content]" :initial-index="4" />
  180. </div>
  181. <!-- 语音消息 -->
  182. <div class="message-box-r-con" v-if="item.messageType==3">
  183. 语音消息,请前往APP或小程序查看
  184. </div>
  185. <!-- 表情消息 -->
  186. <div class="message-box-r-con" style="background-color: #ffffff;"
  187. v-if="item.messageType==4">
  188. <img :src="emjSrc+item.content" alt="" />
  189. </div>
  190. <!-- 交换手机号请求 -->
  191. <div class="message-box-r-con" v-if="item.messageType==5">
  192. 交换手机号请求已发送,等待对方同意
  193. </div>
  194. <div class="message-box-r-con" v-if="item.messageType==7">
  195. <div class="" v-if="item.userType==1">
  196. 我的手机号为:{{JSON.parse(item.content).userPhone}}
  197. </div>
  198. <div v-else>
  199. 我的手机号为:{{JSON.parse(item.content).companyPhone}}
  200. </div>
  201. </div>
  202. <!-- 交换微信号请求 -->
  203. <div class="message-box-r-con" v-if="item.messageType==6">
  204. 交换微信号请求已发送,等待对方同意
  205. </div>
  206. <div class="message-box-r-con" v-if="item.messageType==8">
  207. <div class="" v-if="item.userType==1">
  208. 我的微信号为:{{JSON.parse(item.content).userWx}}
  209. </div>
  210. <div v-else>
  211. 我的微信号为:{{JSON.parse(item.content).userWx}}
  212. </div>
  213. </div>
  214. <!-- 交换手机号请求拒绝 -->
  215. <div class="message-box-r-con" v-if="item.messageType==12">
  216. {{item.content}}已拒绝
  217. </div>
  218. <img class="message-boxs-avatar" :src="avatar?avatar:'/default.jpg'" alt="" />
  219. <div
  220. style="width: 100%;color: #999999;font-size: 12px;padding-right: 50px;margin-top: 4px;text-align: right;">
  221. {{item.createTime}}
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="message-btom flex align-center justify-center">
  227. <div class="messageCon">
  228. <div class="message-btom-content">
  229. <el-input @keyup.enter.prevent="sendMessage(1)" style="margin-top: 10px;" resize="none"
  230. :input-style="inputStyles" v-model="content" :autosize="{ minRows: 4, maxRows: 4 }"
  231. type="textarea" placeholder="请输入内容" />
  232. </div>
  233. <div class="message-btom-btn flex align-center justify-between">
  234. <div class="message-btom-btn-l flex align-center">
  235. <div @click.stop="czlist(index)" @mouseover="changeImageSrc(index)"
  236. @mouseout="resetImageSrc(index)" class="message-btom-btn-l-item flex align-center"
  237. v-for="(item,index) in czList" :key="index">
  238. <div v-if="index == 1" class="flex align-center">
  239. <el-upload class="flex align-center" :action="action" :show-file-list="false"
  240. :on-success="handleAvatarSuccess">
  241. <img :src="czIndex==index?item.srcS:item.src" alt="" srcset="" />
  242. </el-upload>
  243. </div>
  244. <div v-else class="flex align-center">
  245. <img :src="czIndex==index?item.srcS:item.src" alt="" srcset="" />
  246. {{item.name}}
  247. </div>
  248. </div>
  249. <div v-if="isShowEmoj" class="message-btom-btn-l-emj flex align-center justify-center">
  250. <div class="message-btom-btn-l-emj-box">
  251. <img @click="sendMessage(4,item.url)" v-for="(item,index) in emojList"
  252. :key="index" :src="emjSrc+item.url" :alt="item.alt" srcset="" />
  253. </div>
  254. </div>
  255. <div v-if="isShowEmoj" class="message-btom-btn-l-emjs"></div>
  256. <!-- 常用语 -->
  257. <div v-if="isShowCommon"
  258. class="message-btom-btn-l-emj flex align-center justify-center">
  259. <ul class="message-btom-btn-l-emj-box sentence-panel">
  260. <li class="message-text" v-for="item in changYongList" :key="item.id"
  261. @click="selConfirm(item.label)">{{ item.label }}</li>
  262. </ul>
  263. </div>
  264. </div>
  265. <el-button type="primary" @click="sendMessage(1)">发送</el-button>
  266. </div>
  267. </div>
  268. </div>
  269. </div>
  270. <el-dialog v-model="dialogms" title="面试邀请" @close="closeMs" width="30%" :destroy-on-close="true">
  271. <div style="padding: 20px;">
  272. <el-form label-position="right" ref="formms" :model="miamshi" class="">
  273. <el-form-item prop="position"
  274. :rules="[{ required: true, message: '请选择面试岗位', trigger: 'blur', },]" label="面试岗位">
  275. <el-select v-model="miamshi.position" placeholder="请选择面试岗位" filterable clearable>
  276. <el-option v-for="item in jobList" :key="item.id" :label="item.ruleClassifyName"
  277. :value="item.ruleClassifyId" />
  278. </el-select>
  279. </el-form-item>
  280. <el-form-item prop="interviewDateTime"
  281. :rules="[{ required: true, message: '请选择面试时间', trigger: 'blur', },]" label="面试时间">
  282. <el-date-picker style="width: 100%;" v-model="miamshi.interviewDateTime" type="datetime"
  283. placeholder="请选择面试时间" format="YYYY-MM-DD HH:mm" date-format="MMM DD, YYYY"
  284. time-format="HH:mm" />
  285. </el-form-item>
  286. <el-form-item prop="address" :rules="[{ required: true, message: '请选择面试地点', trigger: 'blur', },]"
  287. label="面试地点">
  288. <el-autocomplete style="width: 100%;" v-model="miamshi.address"
  289. :fetch-suggestions="querySearchAsync" placeholder="请输入面试地点" @select="handleSelect" />
  290. </el-form-item>
  291. <el-form-item prop="detailedAddress"
  292. :rules="[{ required: true, message: '请输入详细地址', trigger: 'blur', },]" label="详细地址">
  293. <el-input v-model="miamshi.detailedAddress" placeholder="请输入详细地址" clearable />
  294. </el-form-item>
  295. <el-form-item prop="hrName"
  296. :rules="[{ required: true, message: '请输入联系人名称', trigger: 'blur', },]" label="联系姓名">
  297. <el-input v-model="miamshi.hrName" placeholder="请输入联系人" clearable />
  298. </el-form-item>
  299. <el-form-item prop="hrPhone" :rules="[{ required: true, message: '请输入手机号', trigger: 'blur', },]"
  300. label="手机号码">
  301. <el-input v-model="miamshi.hrPhone" placeholder="请输入手机号" clearable />
  302. </el-form-item>
  303. <el-form-item prop="remarks" :rules="[{ required: true, message: '请输入备注', trigger: 'blur', },]"
  304. label="面试备注">
  305. <el-input v-model="miamshi.remarks" placeholder="请输入备注" clearable />
  306. </el-form-item>
  307. </el-form>
  308. </div>
  309. <template #footer>
  310. <span class="dialog-footer flex align-center justify-end" style="padding-right: 20px;padding-bottom: 20px;">
  311. <el-button @click="dialogms = false">取消</el-button>
  312. <el-button type="primary" @click="submitMs()">
  313. 确认
  314. </el-button>
  315. </span>
  316. </template>
  317. </el-dialog>
  318. </el-dialog>
  319. <!-- 附件列表 -->
  320. <AttachmentSelectDialog @closePostPush="closePostPush" @select="selectItem" v-if="showDialog" :showDialog="showDialog" />
  321. </div>
  322. </template>
  323. <script>
  324. import {
  325. ROOTPATH,
  326. ROOTPATH2,
  327. ROOTPATH3
  328. } from '../../../comment/httpUrl.js'
  329. //引入表情的json
  330. import emoj from './emoj.json'
  331. import {
  332. ElMessageBox,
  333. ElMessage,
  334. } from 'element-plus'
  335. import axios from 'axios';
  336. import jsonp from 'axios-jsonp'
  337. import AttachmentSelectDialog from '../AttachmentSelectDialog/AttachmentSelectDialog.vue'
  338. export default {
  339. components: { AttachmentSelectDialog },
  340. props: {
  341. // 显示弹窗
  342. showMeg: {
  343. type: Boolean,
  344. default: false
  345. },
  346. byUserId: {
  347. type: Number,
  348. default: -1
  349. },
  350. //聊天室id
  351. chatConversationId: {
  352. type: Number,
  353. default: -1
  354. },
  355. //岗位id
  356. postPushId: {
  357. type: Number,
  358. default: -1
  359. },
  360. //简历id
  361. resumesId: {
  362. type: Number,
  363. default: -1
  364. },
  365. //聊天类型:1用户 2企业
  366. userType: {
  367. type: Number,
  368. default: 1
  369. }
  370. },
  371. data() {
  372. return {
  373. showDialog: false,
  374. miamshi: {
  375. hrPhone: '', //手机号
  376. hrName: '', //联系人
  377. position: '', //面试岗位
  378. interviewDateTime: '', //面试时间
  379. companyId: '', //公司id
  380. remarks: '', //面试备注
  381. userId: '', //面试者id
  382. postPushId: '', //岗位id
  383. province: '', //省
  384. city: '', //市
  385. county: '', //区
  386. lng: '', //经度
  387. lat: '', //纬度
  388. address: '', //地址
  389. detailedAddress: '', //详细地址
  390. },
  391. dialogms: false, //面试邀请弹窗
  392. isSendWx: false, //是否交换微信
  393. isSendPhone: false, //是否交换电话
  394. action: ROOTPATH + '/alioss/upload', //上传图片地址
  395. screenHeight: 0, //屏幕高度
  396. emjSrc: ROOTPATH3,
  397. isShowEmoj: false, //是否显示表情弹窗
  398. show: false,
  399. webSco: null,
  400. webSocketState: false, //scoket是否连接状态
  401. userId: '',
  402. page: 1,
  403. limit: 100,
  404. title: '',
  405. postPushInfo: {}, //岗位信息
  406. resumesInfo: {}, //简历信息
  407. megList: [], //聊天消息
  408. content: '', //消息内容
  409. emojList: emoj.emojList, //表情
  410. czIndex: -1,
  411. czList: [{
  412. name: '',
  413. src: '/images/postimg/emij.png',
  414. srcS: '/images/postimg/emij_s.png',
  415. },
  416. {
  417. name: '',
  418. src: '/images/postimg/photo.png',
  419. srcS: '/images/postimg/photo_s.png',
  420. },
  421. {
  422. name: '',
  423. src: '/images/postimg/cyy.png',
  424. srcS: '/images/postimg/cyy_s.png',
  425. },
  426. {
  427. name: '发简历',
  428. src: '/images/postimg/jl.png',
  429. srcS: '/images/postimg/jl_s.png',
  430. },
  431. {
  432. name: '换电话',
  433. src: '/images/postimg/phone.png',
  434. srcS: '/images/postimg/phone_s.png',
  435. },
  436. {
  437. name: '换微信',
  438. src: '/images/postimg/weichat.png',
  439. srcS: '/images/postimg/weichat_s.png',
  440. }
  441. ], //操作图片
  442. jobList: [],
  443. isShowCommon: false, //是否显示常用语
  444. changYongList: []
  445. }
  446. },
  447. computed: {
  448. //获取我的头像
  449. avatar() {
  450. return this.$store.state.avatar;
  451. },
  452. },
  453. mounted() {
  454. this.screenHeight = window.innerHeight
  455. this.userId = localStorage.getItem('userId')
  456. this.show = this.showMeg
  457. if (this.chatConversationId) {
  458. //获取聊天记录
  459. this.getCHarList();
  460. }
  461. if (this.userType == 1) {
  462. this.czList[3].name = '发简历'
  463. //获取岗位信息
  464. this.getPostPushInfo(this.postPushId)
  465. } else {
  466. this.czList[3].name = '求简历'
  467. this.czList.push({
  468. name: '约面试',
  469. src: '/images/postimg/yms.png',
  470. srcS: '/images/postimg/yms_.png',
  471. })
  472. this.getPostPushInfo(this.postPushId)
  473. }
  474. //建立webscoket连接
  475. this.initScoket()
  476. this.getStatusInfo();
  477. setTimeout(() => {
  478. this.getChangYong();
  479. }, 1000);
  480. },
  481. methods: {
  482. getChangYong() {
  483. let state = 0
  484. if (this.userType == 1) {
  485. state = 70
  486. } else {
  487. state = 80
  488. }
  489. this.$Request.get(`/app/message/selectMessageByType?page=1&limit=100&state=${state}`)
  490. .then(res => {
  491. if (res.code == 0) {
  492. this.changYongList = [{ label: '你好啊,可以聊一聊~', id: 0 }];
  493. res.data.list.forEach(d => {
  494. let data = {
  495. label: d.content,
  496. id: d.id
  497. }
  498. this.changYongList.push(data);
  499. });
  500. }
  501. });
  502. },
  503. selConfirm(val) {
  504. this.content = val;
  505. this.isShowCommon = false;
  506. },
  507. closePostPush() {
  508. this.showDialog = false
  509. },
  510. // 选择附件简历的数据
  511. selectItem(item) {
  512. if (item.resumesAttachmentId) {
  513. this.sendResumesSave(item.resumesAttachmentId);
  514. }
  515. },
  516. //关闭面试邀请回掉
  517. closeMs() {
  518. //清楚输入的值
  519. this.miamshi.detailedAddress = '';
  520. this.miamshi.interviewDateTime = '';
  521. this.miamshi.address = '';
  522. this.miamshi.remarks = '';
  523. this.miamshi.userId = '';
  524. this.miamshi.hrPhone = ''; //手机号
  525. this.miamshi.hrName = ''; //联系人
  526. this.miamshi.position = ''; //面试岗位
  527. },
  528. jumpToTencentMap(latitude, longitude, name) {
  529. var url = 'https://apis.map.qq.com/uri/v1/search?keyword=' + name + '&center=' + latitude + ',' +
  530. longitude + '&radius=100&referer=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77';
  531. window.open(url)
  532. },
  533. formatDate(dates, type) {
  534. let date = new Date(dates)
  535. let year = date.getFullYear()
  536. let month = ("0" + (date.getMonth() + 1)).slice(-2)
  537. let day = ("0" + date.getDate()).slice(-2)
  538. let hour = date.getHours()
  539. let minute = ("0" + date.getMinutes()).slice(-2)
  540. // 处理 12小时制
  541. let ampm = hour >= 12 ? 'PM' : 'AM'
  542. hour = hour % 12
  543. hour = hour ? hour : 12 // 0点转成12
  544. hour = ("0" + hour).slice(-2)
  545. if (type == 1) {
  546. // 返回完整日期 + 固定时间
  547. return `${year}-${month}-${day} 00:00:00`
  548. } else {
  549. // 返回 12小时制时间 + AM/PM
  550. return `${hour}:${minute} ${ampm}`
  551. }
  552. },
  553. submitMs() {
  554. let obj = JSON.parse(JSON.stringify(this.miamshi))
  555. let Time = this.formatDate(obj.interviewDateTime, 1);
  556. obj.detailTime = this.formatDate(obj.interviewDateTime, 2);
  557. let formms = this.$refs.formms
  558. formms.validate((valid) => {
  559. if (valid) {
  560. if (!obj.lng || !obj.lat) {
  561. ElMessage({
  562. message: '请选择搜索出来的地址',
  563. type: 'info',
  564. duration: 1500,
  565. offset: this.screenHeight / 2
  566. })
  567. return
  568. }
  569. let dataInfo = {
  570. address: obj.address,
  571. companyId: obj.companyId,
  572. detailTime: obj.detailTime,
  573. detailedAddress: obj.detailedAddress,
  574. hrName: obj.hrName,
  575. hrPhone: obj.hrPhone,
  576. interviewDateTime: Time,
  577. interviewerId: obj.userId,
  578. lat: obj.lat,
  579. lng: obj.lng,
  580. onlineMsg: '',
  581. onlineType: '',
  582. postPushId: obj.postPushId,
  583. recordId: '',//发送的这份面试的id,为空,代表添加,如果有值的话代表修改
  584. remarks: obj.remarks,
  585. resumesId: this.resumesId,
  586. type: 0
  587. }
  588. this.$Request.post("/app/interviewRecord/saveInterview", dataInfo, {
  589. type: 'json'
  590. }).then(res => {
  591. if (res.code == 0) {
  592. ElMessage({
  593. message: '面试邀请已发送',
  594. type: 'success',
  595. duration: 1500,
  596. offset: this.screenHeight / 2
  597. })
  598. this.dialogms = false
  599. }
  600. // else {
  601. // ElMessage({
  602. // message: res.msg,
  603. // type: 'error',
  604. // duration: 1500,
  605. // offset: this.screenHeight / 2
  606. // })
  607. // }
  608. })
  609. }
  610. })
  611. },
  612. //选择地址
  613. handleSelect(item) {
  614. this.miamshi.companyId = localStorage.getItem('companyId')
  615. this.miamshi.userId = this.byUserId
  616. this.miamshi.postPushId = this.postPushId
  617. this.miamshi.province = item.province
  618. this.miamshi.city = item.city
  619. this.miamshi.county = item.district
  620. this.miamshi.lng = item.location.lng
  621. this.miamshi.lat = item.location.lat
  622. },
  623. //地址搜索
  624. querySearchAsync(queryString, cd) {
  625. if (!queryString) {
  626. cd([])
  627. return
  628. }
  629. let data = {
  630. key: "ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75", //申请的密钥
  631. keyword: queryString, //搜索内容
  632. output: 'jsonp',
  633. };
  634. let url =
  635. "https://apis.map.qq.com/ws/place/v1/suggestion"
  636. axios.get(url, {
  637. params: data,
  638. adapter: jsonp
  639. }).then(res => {
  640. if (res.data.status == 0) {
  641. let arr = res.data.data
  642. arr.map(item => {
  643. item.value = item.title
  644. })
  645. cd(arr)
  646. }
  647. }).catch(err => {
  648. console.log(err)
  649. })
  650. },
  651. //获取简历数据
  652. getResumesInfo(id) {
  653. let data = {
  654. userId: localStorage.getItem('userId'),
  655. resumesId: id,
  656. companyId: localStorage.getItem('companyId')
  657. }
  658. this.$Request.get("/app/resumes/selectResumesByResumesId", {
  659. params: data
  660. }).then(res => {
  661. if (res.code == 0) {
  662. res.data.intentionRuleClassifyName = this.postPushInfo.ruleClassifyName
  663. res.data.intentionSalaryRange = this.postPushInfo.salaryRange
  664. // res.data.intentionExprence = []
  665. res.data.intentionList.forEach(item=>{
  666. if (item.ruleClassifyName == this.postPushInfo.ruleClassifyName) {
  667. res.data.intentionRuleClassifyName = item.ruleClassifyName
  668. res.data.intentionSalaryRange = item.salaryRange
  669. // res.data.intentionExprence = item.industry && item.industry.split('/') || []
  670. }
  671. })
  672. this.resumesInfo = res.data
  673. }
  674. })
  675. },
  676. // 同意简历请求并发送简历
  677. sendResumesSave(resumesAttachmentId) {
  678. let that = this
  679. let data = {
  680. to: this.byUserId, //接收人的userId
  681. postPushId: this.postPushId, //岗位id
  682. resumesAttachmentId
  683. }
  684. this.$Request.post("/app/resumes/sendResumes", data).then(res => {
  685. if (res.code == 0) {
  686. ElMessage({
  687. message: '简历已发送',
  688. type: 'success',
  689. duration: 1500,
  690. offset: this.screenHeight / 2
  691. })
  692. this.sendMessage(24)
  693. this.getCHarList()
  694. this.getStatusInfo()
  695. }
  696. })
  697. },
  698. //同意简历请求
  699. resumesTy() {
  700. ElMessageBox.confirm(
  701. '确定发送简历给对方?',
  702. '提示', {
  703. confirmButtonText: '确定',
  704. cancelButtonText: '取消',
  705. type: 'warning',
  706. }
  707. )
  708. .then(() => {
  709. this.showDialog = true;
  710. }).catch(() => {
  711. })
  712. },
  713. //同意交换手机号/微信
  714. tongyi(messageType, chatContentId) {
  715. if (messageType == 6 && !this.$store.state.weChatNum) {
  716. ElMessageBox.confirm(
  717. '请点击右上角头像的个人信息完善微信号后操作',
  718. '提示', {
  719. confirmButtonText: '去完善',
  720. cancelButtonText: '取消',
  721. type: 'warning',
  722. }
  723. )
  724. .then(() => {
  725. }).catch(() => {
  726. })
  727. return
  728. }
  729. let that = this
  730. ElMessageBox.confirm(
  731. messageType == 5 ? '同意后将交换手机号,是否同意?' : '同意后将交换微信号,是否同意?',
  732. '提示', {
  733. confirmButtonText: '同意',
  734. cancelButtonText: '取消',
  735. type: 'warning',
  736. }
  737. )
  738. .then(() => {
  739. let data = {
  740. messageType: messageType,
  741. chatContentId: chatContentId
  742. }
  743. that.$Request.post("/app/chat/sendPhoneOrWx", data).then(res => {
  744. if (res.code == 0) {
  745. this.sendMessage(24)
  746. this.getCHarList()
  747. that.getStatusInfo()
  748. }
  749. })
  750. }).catch(() => {
  751. })
  752. },
  753. //请求拒绝
  754. refuseFun(id) {
  755. ElMessageBox.confirm(
  756. '确定拒绝吗?',
  757. '提示', {
  758. confirmButtonText: '确认',
  759. cancelButtonText: '取消',
  760. type: 'warning',
  761. }
  762. )
  763. .then(() => {
  764. let data = {
  765. chatContentId: id
  766. }
  767. this.$Request.get("/app/chat/refuseReqs", {
  768. params: data
  769. }).then(res => {
  770. if (res.code == 0) {
  771. ElMessage({
  772. message: '已拒绝',
  773. type: 'success',
  774. duration: 1500,
  775. offset: this.screenHeight / 2
  776. })
  777. this.sendMessage(24)
  778. this.getCHarList()
  779. this.getStatusInfo()
  780. } else {
  781. ElMessage({
  782. message: res.msg,
  783. type: 'error',
  784. duration: 1500,
  785. offset: this.screenHeight / 2
  786. })
  787. }
  788. })
  789. }).catch(() => {
  790. })
  791. },
  792. //发送图片
  793. handleAvatarSuccess(res) {
  794. let data = {
  795. userId: this.byUserId, //id
  796. content: res.data, //消息内容
  797. messageType: 2, //消息类型
  798. chatConversationId: this.chatConversationId //聊天室id
  799. }
  800. //把要发送的消息转换为json字符串
  801. data = JSON.stringify(data);
  802. //如果scoket是连接状态,那么就直接发送消息
  803. if (this.webSocketState) {
  804. // 发送消息
  805. this.webSco.send(data)
  806. setTimeout(() => {
  807. //发送消息后晴空输入框
  808. this.content = ''
  809. //获取聊天记录
  810. this.getCHarList()
  811. }, 50)
  812. } else { //如果不是,那么就重新连接
  813. this.initScoket()
  814. }
  815. },
  816. // 发送消息 type:1:文字 2:图片 3:语音 4:表情
  817. sendMessage(type, url) {
  818. let data = {
  819. userId: this.byUserId, //id
  820. content: this.content.replace(/\n/g, ''), //消息内容
  821. messageType: type, //消息类型
  822. chatConversationId: this.chatConversationId //聊天室id
  823. }
  824. if (type == 1 && !data.content) { //文字
  825. ElMessage({
  826. message: '请输入聊天内容',
  827. type: 'error',
  828. duration: 1500,
  829. offset: this.screenHeight / 2
  830. })
  831. this.content = ''
  832. return
  833. }
  834. if (type == 4) { //发送表情
  835. data.content = url
  836. }
  837. if (type == 5) { //交换手机号请求
  838. data.content = '手机号请求';
  839. }
  840. if (type == 6) { //交换微信号请求
  841. data.content = '微信号请求';
  842. }
  843. if (type == 9) { //简历请求
  844. data.content = '简历请求';
  845. }
  846. if (type == 24) { //刷新
  847. data.content = '刷新';
  848. }
  849. //把要发送的消息转换为json字符串
  850. data = JSON.stringify(data);
  851. //如果scoket是连接状态,那么就直接发送消息
  852. if (this.webSocketState) {
  853. // 发送消息
  854. this.webSco.send(data)
  855. setTimeout(() => {
  856. //发送消息后晴空输入框
  857. this.content = ''
  858. //获取聊天记录
  859. this.getCHarList()
  860. }, 50)
  861. } else { //如果不是,那么就重新连接
  862. this.initScoket()
  863. }
  864. },
  865. //发简历
  866. sendResumes() {
  867. let that = this
  868. ElMessageBox.confirm(
  869. '是否将简历发送给对方?',
  870. '提示', {
  871. confirmButtonText: '发送',
  872. cancelButtonText: '取消',
  873. type: 'warning',
  874. }
  875. )
  876. .then(() => {
  877. this.showDialog = true;
  878. }).catch(() => {
  879. })
  880. },
  881. //交换手机号弹窗
  882. currentPhone() {
  883. let that = this
  884. if (this.isSendPhone == false) {
  885. ElMessageBox.confirm(
  886. '确定后,电话交换请求将发送给对方,对方同意后将会看到彼此的手机号',
  887. '确定与对方交换电话吗?', {
  888. confirmButtonText: '确定',
  889. cancelButtonText: '取消',
  890. type: 'warning',
  891. }
  892. )
  893. .then(() => {
  894. that.sendMessage(5)
  895. }).catch(() => {
  896. })
  897. } else {
  898. ElMessage({
  899. message: '已交换过手机号,请查看聊天记录',
  900. type: 'error',
  901. duration: 1500,
  902. offset: this.screenHeight / 2
  903. })
  904. }
  905. },
  906. //交换微信号弹窗
  907. currentWchat() {
  908. let that = this
  909. if (!this.$store.state.weChatNum) {
  910. ElMessageBox.confirm(
  911. '请点击右上角头像的个人信息完善微信号后操作',
  912. '提示', {
  913. confirmButtonText: '去完善',
  914. cancelButtonText: '取消',
  915. type: 'warning',
  916. }
  917. )
  918. .then(() => {
  919. }).catch(() => {
  920. })
  921. return
  922. }
  923. if (this.isSendWx == false) {
  924. ElMessageBox.confirm(
  925. '确定后,微信交换请求将发送给对方,对方同意后将会看到彼此的微信号',
  926. '确定与对方交换微信吗?', {
  927. confirmButtonText: '确定',
  928. cancelButtonText: '取消',
  929. type: 'warning',
  930. }
  931. )
  932. .then(() => {
  933. that.sendMessage(6)
  934. }).catch(() => {
  935. })
  936. } else {
  937. ElMessage({
  938. message: '已交换过微信号,请查看聊天记录',
  939. type: 'error',
  940. duration: 1500,
  941. offset: this.screenHeight / 2
  942. })
  943. }
  944. },
  945. //求简历
  946. giveSendResumes() {
  947. ElMessageBox.confirm(
  948. '是否将简历请求发送给对方?',
  949. '确定获取对方简历吗?', {
  950. confirmButtonText: '确定',
  951. cancelButtonText: '取消',
  952. type: 'warning',
  953. }
  954. )
  955. .then(() => {
  956. this.sendMessage(9)
  957. }).catch(() => {
  958. })
  959. },
  960. //操作
  961. czlist(index) {
  962. switch (index) {
  963. case 0: //显示表情
  964. this.isShowEmoj = true
  965. break;
  966. case 2: //显示常用语
  967. this.isShowCommon = true
  968. break;
  969. case 3:
  970. if (this.userType == 1) { //发简历
  971. this.sendResumes()
  972. } else { //求简历
  973. this.giveSendResumes()
  974. }
  975. break;
  976. case 4: //换电话
  977. this.currentPhone()
  978. break;
  979. case 5: //换微信
  980. this.currentWchat()
  981. break;
  982. case 6: //约面试
  983. this.openDialog();
  984. break;
  985. default:
  986. break;
  987. }
  988. },
  989. // 赋值地址和联系人数据
  990. openDialog() {
  991. const addressInfo = localStorage.getItem('companyAddressInfo')
  992. ? JSON.parse(localStorage.getItem('companyAddressInfo'))
  993. : {};
  994. this.miamshi = {
  995. hrPhone: this.$store.state.phone || '',
  996. hrName: this.$store.state.nickName || '',
  997. position: '',
  998. interviewDateTime: '',
  999. companyId: localStorage.getItem('companyId') || '',
  1000. remarks: '',
  1001. userId: this.byUserId || '',
  1002. postPushId: this.postPushId || '',
  1003. province: addressInfo.province || '',
  1004. city: addressInfo.city || '',
  1005. county: addressInfo.county || '',
  1006. lng: addressInfo.lng || '',
  1007. lat: addressInfo.lat || '',
  1008. address: addressInfo.address || '',
  1009. detailedAddress: addressInfo.detailedAddress || '',
  1010. }
  1011. this.dialogms = true;
  1012. },
  1013. //获取交换状态
  1014. getStatusInfo() {
  1015. let data = {
  1016. chatConversationId: this.chatConversationId
  1017. }
  1018. this.$Request.get("/app/chat/getConversationInfo", {
  1019. params: data
  1020. }).then(res => {
  1021. if (res.code == 0) {
  1022. if (res.data.isSendWx) { //是否交换微信
  1023. this.isSendWx = true
  1024. } else {
  1025. this.isSendWx = false
  1026. }
  1027. if (res.data.isSendPhone) { //是否交换电话
  1028. this.isSendPhone = true
  1029. } else {
  1030. this.isSendPhone = false
  1031. }
  1032. }
  1033. })
  1034. },
  1035. //关闭弹窗
  1036. closeDialog() {
  1037. this.isShowEmoj = false
  1038. this.isShowCommon = false
  1039. },
  1040. //还原图片
  1041. resetImageSrc(index) {
  1042. this.czIndex = -1
  1043. },
  1044. //显示图片
  1045. changeImageSrc(index) {
  1046. this.czIndex = index
  1047. },
  1048. //获取岗位数据
  1049. getPostPushInfo(id) {
  1050. let data = {
  1051. userId: this.userId,
  1052. postPushId: id
  1053. }
  1054. this.$Request.get("/app/postPush/selectPostPushDetails", {
  1055. params: data
  1056. }).then(res => {
  1057. if (res.code == 0) {
  1058. // 选择的岗位列表
  1059. this.jobList = [{
  1060. ...res.data
  1061. }];
  1062. this.title = res.data.company.companyName
  1063. this.postPushInfo = res.data
  1064. // this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare && this.postPushInfo.positionWelfare.split(',') || []
  1065. if(this.userType != 1){
  1066. //获取简历信息
  1067. this.getResumesInfo(this.resumesId)
  1068. }
  1069. }
  1070. })
  1071. },
  1072. //获取聊天记录
  1073. getCHarList() {
  1074. let data = {
  1075. page: this.page,
  1076. limit: this.limit,
  1077. chatConversationId: this.chatConversationId,
  1078. userId: this.userId
  1079. }
  1080. this.$Request.get('/app/chat/selectChatContent', {
  1081. params: data
  1082. }).then(res => {
  1083. if (res.code == 0) {
  1084. res.data.list.map(item => {
  1085. if (item.messageType == 18) {
  1086. item.content = JSON.parse(item.content)
  1087. }
  1088. })
  1089. this.megList = res.data.list
  1090. this.megList.reverse();
  1091. //等数据更新后滚动到最底下
  1092. this.$nextTick(() => {
  1093. this.$refs.messageBox.scrollTop = this.$refs.messageBox.scrollHeight
  1094. })
  1095. }
  1096. })
  1097. },
  1098. //初始化并链接webscoket
  1099. initScoket() {
  1100. this.webSco = this.$socket.getSocket();
  1101. // 如果 WebSocket 已经连接,直接把状态标记为 true
  1102. if (this.webSco.readyState === WebSocket.OPEN) {
  1103. this.webSocketState = true
  1104. // console.log('✅ WebSocket 已经连接,状态直接标记为 true')
  1105. } else {
  1106. // 还未连接,绑定 onopen
  1107. this.webSco.onopen = this.websocketonopen.bind(this)
  1108. }
  1109. // 绑定其他回调
  1110. this.webSco.onmessage = this.websocketonmessage.bind(this)
  1111. this.webSco.onerror = this.websocketonerror.bind(this)
  1112. this.webSco.onclose = this.websocketclose.bind(this)
  1113. },
  1114. //监听接收到消息的回调
  1115. websocketonmessage(event) {
  1116. this.webSocketState = true
  1117. // console.log(event, '收到消息')
  1118. //收到消息后再获取聊天记录
  1119. this.getCHarList()
  1120. },
  1121. //监听错误的回调
  1122. websocketonerror(event) {
  1123. //连接错误后把连接状态设为false
  1124. this.webSocketState = false
  1125. // console.log(event, '连接错误')
  1126. },
  1127. //监听链接打开的回调
  1128. websocketonopen(event) {
  1129. this.webSocketState = true
  1130. // console.log(event, '连接已打开')
  1131. },
  1132. //监听关闭的回调
  1133. websocketclose(event) {
  1134. // 关闭连接后把状态设为false
  1135. this.webSocketState = false
  1136. // console.log(event, '连接已关闭')
  1137. },
  1138. //关闭弹窗的回调
  1139. closeShow() {
  1140. if (this.webSco) {
  1141. this.webSco.close()
  1142. }
  1143. //给父组件传递值关闭该组件
  1144. this.show = false
  1145. this.$emit('closeMeg', this.show)
  1146. },
  1147. }
  1148. }
  1149. </script>
  1150. <style lang="scss" scoped>
  1151. :deep(.el-dialog) {
  1152. border-radius: 14px !important;
  1153. }
  1154. :deep(.el-dialog__body) {
  1155. padding: 0 !important;
  1156. padding-top: 10px !important;
  1157. }
  1158. :deep(.el-dialog__header) {
  1159. background: linear-gradient(45deg, #f2fffa, #FFFFFF);
  1160. border-radius: 14px 14px 0 0;
  1161. }
  1162. .messageCom {
  1163. .el-textarea {
  1164. --el-input-focus-border: none;
  1165. --el-input-focus-border-color: none;
  1166. }
  1167. .el-textarea__inner {
  1168. box-shadow: none;
  1169. }
  1170. .el-textarea__inner:hover {
  1171. box-shadow: none;
  1172. .is-focus {
  1173. box-shadow: none;
  1174. }
  1175. }
  1176. }
  1177. .my-header-name {
  1178. font-weight: bold;
  1179. font-size: 14px;
  1180. }
  1181. .my-header-price {
  1182. margin: 0 10px;
  1183. color: red;
  1184. font-size: 14px;
  1185. font-weight: bold;
  1186. }
  1187. .my-header-yq {
  1188. color: #999999;
  1189. font-size: 14px;
  1190. // font-weight: bold;
  1191. }
  1192. .message {
  1193. width: 100%;
  1194. height: 600px;
  1195. .message-box {
  1196. width: calc(100% - 40px);
  1197. height: 70%;
  1198. overflow: hidden;
  1199. overflow-y: scroll;
  1200. padding: 0 20px;
  1201. }
  1202. .message-box::-webkit-scrollbar {
  1203. /* Chrome, Safari, Opera */
  1204. width: 0px;
  1205. }
  1206. .message-box::-webkit-scrollbar-thumb {
  1207. background-color: #ffffff;
  1208. /* 滚动条颜色 */
  1209. }
  1210. .message-box::-webkit-scrollbar-track {
  1211. background-color: #ffffff;
  1212. /* 轨道颜色 */
  1213. }
  1214. .message-box-item {
  1215. width: 100%;
  1216. margin-bottom: 20px;
  1217. }
  1218. .message-boxs {
  1219. width: 100%;
  1220. .message-boxs-avatar {
  1221. width: 40px;
  1222. height: 40px;
  1223. border-radius: 50%;
  1224. }
  1225. }
  1226. .message-box-l {
  1227. img {
  1228. margin-right: 10px;
  1229. }
  1230. .message-box-l-con {
  1231. max-width: 40%;
  1232. padding: 10px;
  1233. border-radius: 13px 13px 13px 0;
  1234. background-color: #F8F8F8;
  1235. color: #333333;
  1236. }
  1237. .message-box-l-phone {
  1238. background: linear-gradient(to bottom, #D9FEED, #ffffff);
  1239. // background-color: red;
  1240. padding: 10px;
  1241. border-radius: 13px 13px 13px 0;
  1242. }
  1243. .message-box-l-phone-btn {
  1244. justify-content: flex-end;
  1245. margin-top: 10px;
  1246. }
  1247. }
  1248. .message-box-r {
  1249. justify-content: flex-end;
  1250. img {
  1251. margin-left: 10px;
  1252. }
  1253. .message-box-r-con {
  1254. max-width: 40%;
  1255. padding: 10px;
  1256. border-radius: 13px 13px 0 13px;
  1257. background-color: #00DD9A;
  1258. color: #FFFFFF;
  1259. }
  1260. }
  1261. .message-btom {
  1262. width: 100%;
  1263. height: 30%;
  1264. border-top: 1px solid #E6E6E6;
  1265. .messageCon {
  1266. width: calc(100% - 40px);
  1267. height: calc(100% - 40px);
  1268. }
  1269. .message-btom-content {
  1270. width: 100%;
  1271. height: 70%;
  1272. }
  1273. .message-btom-btn {
  1274. width: 100%;
  1275. height: 30%;
  1276. }
  1277. .message-btom-btn-l {
  1278. position: relative;
  1279. .message-btom-btn-l-emj {
  1280. width: 490px;
  1281. height: 300px;
  1282. background-color: #ffffff;
  1283. border-radius: 10px 10px 10px 0;
  1284. position: absolute;
  1285. bottom: 30px;
  1286. border: 1px solid #f2f5fa;
  1287. box-shadow: 0 0 14px rgba(0, 0, 0, .11);
  1288. }
  1289. .message-btom-btn-l-emj-box {
  1290. width: calc(100% - 40px);
  1291. height: calc(100% - 40px);
  1292. overflow: hidden;
  1293. overflow-y: scroll;
  1294. img {
  1295. width: 30px;
  1296. height: 30px;
  1297. padding: 5px;
  1298. cursor: pointer;
  1299. }
  1300. }
  1301. .message-btom-btn-l-emj-box::-webkit-scrollbar {
  1302. /* Chrome, Safari, Opera */
  1303. width: 0px;
  1304. }
  1305. .message-btom-btn-l-emj-box::-webkit-scrollbar-thumb {
  1306. background-color: #ffffff;
  1307. /* 滚动条颜色 */
  1308. }
  1309. .message-btom-btn-l-emj-box::-webkit-scrollbar-track {
  1310. background-color: #ffffff;
  1311. /* 轨道颜色 */
  1312. }
  1313. .message-btom-btn-l-emjs {
  1314. position: absolute;
  1315. bottom: 22px;
  1316. width: 0;
  1317. height: 0;
  1318. border-left: 10px solid transparent;
  1319. /* 根据需要设置边框宽度 */
  1320. border-right: 10px solid transparent;
  1321. /* 根据需要设置边框宽度 */
  1322. border-top: 10px solid #ffffff;
  1323. /* 根据需要设置边框颜色 */
  1324. }
  1325. .message-btom-btn-l-item {
  1326. margin-right: 15px;
  1327. cursor: pointer;
  1328. color: #666666;
  1329. font-size: 14px;
  1330. img {
  1331. width: 20px;
  1332. height: 20px;
  1333. margin-right: 2px;
  1334. }
  1335. }
  1336. .message-btom-btn-l-item:hover {
  1337. color: #00DD9A;
  1338. }
  1339. .message-btom-btn-l-item:nth-of-type(1):hover {
  1340. img {
  1341. src: '/images/postimg/emij_s.png'
  1342. }
  1343. }
  1344. }
  1345. }
  1346. }
  1347. .sentence-panel {
  1348. margin: 0 !important;
  1349. padding: 0 !important;
  1350. }
  1351. .message-text {
  1352. height: 34px;
  1353. line-height: 34px;
  1354. border-radius: 4px;
  1355. z-index: 1;
  1356. overflow: hidden;
  1357. cursor: pointer;
  1358. white-space: nowrap;
  1359. text-overflow: ellipsis;
  1360. padding: 0 12px 0 24px;
  1361. font-size: 13px;
  1362. font-weight: 400;
  1363. color: #333;
  1364. border: none;
  1365. position: relative;
  1366. }
  1367. .message-text:hover {
  1368. background-color: #f8f8f8;
  1369. }
  1370. .message-text:before {
  1371. content: "";
  1372. position: absolute;
  1373. top: 14px;
  1374. left: 10px;
  1375. width: 6px;
  1376. height: 6px;
  1377. border-radius: 50%;
  1378. background: #d9d9d9;
  1379. }
  1380. </style>