|
|
@ -10,7 +10,7 @@ |
|
|
|
<view class="companion-info-detail"> |
|
|
|
<view class="" style="width: 360rpx;"> |
|
|
|
<view class="companion-info-left"> |
|
|
|
<text class="companion-info-left-title">{{companionInfo.name}}</text> |
|
|
|
<text class="companion-info-left-title">{{companionInfo.userName}}</text> |
|
|
|
<view> |
|
|
|
<img :src="companionInfo.appletUsersTeacher.sex==1?'https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/personal/pet/sex_m.png': |
|
|
|
'https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/personal/pet/sex_f.png'" alt="sex" |
|
|
@ -18,8 +18,8 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
<image src="/static/images/pages/cwfw.png" mode="heightFix" |
|
|
|
style="height: 40rpx;"></image> |
|
|
|
<!-- <image src="/static/images/pages/cwfw.png" mode="heightFix" |
|
|
|
style="height: 40rpx;"></image> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="companion-info-right" @click="onClickFav"> |
|
|
@ -272,7 +272,7 @@ |
|
|
|
<view class="service-record-info-2"> |
|
|
|
<view class="service-record-info-title"> |
|
|
|
<view class="service-record-name"> |
|
|
|
{{companionInfo.name}} |
|
|
|
{{companionInfo.userName}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="service-record-location"> |
|
|
@ -312,7 +312,8 @@ |
|
|
|
</view> |
|
|
|
</uni-card> |
|
|
|
</view> |
|
|
|
<view class="bottom-btn-sticky" style="padding: 10rpx 40rpx 0 40rpx;"> |
|
|
|
<view class="bottom-btn-sticky" style="padding: 10rpx 40rpx 0 40rpx;" |
|
|
|
@click="toBuy"> |
|
|
|
<!-- <button class="bottom-btn" @click="getOrder">立即预约</button> --> |
|
|
|
<image style="width: 670rpx; height: 80rpx;" slot='cover' |
|
|
|
src="https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/petServiceOrder/orderNow.png" /> |
|
|
@ -356,7 +357,9 @@ |
|
|
|
getTeacherServiceLogList, |
|
|
|
} from "@/api/order/order" |
|
|
|
import uniRate from '@/uni_modules/uni-rate/components/uni-rate/uni-rate.vue'; |
|
|
|
import positionMixin from '../../mixins/position'; |
|
|
|
export default { |
|
|
|
mixins: [positionMixin], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
currentCompanionPetId: '', |
|
|
@ -475,6 +478,12 @@ |
|
|
|
this.getCurrentCompanionPetInfo(this.currentCompanionPetId) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
toBuy(){ |
|
|
|
this.buyInfo.teacher = this.companionInfo |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/newOrder/serviceNew?type=teacher' |
|
|
|
}) |
|
|
|
}, |
|
|
|
onClickFav() { |
|
|
|
this.collect = !this.collect |
|
|
|
this.$forceUpdate() |
|
|
@ -483,6 +492,7 @@ |
|
|
|
getTeacherDetail({userId}).then(response => { |
|
|
|
if (response) { |
|
|
|
this.companionInfo = response |
|
|
|
this.companionInfo.distanceText = this.calculateDistanceAddress(response.appletAddresseList) |
|
|
|
} |
|
|
|
console.log('getCurrentCompanionPetInfo', response); |
|
|
|
}) |
|
|
|