Browse Source

feat: 优化小程序

xiansin 2 years ago
parent
commit
9a41d0a740
2 changed files with 12 additions and 6 deletions
  1. 1 0
      mini/pages/case/detail.vue
  2. 11 6
      mini/pages/product/detail.vue

+ 1 - 0
mini/pages/case/detail.vue

xqd
@@ -56,5 +56,6 @@ image,video{
 </style>
 <style lang="scss" scoped>
 .product-detail {
+  padding: 0 8rpx;
 }
 </style>

+ 11 - 6
mini/pages/product/detail.vue

xqd xqd
@@ -226,19 +226,21 @@ export default {
   }
 }
 </script>
-
 <style lang="scss" scoped>
 .product-detail {
-  padding: 20rpx 20rpx 0;
-  width: 710rpx;
+  padding: 20rpx 0rpx 120rpx;
   height: 100vh;
   .cases{
+    width: 740rpx;
+    margin: 0 auto;
     .full-img{
-      width: 710rpx;
-      margin-bottom: 10rpx;
+      width: 740rpx;
+      margin-bottom: -8rpx;
     }
   }
   .file{
+    width: 710rpx;
+    margin: 0 auto;
     .header{
       padding: 20rpx 0;
       .left{
@@ -265,13 +267,16 @@ export default {
     }
   }
   .price{
-    margin: 50rpx 0;
+    width: 710rpx;
+    margin: 50rpx auto;
     .number{
       max-width: 320rpx;
     }
   }
   .specs{
     padding-bottom: 80rpx;
+    width: 710rpx;
+    margin: 0 auto;
     .spec-item{
       color: #333;
       margin-bottom: 30rpx;