| | |
| | | // url: "http://2 |
| | | // myid:111 |
| | | //myName:222 |
| | | that.ourData.rtype = 2; |
| | | that.ourData.type = 2; |
| | | that.ourData.buttype = 0; |
| | | that.ourData.butCT = "begin"; |
| | | if (that.ourData.num == 0) { |
| | | that.ourData.iscation = "1"; |
| | | that.ourData.serid += that.ourData.myid + ','; |
| | | that.ourData.captain = that.ourData.myName; |
| | | } else { |
| | | that.ourData.iscation = "0"; |
| | | that.ourData.serid += that.ourData.myid + ','; |
| | | that.ourData.team += ',' + that.ourData.myid; |
| | | } |
| | | that.ourData.butCT = "begin"; |
| | | // that.ourData.rtype = 2; |
| | | // that.ourData.type = 2; |
| | | // that.ourData.buttype = 0; |
| | | // that.ourData.butCT = "begin"; |
| | | // if (that.ourData.num == 0) { |
| | | // that.ourData.iscation = "1"; |
| | | // that.ourData.serid += that.ourData.myid + ','; |
| | | // that.ourData.captain = that.ourData.myName; |
| | | // } else { |
| | | // that.ourData.iscation = "0"; |
| | | // that.ourData.serid += that.ourData.myid + ','; |
| | | // that.ourData.team += ',' + that.ourData.myid; |
| | | // } |
| | | // that.ourData.butCT = "begin"; |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | duration: 2000, |
| | | }); |
| | | setTimeout(function() { |
| | | uni.redirectTo({ |
| | | url: "/pages/grabOrders/grabOrders?in=true" |
| | | }) |
| | | }, 2200) |
| | | } |
| | | }, |
| | | complete() { |
| | |
| | | type = 'start', |
| | | url = that.$store.state.piAPI + "taskqd/startTask?" + |
| | | `rid=${rid}&serid=${serid}&type=${type}`; |
| | | uni.request({ |
| | | url: url, |
| | | method: "get", |
| | | // header: { |
| | | // "content-type": "application/json", |
| | | // }, |
| | | success(res) { |
| | | // that.timeBegin(1); |
| | | // that.ourData.butCT = "beginUp"; |
| | | // that.ourData.rtype = '0'; |
| | | // that.ourData.type = "0"; |
| | | }, |
| | | complete() { |
| | | that.showIn = false; |
| | | // uni.request({ |
| | | // url: url, |
| | | // method: "get", |
| | | // // header: { |
| | | // // "content-type": "application/json", |
| | | // // }, |
| | | // success(res) { |
| | | // // that.timeBegin(1); |
| | | // // that.ourData.butCT = "beginUp"; |
| | | // // that.ourData.rtype = '0'; |
| | | // // that.ourData.type = "0"; |
| | | // }, |
| | | // complete() { |
| | | // that.showIn = false; |
| | | // } |
| | | // }) |
| | | let d = { |
| | | rid:rid, |
| | | serid: serid, |
| | | type: type, |
| | | // data: JSON.stringify(item), |
| | | that: that, |
| | | fn: () => { |
| | | that.getGrabOrders(that.current); //重获取数据 |
| | | // setTimeout(() => { |
| | | // that.openOnce(item); |
| | | // }, 500) |
| | | } |
| | | }) |
| | | } |
| | | that.$store.commit('useWebScoketApi', d); |
| | | // axios.get(url).then((res) => { |
| | | // // console.log(res); |
| | | |