From 38430ddb8612fce15a2f1c940f9bd57d4da3e70b Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 16 九月 2021 11:59:39 +0800
Subject: [PATCH] add new key

---
 pages/myCarListShow/myCarListShow.vue |  148 ++++++++++++++++++++++++------------------------
 1 files changed, 74 insertions(+), 74 deletions(-)

diff --git a/pages/myCarListShow/myCarListShow.vue b/pages/myCarListShow/myCarListShow.vue
index 20060f1..d90cf68 100644
--- a/pages/myCarListShow/myCarListShow.vue
+++ b/pages/myCarListShow/myCarListShow.vue
@@ -1,92 +1,92 @@
 <template>
-	<view class="content">
-		<uniNavBar title="鎴戠殑杞﹁締" status-bar="true" class="header-bar" background-color="#fff" left-icon="back" color="#000" @clickLeft="goBack" >
-		</uniNavBar>
-		<!-- <div class="gap"></div> -->
-		<view v-if="myCarList.length>0">			
-			<view class='cont' v-for="(i,index) in myCarList" :key="index" >
-				<uni-icons class="del" v-show="isShowEdit" @click="delItem(i)" type="minus-filled" size="20" color="#ff0000"></uni-icons>
-				<text>{{i}}</text>			
-			</view>	
-		</view>
-		<view v-else class="tip">鏆傛棤杞︾墝鍙�,璇疯仈绯荤鐞嗗憳杩涜娣诲姞</view>
+	<view class="content">
+		<uniNavBar title="鎴戠殑杞﹁締" status-bar="true" class="header-bar" background-color="#fff" left-icon="back" color="#000" @clickLeft="goBack" >
+		</uniNavBar>
+		<!-- <div class="gap"></div> -->
+		<view v-if="myCarList.length>0">			
+			<view class='cont' v-for="(i,index) in myCarList" :key="index" >
+				<uni-icons class="del" v-show="isShowEdit" @click="delItem(i)" type="minus-filled" size="20" color="#ff0000"></uni-icons>
+				<text>{{i}}</text>			
+			</view>	
+		</view>
+		<view v-else class="tip">鏆傛棤杞︾墝鍙�,璇疯仈绯荤鐞嗗憳杩涜娣诲姞</view>
 	</view>
 </template>
 
 <script>
 	export default {
 		data() {
-			return {
-				options:[{
-					text: '鍒犻櫎',
-					style: {
-						backgroundColor: '#ff0000'
-					}
-				}],
-				isShowEdit: false,
-				isEditable: true,
-				myCarList:[],
+			return {
+				options:[{
+					text: '鍒犻櫎',
+					style: {
+						backgroundColor: '#ff0000'
+					}
+				}],
+				isShowEdit: false,
+				isEditable: true,
+				myCarList:[],
 			}
 		},
 		methods: {
-			async getCarList(){
-				console.log(JSON.parse(uni.getStorageSync('user')));
-				let {userId} = JSON.parse(uni.getStorageSync('user'));
-				console.log(userId)
-				let res = await this.$api.syncRequest({
-					url: '/basic/api/user/myPlateNos?userId='+userId
-				});
-				if(res.data.success){
-					this.myCarList = res.data.data;
-					
-				}
-			},
-			updateStorage(){
-				let user = JSON.parse(uni.getStorageSync('user'));
-				user.plateNos = this.myCarList;
-				debugger
-				//localStorage.setItem('user',JSON.stringify(user));
-				uni.setStorageSync('user',JSON.stringify(user))
-			},
-			goBack(){
-				uni.navigateBack({
-				    delta: 1,
-				    animationType: 'pop-out',
-				    animationDuration: 200
-				});
+			async getCarList(){
+				console.log(JSON.parse(uni.getStorageSync('user')));
+				let {userId} = JSON.parse(uni.getStorageSync('user'));
+				console.log(userId)
+				let res = await this.$api.syncRequest({
+					url: '/basic/api/user/myPlateNos?userId='+userId
+				});
+				if(res.data.success){
+					this.myCarList = res.data.data;
+					
+				}
 			},
-		},
-		mounted(){
-			//this.getCarList();
-			console.log(JSON.parse(uni.getStorageSync('user')))
-			this.getCarList();
-		},
-		onShow(){
-			console.log(JSON.parse(uni.getStorageSync('user')))
-			this.getCarList();
-		},
-		onBackPress(e){
-			console.log(e);
-			uni.navigateTo({
-				url:'/pages/mine/mine'
-			})
-			return true
+			updateStorage(){
+				let user = JSON.parse(uni.getStorageSync('user'));
+				user.plateNos = this.myCarList;
+				debugger
+				//localStorage.setItem('user',JSON.stringify(user));
+				uni.setStorageSync('user',JSON.stringify(user))
+			},
+			goBack(){
+				uni.navigateBack({
+				    delta: 1,
+				    animationType: 'pop-out',
+				    animationDuration: 200
+				});
+			},
+		},
+		mounted(){
+			//this.getCarList();
+			console.log(JSON.parse(uni.getStorageSync('user')))
+			this.getCarList();
+		},
+		onShow(){
+			console.log(JSON.parse(uni.getStorageSync('user')))
+			this.getCarList();
+		},
+		onBackPress(e){
+			console.log(e);
+			uni.navigateTo({
+				url:'/pages/mine/mine'
+			})
+			return true
 		},
 	}
 </script>
 
 <style>
-	.cont{
-		line-height: 80rpx;
-		height: 80rpx;
-		padding-left: 40rpx;
-		border-bottom: 1px solid #eee;
-	}
-	.tip{
-		height: 100rpx;
-		line-height: 100rpx;
-		text-align: center;
-		color: #999999;
-		font-size: 14px;
+	.cont{
+		line-height: 80rpx;
+		height: 80rpx;
+		padding-left: 40rpx;
+		border-bottom: 1px solid #eee;
+	}
+	.tip{
+		height: 100rpx;
+		line-height: 100rpx;
+		text-align: center;
+		color: #999999;
+		font-size: 14px;
 	}
 </style>

--
Gitblit v1.8.0