index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. <template>
  2. <div class="message-wrapper">
  3. <div class="tab-content" ref="pageWrapperDom" @scroll="pageScroll">
  4. <div class="list-wrapper" ref="pageGiveListDom">
  5. <div class="give-list" v-if="currentTabIndex == 0">
  6. <template v-if="giveList.length">
  7. <div class="cell" :class="{ 'cell-center': item.type == 1 || item.type == 3 }"
  8. v-for="(item, index) in giveList" :key="index" @click="clickListItem(item, index)">
  9. <red-dot class="red-dots" v-if="item.unReadMsgCount > 0 && isReadMsg"></red-dot>
  10. <div class="img-wrapper">
  11. <!-- 收到红包 -->
  12. <template v-if="item.type == 1 || item.type == 3">
  13. <img class="icon-avatar" :src="item.userInfo.avatarUrl" />
  14. <img class="icon-give" :src="require('@/assets/svg/icon-get-giveaways-s.svg')" />
  15. </template>
  16. <!-- 发出去红包 -->
  17. <template v-else-if="2">
  18. <img class="icon-big-give" :src="require('@/assets/svg/icon-send-giveaways-s.svg')" />
  19. <img class="icon-mark-give" :src="require('@/assets/svg/icon-send-giveaways-mark.svg')" />
  20. </template>
  21. </div>
  22. <div class="info-wrapper" :class="{ 'info-center': item.type == 1 }">
  23. <div class="left">
  24. <div class="nickname">
  25. <template v-if="item.type == 1">
  26. Get Giveaway
  27. </template>
  28. <template v-else-if="item.type == 2">
  29. {{ item.postTaskLuckdrop.luckdropType === 1 ? 'Send Giveaway' : 'Lottery Giveaway' }}
  30. </template>
  31. <template v-else-if="item.type == 3">
  32. Lottery
  33. </template>
  34. </div>
  35. <div class="time">
  36. {{ moment(item.timestamp).format("MM-DD HH:mm:ss") }}
  37. </div>
  38. </div>
  39. <div class="right">
  40. <div class="msg">
  41. <div class="bold" :class="{
  42. 'align-content':
  43. (item.type == 2 ||
  44. (item.type == 1 && item.status == 1)) &&
  45. item?.amount?.length + item?.currencySymbol?.length > 12,
  46. 'custom-bold': item.rewardType === RewardType.custom
  47. }"
  48. >
  49. <!-- 收到的 -->
  50. <template v-if="item.type == 1">
  51. <!-- 进行中-->
  52. <template v-if="item.status == 0">
  53. In Progress
  54. </template>
  55. <!-- 已完成 -->
  56. <template v-else-if="item.status == 1">
  57. <!-- 已中奖-货币型奖品展示 -->
  58. <template v-if="item.rewardType === RewardType.money">
  59. <span class="blance">
  60. <a-tooltip :title="item.amount">
  61. {{ getBit(item.amount) }}</a-tooltip>
  62. </span>
  63. <div class="coin-type-wrapper">
  64. <span class="coin-type">{{
  65. item.currencySymbol || ""
  66. }}</span>
  67. <img :src="item.currencyIconPath" alt="" />
  68. </div>
  69. </template>
  70. <!-- 已中奖-通用型奖品展示 -->
  71. <template v-else>
  72. <span class="blance cuntom-prize">{{item.customizedReward}}</span>
  73. </template>
  74. </template>
  75. <!-- 已过期 -->
  76. <template v-else-if="item.status == 2">
  77. Timeout
  78. </template>
  79. </template>
  80. <!-- 发出去的 -->
  81. <template v-else-if="item.type == 2">
  82. <!-- 已中奖-货币型奖品展示 -->
  83. <template v-if="item.rewardType === RewardType.money">
  84. <span class="blance">
  85. <a-tooltip :title="'-' + item.amount">
  86. -{{ getBit(item.amount) }}
  87. </a-tooltip>
  88. </span>
  89. <div class="coin-type-wrapper">
  90. <span class="coin-type">{{
  91. item.currencySymbol || ""
  92. }}</span>
  93. <img :src="item.currencyIconPath" alt="" />
  94. </div>
  95. </template>
  96. <!-- 已中奖-通用型奖品展示 -->
  97. <template v-else>
  98. <span class="blance cuntom-prize">
  99. {{item.customizedReward || ''}}<span class="cuntom-prize-icon">X</span>
  100. <span class="cuntom-prize-total">{{item?.postTaskLuckdrop?.totalCount || ''}}</span>
  101. </span>
  102. </template>
  103. </template>
  104. <template v-else-if="item.type == 3">
  105. <template v-if="item.status == 1">In Progress</template>
  106. <template v-else-if="item.status == 2">
  107. Open in {{ item.downTime || '' }}
  108. </template>
  109. <template v-else-if="item.status == 3">
  110. Unfinished
  111. </template>
  112. <template v-else-if="item.status == 4">
  113. <!-- 已中奖-货币型奖品展示 -->
  114. <template v-if="item.rewardType === RewardType.money">
  115. <span class="blance">
  116. <a-tooltip :title="item.amount">
  117. +{{ getBit(item.amount) }}
  118. </a-tooltip>
  119. </span>
  120. <div class="coin-type-wrapper">
  121. <span class="coin-type">{{
  122. item.currencySymbol || ""
  123. }}</span>
  124. <img :src="item.currencyIconPath" alt="" />
  125. </div>
  126. </template>
  127. <!-- 已中奖-通用型奖品展示 -->
  128. <template v-else>
  129. <span class="blance cuntom-prize">{{item.customizedReward}}</span>
  130. </template>
  131. </template>
  132. <template v-else-if="item.status == 5">
  133. Didn't win
  134. </template>
  135. <template v-else-if="item.status == 6">
  136. Giveaway Expired
  137. </template>
  138. </template>
  139. </div>
  140. <!-- 发出的红包显示 -->
  141. <div class="desc" v-if="item.type == 2">
  142. <!-- 未发送-->
  143. <template v-if="item.postTaskLuckdrop.reSendAvailable">
  144. Unpublished
  145. </template>
  146. <!-- 进行中 -->
  147. <template v-else-if="item.status == 1">
  148. <template v-if="item.postTaskLuckdrop && item.postTaskLuckdrop.luckdropType == 2">
  149. {{ item.downTime || '' }}
  150. </template>
  151. <template v-else>
  152. {{ item.postTaskLuckdrop.receivedCount }}/{{
  153. item.postTaskLuckdrop.totalCount
  154. }}
  155. </template>
  156. </template>
  157. <!-- 2:已结束; 3:提前终止-->
  158. <template v-else-if="item.status == 2 || item.status == 3">
  159. <!-- 普通红包 -->
  160. <template v-if="item.postTaskLuckdrop && item.postTaskLuckdrop.luckdropType == 1">
  161. <template v-if="item.status == 2">
  162. (Time expired)
  163. </template>
  164. <template v-if="item.status == 3">
  165. {{item.srcContentId ? '(Termination)' : 'Termination'}}
  166. </template>
  167. <template v-if="item.status == 2 || item.status == 3 && item.srcContentId">
  168. {{ item.postTaskLuckdrop.receivedCount }}/{{
  169. item.postTaskLuckdrop.totalCount
  170. }}
  171. </template>
  172. </template>
  173. <!-- 抽奖红包 -->
  174. <template v-else>
  175. <!-- 自定义奖品类型 结束时显示 Complete -->
  176. {{ item.rewardType === RewardType.custom && item.status == 2 ? 'Complete' : 'Termination' }}
  177. </template>
  178. </template>
  179. <!-- 红包提前终止/退款(进行中)显示-->
  180. <template v-if="item.status == 4">
  181. {{ item.postTaskLuckdrop && item.postTaskLuckdrop.luckdropType == 1 ? 'Terminating' : 'Open in '
  182. + item.downTime || '' }}
  183. </template>
  184. <!-- 进行中或者未发送成功时显示
  185. v-if="item.status == 1 || item.postTaskLuckdrop.reSendAvailable"-->
  186. <div class="desc-bottom-bar">
  187. <!-- 没有终止红包时显示 -->
  188. <div v-if="item.postTaskLuckdrop.terminatedAvailable" class="btn"
  189. @click.stop="terminaHandler(item, index)">
  190. Termination
  191. </div>
  192. <!-- 红包未发出显示 -->
  193. <div class="btn send-btn" v-if="item.postTaskLuckdrop.reSendAvailable"
  194. @click.stop="sendTwitter(item)">
  195. Send
  196. </div>
  197. <div v-else-if="item.srcContentId" class="btn detail-btn"
  198. @click.stop="clickListItem(item, index)">
  199. details
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <!-- 发红包—— 未发出、进行中 隐藏 -->
  205. <img v-if="item.type != 2" class="icon" :src="require('@/assets/svg/icon-cell-arrow-right.svg')" />
  206. </div>
  207. </div>
  208. </div>
  209. </template>
  210. <template v-else>
  211. <img class="icon-empty" :src="require('@/assets/svg/icon-empty-list.svg')" />
  212. </template>
  213. </div>
  214. </div>
  215. </div>
  216. <modal :visible="modalVisible" :title="modalTitle" :content="modalContent" cancelText="Termination"
  217. confirmText="Cancel" @cancel="modalCancel" @confirm="modalConfirm" />
  218. </div>
  219. </template>
  220. <script setup>
  221. import { ref, onMounted, inject, onBeforeUnmount } from "vue";
  222. import modal from "@/view/popup/components/modal.vue";
  223. import redDot from "@/view/components/red-dot.vue";
  224. import { getBit, formatSecondsAsDaysOrTime } from "@/uilts/help";
  225. import { getMineLuckdropRecords } from "@/http/account";
  226. import { terminatedLuckdrop } from "@/http/redPacket";
  227. import { readAllMsgByType, getAllMessageInfo } from "@/http/messageApi"
  228. import { setBadgeInfo, hideBadge } from "@/logic/background/twitter";
  229. import { getChromeStorage } from "@/uilts/chromeExtension";
  230. import { RewardType } from "@/types";
  231. var moment = require("moment");
  232. let currentTabIndex = ref(0);
  233. let userInfo = ref({});
  234. let tabList = ref([
  235. {
  236. label: "ALL",
  237. },
  238. {
  239. label: "Giveaway",
  240. },
  241. {
  242. label: "NFT",
  243. },
  244. ]);
  245. let pageWrapperDom = ref(null);
  246. let pageGiveListDom = ref(null);
  247. let modalVisible = ref(false);
  248. let modalTitle = ref('');
  249. let modalContent = ref('');
  250. let terminaTask = {};
  251. let giveList = ref([]);
  252. let giveReqParams = {
  253. params: {
  254. pageNum: 1,
  255. pageSize: 20,
  256. },
  257. loadMore: false,
  258. };
  259. let isReadMsg = ref(true);
  260. const clickTab = (params, index) => {
  261. currentTabIndex.value = index;
  262. };
  263. /**
  264. * 获取红包列表
  265. */
  266. const getLuckdropRecordsList = () => {
  267. getMineLuckdropRecords({
  268. params: giveReqParams.params,
  269. }).then((res) => {
  270. chrome.runtime.connect({ name: "popup" });
  271. if (res.data && res.data.length) {
  272. if (giveReqParams.params.pageNum < 2) {
  273. giveList.value = res.data;
  274. } else {
  275. let data = giveList.value;
  276. data = data.concat(res.data);
  277. giveList.value = data;
  278. }
  279. downTimeBegin()
  280. giveReqParams.loadMore = false;
  281. }
  282. });
  283. };
  284. const getCurrentList = () => {
  285. getMineLuckdropRecords({
  286. params: {
  287. pageNum: 1,
  288. pageSize: giveList.value.length || 20,
  289. }
  290. }).then((res) => {
  291. if (res.data && res.data.length) {
  292. giveList.value = res.data;
  293. }
  294. })
  295. }
  296. /**
  297. * 点击列表跳转到推文
  298. */
  299. const clickListItem = (params) => {
  300. if (!params.srcContentId) {
  301. return;
  302. }
  303. let twitterUrl = "https://twitter.com/";
  304. let nickName = "";
  305. if (params.type == 1 || params.type == 3) {
  306. nickName = params.userInfo.nickName;
  307. } else if (params.type == 2) {
  308. nickName = userInfo.value.nickName;
  309. }
  310. let url = twitterUrl + nickName + "/status/" + params.srcContentId;
  311. chrome.tabs.create({
  312. url,
  313. });
  314. };
  315. const pageScroll = (e) => {
  316. let wrapperHeight = pageWrapperDom.value.offsetHeight;
  317. let pageGiveListHeight = pageGiveListDom.value.offsetHeight;
  318. let scrollTop = e.target.scrollTop || 0;
  319. if (currentTabIndex.value != 0) {
  320. return;
  321. }
  322. if (
  323. giveReqParams.loadMore === false &&
  324. wrapperHeight + scrollTop >= pageGiveListHeight - 60
  325. ) {
  326. giveReqParams.loadMore = true;
  327. giveReqParams.params.pageNum++;
  328. getLuckdropRecordsList();
  329. }
  330. };
  331. /**
  332. * 点击发送,去发推
  333. */
  334. const sendTwitter = (params) => {
  335. console.log(params);
  336. callEventPageMethod(
  337. "POPUP_PUBLISH_TWITTER_RED_PACK",
  338. {
  339. srcContent: params.postTaskLuckdrop.srcContent,
  340. postId: params.postTaskLuckdrop.postId,
  341. },
  342. function (response) {
  343. console.log("res", response);
  344. }
  345. );
  346. };
  347. /**
  348. * sendMessage
  349. */
  350. const callEventPageMethod = (actionType, data, callback) => {
  351. chrome.runtime.sendMessage(
  352. {
  353. actionType: actionType,
  354. data: data,
  355. },
  356. function (response) {
  357. if (typeof callback === "function") callback(response);
  358. }
  359. );
  360. };
  361. const terminaHandler = (params, index) => {
  362. terminaTask = params;
  363. terminaTask.index = index;
  364. // set font
  365. if (params && params.postTaskLuckdrop && params.postTaskLuckdrop.luckdropType == 2) {
  366. modalTitle.value = `Early Termination of Lottery?`
  367. modalContent.value = `This operation will terminate the lottery process and refund the lottery prizes.`
  368. } else {
  369. modalTitle.value = `Early termination of Giveaway?`
  370. modalContent.value = `The remaining amount will be returned to your wallet within 1 day.`
  371. }
  372. modalVisible.value = true;
  373. };
  374. const modalCancel = () => {
  375. //请求终止接口 id terminaTask.id 、 刷新当前列表、 关闭
  376. modalVisible.value = false;
  377. let index = terminaTask.index;
  378. terminatedLuckdrop({
  379. params: {
  380. luckdropId: terminaTask.id,
  381. },
  382. }).then((res) => {
  383. if (res.code == 0) {
  384. giveList.value[index]["status"] = res.data.status;
  385. giveList.value[index]["postTaskLuckdrop"]["reSendAvailable"] = false;
  386. giveList.value[index]["postTaskLuckdrop"]["terminatedAvailable"] = false;
  387. // 重新拉取
  388. getCurrentList()
  389. }
  390. });
  391. terminaTask = {};
  392. };
  393. const modalConfirm = () => {
  394. modalVisible.value = false;
  395. terminaTask = {};
  396. };
  397. const readAllMsg = ({msgType}, cb) => {
  398. readAllMsgByType({
  399. params: {
  400. msgType
  401. }
  402. }).then(res => {
  403. cb && cb();
  404. })
  405. };
  406. const setMessageCount = () => {
  407. getAllMessageInfo({params: {
  408. }}).then(res => {
  409. if(res.code == 0) {
  410. let {unReadCountTotal = 0, unReadCountWalletDetail = 0, unReadCountTaskLuckdrop = 0} = res.data;
  411. if(unReadCountTotal > 0) {
  412. let text = unReadCountTotal > 99 ? '99+' : unReadCountTotal+'';
  413. setBadgeInfo({data: {text}});
  414. } else {
  415. hideBadge();
  416. }
  417. }
  418. });
  419. }
  420. const getUserInfo = (cb) => {
  421. getChromeStorage("userInfo", (res) => {
  422. if (res && res.accessToken) {
  423. userInfo.value = res;
  424. } else {
  425. userInfo.value = {};
  426. }
  427. cb && cb(res);
  428. });
  429. };
  430. const init = () => {
  431. getUserInfo();
  432. getLuckdropRecordsList();
  433. setMessageCount();
  434. setTimeout(() => {
  435. isReadMsg.value = false;
  436. readAllMsg({msgType: 1}, () => {
  437. setMessageCount();
  438. });
  439. }, 2000);
  440. }
  441. const onMessage = () => {
  442. chrome.runtime.onMessage.addListener(msgListener)
  443. }
  444. const msgListener = (req, sender, sendResponse) => {
  445. sendResponse('ok');
  446. switch (req.actionType) {
  447. case 'CONTENT_POPUP_PAGE_SHOW':
  448. init();
  449. break;
  450. }
  451. }
  452. // 倒计时
  453. const downTimeBegin = () => {
  454. let list = giveList.value || []
  455. let ifDown = false
  456. list.forEach((item) => {
  457. if (item.endTimestamp) {
  458. let time = moment(new Date().getTime())
  459. let endTime = moment(item.endTimestamp + 5000)
  460. let downTime = (endTime - time) || 0
  461. if (downTime > 0) {
  462. item.downTime = formatSecondsAsDaysOrTime(downTime / 1000, false);
  463. ifDown = true;
  464. }
  465. if (item && item.downTime && item.downTime == '00:00:00') {
  466. getCurrentList()
  467. }
  468. }
  469. })
  470. if (ifDown) {
  471. setTimeout(() => {
  472. downTimeBegin()
  473. }, 1000)
  474. }
  475. }
  476. onMounted(() => {
  477. onMessage();
  478. init();
  479. });
  480. onBeforeUnmount(() => {
  481. chrome.runtime.onMessage.removeListener(msgListener);
  482. })
  483. </script>
  484. <style scoped lang="scss">
  485. .message-wrapper {
  486. width: 100%;
  487. height: 100%;
  488. margin-top: 1px;
  489. .tab-bar {
  490. display: flex;
  491. align-items: center;
  492. background-color: #fff;
  493. box-shadow: 0px 0.5px 0px #d1d9dd;
  494. .tab-item {
  495. display: flex;
  496. align-items: center;
  497. justify-content: center;
  498. padding: 14px 0px;
  499. box-sizing: border-box;
  500. border-bottom: 2px solid #fff;
  501. margin: 0 12px;
  502. font-size: 14px;
  503. color: #949494;
  504. cursor: pointer;
  505. }
  506. .active {
  507. border-bottom: 2px solid #1d9bf0;
  508. font-weight: 500;
  509. color: #000;
  510. }
  511. }
  512. .tab-content {
  513. height: 100%;
  514. overflow-y: auto;
  515. .list-wrapper {
  516. min-height: 202px;
  517. .give-list {
  518. min-height: 202px;
  519. position: relative;
  520. .cell {
  521. display: flex;
  522. justify-content: space-between;
  523. min-height: 76px;
  524. box-sizing: border-box;
  525. padding-left: 14px;
  526. position: relative;
  527. cursor: pointer;
  528. .red-dots {
  529. position: absolute;
  530. right: 4px;
  531. top: 4px;
  532. }
  533. .img-wrapper {
  534. position: relative;
  535. width: 38px;
  536. margin-right: 16px;
  537. box-sizing: border-box;
  538. .icon-avatar {
  539. width: 34px;
  540. height: 34px;
  541. border-radius: 50%;
  542. margin-right: 8px;
  543. }
  544. .icon-give {
  545. position: absolute;
  546. right: 1px;
  547. bottom: -1px;
  548. width: 18px;
  549. height: 18px;
  550. }
  551. .icon-big-give {
  552. margin-top: 12px;
  553. width: 34px;
  554. }
  555. .icon-mark-give {
  556. position: absolute;
  557. right: -2px;
  558. top: 31px;
  559. width: 16px;
  560. height: 16px;
  561. }
  562. }
  563. .info-wrapper {
  564. flex: 1;
  565. height: 100%;
  566. display: flex;
  567. justify-content: space-between;
  568. box-sizing: border-box;
  569. padding: 10px 14px 10px 0;
  570. .left {
  571. .nickname {
  572. font-weight: 500;
  573. font-size: 13px;
  574. margin-bottom: 5px;
  575. max-width: 132px;
  576. word-break: break-all;
  577. }
  578. .time {
  579. font-size: 12px;
  580. color: #b0b0b0;
  581. }
  582. }
  583. .right {
  584. display: flex;
  585. align-items: center;
  586. cursor: pointer;
  587. .msg {
  588. display: flex;
  589. align-items: flex-end;
  590. flex-direction: column;
  591. .bold {
  592. font-weight: 500;
  593. font-size: 13px;
  594. text-align: right;
  595. display: flex;
  596. justify-content: flex-end;
  597. align-items: center;
  598. max-width: 140px;
  599. .blance {
  600. margin-left: 3px;
  601. display: inline-block;
  602. max-width: 80px;
  603. word-break: break-all;
  604. line-height: 18px;
  605. color: #e86f00;
  606. }
  607. .cuntom-prize {
  608. max-width: 130px;
  609. word-break: break-word;
  610. text-align: left;
  611. }
  612. .cuntom-prize-icon {
  613. color: #000;
  614. }
  615. .cuntom-prize-total {
  616. color: #000;
  617. word-break: break-word;
  618. }
  619. .coin-type-wrapper {
  620. display: flex;
  621. align-items: center;
  622. }
  623. .coin-type {
  624. margin-left: 3px;
  625. word-break: break-all;
  626. }
  627. img {
  628. margin-left: 4px;
  629. width: 14px;
  630. height: 14px;
  631. }
  632. }
  633. .align-content {
  634. flex-direction: column;
  635. align-items: flex-end;
  636. .blance {
  637. max-width: 130px;
  638. }
  639. }
  640. .desc {
  641. font-size: 12px;
  642. color: #b6b6b6;
  643. margin-top: 5px;
  644. text-align: right;
  645. .desc-bottom-bar {
  646. display: flex;
  647. align-items: center;
  648. justify-content: flex-end;
  649. margin-top: 10px;
  650. .btn {
  651. min-width: 80px;
  652. height: 29px;
  653. padding: 0 8px;
  654. box-sizing: border-box;
  655. font-weight: 400;
  656. font-size: 14px;
  657. cursor: pointer;
  658. text-align: center;
  659. border-radius: 100px;
  660. color: #5e5e5e;
  661. border: 1px solid #dfdfdf;
  662. display: flex;
  663. align-items: center;
  664. justify-content: center;
  665. }
  666. .send-btn {
  667. border: 1px solid #1d9bf0;
  668. color: #1d9bf0;
  669. }
  670. .detail-btn,
  671. .send-btn {
  672. margin-left: 8px;
  673. }
  674. }
  675. }
  676. }
  677. .icon {
  678. width: 18px;
  679. height: 24px;
  680. margin-left: 4px;
  681. margin-right: -5px;
  682. }
  683. }
  684. }
  685. .info-center {
  686. align-items: center;
  687. }
  688. }
  689. .cell-center {
  690. align-items: center;
  691. }
  692. .icon-empty {
  693. position: absolute;
  694. left: 50%;
  695. top: 50%;
  696. transform: translate(-50%, -50%);
  697. }
  698. }
  699. }
  700. }
  701. }
  702. </style>