Kaynağa Gözat

fix:1.预约切换日期时如果没有选中服务对象,默认选第一个。2.屏蔽时段价格

zhanghui 2 yıl önce
ebeveyn
işleme
01232147c8

+ 1 - 1
orderPages/bookService/index.rpx.scss

@@ -193,7 +193,7 @@
 }
 .timeItem {
   width: 124rpx;
-  height: 124rpx;
+  //height: 124rpx;
   background: #FAFAFA;
   border-radius: 16rpx;
   margin-top: 16rpx;

+ 16 - 10
orderPages/bookService/index.vue

@@ -81,9 +81,9 @@
 							<view class="flex-row justify-center">
 								<text class="time">{{item2.label}}</text>
 							</view>
-							<view class="flex-row justify-center">
-								<text class="price">¥{{item2.price}}</text>
-							</view>
+<!--							<view class="flex-row justify-center">-->
+<!--								<text class="price">¥{{item2.price}}</text>-->
+<!--							</view>-->
 						</view>
 					</u-grid-item>
 				</u-grid>
@@ -312,13 +312,19 @@
 					this.getServicePersonUrl(this.serviceTeacherList);
 					if (bindPickerChange){
 						console.log(888888888888888,bindPickerChange)
-						this.serviceObjectList.forEach(i=>{
-							if (i.select){
-								this.orderParam.childService=[]
-								i.select = false
-								this.selectServiceObject(i)
-							}
-						})
+
+						if (this.orderParam.childService.length === 0){
+							this.selectServiceObject(this.serviceObjectList[0])
+						}else {
+							this.serviceObjectList.forEach(i=>{
+								if (i.select){
+									this.orderParam.childService=[]
+									i.select = false
+									this.selectServiceObject(i)
+								}
+							})
+						}
+
 					}else {
 						this.listServiceObject()
 					}

+ 3 - 1
orderPages/storeService/index.rpx.scss

@@ -82,6 +82,8 @@
 .serobImgView{
   width: 146rpx;
   height: 146rpx;
+  border-radius: 75rpx;
+  background: #FFE05C;
   overflow: hidden;
 }
 .serobImg{
@@ -129,7 +131,7 @@
 }
 .timeItem {
   width: 124rpx;
-  height: 124rpx;
+  //height: 124rpx;
   background: #FAFAFA;
   border-radius: 16rpx;
   margin-top: 16rpx;

+ 6 - 3
orderPages/storeService/index.vue

@@ -39,9 +39,9 @@
 							<view class="flex-row justify-center">
 								<text class="time">{{item2.label}}</text>
 							</view>
-							<view class="flex-row justify-center">
-								<text class="price">¥{{item2.price}}</text>
-							</view>
+<!--							<view class="flex-row justify-center">-->
+<!--								<text class="price">¥{{item2.price}}</text>-->
+<!--							</view>-->
 						</view>
 					</u-grid-item>
 				</u-grid>
@@ -223,6 +223,9 @@
 				}).then(res=>{
 					console.log("++++++++++++++++++res++++++++++++++++++++",res)
 					this.periodTimeList = res.data.data
+					if (this.periodTimeList.length===0){
+						uni.$u.toast('暂无可预约排班')
+					}
 					// 服务对象
 					this.listServiceObject()
 				})