| | |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getGrabOrders(this.current); |
| | | // this.getGrabOrders(this.current); |
| | | }, |
| | | computed: { |
| | | change() { |
| | |
| | | }, |
| | | }, |
| | | 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) { |