| | |
| | | }, |
| | | methods: { |
| | | openAPP(type) { |
| | | console.log(type) |
| | | // console.log(type) |
| | | let that = this; |
| | | if (type != 1) { |
| | | //反馈 |
| | | uni.navigateTo({ |
| | | url: '/pages/grabOrders/feedback?data=' + JSON.stringify(this.data) |
| | | }); |
| | | } else { |
| | | this.$confirm('是否参与活动:' + this.data.rname + "?", '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'success', |
| | | center: true, |
| | | customClass: "customClass" |
| | | }).then(() => { |
| | | let url = "http://223.82.109.183:2082/api" + "/taskqd/Graborder", |
| | | dataAppend = that.data; |
| | | axios.post(url, dataAppend).then(res => { |
| | | // console.log(res); |
| | | if (res.data.msg == "抢单成功") { |
| | | that.data.type = 0; |
| | | that.$message({ |
| | | message: res.data.msg, |
| | | type: 'success' |
| | | }); |
| | | return; |
| | | } |
| | | that.$message({ |
| | | message: res.data.msg, |
| | | type: 'warning' |
| | | }); |
| | | }) |
| | | }).catch(() => { |
| | | // this.$message({ |
| | | // type: 'info', |
| | | // message: '已取消删除' |
| | | // }); |
| | | }); |
| | | // return; |
| | | //抢单 |
| | | // console.log(this.data) |
| | | // let up = this.data.appenUrl == '/api' ? "http://192.168.0.107:85" : this.data.appenUrl; |
| | | let url = "http://223.82.109.183:2082/api" + "/taskqd/Graborder", |
| | | dataAppend = this.data; |
| | | axios.post(url, dataAppend).then(res => { |
| | | console.log(res); |
| | | if (res.data.msg == "抢单成功") { |
| | | this.data.type = 0; |
| | | this.$message({ |
| | | message: res.data.msg, |
| | | type: 'success' |
| | | }); |
| | | return; |
| | | } |
| | | this.$message({ |
| | | message: res.data.msg, |
| | | type: 'warning' |
| | | }); |
| | | }) |
| | | // let url = "http://223.82.109.183:2082/api" + "/taskqd/Graborder", |
| | | // dataAppend = this.data; |
| | | // axios.post(url, dataAppend).then(res => { |
| | | // console.log(res); |
| | | // if (res.data.msg == "抢单成功") { |
| | | // this.data.type = 0; |
| | | // this.$message({ |
| | | // message: res.data.msg, |
| | | // type: 'success' |
| | | // }); |
| | | // return; |
| | | // } |
| | | // this.$message({ |
| | | // message: res.data.msg, |
| | | // type: 'warning' |
| | | // }); |
| | | // }) |
| | | } |
| | | }, |
| | | getDataList() { |
| | |
| | | }, |
| | | beginCome() { |
| | | var data = { |
| | | city: "南昌市", |
| | | content: "按路线巡逻", |
| | | district: "青云谱区", |
| | | city: "无数据", |
| | | content: "无数据", |
| | | district: "无数据", |
| | | id: 5, |
| | | integral: "14", |
| | | jnum: 2, |
| | | line: "LINESTRING(115.88518439579809 28.67705200351289,115.89115548582284 28.677382855466767,115.89148633777671 28.675523782583074,115.88565704144649 28.675145666064356,115.88521590550799 28.67700473894805,115.88521590550799 28.67700473894805)", |
| | | num: 1, |
| | | province: "江西省", |
| | | num: 2, |
| | | province: "无数据", |
| | | raddress: "", |
| | | rname: "测试", |
| | | rname: "无数据", |
| | | rtype: "0", |
| | | serid: "1123598821738675201,", |
| | | time: "2021-11-17 00:00:00", |
| | | time: "无数据", |
| | | url: "http://223.82.109.183:2081/zhba/upload/20211102/07fe327a76a43fa8d3431c73febade22.jpg", |
| | | buttype: "0", |
| | | type:'1' |
| | | } |
| | | //url解码 |
| | | this.data = this.getQueryVariable('data') || data; |