From 5dd36958cfd1ad9c9627d8362fe8b9e9f6a43e6b Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Fri, 27 Jun 2025 20:23:03 +0800 Subject: [PATCH] 1 --- pages/component/home.vue | 42 ++++++++++++++++---------------- pages/subcomponent/inspection-report.vue | 8 ++++-- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/pages/component/home.vue b/pages/component/home.vue index 91830fb..a3aabe1 100644 --- a/pages/component/home.vue +++ b/pages/component/home.vue @@ -17,7 +17,6 @@ 回收流程 - @@ -172,26 +171,27 @@ processes: [], priceList: [], records: [], - destinations: [{ - icon: '/static/home/爱心援乡.png', - title: '爱心援乡', - description: '精准帮扶贫困群体' - }, - { - icon: '/static/home/回塑新源.png', - title: '回塑新源', - description: '塑料的第二次成型' - }, - { - icon: '/static/home/织物出海.png', - title: '织物出海', - description: '分拣出最高价值' - }, - { - icon: '/static/home/碳循再生.png', - title: '碳循再生', - description: '减碳从出发生系统' - } + destinations: [ + // { + // icon: '/static/home/爱心援乡.png', + // title: '爱心援乡', + // description: '精准帮扶贫困群体' + // }, + // { + // icon: '/static/home/回塑新源.png', + // title: '回塑新源', + // description: '塑料的第二次成型' + // }, + // { + // icon: '/static/home/织物出海.png', + // title: '织物出海', + // description: '分拣出最高价值' + // }, + // { + // icon: '/static/home/碳循再生.png', + // title: '碳循再生', + // description: '减碳从出发生系统' + // } ], bannerList: [], pricePreviewList: [], diff --git a/pages/subcomponent/inspection-report.vue b/pages/subcomponent/inspection-report.vue index 3b721a5..b36ed02 100644 --- a/pages/subcomponent/inspection-report.vue +++ b/pages/subcomponent/inspection-report.vue @@ -98,7 +98,8 @@ export default { problemList: [], // 质量问题 reportData: null, showQualified: false, - showProblem: false + showProblem: false, + orderId : 0, } }, computed: { @@ -122,6 +123,7 @@ export default { this.navBarTotalHeight = this.statusBarHeight + this.navBarHeight // 获取 orderId const orderId = options.orderId + this.orderId = orderId if (orderId) { this.fetchQualityReport(orderId) } @@ -129,7 +131,9 @@ export default { methods: { async fetchQualityReport(orderId) { // 调用订单详情接口 - this.$api && this.$api('getOrderDetail', { orderId }, res => { + this.$api && this.$api('getOrderDetail', { + orderId : this.orderId + }, res => { if (res && res.code === 200 && res.result) { this.reportData = res.result // 解析嵌套的订单数据