im.vue 99 KB

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