index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true" :bgColor="'#f8f9f9'">
  3. <cwg-header :title="t('Home.page_ib.item1')" />
  4. <uni-row class="demo-uni-row uni-row1">
  5. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  6. <view class="dashboard-container">
  7. <!-- 余额卡片 -->
  8. <view class="card balance-card">
  9. <view class="card-header">
  10. <view class="header-left">
  11. <cwg-icon name="qbye" :size="24" />
  12. <text class="header-title">{{ t('news_add_field.Label.Balance') }}</text>
  13. </view>
  14. <view class="header-right">
  15. <cwg-dropdown :menu-list="menuList" @menuClick="handleMenuClick">
  16. <view class="pc-header-btn">
  17. <cwg-icon name="crm-ellipsis" :size="24" />
  18. </view>
  19. </cwg-dropdown>
  20. </view>
  21. </view>
  22. <view class="balance-content">
  23. <view class="balance-main">
  24. <text class="balance-currency">$</text>
  25. <text class="balance-amount">{{ balanceInt }}</text>
  26. <text class="balance-decimal">.{{ balanceDecimal }}</text>
  27. </view>
  28. <view class="total-earnings">
  29. <text class="total-label">{{ t('Ib.Index.TotalRevenue') }}</text>
  30. <text class="total-value">{{ ibData.all }}</text>
  31. </view>
  32. </view>
  33. </view>
  34. <!-- 开户链接 -->
  35. <view class="card partner-card">
  36. <view class="card-header">
  37. <view class="header-left">
  38. <cwg-icon name="crm-share-nodes" :size="24" />
  39. <text class="header-title">{{ t('Ib.Index.Link') }}</text>
  40. </view>
  41. </view>
  42. <view class="partner-content">
  43. <view class="link-area">
  44. <button class="link-btn" @click="LinkActivity1">
  45. {{ t('Ib.Index.CreateLink') }}
  46. </button>
  47. <!-- <button class="link-btn" @click="LinkActivity">-->
  48. <!-- {{ t('Ib.Index.CreateLinkActivity') }}-->
  49. <!-- </button>-->
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 名下客户 -->
  54. <view class="card custom-card">
  55. <view class="card-header">
  56. <view class="header-left">
  57. <cwg-icon name="crm-custom" :size="24" />
  58. <text class="header-title">{{ t('Ib.Index.NameCustom') }}</text>
  59. </view>
  60. </view>
  61. <view class="custom-content">
  62. <view class="con" @click="toCustomManagement">
  63. <view class="num">
  64. {{ ibData.customAmount }}
  65. </view>
  66. <view class="des">
  67. {{ t('Ib.Index.Custom') }}
  68. </view>
  69. </view>
  70. <view class="con" @click="toIbManagement">
  71. <view class="num">
  72. {{ ibData.ibAmount }}
  73. </view>
  74. <view class="des">
  75. {{ t('Ib.Index.Agent') }}
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- 归属推荐码 -->
  81. <!-- <view class="card code-card">
  82. <view class="card-header">
  83. <view class="header-left">
  84. <text class="header-title">{{ t('Tips.AttributionCode') }}</text>
  85. <uni-tooltip placement="top">
  86. <text class="icon-tip">?</text>
  87. <template v-slot:content>
  88. <view style="width: 100px;">
  89. {{ t('Tips.tips') }}
  90. </view>
  91. </template>
  92. </uni-tooltip>
  93. </view>
  94. </view>
  95. <view class="code-content">
  96. <uni-easyinput class="code-input" :disabled="true" v-model="getInfoId" :clearable="false"></uni-easyinput>
  97. <button class="link-btn">{{ t('Ib.Index.Copy') }}</button>
  98. </view>
  99. </view>-->
  100. </view>
  101. </uni-col>
  102. </uni-row>
  103. <!-- 二维码弹窗 -->
  104. <cwg-popup ref="linkPopup" type="center" :title="t('Ib.Index.CreateLink')" :showFooters="false" showFooterLine>
  105. <view class="dia-content">
  106. <view class="content" style="font-size: 14px; text-align: left">
  107. <view class="label">{{ t('Ib.Index.Spread5') }} :</view>
  108. <cwg-combox
  109. v-model="excludeShowLoginTypes"
  110. :multiple="true"
  111. :options="excludeList"
  112. :placeholder="t('placeholder.choose')"
  113. @change="handleChange"
  114. />
  115. <view class="label">{{ t('Ib.Index.Spread4') }} :</view>
  116. <cwg-combox
  117. v-model:value="selectedSpreadId"
  118. :options="spreadList.map(item => ({
  119. value: item.id,
  120. text: t('Ib.Index.Commission') + ':' + item.comPoint +
  121. (levelNum === 1 ? '-' + t('Ib.Index.Hide') + ':' + item.hide :
  122. (fixedHide === 1 ? '' : '-' + t('Ib.Index.Hide') + ':' + item.hide))
  123. }))"
  124. :placeholder="t('placeholder.choose')"
  125. />
  126. <view class="label">{{ t('Ib.Index.IbInvalid') }}</view>
  127. <cwg-combox
  128. v-model:value="ibInvalid"
  129. :options="[
  130. { value: 'B0', text: t('Ib.Custom.Allow') },
  131. { value: 'B1', text: t('Ib.Custom.NotAllow') }
  132. ]"
  133. :placeholder="t('placeholder.choose')"
  134. />
  135. <view>
  136. <text style="line-height: 1.5">{{ t('ApplicationDialog.item1') }}</text>
  137. </view>
  138. <view>
  139. <text style="line-height: 1.5">{{ t('ApplicationDialog.item2') }}</text>
  140. <a
  141. :href="country == 'NG' || country == 'TH' || country == 'LA'
  142. ? `pdf/pdf6/all/Account Type Allocation Table - ${lang}.pdf`
  143. : `pdf/pdf6/no/Account Type Allocation Table-${lang}.pdf`"
  144. target="_blank"
  145. >
  146. {{ t('ApplicationDialog.item3') }}
  147. </a>
  148. </view>
  149. <view class="btn">
  150. <button
  151. class="crm-cursor"
  152. @click="CreateLink"
  153. >{{ t('Ib.Index.CreateLink') }}
  154. </button>
  155. </view>
  156. <view class="link qrCode" v-if="link">
  157. <QrCode
  158. ref="qrCode"
  159. :text="link"
  160. :width="200"
  161. :height="200"
  162. />
  163. <view class="btn">
  164. <button
  165. class="crm-cursor"
  166. style="height: 16px"
  167. @click="downloadQrCode()"
  168. >{{ t('Btn.item9') }}
  169. </button>
  170. </view>
  171. </view>
  172. <view class="link">
  173. <uni-easyinput
  174. disabled
  175. v-model="link"
  176. />
  177. <button class="btn" @click="CopyShareLink(link)">
  178. {{ t('Ib.Index.Copy') }}
  179. </button>
  180. </view>
  181. </view>
  182. </view>
  183. </cwg-popup>
  184. <!-- 活动链接弹窗 -->
  185. <cwg-popup ref="linkActivityPopup" type="center" :title="t('Ib.Index.CreateLinkActiv')" :showFooters="false"
  186. showFooterLine>
  187. <view class="dia-content">
  188. <view class="content" style="font-size: 14px; text-align: left">
  189. <view class="label">{{ t('Ib.Index.ChooseActiv') }}</view>
  190. <cwg-combox
  191. v-model:value="activityLing"
  192. :options="agentLinkList.map(item => ({ value: item.link, text: item.name }))"
  193. :placeholder="t('Ib.Index.ChooseActiv')"
  194. />
  195. <view class="label">{{ t('Ib.Index.Spread5') }} :</view>
  196. <cwg-combox
  197. v-model:value="excludeShowLoginTypes"
  198. :multiple="true"
  199. :options="excludeList"
  200. :placeholder="t('placeholder.choose')"
  201. @change="handleChange"
  202. />
  203. <view class="label">{{ t('Ib.Index.Spread4') }} :</view>
  204. <cwg-combox
  205. v-model:value="selectedSpreadId"
  206. :options="spreadList.map(item => ({
  207. value: item.id,
  208. text: t('Ib.Index.Commission') + ':' + item.comPoint +
  209. (levelNum === 1 ? '-' + t('Ib.Index.Hide') + ':' + item.hide :
  210. (fixedHide === 1 ? '' : '-' + t('Ib.Index.Hide') + ':' + item.hide))
  211. }))"
  212. :placeholder="t('placeholder.choose')"
  213. />
  214. <view class="label">{{ t('Ib.Index.IbInvalid') }}</view>
  215. <cwg-combox
  216. v-model:value="ibInvalid"
  217. :options="[
  218. { value: 'B0', text: t('Ib.Custom.Allow') },
  219. { value: 'B1', text: t('Ib.Custom.NotAllow') }
  220. ]"
  221. :placeholder="t('placeholder.choose')"
  222. />
  223. <view>
  224. <text style="line-height: 1.5">{{ t('ApplicationDialog.item1') }}</text>
  225. </view>
  226. <view>
  227. <text style="line-height: 1.5">{{ t('ApplicationDialog.item2') }}</text>
  228. <a
  229. :href="country == 'NG' || country == 'TH' || country == 'LA' || isAfterJuly7()
  230. ? `pdf/pdf6/all/Account Type Allocation Table - ${lang}.pdf`
  231. : `pdf/pdf6/no/Account Type Allocation Table-${lang}.pdf`"
  232. target="_blank"
  233. >
  234. {{ t('ApplicationDialog.item3') }}
  235. </a>
  236. </view>
  237. <view class="btn">
  238. <button
  239. class="crm-cursor"
  240. @click="CreateActivityLink"
  241. >{{ t('Ib.Index.CreateLinkActivity') }}
  242. </button>
  243. </view>
  244. <view class="link qrCode" v-if="linkActivity">
  245. <QrCode
  246. ref="qrCode1"
  247. :text="linkActivity"
  248. :width="200"
  249. :height="200"
  250. />
  251. <view class="btn">
  252. <button
  253. class="crm-cursor"
  254. @click="downloadQrCode(1)"
  255. >{{ t('Btn.item9') }}
  256. </button>
  257. </view>
  258. </view>
  259. </view>
  260. </view>
  261. </cwg-popup>
  262. </cwg-page-wrapper>
  263. </template>
  264. <script setup>
  265. import { ref, computed, watch, onMounted } from 'vue'
  266. import { useI18n } from 'vue-i18n'
  267. import useRouter from '@/hooks/useRouter'
  268. import { ibApi } from '@/service/ib'
  269. import config from '@/config/index'
  270. import useUserStore from '@/stores/use-user-store'
  271. import { useStorage } from '@/hooks/useStorage'
  272. import QrCode from '@/components/QrCode.vue'
  273. import { useFilters } from '@/composables/useFilters'
  274. const { t } = useI18n()
  275. const router = useRouter()
  276. const { Code } = config
  277. const { userInfo } = useUserStore()
  278. const { numberFormat } = useFilters()
  279. // 数据
  280. const totalEarnings = ref(0.00)
  281. const partnerLink = ref('https://one.exnessonelink.com/a/plokue4yj3')
  282. const partnerCode = ref('PLOKUE4YJ3')
  283. const activeTab = ref('link') // 'link' 或 'code'
  284. const ibData = ref({
  285. customAmount: 0,
  286. ibAmount: 0,
  287. },
  288. )
  289. const selectedSpreadId = ref('')
  290. const spreadList = ref([])
  291. const excludeShowLoginTypes = ref([])
  292. const pammManagerValid = ref()
  293. const menuList = ref([
  294. { label: t('Custom.Index.Withdrawals'), type: 1 },
  295. { label: t('Custom.Index.Transfer'), type: 2 },
  296. ])
  297. const excludeList = ref([])
  298. const excludeLists = ref([
  299. { text: t('AccountType.SeniorAccount'), value: '2' },
  300. // {text: t('AccountType.SeniorAccount'),value: '3'},
  301. { text: t('AccountType.StandardAccount'), value: '7' },
  302. { text: t('AccountType.CentAccount'), value: '8' },
  303. ])
  304. const link = ref('')
  305. const loginTypes = ref('')
  306. const ibInvalid = ref('B0')
  307. const qrCode = ref(null)
  308. const qrCode1 = ref(null)
  309. // 语言
  310. const lang = useStorage('lang')
  311. const flag = ref(false)
  312. const agentLinkList = ref([])
  313. const activityLing = ref('')
  314. const linkActivity = ref('')
  315. const commission = ref('')
  316. const linkActivityPopup = ref(null)
  317. // 开户链接
  318. const linkPopup = ref(null)
  319. const qrSize = ref(200)
  320. const levelNum = computed(() => {
  321. return userInfo.ibInfo.levelNum
  322. })
  323. const fixedHide = computed(() => {
  324. return userInfo.ibInfo.fixedHide
  325. })
  326. const getInfoId = computed(() => {
  327. return userInfo.ibInfo.id
  328. })
  329. const balanceInt = computed(() => {
  330. return numberFormat(ibData.value?.balance || 0, true)[0]
  331. })
  332. const balanceDecimal = computed(() => {
  333. return numberFormat(ibData.value?.balance || 0, true)[1]
  334. })
  335. // 国家
  336. const country = computed(() => {
  337. console.log(userInfo.customInfo.country, '2')
  338. return userInfo.customInfo.country
  339. })
  340. // 修改多选
  341. const handleChange = (val) => {
  342. excludeShowLoginTypes.value = val
  343. }
  344. const isAfterJuly7 = () => {
  345. const currentDate = new Date()
  346. const july7 = new Date(currentDate.getFullYear(), 6, 7) // 月份从0开始,6表示7月
  347. return currentDate >= july7
  348. }
  349. const getValidAccountTypes = (selectedExcludeValues, selectedSpreadId) => {
  350. const spread = spreadList.value.find(
  351. (item) => item.id === selectedSpreadId,
  352. )
  353. let data = {
  354. hide: '',
  355. commission: '',
  356. excludeShowLoginTypes: [],
  357. }
  358. if (!spread) return data
  359. const validValues = selectedExcludeValues.filter((value) =>
  360. spread.loginTypes.includes(value),
  361. )
  362. const invalidValues = selectedExcludeValues.filter(
  363. (value) => !spread.loginTypes.includes(value),
  364. )
  365. const invalidLabels = excludeList.value
  366. .filter((item) => invalidValues.includes(item.value))
  367. .map((item) => item.label)
  368. const excludeTypes = excludeLists.value
  369. .filter((item) => !validValues.includes(item.value))
  370. .map((item) => item.value)
  371. loginTypes.value = invalidLabels.join('、')
  372. return {
  373. hide: spread.hide,
  374. commission: spread.comPoint,
  375. excludeShowLoginTypes: excludeTypes,
  376. invalidLabels,
  377. invalidValues,
  378. }
  379. }
  380. const downloadQrCode = (type = 0) => {
  381. if (type === 1) {
  382. qrCode1.value.download()
  383. } else {
  384. qrCode.value.download()
  385. }
  386. }
  387. // 复制
  388. const CopyShareLink = (value) => {
  389. uni.setClipboardData({ data: value })
  390. }
  391. const getLink1 = async () => {
  392. console.log(excludeShowLoginTypes.value, 2)
  393. if (excludeShowLoginTypes.value.length == 0) {
  394. uni.showToast({
  395. title: t('Ib.Index.Spread5'), icon: 'none',
  396. })
  397. link.value = ''
  398. return
  399. }
  400. if (!selectedSpreadId.value.length) {
  401. uni.showToast({
  402. title: t('Ib.Index.Spread4'), icon: 'none',
  403. })
  404. link.value = ''
  405. return
  406. }
  407. const validList = getValidAccountTypes(
  408. excludeShowLoginTypes.value,
  409. selectedSpreadId.value,
  410. )
  411. if (validList.invalidLabels.length > 0) {
  412. return new Promise((resolve) => {
  413. uni.showModal({
  414. title: t('Msg.SystemPrompt'),
  415. content: `${t('Ib.Index.Spread1')}${
  416. loginTypes.value
  417. }${t('')}`,
  418. confirmText: t('Btn.Confirm'),
  419. cancelText: t('Btn.Cancel'),
  420. success: async (res) => {
  421. if (res.confirm) {
  422. const res = await ibApi.customLink(validList)
  423. if (res.code === Code.StatusOK) {
  424. uni.showToast({
  425. title: res.msg,
  426. icon: 'none',
  427. })
  428. resolve(res.data)
  429. } else {
  430. uni.showToast({
  431. title: res.msg,
  432. icon: 'none',
  433. })
  434. resolve('')
  435. }
  436. }
  437. },
  438. fail: () => resolve(''),
  439. })
  440. })
  441. } else {
  442. const res = await ibApi.customLink(validList)
  443. if (res.code === Code.StatusOK) {
  444. uni.showToast({
  445. title: res.msg,
  446. icon: 'none',
  447. })
  448. return res.data
  449. } else {
  450. uni.showToast({
  451. title: res.msg,
  452. icon: 'none',
  453. })
  454. return ''
  455. }
  456. }
  457. }
  458. const CreateLink = async () => {
  459. const linkValue = await getLink1()
  460. if (!linkValue) return
  461. link.value = `${Host80}/#/signup/${getInfoId.value}/${linkValue}/${ibInvalid.value}`
  462. }
  463. const loginTypeList = async () => {
  464. const res = await ibApi.loginTypeList(
  465. {
  466. page: {
  467. current: 1,
  468. row: 100,
  469. },
  470. },
  471. )
  472. if (res.code === Code.StatusOK) {
  473. spreadList.value = res.data
  474. } else {
  475. uni.showToast({ title: res.msg, icon: 'none' })
  476. }
  477. }
  478. const getAgentAccountSetting = async () => {
  479. const { agentAccountSetting = '' } = userInfo.ibInfo ?? {}
  480. if (agentAccountSetting === 0) {
  481. const excludeValues = userInfo.customInfo.excludeShowLoginTypes
  482. try {
  483. excludeList.value = excludeLists.value.filter(
  484. (item) => !excludeValues.includes(item.value),
  485. )
  486. excludeShowLoginTypes.value = []
  487. } catch (e) {
  488. excludeShowLoginTypes.value = []
  489. excludeList.value = excludeLists.value
  490. }
  491. } else {
  492. excludeShowLoginTypes.value = []
  493. excludeList.value = excludeLists.value
  494. }
  495. }
  496. // 生成开户链接
  497. const LinkActivity1 = async () => {
  498. // 跳转到开户链接页面
  499. uni.navigateTo({
  500. url: '/pages/ib/linkList',
  501. })
  502. }
  503. // 生成活动分享链接
  504. const LinkActivity = async () => {
  505. if (flag.value) {
  506. } else {
  507. flag.value = true
  508. }
  509. let res = await ibApi.marketAgentLinkList({})
  510. if (res.code === Code.StatusOK) {
  511. agentLinkList.value = res.data ?? []
  512. loginTypeList()
  513. getAgentAccountSetting()
  514. activityLing.value = ''
  515. linkActivity.value = ''
  516. commission.value = 0
  517. ibInvalid.value = 'B0'
  518. linkActivityPopup.value.open()
  519. flag.value = false
  520. }
  521. }
  522. const CreateActivityLink = async () => {
  523. if (!activityLing.value) {
  524. uni.showToast({ title: t('Ib.Index.ChooseActiv'), icon: 'error' })
  525. return
  526. }
  527. const linkValue = await getLink1()
  528. if (!linkValue) return
  529. if (activityLing.value.indexOf('http') > -1) {
  530. if (activityLing.value.indexOf('?') > -1) {
  531. linkActivity.value =
  532. activityLing.value +
  533. '&mmdi=' +
  534. getInfoId.value +
  535. '&mmF=' +
  536. linkValue +
  537. '&mmB=' +
  538. ibInvalid.value
  539. } else {
  540. linkActivity.value =
  541. activityLing.value +
  542. '?mmdi=' +
  543. getInfoId.value +
  544. '&mmF=' +
  545. linkValue +
  546. '&mmB=' +
  547. ibInvalid.value
  548. }
  549. } else {
  550. if (activityLing.value.indexOf('?') > -1) {
  551. linkActivity.value =
  552. Host80 +
  553. '/' +
  554. activityLing.value +
  555. '&mmdi=' +
  556. getInfoId.value +
  557. '&mmF=' +
  558. linkValue +
  559. '&mmB=' +
  560. ibInvalid.value
  561. } else {
  562. linkActivity.value =
  563. Host80 +
  564. '/' +
  565. activityLing.value +
  566. '?mmdi=' +
  567. getInfoId.value +
  568. '&mmF=' +
  569. linkValue +
  570. '&mmB=' +
  571. ibInvalid.value
  572. }
  573. }
  574. }
  575. const handleMenuClick = ({ value }) => {
  576. console.log(value.type)
  577. if (value.type === 1) {
  578. toWithdraw()
  579. } else {
  580. toTransfer()
  581. }
  582. }
  583. const toWithdraw = () => {
  584. router.push({
  585. path: '/pages/ib/withdraw',
  586. },
  587. )
  588. }
  589. const toTransfer = () => {
  590. router.push({
  591. path: '/pages/ib/transfer',
  592. },
  593. )
  594. }
  595. const toCustomManagement = () => {
  596. router.push({
  597. path: '/pages/ib/customer',
  598. query: { type: 3 },
  599. },
  600. )
  601. }
  602. const toIbManagement = () => {
  603. router.push({
  604. path: '/pages/ib/subsList',
  605. query: { type: 2 },
  606. },
  607. )
  608. }
  609. const getIbData = async () => {
  610. const res = await ibApi.IbData()
  611. if (res.code === Code.StatusOK) {
  612. if (res.data != null)
  613. ibData.value = res.data
  614. } else {
  615. uni.showToast({ title: res.msg, icon: 'none' })
  616. }
  617. }
  618. const getPammManagerValid = async () => {
  619. const res = await ibApi.mamApplyPammManagerValid()
  620. if (res.code === Code.StatusOK) {
  621. if (res.data != null)
  622. pammManagerValid.value = res.data
  623. } else {
  624. uni.showToast({ title: res.msg, icon: 'none' })
  625. }
  626. }
  627. onMounted(() => {
  628. // 初始化数据
  629. getIbData()
  630. getPammManagerValid()
  631. })
  632. </script>
  633. <style lang="scss" scoped>
  634. @import "@/uni.scss";
  635. .dashboard-container {
  636. min-height: 100vh;
  637. box-sizing: border-box;
  638. }
  639. /* 卡片通用样式 */
  640. .card {
  641. background: var(--color-white);
  642. color: #333;
  643. padding: px2rpx(12) px2rpx(16);
  644. border-radius: 4px;
  645. margin-bottom: px2rpx(20);
  646. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.2);
  647. }
  648. .card-header {
  649. display: flex;
  650. justify-content: space-between;
  651. align-items: center;
  652. margin-bottom: px2rpx(12);
  653. }
  654. .header-left {
  655. display: flex;
  656. align-items: center;
  657. gap: 12rpx;
  658. }
  659. .header-title {
  660. font-size: px2rpx(14);
  661. font-weight: 600;
  662. }
  663. .header-right {
  664. display: flex;
  665. align-items: center;
  666. }
  667. .action-btn {
  668. background: #ffde02;
  669. border: none;
  670. border-radius: 50%;
  671. width: px2rpx(32);
  672. height: px2rpx(32);
  673. display: flex;
  674. align-items: center;
  675. justify-content: center;
  676. padding: 0;
  677. margin: 0;
  678. &:after {
  679. border: none;
  680. }
  681. }
  682. /* 余额区域 */
  683. .balance-content {
  684. display: flex;
  685. flex-direction: column;
  686. align-items: center;
  687. gap: 16rpx;
  688. }
  689. .balance-main {
  690. display: flex;
  691. align-items: baseline;
  692. flex-wrap: wrap;
  693. }
  694. .balance-amount {
  695. font-size: px2rpx(20);
  696. font-weight: 700;
  697. line-height: 1;
  698. }
  699. .balance-decimal {
  700. font-size: px2rpx(16);
  701. font-weight: 500;
  702. line-height: 1;
  703. }
  704. .balance-currency {
  705. font-size: px2rpx(16);
  706. font-weight: 500;
  707. }
  708. .total-earnings {
  709. display: flex;
  710. gap: 12px;
  711. color: rgba(20, 29, 34, 0.6);
  712. font-size: px2rpx(12);
  713. }
  714. .total-value {
  715. }
  716. /* 合作伙伴卡片 */
  717. .partner-content {
  718. display: flex;
  719. flex-direction: column;
  720. gap: 12px;
  721. }
  722. .link-area {
  723. display: flex;
  724. flex-wrap: wrap;
  725. justify-content: space-around;
  726. align-items: center;
  727. gap: 12px;
  728. }
  729. .link-btn {
  730. height: px2rpx(32);
  731. background-color: rgb(108, 133, 149);
  732. line-height: px2rpx(32);
  733. color: var(--color-white);
  734. border-radius: px2rpx(16);
  735. font-size: px2rpx(14);
  736. margin: 0;
  737. }
  738. .code-content {
  739. display: flex;
  740. justify-content: center;
  741. }
  742. .code-input {
  743. width: 50%;
  744. max-width: px2rpx(178);
  745. margin-right: px2rpx(20);
  746. }
  747. .custom-content {
  748. display: flex;
  749. justify-content: space-around;
  750. flex-wrap: wrap;
  751. .con {
  752. cursor: pointer;
  753. text-align: center;
  754. font-size: px2rpx(16);
  755. margin: 5px;
  756. }
  757. .num {
  758. font-weight: bold;
  759. }
  760. .des {
  761. margin-top: px2rpx(5);
  762. }
  763. }
  764. .dia-content {
  765. padding: 20rpx;
  766. }
  767. .content {
  768. display: flex;
  769. flex-direction: column;
  770. gap: 20rpx;
  771. }
  772. .label {
  773. font-weight: 500;
  774. margin-bottom: 8rpx;
  775. }
  776. .btn {
  777. margin-top: 16rpx;
  778. text-align: center;
  779. }
  780. .crm-cursor {
  781. cursor: pointer;
  782. }
  783. .link {
  784. display: flex;
  785. margin-top: 20rpx;
  786. .btn {
  787. display: flex;
  788. align-items: center;
  789. justify-content: center;
  790. height: px2rpx(35);
  791. margin: 0 px2rpx(10);
  792. }
  793. }
  794. .qrCode {
  795. display: flex;
  796. flex-direction: column;
  797. align-items: center;
  798. gap: 16rpx;
  799. }
  800. </style>