im.vue 98 KB

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