...
This commit is contained in:
parent
cc73564ed5
commit
481dac0173
|
@ -13,7 +13,9 @@
|
||||||
<text>电话:{{ item?.contactPersonInfo.telephone }}</text>
|
<text>电话:{{ item?.contactPersonInfo.telephone }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="project">
|
<view class="project">
|
||||||
<view v-for="(items,index) in item.serviceProjectList" :key="index">{{ items.name }}</view>
|
<view @click="projectClick(items,item?.name)" v-for="(items,index) in item.serviceProjectList" :key="index">
|
||||||
|
{{ items.name }}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -35,6 +37,14 @@ const getMyServiceProject = async () => {
|
||||||
myProjectList.value = resp.data
|
myProjectList.value = resp.data
|
||||||
console.log(resp.data)
|
console.log(resp.data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const projectClick = (items: ServiceProjectList, name: string) => {
|
||||||
|
console.log(name, JSON.stringify(items))
|
||||||
|
Taro.navigateTo({
|
||||||
|
|
||||||
|
url: `/subPages/pages/projectDetails/projectDetails?name=${name}&item=${JSON.stringify(items)}`,
|
||||||
|
})
|
||||||
|
}
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await getMyServiceProject()
|
await getMyServiceProject()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue