|
@@ -136,15 +136,15 @@
|
|
|
_this.labelList = arr
|
|
|
},0)
|
|
|
// 时段价格
|
|
|
- console.log(this.carWashInfo)
|
|
|
this.setPeriodPrice(this.carWashInfo.storeItemPriceDTOList)
|
|
|
},
|
|
|
// 时段价格 赋值处理
|
|
|
setPeriodPrice(storeItemPriceDTOList){
|
|
|
let arrInd = 0
|
|
|
this.storeItemPriceDTOList = []
|
|
|
- for (var key in storeItemPriceDTOList) {
|
|
|
+ for (let key in storeItemPriceDTOList) {
|
|
|
if (storeItemPriceDTOList.hasOwnProperty(key)) {
|
|
|
+ console.log(key,'====key ---------for in')
|
|
|
this.storeItemPriceDTOList.push({
|
|
|
beginTime: key.split(',')[0],
|
|
|
endTime: key.split(',')[1],
|
|
@@ -159,8 +159,12 @@
|
|
|
arrInd++
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.storeItemPriceDTOList)
|
|
|
- console.log(this.serviceType)
|
|
|
+ Object.getOwnPropertyNames(storeItemPriceDTOList).forEach(function(key){
|
|
|
+ console.log(key+ '---'+storeItemPriceDTOList[key],'----------foreach')
|
|
|
+ })
|
|
|
+ console.log(Object.keys(storeItemPriceDTOList),'----------Object.keys')
|
|
|
+ // console.log(this.storeItemPriceDTOList)
|
|
|
+ // console.log(this.serviceType)
|
|
|
},
|
|
|
},
|
|
|
watch: {
|
|
@@ -175,7 +179,7 @@
|
|
|
}
|
|
|
},
|
|
|
carWashId (newValue, oldValue){
|
|
|
- if(newValue){
|
|
|
+ if(newValue && this.isShow){
|
|
|
this.getCarWashInfo(newValue)
|
|
|
}
|
|
|
}
|