| | |
| | | }, |
| | | data: this.popupData, |
| | | success(res) { |
| | | if (res.data.code == 400) { |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none', |
| | | duration: 2000, |
| | | }); |
| | | return; |
| | | } |
| | | const data = res.data.msg; |
| | | // console.log(data); |
| | | if (data == "抢单成功") { |
| | | uni.showToast({ |
| | | title: data, |
| | | duration: 2000, |
| | | }); |
| | | // that.listData = data; |
| | | // that.getGrabOrders(this.); |
| | | that.current = 1; |
| | | that.swiperCurrent = 1; |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | } |
| | | // that.listData = data; |
| | | // that.getGrabOrders(this.); |
| | | that.current = 1; |
| | | that.swiperCurrent = 1; |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | |
| | | }, |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | success(res) { |
| | | if (res.data.msg == "抢单成功") { |
| | | // appenUrl: "http://192.168.0.108:83/", |
| | | // butCT: "beginUp", |
| | | // buttype: 0, |
| | | // captain: "我", |
| | | // city: "南昌市", |
| | | // content: "测试", |
| | | // district: "西湖区", |
| | | // id: 37, |
| | | // integral: "222", |
| | | // iscation: "1", |
| | | // jnum: 3, |
| | | // line: "LINESTRING(115.8995839881188 28.687205773173343,115.89391916267935 28.678966027079593,115.90404718391959 28.673644524394046,115.91211526863638 28.681369286356936)", |
| | | // num: 1, |
| | | // nums: 0, |
| | | // province: "江西省", |
| | | // publisher: "管理", |
| | | // raddress: null, |
| | | // rname: "测试1", |
| | | // rtype: "0", |
| | | // serid: "1123598821738675201,", |
| | | // team: "你,他,它", |
| | | // time: "2022-02-18 14:15:52", |
| | | // type: "2", |
| | | // fname: "管理者", |
| | | // 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"; |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | duration: 2000, |
| | | }); |
| | | setTimeout(function() { |
| | | uni.redirectTo({ |
| | | url: "/pages/grabOrders/grabOrdersZAFFPX/grabOrders?in=1" |
| | | url: "/pages/grabOrders/grabOrdersZAYWXC/grabOrders?in=1" |
| | | }) |
| | | }, 2200) |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none', |
| | | duration: 2000, |
| | | }); |
| | | } |
| | | }, |
| | | complete() { |
| | |
| | | console.log(d) |
| | | this.appdetitle1 = "是否取消" + (d.iscation == 1 ? "该活动:" : "参与:") + d.name; |
| | | this.showPopup1 = true; |
| | | |
| | | |
| | | }, |
| | | //取消任务弹窗回调 |
| | | outits() { |
| | |
| | | }, |
| | | data: this.popupData, |
| | | success(res) { |
| | | // console.log(res) |
| | | if (res.data.code == 400) { |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none', |
| | | duration: 2000, |
| | | }); |
| | | return; |
| | | } |
| | | const data = res.data.msg; |
| | | // console.log(data); |
| | | if (data == "抢单成功") { |
| | | uni.showToast({ |
| | | title: data, |
| | | duration: 2000, |
| | | }); |
| | | // that.listData = data; |
| | | // that.getGrabOrders(this.); |
| | | that.current = 1; |
| | | that.swiperCurrent = 1; |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | } |
| | | // that.listData = data; |
| | | // that.getGrabOrders(this.); |
| | | that.current = 1; |
| | | that.swiperCurrent = 1; |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | |
| | | }, |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | success(res) { |
| | | if (res.data.msg == "抢单成功") { |
| | | // appenUrl: "http://192.168.0.108:83/", |
| | | // butCT: "beginUp", |
| | | // buttype: 0, |
| | | // captain: "我", |
| | | // city: "南昌市", |
| | | // content: "测试", |
| | | // district: "西湖区", |
| | | // id: 37, |
| | | // integral: "222", |
| | | // iscation: "1", |
| | | // jnum: 3, |
| | | // line: "LINESTRING(115.8995839881188 28.687205773173343,115.89391916267935 28.678966027079593,115.90404718391959 28.673644524394046,115.91211526863638 28.681369286356936)", |
| | | // num: 1, |
| | | // nums: 0, |
| | | // province: "江西省", |
| | | // publisher: "管理", |
| | | // raddress: null, |
| | | // rname: "测试1", |
| | | // rtype: "0", |
| | | // serid: "1123598821738675201,", |
| | | // team: "你,他,它", |
| | | // time: "2022-02-18 14:15:52", |
| | | // type: "2", |
| | | // fname: "管理者", |
| | | // 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"; |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | duration: 2000, |
| | | }); |
| | | setTimeout(function() { |
| | | uni.redirectTo({ |
| | | url: "/pages/grabOrders/grabOrdersZAXC/grabOrders?in=1" |
| | | url: "/pages/grabOrders/grabOrdersZAYWXC/grabOrders?in=1" |
| | | }) |
| | | }, 2200) |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none', |
| | | duration: 2000, |
| | | }); |
| | | } |
| | | }, |
| | | complete() { |
| | |
| | | }, |
| | | data: this.popupData, |
| | | success(res) { |
| | | const data = res.data.msg; |
| | | // console.log(data); |
| | | if (res.data.code == 400) { |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none', |
| | | duration: 2000, |
| | | }); |
| | | return; |
| | | } |
| | | const data = res.data.msg; |
| | | if (data == "抢单成功") { |
| | | uni.showToast({ |
| | | title: data, |
| | | duration: 2000, |
| | | }); |
| | | // that.listData = data; |
| | | // that.getGrabOrders(this.); |
| | | that.current = 1; |
| | | that.swiperCurrent = 1; |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | } |
| | | // that.listData = data; |
| | | // that.getGrabOrders(this.); |
| | | that.current = 1; |
| | | that.swiperCurrent = 1; |
| | | that.$store.commit("changegotuGrabOrders"); |
| | | |
| | | }, |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | success(res) { |
| | | if (res.data.msg == "抢单成功") { |
| | | // appenUrl: "http://192.168.0.108:83/", |
| | | // butCT: "beginUp", |
| | | // buttype: 0, |
| | | // captain: "我", |
| | | // city: "南昌市", |
| | | // content: "测试", |
| | | // district: "西湖区", |
| | | // id: 37, |
| | | // integral: "222", |
| | | // iscation: "1", |
| | | // jnum: 3, |
| | | // line: "LINESTRING(115.8995839881188 28.687205773173343,115.89391916267935 28.678966027079593,115.90404718391959 28.673644524394046,115.91211526863638 28.681369286356936)", |
| | | // num: 1, |
| | | // nums: 0, |
| | | // province: "江西省", |
| | | // publisher: "管理", |
| | | // raddress: null, |
| | | // rname: "测试1", |
| | | // rtype: "0", |
| | | // serid: "1123598821738675201,", |
| | | // team: "你,他,它", |
| | | // time: "2022-02-18 14:15:52", |
| | | // type: "2", |
| | | // fname: "管理者", |
| | | // 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"; |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | duration: 2000, |
| | |
| | | url: "/pages/grabOrders/grabOrdersZAYWXC/grabOrders?in=1" |
| | | }) |
| | | }, 2200) |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none', |
| | | duration: 2000, |
| | | }); |
| | | } |
| | | }, |
| | | complete() { |