소스 검색

数据中心 商铺收益排行添加总收益参数

hzj18279462576@163.com 1 년 전
부모
커밋
0c3a5454d5
3개의 변경된 파일489개의 추가작업 그리고 467개의 파일을 삭제
  1. 49 48
      index.html
  2. 6 12
      src/views/common/home.vue
  3. 434 407
      src/views/riderScheduling/riderScheduling.vue

+ 49 - 48
index.html

@@ -1,48 +1,49 @@
-<!DOCTYPE html>
-<html lang="zh-CN">
-<head>
-  <meta charset="UTF-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <meta http-equiv="X-UA-Compatible" content="ie=edge">
-   <!-- <script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=miP4RMG1yZoROVRSqTPghvUaRb68iGUB"></script> -->
-  <title>同城外卖3.0系统</title>
-  <% if (process.env.NODE_ENV === 'production') { %>
-    <!-- 生产环境 -->
-    <script>document.write('<script src="./config/index.js?t=' + new Date().getTime() + '"><\/script>');</script>
-    <link rel="shortcut icon" type="image/x-icon" href="./static/img/favicon.ico">
-    <script src="./wm-admin/static/config/index.js"></script>
-    <script src="./wm-admin/static/plugins/mock-1.0.0-beta3/mock-min.js"></script>
-    <script src="./wm-admin/static/plugins/echarts-3.8.5/echarts.common.min.js"></script>
-    <script src="./wm-admin/static/plugins/ueditor-1.4.3.3/ueditor.config.js"></script>
-    <script src="./wm-admin/static/plugins/ueditor-1.4.3.3/ueditor.all.min.js"></script>
-    <script src="./wm-admin/static/plugins/ueditor-1.4.3.3/lang/zh-cn/zh-cn.js"></script>
-    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75"></script>
-    <script src="https://map.qq.com/api/gljs?v=1.exp&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75"></script>
-    <script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
-		<script>
-		var _hmt = _hmt || [];
-		(function() {
-		  var hm = document.createElement("script");
-		  hm.src = "https://hm.baidu.com/hm.js?fff5cb71f815c4c8935c8d219984ee89";
-		  var s = document.getElementsByTagName("script")[0]; 
-		  s.parentNode.insertBefore(hm, s);
-		})();
-		</script>
-  <% }else { %>
-    <!-- 开发环境 -->
-    <link rel="shortcut icon" type="image/x-icon" href="./static/img/favicon.ico">
-    <script src="./static/config/index.js"></script>
-    <script src="./static/plugins/mock-1.0.0-beta3/mock-min.js"></script>
-    <script src="./static/plugins/echarts-3.8.5/echarts.common.min.js"></script>
-    <script src="./static/plugins/ueditor-1.4.3.3/ueditor.config.js"></script>
-    <script src="./static/plugins/ueditor-1.4.3.3/ueditor.all.min.js"></script>
-    <script src="./static/plugins/ueditor-1.4.3.3/lang/zh-cn/zh-cn.js"></script>
-    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75"></script>
-    <script src="https://map.qq.com/api/gljs?v=1.exp&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75"></script>
-    <script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
-  <% } %>
-</head>
-<body>
-  <div id="app"></div>
-</body>
-</html>
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <meta http-equiv="X-UA-Compatible" content="ie=edge">
+   <!-- <script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=miP4RMG1yZoROVRSqTPghvUaRb68iGUB"></script> -->
+  <title>同城外卖3.0系统</title>
+  <% if (process.env.NODE_ENV === 'production') { %>
+    <!-- 生产环境 -->
+    <script>document.write('<script src="./config/index.js?t=' + new Date().getTime() + '"><\/script>');</script>
+    <link rel="shortcut icon" type="image/x-icon" href="./static/img/favicon.ico">
+    <script src="./wm-admin/static/config/index.js"></script>
+    <script src="./wm-admin/static/plugins/mock-1.0.0-beta3/mock-min.js"></script>
+    <script src="./wm-admin/static/plugins/echarts-3.8.5/echarts.common.min.js"></script>
+    <script src="./wm-admin/static/plugins/ueditor-1.4.3.3/ueditor.config.js"></script>
+    <script src="./wm-admin/static/plugins/ueditor-1.4.3.3/ueditor.all.min.js"></script>
+    <script src="./wm-admin/static/plugins/ueditor-1.4.3.3/lang/zh-cn/zh-cn.js"></script>
+    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75"></script>
+    <script src="https://map.qq.com/api/gljs?v=1.exp&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75"></script>
+    <script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
+
+		<script>
+		var _hmt = _hmt || [];
+		(function() {
+		  var hm = document.createElement("script");
+		  hm.src = "https://hm.baidu.com/hm.js?fff5cb71f815c4c8935c8d219984ee89";
+		  var s = document.getElementsByTagName("script")[0];
+		  s.parentNode.insertBefore(hm, s);
+		})();
+		</script>
+  <% }else { %>
+    <!-- 开发环境 -->
+    <link rel="shortcut icon" type="image/x-icon" href="./static/img/favicon.ico">
+    <script src="./static/config/index.js"></script>
+    <script src="./static/plugins/mock-1.0.0-beta3/mock-min.js"></script>
+    <script src="./static/plugins/echarts-3.8.5/echarts.common.min.js"></script>
+    <script src="./static/plugins/ueditor-1.4.3.3/ueditor.config.js"></script>
+    <script src="./static/plugins/ueditor-1.4.3.3/ueditor.all.min.js"></script>
+    <script src="./static/plugins/ueditor-1.4.3.3/lang/zh-cn/zh-cn.js"></script>
+    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75"></script>
+    <script src="https://map.qq.com/api/gljs?v=1.exp&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75"></script>
+    <script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
+  <% } %>
+</head>
+<body>
+  <div id="app"></div>
+</body>
+</html>

