north 8 gadi atpakaļ
vecāks
revīzija
bba224382d

+ 22 - 22
www/vue/node_modules/alphanum-sort/LICENSE

@@ -1,22 +1,22 @@
-Copyright (c) Bogdan Chadkin <trysound@yandex.ru>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
+Copyright (c) Bogdan Chadkin <trysound@yandex.ru>
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.

+ 45 - 45
www/vue/node_modules/alphanum-sort/README.md

@@ -1,45 +1,45 @@
-# alphanum-sort
-[![Build Status](https://travis-ci.org/TrySound/alphanum-sort.svg?branch=master)](https://travis-ci.org/TrySound/alphanum-sort)
-
-> Alphanumeric sorting algorithm
-
-## Install
-
-With [npm](https://npmjs.org/package/alphanum-sort) do:
-
-```
-npm i alphanum-sort -S
-```
-
-## Example
-
-```js
-var sort = require('alphanum-sort');
-
-var result = sort(['item20', 'item19', 'item1', 'item10', 'item2']);
-// ['item1', 'item2', 'item10', 'item19', 'item20']
-```
-
-## API
-
-### alphanumSort(array, options)
-
-#### options
-
-##### insensitive
-
-Type: `Boolean`
-Default: `false`
-
-Compares items case insensitively
-
-##### sign
-
-Type: `Boolean`
-Default: `false`
-
-Allows `+` and `-` characters before numbers
-
-## License
-
-MIT © [Bogdan Chadkin](https://github.com/trysound)
+# alphanum-sort
+[![Build Status](https://travis-ci.org/TrySound/alphanum-sort.svg?branch=master)](https://travis-ci.org/TrySound/alphanum-sort)
+
+> Alphanumeric sorting algorithm
+
+## Install
+
+With [npm](https://npmjs.org/package/alphanum-sort) do:
+
+```
+npm i alphanum-sort -S
+```
+
+## Example
+
+```js
+var sort = require('alphanum-sort');
+
+var result = sort(['item20', 'item19', 'item1', 'item10', 'item2']);
+// ['item1', 'item2', 'item10', 'item19', 'item20']
+```
+
+## API
+
+### alphanumSort(array, options)
+
+#### options
+
+##### insensitive
+
+Type: `Boolean`
+Default: `false`
+
+Compares items case insensitively
+
+##### sign
+
+Type: `Boolean`
+Default: `false`
+
+Allows `+` and `-` characters before numbers
+
+## License
+
+MIT © [Bogdan Chadkin](https://github.com/trysound)

+ 183 - 183
www/vue/node_modules/alphanum-sort/lib/compare.js

@@ -1,183 +1,183 @@
-var zero = '0'.charCodeAt(0);
-var plus = '+'.charCodeAt(0);
-var minus = '-'.charCodeAt(0);
-
-function isWhitespace(code) {
-	return code <= 32;
-}
-
-function isDigit(code) {
-	return 48 <= code && code <= 57;
-}
-
-function isSign(code) {
-	return code === minus || code === plus;
-}
-
-module.exports = function (opts, a, b) {
-	var checkSign = opts.sign;
-	var ia = 0;
-	var ib = 0;
-	var ma = a.length;
-	var mb = b.length;
-	var ca, cb; // character code
-	var za, zb; // leading zero count
-	var na, nb; // number length
-	var sa, sb; // number sign
-	var ta, tb; // temporary
-	var bias;
-
-	while (ia < ma && ib < mb) {
-		ca = a.charCodeAt(ia);
-		cb = b.charCodeAt(ib);
-		za = zb = 0;
-		na = nb = 0;
-		sa = sb = true;
-		bias = 0;
-
-		// skip over leading spaces
-		while (isWhitespace(ca)) {
-			ia += 1;
-			ca = a.charCodeAt(ia);
-		}
-		while (isWhitespace(cb)) {
-			ib += 1;
-			cb = b.charCodeAt(ib);
-		}
-
-		// skip and save sign
-		if (checkSign) {
-			ta = a.charCodeAt(ia + 1);
-			if (isSign(ca) && isDigit(ta)) {
-				if (ca === minus) {
-					sa = false;
-				}
-				ia += 1;
-				ca = ta;
-			}
-			tb = b.charCodeAt(ib + 1);
-			if (isSign(cb) && isDigit(tb)) {
-				if (cb === minus) {
-					sb = false;
-				}
-				ib += 1;
-				cb = tb;
-			}
-		}
-
-		// compare digits with other symbols
-		if (isDigit(ca) && !isDigit(cb)) {
-			return -1;
-		}
-		if (!isDigit(ca) && isDigit(cb)) {
-			return 1;
-		}
-
-		// compare negative and positive
-		if (!sa && sb) {
-			return -1;
-		}
-		if (sa && !sb) {
-			return 1;
-		}
-
-		// count leading zeros
-		while (ca === zero) {
-			za += 1;
-			ia += 1;
-			ca = a.charCodeAt(ia);
-		}
-		while (cb === zero) {
-			zb += 1;
-			ib += 1;
-			cb = b.charCodeAt(ib);
-		}
-
-		// count numbers
-		while (isDigit(ca) || isDigit(cb)) {
-			if (isDigit(ca) && isDigit(cb) && bias === 0) {
-				if (sa) {
-					if (ca < cb) {
-						bias = -1;
-					} else if (ca > cb) {
-						bias = 1;
-					}
-				} else {
-					if (ca > cb) {
-						bias = -1;
-					} else if (ca < cb) {
-						bias = 1;
-					}
-				}
-			}
-			if (isDigit(ca)) {
-				ia += 1;
-				na += 1;
-				ca = a.charCodeAt(ia);
-			}
-			if (isDigit(cb)) {
-				ib += 1;
-				nb += 1;
-				cb = b.charCodeAt(ib);
-			}
-		}
-
-		// compare number length
-		if (sa) {
-			if (na < nb) {
-				return -1;
-			}
-			if (na > nb) {
-				return 1;
-			}
-		} else {
-			if (na > nb) {
-				return -1;
-			}
-			if (na < nb) {
-				return 1;
-			}
-		}
-
-		// compare numbers
-		if (bias) {
-			return bias;
-		}
-
-		// compare leading zeros
-		if (sa) {
-			if (za > zb) {
-				return -1;
-			}
-			if (za < zb) {
-				return 1;
-			}
-		} else {
-			if (za < zb) {
-				return -1;
-			}
-			if (za > zb) {
-				return 1;
-			}
-		}
-
-		// compare ascii codes
-		if (ca < cb) {
-			return -1;
-		}
-		if (ca > cb) {
-			return 1;
-		}
-
-		ia += 1;
-		ib += 1;
-	}
-
-	// compare length
-	if (ma < mb) {
-		return -1;
-	}
-	if (ma > mb) {
-		return 1;
-	}
-};
+var zero = '0'.charCodeAt(0);
+var plus = '+'.charCodeAt(0);
+var minus = '-'.charCodeAt(0);
+
+function isWhitespace(code) {
+	return code <= 32;
+}
+
+function isDigit(code) {
+	return 48 <= code && code <= 57;
+}
+
+function isSign(code) {
+	return code === minus || code === plus;
+}
+
+module.exports = function (opts, a, b) {
+	var checkSign = opts.sign;
+	var ia = 0;
+	var ib = 0;
+	var ma = a.length;
+	var mb = b.length;
+	var ca, cb; // character code
+	var za, zb; // leading zero count
+	var na, nb; // number length
+	var sa, sb; // number sign
+	var ta, tb; // temporary
+	var bias;
+
+	while (ia < ma && ib < mb) {
+		ca = a.charCodeAt(ia);
+		cb = b.charCodeAt(ib);
+		za = zb = 0;
+		na = nb = 0;
+		sa = sb = true;
+		bias = 0;
+
+		// skip over leading spaces
+		while (isWhitespace(ca)) {
+			ia += 1;
+			ca = a.charCodeAt(ia);
+		}
+		while (isWhitespace(cb)) {
+			ib += 1;
+			cb = b.charCodeAt(ib);
+		}
+
+		// skip and save sign
+		if (checkSign) {
+			ta = a.charCodeAt(ia + 1);
+			if (isSign(ca) && isDigit(ta)) {
+				if (ca === minus) {
+					sa = false;
+				}
+				ia += 1;
+				ca = ta;
+			}
+			tb = b.charCodeAt(ib + 1);
+			if (isSign(cb) && isDigit(tb)) {
+				if (cb === minus) {
+					sb = false;
+				}
+				ib += 1;
+				cb = tb;
+			}
+		}
+
+		// compare digits with other symbols
+		if (isDigit(ca) && !isDigit(cb)) {
+			return -1;
+		}
+		if (!isDigit(ca) && isDigit(cb)) {
+			return 1;
+		}
+
+		// compare negative and positive
+		if (!sa && sb) {
+			return -1;
+		}
+		if (sa && !sb) {
+			return 1;
+		}
+
+		// count leading zeros
+		while (ca === zero) {
+			za += 1;
+			ia += 1;
+			ca = a.charCodeAt(ia);
+		}
+		while (cb === zero) {
+			zb += 1;
+			ib += 1;
+			cb = b.charCodeAt(ib);
+		}
+
+		// count numbers
+		while (isDigit(ca) || isDigit(cb)) {
+			if (isDigit(ca) && isDigit(cb) && bias === 0) {
+				if (sa) {
+					if (ca < cb) {
+						bias = -1;
+					} else if (ca > cb) {
+						bias = 1;
+					}
+				} else {
+					if (ca > cb) {
+						bias = -1;
+					} else if (ca < cb) {
+						bias = 1;
+					}
+				}
+			}
+			if (isDigit(ca)) {
+				ia += 1;
+				na += 1;
+				ca = a.charCodeAt(ia);
+			}
+			if (isDigit(cb)) {
+				ib += 1;
+				nb += 1;
+				cb = b.charCodeAt(ib);
+			}
+		}
+
+		// compare number length
+		if (sa) {
+			if (na < nb) {
+				return -1;
+			}
+			if (na > nb) {
+				return 1;
+			}
+		} else {
+			if (na > nb) {
+				return -1;
+			}
+			if (na < nb) {
+				return 1;
+			}
+		}
+
+		// compare numbers
+		if (bias) {
+			return bias;
+		}
+
+		// compare leading zeros
+		if (sa) {
+			if (za > zb) {
+				return -1;
+			}
+			if (za < zb) {
+				return 1;
+			}
+		} else {
+			if (za < zb) {
+				return -1;
+			}
+			if (za > zb) {
+				return 1;
+			}
+		}
+
+		// compare ascii codes
+		if (ca < cb) {
+			return -1;
+		}
+		if (ca > cb) {
+			return 1;
+		}
+
+		ia += 1;
+		ib += 1;
+	}
+
+	// compare length
+	if (ma < mb) {
+		return -1;
+	}
+	if (ma > mb) {
+		return 1;
+	}
+};

+ 90 - 90
www/vue/node_modules/autosize/changelog.md

@@ -1,91 +1,91 @@
-## Changelog
-
-##### v.3.0.21 - 2016-05-19
-* Fixed bug with overflow detection which degraded performance of textareas that exceed their max-width. Fixes #333.
-
-##### v.3.0.20 - 2016-12-04
-* Fixed minor bug where the `resized` event would not fire under specific conditions when changing the overflow.
-
-##### v.3.0.19 - 2016-11-23
-* Bubble dispatched events. Merged #319.
-
-##### v.3.0.18 - 2016-10-26
-* Fixed Firefox issue where calling dispatchEvent on a detached element throws an error.  Fixes #317.
-
-##### v.3.0.17 - 2016-7-25
-* Fixed Chromium issue where getComputedStyle pixel value did not exactly match the style pixel value.  Fixes #306.
-* Removed undocumented argument, minor refactoring, more comments.
-
-##### v.3.0.16 - 2016-7-13
-* Fixed issue with overflowing parent elements. Fixes #298.
-
-##### v.3.0.15 - 2016-1-26
-* Used newer Event constructor, when available. Fixes #280.
-
-##### v.3.0.14 - 2015-11-11
-* Fixed memory leak on destroy. Merged #271, fixes #270.
-* Fixed bug in old versions of Firefox (1-5), fixes #246.
-
-##### v.3.0.13 - 2015-09-26
-* Fixed scroll-bar jumpiness in iOS. Merged #261, fixes #207.
-* Fixed reflowing of initial text in Chrome and Safari.
-
-##### v.3.0.12 - 2015-09-14
-* Merged changes were discarded when building new dist files.  Merged #255, Fixes #257 for real this time.
-
-##### v.3.0.11 - 2015-09-14
-* Fixed regression from 3.0.10 that caused an error with ES5 browsers.  Merged #255, Fixes #257.
-
-##### v.3.0.10 - 2015-09-10
-* Removed data attribute as a way of tracking which elements autosize has been assigned to. fixes #254, fixes #200.
-
-##### v.3.0.9 - 2015-09-02
-* Fixed issue with assigning autosize to detached nodes. Merged #253, Fixes #234.
-
-##### v.3.0.8 - 2015-06-29
-* Fixed the `autosize:resized` event not being triggered when the overflow changes. Fixes #244.
-
-##### v.3.0.7 - 2015-06-29
-* Fixed jumpy behavior in Windows 8.1 mobile. Fixes #239.
-
-##### v.3.0.6 - 2015-05-19
-* Renamed 'dest' folder to 'dist' to follow common conventions.
-
-##### v.3.0.5 - 2015-05-18
-* Do nothing in Node.js environment.
-
-##### v.3.0.4 - 2015-05-05
-* Added options object for indicating if the script should set the overflowX and overflowY.  The default behavior lets the script control the overflows, which will normalize the appearance between browsers.  Fixes #220.
-
-##### v.3.0.3 - 2015-04-23
-* Avoided adjusting the height for hidden textarea elements.  Fixes #155.
-
-##### v.3.0.2 - 2015-04-23
-* Reworked to respect max-height of any unit-type.  Fixes #191.
-
-##### v.3.0.1 - 2015-04-23
-* Fixed the destroy event so that it removes its own event handler. Fixes #218.
-
-##### v.3.0.0 - 2015-04-15
-* Added new methods for updating and destroying:
-
-	* autosize.update(elements)
-	* autosize.destroy(elements)
-
-* Renamed custom events as to not use jQuery's custom events namespace:
-
-	* autosize.resized renamed to autosize:resized
-	* autosize.update renamed to autosize:update
-	* autosize.destroy renamed to autosize:destroy
-
-##### v.2.0.1 - 2015-04-15
-* Version bump for NPM publishing purposes
-
-##### v.2.0.0 - 2015-02-25
-
-* Smaller, simplier code-base
-* New API.  Example usage: `autosize(document.querySelectorAll(textarea));`
-* Dropped jQuery dependency
-* Dropped IE7-IE8 support
-* Dropped optional parameters
+## Changelog
+
+##### v.3.0.21 - 2016-05-19
+* Fixed bug with overflow detection which degraded performance of textareas that exceed their max-width. Fixes #333.
+
+##### v.3.0.20 - 2016-12-04
+* Fixed minor bug where the `resized` event would not fire under specific conditions when changing the overflow.
+
+##### v.3.0.19 - 2016-11-23
+* Bubble dispatched events. Merged #319.
+
+##### v.3.0.18 - 2016-10-26
+* Fixed Firefox issue where calling dispatchEvent on a detached element throws an error.  Fixes #317.
+
+##### v.3.0.17 - 2016-7-25
+* Fixed Chromium issue where getComputedStyle pixel value did not exactly match the style pixel value.  Fixes #306.
+* Removed undocumented argument, minor refactoring, more comments.
+
+##### v.3.0.16 - 2016-7-13
+* Fixed issue with overflowing parent elements. Fixes #298.
+
+##### v.3.0.15 - 2016-1-26
+* Used newer Event constructor, when available. Fixes #280.
+
+##### v.3.0.14 - 2015-11-11
+* Fixed memory leak on destroy. Merged #271, fixes #270.
+* Fixed bug in old versions of Firefox (1-5), fixes #246.
+
+##### v.3.0.13 - 2015-09-26
+* Fixed scroll-bar jumpiness in iOS. Merged #261, fixes #207.
+* Fixed reflowing of initial text in Chrome and Safari.
+
+##### v.3.0.12 - 2015-09-14
+* Merged changes were discarded when building new dist files.  Merged #255, Fixes #257 for real this time.
+
+##### v.3.0.11 - 2015-09-14
+* Fixed regression from 3.0.10 that caused an error with ES5 browsers.  Merged #255, Fixes #257.
+
+##### v.3.0.10 - 2015-09-10
+* Removed data attribute as a way of tracking which elements autosize has been assigned to. fixes #254, fixes #200.
+
+##### v.3.0.9 - 2015-09-02
+* Fixed issue with assigning autosize to detached nodes. Merged #253, Fixes #234.
+
+##### v.3.0.8 - 2015-06-29
+* Fixed the `autosize:resized` event not being triggered when the overflow changes. Fixes #244.
+
+##### v.3.0.7 - 2015-06-29
+* Fixed jumpy behavior in Windows 8.1 mobile. Fixes #239.
+
+##### v.3.0.6 - 2015-05-19
+* Renamed 'dest' folder to 'dist' to follow common conventions.
+
+##### v.3.0.5 - 2015-05-18
+* Do nothing in Node.js environment.
+
+##### v.3.0.4 - 2015-05-05
+* Added options object for indicating if the script should set the overflowX and overflowY.  The default behavior lets the script control the overflows, which will normalize the appearance between browsers.  Fixes #220.
+
+##### v.3.0.3 - 2015-04-23
+* Avoided adjusting the height for hidden textarea elements.  Fixes #155.
+
+##### v.3.0.2 - 2015-04-23
+* Reworked to respect max-height of any unit-type.  Fixes #191.
+
+##### v.3.0.1 - 2015-04-23
+* Fixed the destroy event so that it removes its own event handler. Fixes #218.
+
+##### v.3.0.0 - 2015-04-15
+* Added new methods for updating and destroying:
+
+	* autosize.update(elements)
+	* autosize.destroy(elements)
+
+* Renamed custom events as to not use jQuery's custom events namespace:
+
+	* autosize.resized renamed to autosize:resized
+	* autosize.update renamed to autosize:update
+	* autosize.destroy renamed to autosize:destroy
+
+##### v.2.0.1 - 2015-04-15
+* Version bump for NPM publishing purposes
+
+##### v.2.0.0 - 2015-02-25
+
+* Smaller, simplier code-base
+* New API.  Example usage: `autosize(document.querySelectorAll(textarea));`
+* Dropped jQuery dependency
+* Dropped IE7-IE8 support
+* Dropped optional parameters
 * Closes #98, closes #106, closes #123, fixes #129, fixes #132, fixes #139, closes #140, closes #166, closes #168, closes #192, closes #193, closes #197

+ 1 - 1
www/vue/node_modules/babel-preset-env/package.json

@@ -30,7 +30,7 @@
   },
   "_npmVersion": "3.10.10",
   "_phantomChildren": {
-    "caniuse-lite": "1.0.30000694",
+    "caniuse-lite": "1.0.30000696",
     "electron-to-chromium": "1.3.14"
   },
   "_requested": {

+ 2 - 0
www/vue/package.json

@@ -21,7 +21,9 @@
     "vue-amap": "^0.2.8",
     "vue-awesome-swiper": "^2.4.2",
     "vue-axios": "^2.0.2",
+    "vue-baidu-map": "^0.10.8",
     "vue-router": "^2.3.1",
+    "vue-scroller": "^2.2.1",
     "vue-style-loader": "^3.0.1",
     "vuex": "^2.3.1",
     "vux": "^2.3.4"

+ 12 - 55
www/vue/src/components/address/addressAdd.vue

@@ -1,66 +1,23 @@
 <template>
-  <div class="amap-page-container">
-    <el-amap-search-box class="search-box" :search-option="searchOption"
-                        :on-search-result="onSearchResult"></el-amap-search-box>
-    <el-amap vid="amapDemo">
-    </el-amap>
+  <div>
+  <label>关键词:<input v-model="keyword"></label>
+  <baidu-map>
+    <bm-view class="map"></bm-view>
+    <bm-local-search :panel="false" :keyword="keyword" :forceLocal="true" :auto-viewport="true" :location="location" @markersset="searchcomplete" ></bm-local-search>
+  </baidu-map>
   </div>
 </template>
-
-<style>
-  .amap-demo {
-    height: 300px;
-  }
-
-  .search-box {
-    position: absolute;
-    top: 25px;
-    left: 20px;
-  }
-
-  .amap-page-container {
-    position: relative;
-  }
-</style>
-
 <script>
-  module.exports = {
-    data: function () {
+  export default {
+    data () {
       return {
-        markers: [
-          [121.59996, 31.197646],
-          [121.40018, 31.197622],
-          [121.69991, 31.207649]
-        ],
-        searchOption: {
-          city: '上海',
-          citylimit: true
-        },
-        mapCenter: [121.59996, 31.197646]
+        location: '上海',
+        keyword: '巾帼园'
       }
     },
     methods: {
-      addMarker: function () {
-        let lng = 121.5 + Math.round(Math.random() * 1000) / 10000
-        let lat = 31.197646 + Math.round(Math.random() * 500) / 10000
-        this.markers.push([lng, lat])
-      },
-      onSearchResult (pois) {
-        let latSum = 0
-        let lngSum = 0
-        if (pois.length > 0) {
-          pois.forEach(poi => {
-            let {lng, lat} = poi
-            lngSum += lng
-            latSum += lat
-            this.markers.push([poi.lng, poi.lat])
-          })
-          let center = {
-            lng: lngSum / pois.length,
-            lat: latSum / pois.length
-          }
-          this.mapCenter = [center.lng, center.lat]
-        }
+      searchcomplete (e) {
+        console.log(e)
       }
     }
   }

+ 6 - 12
www/vue/src/main.js

@@ -10,20 +10,14 @@ import store from './store/'
 import VueAwesomeSwiper from 'vue-awesome-swiper'
 import VueScroller from 'vue-scroller'
 // 引入vue-amap
-import AMap, {lazyAMapApiLoaderInstance} from 'vue-amap'
+import AMap from 'vue-amap'
 Vue.use(AMap)
+import BaiduMap from 'vue-baidu-map'
+
 // 初始化vue-amap
-AMap.initAMapApiLoader({
-  // 申请的高德key
-  key: 'ea4228b685c663ac62af7da3a0702c97',
-  // 插件集合
-  plugin: ['AMap.PlaceSearch']
-})
-lazyAMapApiLoaderInstance.load().then(() => {
-  // your code ...
-  this.map = new AMap.Map('amapContainer', {
-    center: new AMap.LngLat(121.59996, 31.197646)
-  })
+Vue.use(BaiduMap, {
+  /* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
+  ak: 'qNIOsBk4Z1Eu1v0whVsnNe9nsikpDeY4'
 })
 
 // AMap.initAMapApiLoader({