From 67ec3d9c967b3d5dcdc3ce486675258d80771a6b Mon Sep 17 00:00:00 2001
From: dzc <2388224167@qq.com>
Date: Fri, 15 Nov 2024 22:14:43 +0800
Subject: [PATCH] 1111
---
.env | 4 +-
src/pages.json | 26 +
src/pages/apply/foreign-items.vue | 4 +-
src/pages/boxes/apply.vue | 33 +
src/pages/boxes/detail.vue | 84 +
src/pages/boxes/list.vue | 105 ++
src/pages/merchant/detail.vue | 4 +-
src/pages/merchant/food.vue | 2 +-
src/sheep/api/boxes.ts | 49 +
src/sheep/api/index.ts | 2 +
.../custom-waterfalls-flow.vue | 10 +-
src/sheep/components/other/z-tabs/z-tabs.vue | 1398 +++++++++--------
src/sheep/constant/service-enum.ts | 7 +
13 files changed, 1023 insertions(+), 705 deletions(-)
create mode 100644 src/pages/boxes/apply.vue
create mode 100644 src/pages/boxes/detail.vue
create mode 100644 src/pages/boxes/list.vue
create mode 100644 src/sheep/api/boxes.ts
diff --git a/.env b/.env
index e974190..490e653 100644
--- a/.env
+++ b/.env
@@ -1,7 +1,7 @@
# ******************** start 开发环境 start ********************
-# VITE_APP_DEV_SERVICE =http://localhost:48080/app-api
-VITE_APP_DEV_SERVICE =http://123.156.228.134:48080/app-api
+VITE_APP_DEV_SERVICE =http://localhost:48080/app-api
+# VITE_APP_DEV_SERVICE =http://123.156.228.134:48080/app-api
# ******************** end 开发环境 end ********************
diff --git a/src/pages.json b/src/pages.json
index a350897..75b5cfc 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -87,6 +87,32 @@
}
]
},
+ {
+ "root": "pages/boxes",
+ "pages": [
+ {
+ "path": "apply",
+ "style": {
+ "navigationBarTitleText": "",
+ "disableScroll": true
+ }
+ },
+ {
+ "path": "detail",
+ "style": {
+ "navigationBarTitleText": "",
+ "disableScroll": true
+ }
+ },
+ {
+ "path": "list",
+ "style": {
+ "navigationBarTitleText": "",
+ "disableScroll": true
+ }
+ }
+ ]
+ },
{
"root": "pages/merchant",
"pages": [
diff --git a/src/pages/apply/foreign-items.vue b/src/pages/apply/foreign-items.vue
index e35d08a..17c6731 100644
--- a/src/pages/apply/foreign-items.vue
+++ b/src/pages/apply/foreign-items.vue
@@ -26,7 +26,9 @@ onLoad((options: any) => {
}
});
onShow(() => {
-
+ if (pageRef.value) {
+ pageRef.value.reload(false)
+ }
})
diff --git a/src/pages/boxes/apply.vue b/src/pages/boxes/apply.vue
new file mode 100644
index 0000000..f80ddd7
--- /dev/null
+++ b/src/pages/boxes/apply.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/boxes/detail.vue b/src/pages/boxes/detail.vue
new file mode 100644
index 0000000..7d335a5
--- /dev/null
+++ b/src/pages/boxes/detail.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ¥{{ state.detail.price }}
+
+ 可容纳{{ state.detail.capacity }}
+
+
+ {{ state.detail.name }}
+
+
+
+
+ 详情
+
+
+
+
+
+ 预定
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/boxes/list.vue b/src/pages/boxes/list.vue
new file mode 100644
index 0000000..bb94ddd
--- /dev/null
+++ b/src/pages/boxes/list.vue
@@ -0,0 +1,105 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ v.name }}
+
+
+ ¥{{ v.price }}
+
+
+
+ 可容纳{{ v.capacity }}人
+
+
+
+ {{ hooks.useEnum("boxesBxStatusEnum", v.status.toString()) }}
+
+
+ {{ hooks.useEnum("boxesBxStatusEnum", v.status) }}
+
+
+ {{ hooks.useEnum("boxesBxStatusEnum", v.status) }}
+
+
+
+
+ {{ v.address }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/merchant/detail.vue b/src/pages/merchant/detail.vue
index 7a0bac0..d5bbf3d 100644
--- a/src/pages/merchant/detail.vue
+++ b/src/pages/merchant/detail.vue
@@ -50,7 +50,6 @@ const getDetail = async () => {
const getShopCar = async () => {
const _pa = { merchantId: state.detailId }
const { data } = await foodApi.getShopCar(_pa)
- console.log(data, "data");
state.carList = data ?? []
state.totPrice = state.carList
@@ -239,7 +238,8 @@ const doFood = () => {
联系食堂
-
+
diff --git a/src/pages/merchant/food.vue b/src/pages/merchant/food.vue
index 1508353..611f7a1 100644
--- a/src/pages/merchant/food.vue
+++ b/src/pages/merchant/food.vue
@@ -107,7 +107,7 @@ const doProduct = (v: any) => {
-
diff --git a/src/sheep/api/boxes.ts b/src/sheep/api/boxes.ts
new file mode 100644
index 0000000..c221676
--- /dev/null
+++ b/src/sheep/api/boxes.ts
@@ -0,0 +1,49 @@
+import request from "@/sheep/utils/request";
+
+export default {
+ page: (params: any) =>
+ request({
+ url: "boxes/info/api/page",
+ method: "GET",
+ params,
+ custom: {
+ showLoading: false,
+ },
+ }),
+ detail: (params: any) =>
+ request({
+ url: "boxes/info/api/getInfo",
+ method: "GET",
+ params,
+ custom: {
+ showLoading: false,
+ },
+ }),
+ apply: (data: any) =>
+ request({
+ url: "boxes/info/api/create",
+ method: "POST",
+ data,
+ custom: {
+ showLoading: false,
+ },
+ }),
+ cancel: (data: any) =>
+ request({
+ url: "boxes/info/api/cancel",
+ method: "GET",
+ data,
+ custom: {
+ showLoading: false,
+ },
+ }),
+ MyBookingPage: (data: any) =>
+ request({
+ url: "boxes/info/api/getMyBookingPage",
+ method: "GET",
+ data,
+ custom: {
+ showLoading: false,
+ },
+ }),
+};
diff --git a/src/sheep/api/index.ts b/src/sheep/api/index.ts
index a36c3e0..8101071 100644
--- a/src/sheep/api/index.ts
+++ b/src/sheep/api/index.ts
@@ -1,5 +1,7 @@
export { default as applyApi } from "./apply";
+export { default as boxesApi } from "./boxes";
+
export { default as commonApi } from "./common";
export { default as foodApi } from "./food";
diff --git a/src/sheep/components/other/custom-waterfalls-flow/custom-waterfalls-flow.vue b/src/sheep/components/other/custom-waterfalls-flow/custom-waterfalls-flow.vue
index a22e2a6..27b8eec 100644
--- a/src/sheep/components/other/custom-waterfalls-flow/custom-waterfalls-flow.vue
+++ b/src/sheep/components/other/custom-waterfalls-flow/custom-waterfalls-flow.vue
@@ -43,7 +43,7 @@
+ /* #ifdef APP-NVUE */
+ width: 750rpx;
+ /* #endif */
+ flex-direction: row;
+ height: 80rpx;
+}
+.z-tabs-scroll-view-conatiner {
+ flex: 1;
+ position: relative;
+ /* #ifndef APP-NVUE */
+ display: flex;
+ height: 100%;
+ width: 100%;
+ /* #endif */
+ flex-direction: row;
+}
+
+/* #ifndef APP-NVUE */
+.z-tabs-scroll-view ::-webkit-scrollbar {
+ display: none;
+ -webkit-appearance: none;
+ width: 0 !important;
+ height: 0 !important;
+ background: transparent;
+}
+
+/* #endif */
+
+.z-tabs-scroll-view {
+ flex-direction: row;
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ /* #ifndef APP-NVUE */
+ width: 100%;
+ height: 100%;
+ /* #endif */
+ flex: 1;
+}
+
+.z-tabs-list-container {
+ position: relative;
+ /* #ifndef APP-NVUE */
+ height: 100%;
+ /* #endif */
+}
+
+.z-tabs-list,
+.z-tabs-list-container {
+ /* #ifndef APP-NVUE */
+ display: flex;
+ /* #endif */
+ flex-direction: row;
+}
+
+.z-tabs-item {
+ /* #ifndef APP-NVUE */
+ display: flex;
+ /* #endif */
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ padding: 0px 20rpx;
+}
+
+.z-tabs-item-title-container {
+ /* #ifndef APP-NVUE */
+ display: flex;
+ /* #endif */
+ flex-direction: row;
+ align-items: center;
+}
+
+.z-tabs-item-title {
+ display: inline-block;
+ width: 100%;
+ font-size: 28rpx;
+}
+
+.z-tabs-item-title-disabled {
+ /* #ifndef APP-NVUE */
+ cursor: not-allowed;
+ /* #endif */
+}
+
+.z-tabs-item-badge {
+ margin-left: 8rpx;
+ background-color: #ec5b56;
+ color: white;
+ font-size: 22rpx;
+ border-radius: 100px;
+ padding: 0rpx 10rpx;
+}
+
+.z-tabs-bottom {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
+.z-tabs-bottom-dot {
+ border-radius: 100px;
+}
+
+.z-tabs-left,
+.z-tabs-right {
+ /* #ifndef APP-NVUE */
+ display: flex;
+ /* #endif */
+ flex-direction: row;
+ align-items: center;
+}
+
diff --git a/src/sheep/constant/service-enum.ts b/src/sheep/constant/service-enum.ts
index 10d6e0e..7c62f1c 100644
--- a/src/sheep/constant/service-enum.ts
+++ b/src/sheep/constant/service-enum.ts
@@ -22,8 +22,15 @@ const hardwarePayTypeEnum = {
7: "线上订餐二维码支付",
};
+const boxesBxStatusEnum = {
+ "0": "今日空闲",
+ "1": "今日部分空闲",
+ "2": "今日已满",
+};
+
export default {
hardwareOrderStatusEnum,
hardwareOrderTypeEnum,
hardwarePayTypeEnum,
+ boxesBxStatusEnum,
};