Merge branch 'main' of http://1.117.67.95:3000/team/tyapi-frontend
This commit is contained in:
96
components.d.ts
vendored
96
components.d.ts
vendored
@@ -1,96 +0,0 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
// Generated by unplugin-vue-components
|
||||
// Read more: https://github.com/vuejs/core/pull/3399
|
||||
// biome-ignore lint: disable
|
||||
export {}
|
||||
|
||||
/* prettier-ignore */
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
AppBreadcrumb: typeof import('./src/components/layout/AppBreadcrumb.vue')['default']
|
||||
AppHeader: typeof import('./src/components/layout/AppHeader.vue')['default']
|
||||
AppLoading: typeof import('./src/components/common/AppLoading.vue')['default']
|
||||
AppSidebar: typeof import('./src/components/layout/AppSidebar.vue')['default']
|
||||
BusinessConsultationDialog: typeof import('./src/components/common/BusinessConsultationDialog.vue')['default']
|
||||
CertificationBanner: typeof import('./src/components/common/CertificationBanner.vue')['default']
|
||||
CertificationNotice: typeof import('./src/components/common/CertificationNotice.vue')['default']
|
||||
ChartCard: typeof import('./src/components/statistics/ChartCard.vue')['default']
|
||||
CodeDisplay: typeof import('./src/components/common/CodeDisplay.vue')['default']
|
||||
CustomSteps: typeof import('./src/components/common/CustomSteps.vue')['default']
|
||||
DanmakuBar: typeof import('./src/components/common/DanmakuBar.vue')['default']
|
||||
ElAlert: typeof import('element-plus/es')['ElAlert']
|
||||
ElAside: typeof import('element-plus/es')['ElAside']
|
||||
ElAvatar: typeof import('element-plus/es')['ElAvatar']
|
||||
ElButton: typeof import('element-plus/es')['ElButton']
|
||||
ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
|
||||
ElCard: typeof import('element-plus/es')['ElCard']
|
||||
ElCol: typeof import('element-plus/es')['ElCol']
|
||||
ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
|
||||
ElContainer: typeof import('element-plus/es')['ElContainer']
|
||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
|
||||
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
|
||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||
ElDivider: typeof import('element-plus/es')['ElDivider']
|
||||
ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
||||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
||||
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
||||
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
||||
ElForm: typeof import('element-plus/es')['ElForm']
|
||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||
ElHeader: typeof import('element-plus/es')['ElHeader']
|
||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||
ElInput: typeof import('element-plus/es')['ElInput']
|
||||
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
||||
ElLoading: typeof import('element-plus/es')['ElLoading']
|
||||
ElMain: typeof import('element-plus/es')['ElMain']
|
||||
ElMenu: typeof import('element-plus/es')['ElMenu']
|
||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||
ElOption: typeof import('element-plus/es')['ElOption']
|
||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||
ElRow: typeof import('element-plus/es')['ElRow']
|
||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
|
||||
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
|
||||
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
||||
ElTable: typeof import('element-plus/es')['ElTable']
|
||||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
||||
ElTabs: typeof import('element-plus/es')['ElTabs']
|
||||
ElTag: typeof import('element-plus/es')['ElTag']
|
||||
ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
|
||||
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
||||
ElUpload: typeof import('element-plus/es')['ElUpload']
|
||||
ExportDialog: typeof import('./src/components/common/ExportDialog.vue')['default']
|
||||
FileUpload: typeof import('./src/components/common/FileUpload.vue')['default']
|
||||
FilterItem: typeof import('./src/components/common/FilterItem.vue')['default']
|
||||
FilterSection: typeof import('./src/components/common/FilterSection.vue')['default']
|
||||
FloatingCustomerService: typeof import('./src/components/common/FloatingCustomerService.vue')['default']
|
||||
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
|
||||
ListPageLayout: typeof import('./src/components/common/ListPageLayout.vue')['default']
|
||||
MarkdownEditor: typeof import('./src/components/common/MarkdownEditor.vue')['default']
|
||||
NotificationPanel: typeof import('./src/components/layout/NotificationPanel.vue')['default']
|
||||
PermissionGuard: typeof import('./src/components/auth/PermissionGuard.vue')['default']
|
||||
ProductApiConfigDialog: typeof import('./src/components/admin/ProductApiConfigDialog.vue')['default']
|
||||
ProductCard: typeof import('./src/components/product/ProductCard.vue')['default']
|
||||
ProductDocumentationDialog: typeof import('./src/components/admin/ProductDocumentationDialog.vue')['default']
|
||||
ProductFormDialog: typeof import('./src/components/admin/ProductFormDialog.vue')['default']
|
||||
ResponsiveActionColumn: typeof import('./src/components/common/ResponsiveActionColumn.vue')['default']
|
||||
RichTextEditor: typeof import('./src/components/common/RichTextEditor.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
StatCard: typeof import('./src/components/statistics/StatCard.vue')['default']
|
||||
StatisticsDashboard: typeof import('./src/components/statistics/StatisticsDashboard.vue')['default']
|
||||
TheWelcome: typeof import('./src/components/TheWelcome.vue')['default']
|
||||
VersionInfo: typeof import('./src/components/common/VersionInfo.vue')['default']
|
||||
WelcomeItem: typeof import('./src/components/WelcomeItem.vue')['default']
|
||||
}
|
||||
export interface GlobalDirectives {
|
||||
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
||||
}
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ const rechargeConfig = ref({
|
||||
const transferInfo = ref({
|
||||
bankName: '中国银行股份有限公司海口美苑路支行',
|
||||
bankAccount: '2662 9305 2910',
|
||||
accountName: '海南省学宇思网络科技有限公司',
|
||||
accountName: '海南海宇大数据有限公司',
|
||||
})
|
||||
|
||||
// 支付宝充值表单
|
||||
@@ -883,7 +883,7 @@ const handleWechatRecharge = async () => {
|
||||
// prepay_data 可能包含 code_url (扫码支付) 或 pay_url (H5支付)
|
||||
if (response.data && response.data.prepay_data) {
|
||||
const prepayData = response.data.prepay_data
|
||||
|
||||
|
||||
// 扫码支付:显示二维码
|
||||
if (prepayData.code_url) {
|
||||
// 保存订单号用于轮询(从响应中获取订单号)
|
||||
@@ -895,7 +895,7 @@ const handleWechatRecharge = async () => {
|
||||
} else {
|
||||
ElMessage.error('获取订单号失败,请重新支付')
|
||||
}
|
||||
}
|
||||
}
|
||||
// H5支付:跳转到支付页面
|
||||
else if (prepayData.pay_url || response.data.pay_url) {
|
||||
ElMessage.success('正在跳转到微信支付...')
|
||||
@@ -936,10 +936,10 @@ const handleWechatRecharge = async () => {
|
||||
const showQrCode = async (codeUrl) => {
|
||||
try {
|
||||
showQrCodeDialog.value = true
|
||||
|
||||
|
||||
// 等待DOM更新
|
||||
await nextTick()
|
||||
|
||||
|
||||
if (qrCodeCanvas.value) {
|
||||
// 生成二维码
|
||||
await QRCode.toCanvas(qrCodeCanvas.value, codeUrl, {
|
||||
@@ -970,10 +970,10 @@ const closeQrCodeDialog = () => {
|
||||
const startWechatOrderPolling = () => {
|
||||
// 清除之前的定时器
|
||||
stopWechatOrderPolling()
|
||||
|
||||
|
||||
// 立即检查一次
|
||||
checkWechatOrderStatus()
|
||||
|
||||
|
||||
// 每3秒轮询一次
|
||||
wechatOrderPollTimer = setInterval(() => {
|
||||
checkWechatOrderStatus()
|
||||
@@ -1014,10 +1014,10 @@ const checkWechatOrderStatus = async () => {
|
||||
isCheckingPayment.value = false
|
||||
closeQrCodeDialog()
|
||||
ElMessage.success('充值成功!')
|
||||
|
||||
|
||||
// 刷新钱包余额
|
||||
await loadWalletInfo()
|
||||
|
||||
|
||||
// 重置表单
|
||||
wechatForm.amount = ''
|
||||
selectedPresetAmount.value = null
|
||||
|
||||
Reference in New Issue
Block a user