This commit is contained in:
TimSpan 2024-09-13 14:45:56 +08:00
parent cc73564ed5
commit 481dac0173
5 changed files with 11 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -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()
}) })