一些优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user