init
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
"use strict";
|
||||
(self["webpackChunkliu_official"] = self["webpackChunkliu_official"] || []).push([[517],{
|
||||
|
||||
/***/ 3476:
|
||||
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2892);
|
||||
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9925);
|
||||
/* harmony import */ var _components_vue_mobile_AdPopup_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1476);
|
||||
/* harmony import */ var _components_vue_mobile_MenuPopup_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5416);
|
||||
/* harmony import */ var _utils_tencentMap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9495);
|
||||
/* harmony import */ var _element_plus_icons_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(5253);
|
||||
/* harmony import */ var _utils_areaData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5407);
|
||||
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(242);
|
||||
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2837);
|
||||
/* harmony import */ var element_plus_es_components_base_style_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5729);
|
||||
/* harmony import */ var element_plus_es_components_icon_style_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9573);
|
||||
/* harmony import */ var element_plus_es_components_cascader_style_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(115);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const request = axios__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A.create({
|
||||
baseURL: "https://room.yunvip123.cn/prod-api/room",
|
||||
timeout: 60 * 1000
|
||||
});
|
||||
(0,vue__WEBPACK_IMPORTED_MODULE_0__/* .createApp */ .Ef)({
|
||||
components: {
|
||||
AdPopup: _components_vue_mobile_AdPopup_vue__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,
|
||||
MenuPopup: _components_vue_mobile_MenuPopup_vue__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
|
||||
ElIcon: element_plus_es__WEBPACK_IMPORTED_MODULE_9__/* .ElIcon */ .tk,
|
||||
ElCascader: element_plus_es__WEBPACK_IMPORTED_MODULE_10__/* .ElCascader */ ._m,
|
||||
LocationInformation: _element_plus_icons_vue__WEBPACK_IMPORTED_MODULE_11__/* .LocationInformation */ .ewv,
|
||||
Search: _element_plus_icons_vue__WEBPACK_IMPORTED_MODULE_11__/* .Search */ .vji
|
||||
},
|
||||
setup() {
|
||||
(0,vue__WEBPACK_IMPORTED_MODULE_0__/* .onMounted */ .sV)(async () => {
|
||||
setCityList();
|
||||
setLocalMsg();
|
||||
});
|
||||
const cityList = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)([]);
|
||||
function setCityList() {
|
||||
cityList.value = _utils_areaData__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A;
|
||||
}
|
||||
const currentCity = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)('宜昌市');
|
||||
let currentLocation = {};
|
||||
async function setLocalMsg() {
|
||||
const localMsg = await (0,_utils_tencentMap__WEBPACK_IMPORTED_MODULE_3__/* .getLocalMsg */ .d)();
|
||||
currentCity.value = localMsg.currentCity;
|
||||
currentLocation = {
|
||||
longitude: localMsg.longitude,
|
||||
latitude: localMsg.latitude
|
||||
};
|
||||
queryShopList();
|
||||
}
|
||||
function cityChange() {
|
||||
keyWords.value = '';
|
||||
queryShopList();
|
||||
}
|
||||
const keyWords = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)('');
|
||||
const shopList = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)([]);
|
||||
function queryShopList() {
|
||||
request.get('/miniBall/queryDqShopList', {
|
||||
params: {
|
||||
onlineState: 1,
|
||||
// 1 正序 2 倒序
|
||||
shopOrder: 1,
|
||||
shopName: keyWords.value,
|
||||
shopArea: currentCity.value.replace('市', ''),
|
||||
longitude: currentLocation.longitude,
|
||||
latitude: currentLocation.latitude
|
||||
}
|
||||
}).then(res => {
|
||||
shopList.value = res?.data?.data || [];
|
||||
shopList.value.forEach(o => {
|
||||
o.showImg = o.roomLogo ? o.roomLogo.split(',')[0] : '';
|
||||
o.showTag = JSON.parse(o.shopTag);
|
||||
});
|
||||
console.log(shopList.value);
|
||||
});
|
||||
}
|
||||
function goDetail(shopId) {
|
||||
window.location.href = `/mobile/stadium-reserve/detail.html?shopId=${shopId}`;
|
||||
}
|
||||
const lgyyPopup = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)(null);
|
||||
function openLgyy() {
|
||||
lgyyPopup.value.open();
|
||||
}
|
||||
const gkdPopup = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)(null);
|
||||
function openGkd() {
|
||||
gkdPopup.value.open();
|
||||
}
|
||||
const menuPopup = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)(null);
|
||||
function openMenu() {
|
||||
menuPopup.value.open();
|
||||
}
|
||||
return {
|
||||
cityList,
|
||||
keyWords,
|
||||
shopList,
|
||||
currentCity,
|
||||
cityChange,
|
||||
queryShopList,
|
||||
goDetail,
|
||||
lgyyPopup,
|
||||
openLgyy,
|
||||
gkdPopup,
|
||||
openGkd,
|
||||
menuPopup,
|
||||
openMenu
|
||||
};
|
||||
}
|
||||
}).mount("#homeMain");
|
||||
|
||||
/***/ })
|
||||
|
||||
},
|
||||
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
||||
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
||||
/******/ __webpack_require__.O(0, [534,810,361,76], function() { return __webpack_exec__(3476); });
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||||
/******/ }
|
||||
]);
|
||||
//# sourceMappingURL=stadiumReserveM.js.map?hash=b446ba1443bc4913f472
|
||||
Reference in New Issue
Block a user