AccountCardDesktop.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. <template>
  2. <view class="account-card">
  3. <!-- 折叠/展开按钮 -->
  4. <button class="collapse-btn" @click="toggleExpand">
  5. <cwg-icon name="chevron-right" :size="20" color="#6c8595"
  6. :class="['chevron-icon', { expanded: isExpanded }]" />
  7. </button>
  8. <!-- 标签区域 -->
  9. <view class="labels-container">
  10. <view class="account-number" @click="copy(account.accountNumber)"># {{ account.accountNumber }}</view>
  11. <view class="account-number" @click="copy(account.fwq)">{{ account.fwq }}</view>
  12. <view class="labels">
  13. <template v-for="(label, index) in account.labels" :key="index">
  14. <view v-if="label" class="label-badge">
  15. {{ label }}
  16. </view>
  17. </template>
  18. </view>
  19. </view>
  20. <!-- 主要内容区域(余额和操作按钮) -->
  21. <view class="main-content">
  22. <!-- 余额 -->
  23. <view class="balance">
  24. <text class="balance-number">{{ balanceInteger }}</text>
  25. <text class="balance-decimal">{{ balanceDecimal }} {{ account.currency }}</text>
  26. </view>
  27. <!-- 移动端圆形按钮组(≤1100px显示) -->
  28. <view class="mobile-buttons">
  29. <!-- 交易 -->
  30. <template v-for="(item, index) in circleButtons" :key="index">
  31. <view class="circle-btn" :class="{ 'is-disabled': item.disabled }" @click="handleAction1(item)"
  32. v-if="!item.needDemo">
  33. <view class="circle-icon" :class="{ 'primary': item.primary }">
  34. <cwg-icon :name="item.icon" :size="16" :color="item.color" />
  35. </view>
  36. <text class="circle-label" v-t="item.label" />
  37. </view>
  38. </template>
  39. <!-- 更多(三点) -->
  40. <cwg-dropdown @open="onOpen" @close="onClose" :menu-list="customMenuList"
  41. @menuClick="handleCustomClick">
  42. <view class="circle-btn">
  43. <view class="circle-icon">
  44. <cwg-icon name="crm-ellipsis-vertical" :size="16" color="#2e3a47" />
  45. </view>
  46. <text class="circle-label" v-t="'Latest.More'" />
  47. </view>
  48. </cwg-dropdown>
  49. </view>
  50. <!-- 桌面端按钮组(>1100px显示) -->
  51. <view class="desktop-buttons">
  52. <template v-for="(item, index) in actionButtons" :key="index">
  53. <view class="action-btn" :class="{ 'primary': item.primary, 'is-disabled': item.disabled }"
  54. @click="handleAction1(item)" v-if="!item.needDemo">
  55. <span class="btn-icon">
  56. <cwg-icon :name="item.icon" :size="16" :color="item.color" />
  57. </span>
  58. <text v-t="item.label" />
  59. </view>
  60. </template>
  61. <cwg-dropdown @open="onOpen" @close="onClose" :menu-list="customMenuList"
  62. @menuClick="handleCustomClick">
  63. <view class="action-btn icon-only">
  64. <cwg-icon name="crm-ellipsis-vertical" :size="16" color="#2e3a47" />
  65. </view>
  66. </cwg-dropdown>
  67. </view>
  68. </view>
  69. <view ref="infoBottomRef" class="info-bottom" :style="{
  70. height: isExpanded ? infoBottomHeight + 'px' : '0px',
  71. transition: 'height 281ms cubic-bezier(0.4, 0, 0.2, 1)'
  72. }">
  73. <!-- 底部信息区域(折叠时隐藏) -->
  74. <view class="info-section">
  75. <view class="info-column">
  76. <cwg-label-line-value :label="t('Label.Leverage')" :value="account.actualLeverage" />
  77. <cwg-label-line-value :label="t('Documentary.console.item5')" :value="account.floatingPL" />
  78. <cwg-label-line-value :label="t('Label.Balance')" :value="account.balanceWithSymbol" />
  79. </view>
  80. <view class="info-column">
  81. <cwg-label-line-value :label="t('Label.Equity')" :value="account.equityWithSymbol" />
  82. <cwg-label-line-value :label="t('Label.Credit')" :value="account.creditWithSymbol" />
  83. <cwg-label-line-value :label="t('Documentary.console.item3')" :value="account.platform" />
  84. </view>
  85. </view>
  86. </view>
  87. <!-- 通知区域(预留) -->
  88. <view class="notificators"></view>
  89. <TerminalDialog v-model:visible="terminalDialogVisible" />
  90. <TerminalChangePasswordDialog v-model:visible="terminalChangePasswordDialogVisible" :pwdType="pwdType"
  91. :account="account" />
  92. <TerminalInfoDialog v-model:visible="terminalInfoDialogVisible" :accountNumber="accountInfo.login"
  93. :form="accountInfo" :fieldList="fieldList" />
  94. </view>
  95. </template>
  96. <script setup lang="ts">
  97. import { ref, computed, onMounted, nextTick, onBeforeUnmount } from 'vue';
  98. import useRouter from "@/hooks/useRouter";
  99. const router = useRouter();
  100. import { useI18n } from 'vue-i18n';
  101. const { t } = useI18n();
  102. import TerminalDialog from './TerminalDialog.vue'
  103. import TerminalChangePasswordDialog from './TerminalChangePasswordDialog.vue'
  104. import TerminalInfoDialog from './TerminalInfoDialog.vue'
  105. const props = defineProps<{
  106. account: Account;
  107. }>();
  108. const accountInfo = ref(props.account)
  109. // 定义账户数据类型
  110. export interface Account {
  111. labels: string[]; // 标签数组,如 ['真实', 'MT4', 'Standard']
  112. accountNumber: string; // 账号,如 '85319215'
  113. nickName: string; // 昵称,如 '标准账户'
  114. balance: number; // 余额数字
  115. currency: string; // 货币,如 'USD'
  116. actualLeverage: string; // 实际杠杆,如 '1:2000'
  117. maxLeverage: string; // 调整杠杆,如 '1:2000'
  118. floatingPL: string; // 浮动盈亏,如 '0.00 USD'
  119. creditWithSymbol: string; // 可用保证金,如 '0.00 USD'
  120. equityWithSymbol: string; // 净值,如 '0.00 USD'
  121. platform: string; // 平台,如 'MT4'
  122. server: string; // 服务器,如 'Exness-Real28'
  123. login: string; // 登录名,如 '85319215'
  124. balanceWithSymbol: string; // 余额,如 '85319215'
  125. }
  126. const isDemo = computed(() => accountInfo.value.listType == 'demo')
  127. const closeFunctionOpen = (code) => {
  128. console.log(code, 121212);
  129. const closeFunctions = accountInfo.value.closeFunctions || ""
  130. if (closeFunctions == null || closeFunctions === "") {
  131. return true;
  132. }
  133. return String(closeFunctions).indexOf(String(code)) === -1;
  134. }
  135. // 圆形按钮数据
  136. const circleButtons = ref([
  137. { key: 'trade', label: 'Shop.Index.Transaction', icon: 'crm-trade', action: 'trade', needDemo: false, primary: true, disabled: false, color: '#fff' },
  138. { key: 'deposit', label: 'Home.page_customer.item2', icon: 'crm-deposit', action: 'deposit', needDemo: isDemo.value, disabled: !closeFunctionOpen('1'), color: '#2e3a47' },
  139. { key: 'withdraw', label: 'Home.page_customer.item3', icon: 'crm-withdraw', action: 'withdraw', needDemo: isDemo.value, disabled: !closeFunctionOpen('2'), color: '#2e3a47' },
  140. { key: 'transfer', label: 'Custom.Index.Transfer', icon: 'crm-transfer', action: 'transfer', needDemo: isDemo.value, disabled: !(closeFunctionOpen('5') && closeFunctionOpen('6') && closeFunctionOpen('3')), color: '#2e3a47' }
  141. ])
  142. // 普通按钮数据
  143. const actionButtons = computed(() => [
  144. { key: 'trade', label: 'Shop.Index.Transaction', icon: 'crm-trade', color: '#fff', primary: true, action: 'trade', needDemo: false, disabled: false },
  145. { key: 'deposit', label: 'Home.page_customer.item2', icon: 'crm-deposit', color: '#2e3a47', primary: false, action: 'deposit', needDemo: isDemo.value, disabled: !closeFunctionOpen('1') },
  146. { key: 'withdraw', label: 'Home.page_customer.item3', icon: 'crm-withdraw', color: '#2e3a47', primary: false, action: 'withdraw', needDemo: isDemo.value, disabled: !closeFunctionOpen('2') },
  147. { key: 'transfer', label: 'Custom.Index.Transfer', icon: 'crm-transfer', color: '#2e3a47', primary: false, action: 'transfer', needDemo: isDemo.value, disabled: !(closeFunctionOpen('5') && closeFunctionOpen('6') && closeFunctionOpen('3')) }
  148. ])
  149. const fieldList = ref([
  150. { label: t('Custom.PaymentHistory.AccountType'), key: 'nickname', copyable: false },
  151. { label: t('Label.Leverage'), key: 'actualLeverage', copyable: false },
  152. { label: t('Label.FloatingPL'), key: 'floatingPL', copyable: false },
  153. { label: t('Label.Balance'), key: 'balanceWithSymbol', copyable: false },
  154. { label: t('Label.Equity'), key: 'equityWithSymbol', copyable: false },
  155. { label: t('Label.Credit'), key: 'creditWithSymbol', copyable: false },
  156. { label: t('Documentary.console.item3'), key: 'platform', copyable: false },
  157. { label: t('Documentary.console.item4'), key: 'login', copyable: true }
  158. ])
  159. const nickName = ref(accountInfo.value.nickName)
  160. const infoBottomRef = ref(null);
  161. const infoBottomHeight = ref(0);
  162. // 测量高度
  163. const updateSubmenuHeight = () => {
  164. const el = infoBottomRef.value.$el;
  165. if (el) {
  166. // 获取内容实际高度(可能需要暂时移除过渡影响)
  167. const height = el.scrollHeight || el.offsetHeight;
  168. if (height > 0) {
  169. infoBottomHeight.value = height;
  170. }
  171. }
  172. };
  173. // 折叠状态
  174. const isExpanded = ref(false);
  175. // 切换折叠
  176. const toggleExpand = () => {
  177. isExpanded.value = !isExpanded.value;
  178. if (isExpanded.value) {
  179. nextTick(() => {
  180. updateSubmenuHeight();
  181. });
  182. }
  183. };
  184. const terminalDialogVisible = ref(false)
  185. const terminalChangePasswordDialogVisible = ref(false)
  186. const terminalInfoDialogVisible = ref(false)
  187. const pwdType = ref(1)
  188. const handleAction1 = (item) => {
  189. if (item.disabled) {
  190. uni.showToast({
  191. title: t('news_add_field.Des.item1'),
  192. icon: 'none'
  193. })
  194. return
  195. }
  196. handleAction(item.action, item)
  197. }
  198. // 处理按钮操作
  199. const handleAction = (type: string) => {
  200. switch (type) {
  201. case 'trade':
  202. terminalDialogVisible.value = true
  203. break;
  204. case 'changePassword1':
  205. pwdType.value = 1
  206. terminalChangePasswordDialogVisible.value = true
  207. break;
  208. case 'changePassword2':
  209. pwdType.value = 2
  210. terminalChangePasswordDialogVisible.value = true
  211. break;
  212. case 'info':
  213. console.log(type);
  214. terminalInfoDialogVisible.value = true
  215. break;
  216. case 'deposit':
  217. toDeposit()
  218. break;
  219. case 'withdraw':
  220. toWithdraw()
  221. break;
  222. case 'transfer':
  223. toTransfer()
  224. break;
  225. case 'position':
  226. toPosition()
  227. break;
  228. case 'history':
  229. toHistory()
  230. break;
  231. case 'payment-history':
  232. toPaymentHistory()
  233. break;
  234. default:
  235. break;
  236. }
  237. };
  238. const customMenuList = computed(() => !isDemo.value ? [
  239. { label: t('Ib.Report.Tit1'), type: 'history' },
  240. { label: t('Ib.Report.Tit4'), type: 'position' },
  241. { label: t('Home.page_customer.item4'), type: 'payment-history' },
  242. { label: t('Documentary.TundManagement.item29'), type: 'info' },
  243. { label: t('vu.item3'), type: 'changePassword1' },
  244. { label: t('vu.item4'), type: 'changePassword2' }
  245. ] : [
  246. { label: t('Ib.Report.Tit1'), type: 'history' },
  247. { label: t('Ib.Report.Tit4'), type: 'position' },
  248. { label: t('Documentary.TundManagement.item29'), type: 'info' }
  249. ])
  250. const handleCustomClick = (item, index) => {
  251. handleAction(item.value.type)
  252. }
  253. // 复制文本
  254. const copy = (text: string) => {
  255. uni.setClipboardData({ data: text });
  256. };
  257. // 按钮对应的操作方法
  258. const toHistory = () => {
  259. router.push(`/pages/customer/trade-history?login=${accountInfo.value.login}`)
  260. }
  261. // 按钮对应的操作方法
  262. const toPosition = () => {
  263. router.push(`/pages/customer/trade-position?login=${accountInfo.value.login}`)
  264. }
  265. // 按钮对应的操作方法
  266. const toPaymentHistory = () => {
  267. router.push(`/pages/customer/payment-history?login=${accountInfo.value.login}`)
  268. }
  269. // 按钮对应的操作方法
  270. const toDeposit = () => {
  271. router.push(`/pages/customer/deposit-select?login=${accountInfo.value.login}&type=${accountInfo.value.type}&balance=${accountInfo.value.balance}&currency=${accountInfo.value.currency}`)
  272. }
  273. const toWithdraw = () => {
  274. router.push(`/pages/customer/withdrawal-select?login=${accountInfo.value.login}&type=${accountInfo.value.type}&balance=${accountInfo.value.balance}&currency=${accountInfo.value.currency}`)
  275. }
  276. const toTransfer = () => {
  277. router.push(`/pages/customer/transfer?login=${accountInfo.value.login}&type=${accountInfo.value.type}&balance=${accountInfo.value.balance}&currency=${accountInfo.value.currency}`)
  278. }
  279. // 格式化余额,拆分为整数和小数部分
  280. const balanceInteger = computed(() => {
  281. return Math.floor(accountInfo.value.balance).toString();
  282. });
  283. const balanceDecimal = computed(() => {
  284. const parts = accountInfo.value.balance.toFixed(2).split('.');
  285. return parts[1] ? '.' + parts[1] : '.00';
  286. });
  287. // 在组件挂载后初始化高度
  288. onMounted(() => {
  289. nextTick(() => {
  290. updateSubmenuHeight();
  291. });
  292. window.addEventListener('resize', handleResize);
  293. isExpanded.value = accountInfo.value.isExpanded;
  294. });
  295. // 监听窗口 resize
  296. const handleResize = () => {
  297. if (isExpanded.value) {
  298. updateSubmenuHeight();
  299. }
  300. };
  301. onBeforeUnmount(() => {
  302. window.removeEventListener('resize', handleResize);
  303. });
  304. </script>
  305. <style scoped lang="scss">
  306. @import '@/uni.scss';
  307. .account-card {
  308. border-radius: px2rpx(16);
  309. padding: px2rpx(16);
  310. margin-bottom: px2rpx(16);
  311. position: relative;
  312. border: 1px solid rgba(108, 133, 149, 0.12);
  313. color: #2e3a47;
  314. .collapse-btn {
  315. position: absolute;
  316. top: px2rpx(12);
  317. right: px2rpx(12);
  318. background: transparent;
  319. border: none;
  320. padding: 0;
  321. cursor: pointer;
  322. color: #6c8595;
  323. width: px2rpx(32);
  324. height: px2rpx(32);
  325. display: flex;
  326. align-items: center;
  327. justify-content: center;
  328. .chevron-icon {
  329. transform: rotate(90deg);
  330. transition: transform 0.3s;
  331. &.expanded {
  332. transform: rotate(270deg);
  333. }
  334. }
  335. }
  336. .labels-container {
  337. display: flex;
  338. align-items: center;
  339. flex-wrap: wrap;
  340. gap: px2rpx(8);
  341. margin-bottom: px2rpx(16);
  342. padding-right: px2rpx(40); // 为折叠按钮留出空间
  343. .labels {
  344. display: flex;
  345. gap: px2rpx(8);
  346. }
  347. .label-badge {
  348. background-color: rgba(108, 133, 149, 0.08);
  349. border-radius: px2rpx(4);
  350. padding: px2rpx(4) px2rpx(8);
  351. font-size: px2rpx(12);
  352. color: #6c8595;
  353. font-weight: 500;
  354. }
  355. .account-number {
  356. font-size: px2rpx(18);
  357. font-weight: 600;
  358. line-height: 1.3;
  359. cursor: pointer;
  360. color: #2e3a47;
  361. &:hover {
  362. color: #1e2a3a;
  363. }
  364. }
  365. .account-nickname {
  366. font-size: px2rpx(14);
  367. color: #6c8595;
  368. }
  369. }
  370. .main-content {
  371. .balance {
  372. margin-bottom: px2rpx(16);
  373. .balance-number {
  374. font-size: px2rpx(32);
  375. font-weight: 700;
  376. }
  377. .balance-decimal {
  378. font-size: px2rpx(16);
  379. color: #6c8595;
  380. margin-left: px2rpx(4);
  381. }
  382. }
  383. // 移动端按钮组(默认显示)
  384. .mobile-buttons {
  385. display: flex;
  386. justify-content: center;
  387. gap: px2rpx(0);
  388. margin-bottom: px2rpx(16);
  389. flex-wrap: wrap;
  390. .circle-btn {
  391. display: flex;
  392. flex-direction: column;
  393. align-items: center;
  394. cursor: pointer;
  395. width: px2rpx(64);
  396. .circle-icon {
  397. width: px2rpx(48);
  398. height: px2rpx(48);
  399. border-radius: 50%;
  400. background-color: #f5f7f9;
  401. display: flex;
  402. align-items: center;
  403. justify-content: center;
  404. color: #2e3a47;
  405. transition: background-color 0.2s;
  406. &.primary {
  407. background-color: var(--color-navy-700);
  408. color: #fff;
  409. }
  410. &:hover {
  411. background-color: #e9ecef;
  412. }
  413. svg {
  414. width: px2rpx(24);
  415. height: px2rpx(24);
  416. }
  417. }
  418. .circle-label {
  419. font-size: px2rpx(12);
  420. margin-top: px2rpx(4);
  421. color: #6c8595;
  422. }
  423. }
  424. }
  425. // 桌面端按钮组(默认隐藏,屏幕>1100px时显示)
  426. .desktop-buttons {
  427. display: none;
  428. .action-btn {
  429. background: transparent;
  430. border: 1px solid rgba(108, 133, 149, 0);
  431. border-radius: px2rpx(8);
  432. padding: px2rpx(8) px2rpx(20);
  433. font-size: px2rpx(14);
  434. color: #2e3a47;
  435. display: inline-flex;
  436. align-items: center;
  437. justify-content: center;
  438. gap: px2rpx(8);
  439. cursor: pointer;
  440. transition: all 0.2s;
  441. height: px2rpx(40);
  442. box-sizing: border-box;
  443. background-color: rgba(108, 133, 149, 0.08);
  444. &.primary {
  445. background-color: var(--color-navy-700);
  446. color: #fff;
  447. &:hover {
  448. background-color: var(--color-navy-600);
  449. }
  450. }
  451. &:hover {
  452. border: 1px solid rgba(108, 133, 149, 0.2);
  453. }
  454. .btn-icon {
  455. display: flex;
  456. align-items: center;
  457. svg {
  458. width: px2rpx(18);
  459. height: px2rpx(18);
  460. }
  461. }
  462. &.icon-only {
  463. padding: px2rpx(8);
  464. }
  465. }
  466. }
  467. .is-disabled {
  468. cursor: not-allowed;
  469. opacity: 0.5;
  470. }
  471. }
  472. .info-section {
  473. display: flex;
  474. gap: px2rpx(24);
  475. padding: px2rpx(16) 0;
  476. border-top: 1px solid rgba(108, 133, 149, 0.12);
  477. border-bottom: 1px solid rgba(108, 133, 149, 0.12);
  478. margin: px2rpx(16) 0;
  479. .info-column {
  480. flex: 1;
  481. display: flex;
  482. flex-direction: column;
  483. gap: px2rpx(12);
  484. }
  485. .info-item {
  486. display: flex;
  487. justify-content: space-between;
  488. align-items: flex-end;
  489. font-size: px2rpx(14);
  490. .label {
  491. color: #6c8595;
  492. }
  493. .line {
  494. flex: 1;
  495. height: 1px;
  496. border-top: 1px dashed rgba(108, 133, 149, 0.5);
  497. margin-bottom: px2rpx(1);
  498. }
  499. .value {
  500. font-weight: 500;
  501. color: #2e3a47;
  502. }
  503. }
  504. }
  505. @media screen and (max-width: 768px) {
  506. .info-section {
  507. flex-direction: column;
  508. gap: px2rpx(12);
  509. }
  510. }
  511. .extra-actions {
  512. display: flex;
  513. align-items: center;
  514. gap: px2rpx(8);
  515. margin-bottom: px2rpx(12);
  516. .copy-row {
  517. display: flex;
  518. align-items: center;
  519. gap: px2rpx(8);
  520. font-size: px2rpx(14);
  521. .label {
  522. color: #6c8595;
  523. min-width: px2rpx(70);
  524. }
  525. .value {
  526. flex: 1;
  527. color: #2e3a47;
  528. font-family: monospace;
  529. }
  530. .copy-btn {
  531. background: transparent;
  532. border: 1px solid rgba(108, 133, 149, 0);
  533. padding: 0;
  534. cursor: pointer;
  535. color: #6c8595;
  536. width: px2rpx(32);
  537. height: px2rpx(32);
  538. display: flex;
  539. align-items: center;
  540. justify-content: center;
  541. box-sizing: border-box;
  542. svg {
  543. width: px2rpx(20);
  544. height: px2rpx(20);
  545. }
  546. &:hover {
  547. background-color: rgba(108, 133, 149, 0.05);
  548. border: 1px solid rgba(108, 133, 149, 0.2);
  549. }
  550. }
  551. }
  552. .change-password-btn {
  553. background: transparent;
  554. box-sizing: border-box;
  555. border: 1px solid rgba(108, 133, 149, 0);
  556. border-radius: px2rpx(8);
  557. padding: px2rpx(8) px2rpx(16);
  558. font-size: px2rpx(14);
  559. color: #2e3a47;
  560. display: inline-flex;
  561. gap: px2rpx(8);
  562. cursor: pointer;
  563. margin: 0;
  564. // transition: all 0.2s;
  565. .btn-icon svg {
  566. width: px2rpx(16);
  567. height: px2rpx(16);
  568. }
  569. &:hover {
  570. background-color: rgba(108, 133, 149, 0.05);
  571. border: 1px solid rgba(108, 133, 149, 0.2);
  572. }
  573. }
  574. }
  575. .info-bottom {
  576. overflow: hidden;
  577. }
  578. .notificators {
  579. // 预留通知区域
  580. }
  581. }
  582. // 响应式:屏幕宽度 > 1100px 时,隐藏移动端按钮,显示桌面端按钮
  583. @media screen and (min-width: 1100px) {
  584. .account-card {
  585. .main-content {
  586. .mobile-buttons {
  587. display: none;
  588. }
  589. .desktop-buttons {
  590. display: flex;
  591. gap: px2rpx(8);
  592. justify-content: flex-end;
  593. }
  594. }
  595. }
  596. }
  597. </style>