index.vue 25 KB

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