Sfoglia il codice sorgente

fix:明日预约价格显示bug修改

zhanghui 2 anni fa
parent
commit
78f95a6c1a
1 ha cambiato i file con 5 aggiunte e 10 eliminazioni
  1. 5 10
      orderPages/bookService/index.vue

+ 5 - 10
orderPages/bookService/index.vue

@@ -61,7 +61,6 @@
 								<text class="teachPrice">¥{{item1.fee}}</text>
 							</view>
 							<view class="serobV " v-if="item1.select">
-
 								<image class="serobVicon" src="/static/order/ud20.png"></image>
 							</view>
 						</view>
@@ -412,7 +411,6 @@
 						selectServiceObject.serviceObjectId !== item.id)
 					item.select = !item.select
 				} else {
-
 					this.$api.getServicePersonTime({
 						personId: this.serviceTeacherList[0].personId,
 						date: this.periodDate.label,
@@ -487,16 +485,14 @@
 							serviceTimeList:periodTimeList//服务时段列表,回显需要,不做参数
 						}
 						this.orderParam.childService.push(childService)
-
+						this.price = 0
+						for (let childService of this.orderParam.childService) {
+							this.price =  this.price * 1 + childService.fee * 1
+							this.price = this.price.toFixed(2)
+						}
 					})
 
 				}
-
-				this.price = 0
-				for (let childService of this.orderParam.childService) {
-					this.price =  this.price * 1 + childService.fee * 1
-					this.price = this.price.toFixed(2)
-				}
 			},
 
 			selectServiceTeach(items,index,index1){
@@ -547,7 +543,6 @@
 					this.price =  this.price * 1 + childService.fee * 1
 					this.price = this.price.toFixed(2)
 				}
-
 				console.log(this.price)
 				this.$forceUpdate()
 			},