| | |
| | | try { |
| | | components = { |
| | | uIcon: function () { |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 334)) |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 388)) |
| | | }, |
| | | customTabbar: function () { |
| | | return __webpack_require__.e(/*! import() | components/custom-tabbar/custom-tabbar */ "components/custom-tabbar/custom-tabbar").then(__webpack_require__.bind(null, /*! @/components/custom-tabbar/custom-tabbar.vue */ 404)) |
| | | }, |
| | | } |
| | | } catch (e) { |
| | |
| | | var _vm = this |
| | | var _h = _vm.$createElement |
| | | var _c = _vm._self._c || _h |
| | | var g0 = _vm.pointList.length |
| | | _vm.$mp.data = Object.assign( |
| | | {}, |
| | | { |
| | | $root: { |
| | | g0: g0, |
| | | }, |
| | | } |
| | | ) |
| | | } |
| | | var recyclableRender = false |
| | | var staticRenderFns = [] |
| | |
| | | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36)); |
| | | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11)); |
| | | var _vuex = __webpack_require__(/*! vuex */ 37); |
| | | var _amapWx = _interopRequireDefault(__webpack_require__(/*! @/utils/amap-wx.130.js */ 38)); |
| | | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } |
| | | function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } |
| | | var CustomTabbar = function CustomTabbar() { |
| | | __webpack_require__.e(/*! require.ensure | components/custom-tabbar/custom-tabbar */ "components/custom-tabbar/custom-tabbar").then((function () { |
| | | return resolve(__webpack_require__(/*! @/components/custom-tabbar/custom-tabbar.vue */ 404)); |
| | | }).bind(null, __webpack_require__)).catch(__webpack_require__.oe); |
| | | }; |
| | | var _default = { |
| | | components: { |
| | | CustomTabbar: CustomTabbar |
| | | }, |
| | | computed: _objectSpread(_objectSpread({}, (0, _vuex.mapState)(['navHeight', 'statusbarHeight', 'address', 'latitude', 'cityId', 'longitude'])), {}, { |
| | | currentAddress: function currentAddress() { |
| | | return this.address && this.address !== '定位中' ? this.address : '获取定位'; |
| | |
| | | latitude: addr.latitude, |
| | | longitude: addr.longitude |
| | | }; |
| | | var qqmapsdk = new QQMapWX({ |
| | | key: 'WE3BZ-HN6WS-ONDOH-62QCV-MNL6F-5NFNE' |
| | | var myAmapFun = new _amapWx.default.AMapWX({ |
| | | key: 'f2e6c0bfcac14c27b4f0d6d0d5b9d7d' |
| | | }); |
| | | qqmapsdk.reverseGeocoder({ |
| | | locParam: locParam, |
| | | myAmapFun.getRegeo({ |
| | | location: addr.longitude + ',' + addr.latitude, |
| | | success: function () { |
| | | var _success = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(res) { |
| | | var _success = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data) { |
| | | var info, ta, resCity; |
| | | return _regenerator.default.wrap(function _callee4$(_context4) { |
| | | while (1) { |
| | | switch (_context4.prev = _context4.next) { |
| | | case 0: |
| | | console.log(res, '==================获取地址'); |
| | | info = res.result; |
| | | locParam.province = info.address_component.province; |
| | | locParam.city = info.address_component.city; |
| | | locParam.area = info.address_component.district; |
| | | locParam.street = info.address_component.street; |
| | | ta = info.address || '地址获取失败'; |
| | | if (info.formatted_addresses && info.formatted_addresses.recommend) { |
| | | ta = info.formatted_addresses.recommend; |
| | | } |
| | | console.log(data, '==================获取地址'); |
| | | info = data[0]; |
| | | locParam.province = info.province; |
| | | locParam.city = info.city; |
| | | locParam.area = info.district; |
| | | locParam.street = info.street; |
| | | ta = info.name || '地址获取失败'; |
| | | locParam.address = ta; |
| | | _context4.next = 11; |
| | | _context4.next = 10; |
| | | return that.$u.api.getCityByName({ |
| | | cityName: locParam.city |
| | | }); |
| | | case 11: |
| | | case 10: |
| | | resCity = _context4.sent; |
| | | if (resCity.code === 200) { |
| | | locParam.cityId = resCity.data.id; |
| | | } |
| | | that.$store.commit('setPosition', locParam); |
| | | that.$isResolve(); |
| | | case 15: |
| | | case 14: |
| | | case "end": |
| | | return _context4.stop(); |
| | | } |