AccountCard.vue 23 KB

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