applyIbDialog.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. <template>
  2. <cwg-popup :title="t(title)" :visible="visible" @close="closeDia" @confirm="confirmDia">
  3. <view class="dia-content">
  4. <uni-forms ref="formRef" labelWidth="200">
  5. <uni-forms-item v-if="isFormApplyIb" :label="t('Ib.Custom.Manage3')+':'" prop="customerId">
  6. <cwg-combox v-model:value="addAgentForm.customerId" :options="customerList"
  7. :placeholder="t('placeholder.choose')" filterable @change="changeCustomer" />
  8. </uni-forms-item>
  9. <view class="commission-groups">
  10. <view v-for="(group, gIndex) in commissionTemplateTableData" :key="gIndex" class="group-card">
  11. <!-- 头部开关和标题 -->
  12. <view class="group-header" @click="toggleGroup(group)">
  13. <view class="group-title">
  14. <text class="title-text">{{ group.accountGroup }}</text>
  15. </view>
  16. <view class="group-switch" @click.stop>
  17. <switch :checked="group.isOpen" @change="(e) => onGroupSwitchChange(e, group)" color="#2b5aed"
  18. style="transform:scale(0.8)" />
  19. </view>
  20. </view>
  21. <!-- 展开的内容区 -->
  22. <view v-show="group.isOpen" class="group-body">
  23. <view v-for="(item, iIndex) in group.items" :key="iIndex" class="item-row">
  24. <view class="item-title">
  25. <!-- <text class="type-badge">{{ item.dataType === 'rebates' ? 'Rebates' : 'Commissions' }}</text>-->
  26. <text class="type-text">{{ item.type }}</text>
  27. </view>
  28. <view class="item-fields">
  29. <!-- METAL -->
  30. <view class="field-col">
  31. <text class="field-label">METAL</text>
  32. <cwg-combox
  33. v-model:value="item.energy"
  34. :options="formatOptions(item.energyOptions)"
  35. :placeholder="t('placeholder.choose')"
  36. />
  37. </view>
  38. <!-- FX -->
  39. <view class="field-col">
  40. <text class="field-label">FX</text>
  41. <cwg-combox
  42. v-model:value="item.forex"
  43. :options="formatOptions(item.forexOptions)"
  44. :placeholder="t('placeholder.choose')"
  45. />
  46. </view>
  47. <!-- ENERGY -->
  48. <view class="field-col">
  49. <text class="field-label">ENERGY</text>
  50. <cwg-combox
  51. v-model:value="item.energy2"
  52. :options="formatOptions(item.energy2Options)"
  53. :placeholder="t('placeholder.choose')"
  54. />
  55. </view>
  56. <!-- CFD -->
  57. <view class="field-col">
  58. <text class="field-label">CFD</text>
  59. <cwg-combox
  60. v-model:value="item.index"
  61. :options="formatOptions(item.indexOptions)"
  62. :placeholder="t('placeholder.choose')"
  63. />
  64. </view>
  65. <!-- INDEX -->
  66. <view class="field-col">
  67. <text class="field-label">INDEX</text>
  68. <cwg-combox
  69. v-model:value="item.metal"
  70. :options="formatOptions(item.metalOptions)"
  71. :placeholder="t('placeholder.choose')"
  72. />
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </uni-forms>
  80. </view>
  81. </cwg-popup>
  82. </template>
  83. <script setup lang="ts">
  84. import { ref, reactive, computed, onMounted, onUnmounted, watch } from 'vue'
  85. import { onLoad } from '@dcloudio/uni-app'
  86. import { useI18n } from 'vue-i18n' // uni-app 中已集成,但需配置
  87. import { customApi } from '@/service/custom'
  88. import { financialApi } from '@/service/financial'
  89. import Config from '@/config/index'
  90. import { ibApi } from '@/service/ib'
  91. import useUserStore from '@/stores/use-user-store'
  92. import { lang } from '@/composables/config'
  93. const props = defineProps({
  94. paramsType: {
  95. type: String,
  96. default: '',
  97. },
  98. title: {
  99. type: String,
  100. default: 'Ib.Report.Title5',
  101. },
  102. // 是否显示弹窗
  103. visible: {
  104. type: Boolean,
  105. default: false,
  106. },
  107. // 详情tableData
  108. detail: { type: Array, default: () => ({}) },
  109. // 是否需要选择客户
  110. isFormApplyIb: {
  111. type: Boolean,
  112. default: false,
  113. },
  114. })
  115. const { Code, Host80 } = Config
  116. const { t } = useI18n()
  117. const formRef = ref(null)
  118. const addAgentForm = ref({
  119. customerId: '',
  120. })
  121. const customerList = ref([])
  122. const commissionAccountTypeSettings = ref({
  123. ecn: { selectedIndex: null, selectedItem: null, loginType: '2' },
  124. standard: { selectedIndex: null, selectedItem: null, loginType: '7' },
  125. cent: { selectedIndex: null, selectedItem: null, loginType: '8' },
  126. })
  127. const commissionAccountTypeData = ref({
  128. ecn: [],
  129. standard: [],
  130. cent: [],
  131. })
  132. const commissionTemplateTableData = ref<any[]>([])
  133. const emit = defineEmits(['close', 'confirm'])
  134. onMounted(() => {
  135. // initCommissionTemplateData(29634)
  136. })
  137. watch(() => props.visible, (val) => {
  138. if (val) {
  139. loadCustomerList()
  140. // initCommissionTemplateData(29634)
  141. console.log(props.detail)
  142. if (props.detail.id) {
  143. let params = {
  144. customerId: props.detail.id,
  145. }
  146. if (props.paramsType == 'vietnam') {
  147. params = {
  148. agentId: props.params.id,
  149. }
  150. }
  151. initCommissionTemplateData(params)
  152. }
  153. }
  154. })
  155. const getSpreadLabelCommission = (item) => {
  156. return item.groupName || ''
  157. }
  158. const handleCommissionAccountTypeChange = (type, loginType) => {
  159. const setting = commissionAccountTypeSettings.value[type]
  160. const availableSpreads = getAvailableSpreadsCommission(loginType)
  161. if (
  162. setting.selectedIndex !== null &&
  163. setting.selectedIndex !== undefined
  164. ) {
  165. setting.selectedItem = availableSpreads[setting.selectedIndex] || null
  166. } else {
  167. setting.selectedItem = null
  168. }
  169. }
  170. const generateOptions = (currentValue) => {
  171. const options = []
  172. for (let i = 0; i <= currentValue; i++) {
  173. options.push(i)
  174. }
  175. return options
  176. }
  177. // 格式化 options 为 combox 期望的格式
  178. const formatOptions = (opts) => {
  179. if (!opts || !Array.isArray(opts)) return []
  180. return opts.map(val => ({ text: String(val), value: val }))
  181. }
  182. const toggleGroup = (group) => {
  183. group.isOpen = !group.isOpen
  184. }
  185. const onGroupSwitchChange = (e, group) => {
  186. group.isOpen = e.detail.value
  187. }
  188. const initCommissionTemplateData = async (params) => {
  189. try {
  190. const res = await ibApi.getVietnamPoints(params)
  191. if (res.code == Code.StatusOK && res.data && Array.isArray(res.data)) {
  192. const groupedData: Record<string, any[]> = {}
  193. res.data.forEach((group: any) => {
  194. const accountGroup = group.groupCategoryName || '--'
  195. const valid = group.valid !== undefined ? group.valid : 1
  196. if (!groupedData[accountGroup]) {
  197. groupedData[accountGroup] = []
  198. }
  199. const rebates = Array.isArray(group.rebates) ? group.rebates : []
  200. const superRebates = Array.isArray(group.superRebates) ? group.superRebates : []
  201. if (superRebates.length > 0) {
  202. const rebateRow: any = {
  203. accountGroup,
  204. groupCategoryId: group.groupCategoryId,
  205. dataType: 'rebates',
  206. type: group.rebateTypeName || 'Point',
  207. valid,
  208. forex: 0,
  209. index: 0,
  210. metal: 0,
  211. energy: 0,
  212. energy2: 0,
  213. energy2Max: 0,
  214. forex1: 0,
  215. index1: 0,
  216. metal1: 0,
  217. energy1: 0,
  218. }
  219. rebates.forEach((rebate: any) => {
  220. if (rebate.symbolCategory === 1) rebateRow.forex = rebate.point || 0
  221. else if (rebate.symbolCategory === 2) rebateRow.index = rebate.point || 0
  222. else if (rebate.symbolCategory === 3) rebateRow.metal = rebate.point || 0
  223. else if (rebate.symbolCategory === 4) rebateRow.energy = rebate.point || 0
  224. else if (rebate.symbolCategory === 5) rebateRow.energy2 = rebate.point || 0
  225. })
  226. superRebates.forEach((rebate: any) => {
  227. if (rebate.symbolCategory === 1) rebateRow.forex1 = rebate.point || 0
  228. else if (rebate.symbolCategory === 2) rebateRow.index1 = rebate.point || 0
  229. else if (rebate.symbolCategory === 3) rebateRow.metal1 = rebate.point || 0
  230. else if (rebate.symbolCategory === 4) rebateRow.energy1 = rebate.point || 0
  231. else if (rebate.symbolCategory === 5) rebateRow.energy2Max = rebate.point || 0
  232. })
  233. rebateRow.forexOptions = generateOptions(rebateRow.forex1)
  234. rebateRow.indexOptions = generateOptions(rebateRow.index1)
  235. rebateRow.metalOptions = generateOptions(rebateRow.metal1)
  236. rebateRow.energyOptions = generateOptions(rebateRow.energy1)
  237. rebateRow.energy2Options = generateOptions(rebateRow.energy2Max)
  238. groupedData[accountGroup].push(rebateRow)
  239. }
  240. const commissions = Array.isArray(group.commissions) ? group.commissions : []
  241. const superCommissions = Array.isArray(group.superCommissions) ? group.superCommissions : []
  242. if (superCommissions.length > 0) {
  243. const commissionRow: any = {
  244. accountGroup,
  245. groupCategoryId: group.groupCategoryId,
  246. dataType: 'commissions',
  247. type: group.commissionTypeName || 'Commission',
  248. valid,
  249. forex: 0,
  250. index: 0,
  251. metal: 0,
  252. energy: 0,
  253. energy2: 0,
  254. energy2Max: 0,
  255. forex1: 0,
  256. index1: 0,
  257. metal1: 0,
  258. energy1: 0,
  259. }
  260. commissions.forEach((comm: any) => {
  261. if (comm.symbolCategory === 1) commissionRow.forex = comm.point || 0
  262. else if (comm.symbolCategory === 2) commissionRow.index = comm.point || 0
  263. else if (comm.symbolCategory === 3) commissionRow.metal = comm.point || 0
  264. else if (comm.symbolCategory === 4) commissionRow.energy = comm.point || 0
  265. else if (comm.symbolCategory === 5) commissionRow.energy2 = comm.point || 0
  266. })
  267. superCommissions.forEach((comm: any) => {
  268. if (comm.symbolCategory === 1) commissionRow.forex1 = comm.point || 0
  269. else if (comm.symbolCategory === 2) commissionRow.index1 = comm.point || 0
  270. else if (comm.symbolCategory === 3) commissionRow.metal1 = comm.point || 0
  271. else if (comm.symbolCategory === 4) commissionRow.energy1 = comm.point || 0
  272. else if (comm.symbolCategory === 5) commissionRow.energy2Max = comm.point || 0
  273. })
  274. commissionRow.forexOptions = generateOptions(commissionRow.forex1)
  275. commissionRow.indexOptions = generateOptions(commissionRow.index1)
  276. commissionRow.metalOptions = generateOptions(commissionRow.metal1)
  277. commissionRow.energyOptions = generateOptions(commissionRow.energy1)
  278. commissionRow.energy2Options = generateOptions(commissionRow.energy2Max)
  279. groupedData[accountGroup].push(commissionRow)
  280. }
  281. })
  282. // 将按 accountGroup 聚合后的对象转换为包含 accountGroup 和 items 数组的结构
  283. const finalData = Object.keys(groupedData).map((accountGroup) => {
  284. return {
  285. accountGroup,
  286. isOpen: false, // 默认不展开
  287. items: groupedData[accountGroup],
  288. }
  289. })
  290. console.log('tableData', finalData)
  291. commissionTemplateTableData.value = finalData
  292. return
  293. }
  294. commissionTemplateTableData.value = []
  295. uni.showToast({
  296. title: res.msg || t('Ib.Custom.GetDataFailed'),
  297. icon: 'none',
  298. })
  299. } catch (error) {
  300. commissionTemplateTableData.value = []
  301. uni.showToast({ title: t('Ib.Custom.GetDataFailed'), icon: 'none' })
  302. }
  303. }
  304. // 加载客户列表
  305. const loadCustomerList = async () => {
  306. try {
  307. let res = await ibApi.customerSubsList({
  308. ibStatus: 1,
  309. })
  310. if (res.code == Code.StatusOK) {
  311. customerList.value = res.data.map(item => ({
  312. label: `${item.name || ''}-${item.cId}`,
  313. value: item.id || '',
  314. cId: item.cId, // 保存 cId 供后续提交使用
  315. })) || []
  316. } else {
  317. uni.showToast({ title: res.msg, icon: 'none' })
  318. customerList.value = []
  319. }
  320. } catch (error) {
  321. console.error('加载客户列表失败:', error)
  322. customerList.value = []
  323. } finally {
  324. }
  325. }
  326. // 客户选择改变时触发
  327. const changeCustomer = (val) => {
  328. if (val) {
  329. initCommissionTemplateData({ customId: val })
  330. } else {
  331. commissionTemplateTableData.value = []
  332. }
  333. }
  334. // 构建佣金模板points数据
  335. const buildCommissionTemplatePoints = () => {
  336. const points: any[] = []
  337. const groupedData: Record<string, any> = {}
  338. // 由于现在的 commissionTemplateTableData 是 { accountGroup, isOpen, items } 嵌套结构,需要双层遍历提取
  339. commissionTemplateTableData.value.forEach((groupObj) => {
  340. groupObj.items.forEach((row: any) => {
  341. const groupId = row.groupCategoryId
  342. if (!groupedData[groupId]) {
  343. groupedData[groupId] = {
  344. groupCategoryId: groupId,
  345. commissions: [],
  346. rebates: [],
  347. valid: groupObj.isOpen ? 1 : 0,
  348. }
  349. }
  350. // 根据dataType添加到对应的数组
  351. const pointList = row.dataType === 'commissions'
  352. ? groupedData[groupId].commissions
  353. : groupedData[groupId].rebates
  354. // 添加各个symbolCategory的数据
  355. if (row.forex !== undefined && row.forex !== null) {
  356. pointList.push({ symbolCategory: 1, point: row.forex }) // FX
  357. }
  358. if (row.index !== undefined && row.index !== null) {
  359. pointList.push({ symbolCategory: 2, point: row.index }) // CFD
  360. }
  361. if (row.metal !== undefined && row.metal !== null) {
  362. pointList.push({ symbolCategory: 3, point: row.metal }) // INDEX
  363. }
  364. if (row.energy !== undefined && row.energy !== null) {
  365. pointList.push({ symbolCategory: 4, point: row.energy }) // METAL
  366. }
  367. if (row.energy2 !== undefined && row.energy2 !== null) {
  368. pointList.push({ symbolCategory: 5, point: row.energy2 }) // Energy
  369. }
  370. })
  371. })
  372. // 转换为数组格式
  373. Object.keys(groupedData).forEach((groupId) => {
  374. const group = groupedData[groupId]
  375. if (group.commissions.length > 0 || group.rebates.length > 0) {
  376. points.push({
  377. groupCategoryId: group.groupCategoryId,
  378. commissions: group.commissions.length > 0 ? group.commissions : undefined,
  379. rebates: group.rebates.length > 0 ? group.rebates : undefined,
  380. valid: group.valid,
  381. })
  382. }
  383. })
  384. return points
  385. }
  386. const toVerified = () => {
  387. // 确认按钮点击事件
  388. emit('confirm')
  389. }
  390. const closeDia = () => {
  391. commissionTemplateTableData.value = []
  392. emit('close')
  393. }
  394. const confirmDia = async () => {
  395. // 越南分配也用,看怎么调整提交接口
  396. let customId, cId
  397. // 越南佣金分配不用判断customId
  398. if (props.paramsType !== 'vietnam') {
  399. if (!props.isFormApplyIb) {
  400. if (!props.detail.id) {
  401. uni.showToast({ title: t('Ib.Custom.CustomerNotExist'), icon: 'none' })
  402. return
  403. }
  404. const applyIbRowData: any = props.detail || {}
  405. customId = applyIbRowData.id
  406. cId = applyIbRowData.cId
  407. } else {
  408. // 从其他地方打开,需要选择客户
  409. if (!addAgentForm.value.customerId) {
  410. uni.showToast({ title: t('placeholder.choose'), icon: 'none' })
  411. return
  412. }
  413. // 从客户列表中找到选中的客户对象
  414. const selectedCustomer: any = customerList.value.find(
  415. (item: any) => item.value === addAgentForm.value.customerId,
  416. )
  417. if (!selectedCustomer) {
  418. uni.showToast({ title: t('Ib.Custom.CustomerNotFound'), icon: 'none' })
  419. return
  420. }
  421. customId = selectedCustomer.value
  422. cId = selectedCustomer.cId
  423. }
  424. }
  425. try {
  426. // 构建points数据
  427. const points = buildCommissionTemplatePoints()
  428. // console.log(points)
  429. // 调用新增代理申请接口
  430. let params = {
  431. customId: customId,
  432. cId: cId,
  433. points: points,
  434. }
  435. if (props.paramsType === 'vietnam') {
  436. params = {
  437. agentId: props.detail.id,
  438. points: points,
  439. }
  440. }
  441. // 越南分配和新增代理
  442. const res = props.paramsType === 'vietnam' ? await ibApi.saveVietnamPoints(params) : await ibApi.agentApplyAddPoint(params)
  443. if (res.code == Code.StatusOK) {
  444. uni.showToast({
  445. title: res.msg || props.paramsType ? t('Ib.Custom.SaveSuccess') : t('Ib.Custom.SubmitSuccess'),
  446. icon: 'success',
  447. })
  448. closeDia()
  449. emit('confirm')
  450. } else {
  451. uni.showToast({
  452. title: res.msg || props.paramsType ? t('Ib.Custom.SaveFailed') : t('Ib.Custom.SubmitFailed'),
  453. icon: 'none',
  454. })
  455. }
  456. } catch (error) {
  457. console.error('新增代理失败或保存越南分配数据失败:', error)
  458. uni.showToast({ title: props.paramsType ? t('Ib.Custom.SaveFailed') : t('Ib.Custom.SubmitFailed'), icon: 'none' })
  459. }
  460. }
  461. </script>
  462. <style lang="scss" scoped>
  463. @import "@/uni.scss";
  464. .commission-groups {
  465. margin-top: px2rpx(10);
  466. padding-bottom: px2rpx(150); /* 预留底部空间,防止最下面的下拉框被截断或遮挡 */
  467. }
  468. .group-card {
  469. border: 1px solid #ebeef5;
  470. border-radius: px2rpx(6);
  471. margin-bottom: px2rpx(15);
  472. background-color: #fff;
  473. /* overflow: hidden; 移除此属性,防止下拉框被遮挡截断 */
  474. }
  475. .group-header {
  476. display: flex;
  477. justify-content: space-between;
  478. align-items: center;
  479. padding: px2rpx(10) px2rpx(15);
  480. background-color: #f5f7fa;
  481. border-bottom: 1px solid #ebeef5;
  482. border-top-left-radius: px2rpx(6);
  483. border-top-right-radius: px2rpx(6);
  484. }
  485. .group-title {
  486. font-size: px2rpx(14);
  487. font-weight: bold;
  488. color: #303133;
  489. }
  490. .group-body {
  491. padding: px2rpx(15);
  492. }
  493. .item-row {
  494. margin-bottom: px2rpx(15);
  495. padding-bottom: px2rpx(15);
  496. border-bottom: 1px dashed #ebeef5;
  497. &:last-child {
  498. margin-bottom: 0;
  499. padding-bottom: 0;
  500. border-bottom: none;
  501. }
  502. }
  503. .item-title {
  504. margin-bottom: px2rpx(10);
  505. display: flex;
  506. align-items: center;
  507. .type-badge {
  508. background-color: #e1f3d8;
  509. color: #67c23a;
  510. padding: px2rpx(2) px2rpx(8);
  511. border-radius: px2rpx(4);
  512. font-size: px2rpx(12);
  513. margin-right: px2rpx(8);
  514. }
  515. .type-text {
  516. font-size: px2rpx(13);
  517. color: #606266;
  518. }
  519. }
  520. .item-fields {
  521. display: flex;
  522. flex-wrap: wrap;
  523. gap: px2rpx(10);
  524. justify-content: flex-start;
  525. }
  526. .field-col {
  527. flex: 0 0 calc(20% - px2rpx(10));
  528. min-width: px2rpx(80);
  529. max-width: px2rpx(120);
  530. display: flex;
  531. flex-direction: column;
  532. .field-label {
  533. font-size: px2rpx(12);
  534. color: #909399;
  535. margin-bottom: px2rpx(5);
  536. }
  537. }
  538. .dialog-account-adjust-body {
  539. padding: 20rpx;
  540. }
  541. .account-adjust-cid-row {
  542. display: flex;
  543. align-items: center;
  544. margin-bottom: 20rpx;
  545. }
  546. .account-adjust-cid-label {
  547. color: #606266;
  548. margin-right: px2rpx(5);
  549. }
  550. .account-adjust-cid-value {
  551. font-weight: bold;
  552. color: #303133;
  553. }
  554. .form-section {
  555. margin-bottom: 20rpx;
  556. }
  557. .section-title {
  558. display: flex;
  559. align-items: center;
  560. margin-bottom: px2rpx(15);
  561. font-weight: bold;
  562. font-size: px2rpx(14);
  563. }
  564. .section-title i {
  565. margin-right: 10rpx;
  566. }
  567. .account-type-grid {
  568. }
  569. .account-type-card {
  570. display: flex;
  571. flex-direction: column;
  572. margin-bottom: px2rpx(20);
  573. }
  574. .account-type-label {
  575. margin-bottom: 10rpx;
  576. font-size: 14rpx;
  577. }
  578. .account-select {
  579. width: 100%;
  580. }
  581. .dialog-account-adjust-footer {
  582. padding: 20rpx;
  583. }
  584. .account-adjust-notes-panel {
  585. margin-bottom: 20rpx;
  586. }
  587. .account-adjust-notes-section {
  588. background-color: #f5f7fa;
  589. padding: 15rpx;
  590. border-radius: 8rpx;
  591. }
  592. .account-adjust-notes-title {
  593. display: flex;
  594. align-items: center;
  595. margin-bottom: px2rpx(10);
  596. font-weight: bold;
  597. font-size: px2rpx(13);
  598. }
  599. .account-adjust-notes-title-icon {
  600. margin-right: px2rpx(10);
  601. }
  602. .account-adjust-notes-list {
  603. margin-left: px2rpx(20);
  604. color: #606266;
  605. font-size: px2rpx(13);
  606. }
  607. .account-adjust-notes-list .list {
  608. margin-bottom: px2rpx(5);
  609. margin-left: px2rpx(10);
  610. }
  611. .account-adjust-footer-buttons {
  612. display: flex;
  613. justify-content: flex-end;
  614. gap: 15rpx;
  615. }
  616. .account-adjust-footer-buttons button {
  617. min-width: 120rpx;
  618. }
  619. </style>