diff --git a/src/components/CreateServiceOrder/index.vue b/src/components/CreateServiceOrder/index.vue
index 9df5d89..f2ae5b2 100644
--- a/src/components/CreateServiceOrder/index.vue
+++ b/src/components/CreateServiceOrder/index.vue
@@ -1,87 +1,89 @@
-
-
@@ -89,49 +91,51 @@
diff --git a/src/components/GoodDetail/styles/index.scss b/src/components/GoodDetail/styles/index.scss
deleted file mode 100644
index 7ea1b28..0000000
--- a/src/components/GoodDetail/styles/index.scss
+++ /dev/null
@@ -1,40 +0,0 @@
-// 使用须知样式
-.use-notice {
- margin: 16px 0;
-}
-
-.use-notice-content {
- .module-item {
- display: flex;
- align-items: flex-start;
- flex-direction: column;
- padding: 12px 0;
-
- .module-icon {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 8px;
- flex-shrink: 0;
-
- .module-title {
- font-size: $uni-font-size-base;
- color: $uni-text-color;
- text-align: center;
- word-wrap: break-word;
- margin-left: 4px;
- }
- }
-
- .module-desc {
- flex: 1;
- font-size: $uni-font-size-sm;
- color: #666;
- line-height: 1.5;
- margin-top: 4px;
- }
- }
- .border-bottom {
- border-bottom: 1px solid #f0f0f0;
- }
-}
diff --git a/src/components/ImageSwiper/index.vue b/src/components/ImageSwiper/index.vue
index f6154c7..872bf4a 100644
--- a/src/components/ImageSwiper/index.vue
+++ b/src/components/ImageSwiper/index.vue
@@ -22,10 +22,6 @@
-
- 图片{{ active + 1 }}/{{ thumbnails.length }}
-
-
- {{ thumb.photoName }}
+
+
+ {{
+ zniconsMap["zn-camera"]
+ }}
+ {{ thumbnails.length }}
+ {{
+ zniconsMap["zn-nav-arrow-right"]
+ }}
+
+
+
diff --git a/src/pages/goods/index.vue b/src/pages/goods/index.vue
index ec7bf79..546416b 100644
--- a/src/pages/goods/index.vue
+++ b/src/pages/goods/index.vue
@@ -1,14 +1,19 @@
-
-
+
+
-
+
@@ -29,6 +34,9 @@
:nights="selectedDate.totalDays"
/>
+
+
+
@@ -73,17 +81,30 @@ import {
import { ThrottleUtils } from "@/utils";
import TopNavBar from "@/components/TopNavBar/index.vue";
import ImageSwiper from "@/components/ImageSwiper/index.vue";
+
+// 导航栏透明度 - 默认透明,随滚动变为不透明
+const navOpacity = ref(0);
import GoodInfo from "./components/GoodInfo/index.vue";
import GoodConfirm from "./components/GoodConfirm/index.vue";
import Calender from "@/components/Calender/index.vue";
import LocationCard from "@/components/LocationCard/index.vue";
import DateSelector from "./components/DateSelector/index.vue";
import GoodDetail from "@/components/GoodDetail/index.vue";
+import GoodFacility from "./components/GoodFacility/index.vue";
const calendarVisible = ref(false);
const goodsData = ref({});
const goodConfirmRef = ref(null);
+// 处理滚动事件
+const handleScroll = (e) => {
+ const scrollTop = e.detail.scrollTop;
+ // 设置一个阈值,当滚动超过200px时,导航栏完全不透明
+ const threshold = 200;
+ // 计算透明度,范围从0到1
+ navOpacity.value = Math.min(scrollTop / threshold, 1);
+};
+
// 格式化日期为 yyyy-mm-dd 格式
const formatDate = (date) => {
const year = date.getFullYear();
diff --git a/src/pages/goods/styles/index.scss b/src/pages/goods/styles/index.scss
index a724944..b49bc90 100644
--- a/src/pages/goods/styles/index.scss
+++ b/src/pages/goods/styles/index.scss
@@ -8,10 +8,13 @@ $button-color: #00a6ff;
// 顶部导航栏固定样式
:deep(.top-nav-bar) {
- position: sticky;
+ position: fixed;
top: 0;
+ left: 0;
+ right: 0;
z-index: 100;
flex-shrink: 0;
+ transition: background-color 0.3s ease;
}
// 使用须知样式
@@ -63,7 +66,7 @@ $button-color: #00a6ff;
}
.goods-content {
- border-radius: 12px 12px 0 0;
+ border-radius: 28px 28px 0 0;
background-color: #fff;
padding: 12px;
position: relative;
diff --git a/src/pages/index/components/chat/ChatMainList/index.vue b/src/pages/index/components/chat/ChatMainList/index.vue
index 36c079c..c2ccef4 100644
--- a/src/pages/index/components/chat/ChatMainList/index.vue
+++ b/src/pages/index/components/chat/ChatMainList/index.vue
@@ -41,7 +41,7 @@
/>
diff --git a/src/pages/index/components/chat/ChatQuickAccess/index.vue b/src/pages/index/components/chat/ChatQuickAccess/index.vue
index a45f79f..98bc89e 100644
--- a/src/pages/index/components/chat/ChatQuickAccess/index.vue
+++ b/src/pages/index/components/chat/ChatQuickAccess/index.vue
@@ -37,7 +37,7 @@ const itemList = ref([
{
icon: "",
title: "呼叫服务",
- type: Command.createWorkOrderCard,
+ type: Command.callServiceCard,
},
{
icon: "https://oss.nianxx.cn/mp/static/version_101/home/more.png",
diff --git a/src/pages/index/components/chat/ChatTopWelcome/index.vue b/src/pages/index/components/chat/ChatTopWelcome/index.vue
index db4653d..6c76b51 100644
--- a/src/pages/index/components/chat/ChatTopWelcome/index.vue
+++ b/src/pages/index/components/chat/ChatTopWelcome/index.vue
@@ -6,7 +6,7 @@
>
-
+
diff --git a/src/pages/index/components/module/MoreService/index.vue b/src/pages/index/components/module/MoreService/index.vue
index 4e3a772..5d4c6b6 100644
--- a/src/pages/index/components/module/MoreService/index.vue
+++ b/src/pages/index/components/module/MoreService/index.vue
@@ -2,7 +2,8 @@