From 777bcb6c5660c0ed14d85207377b62b779d81dde Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 20 五月 2026 23:08:55 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/gtzxinglijicun

---
 small-program/shop/pages/Invoice-issued-successfully/Invoice-issued-successfully.vue |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/small-program/shop/pages/Invoice-issued-successfully/Invoice-issued-successfully.vue b/small-program/shop/pages/Invoice-issued-successfully/Invoice-issued-successfully.vue
index 00444dd..e859d39 100644
--- a/small-program/shop/pages/Invoice-issued-successfully/Invoice-issued-successfully.vue
+++ b/small-program/shop/pages/Invoice-issued-successfully/Invoice-issued-successfully.vue
@@ -43,6 +43,35 @@
 				}
 			};
 		},
+		onLoad() {
+			const invoiceData = uni.getStorageSync('invoiceSuccessData')
+			if (invoiceData) {
+				this.titleType = invoiceData.titleType || 'company'
+				if (this.titleType === 'company') {
+					this.invoiceInfo = {
+						invoiceType: invoiceData.invoiceType || '',
+						titleTypeText: invoiceData.titleTypeText || '',
+						title: invoiceData.title || '',
+						content: invoiceData.content || '',
+						amount: invoiceData.amount || '',
+						taxNo: invoiceData.taxNo || '',
+						bankName: invoiceData.bankName || '',
+						bankAccount: invoiceData.bankAccount || '',
+						companyAddress: invoiceData.companyAddress || '',
+						companyPhone: invoiceData.companyPhone || ''
+					}
+				} else {
+					this.personalInfo = {
+						invoiceType: invoiceData.invoiceType || '',
+						titleTypeText: invoiceData.titleTypeText || '',
+						title: invoiceData.title || '',
+						content: invoiceData.content || '',
+						amount: invoiceData.amount || ''
+					}
+				}
+				uni.removeStorageSync('invoiceSuccessData')
+			}
+		},
 		computed: {
 			displayFields() {
 				const base = this.titleType === 'company' ? this.invoiceInfo : this.personalInfo;

--
Gitblit v1.9.3