twt преди 2 години
родител
ревизия
28f0ee4f68
променени са 5 файла, в които са добавени 24 реда и са изтрити 13 реда
  1. 2 1
      components/tki-float-keyboard/style.css
  2. 1 1
      components/tki-float-keyboard/tki-float-keyboard.vue
  3. 4 1
      pages/index/index.vue
  4. 16 9
      pages/user/addCar/addCar.vue
  5. 1 1
      utils/request.js

Файловите разлики са ограничени, защото са твърде много
+ 2 - 1
components/tki-float-keyboard/style.css


+ 1 - 1
components/tki-float-keyboard/tki-float-keyboard.vue

@@ -135,7 +135,7 @@
 		<view class="_flkey-bot">
 		</view>
 	</view>
-	<view class="tikbox" v-if='keyShow' @click="tikhide"></view>
+	<!-- <view class="tikbox" v-if='keyShow' @click="tikhide"></view> -->
 	</view>
 </template>
 

+ 4 - 1
pages/index/index.vue

@@ -634,7 +634,10 @@
 					  text: '首页',
 					   selectedIconPath: backgroundImage
 					})
-					that.queryHomeCardList()
+					if(res.code==0){
+						that.queryHomeCardList()
+					}
+					
 					//that.wxPhoneLogin()
 					this.$store.commit('mutationswxOpenData', that.wxOpenData)
 					uni.setStorage({

+ 16 - 9
pages/user/addCar/addCar.vue

@@ -7,7 +7,7 @@
 			<view class="mesView">
 				<view class="leftTitle">车牌号</view>
 				<input class="plateNumber" placeholder-style="color:#999999" placeholder="请输入车牌号" disabled="true"
-					@tap="plateShow=true" v-model.trim="plateNo" />
+					@tap="plateShow=true,bb()" v-model.trim="plateNo" />
 				<plate-input v-if="plateShow" :plate="plateNo" @export="setPlate" @close="plateShow=false" />
 
 			
@@ -16,13 +16,13 @@
 			
 			<view class="mesView">
 				<view class="leftTitle">VIN</view>
-				<input class="vinInput selectColor" type="text" v-model="vin" placeholder="请输入"
-					placeholder-style="color:#999999" /> 
-					<!-- <view class="vinInput selectColor" @click="aaa">
+				<!-- <input class="vinInput selectColor" type="text" v-model="vin" placeholder="请输入"
+					placeholder-style="color:#999999" /> -->
+					 <view class="vinInput selectColor" @click="aaa">
 						<span v-if="vin">{{vin}}</span>
 						<span v-else style="color:#999999">请输入VIN</span>
 					</view>
-				<view class="kmStr"></view> -->
+				<view class="kmStr"></view> 
 			</view>
 			<view class="line"></view>
 
@@ -34,7 +34,7 @@
 			</view>
 			<view class="line"></view>
 			
-			<view class="mesView">
+			<view class="mesView" @click="bb">
 				<view class="leftTitle">行驶里程</view>
 				<input class="mileageInput selectColor" type="number" v-model="mileage" placeholder="请输入"
 					placeholder-style="color:#999999" />
@@ -42,7 +42,7 @@
 			</view>
 			<view class="line"></view>
 			
-			<view class="mesView">
+			<view class="mesView" @click="bb">
 				<view class="leftTitle">注册登记时间</view>
 				<picker class="timeBtn" @change="bindChange" mode="date" :end="currentdate" :value="time">
 					<view class="uni-input selectColor" v-if="time">{{time}}</view>
@@ -135,16 +135,22 @@
 			},
 			keyVal(v){
 				console.log(v) 
+				if(this.vin==null){
+					this.vin=''
+				}
 				this.vin=this.vin + v.toString()
 			},
 			keyShow(){
-							 
+					
 			},
 			keyHide(){
 							 
+			},
+			bb(){
+				this.$refs.keyb._keyHide() //隐藏键盘
 			},
 			aaa(){
-			   this.$refs.keyb._keyShow() //显示键盘
+			   this.$refs.keyb._keyShow() //显示键盘		 
 			},
 			onConfirm(e) {
 				console.log(e)
@@ -210,6 +216,7 @@
 				})
 			},
 			goCarModel() {
+				this.bb()
 				uni.navigateTo({
 					url: 'carModel'
 				})

+ 1 - 1
utils/request.js

@@ -61,7 +61,7 @@ const http = (url = '', date = {}, type = 'POST', header = {
 				  uni.showToast({
 				      title: res.data.msg,
 				  	 icon:'none',
-				      duration: 3000,
+				      duration: 4000,
 				  });
 			}
             resolve(res.data);