Commit 2ed00cc9e6f3d6d05c7e1cefb814bb7613f59982
1 parent
99634e99
首页 banner 更换icon 文字居中
地图 支持收缩 放大 停车服务 bug修复
Showing
7 changed files
with
59 additions
and
3 deletions
src/api/park.js
0 → 100644
src/assets/park/phone_ewm.png
0 → 100644
22.1 KB
src/views/about.vue
| ... | ... | @@ -106,6 +106,13 @@ | 
| 106 | 106 | map.addOverlay(marker); //在地图中添加marker | 
| 107 | 107 | |
| 108 | 108 | map.centerAndZoom(point, 15); | 
| 109 | + map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放 | |
| 110 | + var top_left_control = new BMap.ScaleControl({anchor: BMAP_ANCHOR_TOP_LEFT});// 左上角,添加比例尺 | |
| 111 | + var top_left_navigation = new BMap.NavigationControl(); //左上角,添加默认缩放平移控件 | |
| 112 | + var top_right_navigation = new BMap.NavigationControl({anchor: BMAP_ANCHOR_TOP_RIGHT, type: BMAP_NAVIGATION_CONTROL_SMALL}); //右上角,仅包含平移和缩放按钮 | |
| 113 | + map.addControl(top_left_control); | |
| 114 | + map.addControl(top_left_navigation); | |
| 115 | + map.addControl(top_right_navigation); | |
| 109 | 116 | var infoWindow = new BMap.InfoWindow(sContent); // 创建信息窗口对象 | 
| 110 | 117 | map.openInfoWindow(infoWindow, point); //开启信息窗口 | 
| 111 | 118 | } | ... | ... | 
src/views/center.vue
src/views/home.vue
| ... | ... | @@ -78,6 +78,7 @@ | 
| 78 | 78 | </template> | 
| 79 | 79 | |
| 80 | 80 | <script> | 
| 81 | + import {queryParkLotInfoByOrgId} from '@/api/park'; | |
| 81 | 82 | export default { | 
| 82 | 83 | name: 'home', | 
| 83 | 84 | mounted() { | 
| ... | ... | @@ -92,6 +93,24 @@ | 
| 92 | 93 | map.addControl(top_left_control); | 
| 93 | 94 | map.addControl(top_left_navigation); | 
| 94 | 95 | map.addControl(top_right_navigation); | 
| 96 | + this.showParking(); | |
| 97 | + }, | |
| 98 | + methods:{ | |
| 99 | + showParking:function () { | |
| 100 | + let req={ | |
| 101 | + sysCode:'1001', | |
| 102 | + orgId:'1003' | |
| 103 | + } | |
| 104 | + queryParkLotInfoByOrgId(req).then(response =>{ | |
| 105 | + if(response.code=='8888'){ | |
| 106 | + debugger | |
| 107 | + this.orgs = response.data; | |
| 108 | + }else{ | |
| 109 | + console.log(response); | |
| 110 | + } | |
| 111 | + | |
| 112 | + }); | |
| 113 | + } | |
| 95 | 114 | } | 
| 96 | 115 | } | 
| 97 | 116 | </script> | ... | ... | 
src/views/payback/index.vue
| ... | ... | @@ -120,8 +120,9 @@ | 
| 120 | 120 | <!--<img style="display: block;width: 100%" :src="url" >--> | 
| 121 | 121 | |
| 122 | 122 | <!--</div>--> | 
| 123 | - <div> | |
| 123 | + <div style="position: relative;height: 150px" > | |
| 124 | 124 | <div id="qrcode"></div> | 
| 125 | + <div class="qecode_Bg"></div> | |
| 125 | 126 | </div> | 
| 126 | 127 | <span slot="footer" class="dialog-footer"> | 
| 127 | 128 | <el-button type="primary" @click="onBack">确 定</el-button> | 
| ... | ... | @@ -328,6 +329,22 @@ | 
| 328 | 329 | background-color: #FFF; | 
| 329 | 330 | padding: 15px; | 
| 330 | 331 | } | 
| 332 | + #qrcode{ | |
| 333 | + position: absolute; | |
| 334 | + top: 30px; | |
| 335 | + left: 50px; | |
| 336 | + height: 100px; | |
| 337 | + width: 100px; | |
| 338 | + } | |
| 339 | + .qecode_Bg{ | |
| 340 | + height: 220px; | |
| 341 | + width: 139px; | |
| 342 | + background: url("../../assets/park/phone_ewm.png") no-repeat; | |
| 343 | + background-size: 100% 100%; | |
| 344 | + position: absolute; | |
| 345 | + top: -22px; | |
| 346 | + left: 180px; | |
| 347 | + } | |
| 331 | 348 | |
| 332 | 349 | </style> | 
| 333 | 350 | ... | ... | 
src/views/service.vue
| ... | ... | @@ -45,7 +45,7 @@ | 
| 45 | 45 | <el-menu-item index="/service/myevaluate">我的评价</el-menu-item> | 
| 46 | 46 | </el-submenu> | 
| 47 | 47 | <el-menu-item @click="logout"> | 
| 48 | - <i class="el-icon-finished"></i> | |
| 48 | + <i class="el-icon-switch-button"></i> | |
| 49 | 49 | <span slot="title">退出服务</span> | 
| 50 | 50 | </el-menu-item> | 
| 51 | 51 | </el-menu> | ... | ... | 
 
