applyIbDialog.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  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: 'vietnam'
  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. if (props.detail.id) {
  142. let params = {
  143. customerId: props.detail.id,
  144. }
  145. if (props.paramsType == 'vietnam') {
  146. params = {
  147. agentId: 91886//props.params.id,
  148. }
  149. }
  150. initCommissionTemplateData(params)
  151. }
  152. }
  153. })
  154. const getSpreadLabelCommission = (item) => {
  155. return item.groupName || ''
  156. }
  157. const handleCommissionAccountTypeChange = (type, loginType) => {
  158. const setting = commissionAccountTypeSettings.value[type]
  159. const availableSpreads = getAvailableSpreadsCommission(loginType)
  160. if (
  161. setting.selectedIndex !== null &&
  162. setting.selectedIndex !== undefined
  163. ) {
  164. setting.selectedItem = availableSpreads[setting.selectedIndex] || null
  165. } else {
  166. setting.selectedItem = null
  167. }
  168. }
  169. const generateOptions = (currentValue) => {
  170. const options = []
  171. for (let i = 0; i <= currentValue; i++) {
  172. options.push(i)
  173. }
  174. return options
  175. }
  176. // 格式化 options 为 combox 期望的格式
  177. const formatOptions = (opts) => {
  178. if (!opts || !Array.isArray(opts)) return []
  179. return opts.map(val => ({ text: String(val), value: val }))
  180. }
  181. const toggleGroup = (group) => {
  182. group.isOpen = !group.isOpen
  183. }
  184. const onGroupSwitchChange = (e, group) => {
  185. group.isOpen = e.detail.value
  186. }
  187. const initCommissionTemplateData = async (params) => {
  188. try {
  189. const res = await ibApi.getVietnamPoints(params)
  190. if (res.code == Code.StatusOK && res.data && Array.isArray(res.data)) {
  191. const groupedData: Record<string, any[]> = {}
  192. res.data.forEach((group: any) => {
  193. const accountGroup = group.groupCategoryName || '--'
  194. const valid = group.valid !== undefined ? group.valid : 1
  195. if (!groupedData[accountGroup]) {
  196. groupedData[accountGroup] = []
  197. }
  198. const rebates = Array.isArray(group.rebates) ? group.rebates : []
  199. const superRebates = Array.isArray(group.superRebates) ? group.superRebates : []
  200. if (superRebates.length > 0) {
  201. const rebateRow: any = {
  202. accountGroup,
  203. groupCategoryId: group.groupCategoryId,
  204. dataType: 'rebates',
  205. type: group.rebateTypeName || 'Point',
  206. valid,
  207. forex: 0,
  208. index: 0,
  209. metal: 0,
  210. energy: 0,
  211. energy2: 0,
  212. energy2Max: 0,
  213. forex1: 0,
  214. index1: 0,
  215. metal1: 0,
  216. energy1: 0,
  217. }
  218. rebates.forEach((rebate: any) => {
  219. if (rebate.symbolCategory === 1) rebateRow.forex = rebate.point || 0
  220. else if (rebate.symbolCategory === 2) rebateRow.index = rebate.point || 0
  221. else if (rebate.symbolCategory === 3) rebateRow.metal = rebate.point || 0
  222. else if (rebate.symbolCategory === 4) rebateRow.energy = rebate.point || 0
  223. else if (rebate.symbolCategory === 5) rebateRow.energy2 = rebate.point || 0
  224. })
  225. superRebates.forEach((rebate: any) => {
  226. if (rebate.symbolCategory === 1) rebateRow.forex1 = rebate.point || 0
  227. else if (rebate.symbolCategory === 2) rebateRow.index1 = rebate.point || 0
  228. else if (rebate.symbolCategory === 3) rebateRow.metal1 = rebate.point || 0
  229. else if (rebate.symbolCategory === 4) rebateRow.energy1 = rebate.point || 0
  230. else if (rebate.symbolCategory === 5) rebateRow.energy2Max = rebate.point || 0
  231. })
  232. rebateRow.forexOptions = generateOptions(rebateRow.forex1)
  233. rebateRow.indexOptions = generateOptions(rebateRow.index1)
  234. rebateRow.metalOptions = generateOptions(rebateRow.metal1)
  235. rebateRow.energyOptions = generateOptions(rebateRow.energy1)
  236. rebateRow.energy2Options = generateOptions(rebateRow.energy2Max)
  237. groupedData[accountGroup].push(rebateRow)
  238. }
  239. const commissions = Array.isArray(group.commissions) ? group.commissions : []
  240. const superCommissions = Array.isArray(group.superCommissions) ? group.superCommissions : []
  241. if (superCommissions.length > 0) {
  242. const commissionRow: any = {
  243. accountGroup,
  244. groupCategoryId: group.groupCategoryId,
  245. dataType: 'commissions',
  246. type: group.commissionTypeName || 'Commission',
  247. valid,
  248. forex: 0,
  249. index: 0,
  250. metal: 0,
  251. energy: 0,
  252. energy2: 0,
  253. energy2Max: 0,
  254. forex1: 0,
  255. index1: 0,
  256. metal1: 0,
  257. energy1: 0,
  258. }
  259. commissions.forEach((comm: any) => {
  260. if (comm.symbolCategory === 1) commissionRow.forex = comm.point || 0
  261. else if (comm.symbolCategory === 2) commissionRow.index = comm.point || 0
  262. else if (comm.symbolCategory === 3) commissionRow.metal = comm.point || 0
  263. else if (comm.symbolCategory === 4) commissionRow.energy = comm.point || 0
  264. else if (comm.symbolCategory === 5) commissionRow.energy2 = comm.point || 0
  265. })
  266. superCommissions.forEach((comm: any) => {
  267. if (comm.symbolCategory === 1) commissionRow.forex1 = comm.point || 0
  268. else if (comm.symbolCategory === 2) commissionRow.index1 = comm.point || 0
  269. else if (comm.symbolCategory === 3) commissionRow.metal1 = comm.point || 0
  270. else if (comm.symbolCategory === 4) commissionRow.energy1 = comm.point || 0
  271. else if (comm.symbolCategory === 5) commissionRow.energy2Max = comm.point || 0
  272. })
  273. commissionRow.forexOptions = generateOptions(commissionRow.forex1)
  274. commissionRow.indexOptions = generateOptions(commissionRow.index1)
  275. commissionRow.metalOptions = generateOptions(commissionRow.metal1)
  276. commissionRow.energyOptions = generateOptions(commissionRow.energy1)
  277. commissionRow.energy2Options = generateOptions(commissionRow.energy2Max)
  278. groupedData[accountGroup].push(commissionRow)
  279. }
  280. })
  281. // 将按 accountGroup 聚合后的对象转换为包含 accountGroup 和 items 数组的结构
  282. const finalData = Object.keys(groupedData).map((accountGroup) => {
  283. return {
  284. accountGroup,
  285. isOpen: false, // 默认不展开
  286. items: groupedData[accountGroup],
  287. }
  288. })
  289. console.log('tableData', finalData)
  290. commissionTemplateTableData.value = finalData
  291. return
  292. }
  293. commissionTemplateTableData.value = []
  294. uni.showToast({
  295. title: res.msg || t('Ib.Custom.GetDataFailed'),
  296. icon: 'none',
  297. })
  298. } catch (error) {
  299. commissionTemplateTableData.value = []
  300. uni.showToast({ title: t('Ib.Custom.GetDataFailed'), icon: 'none' })
  301. }
  302. }
  303. // 加载客户列表
  304. const loadCustomerList = async () => {
  305. try {
  306. let res = await ibApi.customerSubsList({
  307. ibStatus: 1,
  308. })
  309. if (res.code == Code.StatusOK) {
  310. customerList.value = res.data.map(item => ({
  311. label: `${item.name || ''}-${item.cId}`,
  312. value: item.id || '',
  313. cId: item.cId, // 保存 cId 供后续提交使用
  314. })) || []
  315. } else {
  316. uni.showToast({ title: res.msg, icon: 'none' })
  317. customerList.value = []
  318. }
  319. } catch (error) {
  320. console.error('加载客户列表失败:', error)
  321. customerList.value = []
  322. } finally {
  323. }
  324. }
  325. // 客户选择改变时触发
  326. const changeCustomer = (val) => {
  327. if (val) {
  328. initCommissionTemplateData({ customId: val })
  329. } else {
  330. commissionTemplateTableData.value = []
  331. }
  332. }
  333. // 构建佣金模板points数据
  334. const buildCommissionTemplatePoints = () => {
  335. const points: any[] = []
  336. const groupedData: Record<string, any> = {}
  337. // 由于现在的 commissionTemplateTableData 是 { accountGroup, isOpen, items } 嵌套结构,需要双层遍历提取
  338. commissionTemplateTableData.value.forEach((groupObj) => {
  339. groupObj.items.forEach((row: any) => {
  340. const groupId = row.groupCategoryId
  341. if (!groupedData[groupId]) {
  342. groupedData[groupId] = {
  343. groupCategoryId: groupId,
  344. commissions: [],
  345. rebates: [],
  346. valid: groupObj.isOpen ? 1 : 0,
  347. }
  348. }
  349. // 根据dataType添加到对应的数组
  350. const pointList = row.dataType === 'commissions'
  351. ? groupedData[groupId].commissions
  352. : groupedData[groupId].rebates
  353. // 添加各个symbolCategory的数据
  354. if (row.forex !== undefined && row.forex !== null) {
  355. pointList.push({ symbolCategory: 1, point: row.forex }) // FX
  356. }
  357. if (row.index !== undefined && row.index !== null) {
  358. pointList.push({ symbolCategory: 2, point: row.index }) // CFD
  359. }
  360. if (row.metal !== undefined && row.metal !== null) {
  361. pointList.push({ symbolCategory: 3, point: row.metal }) // INDEX
  362. }
  363. if (row.energy !== undefined && row.energy !== null) {
  364. pointList.push({ symbolCategory: 4, point: row.energy }) // METAL
  365. }
  366. if (row.energy2 !== undefined && row.energy2 !== null) {
  367. pointList.push({ symbolCategory: 5, point: row.energy2 }) // Energy
  368. }
  369. })
  370. })
  371. // 转换为数组格式
  372. Object.keys(groupedData).forEach((groupId) => {
  373. const group = groupedData[groupId]
  374. if (group.commissions.length > 0 || group.rebates.length > 0) {
  375. points.push({
  376. groupCategoryId: group.groupCategoryId,
  377. commissions: group.commissions.length > 0 ? group.commissions : undefined,
  378. rebates: group.rebates.length > 0 ? group.rebates : undefined,
  379. valid: group.valid,
  380. })
  381. }
  382. })
  383. return points
  384. }
  385. const toVerified = () => {
  386. // 确认按钮点击事件
  387. emit('confirm')
  388. }
  389. const closeDia = () => {
  390. commissionTemplateTableData.value = []
  391. emit('close')
  392. }
  393. const confirmDia = async () => {
  394. // 越南分配也用,看怎么调整提交接口
  395. let customId, cId
  396. // 越南佣金分配不用判断customId
  397. if (props.paramsType !== 'vietnam') {
  398. if (!props.isFormApplyIb) {
  399. if (!props.detail.id) {
  400. uni.showToast({ title: t('Ib.Custom.CustomerNotExist'), icon: 'none' })
  401. return
  402. }
  403. const applyIbRowData: any = props.detail || {}
  404. customId = applyIbRowData.id
  405. cId = applyIbRowData.cId
  406. } else {
  407. // 从其他地方打开,需要选择客户
  408. if (!addAgentForm.value.customerId) {
  409. uni.showToast({ title: t('placeholder.choose'), icon: 'none' })
  410. return
  411. }
  412. // 从客户列表中找到选中的客户对象
  413. const selectedCustomer: any = customerList.value.find(
  414. (item: any) => item.value === addAgentForm.value.customerId,
  415. )
  416. if (!selectedCustomer) {
  417. uni.showToast({ title: t('Ib.Custom.CustomerNotFound'), icon: 'none' })
  418. return
  419. }
  420. customId = selectedCustomer.value
  421. cId = selectedCustomer.cId
  422. }
  423. }
  424. try {
  425. // 构建points数据
  426. const points = buildCommissionTemplatePoints()
  427. // console.log(points)
  428. // 调用新增代理申请接口
  429. let params = {
  430. customId: customId,
  431. cId: cId,
  432. points: points,
  433. }
  434. if (props.paramsType === 'vietnam') {
  435. params = {
  436. agentId: props.detail.id,
  437. points: points,
  438. }
  439. }
  440. // 越南分配和新增代理
  441. const res = props.paramsType === 'vietnam' ?await ibApi.saveVietnamPoints(params):await ibApi.agentApplyAddPoint(params)
  442. if (res.code == Code.StatusOK) {
  443. uni.showToast({ title: res.msg || props.paramsType?t("Ib.Custom.SaveSuccess"):t('Ib.Custom.SubmitSuccess'), icon: 'success' })
  444. closeDia()
  445. emit('confirm')
  446. } else {
  447. uni.showToast({ title: res.msg || props.paramsType?t("Ib.Custom.SaveFailed"):t('Ib.Custom.SubmitFailed'), icon: 'none' })
  448. }
  449. } catch (error) {
  450. console.error('新增代理失败或保存越南分配数据失败:', error)
  451. uni.showToast({ title: props.paramsType?t("Ib.Custom.SaveFailed"):t('Ib.Custom.SubmitFailed'), icon: 'none' })
  452. }
  453. }
  454. </script>
  455. <style lang="scss" scoped>
  456. @import "@/uni.scss";
  457. .commission-groups {
  458. margin-top: px2rpx(10);
  459. padding-bottom: px2rpx(150); /* 预留底部空间,防止最下面的下拉框被截断或遮挡 */
  460. }
  461. .group-card {
  462. border: 1px solid #ebeef5;
  463. border-radius: px2rpx(6);
  464. margin-bottom: px2rpx(15);
  465. background-color: #fff;
  466. /* overflow: hidden; 移除此属性,防止下拉框被遮挡截断 */
  467. }
  468. .group-header {
  469. display: flex;
  470. justify-content: space-between;
  471. align-items: center;
  472. padding: px2rpx(10) px2rpx(15);
  473. background-color: #f5f7fa;
  474. border-bottom: 1px solid #ebeef5;
  475. border-top-left-radius: px2rpx(6);
  476. border-top-right-radius: px2rpx(6);
  477. }
  478. .group-title {
  479. font-size: px2rpx(14);
  480. font-weight: bold;
  481. color: #303133;
  482. }
  483. .group-body {
  484. padding: px2rpx(15);
  485. }
  486. .item-row {
  487. margin-bottom: px2rpx(15);
  488. padding-bottom: px2rpx(15);
  489. border-bottom: 1px dashed #ebeef5;
  490. &:last-child {
  491. margin-bottom: 0;
  492. padding-bottom: 0;
  493. border-bottom: none;
  494. }
  495. }
  496. .item-title {
  497. margin-bottom: px2rpx(10);
  498. display: flex;
  499. align-items: center;
  500. .type-badge {
  501. background-color: #e1f3d8;
  502. color: #67c23a;
  503. padding: px2rpx(2) px2rpx(8);
  504. border-radius: px2rpx(4);
  505. font-size: px2rpx(12);
  506. margin-right: px2rpx(8);
  507. }
  508. .type-text {
  509. font-size: px2rpx(13);
  510. color: #606266;
  511. }
  512. }
  513. .item-fields {
  514. display: flex;
  515. flex-wrap: wrap;
  516. gap: px2rpx(10);
  517. justify-content: flex-start;
  518. }
  519. .field-col {
  520. flex: 0 0 calc(20% - px2rpx(10));
  521. min-width: px2rpx(80);
  522. max-width: px2rpx(120);
  523. display: flex;
  524. flex-direction: column;
  525. .field-label {
  526. font-size: px2rpx(12);
  527. color: #909399;
  528. margin-bottom: px2rpx(5);
  529. }
  530. }
  531. .dialog-account-adjust-body {
  532. padding: 20rpx;
  533. }
  534. .account-adjust-cid-row {
  535. display: flex;
  536. align-items: center;
  537. margin-bottom: 20rpx;
  538. }
  539. .account-adjust-cid-label {
  540. color: #606266;
  541. margin-right: px2rpx(5);
  542. }
  543. .account-adjust-cid-value {
  544. font-weight: bold;
  545. color: #303133;
  546. }
  547. .form-section {
  548. margin-bottom: 20rpx;
  549. }
  550. .section-title {
  551. display: flex;
  552. align-items: center;
  553. margin-bottom: px2rpx(15);
  554. font-weight: bold;
  555. font-size: px2rpx(14);
  556. }
  557. .section-title i {
  558. margin-right: 10rpx;
  559. }
  560. .account-type-grid {
  561. }
  562. .account-type-card {
  563. display: flex;
  564. flex-direction: column;
  565. margin-bottom: px2rpx(20);
  566. }
  567. .account-type-label {
  568. margin-bottom: 10rpx;
  569. font-size: 14rpx;
  570. }
  571. .account-select {
  572. width: 100%;
  573. }
  574. .dialog-account-adjust-footer {
  575. padding: 20rpx;
  576. }
  577. .account-adjust-notes-panel {
  578. margin-bottom: 20rpx;
  579. }
  580. .account-adjust-notes-section {
  581. background-color: #f5f7fa;
  582. padding: 15rpx;
  583. border-radius: 8rpx;
  584. }
  585. .account-adjust-notes-title {
  586. display: flex;
  587. align-items: center;
  588. margin-bottom: px2rpx(10);
  589. font-weight: bold;
  590. font-size: px2rpx(13);
  591. }
  592. .account-adjust-notes-title-icon {
  593. margin-right: px2rpx(10);
  594. }
  595. .account-adjust-notes-list {
  596. margin-left: px2rpx(20);
  597. color: #606266;
  598. font-size: px2rpx(13);
  599. }
  600. .account-adjust-notes-list .list {
  601. margin-bottom: px2rpx(5);
  602. margin-left: px2rpx(10);
  603. }
  604. .account-adjust-footer-buttons {
  605. display: flex;
  606. justify-content: flex-end;
  607. gap: 15rpx;
  608. }
  609. .account-adjust-footer-buttons button {
  610. min-width: 120rpx;
  611. }
  612. </style>