This commit is contained in:
2025-05-21 15:45:10 +08:00
parent f6ed5b04de
commit 5d96054c0c
44 changed files with 2460 additions and 2126 deletions

View File

@@ -2,6 +2,9 @@
import {defineAsyncComponent, ref} from "vue";
import XNav from "../../components/XNav.vue";
import XNoticeBar from "../../components/XNoticeBar.vue";
import {onLoad} from "@dcloudio/uni-app";
import Api from "../../api/index.js";
import {showToast} from "../../utils/uils.js";
// #ifdef APP-PLUS
import AliPay from "./components/AliPay.vue";
@@ -13,6 +16,7 @@ const AliPay = defineAsyncComponent(() => import('./components/AliPay.vue'));
const BankPay = defineAsyncComponent(() => import('./components/BankPay.vue'));
// #endif
const id = ref(null);
const currentTab = ref(0);
const tabs = [
{
@@ -26,8 +30,22 @@ const tabs = [
];
const change = (e) => {
if (id.value) {
showToast('无法修改类型');
return;
}
currentTab.value = e.index;
}
onLoad((options) => {
const {id: _id} = options;
if (_id) {
id.value = _id;
Api.system.getWithdrawalInfo(id.value).then(({data}) => {
currentTab.value = data.type - 1;
});
}
});
</script>
<template>
@@ -37,6 +55,7 @@ const change = (e) => {
<x-notice-bar
status="success"
:tile="true"
text-color="var(--primary-color)"
text="平台承诺:所有信息仅用于打款,不会用作其他用途。为了您的资金安全,大额提现会通过第三方支付代发,请填写实名信息和银行卡进行验证。">
</x-notice-bar>
@@ -51,7 +70,7 @@ const change = (e) => {
<Suspense>
<template #default>
<view class="px-[34rpx] !mt-[40rpx]">
<component :is="tabs[currentTab].component"></component>
<component :is="tabs[currentTab].component" :id="id"></component>
</view>
</template>