Przeglądaj źródła

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

zhanghui 2 lat temu
rodzic
commit
6027a4354b
2 zmienionych plików z 17 dodań i 17 usunięć
  1. 2 2
      orderPages/bookService/index.vue
  2. 15 15
      orderPages/storeService/index.vue

+ 2 - 2
orderPages/bookService/index.vue

@@ -339,7 +339,7 @@
 					}
 					if (bindPickerChange){
 						if (this.orderParam.childService.length === 0){
-							this.selectServiceObject(this.serviceObjectList[0])
+							// this.selectServiceObject(this.serviceObjectList[0])
 						}else {
 							this.serviceObjectList.forEach(i=>{
 								if (i.select){
@@ -392,7 +392,7 @@
 						})
 					}
 					if (i === 0){
-						this.selectServiceObject(items[i])
+						// this.selectServiceObject(items[i])
 					}
 				}
 			},

+ 15 - 15
orderPages/storeService/index.vue

@@ -184,21 +184,21 @@
 					console.log(res)
 					this.serviceObjectList = res.data.data
 					this.getImgUrlByBannerOssId(this.serviceObjectList);
-					this.orderParam.childService = [],
-					this.serviceObjectList[0].select = true
-					let periodTimeList = JSON.parse(JSON.stringify(this.periodTimeList))
-					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
-					}
-					periodTimeList[0].select = true
-					this.orderParam.childService.push(childService)
+					// this.orderParam.childService = [],
+					// this.serviceObjectList[0].select = true
+					// let periodTimeList = JSON.parse(JSON.stringify(this.periodTimeList))
+					// 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
+					// }
+					// periodTimeList[0].select = true
+					// this.orderParam.childService.push(childService)
 				})
 			},
 			// 获取图片