处理订单列表
This commit is contained in:
@@ -48,7 +48,8 @@ const _sfc_main = {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:151", res);
|
||||
common_vendor.index.setStorageSync("token", res.token);
|
||||
common_vendor.index.setStorageSync("uid", res.user.user_id);
|
||||
common_vendor.index.setStorageSync("username", res.user.user_name);
|
||||
common_vendor.index.setStorageSync("user_name", res.user.user_name);
|
||||
common_vendor.index.setStorageSync("staff_name", res.user.staff_name);
|
||||
common_vendor.index.setStorageSync("role", res.user.role.value);
|
||||
isLoggedIn.value = true;
|
||||
common_vendor.index.showTabBar();
|
||||
@@ -85,19 +86,19 @@ const _sfc_main = {
|
||||
};
|
||||
const visibleInfoPopup = common_vendor.ref(false);
|
||||
const onShowInfoPopup = (room) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:205", "----", room);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:206", "----", room);
|
||||
Object.assign(tempRoom, room);
|
||||
visibleInfoPopup.value = true;
|
||||
};
|
||||
const onCloseInfoPopup = () => {
|
||||
Object.assign(tempRoom, {});
|
||||
visibleInfoPopup.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:212", "关闭");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:213", "关闭");
|
||||
};
|
||||
const visiblePopup = common_vendor.ref(false);
|
||||
const tempRoom = common_vendor.reactive({});
|
||||
const onBooking = (room) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:219", "----", room);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:220", "----", room);
|
||||
Object.assign(tempRoom, room);
|
||||
form.room_id = room.id;
|
||||
visiblePopup.value = true;
|
||||
@@ -110,18 +111,18 @@ const _sfc_main = {
|
||||
remarks: ""
|
||||
});
|
||||
visiblePopup.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:232", "关闭");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:233", "关闭");
|
||||
};
|
||||
const getRooms = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:239", "房间");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:240", "房间");
|
||||
api_index.fetchRooms().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:241", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:242", res);
|
||||
rooms.value = res;
|
||||
});
|
||||
};
|
||||
const onSubmit = () => {
|
||||
api_index.fetchBooking(form).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:249", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:250", res);
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "预约成功"
|
||||
@@ -134,7 +135,7 @@ const _sfc_main = {
|
||||
api_index.fetchUnBooking({
|
||||
id: room.id
|
||||
}).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:263", res);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:264", res);
|
||||
common_vendor.index.showToast({
|
||||
icon: "none",
|
||||
title: "取消预约成功"
|
||||
@@ -143,26 +144,26 @@ const _sfc_main = {
|
||||
});
|
||||
};
|
||||
const init = () => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:273", "init");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:274", "init");
|
||||
common_vendor.index.hideTabBar();
|
||||
checkLogin();
|
||||
getRooms();
|
||||
};
|
||||
common_vendor.onLoad(() => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:280", "onshow---");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:281", "onshow---");
|
||||
common_vendor.index.hideTabBar();
|
||||
checkLogin();
|
||||
getRooms();
|
||||
});
|
||||
common_vendor.onShow(() => {
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:286", "onshow---");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:287", "onshow---");
|
||||
common_vendor.index.hideTabBar();
|
||||
checkLogin();
|
||||
getRooms();
|
||||
});
|
||||
const checkLogin = () => {
|
||||
let token = common_vendor.index.getStorageSync("token");
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:295", "token", token);
|
||||
common_vendor.index.__f__("log", "at pages/index/index.vue:296", "token", token);
|
||||
if (token) {
|
||||
common_vendor.index.showTabBar();
|
||||
isLoggedIn.value = true;
|
||||
|
||||
Reference in New Issue
Block a user