im.vue 100 KB

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