zhanghui 2 lat temu
rodzic
commit
1a94283d1a

+ 2 - 2
orderPages/bookService/index.vue

@@ -270,9 +270,9 @@ export default {
         uni.$u.toast('请选择服务人员')
         uni.$u.toast('请选择服务人员')
         return
         return
       }
       }
-      if (this.price > 0) {
+      if (this.price*1 > 0) {
         this.$refs.popup.open()
         this.$refs.popup.open()
-        if (this.userInfo.balance < this.price) {
+        if (this.userInfo.balance*1 < this.price*1) {
           this.curServiceTab = 2
           this.curServiceTab = 2
         }
         }
       } else {
       } else {

+ 4 - 2
orderPages/serviceTeacher/index.vue

@@ -2,7 +2,7 @@
 	<view class="">
 	<view class="">
 		<view v-for="(item,index) in workPersonList" @click="chooseServiceTeacher(item)" class="h-item-row">
 		<view v-for="(item,index) in workPersonList" @click="chooseServiceTeacher(item)" class="h-item-row">
 			<view class="h-img">
 			<view class="h-img">
-				<image src="../../static/logo.png" mode=""></image>
+				<image :src="item.imgUrl || '/static/logo.png'" mode=""></image>
 			</view>
 			</view>
 			<view class="h-item-content">
 			<view class="h-item-content">
 				<view class="h-title">
 				<view class="h-title">
@@ -77,6 +77,7 @@
 					if (data[i].facePhoto){
 					if (data[i].facePhoto){
 						this.$api.getImage(data[i].facePhoto).then(res=>{
 						this.$api.getImage(data[i].facePhoto).then(res=>{
 							data[i].imgUrl = res.data.data[0].url.replace(/^http:/, "https:")
 							data[i].imgUrl = res.data.data[0].url.replace(/^http:/, "https:")
+							this.$set(this.workPersonList,i,data[i])
 						});
 						});
 					}
 					}
 				}
 				}
@@ -106,10 +107,11 @@
 
 
 		.h-img {
 		.h-img {
 			margin-right: 8px;
 			margin-right: 8px;
-
+			border-radius: 10rpx;
 			image {
 			image {
 				height: 80px;
 				height: 80px;
 				width: 80px;
 				width: 80px;
+				border-radius: 10rpx;
 			}
 			}
 		}
 		}