| | |
| | | <view class="swiper-item"> |
| | | <scroll-view scroll-y :style="{ height: useHeight, width: '100%' }" @scrolltolower="onreachBottom"> |
| | | <page0 :listData="rightdata" :swiperCurrent="0" v-if="item.name == '正在进行'" @openOnce="openOnce" |
| | | @getOrders="getOrders"> |
| | | @getOrders="getOrders" @outOrders="outOrders"> |
| | | </page0> |
| | | <page1 :listData="leftdata" :swiperCurrent="1" v-if="item.name == '可参与'" @openOnce="openOnce" |
| | | @getOrders="getOrders"> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //取消任务 |
| | | outOrders(d) { |
| | | let that = this; |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + |
| | | `taskqd/cancelTask?rid=${d.rid}&serid=${d.serid}&name=${that.$store.state.puserName}`, |
| | | method: "get", |
| | | // data: d, |
| | | header: { |
| | | "content-type": "application/x-www-form-urlencoded", |
| | | }, |
| | | success(res) { |
| | | const data = res.data.msg; |
| | | if (data == "操作成功") { |
| | | uni.showToast({ |
| | | title: data, |
| | | duration: 2000, |
| | | }); |
| | | } |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | } |
| | | }) |
| | | }, |
| | | //实时位置传递 |
| | | setNowposition(rid, jd, wd) { |
| | | console.log(uni.getStorageSync("ids") || this.$store.state.puserID, rid, jd, wd); |
| | |
| | | </view> |
| | | <view class="o-l-m-center" style="padding-left: 13px;"> |
| | | <!-- <u-icon name="volume" color="#d0d0d0" size="28"></u-icon> --> |
| | | <!-- 时间: --> |
| | | <!-- 时间: --> |
| | | {{item.time}} |
| | | </view> |
| | | </view> |
| | |
| | | :disabled="item.type == 1" v-if="item.iscation == 1" @click="getOrders(swiperCurrent,item)"> |
| | | <!-- <span class="Cation">队长</span> --> |
| | | {{item.type == 1?"完成反馈":item.type == 0?"上传反馈":"开始任务"}} |
| | | </u-button> |
| | | <u-button class="o-r-down" :plain="true" size="mini" type="error" @click="outOrders(item)"> |
| | | {{item.iscation == 0?'退出任务':'取消任务'}} |
| | | </u-button> |
| | | <view class="o-r-$"> |
| | | 积分:{{item.integral}} |
| | |
| | | item: item |
| | | } |
| | | this.$emit("getOrders", b); |
| | | }, |
| | | outOrders(val) { |
| | | let b = { |
| | | rid: val.id, |
| | | serid: this.$store.state.puserID |
| | | }; |
| | | this.$emit("outOrders", b); |
| | | } |
| | | } |
| | | } |
| | |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | |
| | | view { |
| | | margin-top: 10px; |
| | | .o-r-down { |
| | | margin-top: 4px; |
| | | } |
| | | } |
| | | |
| | |
| | | </view> |
| | | </view> |
| | | <view class="onve-right"> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" :disabled="true" |
| | | @click="getOrders(swiperCurrent,item)"> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" :disabled="true"> |
| | | <!-- <span class="Cation notCation">队员</span> --> |
| | | {{"完成反馈"}} |
| | | {{"已完成"}} |
| | | </u-button> |
| | | <view class="o-r-$"> |
| | | 积分:{{item.integral}} |
| | |
| | | <view class="swiper-item"> |
| | | <scroll-view scroll-y :style="{ height: useHeight, width: '100%' }" @scrolltolower="onreachBottom"> |
| | | <page0 :listData="leftdata" :swiperCurrent="0" v-if="item.name == '正在进行'" @openOnce="openOnce" |
| | | @getOrders="getOrders"></page0> |
| | | @getOrders="getOrders" @outOrders="outOrders"></page0> |
| | | <page1 :listData="rightdata" :swiperCurrent="1" v-if="item.name == '可参与'" @openOnce="openOnce" |
| | | @getOrders="getOrders"></page1> |
| | | <page2 :listData="overdata" :swiperCurrent="2" v-if="item.name == '已完成'" @openOnce="openOnce" |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //取消任务 |
| | | outOrders(d) { |
| | | let that = this; |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + |
| | | `taskqd/cancelTask?rid=${d.rid}&serid=${d.serid}&name=${that.$store.state.puserName}`, |
| | | method: "get", |
| | | // data: d, |
| | | header: { |
| | | "content-type": "application/x-www-form-urlencoded", |
| | | }, |
| | | success(res) { |
| | | const data = res.data.msg; |
| | | if (data == "操作成功") { |
| | | uni.showToast({ |
| | | title: data, |
| | | duration: 2000, |
| | | }); |
| | | } |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | } |
| | | }) |
| | | }, |
| | | //实时位置传递 |
| | | setNowposition(rid, jd, wd) { |
| | | console.log(uni.getStorageSync("ids") || this.$store.state.puserID, rid, jd, wd); |
| | |
| | | <!-- <span class="Cation">队长</span> --> |
| | | {{item.type == 1?"完成反馈":item.type == 0?"上传反馈":"开始任务"}} |
| | | </u-button> |
| | | <u-button class="o-r-down" :plain="true" size="mini" type="error" @click="outOrders(item)"> |
| | | {{item.iscation == 0?'退出任务':'取消任务'}} |
| | | </u-button> |
| | | <view class="o-r-$"> |
| | | 积分:{{item.integral}} |
| | | </view> |
| | |
| | | item: item |
| | | } |
| | | this.$emit("getOrders", b); |
| | | }, |
| | | outOrders(val) { |
| | | let b = { |
| | | rid: val.id, |
| | | serid: this.$store.state.puserID |
| | | }; |
| | | this.$emit("outOrders", b); |
| | | } |
| | | } |
| | | } |
| | |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | |
| | | view { |
| | | margin-top: 10px; |
| | | .o-r-down { |
| | | margin-top: 4px; |
| | | } |
| | | } |
| | | |
| | |
| | | <view class="onve-right"> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" :disabled="true" <!-- |
| | | <span class="Cation notCation">队员</span> --> |
| | | {{"完成反馈"}} |
| | | {{"已完成"}} |
| | | </u-button> |
| | | <view class="o-r-$"> |
| | | 积分:{{item.integral}} |
| | |
| | | <view class="swiper-item"> |
| | | <scroll-view scroll-y :style="{ height: useHeight, width: '100%' }" @scrolltolower="onreachBottom"> |
| | | <page0 :listData="leftdata" :swiperCurrent="0" v-if="item.name == '正在进行'" @openOnce="openOnce" |
| | | @getOrders="getOrders"></page0> |
| | | @getOrders="getOrders" @outOrders="outOrders"></page0> |
| | | <page1 :listData="rightdata" :swiperCurrent="1" v-if="item.name == '可参与'" @openOnce="openOnce" |
| | | @getOrders="getOrders"></page1> |
| | | <page2 :listData="rightdata" :swiperCurrent="2" v-if="item.name == '已完成'" @openOnce="openOnce" |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //取消任务 |
| | | outOrders(d) { |
| | | let that = this; |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + |
| | | `taskqd/cancelTask?rid=${d.rid}&serid=${d.serid}&name=${that.$store.state.puserName}`, |
| | | method: "get", |
| | | // data: d, |
| | | header: { |
| | | "content-type": "application/x-www-form-urlencoded", |
| | | }, |
| | | success(res) { |
| | | const data = res.data.msg; |
| | | if (data == "操作成功") { |
| | | uni.showToast({ |
| | | title: data, |
| | | duration: 2000, |
| | | }); |
| | | } |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | } |
| | | }) |
| | | }, |
| | | //实时位置传递 |
| | | setNowposition(rid, jd, wd) { |
| | | console.log(uni.getStorageSync("ids") || this.$store.state.puserID, rid, jd, wd); |
| | |
| | | openOnce(val) { |
| | | //打开地图 |
| | | // console.log(this.swiperCurrent) |
| | | val["buttype"] = this.swiperCurrent == 1 ? 0 : (this.swiperCurrent == 0 ? 1 : 2); //tab标识,0正在进行,1可参与 |
| | | val["buttype"] = this.swiperCurrent == 1 ? 0 : (this.swiperCurrent == 0 ? 1 : |
| | | 2); //tab标识,0正在进行,1可参与 |
| | | val["serid"] = (uni.getStorageSync("ids") || this.$store.state.puserID) + ","; |
| | | val["appenUrl"] = this.$store.state.piAPI; |
| | | //打开地图 |
| | |
| | | </view> |
| | | </view> |
| | | <view class="onve-right"> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" :disabled="true"> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" :disabled="true" |
| | | v-if="item.iscation == 0" @click="getOrders(swiperCurrent,item)"> |
| | | <!-- <span class="Cation notCation">队员</span> --> |
| | | {{"完成反馈"}} |
| | | {{item.type == 1?"完成反馈":item.type == 0?"正在进行":"还未开始"}} |
| | | </u-button> |
| | | <view class="o-r-$"> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" |
| | | :disabled="item.type == 1" v-if="item.iscation == 1" @click="getOrders(swiperCurrent,item)"> |
| | | <!-- <span class="Cation orange">队长</span> --> |
| | | {{item.type == 1?"完成反馈":item.type == 0?"上传反馈":"开始任务"}} |
| | | </u-button> |
| | | <u-button class="o-r-down" :plain="true" size="mini" type="error" @click="outOrders(item)"> |
| | | {{item.iscation == 0?'退出任务':'取消任务'}} |
| | | </u-button> |
| | | <view class="o-r-down"> |
| | | 积分:{{item.integral}} |
| | | </view> |
| | | </view> |
| | |
| | | item: item |
| | | } |
| | | this.$emit("getOrders", b); |
| | | }, |
| | | outOrders(val) { |
| | | let b = { |
| | | rid: val.id, |
| | | serid: this.$store.state.puserID |
| | | }; |
| | | this.$emit("outOrders", b); |
| | | } |
| | | } |
| | | } |
| | |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | |
| | | view { |
| | | margin-top: 10px; |
| | | .o-r-down { |
| | | margin-top: 4px; |
| | | } |
| | | } |
| | | |
| | |
| | | </view> |
| | | </view> |
| | | <view class="onve-right"> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" :disabled="true" |
| | | v-if="item.iscation == 0" @click="getOrders(swiperCurrent,item)"> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" :disabled="true"> |
| | | <!-- <span class="Cation notCation">队员</span> --> |
| | | {{item.type == 1?"完成反馈":item.type == 0?"正在进行":"还未开始"}} |
| | | </u-button> |
| | | <u-button :class="[item.type == 1?'':item.type == 0?'blues':'greens']" size="mini" |
| | | :disabled="item.type == 1" v-if="item.iscation == 1" @click="getOrders(swiperCurrent,item)"> |
| | | <!-- <span class="Cation orange">队长</span> --> |
| | | {{item.type == 1?"完成反馈":item.type == 0?"上传反馈":"开始任务"}} |
| | | {{"已完成"}} |
| | | </u-button> |
| | | <view class="o-r-$"> |
| | | 积分:{{item.integral}} |