|
|
@ -2,7 +2,9 @@ |
|
|
|
<view class="technician-select-list"> |
|
|
|
<mNavbar title="选择技师" :leftClick="leftClick"></mNavbar> |
|
|
|
<view class="technician-list"> |
|
|
|
<selectTechnicianCompoents :technicianList="technicianList" :select="toPayOrder" /> |
|
|
|
<selectTechnicianCompoents |
|
|
|
v-if="loading" |
|
|
|
:technicianList="technicianList" :select="toPayOrder" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -22,15 +24,32 @@ |
|
|
|
pageSize: 10, |
|
|
|
title: '' |
|
|
|
}, |
|
|
|
technicianList: sessionStorage.getItem('technicianList') ? JSON.parse(sessionStorage.getItem( |
|
|
|
'technicianList')) : [], |
|
|
|
technicianList: [], |
|
|
|
loading: false, |
|
|
|
finished: false |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.getProjectDetail() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onLoad() { |
|
|
|
|
|
|
|
//获取项目详情 |
|
|
|
getProjectDetail() { |
|
|
|
|
|
|
|
let queryParams = { |
|
|
|
id: this.$route.query.serviceId |
|
|
|
} |
|
|
|
|
|
|
|
if(this.$store.state.selectArea.id){ |
|
|
|
queryParams.county = this.$store.state.selectArea.id |
|
|
|
} |
|
|
|
|
|
|
|
this.$api('getProjectDetail', queryParams, res => { |
|
|
|
this.loading = true |
|
|
|
if (res.code == 200) { |
|
|
|
this.technicianList = res.result.tenPageList; |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
leftClick() { |
|
|
|
let { current , active } = this.$route.query |
|
|
|