Pārlūkot izejas kodu

上线前优化

liguorui 7 gadi atpakaļ
vecāks
revīzija
fecd9954c8

+ 25 - 21
components/brandlist/brandlist.wxml

@@ -124,7 +124,7 @@
     {{item.initial}}
   </view>
 </view>
-<scroll-view
+<view
   class="models_c"
   style="{{showmodel?'left:0rpx;':''}}"
   scroll-y=true
@@ -149,23 +149,27 @@
     </view>
     <view class="brandw_title_w">车型</view>
   </view>
-  <view wx:if="{{modellist.length>0}}" class="brandw_list">
-    <block wx:for="{{modellist}}" wx:key="car_model_id">
-      <view 
-        class="brandw_bitem"
-        bindtap="selectModel"
-        data-model="{{item}}"
-      >
-        <view
-          class="brandw_bimg"
-          style="background-image:url({{serieslist.belong.img}})"
-        />
-        <view class="brandw_bname">{{item.car_model_name}}</view>
-      </view>
-    </block>
-  </view>
-  <view wx:else class="no_model">
-    暂无车型信息
-  </view>
-
-</scroll-view>
+  <scroll-view
+    scroll-y=true
+    style="height: {{windowh-headerheight}}rpx;"
+  >
+    <view wx:if="{{modellist.length>0}}" class="brandw_list">
+      <block wx:for="{{modellist}}" wx:key="car_model_id">
+        <view 
+          class="brandw_bitem"
+          bindtap="selectModel"
+          data-model="{{item}}"
+        >
+          <view
+            class="brandw_bimg"
+            style="background-image:url({{serieslist.belong.img}})"
+          />
+          <view class="brandw_bname">{{item.car_model_name}}</view>
+        </view>
+      </block>
+    </view>
+    <view wx:else class="no_model">
+      暂无车型信息
+    </view>
+  </scroll-view>
+</view>

+ 2 - 0
components/brandlist/brandlist.wxss

