index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true" :bgColor="'#f8f9f9'">
  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>
  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: #fff;
  436. padding: 15px;
  437. border-radius: 4px;
  438. margin-bottom: 20px;
  439. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  440. min-height: 100px;
  441. }
  442. .custom-number .title,
  443. .custom-money .left .tit,
  444. .custom-money .right .tit {
  445. font-size: 14px;
  446. color: var(--bs-heading-color);
  447. margin-bottom: 10px;
  448. }
  449. .custom-number .title {
  450. display: flex;
  451. justify-content: space-between;
  452. align-items: center;
  453. }
  454. .custom-money {
  455. display: flex;
  456. flex-direction: column;
  457. }
  458. .custom-money .left,
  459. .custom-money .right {
  460. flex: 1;
  461. }
  462. .custom-money .num {
  463. font-size: 20px;
  464. font-weight: bold;
  465. color: var(--bs-heading-color);
  466. }
  467. .custom-money .num.red {
  468. color: #eb3f57;
  469. }
  470. .el-dropdown-link {
  471. display: flex;
  472. align-items: center;
  473. gap: 4px;
  474. color: #6c8595;
  475. font-size: 12px;
  476. }
  477. .account-info1 {
  478. margin-bottom: 20px;
  479. }
  480. .custom-money-left .header,
  481. .custom-money-right .header {
  482. display: flex;
  483. align-items: center;
  484. justify-content: space-between;
  485. margin-bottom: px2rpx(15);
  486. }
  487. .custom-money-left .tab,
  488. .custom-money-right .tab {
  489. font-size: px2rpx(16);
  490. font-weight: 600;
  491. color: var(--bs-heading-color);
  492. }
  493. .bottomCol {
  494. font-size: 16px;
  495. color: #868686;
  496. .bo-left1 {
  497. margin: 20px 0;
  498. padding: 20px 0;
  499. border-right: 1px dashed #989898;
  500. text-align: center;
  501. font-size: 16px;
  502. }
  503. .bo-right1 {
  504. margin: 20px 0px;
  505. padding: 20px 0;
  506. text-align: center;
  507. font-size: 16px;
  508. }
  509. }
  510. .blue-font {
  511. margin-top: px2rpx(15);
  512. color: #007aff;
  513. font-weight: 600;
  514. font-size: px2rpx(24);
  515. }
  516. .subscribe-table {
  517. width: 100%;
  518. border: 1px solid #ebeef5;
  519. border-radius: 6px;
  520. overflow: hidden;
  521. }
  522. .subscribe-row {
  523. display: grid;
  524. grid-template-columns: 1fr 1fr 1fr 1fr;
  525. border-top: 1px solid #ebeef5;
  526. }
  527. .subscribe-head {
  528. background: #f5f7fa;
  529. border-top: none;
  530. }
  531. .subscribe-cell {
  532. padding: 10px 8px;
  533. font-size: 12px;
  534. color: var(--bs-heading-color);
  535. text-align: center;
  536. overflow: hidden;
  537. text-overflow: ellipsis;
  538. white-space: nowrap;
  539. }
  540. .custom-dialog-content {
  541. padding: px2rpx(20);
  542. .info-text {
  543. color: var(--bs-heading-color);
  544. font-size: px2rpx(14);
  545. line-height: px2rpx(36);
  546. }
  547. }
  548. .card-header {
  549. display: flex;
  550. justify-content: space-between;
  551. align-items: center;
  552. margin-bottom: px2rpx(12);
  553. }
  554. .header-left {
  555. display: flex;
  556. align-items: center;
  557. gap: 12rpx;
  558. }
  559. .header-title {
  560. font-size: px2rpx(14);
  561. font-weight: 600;
  562. }
  563. .header-right {
  564. display: flex;
  565. align-items: center;
  566. }
  567. .action-btn {
  568. background: #ffde02;
  569. border: none;
  570. border-radius: 50%;
  571. width: px2rpx(32);
  572. height: px2rpx(32);
  573. display: flex;
  574. align-items: center;
  575. justify-content: center;
  576. padding: 0;
  577. margin: 0;
  578. &:after {
  579. border: none;
  580. }
  581. }
  582. /* 余额区域 */
  583. .balance-content {
  584. display: flex;
  585. flex-direction: column;
  586. align-items: center;
  587. gap: 16rpx;
  588. }
  589. .balance-main {
  590. display: flex;
  591. align-items: baseline;
  592. flex-wrap: wrap;
  593. }
  594. .balance-amount {
  595. font-size: px2rpx(20);
  596. font-weight: 700;
  597. line-height: 1;
  598. }
  599. .balance-decimal {
  600. font-size: px2rpx(16);
  601. font-weight: 500;
  602. line-height: 1;
  603. }
  604. .balance-currency {
  605. font-size: px2rpx(16);
  606. font-weight: 500;
  607. }
  608. .total-earnings {
  609. display: flex;
  610. align-items: center;
  611. gap: 5px;
  612. color: rgba(20, 29, 34, 0.6);
  613. font-size: px2rpx(12);
  614. }
  615. .total-value {
  616. align-self: flex-end;
  617. }
  618. /* 合作伙伴卡片 */
  619. .partner-content {
  620. display: flex;
  621. flex-direction: column;
  622. gap: 12px;
  623. }
  624. .link-area {
  625. display: flex;
  626. flex-wrap: wrap;
  627. justify-content: space-around;
  628. align-items: center;
  629. gap: 12px;
  630. }
  631. .link-btn {
  632. height: px2rpx(32);
  633. background-color: rgb(108, 133, 149);
  634. line-height: px2rpx(32);
  635. color: var(--color-white);
  636. border-radius: px2rpx(16);
  637. font-size: px2rpx(14);
  638. margin: 0;
  639. }
  640. .code-content {
  641. display: flex;
  642. justify-content: center;
  643. }
  644. .code-input {
  645. width: 50%;
  646. max-width: px2rpx(178);
  647. margin-right: px2rpx(20);
  648. }
  649. .custom-content {
  650. display: flex;
  651. justify-content: space-around;
  652. flex-wrap: wrap;
  653. .con {
  654. cursor: pointer;
  655. text-align: center;
  656. font-size: px2rpx(16);
  657. margin: 5px;
  658. }
  659. .num {
  660. font-weight: bold;
  661. }
  662. .des {
  663. margin-top: px2rpx(5);
  664. }
  665. }
  666. .dia-content {
  667. padding: 20rpx;
  668. }
  669. .content {
  670. display: flex;
  671. flex-direction: column;
  672. gap: 20rpx;
  673. }
  674. .label {
  675. font-weight: 500;
  676. margin-bottom: 8rpx;
  677. }
  678. .btn {
  679. text-align: center;
  680. background-color: #4497ff;
  681. font-size: px2rpx(16);
  682. color: #fff;
  683. padding: px2rpx(10);
  684. border-radius: px2rpx(4);
  685. }
  686. .crm-cursor {
  687. cursor: pointer;
  688. }
  689. .link {
  690. display: flex;
  691. margin-top: 20rpx;
  692. .btn {
  693. display: flex;
  694. align-items: center;
  695. justify-content: center;
  696. height: px2rpx(35);
  697. margin: 0 px2rpx(10);
  698. }
  699. }
  700. .qrCode {
  701. display: flex;
  702. flex-direction: column;
  703. align-items: center;
  704. gap: 16rpx;
  705. }
  706. .mam-card {
  707. .add-mam-btn {
  708. display: flex;
  709. background-color: var(--color-error);
  710. align-items: center;
  711. gap: 8rpx;
  712. height: px2rpx(32);
  713. line-height: px2rpx(32);
  714. padding: 0 px2rpx(12);
  715. margin: 0;
  716. }
  717. }
  718. .mam-line {
  719. display: flex;
  720. justify-content: center;
  721. gap: 6rpx;
  722. line-height: 1.5;
  723. }
  724. .mam-ops {
  725. display: flex;
  726. flex-wrap: wrap;
  727. justify-content: center;
  728. gap: 10rpx;
  729. }
  730. .mam-op {
  731. color: #2b5aed;
  732. font-size: px2rpx(12);
  733. line-height: 1.4;
  734. }
  735. </style>