linkList.vue 20 KB

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