常志远 2 years ago
parent
commit
98f5b70f5a
1 changed files with 14 additions and 7 deletions
  1. 14 7
      pages/parents/course/courseDetails.vue

+ 14 - 7
pages/parents/course/courseDetails.vue

@@ -259,7 +259,9 @@
 							</view>
 						
 						  <!-- 加入购物车 -->
-						  <button class="add">加入购物车</button>
+						  <view class="btn-box">
+						  	<button class="add">加入购物车</button>
+						  </view>
 						  <view class="" style="height: 24rpx;">
 						  	
 						  </view>
@@ -726,7 +728,15 @@
 					}
 				}
 	}
-	
+	.btn-box{
+		background-color:#fff;
+		padding: 32rpx;
+		position: fixed;
+		bottom: 0rpx;
+		left: 0rpx;
+		right: 0rpx;
+		z-index: 99;
+	}
 	.add{
 		height: 80rpx;
 		line-height: 80rpx;
@@ -735,11 +745,8 @@
 		color: rgba(255, 255, 255, 1);
 		font-size: 32rpx;
 		text-align: center;
-		// margin-top: 20px;
-		position: fixed;
-		bottom: 20rpx;
-		left: 32rpx;
-		right: 32rpx;
+		
+		
 	}
 	
 }