chat.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. <template>
  2. <view>
  3. <view style="width: 100%;padding-bottom: 140rpx;">
  4. <view style="display: flex;flex-direction: column;" v-for="(item,index) in ListItem" :key='index' >
  5. <view style="margin-top: 15rpx;width: 100%;text-align: center;font-size: 26rpx;color: #999999;">
  6. {{item.createTime}}</view>
  7. <view v-if="item.sendType === 2" style="width: 83%;margin-right: 15%;">
  8. <view class="chat-listitem" style="float: left;margin-left: 10rpx;">
  9. <view>
  10. <image src="../../static/images/img/kefu.png" class="chat-listitem-image"></image>
  11. </view>
  12. <view v-if="item.content && item.type === 1" class="chat-listitem-text"
  13. style="margin-left: 20rpx;">{{item.content}}</view>
  14. <image @tap="viewImg(item.content)" v-if="item.content && item.type === 2" :src="item.content"
  15. style="height: 200rpx;width: 200rpx;margin-left: 20rpx;"></image>
  16. </view>
  17. </view>
  18. <view v-if="item.sendType === 1" style="width: 83%;margin-left: 15%;">
  19. <view class="chat-listitem" style="float: right;">
  20. <view v-if="item.content && item.type === 1" @longpress="copy(item.content)"
  21. class="chat-listitem-text" style="margin-right: 20rpx;">{{item.content}}</view>
  22. <view v-if="item.content && item.type === 4" @click="goShop(item.content[3])"
  23. style="width: 400rpx;background: #FFFFFF;height: max-content;margin-right: 20rpx;margin-top: 10rpx;border-radius: 20rpx;">
  24. <image :src="item.content[0]" class="chat-listitem-image-type4"
  25. style="width: 400rpx;height: 350rpx;"></image>
  26. <view style="padding: 10rpx;padding-bottom: 20rpx;">
  27. <view style="color: #ed5732;font-size: 34rpx;"><text style="font-size: 22rpx;">¥ </text>
  28. {{item.content[2]}}</view>
  29. <view
  30. style="overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;width: 100%;height: 75upx;">
  31. {{item.content[1]}}</view>
  32. </view>
  33. </view>
  34. <view v-if="item.content && item.type === 3"
  35. style="width: 500rpx;background: #FFFFFF;height: max-content;margin-right: 20rpx;margin-top: 10rpx;border-radius: 20rpx;padding: 15rpx 10rpx;">
  36. <view style="color: #000000;font-weight: 600;margin-left: 10rpx;">你正在咨询的订单</view>
  37. <view style="display: flex;">
  38. <image :src="item.content[0]" class="chat-listitem-image-type4"
  39. style="margin-left: 7rpx;margin-top: 20rpx;width: 110rpx;height: 110rpx;"></image>
  40. <view
  41. style="margin-top: 15rpx;padding: 10rpx 0rpx 5rpx 10rpx;width: 75%;background: #f5f5f5;margin-left: 10rpx;">
  42. <view
  43. style="font-size: 28rpx;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;height: 75upx;width: 100%;">
  44. {{item.content[1]}}</view>
  45. <view style="color: #ed5732;font-size: 28rpx;"><text style="font-size: 22rpx;">¥
  46. </text>{{item.content[5]}}
  47. </view>
  48. </view>
  49. </view>
  50. <view style="color: #999999;margin-top: 10rpx;margin-left: 12rpx;">
  51. <view>订单编号:{{item.content[3]}}</view>
  52. <view style="margin-top: 10rpx;">创建时间:{{item.content[4]}}</view>
  53. </view>
  54. <view
  55. style="float: right;margin-right: 10rpx;margin-top: 15rpx;background: #F9221D;color: #FFFFFF;border-radius: 50rpx;width: 150rpx;height: 50rpx;font-size: 24rpx;text-align: center;line-height: 50rpx;"
  56. @click="goDingdanDetail(item.content[2])">查看</view>
  57. </view>
  58. <image @tap="viewImg(item.content)" v-if="item.content && item.type === 2" :src="item.content"
  59. style="height: 200rpx;width: 200rpx;margin-right: 20rpx;"></image>
  60. <view>
  61. <image v-if="item.chat.userHead" :src="item.chat.userHead" class="chat-listitem-image">
  62. </image>
  63. <image v-else src="../../static/logo.png" class="chat-listitem-image"></image>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- <view v-if="item.sendType === 4" style="width: 83%;margin-left: 15%;">
  68. <view class="chat-listitem" style="float: right;">
  69. <view style="height: max-content;">
  70. <image :src="type4[0]" mode=""></image>
  71. </view>
  72. <image @tap="viewImg(item.content)" v-if="item.content && item.type === 2" :src="item.content" style="height: 200rpx;width: 170rpx;margin-right: 20rpx;"></image>
  73. <view>
  74. <image :src="item.chat.userHead" class="chat-listitem-image"></image>
  75. </view>
  76. </view>
  77. </view> -->
  78. </view>
  79. </view>
  80. <view v-if="ShopState"
  81. style="width: 95%;margin-left: 20rpx;height: 150upx;position: fixed;bottom: 120upx;z-index: 99;background-color: #FFFFFF;border-radius: 20rpx;">
  82. <view style="display: flex;width: 100%;color: #000000;padding: 20rpx;">
  83. <image :src="Shopimage" style="width: 110rpx;height: 110rpx;"></image>
  84. <view style="margin-left: 20rpx;width: 400rpx;">
  85. <view
  86. style="font-size: 34rpx;color: #000000;overflow: hidden;text-overflow: ellipsis;flex-wrap: nowrap;white-space: nowrap;width: 98%;">
  87. {{ShopTitle}}</view>
  88. <view style="margin-top: 20rpx;color: #ed5732;font-size: 34rpx;">¥{{Shopmoney}}</view>
  89. </view>
  90. <view style="text-align: right;">
  91. <image @click="ShopClose" src="../../static/images/img/close.png"
  92. style="width: 30rpx;height: 30rpx;"></image>
  93. <view
  94. style="margin-top: 20rpx;background: #F9221D;color: #FFFFFF;border-radius: 50rpx;width: 150rpx;height: 50rpx;font-size: 24rpx;text-align: center;line-height: 50rpx;"
  95. @click="goMaijia">发送给商家</view>
  96. </view>
  97. </view>
  98. </view>
  99. <view v-if="orderState"
  100. style="width: 95%;margin-left: 20rpx;height: 150upx;position: fixed;bottom: 120upx;z-index: 99;background-color: #FFFFFF;border-radius: 20rpx;">
  101. <view style="display: flex;width: 100%;color: #000000;padding: 20rpx;">
  102. <image :src="orderimage" style="width: 110rpx;height: 110rpx;"></image>
  103. <view style="margin-left: 20rpx;width: 400rpx;">
  104. <view
  105. style="font-size: 34rpx;color: #000000;overflow: hidden;text-overflow: ellipsis;flex-wrap: nowrap;white-space: nowrap;width: 98%;">
  106. 你可能想咨询该订单</view>
  107. <view style="margin-top: 20rpx;color: #ed5732;font-size: 34rpx;">¥{{ordermoney}}</view>
  108. </view>
  109. <view style="text-align: right;">
  110. <image @click="orderClose" src="../../static/images/img/close.png"
  111. style="width: 30rpx;height: 30rpx;"></image>
  112. <view
  113. style="margin-top: 20rpx;background: #F9221D;color: #000000;border-radius: 50rpx;width: 150rpx;height: 50rpx;font-size: 24rpx;text-align: center;line-height: 50rpx;"
  114. @click="goDingdan">发送订单</view>
  115. </view>
  116. </view>
  117. </view>
  118. <!-- 底部聊天输入框 -->
  119. <view class="input-box">
  120. <view class="justify-between padding-lr" style="display: flex;margin-top: 15rpx;width: 100%;background-color: #eee;padding-top: 4upx;">
  121. <image src="../../static/images/img/add.png" @click="chooseImage(['album'])"
  122. style="width: 50rpx;height: 50rpx;margin-top: 8rpx;margin-right: 12rpx;border-radius: 52upx;"></image>
  123. <input confirm-type="send" @confirm='setChatSave(1)' type="text" v-model="content"
  124. style="width: 72%;height: 70rpx;background: #fff;margin: 4rpx 10rpx 0;border-radius: 70rpx;padding-left: 10rpx;color: #000000;" />
  125. <view class="save" @tap='setChatSave(1)'>发送</view>
  126. </view>
  127. </view>
  128. </view>
  129. </template>
  130. <script>
  131. import configdata from '../../common/config.js';
  132. export default {
  133. data() {
  134. return {
  135. connected: false,
  136. connecting: false,
  137. msg: false,
  138. type4: [],
  139. listRight: {
  140. chat: {
  141. userHead: ""
  142. },
  143. content: "",
  144. sendType: 1,
  145. type: 1
  146. },
  147. content: '',
  148. chatId: '',
  149. type: 1,
  150. ListItem: [],
  151. ShopState: false,
  152. ShopordersId: '',
  153. Shopimage: '',
  154. Shopmoney: '',
  155. ShopTitle: '',
  156. orderState: false,
  157. ordersId: '',
  158. orderimage: '',
  159. orderNum: '',
  160. ordermoney: '',
  161. orderTitle: '',
  162. orderCreateTime: '',
  163. className: '',
  164. Shopsales: '',
  165. hand: 1,
  166. index: 0,
  167. page: 0,
  168. size: 1000,
  169. countDown: ''
  170. };
  171. },
  172. computed: {
  173. showMsg() {
  174. if (this.connected) {
  175. if (this.msg) {
  176. return '收到消息:' + this.msg
  177. } else {
  178. return '等待接收消息'
  179. }
  180. } else {
  181. return '尚未连接'
  182. }
  183. }
  184. },
  185. onUnload() {
  186. uni.closeSocket()
  187. uni.hideLoading()
  188. },
  189. onLoad(d) {
  190. if (d.className) {
  191. this.className = d.className;
  192. if (d.className === 'shop') {
  193. this.ShopState = true;
  194. this.ShopordersId = d.ordersId;
  195. this.Shopimage = d.image;
  196. this.Shopmoney = d.money;
  197. this.Shopsales = d.sales;
  198. this.ShopTitle = d.title;
  199. } else if (d.className === 'order') {
  200. this.orderState = true;
  201. this.ordersId = d.id;
  202. this.orderimage = d.image;
  203. this.ordermoney = d.money;
  204. this.orderTitle = d.title;
  205. this.orderNum = d.orderNum;
  206. this.orderCreateTime = d.createTime;
  207. }
  208. }
  209. this.getChatSave();
  210. this.connect();
  211. },
  212. onShow() {
  213. if (this.connected || this.connecting) {
  214. } else {
  215. this.connect();
  216. }
  217. },
  218. onHide() {
  219. uni.closeSocket()
  220. },
  221. methods: {
  222. copy(content) {
  223. uni.showModal({
  224. title: '温馨提示',
  225. content: '确认要复制此文字吗?',
  226. showCancel: true,
  227. cancelText: '取消',
  228. confirmText: '确认',
  229. success: res => {
  230. if (res.confirm) {
  231. uni.setClipboardData({
  232. data: content,
  233. success: r => {
  234. this.$queue.showToast('复制成功');
  235. }
  236. });
  237. }
  238. }
  239. });
  240. },
  241. h5Copy(content) {
  242. if (!document.queryCommandSupported('copy')) {
  243. // 不支持
  244. return false
  245. }
  246. let textarea = document.createElement("textarea")
  247. textarea.value = content
  248. textarea.readOnly = "readOnly"
  249. document.body.appendChild(textarea)
  250. textarea.select() // 选择对象
  251. textarea.setSelectionRange(0, content.length) //核心
  252. let result = document.execCommand("copy") // 执行浏览器复制命令
  253. textarea.remove()
  254. return result
  255. },
  256. getDateDiff(data) {
  257. // 传进来的data必须是日期格式,不能是时间戳
  258. //var str = data;
  259. //将字符串转换成时间格式
  260. var timePublish = new Date(data);
  261. var timeNow = new Date();
  262. var minute = 1000 * 60;
  263. var hour = minute * 60;
  264. var day = hour * 24;
  265. var month = day * 30;
  266. var result = "2";
  267. var diffValue = timeNow - timePublish;
  268. var diffMonth = diffValue / month;
  269. var diffWeek = diffValue / (7 * day);
  270. var diffDay = diffValue / day;
  271. var diffHour = diffValue / hour;
  272. var diffMinute = diffValue / minute;
  273. if (diffMonth > 3) {
  274. result = timePublish.getFullYear() + "-";
  275. result += timePublish.getMonth() + "-";
  276. result += timePublish.getDate();
  277. } else if (diffMonth > 1) { //月
  278. result = data.substring(0, 10);
  279. } else if (diffWeek > 1) { //周
  280. result = data.substring(0, 10);
  281. } else if (diffDay > 1) { //天
  282. result = data.substring(0, 10);
  283. } else if (diffHour > 1) { //小时
  284. result = parseInt(diffHour) + "小时前";
  285. } else if (diffMinute > 1) { //分钟
  286. result = parseInt(diffMinute) + "分钟前";
  287. } else {
  288. result = "刚刚";
  289. }
  290. return result;
  291. },
  292. goDingdanDetail(id) {
  293. uni.navigateTo({
  294. url: '../member/orderdetail?id=' + id
  295. });
  296. },
  297. goShop(ordersId) {
  298. uni.navigateTo({
  299. url: './commoditydetail?ordersId=' + ordersId
  300. });
  301. },
  302. ShopClose() {
  303. this.ShopState = false;
  304. },
  305. orderClose() {
  306. this.orderState = false;
  307. },
  308. goDingdan() {
  309. this.orderState = false;
  310. this.setChatSave(3);
  311. },
  312. goMaijia() {
  313. this.ShopState = false;
  314. this.setChatSave(4);
  315. },
  316. connect() {
  317. let userId = this.$queue.getData('userId');
  318. if (this.connected || this.connecting) {
  319. uni.showModal({
  320. content: '正在连接或者已经连接,请勿重复连接',
  321. showCancel: false
  322. })
  323. return false
  324. }
  325. let token = uni.getStorageSync('token')
  326. this.connecting = true
  327. uni.showLoading({
  328. title: '连接中...',
  329. mask: true, // 是否显示透明蒙层,防止触摸穿透
  330. })
  331. uni.connectSocket({
  332. // url: 'wss://game.shengqianxiong.com.cn/wss/websocket/' + userId,
  333. // url: 'ws://74165o0188.uicp.fun/sqx_fast/websocket/' + userId,
  334. url: this.config("WSHOST") + userId,
  335. data() {
  336. return {
  337. msg: 'Hello'
  338. }
  339. },
  340. header: {
  341. 'content-type': 'application/json',
  342. 'token': token
  343. },
  344. method: 'GET',
  345. success(res) {
  346. // 这里是接口调用成功的回调,不是连接成功的回调,请注意
  347. },
  348. fail(err) {
  349. // 这里是接口调用失败的回调,不是连接失败的回调,请注意
  350. }
  351. })
  352. uni.onSocketOpen((res) => {
  353. this.connecting = false
  354. this.connected = true
  355. uni.hideLoading()
  356. // uni.showToast({
  357. // icon: 'none',
  358. // title: '连接成功'
  359. // })
  360. console.log('onOpen', res);
  361. })
  362. uni.onSocketError((err) => {
  363. this.connecting = false
  364. this.connected = false
  365. uni.hideLoading()
  366. uni.showModal({
  367. content: '网络较差,请稍后再试',
  368. showCancel: false
  369. })
  370. console.log('onError', err);
  371. })
  372. uni.onSocketMessage((res) => {
  373. // let that = this;
  374. // let datas = JSON.parse(res.data)
  375. // let data = {
  376. // chat: {
  377. // userHead: '../../static/logo.png'
  378. // },
  379. // content: datas.content,
  380. // type: datas.type,
  381. // sendType: datas.sendType
  382. // }
  383. // that.ListItem.push(data);
  384. this.getTimeOrListItem1();
  385. console.log('onMessage', res)
  386. })
  387. uni.onSocketClose((res) => {
  388. this.connected = false
  389. this.startRecive = false
  390. this.msg = false
  391. console.log('onClose', res)
  392. })
  393. },
  394. close() {
  395. uni.closeSocket()
  396. },
  397. getTimeOrListItem1() {
  398. let data={
  399. chatId:this.chatId
  400. }
  401. this.$Request.getT('/app/chats/list',data).then(
  402. res => {
  403. this.ListItem = [];
  404. if (res.data) {
  405. var time = '';
  406. res.data.forEach(d => {
  407. d.createTime = this.getDateDiff(d.createTime);
  408. if (d.createTime === time) {
  409. d.createTime = '';
  410. } else {
  411. time = d.createTime;
  412. }
  413. if (!d.chat.userHead) {
  414. // d.chat.userHead = '../../static/logo.png';
  415. let avatar = this.$queue.getData('avatar');
  416. d.chat.userHead = avatar
  417. }
  418. if (d.type === 4) {
  419. let data = d.content.split(',');
  420. d.content = data;
  421. }
  422. if (d.type === 3) {
  423. let data = d.content.split(',');
  424. d.content = data;
  425. }
  426. this.ListItem.push(d);
  427. });
  428. setTimeout(() => {
  429. uni.pageScrollTo({
  430. scrollTop: 99999,
  431. duration: 0
  432. });
  433. }, 50);
  434. }
  435. uni.hideLoading();
  436. });
  437. },
  438. getChatSave() {
  439. let userId = this.$queue.getData('userId');
  440. let phone = this.$queue.getData('phone');
  441. let userName = this.$queue.getData('userName');
  442. if (!phone) {
  443. phone = this.$queue.getData('userName');
  444. }
  445. let avatar = this.$queue.getData('avatar') ? this.$queue.getData('avatar') : '';
  446. let shopUserName = this.$queue.getData('shopUserName') ? this.$queue.getData('shopUserName'): '';
  447. let data = {
  448. userId: userId,
  449. userHead: avatar,
  450. userName: shopUserName,
  451. storeId: '0',
  452. storeHead: '',
  453. storeName: ''
  454. }
  455. this.$Request.postJson('/app/chats/save', data).then(res => {
  456. if (res.status === 0) {
  457. this.chatId = res.data.chatId;
  458. uni.showLoading({
  459. title: '加载中...',
  460. mask: true, // 是否显示透明蒙层,防止触摸穿透
  461. });
  462. this.getTimeOrListItem1();
  463. }
  464. });
  465. },
  466. setChatSave(type) {
  467. //type:1文字 2图片
  468. if (type === 1 && this.content == '') {
  469. this.$queue.showToast('请输入聊天内容');
  470. return;
  471. }
  472. if (this.chatId == '' || this.chatId == undefined) {
  473. this.$queue.showToast('网络较差,请稍后再试');
  474. return;
  475. }
  476. let userId = this.$queue.getData('userId');
  477. if (type === 4) {
  478. this.content = this.Shopimage + ',' + this.ShopTitle + ',' + this.Shopmoney + ',' + this.ShopordersId;
  479. }
  480. if (type === 3) {
  481. this.content = this.orderimage + ',' + this.orderTitle + ',' + this.ordersId + ',' + this.orderNum +
  482. ',' + this.orderCreateTime +
  483. ',' + this.ordermoney
  484. }
  485. let avatar = this.$queue.getData('avatar') ? this.$queue.getData('avatar') : '';
  486. let shopUserName = this.$queue.getData('shopUserName') ? this.$queue.getData('shopUserName'): '';
  487. let data = {
  488. userId: userId,
  489. userHead: avatar,
  490. userName: shopUserName,
  491. content: this.content,
  492. chatId: this.chatId,
  493. type: type,
  494. storeId: '0',
  495. sendType: '1',
  496. storeName: ''
  497. }
  498. data = JSON.stringify(data);
  499. let that = this;
  500. uni.sendSocketMessage({
  501. data: data,
  502. success(res) {
  503. let avatar = that.$queue.getData('avatar');
  504. if (!avatar) {
  505. avatar = '../../static/logo.png';
  506. }
  507. setTimeout(() => {
  508. that.getTimeOrListItem1();
  509. }, 50);
  510. console.log(that.content);
  511. },
  512. fail(err) {
  513. console.log(err);
  514. }
  515. })
  516. this.content = '';
  517. },
  518. //发送图片
  519. chooseImage(sourceType) {
  520. uni.chooseImage({
  521. count: 1,
  522. sourceType: ['album', 'camera'],
  523. success: res => {
  524. for (let i = 0; i < res.tempFilePaths.length; i++) {
  525. this.$queue.showLoading("上传中...");
  526. uni.uploadFile({ // 上传接口
  527. url: this.config("APIHOST") + '/alioss/upload', //真实的接口地址
  528. filePath: res.tempFilePaths[i],
  529. name: 'file',
  530. success: (uploadFileRes) => {
  531. this.content = JSON.parse(uploadFileRes.data).data;
  532. this.setChatSave(2);
  533. uni.hideLoading();
  534. }
  535. });
  536. }
  537. }
  538. })
  539. },
  540. config: function(name) {
  541. var info = null;
  542. if (name) {
  543. var name2 = name.split("."); //字符分割
  544. if (name2.length > 1) {
  545. info = configdata[name2[0]][name2[1]] || null;
  546. } else {
  547. info = configdata[name] || null;
  548. }
  549. if (info == null) {
  550. // let web_config = cache.get("web_config");
  551. // if (web_config) {
  552. // if (name2.length > 1) {
  553. // info = web_config[name2[0]][name2[1]] || null;
  554. // } else {
  555. // info = web_config[name] || null;
  556. // }
  557. // }
  558. }
  559. }
  560. return info;
  561. },
  562. //查看大图
  563. viewImg(item) {
  564. let imgsArray = [];
  565. imgsArray[0] = item;
  566. uni.previewImage({
  567. current: 0,
  568. urls: imgsArray
  569. });
  570. },
  571. },
  572. };
  573. </script>
  574. <style>
  575. page {
  576. /* background: #1c1b20; */
  577. }
  578. .input-box {
  579. position: fixed;
  580. bottom: 0;
  581. left: 0;
  582. height: 100rpx;
  583. width: 100%;
  584. display: flex;
  585. box-sizing: content-box;
  586. z-index: 999;
  587. /* background-color: #ececec; */
  588. /* padding: 0 5rpx; */
  589. }
  590. .chat-listitem {
  591. display: flex;
  592. margin-top: 20rpx;
  593. padding: 10rpx;
  594. }
  595. .chat-listitem-text {
  596. color: #000000;
  597. background: #FFFFFF;
  598. margin-top: 10rpx;
  599. width: fit-content;
  600. padding: 15rpx;
  601. font-size: 30rpx;
  602. height: max-content;
  603. word-wrap: break-word;
  604. word-break: break-all;
  605. border-radius: 10rpx;
  606. }
  607. .chat-listitem-image-type4 {
  608. color: #000000;
  609. background: #FFFFFF;
  610. width: fit-content;
  611. font-size: 30rpx;
  612. height: max-content;
  613. word-wrap: break-word;
  614. word-break: break-all;
  615. border-top-left-radius: 20rpx;
  616. border-top-right-radius: 20rpx;
  617. }
  618. .chat-listitem-image {
  619. margin-top: 5rpx;
  620. width: 75rpx;
  621. height: 75rpx;
  622. border-radius: 5rpx;
  623. }
  624. .save {
  625. width: 130rpx;
  626. text-align: center;
  627. border-radius: 10rpx;
  628. height: 70rpx;
  629. color: #FFF;
  630. background: #1789FD;
  631. margin: 5rpx 10rpx 0;
  632. line-height: 70rpx;
  633. }
  634. </style>