dashboard.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <view class="header">
  4. <view class="title">
  5. <view class="mb-3">{{t('Home.msg.Custom')}}</view>
  6. <view class="">{{dateWeek}}</view>
  7. </view>
  8. <button type="button" class="btn btn-secondary btn-shadow waves-effect"
  9. @click="createAccount">
  10. <view class="d-flex align-items-center">
  11. <cwg-icon name="crm-plus" :size="14" color="#fff" />
  12. <text v-t="'Custom.Index.AddAccount'" />
  13. </view>
  14. </button>
  15. </view>
  16. <uni-loading v-if="loading" />
  17. <uni-row v-else class="demo-uni-row uni-row1" :gutter="20">
  18. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" >
  19. <uni-row :gutter="10">
  20. <uni-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6">
  21. <view class="card position-relative">
  22. <view class="card-body d-flex align-items-center gap-3">
  23. <view class="icon-placeholder">
  24. <cwg-icon name="crm-wallet" :size="28" color="red" />
  25. </view>
  26. <view class="flex-1">
  27. <view class="d-flex justify-between items-start mb-1">
  28. <text class="text-muted text-sm">Total Balance</text>
  29. <text :class="['growth-rate', compareData.totalBalanceGrowthRate||0 >= 0 ? 'rate-up' : 'rate-down']">
  30. {{ compareData.totalBalanceGrowthRate||0 >= 0 ? '+' : '' }}{{ compareData.totalBalanceGrowthRate || 0 }}%
  31. </text>
  32. </view>
  33. <view class="fw-bold text-lg">${{ numberFormat(compareData.totalBalance || '0') }}</view>
  34. </view>
  35. </view>
  36. </view>
  37. </uni-col>
  38. <uni-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6">
  39. <view class="card position-relative">
  40. <view class="card-body d-flex align-items-center gap-3">
  41. <view class="icon-placeholder">
  42. <cwg-icon name="crm-money-up" :size="28" color="red" />
  43. </view>
  44. <view class="flex-1">
  45. <view class="d-flex justify-between items-start mb-1">
  46. <text class="text-muted text-sm">Equity</text>
  47. <text :class="['growth-rate', compareData.totalEquityGrowthRate ||0>= 0 ? 'rate-up' : 'rate-down']">
  48. {{ compareData.totalEquityGrowthRate||0 >= 0 ? '+' : '' }}{{ compareData.totalEquityGrowthRate|| 0 }}%
  49. </text>
  50. </view>
  51. <view class="fw-bold text-lg">${{ numberFormat(compareData.totalEquity || '0') }}</view>
  52. </view>
  53. </view>
  54. </view>
  55. </uni-col>
  56. <uni-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6">
  57. <view class="card position-relative">
  58. <view class="card-body d-flex align-items-center gap-3">
  59. <view class="icon-placeholder">
  60. <cwg-icon name="icon_withdraw" :size="28" color="red" />
  61. </view>
  62. <view class="flex-1">
  63. <view class="d-flex justify-between items-start mb-1">
  64. <text class="text-muted text-sm">Total deposit</text>
  65. <text :class="['growth-rate', compareData.totalDepositAmountGrowthRate ||0 >= 0 ? 'rate-up' : 'rate-down']">
  66. {{ compareData.totalDepositAmountGrowthRate||0 >= 0 ? '+' : '' }}{{ compareData.totalDepositAmountGrowthRate|| 0 }}%
  67. </text>
  68. </view>
  69. <view class="fw-bold text-lg">${{ numberFormat(compareData.totalDepositAmount || '0') }}</view>
  70. </view>
  71. </view>
  72. </view>
  73. </uni-col>
  74. <uni-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6">
  75. <view class="card position-relative">
  76. <view class="card-body d-flex align-items-center gap-3">
  77. <view class="icon-placeholder">
  78. <cwg-icon name="crm-money-bill-transfer" :size="28" color="red" />
  79. </view>
  80. <view class="flex-1">
  81. <view class="d-flex justify-between items-start mb-1">
  82. <text class="text-muted text-sm">Total withdrawal</text>
  83. <text :class="['growth-rate', compareData.totalWithdrawalAmountGrowthRate||0 >= 0 ? 'rate-up' : 'rate-down']">
  84. {{ compareData.totalWithdrawalAmountGrowthRate||0 >= 0 ? '+' : '' }}{{ compareData.totalWithdrawalAmountGrowthRate|| 0 }}%
  85. </text>
  86. </view>
  87. <view class="fw-bold text-lg">${{ numberFormat(compareData.totalWithdrawalAmount || '0') }}</view>
  88. </view>
  89. </view>
  90. </view>
  91. </uni-col>
  92. </uni-row>
  93. </uni-col>
  94. <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
  95. <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  96. <view class="chart-box crm-border-radius">
  97. <view class="chart-title">
  98. <view class="time" @click="toReload">
  99. <cwg-icon name="crm-refresh" :size="16" color="#666" />
  100. <text class="crm-cursor"> GMT+3 {{ time }}</text>
  101. </view>
  102. <view class="title">
  103. <view class="name">
  104. <text v-if="chartForm.chartType == 4">{{ t('Custom.Index.TradingVolumeStatistics') }}</text>
  105. <text v-if="chartForm.chartType == 2">{{ t('Custom.Index.DepositStatistical') }}</text>
  106. <text v-if="chartForm.chartType == 3">{{ t('Custom.Index.WithdrawalsStatistical') }}</text>
  107. <text v-if="chartForm.chartType == 6">{{ t('Custom.Index.ProfitLoss') }}</text>
  108. </view>
  109. <view class="account" v-if="chartForm.login">
  110. <text>{{ t('Custom.Index.TradingAccount') }}</text>
  111. <text> — </text>
  112. <text>{{ chartForm.login }}</text>
  113. </view>
  114. <view class="date">
  115. <uni-datetime-picker
  116. v-model="isDate"
  117. type="daterange"
  118. :placeholder="t('placeholder.Start') + ' - ' + t('placeholder.End')"
  119. @change="getSearchDate"
  120. />
  121. </view>
  122. </view>
  123. <view class="operation" @click="isChart = true">
  124. <text style="font-size: 14px">{{ t('Custom.Index.Parameter') }}</text>
  125. <cwg-icon name="iconcanshu" :size="16" color="#666" />
  126. </view>
  127. </view>
  128. <view class="chart-container">
  129. <cwg-charts type="line" :chartData="chartData" />
  130. </view>
  131. </view>
  132. </uni-col>
  133. </uni-col>
  134. </uni-row>
  135. <cwg-improve-popup v-model:visible="dialogCheck" @confirm="confirm" />
  136. <cwg-popup v-model:visible="isChart" type="center" :mask-click="false" :show-footers="true" :title="t('Custom.Index.ChartSet')">
  137. <view class="dia-content">
  138. <uni-forms ref="chartFormRef" labelWidth="160">
  139. <uni-forms-item :label="t('Label.ChartType') + ':'" prop="chartType">
  140. <cwg-combox
  141. v-model:value="chartForm.chartType"
  142. :options="chartTypeOptions"
  143. :placeholder="t('placeholder.choose')"
  144. filterable
  145. />
  146. </uni-forms-item>
  147. <uni-forms-item :label="t('Label.PlatformType') + ':'" prop="platform">
  148. <cwg-combox
  149. v-model:value="chartForm.platform"
  150. :options="platformOptions"
  151. :placeholder="t('placeholder.choose')"
  152. @change="onPlatformChange"
  153. />
  154. </uni-forms-item>
  155. <uni-forms-item :label="t('Label.TradingAccount') + ':'" prop="login">
  156. <cwg-combox
  157. v-model:value="chartForm.login"
  158. :options="loginOptions"
  159. :placeholder="t('placeholder.choose')"
  160. filterable
  161. />
  162. </uni-forms-item>
  163. </uni-forms>
  164. </view>
  165. <template #footer>
  166. <button @click="isChart = false">{{ t('Btn.Cancel') }}</button>
  167. <button type="primary" @click="handleChartConfirm">{{ t('Btn.Confirm') }}</button>
  168. </template>
  169. </cwg-popup>
  170. </cwg-page-wrapper>
  171. </template>
  172. <script setup>
  173. import { ref, computed, watch, onMounted, nextTick } from 'vue'
  174. import { useI18n } from 'vue-i18n'
  175. import dayjs from 'dayjs'
  176. import useRouter from '@/hooks/useRouter'
  177. import { ibApi } from '@/service/ib'
  178. import config from '@/config/index'
  179. import useUserStore from '@/stores/use-user-store'
  180. import { useStorage } from '@/hooks/useStorage'
  181. import QrCode from '@/components/QrCode.vue'
  182. import { useFilters } from '@/composables/useFilters'
  183. import { isAfterJuly28 } from '@/utils/dateUtils'
  184. import { documentaryApi } from '@/service/documentary'
  185. import { customApi } from '@/service/custom'
  186. import { userApi } from '@/api/user'
  187. const { t, locale } = useI18n()
  188. const loading = ref(false)
  189. const router = useRouter()
  190. const { Code } = config
  191. const userStore = useUserStore();
  192. const { numberFormat } = useFilters()
  193. const listApi = ref(documentaryApi.followDailySubscribeProfit)
  194. const loginOptions = ref([])
  195. const ChartSetDate = ref({})
  196. const isDealLogin = ref(false)
  197. const dealDate = ref({})
  198. const SubscribeProfitDate = ref([])
  199. const compareData = ref({})
  200. const isChart = ref(false)
  201. const isDate = ref(['', ''])
  202. const time = ref('')
  203. const chartData = ref({ categories: [], series: [] })
  204. const dropDown = ref([])
  205. const chartFormRef = ref(null)
  206. const chartForm = ref({
  207. chartType: '',
  208. platform: '',
  209. login: ''
  210. })
  211. const chartTypeOptions = ref([
  212. { text: 'Trading Volume Statistics', value: 4 },
  213. { text: 'Deposit Statistical', value: 2 },
  214. { text: 'Withdrawals Statistical', value: 3 },
  215. { text: 'Profit Loss', value: 6 }
  216. ])
  217. const platformOptions = [
  218. { text: 'MT4', value: 'MT4' },
  219. { text: 'MT5', value: 'MT5' }
  220. ]
  221. const getLocalTime = () => {
  222. const now = new Date()
  223. const year = now.getFullYear()
  224. const month = String(now.getMonth() + 1).padStart(2, '0')
  225. const day = String(now.getDate()).padStart(2, '0')
  226. const hh = String(now.getHours()).padStart(2, '0')
  227. const mm = String(now.getMinutes()).padStart(2, '0')
  228. time.value = `${year}/${month}/${day} ${hh}:${mm}`
  229. }
  230. const toReload = () => {
  231. getLocalTime()
  232. fetchChartData()
  233. }
  234. const getSearchDate = (val) => {
  235. if (Array.isArray(val)) {
  236. isDate.value = val
  237. }
  238. fetchChartData()
  239. }
  240. const onPlatformChange = (val) => {
  241. console.log('Platform changed:', val)
  242. }
  243. const handleChartConfirm = async () => {
  244. try {
  245. const params = {
  246. type: chartForm.value.chartType || 4,
  247. platform: chartForm.value.platform,
  248. login: chartForm.value.login,
  249. startDate: isDate.value[0],
  250. endDate: isDate.value[1]
  251. }
  252. const res = await customApi.getChartInfo(params)
  253. if (res.code === Code.StatusOK) {
  254. if (res.data) {
  255. let categories = []
  256. let seriesData = []
  257. res.data.forEach((item) => {
  258. categories.push(item.date.split(' ')[0])
  259. seriesData.push(item.amount !== null ? item.amount : item.doubleAmount)
  260. })
  261. chartData.value = { categories, series: seriesData }
  262. } else {
  263. chartData.value = { categories: [], series: [] }
  264. }
  265. }
  266. isChart.value = false
  267. } catch (error) {
  268. console.error('获取图表数据失败', error)
  269. isChart.value = false
  270. }
  271. }
  272. const fetchChartData = async () => {
  273. try {
  274. const params = {
  275. type: chartForm.value.chartType || 4,
  276. platform: chartForm.value.platform,
  277. login: chartForm.value.login,
  278. startDate: isDate.value[0],
  279. endDate: isDate.value[1]
  280. }
  281. const res = await customApi.getChartInfo(params)
  282. if (res.code === Code.StatusOK) {
  283. if (res.data) {
  284. let categories = []
  285. let seriesData = []
  286. res.data.forEach((item) => {
  287. categories.push(item.date.split(' ')[0])
  288. seriesData.push(item.amount !== null ? item.amount : item.doubleAmount)
  289. })
  290. chartData.value = { categories, series: seriesData }
  291. } else {
  292. chartData.value = { categories: [], series: [] }
  293. }
  294. }
  295. } catch (error) {
  296. console.error('获取图表数据失败', error)
  297. }
  298. }
  299. const getDropDown = async () => {
  300. try {
  301. const res = await customApi.CustomDropdown()
  302. if (res.code === Code.StatusOK) {
  303. dropDown.value = res.data || []
  304. loginOptions.value = (res.data || []).map(item => ({
  305. text: item.login,
  306. value: item.login
  307. }))
  308. }
  309. } catch (error) {
  310. console.error('获取账户列表失败', error)
  311. }
  312. }
  313. const groupTypeName = (type) => {
  314. if (!type) return '--'
  315. if (type == 1) return t('AccountType.ClassicAccount')
  316. if (type == 2) return t('AccountType.SeniorAccount')
  317. if (type == 5) return t('AccountType.SpeedAccount')
  318. if (type == 6) return t('AccountType.SpeedAccount')
  319. if (type == 7) return t('AccountType.StandardAccount')
  320. if (type == 8) return t('AccountType.CentAccount')
  321. return type
  322. }
  323. const groupCurrency = (type) => {
  324. console.log(type, 'usd')
  325. if (type == 'GBP') {
  326. return ': £'
  327. } else if (type == 'USD') {
  328. return ': $'
  329. } else if (type == 'EUR') {
  330. return ': €'
  331. } else if (type == 'USC') {
  332. return ': ¢'
  333. } else {
  334. return ': $'
  335. }
  336. }
  337. const groupCurrency1 = (type) => {
  338. if (type == "GBP") {
  339. return "£";
  340. } else if (type == "USD") {
  341. return "$";
  342. } else if (type == "EUR") {
  343. return "€";
  344. } else if (type == "USC") {
  345. return "¢";
  346. } else {
  347. return "$";
  348. }
  349. }
  350. // 今日时间
  351. const dateWeek = computed(() => {
  352. const now = dayjs()
  353. const isChinese = locale.value === 'cn' || locale.value === 'zhHant'
  354. if (isChinese) {
  355. const weekDays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
  356. const months = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
  357. return `${weekDays[now.day()]}, ${months[now.month()]}${now.date()}日, ${now.year()}`
  358. } else {
  359. return now.format('ddd, MMMD, YYYY')
  360. }
  361. })
  362. const createAccount = () => {
  363. getCustomLoginInfo()
  364. }
  365. // 获取客户登录信息
  366. const dialogCheck = ref(false)
  367. async function getCustomLoginInfo() {
  368. try {
  369. const res = await userApi.getUserInfo();
  370. userStore.saveUserInfo(res.data);
  371. if (res.code === 200) {
  372. if (
  373. res.data.customInfo.status == 2 &&
  374. res.data.customInfo.applyRealStatus == 2
  375. ) {
  376. router.push(`/pages/customer/account-select?server=${cativeIndex.value}`)
  377. } else {
  378. dialogCheck.value = true;
  379. }
  380. }
  381. } catch (error) {
  382. // console.log(error, 111);
  383. }
  384. }
  385. const confirm = () => {
  386. dialogCheck.value = false;
  387. router.push(`/pages/mine/improveImmediately`)
  388. }
  389. const handleCommand = ({ value }) => {
  390. const data = { ...value.value }
  391. console.log(123, data)
  392. isDealLogin.value = data.isDealLogin
  393. ChartSet.value = {
  394. login: data.login,
  395. leverage: '1:' + data.leverage,
  396. platform: data.platform,
  397. groupTypeName: data.groupTypeName,
  398. type: data.type,
  399. balance: data.balance,
  400. currency: data.currency || '',
  401. }
  402. }
  403. const getDailyCompare = async (login) => {
  404. const res = await documentaryApi.followDailyCompare({ login })
  405. if (res.code === Code.StatusOK) {
  406. ChartSetDate.value = res.data ?? {}
  407. } else {
  408. uni.showToast({ title: res.msg, icon: 'none' })
  409. }
  410. }
  411. const getDailyDeal = async (login) => {
  412. const res = await documentaryApi.followDailyDeal({ login })
  413. if (res.code === Code.StatusOK) {
  414. dealDate.value = res.data ?? {}
  415. } else {
  416. uni.showToast({ title: res.msg, icon: 'none' })
  417. }
  418. }
  419. const getDailySubscribeProfit = async (login) => {
  420. const res = await documentaryApi.followDailySubscribeProfit({ login })
  421. if (res.code === Code.StatusOK) {
  422. SubscribeProfitDate.value = res.data?.data ?? []
  423. } else {
  424. uni.showToast({ title: res.msg, icon: 'none' })
  425. }
  426. }
  427. watch(() => ChartSet.value.login, async (login) => {
  428. await getDailyCompare(login)
  429. if (isDealLogin.value) {
  430. await getDailyDeal(login)
  431. } else {
  432. await getDailySubscribeProfit(login)
  433. }
  434. })
  435. const toDocumentary1 = () => {
  436. router.push({ path: '/pages/follow/trading-center' })
  437. }
  438. const isApplySignalVisible = ref(false)
  439. const onApplySignalConfirm = () => {
  440. isApplySignalVisible.value = false
  441. }
  442. const getData = async () => {
  443. try{
  444. const res = await customApi.customDailyCompare()
  445. if (res.code === Code.StatusOK) {
  446. compareData.value = res.data
  447. }
  448. }catch (e) {
  449. console.log(e)
  450. }
  451. }
  452. onMounted(async () => {
  453. loading.value = true
  454. getLocalTime()
  455. await getData()
  456. await getDropDown()
  457. await fetchChartData()
  458. loading.value = false
  459. })
  460. </script>
  461. <style lang="scss" scoped>
  462. @import "@/uni.scss";
  463. .header{
  464. display: flex;
  465. align-items: center;
  466. justify-content: space-between;
  467. margin-bottom: px2rpx(20);
  468. .title{
  469. font-size: px2rpx(24);
  470. font-weight: bold;
  471. }
  472. }
  473. .demo-uni-row {
  474. display: flex;
  475. flex-wrap: wrap;
  476. align-items: stretch;
  477. margin: 0 auto !important;
  478. }
  479. .uni-col-left {
  480. //display: flex;
  481. //flex-direction: column;
  482. }
  483. .uni-col-right {
  484. display: flex;
  485. }
  486. .dashboard-container {
  487. min-height: 10vh;
  488. box-sizing: border-box;
  489. display: flex;
  490. flex-direction: column;
  491. height: 100%;
  492. }
  493. /* 卡片通用样式 */
  494. .card {
  495. background: var(--color-white);
  496. color: var(--bs-heading-color);
  497. border-radius: 4px;
  498. margin-bottom: px2rpx(20);
  499. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.2);
  500. }
  501. .card-body {
  502. padding: px2rpx(16);
  503. }
  504. .icon-placeholder {
  505. width: px2rpx(48);
  506. height: px2rpx(48);
  507. border-radius: px2rpx(24);
  508. background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  509. display: flex;
  510. align-items: center;
  511. justify-content: center;
  512. flex-shrink: 0;
  513. }
  514. .icon-text {
  515. font-size: px2rpx(20);
  516. font-weight: bold;
  517. color: #6c757d;
  518. }
  519. .growth-rate {
  520. font-size: px2rpx(12);
  521. font-weight: 500;
  522. padding: px2rpx(2) px2rpx(8);
  523. border-radius: px2rpx(2);
  524. }
  525. .growth-rate.rate-up {
  526. color: #10b981;
  527. background: rgba(16, 185, 129, 0.1);
  528. }
  529. .growth-rate.rate-down {
  530. color: #ef4444;
  531. background: rgba(239, 68, 68, 0.1);
  532. }
  533. .custom-number,
  534. .custom-money {
  535. background: var(--bs-body-bg);
  536. border: 1px solid var(--bs-border-color);
  537. padding: 15px;
  538. border-radius: 4px;
  539. margin-bottom: 20px;
  540. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  541. min-height: px2rpx(125);
  542. }
  543. .custom-number .title,
  544. .custom-money .left .tit,
  545. .custom-money .right .tit {
  546. font-size: 14px;
  547. color: var(--bs-heading-color);
  548. margin-bottom: 10px;
  549. }
  550. .custom-number .title {
  551. display: flex;
  552. justify-content: space-between;
  553. align-items: center;
  554. }
  555. .custom-money {
  556. display: flex;
  557. flex-direction: column;
  558. }
  559. .custom-money .left,
  560. .custom-money .right {
  561. flex: 1;
  562. }
  563. .custom-money .num {
  564. font-size: 20px;
  565. font-weight: bold;
  566. color: var(--bs-heading-color);
  567. }
  568. .custom-money .num.red {
  569. color: #eb3f57;
  570. }
  571. .el-dropdown-link {
  572. display: flex;
  573. align-items: center;
  574. gap: 4px;
  575. color: #6c8595;
  576. font-size: 12px;
  577. }
  578. .account-info1 {
  579. margin-bottom: 20px;
  580. }
  581. .custom-money-left .header,
  582. .custom-money-right .header {
  583. display: flex;
  584. align-items: center;
  585. justify-content: space-between;
  586. margin-bottom: px2rpx(15);
  587. }
  588. .custom-money-left .tab,
  589. .custom-money-right .tab {
  590. font-size: px2rpx(16);
  591. font-weight: 600;
  592. color: var(--bs-heading-color);
  593. }
  594. .bottomCol {
  595. font-size: 16px;
  596. color: #868686;
  597. .bo-left1 {
  598. margin: 20px 0;
  599. padding: 20px 0;
  600. border-right: 1px dashed #989898;
  601. text-align: center;
  602. font-size: 16px;
  603. }
  604. .bo-right1 {
  605. margin: 20px 0px;
  606. padding: 20px 0;
  607. text-align: center;
  608. font-size: 16px;
  609. }
  610. }
  611. .blue-font {
  612. margin-top: px2rpx(15);
  613. color: #007aff;
  614. font-weight: 600;
  615. font-size: px2rpx(24);
  616. }
  617. .subscribe-table {
  618. width: 100%;
  619. border: 1px solid #ebeef5;
  620. border-radius: 6px;
  621. overflow: hidden;
  622. }
  623. .subscribe-row {
  624. display: grid;
  625. grid-template-columns: 1fr 1fr 1fr 1fr;
  626. border-top: 1px solid #ebeef5;
  627. }
  628. .subscribe-head {
  629. background: #f5f7fa;
  630. border-top: none;
  631. }
  632. .subscribe-cell {
  633. padding: 10px 8px;
  634. font-size: 12px;
  635. color: var(--bs-heading-color);
  636. text-align: center;
  637. overflow: hidden;
  638. text-overflow: ellipsis;
  639. white-space: nowrap;
  640. }
  641. .custom-dialog-content {
  642. padding: px2rpx(20);
  643. .info-text {
  644. color: var(--bs-heading-color);
  645. font-size: px2rpx(14);
  646. line-height: px2rpx(36);
  647. }
  648. }
  649. .card-header {
  650. display: flex;
  651. justify-content: space-between;
  652. align-items: center;
  653. margin-bottom: px2rpx(12);
  654. }
  655. .header-left {
  656. display: flex;
  657. align-items: center;
  658. gap: 12rpx;
  659. }
  660. .header-title {
  661. font-size: px2rpx(14);
  662. font-weight: 600;
  663. }
  664. .header-right {
  665. display: flex;
  666. align-items: center;
  667. }
  668. .action-btn {
  669. background: #ffde02;
  670. border: none;
  671. border-radius: 50%;
  672. width: px2rpx(32);
  673. height: px2rpx(32);
  674. display: flex;
  675. align-items: center;
  676. justify-content: center;
  677. padding: 0;
  678. margin: 0;
  679. &:after {
  680. border: none;
  681. }
  682. }
  683. .dia-content {
  684. padding: 20rpx;
  685. }
  686. .content {
  687. display: flex;
  688. flex-direction: column;
  689. gap: 20rpx;
  690. }
  691. .label {
  692. font-weight: 500;
  693. margin-bottom: 8rpx;
  694. }
  695. .btn {
  696. text-align: center;
  697. background-color: rgb(var(--bs-danger-rgb));
  698. font-size: px2rpx(16);
  699. color: #fff;
  700. padding: px2rpx(10) px2rpx(20);
  701. border-radius: px2rpx(24);
  702. margin: 0;
  703. }
  704. .crm-cursor {
  705. cursor: pointer;
  706. }
  707. .link {
  708. display: flex;
  709. margin-top: 20rpx;
  710. .btn {
  711. display: flex;
  712. align-items: center;
  713. justify-content: center;
  714. height: px2rpx(35);
  715. margin: 0 px2rpx(10);
  716. }
  717. }
  718. .qrCode {
  719. display: flex;
  720. flex-direction: column;
  721. align-items: center;
  722. gap: 16rpx;
  723. }
  724. .chart-box {
  725. background: var(--color-white);
  726. border-radius: 8px;
  727. padding: px2rpx(16);
  728. box-shadow: 0 px2rpx(4) px2rpx(12) rgba(0, 0, 0, 0.2);
  729. }
  730. .chart-title {
  731. display: flex;
  732. justify-content: space-between;
  733. align-items: flex-start;
  734. margin-bottom: px2rpx(16);
  735. padding-bottom: px2rpx(16);
  736. border-bottom: 1px solid #f0f0f0;
  737. }
  738. .chart-title .time {
  739. display: flex;
  740. align-items: center;
  741. gap: px2rpx(8);
  742. font-size: px2rpx(12);
  743. color: #999;
  744. }
  745. .chart-title .title {
  746. flex: 1;
  747. margin: 0 px2rpx(16);
  748. }
  749. .chart-title .title .name {
  750. font-size: px2rpx(14);
  751. font-weight: 600;
  752. color: var(--bs-heading-color);
  753. margin-bottom: px2rpx(8);
  754. }
  755. .chart-title .title .account {
  756. font-size: px2rpx(12);
  757. color: #999;
  758. margin-bottom: px2rpx(8);
  759. }
  760. .chart-title .title .date {
  761. display: flex;
  762. }
  763. .chart-title .date-picker {
  764. font-size: px2rpx(12);
  765. color: #666;
  766. padding: px2rpx(6) px2rpx(12);
  767. background: #f5f5f5;
  768. border-radius: 4px;
  769. }
  770. .chart-title .operation {
  771. display: flex;
  772. align-items: center;
  773. gap: px2rpx(4);
  774. color: #666;
  775. cursor: pointer;
  776. }
  777. .chart-container {
  778. height: px2rpx(300);
  779. }
  780. .popup-content .form {
  781. padding: px2rpx(16);
  782. }
  783. .popup-content .form-item {
  784. margin-bottom: px2rpx(20);
  785. }
  786. .popup-content .form-label {
  787. display: block;
  788. font-size: px2rpx(14);
  789. color: #666;
  790. margin-bottom: px2rpx(8);
  791. }
  792. .popup-content .picker-value {
  793. display: flex;
  794. justify-content: space-between;
  795. align-items: center;
  796. padding: px2rpx(12);
  797. background: #f5f5f5;
  798. border-radius: 4px;
  799. font-size: px2rpx(14);
  800. color: #333;
  801. }
  802. .crm-cursor {
  803. cursor: pointer;
  804. }
  805. .crm-border-radius {
  806. border-radius: 8px;
  807. }
  808. </style>