init
This commit is contained in:
@@ -0,0 +1,157 @@
|
||||
"use strict";
|
||||
(self["webpackChunkliu_official"] = self["webpackChunkliu_official"] || []).push([[144],{
|
||||
|
||||
/***/ 4719:
|
||||
/***/ (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_9__ = __webpack_require__(9925);
|
||||
/* harmony import */ var _components_vue_FullPopup_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6914);
|
||||
/* harmony import */ var _utils_tencentMap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9495);
|
||||
/* harmony import */ var _element_plus_icons_vue__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(5253);
|
||||
/* harmony import */ var element_plus_es_locale_lang_zh_cn__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(1279);
|
||||
/* harmony import */ var _utils_areaData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5407);
|
||||
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(812);
|
||||
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2837);
|
||||
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(242);
|
||||
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(5597);
|
||||
/* harmony import */ var element_plus_es_components_base_style_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5729);
|
||||
/* harmony import */ var element_plus_es_components_pagination_style_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5360);
|
||||
/* harmony import */ var element_plus_es_components_cascader_style_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(115);
|
||||
/* harmony import */ var element_plus_es_components_icon_style_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9573);
|
||||
/* harmony import */ var element_plus_es_components_config_provider_style_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2001);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const request = axios__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A.create({
|
||||
baseURL: "https://room.yunvip123.cn/prod-api/room",
|
||||
timeout: 60 * 1000
|
||||
});
|
||||
(0,vue__WEBPACK_IMPORTED_MODULE_0__/* .createApp */ .Ef)({
|
||||
components: {
|
||||
FullPopup: _components_vue_FullPopup_vue__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,
|
||||
ElPagination: element_plus_es__WEBPACK_IMPORTED_MODULE_10__/* .ElPagination */ .aQ,
|
||||
ElCascader: element_plus_es__WEBPACK_IMPORTED_MODULE_11__/* .ElCascader */ ._m,
|
||||
ElIcon: element_plus_es__WEBPACK_IMPORTED_MODULE_12__/* .ElIcon */ .tk,
|
||||
HomeFilled: _element_plus_icons_vue__WEBPACK_IMPORTED_MODULE_13__/* .HomeFilled */ .oCE,
|
||||
Clock: _element_plus_icons_vue__WEBPACK_IMPORTED_MODULE_13__/* .Clock */ .zD7,
|
||||
Location: _element_plus_icons_vue__WEBPACK_IMPORTED_MODULE_13__/* .Location */ .aZn,
|
||||
ElConfigProvider: element_plus_es__WEBPACK_IMPORTED_MODULE_14__/* .ElConfigProvider */ .H6
|
||||
},
|
||||
setup() {
|
||||
(0,vue__WEBPACK_IMPORTED_MODULE_0__/* .onMounted */ .sV)(async () => {
|
||||
setCityList();
|
||||
setLocalMsg();
|
||||
});
|
||||
const total = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)(0);
|
||||
const currentPage = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)(1);
|
||||
const pageSize = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)(10);
|
||||
function handleCurrentChange(current) {
|
||||
currentPage.value = current;
|
||||
queryShopList();
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
const keyWords = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)('');
|
||||
function goDetail(shopId) {
|
||||
window.location.href = `/stadium-reserve/detail.html?shopId=${shopId}`;
|
||||
}
|
||||
const cityList = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)([]);
|
||||
function setCityList() {
|
||||
cityList.value = _utils_areaData__WEBPACK_IMPORTED_MODULE_3__/* ["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_2__/* .getLocalMsg */ .d)();
|
||||
currentCity.value = localMsg.currentCity;
|
||||
currentLocation = {
|
||||
longitude: localMsg.longitude,
|
||||
latitude: localMsg.latitude
|
||||
};
|
||||
queryShopList();
|
||||
}
|
||||
const shopList = (0,vue__WEBPACK_IMPORTED_MODULE_0__/* .ref */ .KR)([]);
|
||||
function queryShopList() {
|
||||
request.get('/miniBall/queryDqShopList', {
|
||||
params: {
|
||||
onlineState: 1,
|
||||
// 1 正序 2 倒序
|
||||
shopOrder: 1,
|
||||
page: currentPage.value,
|
||||
limit: pageSize.value,
|
||||
shopName: keyWords.value,
|
||||
shopArea: currentCity.value.replace('市', ''),
|
||||
longitude: currentLocation.longitude,
|
||||
latitude: currentLocation.latitude
|
||||
}
|
||||
}).then(res => {
|
||||
shopList.value = res?.data?.data || [];
|
||||
total.value = res?.data?.total || 0;
|
||||
shopList.value.forEach(o => {
|
||||
o.showImg = o.roomLogo ? o.roomLogo.split(',')[0] : '';
|
||||
o.showTag = JSON.parse(o.shopTag);
|
||||
});
|
||||
});
|
||||
}
|
||||
function cityChange() {
|
||||
currentPage.value = 1;
|
||||
keyWords.value = '';
|
||||
queryShopList();
|
||||
}
|
||||
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();
|
||||
}
|
||||
return {
|
||||
shopList,
|
||||
total,
|
||||
currentPage,
|
||||
pageSize,
|
||||
keyWords,
|
||||
cityList,
|
||||
currentCity,
|
||||
cityChange,
|
||||
handleCurrentChange,
|
||||
queryShopList,
|
||||
goDetail,
|
||||
lgyyPopup,
|
||||
openLgyy,
|
||||
gkdPopup,
|
||||
openGkd,
|
||||
zhCn: element_plus_es_locale_lang_zh_cn__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A
|
||||
};
|
||||
}
|
||||
}).mount("#reserveMain");
|
||||
|
||||
/***/ })
|
||||
|
||||
},
|
||||
/******/ 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__(4719); });
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O();
|
||||
/******/ }
|
||||
]);
|
||||
//# sourceMappingURL=stadiumReserve.js.map?hash=b446ba1443bc4913f472
|
||||
Reference in New Issue
Block a user