linkList.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <cwg-header :title="t('Ib.Index.CreateLink')" />
  4. <view class="account-section">
  5. <view class="add-link" @click="addLink">
  6. <view class="add-link-content" @click="addLink">
  7. <cwg-icon name="icon_add" :size="18" color="#fff"></cwg-icon>
  8. {{ t('Ib.Index.CreateLink') }}
  9. </view>
  10. </view>
  11. <cwg-tabel ref="tableRef" :columns="columns" :mobilePrimaryFields="mobilePrimaryFields"
  12. :api="listApi" :show-operation="false" :showPagination="true" isPages pagesToDetail @goPages="openDetail">
  13. <template #link="{ row }">
  14. <view class="link-cell">
  15. <uni-easyinput class="read-input" disabled v-model.trim="row.link"></uni-easyinput>
  16. <view class="qr-code-icon" @click.stop="showQrCodeDialog(row.link)">
  17. <svg style="width: 18px; height: 18px; fill: #409eff; vertical-align: middle;" viewBox="0 0 24 24"
  18. xmlns="http://www.w3.org/2000/svg">
  19. <path
  20. d="M3 3h8v8H3V3zm2 2v4h4V5H5zm8-2h8v8h-8V3zm2 2v4h4V5h-4zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm13-2h3v2h-3v-2zm0 4h3v2h-3v-2zm-4-4h2v6h-2v-6zm4-8h2v2h-2V3zm0 4h2v2h-2V7zm-4 0h2v2h-2V7z" />
  21. </svg>
  22. </view>
  23. <view class="copy" @click.stop="CopyLink(row.link)">
  24. {{ t('Ib.Index.Copy') }}
  25. </view>
  26. </view>
  27. </template>
  28. <template #linkValue="{ row }">
  29. <view class="link-cell">
  30. <uni-easyinput class="read-input" disabled v-model.trim="row.linkValue"></uni-easyinput>
  31. <view class="copy" @click.stop="CopyLink(row.linkValue)">
  32. {{ t('Ib.Index.Copy') }}
  33. </view>
  34. </view>
  35. </template>
  36. </cwg-tabel>
  37. <!--详情-->
  38. <link-detail-dialog :visible="datailVisible" @close="closeDetail" :detail="detail"
  39. @showQrCode="showQrCodeDialog" />
  40. <cwg-popup ref="linkPopup" :visible="dialogLink" type="center" :title="t('Ib.Index.CreateLink')" showFooterLine
  41. @close="dialogLink = false" @confirm="saveLink">
  42. <view class="dia-content">
  43. <view class="content" style="font-size: 14px; text-align: left">
  44. <view class="label">{{ t('Ib.Custom.NameLabelColon') }}</view>
  45. <uni-easyinput
  46. v-model="linkName"
  47. :placeholder="t('Ib.Custom.NameLabel')"
  48. />
  49. <view class="label-tit">{{ t('Ib.Index.Spread5') }} :</view>
  50. <!--标准账户-->
  51. <view class="label">{{ t('AccountType.StandardAccount') }} :</view>
  52. <cwg-combox
  53. v-model:value="accountTypeSettings.standard.selectedIndex"
  54. :options="getAvailableSpreads('7')"
  55. @change="(val)=>handleAccountTypeChange('standard', '7',val)"
  56. :placeholder="t('placeholder.choose')"
  57. />
  58. <view class="label">{{ t('AccountType.SeniorAccount') }}</view>
  59. <cwg-combox
  60. v-model:value="accountTypeSettings.ecn.selectedIndex"
  61. :options="getAvailableSpreads('2')"
  62. @change="(val)=>handleAccountTypeChange('ecn', '2',val)"
  63. :placeholder="t('placeholder.choose')"
  64. />
  65. <view class="label">{{ t('AccountType.CentAccount') }}</view>
  66. <cwg-combox
  67. v-model:value="accountTypeSettings.cent.selectedIndex"
  68. :options="getAvailableSpreads('8')"
  69. @change="(val)=>handleAccountTypeChange('cent', '8',val)"
  70. :placeholder="t('placeholder.choose')"
  71. />
  72. <view class="btn">
  73. <button
  74. class="crm-cursor"
  75. @click="CreateLink"
  76. >{{ t('Ib.Index.CreateLink') }}
  77. </button>
  78. </view>
  79. <view class="link qrCode" v-if="link">
  80. <QrCode
  81. ref="qrCode"
  82. :text="link"
  83. :width="200"
  84. :height="200"
  85. />
  86. <view class="btn">
  87. <button
  88. class="crm-cursor"
  89. @click="downloadQrCode()"
  90. >{{ t('Btn.item9') }}
  91. </button>
  92. </view>
  93. </view>
  94. <view class="link" v-if="link">
  95. <uni-easyinput
  96. disabled
  97. v-model="link"
  98. />
  99. <button class="btn" @click="CopyLink(link)">
  100. {{ t('Ib.Index.Copy') }}
  101. </button>
  102. </view>
  103. <view class="account-adjust-notes-panel">
  104. <view class="account-adjust-notes-section">
  105. <view class="account-adjust-notes-title">
  106. <cwg-icon name="icon_about us" color="#333" :size="18" class="account-adjust-notes-title-icon" />
  107. <text class="account-adjust-notes-title-text">{{ t('Ib.Custom.AccountAdjustNotesSection1Title') }}</text>
  108. </view>
  109. <view class="account-adjust-notes-list">
  110. <view class="account-adjust-notes-item">{{ t('Ib.Custom.AccountAdjustNotesSection1Item1') }}</view>
  111. <view class="account-adjust-notes-item">{{ t('Ib.Custom.AccountAdjustNotesSection1Item2') }}</view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </cwg-popup>
  118. <cwg-popup :visible="qrCodeDialogVisible" type="center" :title="t('Ib.Index.QrCode')" showFooterLine
  119. @singleClick="qrCodeDialogVisible = false" :singleBtnText="t('Btn.Cancel')" :footerType="'single'"
  120. @close="qrCodeDialogVisible = false">
  121. <view class="qr-code-dialog-content">
  122. <QrCode
  123. ref="dialogQrCode"
  124. v-if="currentQrCodeLink"
  125. :text="currentQrCodeLink"
  126. :width="300"
  127. :height="300"
  128. ></QrCode>
  129. <view v-if="currentQrCodeLink" class="qr-code-btn">
  130. <button @click="downloadDialogQrCode">
  131. {{ t('Btn.item9') }}
  132. </button>
  133. </view>
  134. </view>
  135. </cwg-popup>
  136. </view>
  137. </cwg-page-wrapper>
  138. </template>
  139. <script setup lang="ts">
  140. import { ref, reactive, computed, onMounted, onUnmounted, watch } from 'vue'
  141. import { onLoad } from '@dcloudio/uni-app'
  142. import { useI18n } from 'vue-i18n' // uni-app 中已集成,但需配置
  143. import { customApi } from '@/service/custom'
  144. import { financialApi } from '@/service/financial'
  145. import Config from '@/config/index'
  146. import PaymentMethodsList from './components/PaymentMethodsList.vue'
  147. import { ibApi } from '@/service/ib'
  148. import useUserStore from '@/stores/use-user-store'
  149. import QrCode from '@/components/QrCode.vue'
  150. import LinkDetailDialog from '@/pages/ib/components/linkDetailDialog.vue'
  151. const { Code, Host80 } = Config
  152. const { t, locale } = useI18n()
  153. // 列表数据
  154. const tableData = ref([])
  155. const loading = ref(false)
  156. const listApi = ref(null)
  157. const currentQrCodeLink = ref('')
  158. const qrCodeDialogVisible = ref(false)
  159. const datailVisible = ref(false)
  160. const detail = ref({})
  161. // 按账户类型分组的数据
  162. const accountTypeData = ref({
  163. ecn: [], // loginType = 2
  164. standard: [], // loginType = 7
  165. cent: [], // loginType = 8
  166. })
  167. const tableRef = ref(null)
  168. // 弹窗中的二维码组件
  169. const dialogQrCode = ref(null)
  170. const excludeList = ref([])
  171. const excludeLists = ref([])
  172. const excludeListVN = ref([])
  173. const excludeShowLoginTypes = ref([])
  174. // 账户类型设置:每个账户类型对应一个点差设置
  175. const accountTypeSettings = ref({
  176. // ECN账户,存储选中的完整对象
  177. ecn: { selectedIndex: null, selectedItem: null, loginType: '2' },
  178. // 标准账户
  179. standard: { selectedIndex: null, selectedItem: null, loginType: '7' },
  180. // 美分账户
  181. cent: { selectedIndex: null, selectedItem: null, loginType: '8' },
  182. })
  183. const selectedSpreadId = ref('')
  184. const linkName = ref('')
  185. const loginTypes = ref('')
  186. const link = ref('')
  187. const linkValue = ref('')
  188. const ibInvalid = ref('B0')
  189. const dialogLink = ref(false)
  190. const qrCode = ref(null)
  191. const { userInfo } = useUserStore()
  192. const country = computed(() => {
  193. return userInfo.customInfo.country
  194. })
  195. const agentAccountSetting = computed(() => {
  196. return userInfo.ibInfo.agentAccountSetting ||
  197. 0
  198. })
  199. const getInfoId = computed(() => {
  200. console.log(userInfo.ibInfo.id, 'userInfo.ibInfo.id')
  201. return userInfo.ibInfo.id ||
  202. 0
  203. })
  204. listApi.value = ibApi.customLinkSearchList
  205. const columns = ref([
  206. {
  207. prop: 'name',
  208. label: t('Ib.Custom.NameLabel'),
  209. align: 'center',
  210. },
  211. {
  212. prop: 'link',
  213. label: t('Ib.Index.Link'),
  214. align: 'center',
  215. slot: 'link',
  216. width: 480,
  217. },
  218. {
  219. prop: 'linkValue',
  220. label: t('Ib.Index.LinkValue'),
  221. align: 'center',
  222. slot: 'linkValue',
  223. width: 200,
  224. },
  225. {
  226. prop: 'customNum',
  227. label: t('Ib.Index.CustomNum'),
  228. align: 'center',
  229. },
  230. {
  231. prop: 'comPoint',
  232. label: t('AccountType.StandardAccount'),
  233. align: 'center',
  234. formatter: ({ row }) => getGroupNameByLoginType(row.loginConfig, 7),
  235. },
  236. {
  237. prop: 'hide',
  238. label: 'ECN',
  239. align: 'center',
  240. formatter: ({ row }) => getGroupNameByLoginType(row.loginConfig, 2),
  241. },
  242. {
  243. prop: 'loginTypes',
  244. label: t('AccountType.CentAccount'),
  245. align: 'center',
  246. formatter: ({ row }) => getGroupNameByLoginType(row.loginConfig, 8),
  247. },
  248. ])
  249. const mobilePrimaryFields = ref([
  250. {
  251. prop: 'name',
  252. label: t('Ib.Custom.NameLabel'),
  253. align: 'center',
  254. },
  255. {
  256. prop: 'customNum',
  257. label: t('Ib.Index.CustomNum'),
  258. align: 'center',
  259. },
  260. {
  261. prop: 'more',
  262. type: 'more',
  263. width: 20,
  264. align: 'right',
  265. },
  266. ])
  267. const getGroupNameByLoginType = (loginConfig, loginType) => {
  268. if (!loginConfig) return '--'
  269. // 如果 loginConfig 是字符串,尝试解析为数组
  270. let config = loginConfig
  271. if (typeof loginConfig === 'string') {
  272. try {
  273. config = JSON.parse(loginConfig)
  274. } catch (e) {
  275. return '--'
  276. }
  277. }
  278. // 确保是数组
  279. if (!Array.isArray(config)) {
  280. return '--'
  281. }
  282. // 查找匹配的 loginType
  283. const matchedItem = config.find(item => {
  284. // 支持数字和字符串类型的比较
  285. return item.loginType === loginType ||
  286. item.loginType === String(loginType) ||
  287. String(item.loginType) === String(loginType)
  288. })
  289. return matchedItem ? (matchedItem.groupName || '--') : '--'
  290. }
  291. const CopyLink = (link) => {
  292. uni.setClipboardData({
  293. data: link,
  294. success: () => {
  295. uni.showToast({
  296. title: t('card.Msg.m8'),
  297. icon: 'success',
  298. })
  299. },
  300. })
  301. }
  302. const showQrCodeDialog = (link) => {
  303. if (!link) return
  304. currentQrCodeLink.value = link
  305. qrCodeDialogVisible.value = true
  306. }
  307. // 获取开户链接账户类型列表
  308. const getCustomLinkTypes = async () => {
  309. let res = await ibApi.customLinkTypes()
  310. if (res.code == Code.StatusOK) {
  311. // 按 loginType 分组数据
  312. const data = res.data || []
  313. console.log(data, '123')
  314. accountTypeData.value = {
  315. ecn: data.filter(item => item.loginType === 2 || item.loginType === '2'),
  316. standard: data.filter(item => item.loginType === 7 || item.loginType === '7'),
  317. cent: data.filter(item => item.loginType === 8 || item.loginType === '8'),
  318. }
  319. } else {
  320. uni.showToast({
  321. title: res.msg,
  322. icon: 'none',
  323. })
  324. accountTypeData.value = {
  325. ecn: [],
  326. standard: [],
  327. cent: [],
  328. }
  329. }
  330. }
  331. // 获取账户类型设置
  332. const getAgentAccountSetting = () => {
  333. // 如果是越南账户,显示标准账户、美分账户和ECN账户
  334. if (country.value === 'VN') {
  335. const standardAccount = excludeLists.value.find(
  336. (item) => item.value === '7',
  337. )
  338. const centAccount = excludeLists.value.find(
  339. (item) => item.value === '8',
  340. )
  341. const ecnAccount = excludeLists.value.find(
  342. (item) => item.value === '2',
  343. )
  344. excludeListVN.value = [standardAccount, centAccount, ecnAccount].filter(
  345. Boolean,
  346. )
  347. excludeShowLoginTypes.value = []
  348. } else {
  349. if (agentAccountSetting.value == 0) {
  350. const excludeValues = userInfo
  351. .customInfo.excludeShowLoginTypes
  352. try {
  353. const excludeList = excludeLists.value.filter(
  354. (item) => !excludeValues.includes(item.value),
  355. )
  356. excludeList.value = excludeList
  357. excludeShowLoginTypes.value = []
  358. } catch (error) {
  359. excludeShowLoginTypes.value = []
  360. excludeList.value = excludeLists.value
  361. }
  362. } else {
  363. excludeShowLoginTypes.value = []
  364. excludeList.value = excludeLists.value
  365. }
  366. }
  367. }
  368. // add
  369. const addLink = async () => {
  370. console.log(getInfoId.value, 'getInfo.id')
  371. await getCustomLinkTypes()
  372. getAgentAccountSetting()
  373. // 重置所有表单字段
  374. selectedSpreadId.value = ''
  375. linkName.value = ''
  376. loginTypes.value = ''
  377. linkValue.value = ''
  378. // 重置账户类型设置
  379. accountTypeSettings.value = {
  380. ecn: { selectedIndex: null, selectedItem: null, loginType: '2' },
  381. standard: { selectedIndex: null, selectedItem: null, loginType: '7' },
  382. cent: { selectedIndex: null, selectedItem: null, loginType: '8' },
  383. }
  384. dialogLink.value = true
  385. }
  386. const onNameChange = (e) => {
  387. console.log(e)
  388. }
  389. // 账户类型选择变化处理
  390. const handleAccountTypeChange = (type, loginType, val) => {
  391. console.log(type, loginType, val, '221')
  392. const setting = accountTypeSettings.value[type]
  393. const availableSpreads = getAvailableSpreads(loginType)
  394. if (setting.selectedIndex !== null && setting.selectedIndex !== undefined) {
  395. accountTypeSettings.value[type].selectedItem = availableSpreads[setting.selectedIndex] || null
  396. } else {
  397. accountTypeSettings.value[type].selectedItem = null
  398. }
  399. }
  400. // 获取指定账户类型可用的点差设置
  401. const getAvailableSpreads = (loginType) => {
  402. // 根据 loginType 返回对应的数据
  403. if (loginType === '2') {
  404. return accountTypeData.value.ecn?.map((item, index) => ({ ...item, value: index, text: item.groupName })) || []
  405. } else if (loginType === '7') {
  406. return accountTypeData.value.standard?.map((item, index) => ({
  407. ...item,
  408. value: index,
  409. text: item.groupName,
  410. })) || []
  411. } else if (loginType === '8') {
  412. return accountTypeData.value.cent?.map((item, index) => ({ ...item, value: index, text: item.groupName })) || []
  413. }
  414. return []
  415. }
  416. // 获取链接值
  417. const getLink1 = async () => {
  418. // 收集所有选中的账户类型和对应的点差设置
  419. const selectedAccountTypes = []
  420. const loginConfig = []
  421. // 检查每个账户类型是否已选择点差设置
  422. Object.keys(accountTypeSettings.value).forEach((key) => {
  423. const setting = accountTypeSettings.value[key]
  424. if (setting.selectedItem) {
  425. selectedAccountTypes.push(setting.loginType)
  426. // 将选中的整个对象添加到 loginConfig 数组
  427. loginConfig.push(setting.selectedItem)
  428. }
  429. })
  430. if (selectedAccountTypes.length === 0) {
  431. uni.showToast({
  432. title: t('Ib.Index.Spread5'),
  433. icon: 'none',
  434. })
  435. link.value = ''
  436. return
  437. }
  438. // 构建请求参数
  439. const validList = {
  440. loginConfig: loginConfig,
  441. }
  442. // 直接调用接口生成链接
  443. const res = await ibApi.customLinkCode(validList)
  444. if (res.code === Code.StatusOK) {
  445. uni.showToast({
  446. title: res.msg,
  447. icon: 'none',
  448. })
  449. return res.data
  450. } else {
  451. uni.showToast({
  452. title: res.msg,
  453. icon: 'error',
  454. })
  455. return ''
  456. }
  457. }
  458. const saveLink = async () => {
  459. if (!linkName.value) {
  460. uni.showToast({
  461. title: t('Ib.Custom.NameLabel'),
  462. icon: 'none',
  463. })
  464. return
  465. }
  466. if (!link.value) {
  467. uni.showToast({
  468. title: t('Ib.Index.CreateLink'),
  469. icon: 'none',
  470. })
  471. return
  472. }
  473. // 收集所有选中的账户类型配置
  474. const loginConfig = []
  475. Object.keys(accountTypeSettings.value).forEach((key) => {
  476. const setting = accountTypeSettings.value[key]
  477. if (setting.selectedItem) {
  478. // 将选中的整个对象添加到 loginConfig 数组
  479. loginConfig.push(setting.selectedItem)
  480. }
  481. })
  482. if (loginConfig.length === 0) {
  483. uni.showToast({
  484. title: t('Ib.Index.Spread5'),
  485. icon: 'none',
  486. })
  487. return
  488. }
  489. // 调用保存接口
  490. const res = await ibApi.customLinkAdd({
  491. name: linkName.value,
  492. link: link.value,
  493. linkValue: linkValue.value,
  494. loginConfig: loginConfig,
  495. })
  496. if (res.code === Code.StatusOK) {
  497. uni.showToast({
  498. title: res.msg,
  499. icon: 'none',
  500. })
  501. dialogLink.value = false
  502. // 重置表单
  503. linkName.value = ''
  504. link.value = ''
  505. linkValue.value = ''
  506. excludeShowLoginTypes.value = []
  507. selectedSpreadId.value = ''
  508. accountTypeSettings.value = {
  509. ecn: { selectedIndex: null, selectedItem: null, loginType: '2' },
  510. standard: { selectedIndex: null, selectedItem: null, loginType: '7' },
  511. cent: { selectedIndex: null, selectedItem: null, loginType: '8' },
  512. }
  513. tableRef.value.refreshTable()
  514. } else {
  515. uni.showToast({
  516. title: res.msg,
  517. icon: 'error',
  518. })
  519. }
  520. }
  521. watch(() => dialogLink.value, (val) => {
  522. // 关闭弹窗清空
  523. if (!val) {
  524. link.value = ''
  525. }
  526. })
  527. // 生成链接(不保存)
  528. const CreateLink = async () => {
  529. console.log(linkName.value)
  530. if (!linkName.value) {
  531. uni.showToast({
  532. title: t('Ib.Custom.NameLabel'),
  533. icon: 'none',
  534. })
  535. return
  536. }
  537. const value = await getLink1()
  538. if (!value) return
  539. linkValue.value = value
  540. link.value = `${Host80}/#/signup/${getInfoId.value}/${value}/${ibInvalid.value}`
  541. }
  542. const downloadQrCode = (type = 0) => {
  543. qrCode.value.download()
  544. }
  545. // 下载弹窗中的二维码
  546. const downloadDialogQrCode = (type = 0) => {
  547. dialogQrCode.value.download()
  548. }
  549. // 打开详情弹窗
  550. const openDetail = (row) => {
  551. datailVisible.value = true
  552. detail.value = row
  553. }
  554. // 关闭详情弹窗
  555. const closeDetail = () => {
  556. datailVisible.value = false
  557. detail.value = {}
  558. }
  559. </script>
  560. <style lang="scss" scoped>
  561. @import "@/uni.scss";
  562. .add-link {
  563. width: 100%;
  564. display: flex;
  565. align-items: center;
  566. justify-content: flex-end;
  567. .add-link-content {
  568. cursor: pointer;
  569. display: flex;
  570. align-items: center;
  571. color: #fff;
  572. padding: 0 px2rpx(10);
  573. background-color: var(--color-error);
  574. font-size: px2rpx(16);
  575. font-weight: bold;
  576. line-height: px2rpx(36);
  577. border-radius: px2rpx(5);
  578. }
  579. }
  580. .link-cell {
  581. width: 100%;
  582. display: inline-flex;
  583. align-items: center;
  584. justify-content: flex-start;
  585. gap: 5px;
  586. white-space: nowrap;
  587. .read-input {
  588. max-width: px2rpx(360);
  589. white-space: nowrap;
  590. overflow: hidden;
  591. text-overflow: ellipsis;
  592. flex: 1;
  593. }
  594. .copy {
  595. cursor: pointer;
  596. line-height: px2rpx(28);
  597. }
  598. }
  599. .qr-code-icon {
  600. cursor: pointer;
  601. user-select: none;
  602. transition: opacity 0.3s;
  603. white-space: nowrap;
  604. line-height: 28px;
  605. display: flex;
  606. align-items: center;
  607. padding: 0 8px;
  608. &:hover {
  609. opacity: 0.7;
  610. }
  611. }
  612. .dia-content {
  613. padding: 20rpx;
  614. }
  615. .content {
  616. display: flex;
  617. flex-direction: column;
  618. gap: 20rpx;
  619. }
  620. .label-tit {
  621. font-weight: 500;
  622. margin-bottom: 8rpx;
  623. }
  624. .label {
  625. font-weight: 400;
  626. margin-bottom: 8rpx;
  627. }
  628. .btn {
  629. margin-top: px2rpx(16);
  630. text-align: center;
  631. }
  632. .link {
  633. display: flex;
  634. margin-top: px2rpx(20);
  635. .btn {
  636. display: flex;
  637. align-items: center;
  638. justify-content: center;
  639. height: px2rpx(35);
  640. margin: 0 px2rpx(10);
  641. }
  642. }
  643. .qrCode {
  644. display: flex;
  645. flex-direction: column;
  646. align-items: center;
  647. gap: px2rpx(16);
  648. }
  649. .qr-code-dialog-content {
  650. display: flex;
  651. flex-direction: column;
  652. justify-content: center;
  653. align-items: center;
  654. padding: px2rpx(20) 0;
  655. .qr-code-btn {
  656. margin-top: px2rpx(16);
  657. }
  658. }
  659. .account-adjust-notes-panel {
  660. margin-bottom: 18px;
  661. padding: 14px 16px;
  662. text-align: left;
  663. background: #f5f7fa;
  664. border: 1px solid #e4e7ed;
  665. border-radius: 8px;
  666. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  667. }
  668. .account-adjust-notes-section {
  669. & + .account-adjust-notes-section {
  670. margin-top: 14px;
  671. padding-top: 14px;
  672. border-top: 1px dashed #dcdfe6;
  673. }
  674. }
  675. .account-adjust-notes-title {
  676. display: flex;
  677. align-items: flex-start;
  678. gap: 8px;
  679. margin-bottom: 10px;
  680. line-height: 1.45;
  681. }
  682. .account-adjust-notes-title-icon {
  683. flex-shrink: 0;
  684. margin-top: 0px;
  685. font-size: 15px;
  686. color: #909399;
  687. }
  688. .account-adjust-notes-title-text {
  689. font-size: 13px;
  690. font-weight: 600;
  691. color: #303133;
  692. }
  693. .account-adjust-notes-list {
  694. margin: 0;
  695. padding-inline-start: 1.35em;
  696. color: #606266;
  697. font-size: 13px;
  698. line-height: 1.65;
  699. li {
  700. margin-bottom: 8px;
  701. padding-inline-start: 2px;
  702. &:last-child {
  703. margin-bottom: 0;
  704. }
  705. }
  706. }
  707. </style>