更新城市选择器(实验)
This commit is contained in:
parent
370a426291
commit
fc0ced0927
@ -64,9 +64,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import provinces from "@/pages_template/common/province.js";
|
||||
import citys from "@/pages_template/common/city.js";
|
||||
import areas from "@/pages_template/common/area.js";
|
||||
import provinces from "./province.js";
|
||||
import citys from "./city.js";
|
||||
import areas from "./area.js";
|
||||
/**
|
||||
* city-select 省市区级联选择器
|
||||
* @property {String Number} z-index 弹出时的z-index值(默认1075)
|
||||
@ -248,3 +248,4 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@/components/u-city-select/province.js@/components/u-city-select/city.js@/components/u-city-select/area.js
|
||||
@ -1,12 +1,13 @@
|
||||
{
|
||||
"easycom": {
|
||||
"custom": {
|
||||
"u-city-select": "@/components/u-city-select/u-city-select.vue",
|
||||
"geek-(.*)": "@/components/geek-xd/components/geek-$1/geek-$1.vue",
|
||||
"gx-(.*)": "@/components/geek-xd/components/geek-$1/geek-$1.vue",
|
||||
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
|
||||
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
|
||||
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
|
||||
"qiun-(.*)": "@/components/qiun-data-charts/components/qiun-$1/qiun-$1.vue",
|
||||
"geek-(.*)": "@/components/geek-xd/components/geek-$1/geek-$1.vue",
|
||||
"gx-(.*)": "@/components/geek-xd/components/geek-$1/geek-$1.vue"
|
||||
"qiun-(.*)": "@/components/qiun-data-charts/components/qiun-$1/qiun-$1.vue"
|
||||
}
|
||||
},
|
||||
"pages": [
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import citySelect from './u-city-select.vue';
|
||||
import citySelect from '@/components/u-city-select/u-city-select.vue';
|
||||
export default {
|
||||
components: {
|
||||
citySelect
|
||||
@ -36,6 +36,7 @@ export default {
|
||||
methods: {
|
||||
cityChange(e) {
|
||||
this.input = e.province.label + '-' + e.city.label + '-' + e.area.label;
|
||||
this.input += e.province.value + '-' + e.city.value + '-' + e.area.value;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user