Browse Source

样式bug调整

zhengkaixin 1 year ago
parent
commit
6a4fb6b647
3 changed files with 32 additions and 30 deletions
  1. 27 25
      pages/user/car/carDet.vue
  2. 4 2
      pages/user/dataSet.vue
  3. 1 3
      pages/user/index.vue

+ 27 - 25
pages/user/car/carDet.vue

@@ -60,7 +60,8 @@
 		
 		<p class="car-num"  v-show="!keyShow">
 					
-					 车辆认证
+					 车辆认证 <span id="talkbubble"  v-if="!carLicense">首次认证送5元代金卷</span>
+			
 			<view style="font-size: 12px;color:rgba(51, 51, 51, 1);margin: 2px 0;">上传机动车行驶证清晰照片</view>
 		</p>
 		<view class="car-type" v-show="!keyShow">
@@ -78,9 +79,7 @@
 				<image class="carAuthImg"  @click="uploadPhoto" v-show="!carAuthImg" src="@/assets/img/carDet/authtest.png"></image>
 				
 			</view>
-			<view class="position" v-if="!carLicense">
-				<view id="talkbubble">首次认证送5元代金卷</view>
-			</view>
+			
 		</view>
 		
 		<ucarkeyboard ref="uKeyboard" mode="car"
@@ -114,7 +113,10 @@
 			 		style="color: #3fbd70;">《个人信息处理授权书》</span>
 			 
 			 </view>
-			 <u-button class="login-btn" type="success" shape="circle" @click="keepCar">保存</u-button>
+			 <u-button class="login-btn" v-if="!carLicense" type="success" shape="circle" @click="keepCar">保存</u-button>
+			<u-button  class="login-btn2"  v-if="carLicense" type="info" shape="circle">已认证</u-button>
+						
+			
 			 <view>.</view>
 			 
 		</view>
@@ -548,8 +550,15 @@
 						obj.carLicense=this.carAuthImg
 						this.carhelp.setPersonInfo(obj)
 					}
+					uni.showModal({
+						title:"提示",
+						content: "操作成功",
+						showCancel: false,
+						success: res => {
+							this.gotoLink()
+						}
+					})
 					
-					this.gotoLink()
 				}).catch(error => {
 					uni.hideLoading();
 					uni.showModal({
@@ -633,6 +642,14 @@
 		color: #fff !important;
 	}
 	
+	.login-btn2 {
+		//margin: 28px;
+		margin-top: 12px;
+		background-color: #9E9E9E  !important;
+		border-color: #9E9E9E  !important;
+		color: #fff !important;
+	}
+	
 	.car-type{
 		    display: flex;
 		    flex-direction: row;
@@ -759,19 +776,12 @@
 		}
 	}
 	
-	.position {
-		    position: relative;
-		    top: -520rpx;
-		    left: 54%;
-		    z-index: 999;
-		    width: 130px;
-	}
+	 
 	
 	#talkbubble {
+		margin-left: 10px;
 		
-		top: 0;
-		left: 0;
-		padding: 0 10rpx;
+		padding: 2px 10rpx;
 		line-height: 20px;
 		font-size: 12px;
 		color: #fff;
@@ -781,15 +791,7 @@
 		text-align: center;
 	}
 	
-	#talkbubble:before {
-		content: "";
-		position: absolute;
-		top: 100%;
-		right: 25%;
-		border-top: 5px solid red;
-		border-right: 5px solid transparent;
-		border-left: 5px solid transparent;
-	}
+	 
 	
 
 </style>

+ 4 - 2
pages/user/dataSet.vue

@@ -263,9 +263,11 @@ import {
 		},
 		methods: {
 			 
-			carClick() {
+			carClick() {
+				var url='/pages/user/car/carDet' 
+				
 				uni.navigateTo({
-					url: '/pages/user/car/carDet?id=' + this.carList.id
+					url: url
 				})
 				
 			},

+ 1 - 3
pages/user/index.vue

@@ -514,9 +514,7 @@
 				
 				if (this.userId) {
 					var url='/pages/user/car/carDet'
-					if(this.personInfo.carId){
-						url+="?id="+this.personInfo.carId
-					}
+					
 					uni.navigateTo({
 						url:  url
 					})