| | |
| | | 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 */ 498)) |
| | | 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 */ 505)) |
| | | }, |
| | | authLogin: function () { |
| | | return __webpack_require__.e(/*! import() | components/auth-login/auth-login */ "components/auth-login/auth-login").then(__webpack_require__.bind(null, /*! @/components/auth-login/auth-login.vue */ 498)) |
| | | }, |
| | | 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 */ 186)) |
| | |
| | | var _h = _vm.$createElement |
| | | var _c = _vm._self._c || _h |
| | | var g0 = _vm.pointList.length |
| | | if (!_vm._isMounted) { |
| | | _vm.e0 = function ($event) { |
| | | _vm.showLogin = false |
| | | } |
| | | } |
| | | _vm.$mp.data = Object.assign( |
| | | {}, |
| | | { |
| | |
| | | components: { |
| | | CustomTabbar: CustomTabbar |
| | | }, |
| | | computed: _objectSpread(_objectSpread({}, (0, _vuex.mapState)(['navHeight', 'statusbarHeight', 'address', 'latitude', 'cityId', 'longitude'])), {}, { |
| | | computed: _objectSpread(_objectSpread({}, (0, _vuex.mapState)(['navHeight', 'statusbarHeight', 'address', 'latitude', 'cityId', 'longitude', 'token'])), {}, { |
| | | currentAddress: function currentAddress() { |
| | | return this.address && this.address !== '定位中' ? this.address : '获取定位'; |
| | | } |
| | |
| | | return { |
| | | bannerList: [], |
| | | pointList: [], |
| | | ingOrder: null |
| | | ingOrder: null, |
| | | showLogin: false, |
| | | pendingNavigate: null |
| | | }; |
| | | }, |
| | | onLoad: function onLoad() { |
| | |
| | | onShow: function onShow() { |
| | | this.ingOrder = null; |
| | | this.getIngorder(); |
| | | }, |
| | | watch: { |
| | | token: function token(newToken) { |
| | | if (newToken && this.pendingNavigate) { |
| | | var fn = this.pendingNavigate; |
| | | this.pendingNavigate = null; |
| | | this.showLogin = false; |
| | | fn(); |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | jumpBannerDetail: function jumpBannerDetail(item) { |
| | |
| | | }))(); |
| | | }, |
| | | jumpOrderList: function jumpOrderList(status) { |
| | | var _this3 = this; |
| | | if (!this.token) { |
| | | this.pendingNavigate = function () { |
| | | return _this3.jumpOrderList(status); |
| | | }; |
| | | this.showLogin = true; |
| | | return; |
| | | } |
| | | uni.setStorageSync("orderStatus", status); |
| | | uni.switchTab({ |
| | | url: '/pages/itinerary/itinerary' |
| | | }); |
| | | }, |
| | | jumpxiadan: function jumpxiadan() { |
| | | var _this4 = this; |
| | | if (!this.token) { |
| | | this.pendingNavigate = function () { |
| | | return _this4.jumpxiadan(); |
| | | }; |
| | | this.showLogin = true; |
| | | return; |
| | | } |
| | | if (!this.cityId) return uni.showToast({ |
| | | title: '当前城市暂未开通', |
| | | icon: 'none' |
| | |
| | | }); |
| | | }, |
| | | getBannerList: function getBannerList() { |
| | | var _this3 = this; |
| | | var _this5 = this; |
| | | return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() { |
| | | var res; |
| | | return _regenerator.default.wrap(function _callee3$(_context3) { |
| | |
| | | switch (_context3.prev = _context3.next) { |
| | | case 0: |
| | | _context3.next = 2; |
| | | return _this3.$u.api.getBannerList({ |
| | | return _this5.$u.api.getBannerList({ |
| | | position: 0 |
| | | }); |
| | | case 2: |
| | | res = _context3.sent; |
| | | if (res.code === 200) { |
| | | _this3.bannerList = res.data || []; |
| | | _this5.bannerList = res.data || []; |
| | | } |
| | | case 4: |
| | | case "end": |
| | |
| | | }))(); |
| | | }, |
| | | getNearbyShopList: function getNearbyShopList() { |
| | | var _this4 = this; |
| | | var _this6 = this; |
| | | return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() { |
| | | var res; |
| | | return _regenerator.default.wrap(function _callee4$(_context4) { |
| | |
| | | switch (_context4.prev = _context4.next) { |
| | | case 0: |
| | | _context4.next = 2; |
| | | return _this4.$u.api.getNearbyShopList({ |
| | | return _this6.$u.api.getNearbyShopList({ |
| | | capacity: 5, |
| | | page: 1, |
| | | model: { |
| | | latitude: _this4.latitude, |
| | | longitude: _this4.longitude, |
| | | cityId: _this4.cityId, |
| | | latitude: _this6.latitude, |
| | | longitude: _this6.longitude, |
| | | cityId: _this6.cityId, |
| | | sortType: 1 |
| | | } |
| | | }); |
| | | case 2: |
| | | res = _context4.sent; |
| | | if (res.code === 200) { |
| | | _this4.pointList = res.data.records || []; |
| | | _this6.pointList = res.data.records || []; |
| | | } |
| | | case 4: |
| | | case "end": |
| | |
| | | that.$store.commit('setPosition', locParam); |
| | | that.$store.commit('clearCityId'); |
| | | that.pointList = []; |
| | | that.getNearbyShopList(); |
| | | } |
| | | case 10: |
| | | case "end": |