+ 6 - 12
src/views/common/home.vue

@@ -532,10 +532,10 @@
                 :label="item.shopTypeName"
                 :value="item.id"
               >
-              </el-option> </el-select
-            >
+              </el-option>
+            </el-select>
             <el-button
-              style="margin-left:15px;"
+              style="margin: 0 20px 0 15px;"
               size="medium"
               type="primary"
               icon="document"
@@ -543,6 +543,7 @@
             >
               导出
             </el-button>
+            <span style="font-size: 18px">总收益 : {{ shopEarnings }}</span>
           </div>
           <el-table v-loading="tableDataLoading" :data="tableData3.list">
             <el-table-column prop="shopId" label="编号" width="80">
@@ -1240,6 +1241,7 @@ export default {
       platformData: {},
       spEarnings:[],// 商铺类型
       spEarningTypeId:"",
+      shopEarnings:"",// 商铺收益排行总收益
 
       exportVisible: false,
       exportTitle:"",
@@ -1548,15 +1550,6 @@ export default {
     colonel1() {
       this.tableDataLoading = true;
       this.tableDataLoading3 = true;
-      console.log(this.$http.adornParams({
-          page: this.page,
-          limit: this.limit,
-          date: this.info.stockDate,
-          dateType: this.flag,
-          shopType:this.spEarningTypeId,
-          startTime:this.hour?this.hour[0]:'',
-          endTime:this.hour?this.hour[1]:''
-        }));
 
       this.$http({
         url: this.$http.adornUrl("admin/dataCentre/selectShopCenter"),
@@ -1578,6 +1571,7 @@ export default {
           let returnData = data.data.pageUtils;
           this.tableData3 = returnData;
           this.tableData4 = data.data;
+          this.shopEarnings=data.data.moneyAmount
         }
       });
     },

+ 434 - 407
src/views/riderScheduling/riderScheduling.vue

@@ -1,407 +1,434 @@
-<template>
-	<div>
-		<div>
-			<div style="margin-bottom: 10px;display: inline-block;width: 100%;">
-				<span style="display: inline-block; width: 200px;text-align: right;">城市:</span>
-				<el-cascader style="width:30%" size="large" :options="options" ref="cascaderAddr" v-model="storeAddress"
-					:placeholder="storeAddre" @change="handleChange55" :value="storeAddre">
-				</el-cascader>&nbsp;&nbsp;&nbsp;&nbsp;
-				<el-button style = "margin-left:15px;" size = "mini" type = "primary" icon = "document" @click = "handleChange55">刷新</el-button>
-				<el-button style = "margin-left:15px;" size = "mini" type = "primary" icon = "document" @click = "cleans">重置</el-button>
-			</div>
-
-		</div>
-		<!-- <img src="../../assets/img/qishou.png" /> -->
-		<div id="container1" style="width:95%;height:80vh;margin-left: 2.5%;"></div>
-	</div>
-</template>
-
-<script>
-	import {
-		jsonp
-	} from 'vue-jsonp'
-	import {
-		provinceAndCityData,
-		regionData,
-		provinceAndCityDataPlus,
-		regionDataPlus,
-		CodeToText,
-		TextToCode
-	} from 'element-china-area-data'
-	var geocoder, map, markersArray = [];
-	export default {
-		data() {
-			return {
-				limit: 10,
-				page: 1,
-				shopName1: '',
-				shopId: '',
-				shopName: '',
-				openTime: '',
-				closeTime: '',
-				detailedAddress: '',
-				shopLng: '',
-				shopLat: '',
-				percentage1: 0, //进度条
-				img: [], //任务轮播图
-				// img: '',
-				classn: '',
-				value: [],
-				parentId: 0,
-				parentIdnum: '',
-
-				tableDataLoading: false,
-				dialogFormVisible1: false,
-				dialogFormVisible2: false,
-				dialogFormVisible3: false,
-				dialogFormVisible: false,
-				typeDatas: {},
-				typeDatas1: {},
-				titles: '添加',
-				// 地图相关
-				longitude: '', //经度
-				latitude: '', //维度
-				loadingMap: true,
-				BMap: '',
-				map: '',
-				geoc: '',
-				keyword: '',
-				showMap: false,
-				pointLngLat: '',
-				center: {
-					lng: 108.948024,
-					lat: 34.263161
-				},
-				lng: 108.948024,
-				lat: 34.263161,
-				storeAddress: [],
-				storeAddre: '请选择城市',
-				form: {
-					province: '',
-					city: '', //市
-					district: '', //区
-				},
-				dialogImageUrl: [],
-				dialogVisible: false,
-				erweimaImg: '',
-				activeName: 'first',
-				shopTypeName: '',
-				shopTypId: '',
-				titles1: '',
-				labels: [], //标签集合
-				bq: '', //输入的标签名
-				province: '',
-				city: '', //市
-				district: '', //区
-				options: regionData,
-				shopCover: '',
-				shopTypenum: [],
-				typeDatas2: [],
-				shopType: '',
-				geometries: [],
-				center:'',
-				map:'',
-				lists:[],
-				index1:0,
-        adminUrl:'',
-			}
-		},
-		methods: {
-
-			//定位获得当前位置信息
-			getMyLocation() {
-				var geolocation = new qq.maps.Geolocation("ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75", "来点小收入");
-				geolocation.getIpLocation(this.showPosition, this.showErr);
-			},
-			showPosition(position) {
-				this.setMap();
-			},
-			showErr(e) {
-				this.getMyLocation(); //定位失败再请求定位,测试使用
-			},
-			//位置信息在地图上展示
-			setMap() {
-				var center = new qq.maps.LatLng(this.latitude, this.longitude);
-				        var map = new qq.maps.Map(document.getElementById("container1"), {
-				            center: center,
-				            zoom: 20
-				        });
-				        var infoWin = new qq.maps.InfoWindow({
-				            map: map
-				        });
-				        // var latlngs = [
-				        //     new qq.maps.LatLng(39.91374, 116.37333),
-				        //     new qq.maps.LatLng(39.91347, 116.39336),
-				        //     new qq.maps.LatLng(39.90184, 116.41306)
-				        // ];
-						var latlngs = this.lists
-
-				        //根据图片大小调整 界点
-				        var anchor = new qq.maps.Point(0, 39),
-				            size = new qq.maps.Size(42, 68),
-				            origin = new qq.maps.Point(0, 0),
-				            markerIcon = new qq.maps.MarkerImage(
-				                "https://pt2.0.xianmxkj.com/file/uploadPath/2022/01/25/5fa97fc6845cff012b9f2ae755445b7c.png",
-				                // size,
-				                // origin,
-				                // anchor
-				            );
-
-				        for (var i = 0; i < latlngs.length; i++) {
-				            (function (n) {
-				                //实例标注
-				                var marker = new qq.maps.Marker({
-				                    position: latlngs[n].position,
-				                    map: map
-				                });
-				                //设置每个标注的样式
-				                marker.setIcon(markerIcon);
-				                //标注点击事件
-				                qq.maps.event.addListener(marker, 'click', function () {
-									console.log('nnnnnnnn',latlngs[n].styleId)
-									var that = this
-                  console.log("window.location.href",window.location.href)
-                //   if(window.location.href=='https://www.daweilinli.com/wm-admin/#/riderScheduling'){
-				  if(window.location.href=='https://mxys.chuanghai-tech.com/wm-admin/#/riderScheduling'){
-                    window.location.href="/wm-admin/#/userDetail?userId="+latlngs[n].styleId;
-                  }else{
-                    window.location.href="/#/userDetail?userId="+latlngs[n].styleId;
-                  }
-
-										 // hash变化时触发
-										 window.onhashchange = function(){
-										    //  console.log('current hash:', window.location.hash);
-										 }
-				                    // infoWin.open();
-				                    // infoWin.setContent('<div style="text-align:center;white-space:' +
-				                    //     'nowrap;margin:10px;">这是第 ' +
-				                    //     n + ' 个标注</div>');
-				                    // infoWin.setPosition(latlngs[n]);
-									// that.index1 = n
-									// console.log('```````````````````',that.index1)
-									// that.updates(n)
-				                });
-				            })(i);
-				        }
-
-			},
-			// 地图定位
-			select() {
-				console.log(this.detailedAddress)
-				// this.address = this.province+ this.city+this.district+this.address
-				var addr = this.province + this.city + this.district + this.address
-				let that = this
-				jsonp('https://apis.map.qq.com/ws/geocoder/v1/?address==' + addr +
-					'&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75&get_poi=1&output=jsonp', {
-						myCustomUrlParam: 'veryNice'
-					}).then(response => {
-					// handle success
-					console.log('response', response)
-					that.longitude = response.result.location.lng; // 经度
-					that.latitude = response.result.location.lat; // 纬度
-					// that.address = response.result.title
-					that.setMap()
-				}).catch(error => {
-					// handle error
-				}).then(() => {
-					// always executed
-				});
-			},
-			phoneSelect() {
-				this.select()
-			},
-			onprogress1(event, file, fileList) {
-				console.log('详情图上传进度', parseInt(event.percent))
-				this.percentage1 = parseInt(event.percent)
-			},
-			// 获取省市区
-			handleChange55(value) {
-				value = this.$refs['cascaderAddr'].currentLabels
-				this.province = value[0]
-				this.city = value[1]
-				this.district = value[2]
-				if (this.city == '市辖区') {
-					this.city = this.province
-				}
-				this.dataSelect()
-			},
-			dataSelect() {
-				this.$http({
-					url: this.$http.adornUrl('timedtask/selectAllRiderLocation'),
-					method: 'get',
-					params: this.$http.adornParams({
-						'province': this.province,
-						'city': this.city,
-						'district': this.district
-					})
-				}).then(({
-					data
-				}) => {
-					console.log(data)
-					var arr = []
-					var arr1 = []
-					if (data.data.length > 0) {
-
-						for (var i in data.data) {
-							if (data.data[i].lat && data.data[i].lng) {
-								var obj = {}
-								obj['position'] = new qq.maps.LatLng(data.data[i].lat, data.data[i].lng)
-								obj['styleId'] = data.data[i].userId
-								arr.push(new qq.maps.LatLng(data.data[i].lat, data.data[i].lng))
-								arr1.push(obj)
-
-							}
-						}
-						for (var j in data.data) {
-
-							if(data.data[j].lat && data.data[j].lng){
-								this.longitude = data.data[j].lng
-								this.latitude = data.data[j].lat
-								console.log('this.latitude',this.latitude)
-								break
-							}
-						}
-
-						this.geometries = arr
-						this.lists = arr1
-						console.log('this.lists',this.lists)
-						this.setMap();
-
-					}else{
-
-						this.longitude = '108.948024,'
-						this.latitude = '34.263161'
-						this.$message({
-							message: '暂无数据',
-							type: 'warning',
-							duration: 1500,
-							onClose: () => {
-							}
-						})
-						this.setMap();
-					}
-
-				})
-			},
-			// 重置
-			cleans(){
-				this.province = ''
-				this.city = ''
-				this.district = ''
-				this.storeAddress = []
-				this.storeAddre = '请选择城市'
-				this.dataSelect()
-			},
-			updates(index){
-				this.$router.push({
-					path: '/userDetail',
-					query: {
-						userId: this.lists[index].userId
-					}
-				})
-			}
-		},
-		created() {
-
-		},
-		mounted() {
-			let data = {
-				key: "ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75", //申请的密钥
-				output: "jsonp",
-			};
-			let url = "https://apis.map.qq.com/ws/location/v1/ip"
-			this.$jsonp(url, data).then(res => {
-				console.log('获取Ip定位成功----')
-				this.longitude = res.result.location.lng
-				this.latitude = res.result.location.lat
-
-			}).catch(err => {
-				this.$toast('获取Ip定位失败--', err.message)
-			})
-			// this.getMyLocation()
-			this.dataSelect()
-
-     this.$http({
-       url: this.$http.adornUrl('common/type/20'),
-       method: 'get',
-       data: this.$http.adornData({})
-      }).then(({
-        data
-      }) => {
-        if (data.code == 0) {
-
-          this.adminUrl = data.data.value
-          // this.xianshi2()
-        }
-      })
-
-		}
-	}
-</script>
-
-<style>
-	.imgs {
-		position: relative;
-		border-radius: 6px;
-		width: 148px;
-		height: 148px;
-		margin-right: 10px;
-		display: inline-block;
-	}
-
-	.dels {
-		position: absolute;
-		top: 0;
-		left: 0;
-		display: none;
-	}
-
-	.dels .el-icon-delete {
-		line-height: 148px;
-		padding-left: 58px;
-		font-size: 25px;
-		color: #fff;
-	}
-
-	.imgs:hover .dels {
-		width: 100%;
-		height: 100%;
-		background: #000;
-		display: block;
-		opacity: 0.5;
-	}
-
-	.bqList {
-		padding: 4px 14px;
-		margin: 4px;
-		border: 1px solid #efefef;
-		font-size: 12px;
-		color: #999;
-		border-radius: 4px;
-		margin-right: 15px;
-	}
-
-	.delss {
-		display: none;
-		position: relative;
-	}
-
-	.delss .el-icon-delete {
-		position: absolute;
-		top: 0;
-	}
-
-	.bqList:hover .delss {
-		display: initial;
-		opacity: 0.5;
-
-	}
-
-	.tj {
-		padding: 6px !important;
-		margin: 4px;
-		font-size: 12px;
-		border: 1px solid #ccc;
-		border-radius: 4px;
-	}
-</style>
+<template>
+  <div>
+    <div>
+      <div style="margin-bottom: 10px;display: inline-block;width: 100%;">
+        <span style="display: inline-block; width: 200px;text-align: right;"
+          >城市:</span
+        >
+        <el-cascader
+          style="width:30%"
+          size="large"
+          :options="options"
+          ref="cascaderAddr"
+          v-model="storeAddress"
+          :placeholder="storeAddre"
+          @change="handleChange55"
+          :value="storeAddre"
+        >
+        </el-cascader
+        >&nbsp;&nbsp;&nbsp;&nbsp;
+        <el-button
+          style="margin-left:15px;"
+          size="mini"
+          type="primary"
+          icon="document"
+          @click="handleChange55"
+          >刷新</el-button
+        >
+        <el-button
+          style="margin-left:15px;"
+          size="mini"
+          type="primary"
+          icon="document"
+          @click="cleans"
+          >重置</el-button
+        >
+      </div>
+    </div>
+    <!-- <img src="../../assets/img/qishou.png" /> -->
+    <div id="container1" style="width:95%;height:80vh;margin-left: 2.5%;"></div>
+  </div>
+</template>
+
+<script>
+import { jsonp } from "vue-jsonp";
+import {
+  provinceAndCityData,
+  regionData,
+  provinceAndCityDataPlus,
+  regionDataPlus,
+  CodeToText,
+  TextToCode
+} from "element-china-area-data";
+
+var geocoder,
+  map,
+  markersArray = [];
+export default {
+  data() {
+    return {
+      limit: 10,
+      page: 1,
+      shopName1: "",
+      shopId: "",
+      shopName: "",
+      openTime: "",
+      closeTime: "",
+      detailedAddress: "",
+      shopLng: "",
+      shopLat: "",
+      percentage1: 0, //进度条
+      img: [], //任务轮播图
+      // img: '',
+      classn: "",
+      value: [],
+      parentId: 0,
+      parentIdnum: "",
+
+      tableDataLoading: false,
+      dialogFormVisible1: false,
+      dialogFormVisible2: false,
+      dialogFormVisible3: false,
+      dialogFormVisible: false,
+      typeDatas: {},
+      typeDatas1: {},
+      titles: "添加",
+      // 地图相关
+      longitude: "", //经度
+      latitude: "", //维度
+      loadingMap: true,
+      BMap: "",
+      map: "",
+      geoc: "",
+      keyword: "",
+      showMap: false,
+      pointLngLat: "",
+      center: {
+        lng: 108.948024,
+        lat: 34.263161
+      },
+      lng: 108.948024,
+      lat: 34.263161,
+      storeAddress: [],
+      storeAddre: "请选择城市",
+      form: {
+        province: "",
+        city: "", //市
+        district: "" //区
+      },
+      dialogImageUrl: [],
+      dialogVisible: false,
+      erweimaImg: "",
+      activeName: "first",
+      shopTypeName: "",
+      shopTypId: "",
+      titles1: "",
+      labels: [], //标签集合
+      bq: "", //输入的标签名
+      province: "",
+      city: "", //市
+      district: "", //区
+      options: regionData,
+      shopCover: "",
+      shopTypenum: [],
+      typeDatas2: [],
+      shopType: "",
+      geometries: [],
+      center: "",
+      map: "",
+      lists: [],
+      index1: 0,
+      adminUrl: ""
+    };
+  },
+  methods: {
+    //定位获得当前位置信息
+    getMyLocation() {
+      var geolocation = new qq.maps.Geolocation(
+        "ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75",
+        "来点小收入"
+      );
+      geolocation.getIpLocation(this.showPosition, this.showErr);
+    },
+    showPosition(position) {
+      this.setMap();
+    },
+    showErr(e) {
+      this.getMyLocation(); //定位失败再请求定位,测试使用
+    },
+    //位置信息在地图上展示
+    setMap() {
+      var center = new qq.maps.LatLng(this.latitude, this.longitude);
+      var map = new qq.maps.Map(document.getElementById("container1"), {
+        center: center,
+        zoom: 20
+      });
+      var infoWin = new qq.maps.InfoWindow({
+        map: map
+      });
+      // var latlngs = [
+      //     new qq.maps.LatLng(39.91374, 116.37333),
+      //     new qq.maps.LatLng(39.91347, 116.39336),
+      //     new qq.maps.LatLng(39.90184, 116.41306)
+      // ];
+      var latlngs = this.lists;
+
+      //根据图片大小调整 界点
+      var anchor = new qq.maps.Point(0, 39),
+        size = new qq.maps.Size(42, 68),
+        origin = new qq.maps.Point(0, 0),
+        markerIcon = new qq.maps.MarkerImage(
+          "https://pt2.0.xianmxkj.com/file/uploadPath/2022/01/25/5fa97fc6845cff012b9f2ae755445b7c.png"
+          // size,
+          // origin,
+          // anchor
+        );
+
+      for (var i = 0; i < latlngs.length; i++) {
+        (function(n) {
+          //实例标注
+          var marker = new qq.maps.Marker({
+            position: latlngs[n].position,
+            map: map
+          });
+          //设置每个标注的样式
+          marker.setIcon(markerIcon);
+          //标注点击事件
+          qq.maps.event.addListener(marker, "click", function() {
+            console.log("nnnnnnnn", latlngs[n].styleId);
+            var that = this;
+            console.log("window.location.href", window.location.href);
+            //   if(window.location.href=='https://www.daweilinli.com/wm-admin/#/riderScheduling'){
+            if (
+              window.location.href ==
+              "https://mxys.chuanghai-tech.com/wm-admin/#/riderScheduling"
+            ) {
+              window.location.href =
+                "/wm-admin/#/userDetail?userId=" + latlngs[n].styleId;
+            } else {
+              window.location.href =
+                "/#/userDetail?userId=" + latlngs[n].styleId;
+            }
+
+            // hash变化时触发
+            window.onhashchange = function() {
+              //  console.log('current hash:', window.location.hash);
+            };
+            // infoWin.open();
+            // infoWin.setContent('<div style="text-align:center;white-space:' +
+            //     'nowrap;margin:10px;">这是第 ' +
+            //     n + ' 个标注</div>');
+            // infoWin.setPosition(latlngs[n]);
+            // that.index1 = n
+            // console.log('```````````````````',that.index1)
+            // that.updates(n)
+          });
+        })(i);
+      }
+    },
+    // 地图定位
+    select() {
+      console.log(this.detailedAddress);
+      // this.address = this.province+ this.city+this.district+this.address
+      var addr = this.province + this.city + this.district + this.address;
+      let that = this;
+      jsonp(
+        "https://apis.map.qq.com/ws/geocoder/v1/?address==" +
+          addr +
+          "&key=ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75&get_poi=1&output=jsonp",
+        {
+          myCustomUrlParam: "veryNice"
+        }
+      )
+        .then(response => {
+          // handle success
+          console.log("response", response);
+          that.longitude = response.result.location.lng; // 经度
+          that.latitude = response.result.location.lat; // 纬度
+          // that.address = response.result.title
+          that.setMap();
+        })
+        .catch(error => {
+          // handle error
+        })
+        .then(() => {
+          // always executed
+        });
+    },
+    phoneSelect() {
+      this.select();
+    },
+    onprogress1(event, file, fileList) {
+      console.log("详情图上传进度", parseInt(event.percent));
+      this.percentage1 = parseInt(event.percent);
+    },
+    // 获取省市区
+    handleChange55(value) {
+      value = this.$refs["cascaderAddr"].currentLabels;
+      this.province = value[0];
+      this.city = value[1];
+      this.district = value[2];
+      if (this.city == "市辖区") {
+        this.city = this.province;
+      }
+      this.dataSelect();
+    },
+    dataSelect() {
+      this.$http({
+        url: this.$http.adornUrl("timedtask/selectAllRiderLocation"),
+        method: "get",
+        params: this.$http.adornParams({
+          province: this.province,
+          city: this.city,
+          district: this.district
+        })
+      }).then(({ data }) => {
+        console.log(data);
+        var arr = [];
+        var arr1 = [];
+        if (data.data.length > 0) {
+          for (var i in data.data) {
+            if (data.data[i].lat && data.data[i].lng) {
+              var obj = {};
+              obj["position"] = new qq.maps.LatLng(
+                data.data[i].lat,
+                data.data[i].lng
+              );
+              obj["styleId"] = data.data[i].userId;
+              arr.push(new qq.maps.LatLng(data.data[i].lat, data.data[i].lng));
+              arr1.push(obj);
+            }
+          }
+          for (var j in data.data) {
+            if (data.data[j].lat && data.data[j].lng) {
+              this.longitude = data.data[j].lng;
+              this.latitude = data.data[j].lat;
+              console.log("this.latitude", this.latitude);
+              break;
+            }
+          }
+
+          this.geometries = arr;
+          this.lists = arr1;
+          console.log("this.lists", this.lists);
+          this.setMap();
+        } else {
+          this.longitude = "108.948024,";
+          this.latitude = "34.263161";
+          this.$message({
+            message: "暂无数据",
+            type: "warning",
+            duration: 1500,
+            onClose: () => {}
+          });
+          this.setMap();
+        }
+      });
+    },
+    // 重置
+    cleans() {
+      this.province = "";
+      this.city = "";
+      this.district = "";
+      this.storeAddress = [];
+      this.storeAddre = "请选择城市";
+      this.dataSelect();
+    },
+    updates(index) {
+      this.$router.push({
+        path: "/userDetail",
+        query: {
+          userId: this.lists[index].userId
+        }
+      });
+    }
+  },
+  created() {},
+  mounted() {
+    let data = {
+      key: "ZBABZ-ZWECU-UQTVV-4LYDR-COK3F-5SF75", //申请的密钥
+      output: "jsonp"
+    };
+    let url = "https://apis.map.qq.com/ws/location/v1/ip";
+    this.$jsonp(url, data)
+      .then(res => {
+        console.log(res.result.location, "获取Ip定位成功----");
+        this.longitude = res.result.location.lng;
+        this.latitude = res.result.location.lat;
+      })
+      .catch(err => {
+        this.$toast("获取Ip定位失败--", err.message);
+      });
+
+    // this.getMyLocation()
+    this.dataSelect();
+
+    this.$http({
+      url: this.$http.adornUrl("common/type/20"),
+      method: "get",
+      data: this.$http.adornData({})
+    }).then(({ data }) => {
+      if (data.code == 0) {
+        this.adminUrl = data.data.value;
+        // this.xianshi2()
+      }
+    });
+  }
+};
+</script>
+
+<style>
+.imgs {
+  position: relative;
+  border-radius: 6px;
+  width: 148px;
+  height: 148px;
+  margin-right: 10px;
+  display: inline-block;
+}
+
+.dels {
+  position: absolute;
+  top: 0;
+  left: 0;
+  display: none;
+}
+
+.dels .el-icon-delete {
+  line-height: 148px;
+  padding-left: 58px;
+  font-size: 25px;
+  color: #fff;
+}
+
+.imgs:hover .dels {
+  width: 100%;
+  height: 100%;
+  background: #000;
+  display: block;
+  opacity: 0.5;
+}
+
+.bqList {
+  padding: 4px 14px;
+  margin: 4px;
+  border: 1px solid #efefef;
+  font-size: 12px;
+  color: #999;
+  border-radius: 4px;
+  margin-right: 15px;
+}
+
+.delss {
+  display: none;
+  position: relative;
+}
+
+.delss .el-icon-delete {
+  position: absolute;
+  top: 0;
+}
+
+.bqList:hover .delss {
+  display: initial;
+  opacity: 0.5;
+}
+
+.tj {
+  padding: 6px !important;
+  margin: 4px;
+  font-size: 12px;
+  border: 1px solid #ccc;
+  border-radius: 4px;
+}
+</style>