index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. <template>
  2. <view class="page" :style="{height:winHeight +'px',overflow:'hidden'}">
  3. <!-- #ifdef APP-PLUS -->
  4. <view class="topTitle">
  5. <view class="topFont">
  6. 消息{{unread_msg?'('+unread_msg+')':''}}
  7. </view>
  8. <view class="titleLf" @tap="actionMain">
  9. <image src="../../static/theme/default/chat/icon_more_add.png" mode=""></image>
  10. </view>
  11. </view>
  12. <!-- #endif -->
  13. <!-- #ifdef H5 || MP-WEIXIN-->
  14. <view class="topTitle">
  15. <view class="topFont">
  16. 消息{{unread_msg?'('+unread_msg+')':''}}
  17. </view>
  18. <view class="titleLf" @tap="actionMain">
  19. <image src="../../static/theme/default/chat/icon_more_add.png" mode=""></image>
  20. </view>
  21. </view>
  22. <!-- #endif -->
  23. <scroll-diy :height="scrolHeight+'px'" ref="mescrollRef" @init="mescrollInit" @down="downCallback"
  24. :up="{use:false,auto:false}" :down="{auto:false}">
  25. <view class="searchOut">
  26. <uni-search-bar ref="searchBar" placeholder="搜索" bgColor="#F7F7F7" :show="false" @confirm="search"
  27. @search="search">
  28. </uni-search-bar>
  29. </view>
  30. <view class="uni-list" v-if="list.length">
  31. <uni-swipe-action>
  32. <uni-swipe-action-item class="uni-list-cell" v-for="(value,key) of list" :key="key"
  33. :right-options="swipeData(value,key)" :auto-close="false" @click="swipeAction">
  34. <view class="uni-media-list"
  35. @tap="goMessage(value.list_id,key,value.no_reader_num,value.chat_id)">
  36. <view class="uni-media-list-logo">
  37. <image :src="staticPhoto + value.photo_path + '?_=' + imgRan" :lazy-load="true"
  38. style="border-radius: 10px;" :data-index="key" @error="imageError" />
  39. </view>
  40. <view class="red_num">
  41. <uni-badge :text="value.no_reader_num" type="error" />
  42. </view>
  43. <view class="uni-media-list-body">
  44. <view class="uni-media-list-text-top">
  45. <text>{{msgHandle(value.show_name+'',12)}}</text>
  46. <text style="float: right;color: #8f8f94;font-size: 23upx;">
  47. {{timestampFormat(value.time)}}
  48. </text>
  49. </view>
  50. <view class="uni-media-list-text-bottom uni-ellipsis"
  51. v-if="obj_notice[value.list_id] == 1">
  52. <text style="color: red;">[有人@我]</text>{{value.last_msg+''}}
  53. </view>
  54. <view class="uni-media-list-text-bottom uni-ellipsis" v-else>
  55. {{value.last_msg+''}}
  56. </view>
  57. </view>
  58. </view>
  59. </uni-swipe-action-item>
  60. </uni-swipe-action>
  61. <!-- <view class="uni-list-cell"
  62. v-for="(value,key) of list"
  63. :key="key">
  64. <uni-swipe-action :options="swipeData(value.no_reader_num)"
  65. @click="swipeAction"
  66. @opened="openedAction(key)">
  67. <uni-swipe-action>
  68. <view class="uni-media-list"
  69. @tap="goMessage(value.list_id,key,value.no_reader_num,value.chat_id)">
  70. <view class="uni-media-list-logo">
  71. <image :src="staticPhoto + value.photo_path + '?_=' + imgRan"
  72. :lazy-load="true"
  73. style="border-radius: 10px;"
  74. :data-index="key"
  75. @error="imageError" />
  76. </view>
  77. <view class="red_num">
  78. <uni-badge :text="value.no_reader_num"
  79. type="error" />
  80. </view>
  81. <view class="uni-media-list-body">
  82. <view class="uni-media-list-text-top">
  83. <text>{{msgHandle(value.show_name+'',12)}}</text>
  84. <view style="float: right;color: #8f8f94;font-size: 23upx;">
  85. {{timestampFormat(value.time)}}
  86. </view>
  87. </view>
  88. <view class="uni-media-list-text-bottom uni-ellipsis">{{value.last_msg}}</view>
  89. </view>
  90. </view>
  91. </uni-swipe-action>
  92. </uni-swipe-action>
  93. </view> -->
  94. </view>
  95. <view class="noData" v-if="!list.length" style="
  96. height: 500px;
  97. ">
  98. <image src="../../static/theme/default/chat/defaultpage_nomessages.png" mode=""></image>
  99. <text>暂无聊天消息</text>
  100. </view>
  101. </scroll-diy>
  102. <view :class="['action_main animated faster',(action_menu ? 'bounceInDown' : 'bounceOutUp')]"
  103. v-show="showActionMenu" @tap="actionMain">
  104. <view class="action_base">
  105. <view class="action_item" @tap="goAction(1)">
  106. <view class="uni-media-list-logo action_icon">
  107. <image src="/static/theme/default/chat/1.png" :lazy-load="true" />
  108. </view>
  109. <text class="action_item_text">添加好友</text>
  110. </view>
  111. <view class="action_item" @tap="goAction(0)">
  112. <view class="uni-media-list-logo action_icon">
  113. <image src="/static/theme/default/chat/2.png" :lazy-load="true" />
  114. </view>
  115. <text class="action_item_text">发起群聊</text>
  116. </view>
  117. <view class="action_item" @tap="joinQun(0)">
  118. <view class="uni-media-list-logo action_icon">
  119. <image src="/static/theme/default/chat/5.png" :lazy-load="true" />
  120. </view>
  121. <text class="action_item_text">加入群聊</text>
  122. </view>
  123. <!-- <view class="action_item" @tap="goAction(2)">
  124. <view class="uni-media-list-logo action_icon">
  125. <image src="/static/float/shoucang.png" :lazy-load="true" />
  126. </view>
  127. <text class="action_item_text">我的收藏</text>
  128. </view> -->
  129. <view class="action_item" @tap="goPath('/pages/push/create_group')">
  130. <view class="uni-media-list-logo action_icon">
  131. <image src="/static/theme/default/chat/3.png" :lazy-load="true" />
  132. </view>
  133. <text class="action_item_text">群发助手</text>
  134. </view>
  135. <!-- #ifdef APP-PLUS -->
  136. <view class="action_item" @tap="goScanCode">
  137. <view class="uni-media-list-logo action_icon">
  138. <image src="/static/float/saoyisao.png" :lazy-load="true" />
  139. </view>
  140. <text class="action_item_text">扫一扫</text>
  141. </view>
  142. <!-- #endif -->
  143. </view>
  144. </view>
  145. </view>
  146. </template>
  147. <script>
  148. import uniIcon from '../../components/uni-icons/uni-icons.vue';
  149. import uniBadge from '../../components/uni-badge/uni-badge.vue';
  150. import uniSwipeAction from '../../components/uni-swipe-action/uni-swipe-action.vue'
  151. import uniSwipeActionItem from '../../components/uni-swipe-action-item/uni-swipe-action-item.vue'
  152. import _get from '../../common/_get';
  153. import _hook from '../../common/_hook';
  154. import _action from '../../common/_action';
  155. import _data from '../../common/_data';
  156. import _page from '../../common/common';
  157. import uniSearchBar from '@/components/mehaotian-search/mehaotian-search.vue';
  158. import scrollDiy from '@/components/mescroll-uni/components/mescroll-diy/xinlang/mescroll-uni.vue';
  159. import {
  160. genTestUserSig
  161. } from '@/debug/GenerateTestUserSig.js';
  162. export default {
  163. components: {
  164. uniIcon,
  165. uniBadge,
  166. uniSwipeAction,
  167. uniSwipeActionItem,
  168. uniSearchBar,
  169. scrollDiy
  170. },
  171. data() {
  172. return {
  173. list: [],
  174. search_list: [],
  175. list_index: '',
  176. action_menu: false,
  177. action_menu_num: 0,
  178. options: [{
  179. text: '取消',
  180. style: {
  181. backgroundColor: '#007aff'
  182. }
  183. }, {
  184. text: '删除',
  185. style: {
  186. backgroundColor: '#dd524d'
  187. }
  188. }],
  189. unread_msg: 0, //未读消息
  190. scrolHeight: 600,
  191. windowBottom: 50,
  192. status_height: 25,
  193. winHeight: 675,
  194. my_data: {},
  195. obj_notice: {}, //todo @提示消息
  196. }
  197. },
  198. onShow() {
  199. this.initData()
  200. },
  201. onLoad() {
  202. let winHeight = uni.getSystemInfoSync().windowHeight;
  203. let windowBottom = uni.getSystemInfoSync().windowBottom;
  204. let status_height = uni.getSystemInfoSync().statusBarHeight;
  205. this.scrolHeight = winHeight - windowBottom - status_height;
  206. this.windowBottom = windowBottom;
  207. this.status_height = windowBottom;
  208. this.winHeight = winHeight;
  209. // console.log("uni.getSystemInfoSync()", uni.getSystemInfoSync())
  210. },
  211. onUnload() {
  212. uni.$off('data_chat_list');
  213. },
  214. // onPullDownRefresh() {
  215. // _get.getChatList();
  216. // setTimeout(function() {
  217. // uni.stopPullDownRefresh();
  218. // }, 300);
  219. // },
  220. onHide() {
  221. //清空search框
  222. if (this.keyword) {
  223. this.$refs.searchBar.clear();
  224. this.list = this.search_list;
  225. }
  226. },
  227. computed: {
  228. showActionMenu() {
  229. return this.action_menu;
  230. },
  231. staticPhoto() {
  232. return _data.staticPhoto();
  233. },
  234. imgRan() {
  235. return Math.random();
  236. },
  237. },
  238. methods: {
  239. joinQun() {
  240. uni.navigateTo({
  241. url:'/pages/friend/adds'
  242. })
  243. },
  244. initData() {
  245. _hook.routeTabBarHook();
  246. this.getUser();
  247. uni.$off('data_chat_list');
  248. let _this = this;
  249. // let chat_list = _data.localData('chat_list');
  250. let chat_list = [];
  251. /** 监听最新数据 */
  252. uni.$on('data_chat_list', function(data) {
  253. // todo屏蔽 如果是屏蔽了,则未读为0
  254. // if(data[0].is_disturb == 1){
  255. // // 如果@本人或者全员则提示
  256. // if(data[0].last_msg.indexOf(_this.my_data.nickname) > -1 ||data[0].last_msg.indexOf('@所有人') > -1){
  257. // }else{
  258. // data[0].no_reader_num = 0;
  259. // }
  260. // }
  261. // todo @提示只要最新未读有就提示@
  262. data.forEach(item => {
  263. if ((item.last_msg.indexOf('@' + _this.my_data.nickname) > -1 || item.last_msg
  264. .indexOf(
  265. '@所有人') >
  266. -1) && item.type == 1 && item.no_reader_num != 0) {
  267. _this.obj_notice[item.list_id] = 1;
  268. }
  269. if (item.no_reader_num == 0) {
  270. _this.obj_notice[item.list_id] = 0;
  271. }
  272. })
  273. _this.list = data;
  274. _this.search_list = _this.list;
  275. console.log("接收到新数据....", data);
  276. });
  277. //有缓存则监听是否有数据更新,有则重新获取
  278. // uni.$once('update_chat_list', function () {
  279. // _get.getChatList();
  280. // })
  281. /** 加载本地缓存数据,让页面秒速渲染出来 */
  282. if (chat_list.length) {
  283. // todo
  284. _this.list = chat_list;
  285. } else {
  286. _get.getChatList();
  287. }
  288. _this.action_menu = false;
  289. // 监听未读消息
  290. uni.$on('unread_msg', (data) => {
  291. this.unread_msg = data;
  292. })
  293. console.log("初始化数据");
  294. },
  295. // 初始化数据
  296. mescrollInit(obj) {
  297. },
  298. getUser() {
  299. let _this = this;
  300. _get.getUserInfo({}, function(data) {
  301. data.photo = data.photo + "?_=" + +Math.random();
  302. data.photo = data.photo.replace(/(\?_=)[\d\.]+$/, "$1" + Math.random());
  303. console.log("res个人资料", data);
  304. _this.my_data = data;
  305. //登陆IM
  306. // #ifdef APP-PLUS
  307. _this.loginHandler(data);
  308. // #endif
  309. _data.data("user_info", data);
  310. });
  311. },
  312. // 登录IMid
  313. loginHandler(data) {
  314. let userID = data.id.toString();
  315. let _this = this;
  316. try {
  317. const userSig = genTestUserSig(userID).userSig;
  318. // 登录 IM
  319. uni.$TUIKit.login({
  320. userID: userID,
  321. userSig: userSig
  322. });
  323. // 登录原生插件
  324. uni.$TUICalling.login({
  325. sdkAppID: genTestUserSig('').sdkAppID,
  326. userID: userID,
  327. userSig: userSig,
  328. },
  329. res => {
  330. // _this.setNickHandler(data.nickname);
  331. // _this.setUserAvatarHandler(_this.staticPhoto + data.face);
  332. uni.$TUICalling.setSelfInfo({
  333. nickName: data.nickname,
  334. avatar: _this.staticPhoto + data.face
  335. }, (selfInfo) => {
  336. console.log(JSON.stringify(selfInfo),'selfInfo')
  337. })
  338. // 开启悬浮窗
  339. uni.$TUICalling.enableFloatWindow(true);
  340. // uni.showToast({
  341. // title: 'login',
  342. // icon: 'none'
  343. // });
  344. }
  345. );
  346. } catch (e) {
  347. console.log("e");
  348. uni.hideLoading();
  349. }
  350. },
  351. // 设置昵称
  352. setNickHandler(name) {
  353. console.error('--linda')
  354. // console.log(uni.$TUICalling.setSelfInfo,'uni.$TUICalling');
  355. // uni.$TUICalling.setSelfInfo({
  356. // nickName: name,
  357. // }, (res) => {
  358. // console.log(JSON.stringify(res))
  359. // })
  360. uni.$TUICalling.setUserNickname({
  361. nickName: name,
  362. }, (res) => {
  363. console.log(JSON.stringify(res))
  364. })
  365. },
  366. // 设置头像
  367. setUserAvatarHandler(avatar) {
  368. uni.$TUICalling.setUserAvatar({
  369. avatar: avatar
  370. }, (res) => {
  371. console.log(JSON.stringify(res))
  372. })
  373. },
  374. // 下拉刷新
  375. downCallback(obj) {
  376. _get.getChatList();
  377. setTimeout(() => {
  378. obj.endSuccess();
  379. }, 1000)
  380. },
  381. search(chat_msg) {
  382. chat_msg = chat_msg.trim();
  383. let _this = this;
  384. _this.keyword = chat_msg;
  385. console.log(!chat_msg)
  386. if (!chat_msg) {
  387. _this.list = _this.search_list;
  388. return true;
  389. }
  390. _get.serchChatMsg({
  391. 'chat_msg': chat_msg,
  392. 'list_id': ''
  393. }, function(data) {
  394. _this.list = data;
  395. })
  396. },
  397. goPath(path) {
  398. if (path) {
  399. uni.navigateTo({
  400. url: path
  401. })
  402. }
  403. },
  404. imageError(e) {
  405. let index = e.currentTarget.dataset.index
  406. //替换index对应的图片
  407. this.list[index].photo_path = '/default_photo_path.png';
  408. },
  409. msgHandle(msg, num) {
  410. if (num == undefined) num = 16;
  411. if (!msg) return '';
  412. msg = msg.replace(/&lt;/g, '<');
  413. return msg.length > num ? msg.substr(0, num) + '...' : msg;
  414. },
  415. timestampFormat(time) {
  416. return _action.timestampFormat(time);
  417. },
  418. goAction(type) {
  419. let path = '';
  420. switch (type) {
  421. case 0:
  422. path = '../friend/index_list?list_id=0';
  423. break;
  424. case 1:
  425. path = '../friend/add';
  426. break;
  427. case 2:
  428. path = '../my/store';
  429. break;
  430. default:
  431. return;
  432. break;
  433. }
  434. uni.navigateTo({
  435. url: path,
  436. animationType: 'slide-in-bottom',
  437. });
  438. },
  439. actionMain() {
  440. this.action_menu = !this.action_menu;
  441. this.action_menu_num++;
  442. },
  443. openedAction(key) {
  444. this.list_index = key;
  445. },
  446. swipeAction(e) {
  447. let list_index = e.content.number
  448. let _this = this,
  449. list_id = _this.list[list_index].list_id;
  450. if (!list_id) {
  451. return;
  452. }
  453. let top = _this.list[list_index].top;
  454. console.log("top", top)
  455. let value = top == 1 ? 0 : 1;
  456. console.log("value", value)
  457. switch (e.index) {
  458. case 0:
  459. //置顶 /取消置顶
  460. _this.$httpSend({
  461. path: '/im/message/chatTop ',
  462. data: {
  463. list_id: list_id,
  464. value: value
  465. },
  466. success: () => {
  467. _get.getChatList();
  468. }
  469. });
  470. break;
  471. case 1:
  472. /** 删除这条对话 */
  473. _this.$httpSend({
  474. path: '/im/chat/deleteChat',
  475. data: {
  476. list_id,
  477. },
  478. success: (data) => {
  479. _get.getChatList();
  480. }
  481. });
  482. break;
  483. default:
  484. break;
  485. }
  486. },
  487. swipeData(value, index) {
  488. return [{
  489. text: value.top == 1 ? '取消置顶' : '置顶',
  490. number: index,
  491. style: {
  492. },
  493. },
  494. {
  495. text: '删除',
  496. number: index,
  497. style: {
  498. backgroundColor: 'rgb(255,58,49)',
  499. }
  500. }
  501. ];
  502. },
  503. goMessage(list_id, key, no_reader_num, chat_id) {
  504. if (no_reader_num > 0) {
  505. _get.getChatData({
  506. send_data: {
  507. list_id: list_id,
  508. time: 0,
  509. is_up: 1,
  510. },
  511. is_action_data: 1,
  512. });
  513. this.list[key].no_reader_num = 0;
  514. _data.localData('chat_list', this.list);
  515. _action.updataNoReader(list_id);
  516. _action.setStatusTips();
  517. uni.$on('unread_msg', (data) => {
  518. this.unread_msg = data;
  519. })
  520. }
  521. console.log("chat_id", chat_id);
  522. _data.localData('message_list_id', list_id);
  523. // './message?list_id=' + list_id + "&chat_id="+chat_id,
  524. uni.navigateTo({
  525. url: './message?list_id=' + list_id
  526. });
  527. },
  528. goScanCode() {
  529. let _this = this;
  530. _this.action_menu = false;
  531. _page.scanCode();
  532. },
  533. },
  534. watch: {
  535. },
  536. onNavigationBarButtonTap(e) {
  537. this.action_menu = !this.action_menu;
  538. },
  539. }
  540. </script>
  541. <style lang="scss" scoped>
  542. @import '/static/css/chat/animate.css';
  543. page {
  544. background: #fff;
  545. }
  546. .icon-search {
  547. padding: 0 4rpx !important;
  548. }
  549. .page {
  550. width: 100%;
  551. height: 100%;
  552. background-color: #fff;
  553. }
  554. .uni-list-cell {
  555. overflow: hidden;
  556. }
  557. .uni-media-list-logo {
  558. height: 100upx;
  559. width: 100upx;
  560. }
  561. .search .content {
  562. padding-left: 20upx;
  563. height: 60upx;
  564. background-color: #F7F7F7 !important;
  565. }
  566. .header {
  567. display: flex;
  568. flex-direction: row;
  569. padding: 10px 15px;
  570. align-items: center;
  571. }
  572. .input-view {
  573. display: flex;
  574. align-items: center;
  575. flex-direction: row;
  576. background-color: #e7e7e7;
  577. height: 30px;
  578. border-radius: 5px;
  579. padding: 0 10px;
  580. flex: 1;
  581. }
  582. .input {
  583. flex: 1;
  584. padding: 0 5px;
  585. height: 24px;
  586. line-height: 24px;
  587. font-size: 16px;
  588. }
  589. .red_num {
  590. position: absolute;
  591. z-index: 10;
  592. height: 34upx;
  593. top: 7upx;
  594. /* #ifdef APP-PLUS */
  595. top: 16rpx;
  596. /* #endif */
  597. left: 120upx;
  598. font-size: 23upx !important;
  599. }
  600. /**
  601. .uni-media-list-body {
  602. height: auto;
  603. }
  604. */
  605. .uni-swipe-action,
  606. .uni-swipe,
  607. .uni-view,
  608. .uni-media-list {
  609. width: 750upx !important;
  610. }
  611. .action_main {
  612. position: fixed;
  613. top: 55px;
  614. /* #ifndef H5 */
  615. top: 15px;
  616. /* #endif */
  617. width: 750upx;
  618. height: 1080upx;
  619. z-index: 10000;
  620. }
  621. .action_base {
  622. position: absolute;
  623. right: 30upx;
  624. width: 300upx;
  625. top: -10rpx;
  626. right: 10rpx;
  627. /* #ifdef APP-PLUS */
  628. top: 140rpx;
  629. /* #endif */
  630. background: #ffffff;
  631. border-radius: 30rpx;
  632. box-shadow: 0 0 20rpx 10rpx rgba(0, 0, 0, .1);
  633. }
  634. .action_base::after {
  635. content: '';
  636. width: 0;
  637. height: 0;
  638. border-left: 20upx solid transparent;
  639. border-right: 20upx solid transparent;
  640. border-bottom: 20upx solid #fff;
  641. position: absolute;
  642. top: -14rpx;
  643. right: 20rpx;
  644. }
  645. .action_item {
  646. color: #000;
  647. height: 100upx;
  648. line-height: 100upx;
  649. margin-left: 30upx;
  650. border-bottom: 1px solid #f5f5f5;
  651. display: flex;
  652. align-items: center;
  653. }
  654. .action_icon {
  655. width: 48rpx;
  656. height: 48rpx;
  657. display: flex;
  658. justify-content: center;
  659. align-items: center;
  660. image {
  661. width: 48rpx;
  662. height: 48rpx;
  663. }
  664. }
  665. .action_item:last-child {
  666. border: none;
  667. }
  668. .action_item_text {
  669. font-size: 30upx;
  670. }
  671. .topTitle {
  672. background-color: #fff;
  673. box-sizing: border-box;
  674. padding: 20rpx 30rpx;
  675. /* #ifdef APP-PLUS */
  676. padding-top: var(--status-bar-height);
  677. /* #endif */
  678. display: flex;
  679. justify-content: space-between;
  680. align-items: center;
  681. width: 100vw;
  682. }
  683. .searchOut {
  684. box-sizing: border-box;
  685. padding: 0 14rpx;
  686. }
  687. .topFont {
  688. font-size: 40rpx;
  689. color: #080E18;
  690. font-weight: bold;
  691. margin-left: 10rpx;
  692. }
  693. .titleLf {
  694. display: flex;
  695. justify-content: flex-end;
  696. align-items: center;
  697. }
  698. .titleLf>image {
  699. width: 40rpx;
  700. height: 40rpx;
  701. margin-left: 30rpx;
  702. }
  703. .searchOut {
  704. box-sizing: border-box;
  705. padding: 0 28rpx;
  706. margin: 0 auto;
  707. }
  708. body {
  709. background-color: #fff;
  710. }
  711. .searchBt {
  712. display: flex;
  713. justify-content: flex-start;
  714. align-items: center;
  715. box-sizing: border-box;
  716. padding-left: 28rpx;
  717. padding-bottom: 10rpx;
  718. border-bottom: 2rpx solid #F2F2F2;
  719. }
  720. .searchBtItem {
  721. margin-right: 40rpx;
  722. display: flex;
  723. justify-content: flex-start;
  724. align-items: center;
  725. }
  726. .searchBtItem>text {
  727. color: #ABACAE;
  728. font-size: 28rpx;
  729. }
  730. .searchBtItem>text:first-child {
  731. font-size: 40rpx;
  732. margin-right: 14rpx;
  733. }
  734. .searchBtItem>image {
  735. width: 40rpx;
  736. height: 40rpx;
  737. margin-right: 14rpx;
  738. }
  739. .searchOut .search {
  740. padding: 14rpx 0;
  741. }
  742. .noData {
  743. width: 100%;
  744. display: flex;
  745. justify-content: center;
  746. align-items: center;
  747. flex-wrap: wrap;
  748. align-content: center;
  749. height: 700rpx;
  750. }
  751. .noData>image {
  752. width: 487rpx;
  753. height: 371rpx;
  754. }
  755. .noData>text {
  756. display: block;
  757. width: 100%;
  758. color: #9298A3;
  759. font-size: 32rpx;
  760. text-align: center;
  761. }
  762. </style>