distribution.vue 911 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <v-header title="配送计划" :async="async" @fetch="fetch" scroll border backgroundColor="#fff">
  3. <view v-for="(item,index) in data" :key="index" class="distribution-item row aCenter"
  4. :class="{
  5. 'distribution-item-active': item.status === 1
  6. }"
  7. >
  8. <view class="flex-all-1">{{item.date}}</view>
  9. <view v-if="!is_refound && item.status === 2" @click="confirm(item)" class="distribution-button center">确认收货</view>
  10. <view v-else-if="is_refound && item.status === 2">配送中(退款)</view>
  11. <view v-else>{{item.status === 1?'已送达':'未配送'}}</view>
  12. </view>
  13. </v-header>
  14. </template>
  15. <script>
  16. import vHeader from '../../components/v-header/main';
  17. import mixins from './mixins/index';
  18. export default {
  19. name: "distribution",
  20. mixins,
  21. components:{
  22. vHeader
  23. }
  24. }
  25. </script>
  26. <style scoped src="./style.scss" lang="scss">
  27. </style>