浏览代码

bug修改

twt 3 天之前
父节点
当前提交
7ef815141e
共有 3 个文件被更改,包括 16 次插入2 次删除
  1. 11 2
      pages/index/index.vue
  2. 1 0
      pages/index/search.vue
  3. 4 0
      pages/index/sgoodsList.vue

+ 11 - 2
pages/index/index.vue

@@ -205,10 +205,16 @@
 		   this.aaa= `calc(100vh - ${bb} - ${cc})`
 		},
 		onShow() {
+			console.log("onShow")
 			this.vincarActiveNum=1
-			if(this.openId){
-				this.queryHistory()
+			var wxdata = uni.getStorageSync("wxdata");
+			if(wxdata.openid){
+				this.openId=wxdata.openid
+				if(this.openId){
+					this.queryHistory()
+				}
 			}
+			
 		},
 		methods: {
 			vincarActiveFn(num){
@@ -298,6 +304,9 @@
 							
 						}
 					})
+					if(this.historyList.length>0){
+						this.historyvin=this.historyList[0].vin
+					}
 					this.historyvinLoding=true	
 					var bb= this.iStatusBarHeight + 44 + 'px';
 					var cc='520rpx'

+ 1 - 0
pages/index/search.vue

@@ -357,6 +357,7 @@
 	width: 36rpx;height: 36rpx;padding-top: 23rpx;padding-bottom: 10px;padding-right: 10rpx;
 	position: absolute;
 	    right: 0;
+		z-index: 11;
 }
 .simg{
 	width: 36rpx;height: 34rpx;margin-top: 23rpx;margin-left:30rpx;

+ 4 - 0
pages/index/sgoodsList.vue

@@ -154,6 +154,9 @@
 				 this.MaintainPartList=[]
 				 this.queryMaintainPartList()
 			 },
+			 searchDel(){
+				this.name='' 
+			 },
              queryMaintainPartList(){
 				 this.loading=false;
 				 uni.showLoading({ title: '加载中'});
@@ -458,6 +461,7 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
 		width: 36rpx;height: 36rpx;padding-top: 23rpx;padding-bottom: 10px;padding-right: 24rpx;
 		position: absolute;
 		    right: 0;
+			z-index: 11;
 	}
 	.simg{
 		width: 36rpx;height: 34rpx;margin-top: 25rpx;margin-left:30rpx;