Просмотр исходного кода

feat:不在默认选中第一个服务对象

zhanghui 2 лет назад
Родитель
Сommit
bfbd6b6562
1 измененных файлов с 19 добавлено и 17 удалено
  1. 19 17
      orderPages/storeService/index.vue

+ 19 - 17
orderPages/storeService/index.vue

@@ -184,23 +184,25 @@
 					console.log(res)
 					this.serviceObjectList = res.data.data
 					this.getImgUrlByBannerOssId(this.serviceObjectList);
-					if (this.periodTimeList.length >0){
-						this.orderParam.childService = [],
-								this.serviceObjectList[0].select = true
-						let periodTimeList = JSON.parse(JSON.stringify(this.periodTimeList))
-						periodTimeList[0].select = true
-						let childService = {
-							periodDate: '',
-							serviceObjectId: this.serviceObjectList[0].id,
-							facePhotoUrl: this.serviceObjectList[0].facePhotoUrl,
-							nickName: this.serviceObjectList[0].nickName,
-							serviceUserId: -1,
-							fee: '',
-							serviceStartTime: periodTimeList[0].label,
-							periodTimeList:periodTimeList
-						}
-						this.orderParam.childService.push(childService)
-					}
+
+					//不再默认选中第一个
+					// if (this.periodTimeList.length >0){
+					// 	this.orderParam.childService = [],
+					// 			this.serviceObjectList[0].select = true
+					// 	let periodTimeList = JSON.parse(JSON.stringify(this.periodTimeList))
+					// 	periodTimeList[0].select = true
+					// 	let childService = {
+					// 		periodDate: '',
+					// 		serviceObjectId: this.serviceObjectList[0].id,
+					// 		facePhotoUrl: this.serviceObjectList[0].facePhotoUrl,
+					// 		nickName: this.serviceObjectList[0].nickName,
+					// 		serviceUserId: -1,
+					// 		fee: '',
+					// 		serviceStartTime: periodTimeList[0].label,
+					// 		periodTimeList:periodTimeList
+					// 	}
+					// 	this.orderParam.childService.push(childService)
+					// }
 
 				})
 			},