Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
d60b1c7a
提交
d60b1c7a
编写于
2月 27, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/zjx' into 'develop'
Feature/zjx See merge request
!115
上级
32e52591
6df450b6
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
55 行增加
和
2 行删除
+55
-2
index.vue
src/components/pickArea/index.vue
+55
-2
未找到文件。
src/components/pickArea/index.vue
浏览文件 @
d60b1c7a
...
...
@@ -33,6 +33,22 @@
<
template
#
cancel
>
<div
class=
"picker-area-buttons"
/>
</
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-popup>
</template>
...
...
@@ -65,7 +81,8 @@ export default {
cityList
:
[],
countyList
:[],
loading
:
true
,
result
:
null
result
:
null
,
values
:[]
};
},
watch
:
{
...
...
@@ -103,6 +120,13 @@ export default {
this
.
result
=
store
.
get
(
'geolocation'
);
},
methods
:
{
// 提交
sbumit
()
{
const
values
=
this
.
$refs
.
picker
.
getValues
();
console
.
log
(
'sbumit'
,
values
);
this
.
$emit
(
'confirm'
,
values
);
},
// 初始化 省市县信息
async
initData
()
{
this
.
provinceList
=
await
this
.
getProvinceList
();
...
...
@@ -116,6 +140,7 @@ export default {
this
.
$emit
(
'confirm'
,
data
);
}
},
// 获取省列表
getProvinceList
()
{
const
datas
=
{
projectEquityNo
:
this
.
projectEquityNo
};
...
...
@@ -184,7 +209,7 @@ export default {
// 确定按钮
confirm
(
value
,
valueIndex
)
{
console
.
log
(
value
,
valueIndex
);
this
.
$emit
(
'confirm'
,
value
)
;
// this.values = value
;
this
.
$emit
(
'close'
,
'showArea'
);
},
// 滑动选择的change
...
...
@@ -242,4 +267,32 @@ export default {
align-items
:
center
;
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
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录