前端-胡立永 4 weeks ago
parent
commit
5dd36958cf
2 changed files with 27 additions and 23 deletions
  1. +21
    -21
      pages/component/home.vue
  2. +6
    -2
      pages/subcomponent/inspection-report.vue

+ 21
- 21
pages/component/home.vue View File

@ -17,7 +17,6 @@
<view class="process-section">
<view class="section-header">
<text class="title">回收流程</text>
</view>
<view class="process-grid">
<view class="process-item" v-for="(item, index) in processes" :key="index">
@ -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: [],


+ 6
- 2
pages/subcomponent/inspection-report.vue View File

@ -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
//


Loading…
Cancel
Save