一些优化

This commit is contained in:
haomingming
2025-09-04 17:34:47 +08:00
parent b068fb00cc
commit 4659f30400
18 changed files with 508 additions and 87 deletions
@@ -122,6 +122,7 @@
<script setup>
import { ref, onMounted } from 'vue'
import course_api from "@/api/course_api.js"
import { onLoad } from '@dcloudio/uni-app'
const invoice_id = ref('')
@@ -312,15 +313,14 @@ const loadInvoiceData = () => {
})
}
onLoad((options) => {
invoice_id.value = options.invoice_id // 已支持 App-Plus
console.log('发票ID:', options.invoice_id)
})
onMounted(() => {
getSystemInfo()
const pages = getCurrentPages()
const currentPage = pages[pages.length - 1]
const options = currentPage.options || {}
invoice_id.value = options.invoice_id
if (!invoice_id.value) {
hasError.value = true
isLoading.value = false