tangzy
2022-02-19 5468b8d6641d8642838f8c827ae3fd43a1ad5445
跳转
1 files modified
10 ■■■■■ changed files
pages/grabOrders/grabOrders.vue 10 ●●●●● patch | view | raw | blame | history
pages/grabOrders/grabOrders.vue
@@ -103,7 +103,7 @@
    },
  },
  mounted() {
    this.getGrabOrders(this.current);
    // this.getGrabOrders(this.current);
  },
  computed: {
    change() {
@@ -111,20 +111,22 @@
    },
  },
  onLoad: function(options) {
      debugger
      // debugger
      console.log(options)
      if(options.detailData == 0){
          this.current = 0;
        this.swiperCurrent = 0;
      }
      else{
          this.current = 1;
        this.swiperCurrent = 1;
      }
    this.getGrabOrders(this.current);
  },
  methods: {
    // tabs通知swiper切换
    tabsChange(index) {
      this.swiperCurrent = index;
      // console.log(index);
    },
    // swiper-item左右移动,通知tabs的滑块跟随移动
    transition(e) {