transfer.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  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. <cwg-asset-tabs v-model="activeTab" :tabs="tabsConfig" />
  8. <!-- 步骤2:转账表单 -->
  9. <view class="box box-step2">
  10. <view class="b-card">
  11. <view class="card-top">
  12. <uni-forms ref="formRef" :model="form" :rules="rules" label-width="300" label-position="top"
  13. validate-trigger="submit">
  14. <view class="form-row">
  15. <view class="form-col">
  16. <!-- 转出账户 -->
  17. <uni-forms-item :label="t('Custom.Transfer.TransferAccounts')">
  18. <uni-easyinput v-model="fromInfo" disabled
  19. :placeholder="t('placeholder.input')" @blur="validateAmount" />
  20. </uni-forms-item>
  21. </view>
  22. <view class="form-col">
  23. <!-- 转入账户 -->
  24. <uni-forms-item :label="toLabel" name="to"
  25. :error-message="deposittoErrorMessage">
  26. <cwg-combox v-model:value="form.to" :clearable="false"
  27. :options="depositDisplayList" :placeholder="t('placeholder.choose')" />
  28. </uni-forms-item>
  29. </view>
  30. </view>
  31. <view class="form-row">
  32. <view class="form-col">
  33. <!-- 货币类型 -->
  34. <uni-forms-item :label="t('Custom.Transfer.CurrencyType')" name="currency">
  35. <cwg-combox v-model:value="form.currency" :clearable="false"
  36. :options="currencyOptions" :placeholder="t('placeholder.choose')" />
  37. </uni-forms-item>
  38. </view>
  39. <view class="form-col">
  40. <!-- 转账金额 -->
  41. <uni-forms-item :label="t('Custom.Transfer.Amount')" name="amount"
  42. :error-message="amountErrorMessage">
  43. <uni-easyinput v-model="form.amount" :placeholder="t('placeholder.input')"
  44. @blur="validateAmount" />
  45. </uni-forms-item>
  46. </view>
  47. </view>
  48. <!-- 20%赠金-年中赠金 -->
  49. <view class="form-row" v-if="tableData4TwoFlag">
  50. <view class="form-col-full">
  51. <uni-forms-item class="agree" name="agree5">
  52. <view class="agree-content">
  53. <checkbox :checked="form.agree5" @click="form.agree5 = !form.agree5" />
  54. <view class="agree-text">
  55. <view class="agree-title">{{
  56. t('news_add_field1.activitiesNZTwo.itemDeposit1') }}</view>
  57. </view>
  58. </view>
  59. </uni-forms-item>
  60. <view class="agree-detail">
  61. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit2') }}</text>
  62. <text class="clause" @click="dialogClauseNZTwo = true">{{
  63. t('news_add_field1.activitiesNZTwo.itemDeposit3') }}</text>
  64. <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit4') }}</text>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 赠送活动 -->
  69. <view class="form-row" v-if="tableDataNewListFlag">
  70. <view class="form-col-full">
  71. <uni-forms-item class="agree" name="agree6">
  72. <view class="agree-content">
  73. <checkbox :checked="form.agree6" @click="form.agree6 = !form.agree6" />
  74. <view class="agree-text">
  75. <view class="agree-title">{{ tableDataNewList.title }}</view>
  76. </view>
  77. </view>
  78. </uni-forms-item>
  79. <view class="agree-detail">
  80. <text>{{ t('news_add_field1.activitiesNewList.item1') }}</text>
  81. <text class="clause" @click="dialogClauseNewList = true">{{
  82. tableDataNewList.title }}</text>
  83. <text>{{ t('news_add_field1.activitiesNewList.item2') }}</text>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="form-row">
  88. <button class="s-btn reselect" type="primary" @click="toTransfer">{{ locale === 'es'
  89. ?
  90. 'Enviar solicitud' : t('Btn.Submit') }}</button>
  91. </view>
  92. </uni-forms>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 失败弹窗 -->
  98. <cwg-error-popup v-model:visible="dialogError" @confirm="closeDia" />
  99. <!-- 成功弹窗 -->
  100. <cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" />
  101. <!-- 等待弹窗 -->
  102. <cwg-wait-popup v-model:visible="dialogCheckWait" :showFooters="false" />
  103. <!-- 不参加活动弹出框 -->
  104. <cwg-dont-active-popup v-model:visible="dialogDontActive" :showFooters="true" @confirm="tosubmitConfirm" />
  105. <!-- 功能关闭弹出 -->
  106. <cwg-function-disabled-popup v-model:visible="InfoStatus5" :showFooters="false" @confirm="toHome" />
  107. <!-- 赠金协议20年中 -->
  108. <BonusAgreementPopup v-model:visible="dialogClauseNZTwo" :title="t('news_add_field1.activitiesNZTwo.item6')"
  109. :type="nzTwo" :tableData4Two="tableData4Two" />
  110. <!-- 赠送活动协议 -->
  111. <BonusAgreementPopup v-model:visible="dialogClauseNewList" :title="tableDataNewList.title"
  112. :content="tableDataNewList.content" :type="newList" />
  113. </view>
  114. </cwg-page-wrapper>
  115. </template>
  116. <script setup>
  117. import { ref, reactive, computed, onMounted, watch } from 'vue'
  118. import { useI18n } from 'vue-i18n'
  119. import { onLoad } from '@dcloudio/uni-app'
  120. import { getCurrentInstance } from 'vue'
  121. import { ibApi } from '@/service/ib'
  122. import { activityApi } from '@/service/activity'
  123. import Config from '@/config/index'
  124. import useUserStore from '@/stores/use-user-store'
  125. import BonusAgreementPopup from './components/BonusAgreementPopup.vue'
  126. const userStore = useUserStore()
  127. const ibInfo = computed(() => {
  128. return userStore?.userInfo?.ibInfo || {}
  129. })
  130. const { Code } = Config
  131. const { t, locale } = useI18n()
  132. const activeTab = ref(1)
  133. const tabsConfig = computed(() => [
  134. { text: t('Ib.Transfer.CommissionTransfer'), value: 1, type: 'commission' },
  135. { text: t('Ib.Transfer.CommissionIssue'), value: 2, type: 'commissionIssue' },
  136. { text: t('Ib.Transfer.IbAccountTransfer'), value: 3, type: 'ib' },
  137. ])
  138. const toLabel = computed(() => activeTab.value == '1' || activeTab.value == '2' ? t('Label.IntoAccount') : t('Ib.Transfer.IbAccountTransfer'))
  139. // 获取全局实例(用于访问 Session、$pigeon 等)
  140. const { proxy } = getCurrentInstance()
  141. const $pigeon = proxy?.$pigeon
  142. // 响应式数据
  143. const loginValue = ref('')
  144. const flag = ref(false)
  145. const responseMessage = ref('') // 弹窗响应信息
  146. const giveLoginJoin = ref('')
  147. const step2 = ref(false)
  148. const amountLimits = reactive({
  149. minAmount: '',
  150. maxAmount: '',
  151. })
  152. const form = reactive({
  153. currency: 'USD',
  154. depositLogin: null,
  155. to: null,
  156. amount: '',
  157. agree5: false,
  158. agree6: false,
  159. })
  160. const dialogSuccess = computed(() => dialogCheck.value && dialogVisible.value)
  161. const dialogError = computed(() => dialogCheck.value && !dialogVisible.value)
  162. const dialogCheck = ref(false)
  163. const dialogVisible = ref(false)
  164. const dialogCheckWait = ref(false)
  165. const InfoStatus5 = ref(false)
  166. const dialogClauseNZTwo = ref(false)
  167. const tableData4TwoFlag = ref(false)
  168. const tableData4Two = ref({})
  169. const dialogClauseNewList = ref(false)
  170. const tableDataNewListFlag = ref(false)
  171. const tableDataNewList = ref({})
  172. const dialogDontActive = ref(false)
  173. const submitting = ref(false)
  174. // 错误信息
  175. const depositErrorMessage = ref('')
  176. const depositLogin1ErrorMessage = ref('')
  177. const amountErrorMessage = ref('')
  178. // 表单验证规则
  179. const rules = {
  180. withdrawLogin: {
  181. rules: [
  182. {
  183. required: true,
  184. errorMessage: t('vaildate.select.empty')
  185. },
  186. ],
  187. },
  188. to: {
  189. rules: [
  190. {
  191. required: true,
  192. errorMessage: t('vaildate.select.empty')
  193. },
  194. ],
  195. },
  196. amount: {
  197. rules: [
  198. {
  199. required: true,
  200. errorMessage: t('vaildate.amount.format'),
  201. },
  202. {
  203. validateFunction: (rule, value, data, callback) => {
  204. if (!value) {
  205. callback(t('vaildate.amount.format'))
  206. } else if (
  207. amountLimits.minAmount &&
  208. amountLimits.maxAmount &&
  209. (parseFloat(amountLimits.minAmount) > parseFloat(value) ||
  210. parseFloat(amountLimits.maxAmount) < parseFloat(value))
  211. ) {
  212. callback(t('vaildate.amount.amount') +
  213. amountLimits.minAmount +
  214. '-' +
  215. amountLimits.maxAmount)
  216. } else if (!/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(value)) {
  217. callback(t('vaildate.amount.format'))
  218. }
  219. return true
  220. }
  221. },
  222. ],
  223. }
  224. }
  225. function validateAmount() {
  226. const amount = form.amount
  227. if (!amount) {
  228. amountErrorMessage.value = t('vaildate.amount.format')
  229. return false
  230. }
  231. const numValue = parseFloat(amount)
  232. if (isNaN(numValue)) {
  233. amountErrorMessage.value = t('vaildate.amount.format')
  234. return false
  235. }
  236. if (amountLimits.minAmount && numValue < parseFloat(amountLimits.minAmount)) {
  237. amountErrorMessage.value = t('vaildate.amount.amount') + amountLimits.minAmount + '-' + amountLimits.maxAmount
  238. return false
  239. }
  240. if (amountLimits.maxAmount && numValue > parseFloat(amountLimits.maxAmount)) {
  241. amountErrorMessage.value = t('vaildate.amount.amount') + amountLimits.minAmount + '-' + amountLimits.maxAmount
  242. return false
  243. }
  244. if (!/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(amount)) {
  245. amountErrorMessage.value = t('vaildate.amount.format')
  246. return false
  247. }
  248. amountErrorMessage.value = ''
  249. return true
  250. }
  251. // 模板引用
  252. const formRef = ref(null)
  253. // 计算属性
  254. const getInfoStatus5 = computed(() => {
  255. if (ibInfo.value?.closeFunctions) {
  256. return ibInfo.value.closeFunctions.indexOf('5') !== -1
  257. }
  258. return false
  259. })
  260. // 转入账户列表
  261. const depositDisplayList = computed(() => {
  262. if (activeTab.value != 3) {
  263. return toInfo.value.map(item => ({
  264. text: [item.login, item.platform, item.cId, item.balance, item.groupTypeName].filter(field => field !== null && field !== undefined && field !== '').join('-'),
  265. value: item.login
  266. }))
  267. } else {
  268. return agentInfo.value.map(item => ({
  269. text: `${item.ibNo} - ${item.name}`,
  270. value: item.id
  271. }))
  272. }
  273. })
  274. const fromInfo = ref('')
  275. const toInfo = ref([])
  276. const agentInfo = ref([])
  277. //转出账户信息
  278. const ransferInfo = async function () {
  279. let res = await ibApi.agentBalanceTransferFrom({});
  280. if (res.code == Code.StatusOK) {
  281. fromInfo.value =
  282. res.data.ibNo +
  283. " - " +
  284. t("Custom.Deposit.AvailableBalance") +
  285. ": $" +
  286. (res.data.balance ? res.data.balance : 0);
  287. } else {
  288. $pigeon.MessageError(res.msg);
  289. }
  290. }
  291. //转入账户信息
  292. const ransferToInfo = async function () {
  293. let res;
  294. // 佣金内转使用新接口 /account/dropdown
  295. if (activeTab.value == 1) {
  296. res = await ibApi.CustomDropdown({ platform: "" });
  297. } else {
  298. // 佣金下发和其他情况使用原接口
  299. res = await ibApi.agentTransferToList({});
  300. }
  301. if (res.code == Code.StatusOK) {
  302. toInfo.value = res.data || [];
  303. toInfo.value.forEach((item) => {
  304. if (item.closeFunctions && item.closeFunctions.length > 0) {
  305. const targetValues = ["7", "5", "9"];
  306. const hasTargetValue = item.closeFunctions.some(func => targetValues.includes(func));
  307. if (hasTargetValue) {
  308. item.status = true;
  309. }
  310. }
  311. })
  312. } else {
  313. $pigeon.MessageError(res.msg);
  314. }
  315. }
  316. //获取代理账户信息
  317. const getAgentInfo = async function () {
  318. let res = await ibApi.ibTreeForTransfer({});
  319. if (res.code == Code.StatusOK) {
  320. agentInfo.value = res.data || [];
  321. } else {
  322. $pigeon.MessageError(res.msg);
  323. }
  324. }
  325. const currencyOptions = ref([{ value: 'USD', text: 'USD' }])
  326. function toHome() {
  327. uni.navigateTo({ url: '/pages/ib/index' })
  328. InfoStatus5.value = false
  329. }
  330. function closeDia() {
  331. formRef.value?.resetFields?.()
  332. step2.value = false
  333. loginValue.value = ''
  334. dialogCheck.value = false
  335. dialogVisible.value = false
  336. tableData4TwoFlag.value = false
  337. tableDataNewListFlag.value = false
  338. form.to = ''
  339. form.amount = ''
  340. form.withdrawLogin = ''
  341. form.agree5 = false
  342. form.agree6 = false
  343. }
  344. // 内转
  345. async function toTransfer() {
  346. if (submitting.value) return
  347. try {
  348. const valid = await formRef.value?.validate()
  349. if (!valid) {
  350. console.log('表单验证失败')
  351. return
  352. }
  353. openDontActive()
  354. } catch (error) {
  355. console.error('验证失败:', error)
  356. }
  357. }
  358. // 打开不参加活动弹窗
  359. function openDontActive() {
  360. tosubmitConfirm()
  361. }
  362. function tosubmitConfirm() {
  363. dialogDontActive.value = false
  364. transferConfig()
  365. }
  366. async function transferConfig() {
  367. if (submitting.value) return
  368. submitting.value = true
  369. try {
  370. if (flag.value) {
  371. return
  372. }
  373. flag.value = true
  374. form.activityTwoPercentGive = form.agree5 ? 1 : 0
  375. form.activityGive = form.agree6 ? 1 : 0
  376. dialogCheckWait.value = true
  377. let api
  378. if (activeTab.value != 3) {
  379. api = ibApi.agentBalanceTransfer
  380. } else {
  381. api = ibApi.agentBalanceCommissionAdd
  382. }
  383. const res = await api({ ...form })
  384. dialogCheckWait.value = false
  385. if (res.code == Code.StatusOK) {
  386. dialogCheck.value = true
  387. dialogVisible.value = true
  388. flag.value = false
  389. } else {
  390. responseMessage.value = res.msg
  391. dialogCheck.value = true
  392. dialogVisible.value = false
  393. flag.value = false
  394. }
  395. } catch (error) {
  396. console.error('转账失败:', error)
  397. responseMessage.value = error.msg || t('Msg.Fail')
  398. dialogCheck.value = true
  399. dialogVisible.value = false
  400. } finally {
  401. submitting.value = false
  402. flag.value = false
  403. if (dialogCheckWait.value) dialogCheckWait.value = false
  404. }
  405. }
  406. async function Activity24nianzhongTwoInfo() {
  407. const res = await activityApi.Activity23nianzhongTwoInfo({})
  408. if (res.code == Code.StatusOK) {
  409. tableData4Two.value = res.data
  410. } else {
  411. $pigeon?.MessageError(res.msg)
  412. }
  413. }
  414. // 活动相关方法
  415. function togetActivity() {
  416. get23nianzhongTwoLogin()
  417. getActivityExtensionGiveLogin()
  418. getActivityExtensionGiveLoginJoin()
  419. }
  420. async function get23nianzhongTwoLogin() {
  421. const res = await activityApi.Activity23nianzhongTwoLogin({
  422. login: form.to,
  423. })
  424. if (res.code == Code.StatusOK) {
  425. tableData4Two.value = res.data
  426. if (tableData4Two.value.show == 1) {
  427. tableData4TwoFlag.value = true
  428. } else if (tableData4Two.value.show == 0) {
  429. tableData4TwoFlag.value = false
  430. }
  431. } else {
  432. $pigeon?.MessageError(res.msg)
  433. }
  434. }
  435. async function getActivityExtensionGiveLogin() {
  436. const res = await activityApi.ActivityExtensionGiveLogin({
  437. login: form.to,
  438. })
  439. if (res.code == Code.StatusOK) {
  440. tableDataNewList.value = res.data
  441. if (tableDataNewList.value.show == 1) {
  442. tableDataNewListFlag.value = true
  443. } else if (tableDataNewList.value.show == 0) {
  444. tableDataNewListFlag.value = false
  445. }
  446. } else {
  447. $pigeon?.MessageError(res.msg)
  448. }
  449. }
  450. async function getActivityExtensionGiveLoginJoin() {
  451. const res = await activityApi.ActivityExtensionGiveLoginJoin({
  452. login: form.to,
  453. })
  454. if (res.code == Code.StatusOK) {
  455. giveLoginJoin.value = res.data
  456. } else {
  457. $pigeon?.MessageError(res.msg)
  458. giveLoginJoin.value = ''
  459. }
  460. }
  461. // 监听 activeTab 变化
  462. watch(activeTab, (newVal) => {
  463. if (newVal) {
  464. console.log(newVal, 1212);
  465. if (newVal == 3) {
  466. getAgentInfo()
  467. } else {
  468. ransferToInfo()
  469. }
  470. form.to = ''
  471. form.amount = ''
  472. }
  473. })
  474. //
  475. watch(loginValue, (newVal) => {
  476. if (newVal) {
  477. step2.value = true
  478. form.withdrawLogin = newVal
  479. }
  480. })
  481. watch(() => form.to, (newVal) => {
  482. if (activeTab.value == 3) {
  483. getAgentInfo()
  484. } else {
  485. togetActivity()
  486. }
  487. })
  488. // 监听 agree6 变化
  489. watch(() => form.agree6, (newVal) => {
  490. if (newVal && giveLoginJoin.value?.flag === false) {
  491. let tips = ''
  492. if (giveLoginJoin.value.promptType == 1) {
  493. tips = t('surplusList.item10')
  494. } else {
  495. tips = t('surplusList.item11')
  496. }
  497. return
  498. // 活动相关方法,后续需要在调整
  499. if (giveLoginJoin.value.activityCategory == 1) {
  500. $pigeon?.MessageConfirm(
  501. tips,
  502. t('Msg.SystemPrompt'),
  503. t('surplusList.item12'),
  504. t('Home.msg.item3'),
  505. () => {
  506. $pigeon?.MessageConfirm(
  507. t('surplusList.item13'),
  508. t('Msg.SystemPrompt'),
  509. t('Btn.Confirm'),
  510. t('Btn.Cancel'),
  511. async () => {
  512. try {
  513. const res = await activityApi.ActivityGiveCancel({
  514. login: loginValue.value,
  515. })
  516. if (res.code == Code.StatusOK) {
  517. $pigeon?.MessageOK(res.msg || t('Msg.Success'))
  518. } else {
  519. $pigeon?.MessageError(res.msg)
  520. }
  521. } catch (error) {
  522. $pigeon?.MessageError(t('Msg.Fail'))
  523. }
  524. },
  525. () => {
  526. form.agree6 = false
  527. }
  528. )
  529. },
  530. () => {
  531. form.agree6 = false
  532. }
  533. )
  534. } else {
  535. $pigeon?.MessageConfirm(
  536. tips,
  537. t('Msg.SystemPrompt'),
  538. t('Btn.Confirm'),
  539. t('Btn.Cancel'),
  540. () => { },
  541. () => {
  542. form.agree6 = false
  543. }
  544. )
  545. }
  546. }
  547. })
  548. onMounted(() => {
  549. if (getInfoStatus5.value) {
  550. InfoStatus5.value = true
  551. }
  552. ransferInfo();
  553. ransferToInfo();
  554. // Activity24nianzhongTwoInfo()
  555. })
  556. onLoad((options) => {
  557. if (options?.login) {
  558. loginValue.value = options.login
  559. step2.value = true
  560. form.withdrawLogin = options.login
  561. }
  562. })
  563. </script>
  564. <style lang="scss" scoped>
  565. @import "@/uni.scss";
  566. .transfer-page {
  567. width: 100%;
  568. padding-bottom: px2rpx(20);
  569. .main-content {
  570. text-align: left;
  571. .box {
  572. padding-top: px2rpx(5);
  573. color: #303133;
  574. .b-card {
  575. background-color: #fff;
  576. margin-bottom: px2rpx(10);
  577. border-radius: px2rpx(6);
  578. box-shadow: 0 px2rpx(1) px2rpx(6) 0 rgba(0, 0, 0, 0.05);
  579. &:hover {
  580. box-shadow: 0 px2rpx(2) px2rpx(8) 0 rgba(0, 0, 0, 0.1);
  581. }
  582. .card-top {
  583. padding: px2rpx(15) px2rpx(20);
  584. box-sizing: border-box;
  585. .card-row {
  586. margin-bottom: px2rpx(12);
  587. &:last-child {
  588. margin-bottom: 0;
  589. }
  590. }
  591. .tit {
  592. font-size: px2rpx(16);
  593. margin-bottom: px2rpx(12);
  594. font-weight: 600;
  595. .iconfont {
  596. font-size: px2rpx(18);
  597. margin-right: px2rpx(8);
  598. color: #409eff;
  599. }
  600. }
  601. .title-wrapper {
  602. display: flex;
  603. justify-content: space-between;
  604. align-items: center;
  605. }
  606. }
  607. }
  608. }
  609. .box-step2 {
  610. .form-row {
  611. display: flex;
  612. flex-wrap: wrap;
  613. margin-bottom: px2rpx(12);
  614. gap: px2rpx(12);
  615. &:last-child {
  616. margin-bottom: 0;
  617. }
  618. .form-col {
  619. flex: 1;
  620. min-width: px2rpx(140);
  621. @media screen and (max-width: 991px) {
  622. flex: 0 0 100%;
  623. width: 100%;
  624. }
  625. }
  626. .form-col-full {
  627. width: 100%;
  628. padding: 0 px2rpx(5);
  629. }
  630. }
  631. .tips {
  632. line-height: 1.8;
  633. font-size: px2rpx(12);
  634. color: #909399;
  635. background-color: #f9f9f9;
  636. padding: px2rpx(12);
  637. border-radius: px2rpx(4);
  638. border-left: px2rpx(2) solid #409eff;
  639. .title {
  640. font-weight: 600;
  641. margin-bottom: px2rpx(6);
  642. color: #606266;
  643. }
  644. }
  645. }
  646. }
  647. .picker-select {
  648. background-color: #f5f7fa;
  649. border: 1px solid #dcdfe6;
  650. border-radius: px2rpx(4);
  651. padding: px2rpx(12) px2rpx(14);
  652. font-size: px2rpx(14);
  653. color: #606266;
  654. line-height: 1.4;
  655. width: 100%;
  656. box-sizing: border-box;
  657. &:hover {
  658. border-color: #409eff;
  659. }
  660. &.picker-disabled {
  661. background-color: #f5f7fa;
  662. color: #c0c4cc;
  663. cursor: not-allowed;
  664. }
  665. }
  666. .disabled-input {
  667. background-color: #f5f7fa;
  668. border: 1px solid #dcdfe6;
  669. border-radius: px2rpx(4);
  670. padding: px2rpx(12) px2rpx(14);
  671. font-size: px2rpx(14);
  672. color: #606266;
  673. width: 100%;
  674. box-sizing: border-box;
  675. }
  676. .m-input {
  677. background-color: #f5f7fa;
  678. border: 1px solid #dcdfe6;
  679. border-radius: px2rpx(4);
  680. padding: px2rpx(12) px2rpx(14);
  681. font-size: px2rpx(14);
  682. width: 100%;
  683. box-sizing: border-box;
  684. &:focus {
  685. border-color: #409eff;
  686. outline: none;
  687. box-shadow: 0 0 0 px2rpx(1) rgba(64, 158, 255, 0.2);
  688. }
  689. }
  690. }
  691. // 动画
  692. @keyframes popupFadeIn {
  693. from {
  694. opacity: 0;
  695. transform: scale(0.9);
  696. }
  697. to {
  698. opacity: 1;
  699. transform: scale(1);
  700. }
  701. }
  702. @keyframes fadeIn {
  703. from {
  704. opacity: 0;
  705. transform: translateY(px2rpx(10));
  706. }
  707. to {
  708. opacity: 1;
  709. transform: translateY(0);
  710. }
  711. }
  712. @keyframes pulse {
  713. 0% {
  714. transform: scale(1);
  715. }
  716. 50% {
  717. transform: scale(1.05);
  718. }
  719. 100% {
  720. transform: scale(1);
  721. }
  722. }
  723. @keyframes spin {
  724. from {
  725. transform: rotate(0deg);
  726. }
  727. to {
  728. transform: rotate(360deg);
  729. }
  730. }
  731. // 表单错误信息样式
  732. .uni-forms-item__error {
  733. font-size: px2rpx(12);
  734. color: #f56c6c;
  735. margin-top: px2rpx(4);
  736. }
  737. // 适配不同屏幕尺寸(媒体查询中的 750rpx 保持不变)
  738. @media (max-width: 750rpx) {
  739. .transfer-page {
  740. .main-content {
  741. padding: px2rpx(8);
  742. .box {
  743. .b-card {
  744. .card-top {
  745. padding: px2rpx(12) px2rpx(16);
  746. .tit {
  747. font-size: px2rpx(14);
  748. .iconfont {
  749. font-size: px2rpx(16);
  750. }
  751. }
  752. }
  753. }
  754. }
  755. }
  756. .s-btn {
  757. font-size: px2rpx(14);
  758. padding: px2rpx(10) px2rpx(16);
  759. }
  760. }
  761. }
  762. </style>