lindaobin 4 年之前
父节点
当前提交
f446f75cab
共有 1 个文件被更改,包括 13 次插入16 次删除
  1. 13 16
      components/page-component/goods/u-attr.vue

+ 13 - 16
components/page-component/goods/u-attr.vue

xqd xqd xqd
@@ -185,26 +185,23 @@
 				})
 			},
 			select_service(index){
-				if(this.serviceId && this.serviceId == index){
+				if( this.serviceId == index){
 					this.serviceId = null
+					this.screenDescription=""
 				}else{
 					this.serviceId = index
+					this.screenDescription=this.service_screen.screenList[index]['description']||''
 				} 
-				if(this.serviceId || this.serviceId===0){
-					this.service_screen.screenList.forEach((item,index)=>{
-						console.log(index)
-						console.log(this.serviceId)
-						this.screenDescription=this.service_screen.screenList[index]['description']||''
+			// 	if(this.serviceId || this.serviceId===0){
+			// 		this.service_screen.screenList.forEach((item,index)=>{
+			
+			// 			this.screenDescription=this.service_screen.screenList[index]['description']||''
 						
-						if(index == this.serviceId){
-							this.service_label = item
-							this.card_id = this.service_screen.screenList['card_id']
-							console.log(this.screenDescription)
-						}
-					})
-				}else{
-					this.service_label = null
-				}
+					
+			// 		})
+			// 	}else{
+			// 		this.service_label = null
+			// 	}
 			},
 			getservice(copyGroup, attrNum_0, select){
 				console.log('getservice,164')
@@ -235,6 +232,7 @@
 				
 					if(item.id==this.checked.id){
 						that.service_screen = item
+						that.select_service(0);
 						 
 					}
 				
@@ -330,7 +328,6 @@
 				console.log(copyAttr)
 				console.log(attrNum_0)
 				console.log(select)
-				
                 this.selectCheck(copyAttr, attrNum_0, select); 
 				
                 this.$nextTick(() => {