index.vue 22 KB

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