| | |
| | | <template> |
| | | <view class="grabOrders"> |
| | | <view> |
| | | <u-tabs-swiper |
| | | ref="uTabs" |
| | | :list="list" |
| | | :current="current" |
| | | @change="tabsChange" |
| | | :is-scroll="false" |
| | | swiperWidth="750" |
| | | ></u-tabs-swiper> |
| | | <u-tabs-swiper ref="uTabs" :list="list" :current="current" @change="tabsChange" :is-scroll="false" |
| | | swiperWidth="750"></u-tabs-swiper> |
| | | </view> |
| | | <!-- @animationfinish="animationfinish" --> |
| | | <swiper |
| | | :current="swiperCurrent" |
| | | @transition="transition" |
| | | @animationfinish="animationfinish" |
| | | style="height: calc(100% - 40px); width: 100%" |
| | | > |
| | | <swiper-item |
| | | class="swiper-item" |
| | | v-for="(item, index) in list" |
| | | :key="index" |
| | | style="height: 100%; width: 100%" |
| | | > |
| | | <scroll-view |
| | | scroll-y |
| | | style="height: 100%; width: 100%" |
| | | @scrolltolower="onreachBottom" |
| | | > |
| | | <page0 |
| | | :listData="leftdata" |
| | | :swiperCurrent="0" |
| | | v-if="item.name == '正在进行'" |
| | | @openOnce="openOnce" |
| | | @getOrders="getOrders" |
| | | ></page0> |
| | | <page1 |
| | | :listData="rightdata" |
| | | :swiperCurrent="1" |
| | | v-if="item.name == '可参与'" |
| | | @openOnce="openOnce" |
| | | @getOrders="getOrders" |
| | | ></page1> |
| | | <swiper :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish" |
| | | style="height: calc(100% - 40px); width: 100%"> |
| | | <swiper-item class="swiper-item" v-for="(item, index) in list" :key="index" |
| | | style="height: 100%; width: 100%"> |
| | | <scroll-view scroll-y style="height: 100%; width: 100%" @scrolltolower="onreachBottom"> |
| | | <page0 :listData="leftdata" :swiperCurrent="0" v-if="item.name == '正在进行'" @openOnce="openOnce" |
| | | @getOrders="getOrders"></page0> |
| | | <page1 :listData="rightdata" :swiperCurrent="1" v-if="item.name == '可参与'" @openOnce="openOnce" |
| | | @getOrders="getOrders"></page1> |
| | | |
| | | <!-- <view class="a" v-if="item.name == '正在进行'"> |
| | | {{leftdata}} |
| | |
| | | </swiper-item> |
| | | </swiper> |
| | | <view> |
| | | <u-modal |
| | | v-model="showPopup" |
| | | :content="appdetitle" |
| | | :show-cancel-button="true" |
| | | @confirm="confirms" |
| | | ></u-modal> |
| | | <u-modal v-model="showPopup" :content="appdetitle" :show-cancel-button="true" @confirm="confirms"></u-modal> |
| | | <!-- <u-button @click="open"> |
| | | 打开模态框 |
| | | </u-button> --> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | list: [ |
| | | { |
| | | list: [{ |
| | | name: "正在进行", |
| | | }, |
| | | { |
| | |
| | | }, |
| | | }, |
| | | onLoad: function(options) { |
| | | debugger |
| | | console.log(options) |
| | | if(options.detailData == 0){ |
| | | this.current = 0; |
| | | } |
| | | else{ |
| | | } else { |
| | | this.current = 1; |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | // tabs通知swiper切换 |