index.vue 21 KB

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