提交 d60b1c7a 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'feature/zjx' into 'develop'

Feature/zjx

See merge request !115
...@@ -33,6 +33,22 @@ ...@@ -33,6 +33,22 @@
<template #cancel> <template #cancel>
<div class="picker-area-buttons" /> <div class="picker-area-buttons" />
</template> </template>
<template #columns-bottom>
<div class="picker-area-bottom">
<div
class="area-bottom-left"
@click="close"
>
取消
</div>
<div
class="area-bottom-right"
@click="sbumit"
>
确定
</div>
</div>
</template>
</van-picker> </van-picker>
</van-popup> </van-popup>
</template> </template>
...@@ -65,7 +81,8 @@ export default { ...@@ -65,7 +81,8 @@ export default {
cityList: [], cityList: [],
countyList:[], countyList:[],
loading: true, loading: true,
result:null result: null,
values:[]
}; };
}, },
watch: { watch: {
...@@ -103,6 +120,13 @@ export default { ...@@ -103,6 +120,13 @@ export default {
this.result = store.get('geolocation'); this.result = store.get('geolocation');
}, },
methods: { methods: {
// 提交
sbumit() {
const values = this.$refs.picker.getValues();
console.log('sbumit', values);
this.$emit('confirm', values);
},
// 初始化 省市县信息 // 初始化 省市县信息
async initData() { async initData() {
this.provinceList = await this.getProvinceList(); this.provinceList = await this.getProvinceList();
...@@ -116,6 +140,7 @@ export default { ...@@ -116,6 +140,7 @@ export default {
this.$emit('confirm', data); this.$emit('confirm', data);
} }
}, },
// 获取省列表 // 获取省列表
getProvinceList() { getProvinceList() {
const datas = {projectEquityNo:this.projectEquityNo}; const datas = {projectEquityNo:this.projectEquityNo};
...@@ -184,7 +209,7 @@ export default { ...@@ -184,7 +209,7 @@ export default {
// 确定按钮 // 确定按钮
confirm(value, valueIndex) { confirm(value, valueIndex) {
console.log(value, valueIndex); console.log(value, valueIndex);
this.$emit('confirm', value); // this.values = value;
this.$emit('close', 'showArea'); this.$emit('close', 'showArea');
}, },
// 滑动选择的change // 滑动选择的change
...@@ -242,4 +267,32 @@ export default { ...@@ -242,4 +267,32 @@ export default {
align-items: center; align-items: center;
color: #999999; color: #999999;
} }
.picker-area-bottom{
height: 49px;
padding:5px 12px 21px 12px;
display: flex;
justify-content: space-between;
box-shadow: inset 0px 1px 0px 0px #E9E9E9;
}
.area-bottom-left,.area-bottom-right{
width: 170px;
height: 40px;
border-radius: 20px;
font-size: 16px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
line-height: 40px;
text-align: center;
}
.area-bottom-left{
border: 1px solid #C0C0C0;
color: #212121;
}
.area-bottom-right{
background: #00BDA5;
color: #fff;
}
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册