Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
d307bdb4
Commit
d307bdb4
authored
Apr 15, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电工工龄、接单城市高保真
parent
b542092f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
pages.json
src/pages.json
+2
-1
select.vue
src/pages/settle/select.vue
+11
-7
No files found.
src/pages.json
View file @
d307bdb4
...
@@ -93,7 +93,8 @@
...
@@ -93,7 +93,8 @@
{
{
"path"
:
"pages/settle/select"
,
"path"
:
"pages/settle/select"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"选择可服务的城市"
"navigationBarTitleText"
:
"选择可服务的城市"
,
"navigationBarBackgroundColor"
:
"#FFFFFF"
}
}
},
},
...
...
src/pages/settle/select.vue
View file @
d307bdb4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"area-nav flex"
v-if=
"selectType == 'area'"
>
<view
class=
"area-nav flex"
v-if=
"selectType == 'area'"
>
<view
class=
"nav-left"
>
<view
class=
"nav-left"
>
<view
:class=
"['nav-item',
{'active':current
Province
Index===index}]" v-for="(areaItem, index) in areaList" :key="index"
<view
:class=
"['nav-item',
{'active':currentIndex===index}]" v-for="(areaItem, index) in areaList" :key="index"
@click="getareaList(areaItem.id,1,index)">
@click="getareaList(areaItem.id,1,index)">
{{
areaItem
.
name
}}
{{
areaItem
.
name
}}
</view>
</view>
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<!--
<i
class=
"iconfont icon-tijiao"
></i>
-->
<!--
<i
class=
"iconfont icon-tijiao"
></i>
-->
</view>
</view>
</view>
</view>
<view
class=
"btn-wrap fixed flex flex-xc"
>
<view
class=
"btn-wrap fixed flex flex-xc"
v-if=
"selectType == 'area'"
>
<button
class=
"btn-submit"
@
click=
"goBack('confirm')"
>
<button
class=
"btn-submit"
@
click=
"goBack('confirm')"
>
确定
确定
</button>
</button>
...
@@ -202,13 +202,13 @@
...
@@ -202,13 +202,13 @@
areaIds
:
prevVue
.
baseInfo
.
service_area
,
areaIds
:
prevVue
.
baseInfo
.
service_area
,
areaTxts
:
prevVue
.
areaTxts
areaTxts
:
prevVue
.
areaTxts
}
}
title
=
'
选择可服务的
城市'
title
=
'
接单
城市'
}
else
if
(
selectType
===
'working_age'
)
{
}
else
if
(
selectType
===
'working_age'
)
{
this
.
selected
=
{
this
.
selected
=
{
working_age
:
prevVue
.
baseInfo
.
working_age
,
working_age
:
prevVue
.
baseInfo
.
working_age
,
workingAgeTxt
:
prevVue
.
workingAgeTxt
workingAgeTxt
:
prevVue
.
workingAgeTxt
}
}
title
=
'
选择工作
工龄'
title
=
'
电工
工龄'
}
}
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
title
...
@@ -385,6 +385,7 @@
...
@@ -385,6 +385,7 @@
selectAge
(
item
)
{
selectAge
(
item
)
{
this
.
selected
.
working_age
=
item
.
value
this
.
selected
.
working_age
=
item
.
value
this
.
selected
.
workingAgeTxt
=
item
.
name
this
.
selected
.
workingAgeTxt
=
item
.
name
this
.
goBack
(
'confirm'
)
},
},
selectAllarea
(
idx
){
selectAllarea
(
idx
){
const
allChildren
=
this
.
areaList
[
this
.
currentIndex
]
const
allChildren
=
this
.
areaList
[
this
.
currentIndex
]
...
@@ -409,7 +410,10 @@
...
@@ -409,7 +410,10 @@
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.content
{
background-color
:
#F3F3F3
;
}
.nav-item
,
.nav-item
,
.age-item
{
.age-item
{
position
:
relative
;
position
:
relative
;
...
@@ -474,9 +478,9 @@
...
@@ -474,9 +478,9 @@
.age-box
{
.age-box
{
padding-top
:
40rpx
;
padding-top
:
40rpx
;
height
:
calc
(
100vh
-
180rpx
);
//
height: calc(100vh - 180rpx);
overflow
:
auto
;
overflow
:
auto
;
margin-bottom
:
44rpx
;
.age-item
{
.age-item
{
position
:
relative
;
position
:
relative
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment