| | |
| | | _vue.default.prototype.$onLaunched = new Promise(function (resolve) { |
| | | _vue.default.prototype.$isResolve = resolve; |
| | | }); |
| | | _vue.default.prototype.$baseUrl = 'http://192.168.1.4:10011'; |
| | | // Vue.prototype.$baseUrl = 'https://jinkuai.832smartfarm.com/jinkuai_web/' |
| | | |
| | | // Vue.prototype.$baseUrl = 'http://192.168.1.4:10011' |
| | | |
| | | _vue.default.prototype.$baseUrl = 'https://llfc.lmpro.cn/nyx_web/'; |
| | | var app = new _vue.default(_objectSpread({ |
| | | store: _index.default |
| | | }, _App.default)); |
| | |
| | | return that.$store.commit('setUserInfo', res.data); |
| | | case 11: |
| | | _context2.next = 13; |
| | | return that.$store.commit('setOpenid', res.data.openId); |
| | | return that.$store.commit('setOpenid', res.data.openid); |
| | | case 13: |
| | | _context2.next = 15; |
| | | return that.checkLocationAuth(); |
| | |
| | | latitude: addr.latitude, |
| | | longitude: addr.longitude |
| | | }; |
| | | uni.setStorageSync('address', locParam); |
| | | // uni.setStorageSync('address', locParam); |
| | | var address = null; |
| | | var myAmapFun = new amapFile.AMapWX({ |
| | | key: 'e4d46c87adf151dca20060317592b1b6' |
| | |
| | | }); |
| | | case 8: |
| | | resCity = _context3.sent; |
| | | if (resCity.code === 200) { |
| | | if (resCity.code === 200 && resCity.data) { |
| | | locParam.cityId = resCity.data.id; |
| | | that.$store.commit('setPosition', locParam); |
| | | } else { |
| | | that.$store.commit('setPosition', locParam); |
| | | that.$store.commit('clearCityId'); |
| | | } |
| | | that.$store.commit('setPosition', locParam); |
| | | that.$isResolve(); |
| | | case 12: |
| | | case 11: |
| | | case "end": |
| | | return _context3.stop(); |
| | | } |