liuyg
2021-11-04 d01b40716871f0eb93c8a769f1e4b58357076332
public/grabOrdersMap/js/vueMain.js
@@ -54,33 +54,65 @@
   },
   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() {
@@ -88,15 +120,24 @@
         that.beginCome();
      },
      beginCome() {
         // var data = [{
         //    "id": '100000',
         //    "place": '无数据',
         //    "state": '0',
         //    "dtype": '0',
         //    "size": '300',
         //    "jd": "114.91385",
         //    "wd": "25.81051"
         // }]
         var data = {
            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: "无数据",
            raddress: "",
            rname: "无数据",
            rtype: "0",
            serid: "1123598821738675201,",
            time: "无数据",
            url: "http://223.82.109.183:2081/zhba/upload/20211102/07fe327a76a43fa8d3431c73febade22.jpg",
            type: "0"
         }
         //url解码
         this.data = this.getQueryVariable('data') || data;
         // this.getdata = data;