# haipolyapp **Repository Path**: edgarHui/haipolyapp ## Basic Information - **Project Name**: haipolyapp - **Description**: haipolyapp - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-12 - **Last Updated**: 2025-11-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #选择城市,城市搜索弹窗 ## 引入 import choseCity from "@/components/chose-city/chose-city" export default { components: { choseCity }, data() { return { showCity:true // 默弹窗显示 } }, methods: { selectCity(item) { console.log('-您选择的城市-',item) // this.showCity = false }, closeModal() { this.showCity = false }, } } ## 页面引用 showCity:弹窗是否显示 selectCity:选择后的回调 closeModal:点击取消的回调