agent-transfer.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  1. <template>
  2. <cwg-page-wrapper class="create-page" :isHeaderFixed="true">
  3. <cwg-header :title="t('Home.page_ib.item9')" />
  4. <view id="custom_IbTransfer" class="transfer-page">
  5. <view class="main-content">
  6. <!-- 步骤1:选择转出账户 -->
  7. <view class="box box-step1">
  8. <view class="b-card">
  9. <view class="card-top">
  10. <view class="card-row">
  11. <view class="tit">
  12. <text class="iconfont icon-caret-right"></text>
  13. <span>{{ t('Custom.Transfer.Title1') }}</span>
  14. </view>
  15. </view>
  16. <view class="card-row">
  17. <cwg-combox v-model:value="loginValue" :clearable="false" :options="withdrawDisplayList"
  18. :placeholder="t('placeholder.choose')" />
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 步骤2:转账表单 -->
  24. <view class="box box-step2" v-if="step2">
  25. <view class="b-card">
  26. <view class="card-top">
  27. <view class="card-row card-tit">
  28. <view class="title-wrapper">
  29. <view class="tit">
  30. <text class="iconfont icon-caret-right"></text>
  31. <span>{{ t('Custom.Transfer.Title2') }}</span>
  32. </view>
  33. </view>
  34. </view>
  35. <uni-forms ref="formRef" :model="form" :rules="rules" label-width="300" label-position="top"
  36. validate-trigger="submit">
  37. <view class="form-row">
  38. <view class="form-col">
  39. <!-- 转出账户 -->
  40. <uni-forms-item :label="t('Custom.Transfer.TransferAccounts')"
  41. name="withdrawLogin">
  42. <cwg-combox :disabled="true" v-model:value="form.withdrawLogin"
  43. :clearable="false" :options="withdrawDisplayList"
  44. :placeholder="t('placeholder.choose')" />
  45. </uni-forms-item>
  46. </view>
  47. </view>
  48. <view class="form-row">
  49. <view class="form-col">
  50. <!-- 转入账户 -->
  51. <uni-forms-item :label="t('Custom.Transfer.IntoAccount')" name="depositLogin"
  52. :error-message="depositErrorMessage">
  53. <cwg-combox v-model:value="form.depositLogin" :clearable="false"
  54. :options="depositDisplayList" :placeholder="t('placeholder.choose')" />
  55. </uni-forms-item>
  56. </view>
  57. <view class="form-col">
  58. <!-- 确认转入账户 -->
  59. <uni-forms-item :label="t('Custom.Transfer.ConfirmIntoAccount')"
  60. name="depositLogin1" :error-message="depositLogin1ErrorMessage">
  61. <cwg-combox v-model:value="form.depositLogin1" :clearable="false"
  62. :options="depositDisplayList" :placeholder="t('placeholder.choose')" />
  63. </uni-forms-item>
  64. </view>
  65. </view>
  66. <view class="form-row">
  67. <view class="form-col">
  68. <!-- 货币类型 -->
  69. <uni-forms-item :label="t('Custom.Transfer.CurrencyType')" name="currency">
  70. <cwg-combox v-model:value="form.currency" :clearable="false"
  71. :options="currencyOptions" :placeholder="t('placeholder.choose')" />
  72. </uni-forms-item>
  73. </view>
  74. <view class="form-col">
  75. <!-- 转账金额 -->
  76. <uni-forms-item :label="t('Custom.Transfer.Amount')" name="amount"
  77. :error-message="amountErrorMessage">
  78. <uni-easyinput v-model="form.amount" :placeholder="t('placeholder.input')"
  79. @blur="validateAmount" />
  80. </uni-forms-item>
  81. </view>
  82. </view>
  83. <!-- 20%赠金-年中赠金 -->
  84. <view class="form-row" v-if="tableData4TwoFlag">
  85. <view class="form-col-full">
  86. <uni-forms-item class="agree" name="agree5">
  87. <view class="agree-content">
  88. <checkbox :checked="form.agree5" @click="form.agree5 = !form.agree5" />
  89. <view class="agree-text">
  90. <view class="agree-title">{{
  91. t('news_add_field1.activitiesNZTwo.itemDeposit1') }}</view>
  92. </view>
  93. </view>
  94. </uni-forms-item>
  95. <view class="agree-detail">
  96. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit2') }}</text>
  97. <text class="clause" @click="dialogClauseNZTwo = true">{{
  98. t('news_add_field1.activitiesNZTwo.itemDeposit3') }}</text>
  99. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit4') }}</text>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 赠送活动 -->
  104. <view class="form-row" v-if="tableDataNewListFlag">
  105. <view class="form-col-full">
  106. <uni-forms-item class="agree" name="agree6">
  107. <view class="agree-content">
  108. <checkbox :checked="form.agree6" @click="form.agree6 = !form.agree6" />
  109. <view class="agree-text">
  110. <view class="agree-title">{{ tableDataNewList.title }}</view>
  111. </view>
  112. </view>
  113. </uni-forms-item>
  114. <view class="agree-detail">
  115. <text>{{ t('news_add_field1.activitiesNewList.item1') }}</text>
  116. <text class="clause" @click="dialogClauseNewList = true">{{
  117. tableDataNewList.title }}</text>
  118. <text>{{ t('news_add_field1.activitiesNewList.item2') }}</text>
  119. </view>
  120. </view>
  121. </view>
  122. <view class="form-row">
  123. <view class="form-col-full">
  124. <uni-forms-item>
  125. <view class="tips">
  126. <view class="title">{{ t('Custom.Transfer.Tips') }}</view>
  127. <view>{{ t('Custom.Transfer.Tips1') }}</view>
  128. <view>{{ t('Custom.Transfer.Tips5') }}</view>
  129. <view>{{ t('Custom.Transfer.Tips3') }}</view>
  130. <view>{{ t('Custom.Transfer.Tips4') }}</view>
  131. </view>
  132. </uni-forms-item>
  133. </view>
  134. </view>
  135. <view class="form-row">
  136. <view class="form-col-full">
  137. <button class="s-btn" type="primary" @click="toTransfer" :disabled="submitting">
  138. <span v-if="locale === 'es'">Enviar solicitud</span>
  139. <span v-else>{{ t('Btn.Submit') }}</span>
  140. </button>
  141. </view>
  142. </view>
  143. </uni-forms>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. <!-- 失败弹窗 -->
  149. <cwg-error-popup v-model:visible="dialogError" @confirm="closeDia" />
  150. <!-- 成功弹窗 -->
  151. <cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" />
  152. <!-- 等待弹窗 -->
  153. <cwg-wait-popup v-model:visible="dialogCheckWait" type="center" :mask-click="false" :showFooters="false" />
  154. <!-- 不参加活动弹出框 -->
  155. <cwg-dont-active-popup v-model:visible="dialogDontActive" :showFooters="true" @confirm="tosubmitConfirm" />
  156. <!-- 功能关闭弹出 -->
  157. <cwg-function-disabled-popup v-model:visible="InfoStatus5" :showFooters="false" @confirm="toHome" />
  158. <!-- 赠金协议20年中 -->
  159. <BonusAgreementPopup v-model:visible="dialogClauseNZTwo" :title="t('news_add_field1.activitiesNZTwo.item6')"
  160. :type="nzTwo" :tableData4Two="tableData4Two" />
  161. <!-- 赠送活动协议 -->
  162. <BonusAgreementPopup v-model:visible="dialogClauseNewList" :title="tableDataNewList.title"
  163. :content="tableDataNewList.content" :type="newList" />
  164. </view>
  165. </cwg-page-wrapper>
  166. </template>
  167. <script setup>
  168. import { ref, reactive, computed, onMounted, watch } from 'vue'
  169. import { useI18n } from 'vue-i18n'
  170. import { onLoad } from '@dcloudio/uni-app'
  171. import { getCurrentInstance } from 'vue'
  172. import { ibApi } from '@/service/ib'
  173. import { activityApi } from '@/service/activity'
  174. import { financialApi } from '@/service/financial'
  175. import Config from '@/config/index'
  176. import useUserStore from '@/stores/use-user-store'
  177. import BonusAgreementPopup from './components/BonusAgreementPopup.vue'
  178. const userStore = useUserStore()
  179. const ibInfo = computed(() => {
  180. return userStore?.userInfo?.ibInfo || {}
  181. })
  182. const { Code } = Config
  183. const { t, locale } = useI18n()
  184. // 获取全局实例(用于访问 Session、$pigeon 等)
  185. const { proxy } = getCurrentInstance()
  186. const $pigeon = proxy?.$pigeon
  187. // 响应式数据
  188. const loginValue = ref('')
  189. const flag = ref(false)
  190. const responseMessage = ref('') // 弹窗响应信息
  191. const giveLoginJoin = ref('')
  192. const loginOptions = ref([])
  193. const toOptions = ref([])
  194. const step2 = ref(false)
  195. const amountLimits = reactive({
  196. minAmount: '',
  197. maxAmount: '',
  198. })
  199. const form = reactive({
  200. currency: 'USD',
  201. depositLogin: null,
  202. depositLogin1: null,
  203. withdrawLogin: null,
  204. amount: '',
  205. agree5: false,
  206. agree6: false,
  207. })
  208. const dialogSuccess = computed(() => dialogCheck.value && dialogVisible.value)
  209. const dialogError = computed(() => dialogCheck.value && !dialogVisible.value)
  210. const dialogCheck = ref(false)
  211. const dialogVisible = ref(false)
  212. const dialogCheckWait = ref(false)
  213. const InfoStatus5 = ref(false)
  214. const dialogClauseNZTwo = ref(false)
  215. const tableData4TwoFlag = ref(false)
  216. const tableData4Two = ref({})
  217. const dialogClauseNewList = ref(false)
  218. const tableDataNewListFlag = ref(false)
  219. const tableDataNewList = ref({})
  220. const dialogDontActive = ref(false)
  221. const submitting = ref(false)
  222. // 错误信息
  223. const depositErrorMessage = ref('')
  224. const depositLogin1ErrorMessage = ref('')
  225. const amountErrorMessage = ref('')
  226. // 表单验证规则
  227. const rules = {
  228. withdrawLogin: {
  229. rules: [
  230. {
  231. required: true,
  232. errorMessage: t('vaildate.select.empty')
  233. },
  234. ],
  235. },
  236. depositLogin: {
  237. rules: [
  238. {
  239. required: true,
  240. errorMessage: t('vaildate.select.empty')
  241. },
  242. ],
  243. },
  244. depositLogin1: {
  245. rules: [
  246. {
  247. required: true,
  248. errorMessage: t('Custom.Transfer.ConfirmIntoAccount1')
  249. },
  250. {
  251. validateFunction: (rule, value, data, callback) => {
  252. if (value !== form.depositLogin) {
  253. callback(t('Custom.Transfer.ConfirmIntoAccount1'))
  254. }
  255. return true
  256. }
  257. },
  258. ],
  259. },
  260. amount: {
  261. rules: [
  262. {
  263. required: true,
  264. errorMessage: t('vaildate.amount.format'),
  265. },
  266. {
  267. validateFunction: (rule, value, data, callback) => {
  268. if (!value) {
  269. callback(t('vaildate.amount.format'))
  270. } else if (
  271. amountLimits.minAmount &&
  272. amountLimits.maxAmount &&
  273. (parseFloat(amountLimits.minAmount) > parseFloat(value) ||
  274. parseFloat(amountLimits.maxAmount) < parseFloat(value))
  275. ) {
  276. callback(t('vaildate.amount.amount') +
  277. amountLimits.minAmount +
  278. '-' +
  279. amountLimits.maxAmount)
  280. } else if (!/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(value)) {
  281. callback(t('vaildate.amount.format'))
  282. }
  283. return true
  284. }
  285. },
  286. ],
  287. }
  288. }
  289. function validateAmount() {
  290. const amount = form.amount
  291. if (!amount) {
  292. amountErrorMessage.value = t('vaildate.amount.format')
  293. return false
  294. }
  295. const numValue = parseFloat(amount)
  296. if (isNaN(numValue)) {
  297. amountErrorMessage.value = t('vaildate.amount.format')
  298. return false
  299. }
  300. if (amountLimits.minAmount && numValue < parseFloat(amountLimits.minAmount)) {
  301. amountErrorMessage.value = t('vaildate.amount.amount') + amountLimits.minAmount + '-' + amountLimits.maxAmount
  302. return false
  303. }
  304. if (amountLimits.maxAmount && numValue > parseFloat(amountLimits.maxAmount)) {
  305. amountErrorMessage.value = t('vaildate.amount.amount') + amountLimits.minAmount + '-' + amountLimits.maxAmount
  306. return false
  307. }
  308. if (!/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(amount)) {
  309. amountErrorMessage.value = t('vaildate.amount.format')
  310. return false
  311. }
  312. amountErrorMessage.value = ''
  313. return true
  314. }
  315. // 模板引用
  316. const formRef = ref(null)
  317. // 计算属性
  318. const getInfoStatus5 = computed(() => {
  319. if (ibInfo.value?.closeFunctions) {
  320. return ibInfo.value.closeFunctions.indexOf('5') !== -1
  321. }
  322. return false
  323. })
  324. // 单位类型
  325. function groupCurrency(type) {
  326. const map = { GBP: ': £', USD: ': $', EUR: ': €', USC: ': ¢' }
  327. return map[type] || ': $'
  328. }
  329. function groupCurrency1(type) {
  330. const map = { GBP: '£', USD: '$', EUR: '€', USC: '¢' }
  331. return map[type] || '$'
  332. }
  333. // 账户类型
  334. function groupTypeName(type) {
  335. const typeMap = {
  336. '1': t('AccountType.ClassicAccount'),
  337. '2': t('AccountType.SeniorAccount'),
  338. '5': t('AccountType.SpeedAccount'),
  339. '6': t('AccountType.SpeedAccount'),
  340. '7': t('AccountType.StandardAccount'),
  341. '8': t('AccountType.CentAccount')
  342. }
  343. return typeMap[type] || ''
  344. }
  345. // 转出账户列表
  346. const withdrawDisplayList = computed(() => {
  347. return loginOptions.value.map(item => ({
  348. text: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`,
  349. value: item.login,
  350. disable: item.closeFunctions?.indexOf('3') != -1 || item.closeFunctions?.indexOf('5') != -1
  351. }))
  352. })
  353. // 转入账户列表
  354. const depositDisplayList = computed(() => {
  355. return toOptions.value.map(item => ({
  356. text: `${item.login} - ${item.cId || '--'} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`,
  357. value: item.login
  358. }))
  359. })
  360. const currencyOptions = ref([{ value: 'USD', text: 'USD' }])
  361. function toHome() {
  362. uni.navigateTo({ url: '/pages/ib/index' })
  363. InfoStatus5.value = false
  364. }
  365. function closeDia() {
  366. formRef.value?.resetFields?.()
  367. step2.value = false
  368. loginValue.value = ''
  369. dialogCheck.value = false
  370. dialogVisible.value = false
  371. tableData4TwoFlag.value = false
  372. tableDataNewListFlag.value = false
  373. }
  374. // 内转
  375. async function toTransfer() {
  376. if (submitting.value) return
  377. try {
  378. const valid = await formRef.value?.validate()
  379. if (!valid) {
  380. console.log('表单验证失败')
  381. return
  382. }
  383. openDontActive()
  384. } catch (error) {
  385. console.error('验证失败:', error)
  386. }
  387. }
  388. // 打开不参加活动弹窗
  389. function openDontActive() {
  390. tosubmitConfirm()
  391. }
  392. function tosubmitConfirm() {
  393. dialogDontActive.value = false
  394. transferConfig()
  395. }
  396. async function transferConfig() {
  397. if (submitting.value) return
  398. submitting.value = true
  399. try {
  400. if (flag.value) {
  401. return
  402. }
  403. flag.value = true
  404. form.activityTwoPercentGive = form.agree5 ? 1 : 0
  405. form.activityGive = form.agree6 ? 1 : 0
  406. dialogCheckWait.value = true
  407. const res = await ibApi.agentTransferApply({ ...form })
  408. dialogCheckWait.value = false
  409. if (res.code == Code.StatusOK) {
  410. dialogCheck.value = true
  411. dialogVisible.value = true
  412. flag.value = false
  413. } else {
  414. responseMessage.value = res.msg
  415. dialogCheck.value = true
  416. dialogVisible.value = false
  417. flag.value = false
  418. }
  419. } catch (error) {
  420. console.error('转账失败:', error)
  421. responseMessage.value = error.msg || t('Msg.Fail')
  422. dialogCheck.value = true
  423. dialogVisible.value = false
  424. } finally {
  425. submitting.value = false
  426. flag.value = false
  427. if (dialogCheckWait.value) dialogCheckWait.value = false
  428. }
  429. }
  430. // 取消
  431. function cancle() {
  432. step2.value = false
  433. loginValue.value = ''
  434. }
  435. // 获取账户信息
  436. async function getDateList() {
  437. const res = await ibApi.CustomDropdown({ platform: '' })
  438. if (res.code == Code.StatusOK) {
  439. loginOptions.value = res.data
  440. } else {
  441. $pigeon?.MessageError(res.msg)
  442. }
  443. }
  444. // 获取转入账户信息
  445. async function getToDateList() {
  446. const res = await ibApi.accountCustomList({})
  447. if (res.code == Code.StatusOK) {
  448. toOptions.value = res.data
  449. } else {
  450. $pigeon?.MessageError(res.msg)
  451. }
  452. }
  453. // 获取内转数额区间
  454. async function getAmount() {
  455. const res = await financialApi.transferInfo({})
  456. if (res.code == Code.StatusOK) {
  457. Object.assign(amountLimits, res.data)
  458. } else {
  459. $pigeon?.MessageError(res.msg)
  460. }
  461. }
  462. async function Activity24nianzhongTwoInfo() {
  463. const res = await activityApi.Activity23nianzhongTwoInfo({})
  464. if (res.code == Code.StatusOK) {
  465. tableData4Two.value = res.data
  466. } else {
  467. $pigeon?.MessageError(res.msg)
  468. }
  469. }
  470. // 活动相关方法
  471. function togetActivity() {
  472. get23nianzhongTwoLogin()
  473. getActivityExtensionGiveLogin()
  474. getActivityExtensionGiveLoginJoin()
  475. }
  476. async function get23nianzhongTwoLogin() {
  477. const res = await activityApi.Activity23nianzhongTwoLogin({
  478. login: form.depositLogin,
  479. })
  480. if (res.code == Code.StatusOK) {
  481. tableData4Two.value = res.data
  482. if (tableData4Two.value.show == 1) {
  483. tableData4TwoFlag.value = true
  484. } else if (tableData4Two.value.show == 0) {
  485. tableData4TwoFlag.value = false
  486. }
  487. } else {
  488. $pigeon?.MessageError(res.msg)
  489. }
  490. }
  491. async function getActivityExtensionGiveLogin() {
  492. const res = await activityApi.ActivityExtensionGiveLogin({
  493. login: form.depositLogin,
  494. })
  495. if (res.code == Code.StatusOK) {
  496. tableDataNewList.value = res.data
  497. if (tableDataNewList.value.show == 1) {
  498. tableDataNewListFlag.value = true
  499. } else if (tableDataNewList.value.show == 0) {
  500. tableDataNewListFlag.value = false
  501. }
  502. } else {
  503. $pigeon?.MessageError(res.msg)
  504. }
  505. }
  506. async function getActivityExtensionGiveLoginJoin() {
  507. const res = await activityApi.ActivityExtensionGiveLoginJoin({
  508. login: form.depositLogin,
  509. })
  510. if (res.code == Code.StatusOK) {
  511. giveLoginJoin.value = res.data
  512. } else {
  513. $pigeon?.MessageError(res.msg)
  514. giveLoginJoin.value = ''
  515. }
  516. }
  517. // 监听 loginValue 变化
  518. watch(loginValue, (newVal) => {
  519. if (newVal) {
  520. step2.value = true
  521. form.withdrawLogin = newVal
  522. }
  523. })
  524. // 监听 loginValue 变化
  525. watch(form.depositLogin, (newVal) => {
  526. if (newVal) {
  527. togetActivity()
  528. }
  529. })
  530. // 监听 agree6 变化
  531. watch(() => form.agree6, (newVal) => {
  532. if (newVal && giveLoginJoin.value?.flag === false) {
  533. let tips = ''
  534. if (giveLoginJoin.value.promptType == 1) {
  535. tips = t('surplusList.item10')
  536. } else {
  537. tips = t('surplusList.item11')
  538. }
  539. return
  540. // 活动相关方法,后续需要在调整
  541. if (giveLoginJoin.value.activityCategory == 1) {
  542. $pigeon?.MessageConfirm(
  543. tips,
  544. t('Msg.SystemPrompt'),
  545. t('surplusList.item12'),
  546. t('Home.msg.item3'),
  547. () => {
  548. $pigeon?.MessageConfirm(
  549. t('surplusList.item13'),
  550. t('Msg.SystemPrompt'),
  551. t('Btn.Confirm'),
  552. t('Btn.Cancel'),
  553. async () => {
  554. try {
  555. const res = await activityApi.ActivityGiveCancel({
  556. login: loginValue.value,
  557. })
  558. if (res.code == Code.StatusOK) {
  559. $pigeon?.MessageOK(res.msg || t('Msg.Success'))
  560. } else {
  561. $pigeon?.MessageError(res.msg)
  562. }
  563. } catch (error) {
  564. $pigeon?.MessageError(t('Msg.Fail'))
  565. }
  566. },
  567. () => {
  568. form.agree6 = false
  569. }
  570. )
  571. },
  572. () => {
  573. form.agree6 = false
  574. }
  575. )
  576. } else {
  577. $pigeon?.MessageConfirm(
  578. tips,
  579. t('Msg.SystemPrompt'),
  580. t('Btn.Confirm'),
  581. t('Btn.Cancel'),
  582. () => { },
  583. () => {
  584. form.agree6 = false
  585. }
  586. )
  587. }
  588. }
  589. })
  590. onMounted(() => {
  591. if (getInfoStatus5.value) {
  592. InfoStatus5.value = true
  593. }
  594. getDateList()
  595. getToDateList()
  596. getAmount()
  597. // Activity24nianzhongTwoInfo()
  598. })
  599. onLoad((options) => {
  600. if (options?.login) {
  601. loginValue.value = options.login
  602. step2.value = true
  603. form.withdrawLogin = options.login
  604. }
  605. })
  606. </script>
  607. <style lang="scss" scoped>
  608. @import "@/uni.scss";
  609. .transfer-page {
  610. width: 100%;
  611. padding-bottom: px2rpx(20);
  612. .main-content {
  613. text-align: left;
  614. .box {
  615. padding-top: px2rpx(5);
  616. color: #303133;
  617. .b-card {
  618. background-color: #fff;
  619. margin-bottom: px2rpx(10);
  620. border-radius: px2rpx(6);
  621. box-shadow: 0 px2rpx(1) px2rpx(6) 0 rgba(0, 0, 0, 0.05);
  622. &:hover {
  623. box-shadow: 0 px2rpx(2) px2rpx(8) 0 rgba(0, 0, 0, 0.1);
  624. }
  625. .card-top {
  626. padding: px2rpx(15) px2rpx(20);
  627. box-sizing: border-box;
  628. .card-row {
  629. margin-bottom: px2rpx(12);
  630. &:last-child {
  631. margin-bottom: 0;
  632. }
  633. }
  634. .tit {
  635. font-size: px2rpx(16);
  636. margin-bottom: px2rpx(12);
  637. font-weight: 600;
  638. .iconfont {
  639. font-size: px2rpx(18);
  640. margin-right: px2rpx(8);
  641. color: #409eff;
  642. }
  643. }
  644. .title-wrapper {
  645. display: flex;
  646. justify-content: space-between;
  647. align-items: center;
  648. }
  649. }
  650. }
  651. }
  652. .box-step2 {
  653. .form-row {
  654. display: flex;
  655. flex-wrap: wrap;
  656. margin-bottom: px2rpx(12);
  657. gap: px2rpx(12);
  658. &:last-child {
  659. margin-bottom: 0;
  660. }
  661. .form-col {
  662. flex: 1;
  663. min-width: px2rpx(140);
  664. @media screen and (max-width: 991px) {
  665. flex: 0 0 100%;
  666. width: 100%;
  667. }
  668. }
  669. .form-col-full {
  670. width: 100%;
  671. padding: 0 px2rpx(5);
  672. }
  673. }
  674. .tips {
  675. line-height: 1.8;
  676. font-size: px2rpx(12);
  677. color: #909399;
  678. background-color: #f9f9f9;
  679. padding: px2rpx(12);
  680. border-radius: px2rpx(4);
  681. border-left: px2rpx(2) solid #409eff;
  682. .title {
  683. font-weight: 600;
  684. margin-bottom: px2rpx(6);
  685. color: #606266;
  686. }
  687. }
  688. }
  689. }
  690. .picker-select {
  691. background-color: #f5f7fa;
  692. border: 1px solid #dcdfe6;
  693. border-radius: px2rpx(4);
  694. padding: px2rpx(12) px2rpx(14);
  695. font-size: px2rpx(14);
  696. color: #606266;
  697. line-height: 1.4;
  698. width: 100%;
  699. box-sizing: border-box;
  700. &:hover {
  701. border-color: #409eff;
  702. }
  703. &.picker-disabled {
  704. background-color: #f5f7fa;
  705. color: #c0c4cc;
  706. cursor: not-allowed;
  707. }
  708. }
  709. .disabled-input {
  710. background-color: #f5f7fa;
  711. border: 1px solid #dcdfe6;
  712. border-radius: px2rpx(4);
  713. padding: px2rpx(12) px2rpx(14);
  714. font-size: px2rpx(14);
  715. color: #606266;
  716. width: 100%;
  717. box-sizing: border-box;
  718. }
  719. .m-input {
  720. background-color: #f5f7fa;
  721. border: 1px solid #dcdfe6;
  722. border-radius: px2rpx(4);
  723. padding: px2rpx(12) px2rpx(14);
  724. font-size: px2rpx(14);
  725. width: 100%;
  726. box-sizing: border-box;
  727. &:focus {
  728. border-color: #409eff;
  729. outline: none;
  730. box-shadow: 0 0 0 px2rpx(1) rgba(64, 158, 255, 0.2);
  731. }
  732. }
  733. .s-btn {
  734. width: 100%;
  735. padding: px2rpx(12) px2rpx(20);
  736. border-radius: px2rpx(4);
  737. margin: px2rpx(10) 0;
  738. background-color: #409eff;
  739. color: #fff;
  740. border: none;
  741. font-size: px2rpx(15);
  742. font-weight: 500;
  743. cursor: pointer;
  744. &:hover {
  745. background-color: #66b1ff;
  746. transform: translateY(px2rpx(-1));
  747. box-shadow: 0 px2rpx(2) px2rpx(6) 0 rgba(64, 158, 255, 0.3);
  748. }
  749. &:active {
  750. background-color: #3a8ee6;
  751. transform: translateY(0);
  752. }
  753. &[disabled] {
  754. opacity: 0.6;
  755. cursor: not-allowed;
  756. }
  757. }
  758. .popup-content {
  759. padding: px2rpx(30) px2rpx(20);
  760. text-align: center;
  761. min-width: px2rpx(250);
  762. max-width: 80%;
  763. margin: 0 auto;
  764. @media screen and (max-width: 991px) {
  765. min-width: 80%;
  766. max-width: 90%;
  767. margin: 0 px2rpx(10);
  768. }
  769. position: relative;
  770. .icon {
  771. .iconfont {
  772. font-size: px2rpx(60);
  773. display: block;
  774. margin: 0 auto;
  775. }
  776. .icon-chenggong {
  777. color: #67c23a;
  778. }
  779. .icon-jingshi {
  780. color: #f56c6c;
  781. }
  782. .icon-dengdai {
  783. color: #e6a23c;
  784. }
  785. }
  786. .des1 {
  787. font-weight: 600;
  788. font-size: px2rpx(16);
  789. margin: px2rpx(20) 0 px2rpx(15);
  790. color: #303133;
  791. line-height: 1.4;
  792. padding: 0 px2rpx(10);
  793. }
  794. .dialog-footer {
  795. display: flex;
  796. justify-content: center;
  797. gap: px2rpx(10);
  798. margin-top: px2rpx(10);
  799. @media (max-width: 750rpx) {
  800. flex-direction: column;
  801. align-items: center;
  802. gap: px2rpx(6);
  803. }
  804. button {
  805. min-width: px2rpx(90);
  806. padding: 0 px2rpx(12);
  807. border-radius: px2rpx(4);
  808. font-size: px2rpx(14);
  809. transition: all 0.3s ease;
  810. cursor: pointer;
  811. &[type="primary"] {
  812. background-color: #409eff;
  813. color: #fff;
  814. border: none;
  815. &:hover {
  816. background-color: #66b1ff;
  817. transform: translateY(px2rpx(-1));
  818. box-shadow: 0 px2rpx(2) px2rpx(6) 0 rgba(64, 158, 255, 0.3);
  819. }
  820. &:active {
  821. background-color: #3a8ee6;
  822. transform: translateY(0);
  823. }
  824. }
  825. &:not([type="primary"]) {
  826. background-color: #fff;
  827. border: 1px solid #dcdfe6;
  828. color: #606266;
  829. &:hover {
  830. border-color: #409eff;
  831. color: #409eff;
  832. transform: translateY(px2rpx(-1));
  833. }
  834. &:active {
  835. transform: translateY(0);
  836. }
  837. }
  838. }
  839. }
  840. }
  841. .wait-popup {
  842. .des1 {
  843. margin-top: px2rpx(10);
  844. }
  845. .icon {
  846. .iconfont {
  847. animation: spin 1s linear infinite;
  848. }
  849. }
  850. }
  851. }
  852. // 动画
  853. @keyframes popupFadeIn {
  854. from {
  855. opacity: 0;
  856. transform: scale(0.9);
  857. }
  858. to {
  859. opacity: 1;
  860. transform: scale(1);
  861. }
  862. }
  863. @keyframes fadeIn {
  864. from {
  865. opacity: 0;
  866. transform: translateY(px2rpx(10));
  867. }
  868. to {
  869. opacity: 1;
  870. transform: translateY(0);
  871. }
  872. }
  873. @keyframes pulse {
  874. 0% {
  875. transform: scale(1);
  876. }
  877. 50% {
  878. transform: scale(1.05);
  879. }
  880. 100% {
  881. transform: scale(1);
  882. }
  883. }
  884. @keyframes spin {
  885. from {
  886. transform: rotate(0deg);
  887. }
  888. to {
  889. transform: rotate(360deg);
  890. }
  891. }
  892. // 表单错误信息样式
  893. .uni-forms-item__error {
  894. font-size: px2rpx(12);
  895. color: #f56c6c;
  896. margin-top: px2rpx(4);
  897. }
  898. // 适配不同屏幕尺寸(媒体查询中的 750rpx 保持不变)
  899. @media (max-width: 750rpx) {
  900. .transfer-page {
  901. .main-content {
  902. padding: px2rpx(8);
  903. .box {
  904. .b-card {
  905. .card-top {
  906. padding: px2rpx(12) px2rpx(16);
  907. .tit {
  908. font-size: px2rpx(14);
  909. .iconfont {
  910. font-size: px2rpx(16);
  911. }
  912. }
  913. }
  914. }
  915. }
  916. }
  917. .s-btn {
  918. font-size: px2rpx(14);
  919. padding: px2rpx(10) px2rpx(16);
  920. }
  921. .popup-content {
  922. padding: px2rpx(20) px2rpx(16);
  923. .icon {
  924. .iconfont {
  925. font-size: px2rpx(50);
  926. }
  927. }
  928. .des1 {
  929. font-size: px2rpx(14);
  930. margin: px2rpx(15) 0 px2rpx(10);
  931. }
  932. .dialog-footer {
  933. button {
  934. min-width: px2rpx(80);
  935. font-size: px2rpx(13);
  936. }
  937. }
  938. }
  939. }
  940. }
  941. </style>