更改任务处理逻辑冲突,解决反馈后队员不能回到任务页面问题,解决在打包app后,地图不显示自定义图片,
5 files modified
6 files renamed
15 files added
| | |
| | | d = { |
| | | serid: uni.getStorageSync("ids") || that.$store.state.puserID, |
| | | type: val + "", |
| | | tasktype:'0' |
| | | tasktype: '0' |
| | | }; |
| | | |
| | | if (val == 1) { |
| | |
| | | serid: item.serid, |
| | | type: "start", |
| | | // data: JSON.stringify(item), |
| | | goto: "grabOrdersZAXC", |
| | | that: that, |
| | | fn: () => { |
| | | that.getGrabOrders(that.current); //重获取数据 |
| | |
| | | }, |
| | | confirms() { |
| | | let that = this; |
| | | this.popupData["serid"] = (uni.getStorageSync("ids") || that.$store.state.puserID) + ","; |
| | | this.popupData["serid"] = "," + (uni.getStorageSync("ids") || that.$store.state.puserID); |
| | | this.popupData["captain"] = uni.getStorageSync("name") || that.$store.state.puserName; |
| | | // console.log(item) |
| | | // return; |
| | |
| | | <span class="once-left"> |
| | | 集合点 |
| | | </span> |
| | | <span class="once-right"> |
| | | <span class="once-right" @click="openMeeting"> |
| | | {{ourData.gathername}} |
| | | <u-icon name="map-fill" color="#429FFF"></u-icon> |
| | | </span> |
| | | </view> |
| | | <view class="once"> |
| | |
| | | mapHeight: 0, |
| | | latitude: 28.687205773173343, |
| | | longitude: 115.8995839881188, |
| | | circles: [{ |
| | | circles: [{ //集合点 |
| | | latitude: '', |
| | | longitude: '', |
| | | fillColor: "#D9E6EF", //填充颜色 |
| | | color: "#A7B6CB", //描边的颜色 |
| | | radius: 50, //半径 |
| | | strokeWidth: 2, //描边的宽度 |
| | | // fillColor: "#429FFF", //填充颜色 |
| | | // color: "#A7B6CB", //描边的颜色 |
| | | // radius: 2, //半径 |
| | | // strokeWidth: 2, //描边的宽度 |
| | | }, { |
| | | latitude: '', |
| | | longitude: '', |
| | | fillColor: "#D9E6EF", //填充颜色 |
| | | color: "#A7B6CB", //描边的颜色 |
| | | radius: 10, //半径 |
| | | strokeWidth: 2, //描边的宽度 |
| | | }], //圆 |
| | | markers: [{ |
| | | width: 40, |
| | | height: 40, |
| | | // fillColor: "#D9E6EF", //填充颜色 |
| | | // color: "#A7B6CB", //描边的颜色 |
| | | // radius: 10, //半径 |
| | | // strokeWidth: 2, //描边的宽度 |
| | | } |
| | | ], //圆 |
| | | markers: [{ // 集合点 |
| | | width: '40', |
| | | height: '40', |
| | | // label: { |
| | | // content: "集合点", |
| | | // color: "#FE0000", |
| | | // fontSize: 24, |
| | | // textAlign: "center", |
| | | // }, |
| | | id: 1, |
| | | latitude: '', |
| | | longitude: '', |
| | | iconPath: 'http://223.82.109.183:2081/zhba/upload/20220225/f0aecffbaf0a2ce80f7938569da20de7.png', |
| | | iconPath: '/static/dinw/location8.png', |
| | | }, { |
| | | width: 40, |
| | | height: 40, |
| | | width: '30', |
| | | height: '30', |
| | | id: 2, |
| | | latitude: '', |
| | | longitude: '', |
| | | iconPath: 'http://223.82.109.183:2081/zhba/upload/20220225/7b486f647a15e708aca662dbd496dcd3.png', |
| | | iconPath: '/static/dinw/dinw11.png', |
| | | }], //标记点 |
| | | jihecircles: [], //集合点 |
| | | jihemarkers: [], //集合点 |
| | | jihelatitude: '', //集合点 |
| | | jihelongitude: '', //集合点 |
| | | mypolylines: [{ //指定一系列坐标点,从数组第一项连线至最后一项 |
| | | points: [], |
| | | color: "#FE0000", //线的颜色 |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | openMeeting() { |
| | | let that = this; |
| | | if (this.jihelatitude && |
| | | this.jihelongitude) { |
| | | this.map.moveToLocation({ |
| | | latitude: that.jihelatitude, |
| | | longitude: that.jihelongitude |
| | | }); |
| | | } |
| | | }, |
| | | mapControlsBack() { |
| | | // console.log(1111) |
| | | this.inThere = true; |
| | | this.getLocationInfo("notSet"); |
| | | // this.bye = false; |
| | | // this.timeBegin(1); |
| | |
| | | let that = this; |
| | | if (type == "oks") { |
| | | let dataAppend = that.ourData; |
| | | dataAppend["serid"] = (uni.getStorageSync("ids") || that.$store.state.puserID) + ","; |
| | | dataAppend["serid"] = "," + (uni.getStorageSync("ids") || that.$store.state.puserID); |
| | | dataAppend["captain"] = uni.getStorageSync("name") || that.$store.state.puserName; |
| | | // console.log(dataAppend) |
| | | // return |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + "taskqd/Graborder", |
| | | method: "POST", |
| | |
| | | // this.$store.commit("stopTask", this.socketValue.rid); |
| | | this.bye = true; |
| | | uni.redirectTo({ |
| | | url: "/pages/grabOrders/grabOrders" |
| | | url: "/pages/grabOrders/grabOrdersZAXC/grabOrders" |
| | | }); |
| | | } |
| | | }, |
| | |
| | | that.ourData = data; |
| | | this.latitude = +data.latlong[0]; |
| | | this.longitude = +data.latlong[1]; |
| | | //集合点 |
| | | this.jihelatitude = +data.latlong[0]; |
| | | this.jihelongitude = +data.latlong[1]; |
| | | that.markers[0].latitude = data.latlong[0]; |
| | | that.markers[0].longitude = data.latlong[1]; |
| | | that.circles[0].latitude = data.latlong[0]; |
| | |
| | | d = { |
| | | serid: uni.getStorageSync("ids") || that.$store.state.puserID, |
| | | type: val + "", |
| | | tasktype:'1' |
| | | tasktype: '1' |
| | | }; |
| | | |
| | | if (val == 1) { |
| | |
| | | serid: item.serid, |
| | | type: "start", |
| | | // data: JSON.stringify(item), |
| | | goto: "grabOrdersZAYWXC", |
| | | that: that, |
| | | fn: () => { |
| | | that.getGrabOrders(that.current); //重获取数据 |
| | |
| | | }, |
| | | confirms() { |
| | | let that = this; |
| | | this.popupData["serid"] = (uni.getStorageSync("ids") || that.$store.state.puserID) + ","; |
| | | this.popupData["serid"] = "," + (uni.getStorageSync("ids") || that.$store.state.puserID); |
| | | this.popupData["captain"] = uni.getStorageSync("name") || that.$store.state.puserName; |
| | | // console.log(item) |
| | | // return; |
| | |
| | | <!-- <web-view :src="urls" @message="message"></web-view> --> |
| | | <map :scale='18' id="myMap" style="width: 100%" :style="{height: mapHeight + 'px'}" :markers="markers" |
| | | :longitude="longitude" :latitude="latitude" :circles="circles" :polyline="mypolylines" show-location="true"> |
| | | <cover-view class="dingwBut" @click="mapControlsBack"> |
| | | <cover-view class="dingwBut"> |
| | | <cover-image src="./map/img/dingwei.png" @click="mapControlsBack"> |
| | | </cover-image> |
| | | </cover-view> |
| | |
| | | <span class="once-left"> |
| | | 集合点 |
| | | </span> |
| | | <span class="once-right"> |
| | | <span class="once-right" @click="openMeeting"> |
| | | {{ourData.gathername}} |
| | | <u-icon name="map-fill" color="#429FFF"></u-icon> |
| | | </span> |
| | | </view> |
| | | <view class="once"> |
| | |
| | | mapHeight: 0, |
| | | latitude: 28.687205773173343, |
| | | longitude: 115.8995839881188, |
| | | circles: [{ |
| | | circles: [{ //集合点 |
| | | latitude: '', |
| | | longitude: '', |
| | | fillColor: "#D9E6EF", //填充颜色 |
| | | color: "#A7B6CB", //描边的颜色 |
| | | radius: 50, //半径 |
| | | strokeWidth: 2, //描边的宽度 |
| | | // fillColor: "#429FFF", //填充颜色 |
| | | // color: "#A7B6CB", //描边的颜色 |
| | | // radius: 2, //半径 |
| | | // strokeWidth: 2, //描边的宽度 |
| | | }, { |
| | | latitude: '', |
| | | longitude: '', |
| | | fillColor: "#D9E6EF", //填充颜色 |
| | | color: "#A7B6CB", //描边的颜色 |
| | | radius: 10, //半径 |
| | | strokeWidth: 2, //描边的宽度 |
| | | // fillColor: "#D9E6EF", //填充颜色 |
| | | // color: "#A7B6CB", //描边的颜色 |
| | | // radius: 10, //半径 |
| | | // strokeWidth: 2, //描边的宽度 |
| | | }], //圆 |
| | | markers: [{ |
| | | width: 40, |
| | | height: 40, |
| | | markers: [{ // 集合点 |
| | | width: '60', |
| | | height: '60', |
| | | // label: { |
| | | // content: "集合点", |
| | | // color: "#FE0000", |
| | | // fontSize: 24, |
| | | // textAlign: "center", |
| | | // }, |
| | | id: 1, |
| | | latitude: '', |
| | | longitude: '', |
| | | iconPath: 'http://223.82.109.183:2081/zhba/upload/20220225/f0aecffbaf0a2ce80f7938569da20de7.png', |
| | | iconPath: '/static/dinw/location4.png', |
| | | }, { |
| | | width: 40, |
| | | height: 40, |
| | | width: '10', |
| | | height: '10', |
| | | id: 2, |
| | | latitude: '', |
| | | longitude: '', |
| | | iconPath: 'http://223.82.109.183:2081/zhba/upload/20220225/7b486f647a15e708aca662dbd496dcd3.png', |
| | | iconPath: '/static/dinw/dinw11.png', |
| | | }], //标记点 |
| | | jihecircles: [], //集合点 |
| | | jihemarkers: [], //集合点 |
| | | jihelatitude: '', //集合点 |
| | | jihelongitude: '', //集合点 |
| | | mypolylines: [{ //指定一系列坐标点,从数组第一项连线至最后一项 |
| | | points: [], |
| | | color: "#FE0000", //线的颜色 |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | openMeeting() { |
| | | let that = this; |
| | | if (this.jihelatitude && |
| | | this.jihelongitude) { |
| | | this.map.moveToLocation({ |
| | | latitude: that.jihelatitude, |
| | | longitude: that.jihelongitude |
| | | }); |
| | | } |
| | | }, |
| | | mapControlsBack() { |
| | | // console.log(1111) |
| | | console.log(1111) |
| | | this.inThere = true; |
| | | this.getLocationInfo("notSet"); |
| | | // this.bye = false; |
| | | // this.timeBegin(1); |
| | |
| | | let that = this; |
| | | if (type == "oks") { |
| | | let dataAppend = that.ourData; |
| | | dataAppend["serid"] = (uni.getStorageSync("ids") || that.$store.state.puserID) + ","; |
| | | dataAppend["serid"] = "," + (uni.getStorageSync("ids") || that.$store.state.puserID); |
| | | // dataAppend["captain"] = uni.getStorageSync("name") || that.$store.state.puserName; |
| | | dataAppend["captain"] = uni.getStorageSync("name") || that.$store.state.puserName; |
| | | console.log(dataAppend, 888) |
| | | return |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + "taskqd/Graborder", |
| | | method: "POST", |
| | |
| | | // this.$store.commit("stopTask", this.socketValue.rid); |
| | | this.bye = true; |
| | | uni.redirectTo({ |
| | | url: "/pages/grabOrders/grabOrders" |
| | | url: "/pages/grabOrders/grabOrdersZAYWXC/grabOrders" |
| | | }); |
| | | } |
| | | }, |
| | |
| | | this.latitude = data.latlong[0]; |
| | | this.longitude = data.latlong[1]; |
| | | |
| | | //集合点 |
| | | this.jihelatitude = +data.latlong[0]; |
| | | this.jihelongitude = +data.latlong[1]; |
| | | //集合标记点 |
| | | that.markers[0].latitude = data.latlong[0]; |
| | | that.markers[0].longitude = data.latlong[1]; |
| | |
| | | let i = 1; //1是服务器 |
| | | if (i) { |
| | | if (i == 1) { |
| | | var api = 'http://223.82.109.183:2082/api/'; |
| | | var wsapi = 'ws://223.82.109.183:2082/wss/websocket'; |
| | | } else { |
| | | } else if (i == 0) {//曾 |
| | | var api = 'http://192.168.0.108:83/'; |
| | | var wsapi = 'ws://192.168.0.108:9034/websocket'; |
| | | } else if (i == 2) {//唐 |
| | | var api = 'http://192.168.0.110:83/'; |
| | | var wsapi = 'ws://192.168.0.110:9034/websocket'; |
| | | } |
| | | |
| | | // var api = 'http://192.168.0.222:83/'; |