index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <cwg-header :title="t('Documentary.title')" :showBack="false" />
  4. <uni-loading v-if="loading" />
  5. <uni-row v-else class="demo-uni-row uni-row1" :gutter="20">
  6. <uni-col :xs="24" :sm="12" :md="24" :lg="24" :xl="24" class="mb-3">
  7. <cwg-combox :clearable="false" v-model:value="login"
  8. :options="loginOptions.map(item => ({
  9. text: item.platform + ' - ' + item.login + ' - ' + groupTypeName(item.type) + ' - ' + t('Custom.Deposit.AvailableBalance') + groupCurrency(item.currency) + item.balance,
  10. value: item
  11. }))" :placeholder="locale === 'es'?'Selecciona':t('placeholder.choose')" @change="handleCommand"/>
  12. </uni-col>
  13. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="uni-col-left">
  14. <uni-row :gutter="10">
  15. <uni-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
  16. <view class="custom-money">
  17. <view class="left">
  18. <view class="tit">
  19. <text>{{ t('Documentary.console.item5') }}</text>
  20. </view>
  21. <view class="num red">
  22. <text>{{ numberFormat(ChartSetDate.position || '0.00') }}</text>
  23. </view>
  24. </view>
  25. </view>
  26. </uni-col>
  27. <!-- <uni-col :xs="24" :sm="12" :md="isDealLogin ? 8 : 12" :lg="isDealLogin ? 4 : 6" :xl="isDealLogin ? 4 : 6">-->
  28. <uni-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
  29. <view class="custom-money">
  30. <view class="left">
  31. <view class="tit">
  32. <text>{{ t('Documentary.console.item6') }}</text>
  33. </view>
  34. <view class="num">
  35. <text>{{ numberFormat(ChartSetDate.equity || '0.00') }}</text>
  36. </view>
  37. </view>
  38. <view class="right">
  39. <view class="tit">
  40. <text>{{ t('Documentary.console.item9') }}</text>
  41. </view>
  42. <view class="num">
  43. <text>{{ numberFormat(ChartSetDate.equityIncrement || '0.00') }}</text>
  44. </view>
  45. </view>
  46. </view>
  47. </uni-col>
  48. <!-- <uni-col :xs="24" :sm="12" :md="isDealLogin ? 8 : 12" :lg="isDealLogin ? 4 : 6" :xl="isDealLogin ? 4 : 6">-->
  49. <uni-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
  50. <view class="custom-money">
  51. <view class="left">
  52. <view class="tit">
  53. <text>{{ t('Documentary.console.item7') }}</text>
  54. </view>
  55. <view class="num">
  56. <text>{{ numberFormat(ChartSetDate.balance || '0.00') }}</text>
  57. </view>
  58. </view>
  59. <view class="right">
  60. <view class="tit">
  61. <text>{{ t('Documentary.console.item9') }}</text>
  62. </view>
  63. <view class="num">
  64. <text>{{ numberFormat(ChartSetDate.balanceIncrement || '0.00') }}</text>
  65. </view>
  66. </view>
  67. </view>
  68. </uni-col>
  69. <!-- <uni-col :xs="24" :sm="12" :md="8" :lg="4" :xl="4" v-if="isDealLogin">-->
  70. <!-- <view class="custom-money">-->
  71. <!-- <view class="left">-->
  72. <!-- <view class="tit">-->
  73. <!-- <text>{{ t('Documentary.console.item8') }}</text>-->
  74. <!-- </view>-->
  75. <!-- <view class="num">-->
  76. <!-- <text>{{ numberFormat(ChartSetDate.profit || '0.00') }}</text>-->
  77. <!-- </view>-->
  78. <!-- </view>-->
  79. <!-- <view class="right">-->
  80. <!-- <view class="tit">-->
  81. <!-- <text>{{ t('Documentary.console.item9') }}</text>-->
  82. <!-- </view>-->
  83. <!-- <view class="num">-->
  84. <!-- <text>{{ numberFormat(ChartSetDate.profitIncrement || '0.00') }}</text>-->
  85. <!-- </view>-->
  86. <!-- </view>-->
  87. <!-- </view>-->
  88. <!-- </uni-col>-->
  89. </uni-row>
  90. </uni-col>
  91. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="uni-col-right">
  92. <view class="dashboard-container">
  93. <view class="account-info1" v-if="isDealLogin">
  94. <uni-row>
  95. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  96. <view class="custom-money custom-money-left">
  97. <view class="header">
  98. <view class="tit">
  99. <text class="tab h3">{{ t('Documentary.console.item23') }}</text>
  100. </view>
  101. <view class="num" @click="toDocumentary1">
  102. <cwg-icon name="crm-sz" :size="18" color="#6c8595" />
  103. </view>
  104. </view>
  105. <view class="bottomCol">
  106. <uni-row>
  107. <uni-col :xs="24" :sm="24" :md="12" :lg="6" :xl="6">
  108. <view class="bo-left1">
  109. <view>
  110. <text>{{ t('Documentary.console.item26') }}</text>
  111. </view>
  112. <view class="blue-font">
  113. <text>{{ numberFormat(dealDate.followNum || '0') }}</text>
  114. </view>
  115. </view>
  116. </uni-col>
  117. <uni-col :xs="24" :sm="24" :md="12" :lg="6" :xl="6">
  118. <view class="bo-left1">
  119. <view>
  120. <text>{{ t('Documentary.console.item9') }}</text>
  121. </view>
  122. <view class="blue-font">
  123. <text>{{ numberFormat(dealDate.followNumIncrement || '0') }}</text>
  124. </view>
  125. </view>
  126. </uni-col>
  127. <uni-col :xs="24" :sm="24" :md="12" :lg="6" :xl="6">
  128. <view class="bo-left1">
  129. <view>
  130. <text>{{ t('Documentary.console.item29') }}</text>
  131. </view>
  132. <view class="blue-font">
  133. <text>{{ numberFormat(dealDate.position || '0') }}</text>
  134. </view>
  135. </view>
  136. </uni-col>
  137. <uni-col :xs="24" :sm="24" :md="12" :lg="6" :xl="6">
  138. <view class="bo-right1">
  139. <view>
  140. <text>{{ t('Documentary.console.item30') }}</text>
  141. </view>
  142. <view class="blue-font">
  143. <text>{{ numberFormat(dealDate.closed || '0') }}</text>
  144. </view>
  145. </view>
  146. </uni-col>
  147. </uni-row>
  148. </view>
  149. </view>
  150. </uni-col>
  151. </uni-row>
  152. </view>
  153. <view class="account-info1" v-else>
  154. <uni-row>
  155. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  156. <view class="custom-money custom-money-right">
  157. <view class="header">
  158. <view class="tit">
  159. <view class="tab h3">{{ t('Documentary.console.item27') }}</view>
  160. </view>
  161. <view class="num">
  162. <view class="btn crm-cursor" @click="dialogFllowApplyOpen">
  163. +
  164. <text>{{ t('Documentary.TundManagement.item12') }}</text>
  165. </view>
  166. </view>
  167. </view>
  168. <view class="bottom">
  169. <view class="tab">
  170. <cwg-tabel :data="SubscribeProfitDate" class="crm_tab" :api="listApi" :columns="[
  171. { label: t('Documentary.console.item32'), prop: 'nickname', align: 'center', slot: 'nickname' },
  172. { label: t('Documentary.console.item33'), prop: 'nickname2', align: 'center', slot: 'nickname2' },
  173. { label: t('Documentary.console.item34'), prop: 'startTime', align: 'center', slot: 'startTime' },
  174. { label: t('Documentary.console.item35'), prop: 'endTime', align: 'center', slot: 'endTime' }
  175. ]" style="width: 100%" :show-operation="false" :showPagination="false">
  176. <template #nickname="{ row }">
  177. <text>{{ row.nickname || '--' }}</text>
  178. </template>
  179. <template #nickname2="{ row }">
  180. <text>{{ row.nickname || '--' }}</text>
  181. </template>
  182. <template #startTime="{ row }">
  183. <text>{{ row.startTime || '--' }}</text>
  184. </template>
  185. <template #endTime="{ row }">
  186. <text>{{ row.endTime || '--' }}</text>
  187. </template>
  188. </cwg-tabel>
  189. </view>
  190. </view>
  191. </view>
  192. </uni-col>
  193. </uni-row>
  194. </view>
  195. </view>
  196. </uni-col>
  197. </uni-row>
  198. <!-- 申请成为信号源弹窗 -->
  199. <applySignalDialog :visible="isApplySignalVisible" :loginOptions="loginOptions"
  200. @close="isApplySignalVisible = false" @confirm="onApplySignalConfirm" />
  201. </cwg-page-wrapper>
  202. </template>
  203. <script setup>
  204. import { ref, computed, watch, onMounted, nextTick } from 'vue'
  205. import { useI18n } from 'vue-i18n'
  206. import useRouter from '@/hooks/useRouter'
  207. import { ibApi } from '@/service/ib'
  208. import config from '@/config/index'
  209. import useUserStore from '@/stores/use-user-store'
  210. import { useStorage } from '@/hooks/useStorage'
  211. import QrCode from '@/components/QrCode.vue'
  212. import applySignalDialog from './components/applySignalDialog.vue'
  213. import { useFilters } from '@/composables/useFilters'
  214. import { isAfterJuly28 } from '@/utils/dateUtils'
  215. import { documentaryApi } from '@/service/documentary'
  216. const { t, locale } = useI18n()
  217. const loading = ref(false)
  218. const router = useRouter()
  219. const { Code } = config
  220. const { userInfo } = useUserStore()
  221. const { numberFormat } = useFilters()
  222. const listApi = ref(documentaryApi.followDailySubscribeProfit)
  223. const ibData = ref({
  224. customAmount: 0,
  225. ibAmount: 0,
  226. },
  227. )
  228. const selectedSpreadId = ref('')
  229. const spreadList = ref([])
  230. const excludeShowLoginTypes = ref([])
  231. const pammManagerValid = ref()
  232. const dialogPercent = ref(false)
  233. const dialogPercentData = ref({
  234. oldPercent: '',
  235. mamListId: '',
  236. oldOwnerId: '',
  237. oldAccountId: '',
  238. percent: '',
  239. })
  240. const getCustomLoginDown = async () => {
  241. const res = await documentaryApi.followCustomDropdown()
  242. if (res.code === Code.StatusOK) {
  243. if (res.data?.length > 0) {
  244. const options = res.data[0]
  245. login.value = res.data[0]
  246. loginOptions.value = res.data
  247. console.log(res.data)
  248. isDealLogin.value = options.isDealLogin
  249. ChartSet.value = {
  250. login: options.login,
  251. leverage: '1:' + options.leverage,
  252. platform: options.platform,
  253. groupTypeName: options.groupTypeName,
  254. type: options.type,
  255. balance: options.balance,
  256. currency: options.currency || '',
  257. }
  258. }
  259. } else {
  260. uni.showToast({ title: res.msg, icon: 'none' })
  261. }
  262. }
  263. const loginOptions = ref([])
  264. const ChartSet = ref({})
  265. const ChartSetDate = ref({})
  266. const isDealLogin = ref(false)
  267. const dealDate = ref({})
  268. const SubscribeProfitDate = ref([])
  269. const login = ref('')
  270. const groupTypeName = (type) => {
  271. if (!type) return '--'
  272. if (type == 1) return t('AccountType.ClassicAccount')
  273. if (type == 2) return t('AccountType.SeniorAccount')
  274. if (type == 5) return t('AccountType.SpeedAccount')
  275. if (type == 6) return t('AccountType.SpeedAccount')
  276. if (type == 7) return t('AccountType.StandardAccount')
  277. if (type == 8) return t('AccountType.CentAccount')
  278. return type
  279. }
  280. const groupCurrency = (type) => {
  281. console.log(type, 'usd')
  282. if (type == 'GBP') {
  283. return ': £'
  284. } else if (type == 'USD') {
  285. return ': $'
  286. } else if (type == 'EUR') {
  287. return ': €'
  288. } else if (type == 'USC') {
  289. return ': ¢'
  290. } else {
  291. return ': $'
  292. }
  293. }
  294. const handleCommand = (value) => {
  295. const data = { ...value }
  296. isDealLogin.value = data.isDealLogin
  297. ChartSet.value = {
  298. login: data.login,
  299. leverage: '1:' + data.leverage,
  300. platform: data.platform,
  301. groupTypeName: data.groupTypeName,
  302. type: data.type,
  303. balance: data.balance,
  304. currency: data.currency || '',
  305. }
  306. }
  307. const getDailyCompare = async (login) => {
  308. const res = await documentaryApi.followDailyCompare({ login })
  309. if (res.code === Code.StatusOK) {
  310. ChartSetDate.value = res.data ?? {}
  311. } else {
  312. uni.showToast({ title: res.msg, icon: 'none' })
  313. }
  314. }
  315. const getDailyDeal = async (login) => {
  316. const res = await documentaryApi.followDailyDeal({ login })
  317. if (res.code === Code.StatusOK) {
  318. dealDate.value = res.data ?? {}
  319. } else {
  320. uni.showToast({ title: res.msg, icon: 'none' })
  321. }
  322. }
  323. const getDailySubscribeProfit = async (login) => {
  324. const res = await documentaryApi.followDailySubscribeProfit({ login })
  325. if (res.code === Code.StatusOK) {
  326. SubscribeProfitDate.value = res.data?.data ?? []
  327. } else {
  328. uni.showToast({ title: res.msg, icon: 'none' })
  329. }
  330. }
  331. watch(() => ChartSet.value.login, async (login) => {
  332. await getDailyCompare(login)
  333. if (isDealLogin.value) {
  334. await getDailyDeal(login)
  335. } else {
  336. await getDailySubscribeProfit(login)
  337. }
  338. })
  339. const toDocumentary1 = () => {
  340. router.push({ path: '/pages/follow/trading-management' })
  341. }
  342. const dialogFllowApplyOpen = () => {
  343. isApplySignalVisible.value = true
  344. }
  345. const isApplySignalVisible = ref(false)
  346. const onApplySignalConfirm = () => {
  347. isApplySignalVisible.value = false
  348. }
  349. onMounted(async () => {
  350. loading.value = true
  351. await getCustomLoginDown()
  352. loading.value = false
  353. })
  354. </script>
  355. <style lang="scss" scoped>
  356. @import "@/uni.scss";
  357. .demo-uni-row {
  358. display: flex;
  359. flex-wrap: wrap;
  360. align-items: stretch;
  361. margin: 0 auto !important;
  362. }
  363. .uni-col-left {
  364. //display: flex;
  365. //flex-direction: column;
  366. }
  367. .uni-col-right {
  368. display: flex;
  369. flex-direction: column;
  370. }
  371. .dashboard-container {
  372. min-height: 10vh;
  373. box-sizing: border-box;
  374. display: flex;
  375. flex-direction: column;
  376. height: 100%;
  377. }
  378. .mam-card {
  379. flex: 1;
  380. display: flex;
  381. flex-direction: column;
  382. }
  383. /* 卡片通用样式 */
  384. .card {
  385. background: var(--color-white);
  386. color: var(--bs-heading-color);
  387. padding: px2rpx(12) px2rpx(16);
  388. border-radius: 4px;
  389. margin-bottom: px2rpx(20);
  390. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.2);
  391. }
  392. .custom-number,
  393. .custom-money {
  394. background: var(--bs-body-bg);
  395. border: 1px solid var(--bs-border-color);
  396. padding: 15px;
  397. border-radius: 4px;
  398. margin-bottom: 20px;
  399. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  400. min-height: px2rpx(125);
  401. }
  402. .custom-number .title,
  403. .custom-money .left .tit,
  404. .custom-money .right .tit {
  405. font-size: 14px;
  406. color: var(--bs-heading-color);
  407. margin-bottom: 10px;
  408. }
  409. .custom-number .title {
  410. display: flex;
  411. justify-content: space-between;
  412. align-items: center;
  413. }
  414. .custom-money {
  415. display: flex;
  416. flex-direction: column;
  417. }
  418. .custom-money .left,
  419. .custom-money .right {
  420. flex: 1;
  421. }
  422. .custom-money .num {
  423. font-size: 20px;
  424. font-weight: bold;
  425. color: var(--bs-heading-color);
  426. }
  427. .custom-money .num.red {
  428. color: #eb3f57;
  429. }
  430. .el-dropdown-link {
  431. display: flex;
  432. align-items: center;
  433. gap: 4px;
  434. color: #6c8595;
  435. font-size: 12px;
  436. }
  437. .account-info1 {
  438. margin-bottom: 20px;
  439. }
  440. .custom-money-left .header,
  441. .custom-money-right .header {
  442. display: flex;
  443. align-items: center;
  444. justify-content: space-between;
  445. margin-bottom: px2rpx(15);
  446. }
  447. .custom-money-left .tab,
  448. .custom-money-right .tab {
  449. font-size: px2rpx(20);
  450. font-weight: 600;
  451. color: var(--bs-heading-color);
  452. }
  453. .bottomCol {
  454. font-size: 16px;
  455. color: #868686;
  456. .bo-left1 {
  457. margin: 20px 0;
  458. padding: 20px 0;
  459. border-right: 1px dashed #989898;
  460. text-align: center;
  461. font-size: 16px;
  462. }
  463. .bo-right1 {
  464. margin: 20px 0px;
  465. padding: 20px 0;
  466. text-align: center;
  467. font-size: 16px;
  468. }
  469. }
  470. .blue-font {
  471. margin-top: px2rpx(15);
  472. color: #007aff;
  473. font-weight: 600;
  474. font-size: px2rpx(24);
  475. }
  476. .subscribe-table {
  477. width: 100%;
  478. border: 1px solid #ebeef5;
  479. border-radius: 6px;
  480. overflow: hidden;
  481. }
  482. .subscribe-row {
  483. display: grid;
  484. grid-template-columns: 1fr 1fr 1fr 1fr;
  485. border-top: 1px solid #ebeef5;
  486. }
  487. .subscribe-head {
  488. background: #f5f7fa;
  489. border-top: none;
  490. }
  491. .subscribe-cell {
  492. padding: 10px 8px;
  493. font-size: 12px;
  494. color: var(--bs-heading-color);
  495. text-align: center;
  496. overflow: hidden;
  497. text-overflow: ellipsis;
  498. white-space: nowrap;
  499. }
  500. .custom-dialog-content {
  501. padding: px2rpx(20);
  502. .info-text {
  503. color: var(--bs-heading-color);
  504. font-size: px2rpx(14);
  505. line-height: px2rpx(36);
  506. }
  507. }
  508. .card-header {
  509. display: flex;
  510. justify-content: space-between;
  511. align-items: center;
  512. margin-bottom: px2rpx(12);
  513. }
  514. .header-left {
  515. display: flex;
  516. align-items: center;
  517. gap: 12rpx;
  518. }
  519. .header-title {
  520. font-size: px2rpx(14);
  521. font-weight: 600;
  522. }
  523. .header-right {
  524. display: flex;
  525. align-items: center;
  526. }
  527. .action-btn {
  528. background: #ffde02;
  529. border: none;
  530. border-radius: 50%;
  531. width: px2rpx(32);
  532. height: px2rpx(32);
  533. display: flex;
  534. align-items: center;
  535. justify-content: center;
  536. padding: 0;
  537. margin: 0;
  538. &:after {
  539. border: none;
  540. }
  541. }
  542. /* 余额区域 */
  543. .balance-content {
  544. display: flex;
  545. flex-direction: column;
  546. align-items: center;
  547. gap: 16rpx;
  548. }
  549. .balance-main {
  550. display: flex;
  551. align-items: baseline;
  552. flex-wrap: wrap;
  553. }
  554. .balance-amount {
  555. font-size: px2rpx(20);
  556. font-weight: 700;
  557. line-height: 1;
  558. }
  559. .balance-decimal {
  560. font-size: px2rpx(16);
  561. font-weight: 500;
  562. line-height: 1;
  563. }
  564. .balance-currency {
  565. font-size: px2rpx(16);
  566. font-weight: 500;
  567. }
  568. .total-earnings {
  569. display: flex;
  570. align-items: center;
  571. gap: 5px;
  572. color: rgba(20, 29, 34, 0.6);
  573. font-size: px2rpx(12);
  574. }
  575. .total-value {
  576. align-self: flex-end;
  577. }
  578. /* 合作伙伴卡片 */
  579. .partner-content {
  580. display: flex;
  581. flex-direction: column;
  582. gap: 12px;
  583. }
  584. .link-area {
  585. display: flex;
  586. flex-wrap: wrap;
  587. justify-content: space-around;
  588. align-items: center;
  589. gap: 12px;
  590. }
  591. .link-btn {
  592. height: px2rpx(32);
  593. background-color: rgb(108, 133, 149);
  594. line-height: px2rpx(32);
  595. color: var(--color-white);
  596. border-radius: px2rpx(16);
  597. font-size: px2rpx(14);
  598. margin: 0;
  599. }
  600. .code-content {
  601. display: flex;
  602. justify-content: center;
  603. }
  604. .code-input {
  605. width: 50%;
  606. max-width: px2rpx(178);
  607. margin-right: px2rpx(20);
  608. }
  609. .custom-content {
  610. display: flex;
  611. justify-content: space-around;
  612. flex-wrap: wrap;
  613. .con {
  614. cursor: pointer;
  615. text-align: center;
  616. font-size: px2rpx(16);
  617. margin: 5px;
  618. }
  619. .num {
  620. font-weight: bold;
  621. }
  622. .des {
  623. margin-top: px2rpx(5);
  624. }
  625. }
  626. .dia-content {
  627. padding: 20rpx;
  628. }
  629. .content {
  630. display: flex;
  631. flex-direction: column;
  632. gap: 20rpx;
  633. }
  634. .label {
  635. font-weight: 500;
  636. margin-bottom: 8rpx;
  637. }
  638. .btn {
  639. text-align: center;
  640. background-color: rgb(var(--bs-danger-rgb));
  641. font-size: px2rpx(16);
  642. color: #fff;
  643. padding: px2rpx(10) px2rpx(20);
  644. border-radius: px2rpx(8);
  645. }
  646. .crm-cursor {
  647. cursor: pointer;
  648. }
  649. .link {
  650. display: flex;
  651. margin-top: 20rpx;
  652. .btn {
  653. display: flex;
  654. align-items: center;
  655. justify-content: center;
  656. height: px2rpx(35);
  657. margin: 0 px2rpx(10);
  658. }
  659. }
  660. .qrCode {
  661. display: flex;
  662. flex-direction: column;
  663. align-items: center;
  664. gap: 16rpx;
  665. }
  666. .mam-card {
  667. .add-mam-btn {
  668. display: flex;
  669. background-color: var(--color-error);
  670. align-items: center;
  671. gap: 8rpx;
  672. height: px2rpx(32);
  673. line-height: px2rpx(32);
  674. padding: 0 px2rpx(12);
  675. margin: 0;
  676. }
  677. }
  678. .mam-line {
  679. display: flex;
  680. justify-content: center;
  681. gap: 6rpx;
  682. line-height: 1.5;
  683. }
  684. .mam-ops {
  685. display: flex;
  686. flex-wrap: wrap;
  687. justify-content: center;
  688. gap: 10rpx;
  689. }
  690. .mam-op {
  691. color: #2b5aed;
  692. font-size: px2rpx(12);
  693. line-height: 1.4;
  694. }
  695. </style>