Просмотр исходного кода

Merge branch 'master' into minus

shish 1 год назад
Родитель
Сommit
541f140911

+ 4 - 4
ghsApp/src/admin/billing/index2.vue

@@ -260,7 +260,7 @@ export default {
 	}
 	.tab-view {
 		position: relative;
-		height: calc(100vh - 140upx);
+		height: calc(100vh - 140upx - 120upx); /* 减去购物车高度 */
 		width: 170upx;
 		flex-shrink: 0;
 		background-color: #f0f2f6;
@@ -289,7 +289,7 @@ export default {
 				font-size: 20upx;
 			}
       &:last-child{
-        margin-bottom: 110upx;
+        margin-bottom: 140upx; /* 增加底部边距,确保不被购物车遮挡 */
       }
 		}
 		.active {
@@ -307,7 +307,7 @@ export default {
 		}
 	}
 	.right-box {
-		height: calc(100vh - 140upx);
+		height: calc(100vh - 140upx - 120upx); /* 减去购物车高度 */
 		flex: 1;
 		box-sizing: border-box;
 	}
@@ -315,7 +315,7 @@ export default {
 		padding: 40upx 16upx;
 		//padding: 0 16upx;
     &:last-child{
-      margin-bottom: 70upx;
+      margin-bottom: 140upx; /* 增加底部边距,确保不被购物车遮挡 */
     }
 	}
 	.item_list_title {

+ 45 - 5
ghsApp/src/admin/item/detail.vue

@@ -1301,8 +1301,10 @@ export default {
 </script>
 <style lang="scss" scoped>
 .app-content {
-  min-height: calc(100vh - 100upx);
-  padding-bottom: 150upx;
+  /* 为固定底部留出空间 */
+  padding-bottom: 200upx;
+  /* 使用min-height而不是height,避免内容不足时的问题 */
+  min-height: calc(100vh - 200upx);
 }
 // 公共模块
 .module-com {
@@ -1337,10 +1339,48 @@ export default {
   }
 }
 .app-footer {
-  justify-content: space-evenly;
-  z-index: 9999;
+  /* 使用固定定位确保位置稳定 */
+  position: fixed;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  width: 100%;
+  
+  /* 确保背景和边框 */
+  background-color: #fff;
+  border-top: 1upx solid #eee;
+  
+  /* 适配安全区域 */
+  padding: 20upx 30upx;
+  padding-bottom: calc(20upx + env(safe-area-inset-bottom));
+  
+  /* 强制硬件加速,提升渲染性能 */
+  transform: translateZ(0);
+  -webkit-transform: translateZ(0);
+  
+  /* 确保层级 */
+  z-index: 999;
+  
+  /* 布局方式 */
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  
+  /* 防止被压缩 */
+  flex-shrink: 0;
+  min-height: 100upx;
+  
+  /* 添加阴影增强视觉效果 */
+  box-shadow: 0 -2upx 10upx rgba(0, 0, 0, 0.1);
+  
   .admin-button-com {
-    width: 46%;
+    flex: 0 0 46%;
+    /* 防止按钮变形 */
+    min-height: 80upx;
+    /* 确保按钮内容居中 */
+    display: flex;
+    align-items: center;
+    justify-content: center;
   }
 }
 </style>

+ 45 - 11
ghsApp/src/components/module/app-footer-cart.vue

@@ -45,24 +45,53 @@ export default {
 </script>
 <style lang="scss" scoped>
 .cart-ft_bx {
-	width: 702upx;
-	height: 88upx;
-	background-color: #444444;
+	/* 更稳定的定位方式 */
 	position: fixed;
-	bottom: 15upx;
-	border-radius: 50upx;
-	left: 50%;
-	transform: translate(-50%, 0);
-	z-index: 9999;
-	overflow: hidden;
+	bottom: 0;
+	left: 0;
+	right: 0;
+	
+	/* 使用flex居中替代transform */
+	display: flex;
+	justify-content: center;
+	align-items: flex-end;
+	
+	/* 安全区域适配 */
+	padding-bottom: calc(15upx + env(safe-area-inset-bottom));
+	padding-top: 15upx;
+	
+	/* 背景保护 */
+	background: transparent;
+	pointer-events: none; /* 让背景区域不响应点击 */
+	
+	/* 硬件加速 */
+	transform: translateZ(0);
+	-webkit-transform: translateZ(0);
+	
+	/* 确保层级 */
+	z-index: 999;
 	& .cart-ct_bx {
+		/* 实际的购物车内容 */
+		width: 702upx;
+		max-width: calc(100vw - 40upx); /* 响应式宽度 */
+		height: 88upx;
+		background-color: #444444;
+		border-radius: 50upx;
+		pointer-events: auto; /* 恢复点击响应 */
+		overflow: hidden;
+		
+		/* 防止变形 */
+		flex-shrink: 0;
+		min-height: 88upx;
+		
+		/* 布局设置 */
 		display: flex;
 		align-items: center;
-		height: 100%;
 		& .cart-lf_bx {
 			flex: 1;
 			display: flex;
 			align-items: center;
+			min-width: 0; /* 防止flex子元素溢出 */
 			& .cart-dot_bx {
 				position: relative;
 				width: 72upx;
@@ -97,14 +126,19 @@ export default {
 				color: #ffffff;
 				font-size: 35upx;
 				padding-left: 24upx;
-				width:415upx;
+				width: auto; /* 移除固定宽度 */
+				max-width: calc(100% - 100upx);
 				display: flex;
 				justify-content: center;
+				overflow: hidden;
+				text-overflow: ellipsis;
+				white-space: nowrap;
 			}
 		}
 		& .cart-rg_bx {
 			height: 100%;
 			width: 200upx;
+			flex-shrink: 0; /* 防止按钮被压缩 */
 			text-align: center;
 			font-size: 28upx;
 			color: #ffffff;

+ 2 - 2
ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.2.36",
-    "versionCode" : 1236,
+    "versionName" : "1.2.37",
+    "versionCode" : 1237,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
开发http/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.2.36",
-    "versionCode" : 1236,
+    "versionName" : "1.2.37",
+    "versionCode" : 1237,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
开发https/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.2.36",
-    "versionCode" : 1236,
+    "versionName" : "1.2.37",
+    "versionCode" : 1237,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
线上/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.2.36",
-    "versionCode" : 1236,
+    "versionName" : "1.2.37",
+    "versionCode" : 1237,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {