im.vue 96 KB

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