@@ -134,6 +134,7 @@
 .series_lelong{
 	height: 78rpx;
 	line-height: 78rpx;
+	overflow: hidden;
 }
 .series_lelong_bimg{
 	height:60rpx;
@@ -150,6 +151,7 @@
 	display:inline;
 }
 .car_series_t{
+	text-align: left;
 	text-indent: 28rpx;
 	height: 44rpx;
 	line-height: 44rpx;

BIN
img/1.png


BIN
img/10.png


BIN
img/11.png


BIN
img/12.png


BIN
img/13.png


BIN
img/14.png


BIN
img/2.png


BIN
img/3.png


BIN
img/4.png


BIN
img/5.png


BIN
img/6.png


BIN
img/7.png


BIN
img/8.png


BIN
img/9.png


BIN
img/delete2.png


+ 1 - 0
module/caritem/caritem.wxss

@@ -47,6 +47,7 @@
 .caritem_store{
   height: 28rpx;
   margin-left:10rpx;
+  padding:0rpx 5rpx;
   max-width:114rpx;
   overflow: hidden;
   white-space: nowrap;

+ 1 - 1
pages/buy/buy.wxml

@@ -24,7 +24,7 @@
   <!--筛选模块-->
   <view 
     class="filter_c"
-    style="{{filterlock?'position: absolute; top:0rpx':'position: fixed; top:'+(headerheight+topsearchheight)+'rpx;'}}"
+    style="{{filterlock?'position: absolute; top:0rpx':'position: fixed; top:'+(headerheight+topsearchheight-1)+'rpx;'}}"
     >
     <view class="filter_nav">
       <block wx:for="{{filters}}" wx:key="name">

+ 11 - 1
pages/buy/buy.wxss

@@ -177,7 +177,17 @@
 	color: rgba(56, 55, 53, 1);
 	background-color: rgba(248, 248, 250, 1);
 	border:1px solid rgba(248, 248, 250, 1);
-	text-align: center;
+	text-align: left;
+	position: relative;
+	text-indent: 90rpx;
+}
+.more_detail_i image{
+	position: absolute;
+	height: 22rpx;
+	width: 22rpx;
+	margin-right: 10rpx;
+	top:30rpx;
+	left:58rpx;
 }
 .more_detail_active{
 	background: rgba(255, 230, 0, 0.1);

+ 1 - 0
pages/buy/more.wxml

@@ -135,6 +135,7 @@
         data-value="{{item.colour_id}}"
         bindtap="getMoreFilter"
       >
+        <image src="../../img/{{item.colour_id}}.png"/>
         {{item.colour_name}}
       </view>
     </view>

+ 7 - 5
pages/cardetail/cardetail.wxml

@@ -339,10 +339,9 @@
 		</view>
 	</view>
 </view>
-<scroll-view
+<view
   class="check_c"
   style="{{showcheck?'left:0rpx;':''}}"
-  scroll-y=true
   wx:if="{{detail.check_info.length>0}}"
 >
 	<view      
@@ -360,7 +359,10 @@
 	    </view>
 		<view class="check_title_w">检测报告</view>
 	</view>
-	<view class="cardetail_check_report">
+	<scroll-view 
+		style="height:{{windowh-headerheight}}rpx;"
+  		scroll-y=true
+		class="cardetail_check_report">
 		<view class="checkw_result">
 			{{detail.check_result}}
 		</view>
@@ -401,6 +403,6 @@
 				</view>
 			</view>
 		</block>  
-	</view>
-</scroll-view>
+	</scroll-view>
+</view>
 <include src="../../module/logs/logs.wxml"/>

+ 23 - 18
pages/cardetail/cardetail.wxss

@@ -18,6 +18,7 @@
 	border-bottom: 6rpx solid white;
 	color:#383735;
 	text-align: center;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .cardetail_nav_active{
 	border-bottom: 6rpx solid #FFE600;
@@ -66,15 +67,18 @@
 	height: 282rpx;
 	background-color:white;
 	overflow: hidden;
+	display: flex;
+	flex-direction:column;
+	justify-content:center;
 }
 .cardetail_t{
-	margin-top:30rpx;
-	height: 32rpx;
 	line-height: 32rpx;
 	color: rgba(56, 55, 53, 1);
 	font-size: 32rpx;
-	text-align: center;
-	font-family: PingFangSC-Medium;
+	max-width:654rpx;
+	margin:0rpx auto;
+	text-align: left;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .cardetail_price{
 	margin-top:20rpx;
@@ -89,7 +93,7 @@
 	color:#BFA368;
 	margin:0rpx 30rpx 0rpx 10rpx;
 	font-size: 42rpx;
-	font-family: PingFangSC-Medium;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .cardetail_price_n{
 	display: inline;
@@ -114,12 +118,11 @@
 	line-height: 32rpx;
 	color: rgba(56, 55, 53, 1);
 	font-size: 32rpx;
-	text-align: center;
-	font-family: PingFangSC-Medium;
-	font-weight: bold;
+	text-align: center;	
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .cardetail_flex_name{
-	margin-top:20rpx;
+	margin-top:10rpx;
 	height: 28rpx;
 	line-height: 42rpx;
 	color: rgba(135, 135, 135, 1);
@@ -141,7 +144,7 @@
 	color: #383735;
 	font-size: 32rpx;
 	margin-top:22rpx;
-	font-family: PingFangSC-Medium;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .cardetail_shop_d{
 	height: 36rpx;
@@ -216,7 +219,7 @@
 	line-height: 32rpx;
 	color: rgba(104, 104, 104, 1);
 	font-size: 32rpx;
-	text-indent:30rpx;
+	text-indent:10rpx;
 	border-left:6rpx solid #FFE600;
 	margin:0rpx 40rpx;
 }
@@ -227,20 +230,20 @@
 }
 .cardetail_baseinfo_i{
 	width:33.3%;
-	padding: 20rpx 0rpx;
+	padding: 30rpx 0rpx 10rpx;
 }
 .cardetail_baseinfo_v{
 	height: 48rpx;
 	line-height: 48rpx;
 	color: rgba(56, 55, 53, 1);
-	font-size: 26rpx;
-	font-family: NotoSansHans-Medium;
+	font-size: 30rpx;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .cardetail_baseinfo_n{
 	height: 36rpx;
 	line-height: 36rpx;
 	color: rgba(155, 155, 155, 1);
-	font-size: 24rpx;
+	font-size: 26rpx;
 }
 
 .cardetail_collocate{
@@ -513,7 +516,7 @@
 }
 .scheme_condition_po{
 	color:black;
-	font-weight: bold;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 
 
@@ -553,6 +556,7 @@
 	height: 44rpx;
 	line-height: 44rpx;
 	text-align: center;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .checkw_result{
 	width: 654rpx;
@@ -576,7 +580,8 @@
 	font-size: 28rpx;
 	text-align: left;
 	text-indent: 48rpx;
-	font-family: NotoSansHans-Medium;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
+	border-bottom: 1rpx solid rgba(235, 235, 235, 1); 
 }
 .cardetailw_check_si{
 
@@ -623,7 +628,7 @@
 	color: rgba(104, 104, 104, 1);
 	font-size: 26rpx;
 	font-family: NotoSansHans-DemiLight;
-	border-bottom: 1rpx solid rgba(235, 235, 235, 1); 
+	border-top: 1rpx solid rgba(235, 235, 235, 1); 
 }
 .cardetailw_check_titn::last{
 	border-bottom: 0rpx; 

+ 2 - 3
pages/collect/collect.wxss

@@ -26,7 +26,6 @@
 	background: linear-gradient(270deg,#FFD800,#FFE600);
 	color: rgba(56, 55, 53, 1);
 	font-size: 26rpx;
-	text-align: center;
-	font-family: PingFangSC-Regular,NotoSansHans-DemiLight;
-	font-weight: bold;
+	text-align: center;	
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }

+ 2 - 1
pages/evaluate/evaluate.js

@@ -190,7 +190,8 @@ Page({
   // },
   getMileage:function(e){
     var mileage = e.detail.value;
-    if(mileage>10){
+    var sn = mileage.split(".")[1];
+    if(mileage>=100||sn&&sn.length>1){
       wx.showToast({
         title:"行驶里程最多为一位整数和一位小数",
         icon:"none"

+ 3 - 4
pages/evaluate/evaluate.wxss

@@ -68,7 +68,7 @@
 	font-size: 30rpx;
 	text-align: center;
 	border-radius: 6rpx;
-	font-family: PingFangSC-Regular,NotoSansHans-DemiLight;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 
 
@@ -116,7 +116,7 @@
 	margin:30rpx auto 0rpx;
 	width:578rpx;
 	color:#383735;
-	font-weight: bold;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .show_evaluate_dt{
 	color: #878787;
@@ -140,7 +140,7 @@
 	flex: 1;	
 }
 .show_evaluate_tpn{
-	width: 120rpx;
+	width: 130rpx;
 	height: 44rpx;
 	margin:10rpx auto 10rpx;
 	line-height: 44rpx;
@@ -205,5 +205,4 @@
 	font-size: 20rpx;
 	text-align: center;
 	font-family: PingFangSC-Medium,NotoSansHans-Medium;
-	font-weight: bold;
 }

+ 1 - 2
pages/hot/hot.wxss

@@ -26,8 +26,7 @@
 	color: rgba(56, 55, 53, 1);
 	font-size: 26rpx;
 	text-align: center;
-	font-family: PingFangSC-Regular,NotoSansHans-DemiLight;
-	font-weight: bold;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 
 .hot_car_item{

+ 1 - 2
pages/mybuy/mybuy.wxss

@@ -26,6 +26,5 @@
 	color: rgba(56, 55, 53, 1);
 	font-size: 26rpx;
 	text-align: center;
-	font-family: PingFangSC-Regular,NotoSansHans-DemiLight;
-	font-weight: bold;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }

+ 1 - 0
pages/myloan/myloan.wxss

@@ -76,6 +76,7 @@
 	font-size: 26rpx;
 	margin: 60rpx auto;
 	text-align: center;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .myloan_condition{
 	text-indent: 80rpx;

+ 1 - 2
pages/mysuggest/mysuggest.wxss

@@ -25,6 +25,5 @@
 	color: rgba(56, 55, 53, 1);
 	font-size: 26rpx;
 	text-align: center;
-	font-family: PingFangSC-Regular,NotoSansHans-DemiLight;
-	font-weight: bold;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }

+ 1 - 2
pages/orderdetail/orderdetail.wxss

@@ -33,8 +33,7 @@
 	line-height: 38rpx;
 	color: rgba(33, 36, 37, 1);
 	font-size: 28rpx;
-	font-weight: bold;
-	font-family: NotoSansHans-Bold;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .order_de_v image{
 	width:140rpx;

+ 13 - 9
pages/sell/sell.js

@@ -19,12 +19,8 @@ Page({
     series:{},
     brandlistshow:false,
     //selectseries:{},
-    imgs:[
-      "",
-      "",
-      "",
-      ""
-    ],
+    imgssp:["","","",""],
+    imgs:[],
     date:"2018-01-01"
   },
 
@@ -193,7 +189,8 @@ Page({
         var tempFilePaths = res.tempFilePaths[0];
         upload(pathmap.uploadimg,tempFilePaths,function(json){
           var imgs = _self.data.imgs;
-          imgs.splice(index,1,JSON.parse(json.data).url);
+          imgs.push(JSON.parse(json.data).url);
+          //imgs.splice(index,1,JSON.parse(json.data).url);
           _self.setData({imgs:imgs});
         })
       }
@@ -201,9 +198,10 @@ Page({
   },
   getMileage:function(e){
     var mileage = e.detail.value;
-    if(mileage>10){
+    var sn = mileage.split(".")[1];
+    if(mileage>=100||sn&&sn.length>1){
       wx.showToast({
-        title:"行驶里程最多为位整数和一位小数",
+        title:"行驶里程最多为位整数和一位小数",
         icon:"none"
       })
       this.setData({mileage:this.data.mileage});
@@ -260,5 +258,11 @@ Page({
       brandlistshow:false,
       series:series
     })
+  },
+  deletePic:function(e){
+    var index = e.currentTarget.dataset.index;
+    var imgs = this.data.imgs;
+    imgs.splice(index,1);
+    this.setData({imgs:imgs});
   }
 })

+ 11 - 5
pages/sell/sell.wxml

@@ -178,18 +178,24 @@
 	  	<view
 	  		class="upload_img_list"
 	  	>
-	  		<block wx:for="{{imgs}}" wx:key="{{item}}">
+	  		<block wx:for="{{imgssp}}" wx:key="{{item}}">
 	  			<view class="upload_img_item">
 			  		<image
 			  			data-index="{{index}}"
 			  			bindtap="uploadImg"
 			  			class="upload_img_item_pic"
-			  			src="{{item||'../../img/upload.png'}}"
+			  			src="{{imgs[index]||'../../img/upload.png'}}"
 			  		/>
-			  		<image 
-			  			class=""
-			  			src="../../img/delete.png"
+			  		<view 
+			  			data-index="{{index}}"
+			  			bindtap="deletePic"
+			  			wx:if="{{imgs[index]}}"
+			  			class="upload_img_item_deletebg">
+				  		<image 
+				  			class="upload_img_item_delete"
+				  			src="../../img/delete2.png"
 			  			/>
+			  		</view>
 		  		</view>
 	  		</block>
 	  	</view>

+ 16 - 2
pages/sell/sell.wxss

@@ -68,7 +68,7 @@
 }
 
 .upload_img_box{
-	border-top: 1px solid rgba(235, 235, 235, 1);
+	border-top: 1rpx solid rgba(235, 235, 235, 1);
 	background-color: white;
 	padding-bottom: 40rpx;
 }
@@ -88,12 +88,26 @@
 	width:143rpx;
 	height: 143rpx;
 	margin-left:34rpx;
+	position: relative;
 }
 .upload_img_item_pic{	
 	width:143rpx;
 	height: 143rpx;
 	display: block;
 }
+.upload_img_item_deletebg{
+	position: absolute;
+	top:0rpx;
+	left:0rpx;
+	width:143rpx;
+	height: 143rpx;
+	background-color: rgba(33, 36, 37, 0.3);
+}
+.upload_img_item_delete{
+	width:24rpx;
+	height: 24rpx;
+	margin:59rpx;
+}
 
 .sub_sell{
 	width:620rpx;
@@ -105,7 +119,7 @@
 	color: rgba(56, 55, 53, 1);
 	font-size: 30rpx;
 	text-align: center;
-	font-family: PingFangSC-Regular,NotoSansHans-DemiLight;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 .sell_bottom_banner{
 	display: block;

+ 3 - 3
pages/shop/shop.wxss

@@ -37,12 +37,12 @@
 	height: 20rpx;
 }
 .total_count{
+  margin-top: 30rpx;
   background-color: #F9F9F9;
-  height: 66rpx;
-  line-height: 76rpx;
+  height: 30rpx;
+  line-height: 30rpx;
   color: rgba(0, 0, 0, 1);
   font-size: 26rpx;
-  font-weight: bold;
   font-family: PingFangSC-Medium,NotoSansHans-Medium;
   text-indent: 38rpx;
 }

+ 1 - 2
pages/test/test.wxss

@@ -26,8 +26,7 @@
 	color: rgba(56, 55, 53, 1);
 	font-size: 26rpx;
 	text-align: center;
-	font-family: PingFangSC-Regular,NotoSansHans-DemiLight;
-	font-weight: bold;
+	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
 
 .hot_car_item{

+ 1 - 1
pages/usercenter/usercenter.wxss

@@ -6,7 +6,7 @@
 }
 .usercenter_top_b{
 	width: 750rpx;
-	background:linear-gradient(270deg,#FFD800,#FFE600);
+	background:#fede18;
 	overflow: hidden;
 	padding-bottom: 20rpx;
 }