浏览代码

样式优化

twt 3 天之前
父节点
当前提交
e7030a3faa
共有 2 个文件被更改,包括 13 次插入4 次删除
  1. 7 3
      pages/index/goodsDetail.vue
  2. 6 1
      pages/index/goodsList.vue

+ 7 - 3
pages/index/goodsDetail.vue

@@ -97,8 +97,12 @@
 
 <style scoped>
 .swiper-itemImg{
-	width: 750rpx;
-	height: 750rpx;
+	width: 740rpx;
+	height: 740rpx;
+	border: 1px solid #eaeaea;
+}
+.swiper-item{
+	text-align: center;
 }
 .uni-margin-wrap{
 	height: 750rpx;
@@ -152,7 +156,7 @@
 .msBox{
 	background: #F8F8F8;
 	    padding-bottom: 10rpx;
-
+    margin-top: 16rpx;
 }
 .dian{
 	display: inline-block;

+ 6 - 1
pages/index/goodsList.vue

@@ -132,7 +132,9 @@
 				   {name:'鸿雁',id:'8fa5f395-86c7-4488-b4ea-ac058c7ae330',ck:false},
 			   ],
 			   brandId:'',
-			   defaultPic:'../../static/goods-image/defaultPic.png'
+			   defaultPic:'../../static/goods-image/defaultPic.png',
+			   isVin:'',
+			   vin:'',
 			}
 		},
 		onLoad(opt) {
@@ -303,6 +305,9 @@
 					  this.loading=true;
 				 	  uni.hideLoading();
 				 	  this.MaintainPartList=res.data
+					  if(this.MaintainPartList.length>1){
+						  this.MaintainPartList.reverse()
+					  }
 					  this.oldMaintainPartList=res.data
 					 // this.modelRemarkTab(1)
 				 })