Showing
3 changed files
with
43 additions
and
94 deletions
| ... | @@ -20,12 +20,12 @@ output=map | ... | @@ -20,12 +20,12 @@ output=map |
| 20 | npm run build | 20 | npm run build |
| 21 | 21 | ||
| 22 | # 移除Git服务器目录下项目文件夹 | 22 | # 移除Git服务器目录下项目文件夹 |
| 23 | -rm -r $path"/${output:?}/images" | 23 | +# rm -r $path"/${output:?}/images" |
| 24 | rm -r $path"/${output:?}/index.html" | 24 | rm -r $path"/${output:?}/index.html" |
| 25 | rm -r $path"/${output:?}/static" | 25 | rm -r $path"/${output:?}/static" |
| 26 | 26 | ||
| 27 | # 把本地编译输出文件夹添加到服务器目录 | 27 | # 把本地编译输出文件夹添加到服务器目录 |
| 28 | -mv "${output:?}/images" $path"/${output:?}" | 28 | +# mv "${output:?}/images" $path"/${output:?}" |
| 29 | mv "${output:?}/index.html" $path"/${output:?}" | 29 | mv "${output:?}/index.html" $path"/${output:?}" |
| 30 | mv "${output:?}/static" $path"/${output:?}" | 30 | mv "${output:?}/static" $path"/${output:?}" |
| 31 | 31 | ||
| ... | @@ -33,7 +33,7 @@ mv "${output:?}/static" $path"/${output:?}" | ... | @@ -33,7 +33,7 @@ mv "${output:?}/static" $path"/${output:?}" |
| 33 | cd $path"/${output:?}" | 33 | cd $path"/${output:?}" |
| 34 | git pull | 34 | git pull |
| 35 | git add -A | 35 | git add -A |
| 36 | -git commit -m '前端网页更新' | 36 | +git commit -m '前端地图更新' |
| 37 | git push | 37 | git push |
| 38 | 38 | ||
| 39 | # 更新SSH服务器上文件 | 39 | # 更新SSH服务器上文件 | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2023-07-10 16:14:10 | 2 | * @Date: 2023-07-10 16:14:10 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-07-19 14:35:12 | 4 | + * @LastEditTime: 2023-07-24 14:42:33 |
| 5 | * @FilePath: /map-demo/src/common/members.js | 5 | * @FilePath: /map-demo/src/common/members.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -26,39 +26,27 @@ const testInfo = { | ... | @@ -26,39 +26,27 @@ const testInfo = { |
| 26 | }, | 26 | }, |
| 27 | { | 27 | { |
| 28 | id: '0', | 28 | id: '0', |
| 29 | - name: '潘苗苗', | 29 | + name: '陆丽君(惟君)', |
| 30 | - contact: '1331234567', | ||
| 31 | - group: '弘法部接待组', | ||
| 32 | - }, | ||
| 33 | - { | ||
| 34 | - id: '0', | ||
| 35 | - name: '王大发(慧东)', | ||
| 36 | - contact: '1331234567', | ||
| 37 | - group: '拈花堂组', | ||
| 38 | - }, | ||
| 39 | - { | ||
| 40 | - id: '0', | ||
| 41 | - name: '潘苗苗', | ||
| 42 | contact: '1331234567', | 30 | contact: '1331234567', |
| 43 | - group: '弘法部接待组', | 31 | + group: '后厨组', |
| 44 | }, | 32 | }, |
| 45 | { | 33 | { |
| 46 | id: '0', | 34 | id: '0', |
| 47 | - name: '王大发(慧东)', | 35 | + name: '刘兴兴(惟兴)', |
| 48 | contact: '1331234567', | 36 | contact: '1331234567', |
| 49 | - group: '拈花堂组', | 37 | + group: '后厨组', |
| 50 | }, | 38 | }, |
| 51 | { | 39 | { |
| 52 | id: '0', | 40 | id: '0', |
| 53 | - name: '潘苗苗', | 41 | + name: '杜铁军(心吾)', |
| 54 | contact: '1331234567', | 42 | contact: '1331234567', |
| 55 | - group: '弘法部接待组', | 43 | + group: '后厨组', |
| 56 | }, | 44 | }, |
| 57 | { | 45 | { |
| 58 | id: '0', | 46 | id: '0', |
| 59 | - name: '王大发(慧东)', | 47 | + name: '徐国珍(心珍)', |
| 60 | contact: '1331234567', | 48 | contact: '1331234567', |
| 61 | - group: '拈花堂组', | 49 | + group: '后厨组', |
| 62 | }, | 50 | }, |
| 63 | { | 51 | { |
| 64 | id: '0', | 52 | id: '0', |
| ... | @@ -76,63 +64,15 @@ const testInfo = { | ... | @@ -76,63 +64,15 @@ const testInfo = { |
| 76 | details: [ | 64 | details: [ |
| 77 | { | 65 | { |
| 78 | id: '0', | 66 | id: '0', |
| 79 | - name: '潘苗苗', | 67 | + name: '俞昌敏', |
| 80 | contact: '1331234567', | 68 | contact: '1331234567', |
| 81 | - group: '弘法部接待组', | 69 | + group: '安保组', |
| 82 | }, | 70 | }, |
| 83 | { | 71 | { |
| 84 | - id: '0', | 72 | + id: '1', |
| 85 | - name: '潘苗苗', | 73 | + name: '殷国平', |
| 86 | contact: '1331234567', | 74 | contact: '1331234567', |
| 87 | - group: '弘法部接待组', | 75 | + group: '安保组', |
| 88 | - }, | ||
| 89 | - { | ||
| 90 | - id: '0', | ||
| 91 | - name: '潘苗苗', | ||
| 92 | - contact: '1331234567', | ||
| 93 | - group: '弘法部接待组', | ||
| 94 | - }, | ||
| 95 | - { | ||
| 96 | - id: '0', | ||
| 97 | - name: '潘苗苗', | ||
| 98 | - contact: '1331234567', | ||
| 99 | - group: '弘法部接待组', | ||
| 100 | - }, | ||
| 101 | - { | ||
| 102 | - id: '0', | ||
| 103 | - name: '潘苗苗', | ||
| 104 | - contact: '1331234567', | ||
| 105 | - group: '弘法部接待组', | ||
| 106 | - }, | ||
| 107 | - { | ||
| 108 | - id: '0', | ||
| 109 | - name: '潘苗苗', | ||
| 110 | - contact: '1331234567', | ||
| 111 | - group: '弘法部接待组', | ||
| 112 | - }, | ||
| 113 | - { | ||
| 114 | - id: '0', | ||
| 115 | - name: '潘苗苗', | ||
| 116 | - contact: '1331234567', | ||
| 117 | - group: '弘法部接待组', | ||
| 118 | - }, | ||
| 119 | - { | ||
| 120 | - id: '0', | ||
| 121 | - name: '潘苗苗', | ||
| 122 | - contact: '1331234567', | ||
| 123 | - group: '弘法部接待组', | ||
| 124 | - }, | ||
| 125 | - { | ||
| 126 | - id: '0', | ||
| 127 | - name: '潘苗苗', | ||
| 128 | - contact: '1331234567', | ||
| 129 | - group: '弘法部接待组', | ||
| 130 | - }, | ||
| 131 | - { | ||
| 132 | - id: '0', | ||
| 133 | - name: '潘苗苗', | ||
| 134 | - contact: '1331234567', | ||
| 135 | - group: '弘法部接待组', | ||
| 136 | }, | 76 | }, |
| 137 | ], | 77 | ], |
| 138 | window_type: 'member', | 78 | window_type: 'member', |
| ... | @@ -144,15 +84,15 @@ const testInfo = { | ... | @@ -144,15 +84,15 @@ const testInfo = { |
| 144 | details: [ | 84 | details: [ |
| 145 | { | 85 | { |
| 146 | id: '0', | 86 | id: '0', |
| 147 | - name: '潘苗苗', | 87 | + name: '刘莉蓓', |
| 148 | contact: '1331234567', | 88 | contact: '1331234567', |
| 149 | - group: '弘法部接待组', | 89 | + group: '维修组', |
| 150 | }, | 90 | }, |
| 151 | { | 91 | { |
| 152 | id: '0', | 92 | id: '0', |
| 153 | - name: '潘苗苗', | 93 | + name: '顾军芳', |
| 154 | contact: '1331234567', | 94 | contact: '1331234567', |
| 155 | - group: '弘法部接待组', | 95 | + group: '维修组', |
| 156 | }, | 96 | }, |
| 157 | ], | 97 | ], |
| 158 | window_type: 'member', | 98 | window_type: 'member', | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-05-19 14:54:27 | 2 | * @Date: 2023-05-19 14:54:27 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-07-21 14:32:47 | 4 | + * @LastEditTime: 2023-07-24 15:06:47 |
| 5 | * @FilePath: /map-demo/src/views/inner.vue | 5 | * @FilePath: /map-demo/src/views/inner.vue |
| 6 | * @Description: 地图主体页面 | 6 | * @Description: 地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -518,19 +518,28 @@ export default { | ... | @@ -518,19 +518,28 @@ export default { |
| 518 | if (!this.current_lng || !this.current_lat) { | 518 | if (!this.current_lng || !this.current_lat) { |
| 519 | this.getLocation() | 519 | this.getLocation() |
| 520 | } else { | 520 | } else { |
| 521 | - // 使用纠正偏移后的地址,打一个定位标记 | ||
| 522 | - var marker = new AMap.Marker({ | ||
| 523 | - position: new AMap.LngLat(this.current_lng, this.current_lat), // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] | ||
| 524 | - }); | ||
| 525 | - this.map.add(marker); | ||
| 526 | - // 定位到地图中心-西园寺 | ||
| 527 | - // this.map.setCenter([120.587334, 31.314823]); | ||
| 528 | - this.map.setZoomAndCenter(this.zoom, [this.current_lng, this.current_lat]); | ||
| 529 | // 判断是否在范围内 | 521 | // 判断是否在范围内 |
| 530 | - // if (!this.isPointInRing()) { | 522 | + if (!this.isPointInRing()) { |
| 531 | - // this.dialog_show = true; | 523 | + this.dialog_show = true; |
| 532 | - // this.dialog_text = '您不在景区范围内'; | 524 | + this.dialog_text = '您不在景区范围内'; |
| 533 | - // } | 525 | + } else { |
| 526 | + // 使用纠正偏移后的地址,打一个定位标记 | ||
| 527 | + var marker = new AMap.Marker({ | ||
| 528 | + icon: new AMap.Icon({ | ||
| 529 | + image: 'https://cdn.ipadbiz.cn/xys/map/%E5%AE%9A.png', | ||
| 530 | + size: new AMap.Size(40, 40), | ||
| 531 | + // 图标所用图片大小 | ||
| 532 | + imageSize: new AMap.Size(40, 40), | ||
| 533 | + // 图标取图偏移量 | ||
| 534 | + imageOffset: new AMap.Pixel(0, 0) | ||
| 535 | + }), | ||
| 536 | + position: new AMap.LngLat(this.current_lng, this.current_lat), // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9] | ||
| 537 | + offset: new AMap.Pixel(-20, -20) | ||
| 538 | + }); | ||
| 539 | + this.map.add(marker); | ||
| 540 | + // 定位到地图中心-西园寺 | ||
| 541 | + this.map.setZoomAndCenter(this.zoom, [this.current_lng, this.current_lat]); | ||
| 542 | + } | ||
| 534 | } | 543 | } |
| 535 | }, | 544 | }, |
| 536 | getLocation() { // 获取经纬度 | 545 | getLocation() { // 获取经纬度 | ... | ... |
-
Please register or login to post a comment