chat.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  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. })
  330. uni.connectSocket({
  331. // url: 'wss://game.shengqianxiong.com.cn/wss/websocket/' + userId,
  332. // url: 'ws://74165o0188.uicp.fun/sqx_fast/websocket/' + userId,
  333. url: this.config("WSHOST") + userId,
  334. data() {
  335. return {
  336. msg: 'Hello'
  337. }
  338. },
  339. header: {
  340. 'content-type': 'application/json',
  341. 'token': token
  342. },
  343. method: 'GET',
  344. success(res) {
  345. // 这里是接口调用成功的回调,不是连接成功的回调,请注意
  346. },
  347. fail(err) {
  348. // 这里是接口调用失败的回调,不是连接失败的回调,请注意
  349. }
  350. })
  351. uni.onSocketOpen((res) => {
  352. this.connecting = false
  353. this.connected = true
  354. uni.hideLoading()
  355. // uni.showToast({
  356. // icon: 'none',
  357. // title: '连接成功'
  358. // })
  359. console.log('onOpen', res);
  360. })
  361. uni.onSocketError((err) => {
  362. this.connecting = false
  363. this.connected = false
  364. uni.hideLoading()
  365. uni.showModal({
  366. content: '网络较差,请稍后再试',
  367. showCancel: false
  368. })
  369. console.log('onError', err);
  370. })
  371. uni.onSocketMessage((res) => {
  372. // let that = this;
  373. // let datas = JSON.parse(res.data)
  374. // let data = {
  375. // chat: {
  376. // userHead: '../../static/logo.png'
  377. // },
  378. // content: datas.content,
  379. // type: datas.type,
  380. // sendType: datas.sendType
  381. // }
  382. // that.ListItem.push(data);
  383. this.getTimeOrListItem1();
  384. console.log('onMessage', res)
  385. })
  386. uni.onSocketClose((res) => {
  387. this.connected = false
  388. this.startRecive = false
  389. this.msg = false
  390. console.log('onClose', res)
  391. })
  392. },
  393. close() {
  394. uni.closeSocket()
  395. },
  396. getTimeOrListItem1() {
  397. let data={
  398. chatId:this.chatId
  399. }
  400. this.$Request.getT('/app/chats/list',data).then(
  401. res => {
  402. this.ListItem = [];
  403. if (res.data) {
  404. var time = '';
  405. res.data.forEach(d => {
  406. d.createTime = this.getDateDiff(d.createTime);
  407. if (d.createTime === time) {
  408. d.createTime = '';
  409. } else {
  410. time = d.createTime;
  411. }
  412. if (!d.chat.userHead) {
  413. // d.chat.userHead = '../../static/logo.png';
  414. let avatar = this.$queue.getData('avatar');
  415. d.chat.userHead = avatar
  416. }
  417. if (d.type === 4) {
  418. let data = d.content.split(',');
  419. d.content = data;
  420. }
  421. if (d.type === 3) {
  422. let data = d.content.split(',');
  423. d.content = data;
  424. }
  425. this.ListItem.push(d);
  426. });
  427. setTimeout(() => {
  428. uni.pageScrollTo({
  429. scrollTop: 99999,
  430. duration: 0
  431. });
  432. }, 50);
  433. }
  434. uni.hideLoading();
  435. });
  436. },
  437. getChatSave() {
  438. let userId = this.$queue.getData('userId');
  439. let phone = this.$queue.getData('phone');
  440. let userName = this.$queue.getData('userName');
  441. if (!phone) {
  442. phone = this.$queue.getData('userName');
  443. }
  444. let avatar = this.$queue.getData('avatar') ? this.$queue.getData('avatar') : '';
  445. let shopUserName = this.$queue.getData('shopUserName') ? this.$queue.getData('shopUserName'): '';
  446. let data = {
  447. userId: userId,
  448. userHead: avatar,
  449. userName: shopUserName,
  450. storeId: '0',
  451. storeHead: '',
  452. storeName: ''
  453. }
  454. this.$Request.postJson('/app/chats/save', data).then(res => {
  455. if (res.status === 0) {
  456. this.chatId = res.data.chatId;
  457. uni.showLoading({
  458. title: '加载中...'
  459. });
  460. this.getTimeOrListItem1();
  461. }
  462. });
  463. },
  464. setChatSave(type) {
  465. //type:1文字 2图片
  466. if (type === 1 && this.content == '') {
  467. this.$queue.showToast('请输入聊天内容');
  468. return;
  469. }
  470. if (this.chatId == '' || this.chatId == undefined) {
  471. this.$queue.showToast('网络较差,请稍后再试');
  472. return;
  473. }
  474. let userId = this.$queue.getData('userId');
  475. if (type === 4) {
  476. this.content = this.Shopimage + ',' + this.ShopTitle + ',' + this.Shopmoney + ',' + this.ShopordersId;
  477. }
  478. if (type === 3) {
  479. this.content = this.orderimage + ',' + this.orderTitle + ',' + this.ordersId + ',' + this.orderNum +
  480. ',' + this.orderCreateTime +
  481. ',' + this.ordermoney
  482. }
  483. let avatar = this.$queue.getData('avatar') ? this.$queue.getData('avatar') : '';
  484. let shopUserName = this.$queue.getData('shopUserName') ? this.$queue.getData('shopUserName'): '';
  485. let data = {
  486. userId: userId,
  487. userHead: avatar,
  488. userName: shopUserName,
  489. content: this.content,
  490. chatId: this.chatId,
  491. type: type,
  492. storeId: '0',
  493. sendType: '1',
  494. storeName: ''
  495. }
  496. data = JSON.stringify(data);
  497. let that = this;
  498. uni.sendSocketMessage({
  499. data: data,
  500. success(res) {
  501. let avatar = that.$queue.getData('avatar');
  502. if (!avatar) {
  503. avatar = '../../static/logo.png';
  504. }
  505. setTimeout(() => {
  506. that.getTimeOrListItem1();
  507. }, 50);
  508. console.log(that.content);
  509. },
  510. fail(err) {
  511. console.log(err);
  512. }
  513. })
  514. this.content = '';
  515. },
  516. //发送图片
  517. chooseImage(sourceType) {
  518. uni.chooseImage({
  519. count: 1,
  520. sourceType: ['album', 'camera'],
  521. success: res => {
  522. for (let i = 0; i < res.tempFilePaths.length; i++) {
  523. this.$queue.showLoading("上传中...");
  524. uni.uploadFile({ // 上传接口
  525. url: this.config("APIHOST") + '/alioss/upload', //真实的接口地址
  526. filePath: res.tempFilePaths[i],
  527. name: 'file',
  528. success: (uploadFileRes) => {
  529. this.content = JSON.parse(uploadFileRes.data).data;
  530. this.setChatSave(2);
  531. uni.hideLoading();
  532. }
  533. });
  534. }
  535. }
  536. })
  537. },
  538. config: function(name) {
  539. var info = null;
  540. if (name) {
  541. var name2 = name.split("."); //字符分割
  542. if (name2.length > 1) {
  543. info = configdata[name2[0]][name2[1]] || null;
  544. } else {
  545. info = configdata[name] || null;
  546. }
  547. if (info == null) {
  548. // let web_config = cache.get("web_config");
  549. // if (web_config) {
  550. // if (name2.length > 1) {
  551. // info = web_config[name2[0]][name2[1]] || null;
  552. // } else {
  553. // info = web_config[name] || null;
  554. // }
  555. // }
  556. }
  557. }
  558. return info;
  559. },
  560. //查看大图
  561. viewImg(item) {
  562. let imgsArray = [];
  563. imgsArray[0] = item;
  564. uni.previewImage({
  565. current: 0,
  566. urls: imgsArray
  567. });
  568. },
  569. },
  570. };
  571. </script>
  572. <style>
  573. page {
  574. /* background: #1c1b20; */
  575. }
  576. .input-box {
  577. position: fixed;
  578. bottom: 0;
  579. left: 0;
  580. height: 100rpx;
  581. width: 100%;
  582. display: flex;
  583. box-sizing: content-box;
  584. z-index: 999;
  585. /* background-color: #ececec; */
  586. /* padding: 0 5rpx; */
  587. }
  588. .chat-listitem {
  589. display: flex;
  590. margin-top: 20rpx;
  591. padding: 10rpx;
  592. }
  593. .chat-listitem-text {
  594. color: #000000;
  595. background: #FFFFFF;
  596. margin-top: 10rpx;
  597. width: fit-content;
  598. padding: 15rpx;
  599. font-size: 30rpx;
  600. height: max-content;
  601. word-wrap: break-word;
  602. word-break: break-all;
  603. border-radius: 10rpx;
  604. }
  605. .chat-listitem-image-type4 {
  606. color: #000000;
  607. background: #FFFFFF;
  608. width: fit-content;
  609. font-size: 30rpx;
  610. height: max-content;
  611. word-wrap: break-word;
  612. word-break: break-all;
  613. border-top-left-radius: 20rpx;
  614. border-top-right-radius: 20rpx;
  615. }
  616. .chat-listitem-image {
  617. margin-top: 5rpx;
  618. width: 75rpx;
  619. height: 75rpx;
  620. border-radius: 5rpx;
  621. }
  622. .save {
  623. width: 130rpx;
  624. text-align: center;
  625. border-radius: 10rpx;
  626. height: 70rpx;
  627. color: #FFF;
  628. background: #1789FD;
  629. margin: 5rpx 10rpx 0;
  630. line-height: 70rpx;
  631. }
  632. </style>