| | |
| | | </view> |
| | | <!-- 发单方 --> |
| | | <view class="index-list" v-if="typeViewId === 0"> |
| | | <view class="index-list-item" v-for="(item, index) in orderList" :key="index"> |
| | | <view class="index-list-item" v-for="(item, index) in orderList" :key="index" @click="jumpDesc(item)"> |
| | | <view class="index-list-item-head"> |
| | | <view class="index-list-item-head-l"> |
| | | <view class="xoam"></view> |
| | |
| | | </view> |
| | | <view class="index-list-item-dz"> |
| | | <image src="/static/icon/order_ic_time@2x.png" mode="widthFix"></image> |
| | | <text>{{item.startDate}} 至 {{item.endDate}}({{item.priceNum1}}天)</text> |
| | | <text>{{item.startDate}} 至 {{item.endDate}}({{item.totalDays}}天)</text> |
| | | </view> |
| | | </template> |
| | | <view class="index-list-item-price"> |
| | |
| | | this.getOrderList() |
| | | }, |
| | | methods: { |
| | | jumpDesc(item) { |
| | | uni.navigateTo({ |
| | | url: `/pages/order-details/order-details?id=${item.id}` |
| | | }) |
| | | }, |
| | | // 修改 |
| | | jumpEdit(item) { |
| | | if (item.type === 0 && item.workType === 0) { |
| | |
| | | } else if (item.type === 0 && item.workType === 2) { |
| | | uni.navigateTo({ |
| | | url: `/pages/packaging-worker/packaging-worker?id=${item.id}` |
| | | }) |
| | | } else if (item.type === 1) { |
| | | uni.navigateTo({ |
| | | url: `/pages/freight/freight?id=${item.id}` |
| | | }) |
| | | } |
| | | }, |
| | |
| | | |
| | | if (this.orderList.length === res.data.total) { |
| | | this.next = false |
| | | } else { |
| | | this.page += 1 |
| | | } |
| | | }) |
| | | }, |