linkList.vue 20 KB

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