chat.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <template>
  2. <view class="chat-pages">
  3. <u-navbar :border="false" >
  4. <view class="chat-navbar u-flex-col u-col-center" slot="center">
  5. <text>陈女士</text>
  6. <text>内核网·项目经理</text>
  7. </view>
  8. </u-navbar>
  9. <view class="chat-header" v-if="0" :style="{top:(statusheight + 58) + 'px'}">
  10. <view class="header-top u-flex u-row-between">
  11. <view class="header-left">
  12. <view class="u-flex">
  13. <text class="text1">喻伯艺</text>
  14. <text class="text2">急于求职</text>
  15. </view>
  16. <view class="text3">
  17. 杭州迅阳科技有限公司·高级UI设计师
  18. </view>
  19. </view>
  20. <view class="header-right">
  21. <image src="https://dummyimage.com/100x100" class="right-img" mode=""></image>
  22. <image src="../static/images/nan.png" class="sex" mode=""></image>
  23. <image src="../static/images/nv.png" class="sex" mode=""></image>
  24. </view>
  25. </view>
  26. <view class="jingli-box u-flex u-row-between">
  27. <image src="../static/images/dizhi.png" class="img" mode=""></image>
  28. <text class="text1">北京字节跳动科技…·交互设计师</text>
  29. <text class="text2">2019.09-2023.03</text>
  30. </view>
  31. <view class="jingli-box u-flex u-row-between">
  32. <image src="../static/images/zhiye.png" class="img" mode=""></image>
  33. <text class="text1">中国美术学院·视觉设计</text>
  34. <text class="text2">2019.09-2023.03</text>
  35. </view>
  36. <view class="chat-label u-flex u-flex-wrap">
  37. <text v-for="(a,b) in 3" :key="b">用户研究</text>
  38. </view>
  39. <view class="goutong-time">
  40. 04月6日 12:34 发起沟通
  41. </view>
  42. </view>
  43. <view class="chat-header1" v-else :style="{top:(statusheight + 58) + 'px'}">
  44. <view class="header1-top u-flex u-row-between">
  45. <text>UX/UE交互设计师</text>
  46. <text>20-25K·13薪</text>
  47. </view>
  48. <view class="jingli1-box">
  49. 江苏满运软件科… 移动互联网
  50. </view>
  51. <view class="chat-label1 u-flex u-flex-wrap">
  52. <text v-for="(a,b) in 3" :key="b">用户研究</text>
  53. </view>
  54. <view class="zhiwei-title">
  55. 岗位职责:
  56. </view>
  57. <view class="zhiwei-text">
  58. 1、负责公司APP、小程序等端的界面视觉设计以及部分营销活动的设计工作;
  59. 2、关注产品数据和客户反馈,洞察其中的用户体验改进机会,并通过设计项目持续改进提升,提升产品易用性;
  60. 3、参与视觉设计体验标准、规范制定,总结设计方法…
  61. </view>
  62. <view class="goutong-time1">
  63. 04月6日 12:34 发起沟通
  64. </view>
  65. </view>
  66. <view class="" style="height: 200rpx;"></view>
  67. <view class="chat-item" v-for="(item,index) in 10" :key="index">
  68. <view class="chat-time">
  69. 04月6日 12:34
  70. </view>
  71. <view class="chat-item-box u-flex u-col-top u-row-between">
  72. <image :style="{opacity: index % 2 == 0 ? 1 : 0}" src="https://dummyimage.com/92x92" class="user-img" mode=""></image>
  73. <view class="u-flex-1">
  74. <view class="chat-text" :style="{background:index % 2 == 1 ? '#D3E5FB' : '#fff'}">
  75. 你好,我们正在寻找优秀的人才,这位候选人比较符合,有兴趣聊聊吗?
  76. </view>
  77. </view>
  78. <image :style="{opacity: index % 2 == 0 ? 0 : 1}" src="https://dummyimage.com/92x92" class="user-img" mode=""></image>
  79. </view>
  80. </view>
  81. <zhao-chat></zhao-chat>
  82. </view>
  83. </template>
  84. <script>
  85. export default {
  86. data() {
  87. return {
  88. statusheight: 0
  89. }
  90. },
  91. onLoad() {
  92. this.statusheight = uni.getSystemInfoSync().statusBarHeight
  93. },
  94. methods: {
  95. }
  96. }
  97. </script>
  98. <style lang="scss">
  99. .chat-pages {
  100. .chat-header1 {
  101. width: 702rpx;
  102. background: #FFFFFF;
  103. border-radius: 16rpx;
  104. position: sticky;
  105. left: 24rpx;
  106. z-index: 20;
  107. margin: 10px auto;
  108. padding: 0 20rpx;
  109. .goutong-time1 {
  110. line-height: 80rpx;
  111. font-size: 24rpx;
  112. font-family: SFPro-Regular, SFPro;
  113. font-weight: 400;
  114. color: #777777;
  115. border-top: 2rpx solid #F0F0F0;
  116. }
  117. .zhiwei-text{
  118. font-size: 26rpx;
  119. font-family: PingFangSC-Regular, PingFang SC;
  120. font-weight: 400;
  121. color: #555555;
  122. padding-bottom: 20rpx;
  123. border-bottom: 2rpx solid #F0F0F0;
  124. }
  125. .zhiwei-title{
  126. font-size: 26rpx;
  127. font-family: PingFangSC-Regular, PingFang SC;
  128. font-weight: 400;
  129. color: #555555;
  130. margin-bottom: 20rpx;
  131. }
  132. .chat-label1 {
  133. padding: 8rpx 0 10rpx 0;
  134. text {
  135. margin-right: 10rpx;
  136. margin-bottom: 10rpx;
  137. line-height: 40rpx;
  138. background: #F3F3F3;
  139. border-radius: 4rpx;
  140. padding: 0 12rpx;
  141. font-size: 24rpx;
  142. font-family: PingFangSC-Regular, PingFang SC;
  143. font-weight: 400;
  144. color: #555555;
  145. }
  146. }
  147. .jingli1-box{
  148. font-size: 24rpx;
  149. font-family: PingFangSC-Regular, PingFang SC;
  150. font-weight: 400;
  151. color: #555555;
  152. margin-bottom: 20rpx;
  153. }
  154. .header1-top{
  155. padding: 24rpx 0 20rpx 0;
  156. text:frist-child{
  157. font-size: 32rpx;
  158. font-family: PingFangSC-Medium, PingFang SC;
  159. font-weight: 500;
  160. color: #222222;
  161. }
  162. text:last-child{
  163. font-size: 32rpx;
  164. font-family: DINAlternate-Bold, DINAlternate;
  165. font-weight: bold;
  166. color: #0C66C2;
  167. }
  168. }
  169. }
  170. .chat-item {
  171. padding: 0 24rpx;
  172. margin-bottom: 20rpx;
  173. .chat-item-box {
  174. .chat-text {
  175. border-radius: 20rpx;
  176. background-color: #fff;
  177. max-width: 100%;
  178. margin: 0 20rpx;
  179. font-size: 30rpx;
  180. font-family: PingFangSC-Regular, PingFang SC;
  181. font-weight: 400;
  182. color: #141414;
  183. padding: 20rpx 24rpx;
  184. }
  185. .user-img {
  186. width: 92rpx;
  187. height: 92rpx;
  188. border-radius: 100rpx;
  189. }
  190. }
  191. .chat-time {
  192. text-align: center;
  193. margin-bottom: 30rpx;
  194. font-size: 24rpx;
  195. font-family: PingFangSC-Regular, PingFang SC;
  196. font-weight: 400;
  197. color: #777777;
  198. }
  199. }
  200. .chat-header {
  201. width: 702rpx;
  202. background: #FFFFFF;
  203. border-radius: 16rpx;
  204. position: sticky;
  205. left: 24rpx;
  206. z-index: 20;
  207. margin: 10px auto;
  208. padding: 0 20rpx;
  209. .goutong-time {
  210. line-height: 80rpx;
  211. font-size: 24rpx;
  212. font-family: SFPro-Regular, SFPro;
  213. font-weight: 400;
  214. color: #777777;
  215. border-top: 2rpx solid #F0F0F0;
  216. }
  217. .chat-label {
  218. padding: 8rpx 0 10rpx 0;
  219. text {
  220. margin-right: 10rpx;
  221. margin-bottom: 10rpx;
  222. line-height: 40rpx;
  223. background: #F3F3F3;
  224. border-radius: 4rpx;
  225. padding: 0 12rpx;
  226. font-size: 24rpx;
  227. font-family: PingFangSC-Regular, PingFang SC;
  228. font-weight: 400;
  229. color: #555555;
  230. }
  231. }
  232. .jingli-box {
  233. margin-bottom: 12rpx;
  234. .img {
  235. width: 28rpx;
  236. height: 28rpx;
  237. }
  238. .text1 {
  239. font-size: 28rpx;
  240. font-family: PingFangSC-Regular, PingFang SC;
  241. font-weight: 400;
  242. color: #222222;
  243. margin: 0 12rpx;
  244. flex: 1;
  245. }
  246. .text2 {
  247. font-size: 22rpx;
  248. font-family: SFPro-Regular, SFPro;
  249. font-weight: 400;
  250. color: #888888;
  251. }
  252. }
  253. .header-top {
  254. height: 150rpx;
  255. .header-right {
  256. width: 96rpx;
  257. height: 96rpx;
  258. position: relative;
  259. .sex {
  260. position: absolute;
  261. bottom: 0;
  262. right: 4rpx;
  263. width: 20rpx;
  264. height: 20rpx;
  265. }
  266. .right-img {
  267. width: 96rpx;
  268. height: 96rpx;
  269. border-radius: 100rpx;
  270. }
  271. }
  272. .header-left {
  273. .text3 {
  274. font-size: 26rpx;
  275. font-family: SFPro-Regular, SFPro;
  276. font-weight: 400;
  277. color: #666666;
  278. margin-top: 10rpx;
  279. }
  280. .text1 {
  281. font-size: 36rpx;
  282. font-family: PingFangSC-Medium, PingFang SC;
  283. font-weight: 500;
  284. color: #222222;
  285. margin-right: 28rpx;
  286. }
  287. .text2 {
  288. font-size: 26rpx;
  289. font-family: PingFangSC-Regular, PingFang SC;
  290. font-weight: 400;
  291. color: #222222;
  292. }
  293. }
  294. }
  295. }
  296. .chat-navbar {
  297. flex: 1;
  298. // padding-left: 100rpx;
  299. text:first-child {
  300. font-size: 36rpx;
  301. font-family: PingFangSC-Medium, PingFang SC;
  302. font-weight: 500;
  303. color: #141414;
  304. }
  305. text:last-child {
  306. font-size: 22rpx;
  307. font-family: PingFangSC-Regular, PingFang SC;
  308. font-weight: 400;
  309. color: #777777;
  310. }
  311. }
  312. }
  313. page {
  314. background-color: #F3F3F3;
  315. }
  316. </style>