|
|
|
|
@ -47,11 +47,11 @@
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 1:待上课,2:预约中,3:待评价 ,4:已完成 5:已取消-->
|
|
|
|
|
<!-- 描述:0->预约中;1->教练确认;2->店长确认/预约成功/待上课 3->已取消;4->已完成/待评价; -->
|
|
|
|
|
<button type="primary" class="conbtn" @click="gototeacher(item)">联系教练</button>
|
|
|
|
|
<button class="conbtn" @click="gototeacher(item)">联系教练</button>
|
|
|
|
|
<!-- <button v-if="item.bookStatus==2||item.bookStatus==1" type="primary" class="cancelbtn" :data-id="item.courseTimeId" @click="cancelkcdo">取消课程</button>-->
|
|
|
|
|
<button v-if="'0,1,2'.includes(item.bookStatus)" type="primary" class="cancelbtn" :data-id="item.courseTimeId" @click="cancelyydo">取消预约</button>
|
|
|
|
|
<button v-if="'0,1,2'.includes(item.bookStatus)" class="cancelbtn" :data-id="item.courseTimeId" @click="cancelyydo">取消预约</button>
|
|
|
|
|
<!-- <button v-if="item.bookStatus==0" type="primary" class="paybtn" :data-id="item.courseTimeId" @click="checkdo($event,item)">确认上课</button>-->
|
|
|
|
|
<button v-if="item.bookStatus==4" type="primary" class="viewbtn" :data-id="item.courseTimeId" @click="orderdo($event,item)">再次预约</button>
|
|
|
|
|
<button v-if="item.bookStatus==4" class="viewbtn" :data-id="item.courseTimeId" @click="orderdo($event,item)">再次预约</button>
|
|
|
|
|
<!-- <button v-if="item.bookStatus==4" type="primary" class="gzbtn" :data-id="item.courseTimeId" @click="gotoevaluate($event,item)">评价</button>-->
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
@ -514,7 +514,7 @@ import { mapState, mapGetters, mapActions } from 'vuex';
|
|
|
|
|
// 直接跳转到聊天框
|
|
|
|
|
let chat = {
|
|
|
|
|
type: 'PRIVATE',
|
|
|
|
|
targetId: this.userid,
|
|
|
|
|
targetId: item.teacherAppId,
|
|
|
|
|
showName: item.teacherName,
|
|
|
|
|
headImage: item.pic?item.pic:'/static/image/kf.png',
|
|
|
|
|
};
|
|
|
|
|
|