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
18d0e480
Commit
18d0e480
authored
Apr 15, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请入驻
parent
5f11020d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
709 additions
and
742 deletions
+709
-742
index.vue
src/components/settle/index.vue
+17
-21
base.vue
src/pages/settle/base.vue
+617
-649
index.vue
src/pages/settle/index.vue
+75
-72
dizhi@3x.png
src/static/settle/dizhi@3x.png
+0
-0
mixing@3x.png
src/static/settle/mixing@3x.png
+0
-0
No files found.
src/components/settle/index.vue
View file @
18d0e480
...
@@ -5,11 +5,10 @@
...
@@ -5,11 +5,10 @@
<image
:src=
"url"
style=
"width: 100%;"
mode=
"widthFix"
></image>
<image
:src=
"url"
style=
"width: 100%;"
mode=
"widthFix"
></image>
<view
class=
"introduction"
>
<view
class=
"introduction"
>
<slot></slot>
<slot></slot>
</view>
<view
class=
"settle-bottom"
>
<view
class=
"settle-bottom"
>
<slot
name=
"bottom"
></slot>
<slot
name=
"bottom"
></slot>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -33,22 +32,19 @@
...
@@ -33,22 +32,19 @@
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.settle-view
{
background-color
:
#F4F5F7
;
}
.introduction
{
.introduction
{
border-radius
:
12rpx
;
border-radius
:
12rpx
;
margin-left
:
30rpx
;
margin-right
:
30rpx
;
margin-top
:
-112rpx
;
background-color
:
#F4F5F7
;
overflow
:
auto
;
overflow
:
auto
;
height
:
calc
(
100vh
-
312rpx
);
position
:
fixed
;
top
:
320rpx
;
bottom
:
0rpx
;
left
:
30rpx
;
right
:
30rpx
;
}
}
.settle-bottom
{
.settle-bottom
{
position
:
fixed
;
position
:
fixed
;
width
:
calc
(
100vw
-
60rpx
);
bottom
:
44rpx
;
bottom
:
44rpx
;
width
:
100%
;
}
}
</
style
>
</
style
>
src/pages/settle/base.vue
View file @
18d0e480
<
template
>
<
template
>
<view
class=
"
content"
>
<view
class=
"
back_view"
>
<Settle
:index=
"2"
>
<Settle
:index=
"2"
>
<view
class=
"title"
>
入驻基本信息
</view>
<view
class=
"base-list"
>
<view
class=
"base-list"
>
<!--view class="item item-input flex-yc">
<view
class=
"base-item"
>
<label
class=
"label"
>
姓名
</label>
<view
class=
"item item-select"
@
click=
"gopage('/pages/settle/select?selectType=area')"
>
<span
class=
"required"
>
*
</span>
<view
class=
"flex-center"
>
<input
placeholder=
"请输入您的姓名"
v-model
.
trim=
"baseInfo.name"
class=
"input flex1"
/>
<image
class=
"item-image"
src=
"../../static/settle/mixing@3x.png"
></image>
</view-->
<text
class=
"label"
>
接单城市
</text>
<!--view class="item item-input flex u-row-between">
</view>
<label
class=
"label"
>
电话
</label>
<span
class=
"required"
>
*
</span>
<input
placeholder=
"请输入您的电话"
v-model=
"baseInfo.mobile"
class=
"input flex1"
/>
</view-->
<view
class=
"item item-select u-row-between"
@
click=
"gopage('/pages/settle/select?selectType=area')"
>
<view
class=
"label"
>
接单城市:
</view>
<p
class=
"u-flex-1 u-text-right txt"
>
{{
areaTxts
.
slice
(
0
,
2
).
join
(
','
)
||
""
}}
</p>
<p
class=
"u-flex-1 u-text-right txt"
>
{{
areaTxts
.
slice
(
0
,
2
).
join
(
','
)
||
""
}}
</p>
<u-icon
name=
"arrow-right"
color=
"#999"
size=
"28"
></u-icon>
<u-icon
name=
"arrow-right"
color=
"#999"
size=
"28"
></u-icon>
</view>
</view>
<view
class=
"tips"
>
(必选项)选择你可以服务的城市,可选多个
</view>
<view
class=
"tips"
>
可以服务的城市,可选多个
</view>
<view
class=
"item item-select flex-yc"
@
click=
"gopage('/pages/settle/select?selectType=working_age')"
>
</view>
<view
class=
"label"
>
电工工龄(年):
</view>
<view
class=
"base-item"
style=
"height: 600rpx;"
>
<view
class=
"item item-select"
@
click=
"gopage('/pages/settle/select?selectType=working_age')"
>
<view
class=
"flex-center"
>
<image
class=
"item-image"
src=
"../../static/settle/mixing@3x.png"
></image>
<text
class=
"label"
>
电工工龄(年)
</text>
</view>
<p
class=
"u-flex-1 u-text-right area"
v-show=
"baseInfo.working_age !== ''"
>
<p
class=
"u-flex-1 u-text-right area"
v-show=
"baseInfo.working_age !== ''"
>
{{
workingAgeTxt
}}
{{
workingAgeTxt
}}
</p>
</p>
<u-icon
name=
"arrow-right"
color=
"#999"
size=
"28"
></u-icon>
<u-icon
name=
"arrow-right"
color=
"#999"
size=
"28"
></u-icon>
<!--
<i
class=
"iconfont icon-xiangyou"
></i>
-->
</view>
</view>
<view
class=
"tips"
>
(必选项)选择你从事电工工作的工龄
</view>
<view
class=
"tips"
>
从事电工工作的工龄
</view>
<!--view class="item item-input flex u-row-between">
<view
class=
"line-view"
></view>
<label
class=
"label"
>
详细地址:
</label>
<view
class=
"item itemView"
>
<u-icon
name=
"map"
color=
"#999"
size=
"34"
></u-icon>
<view>
</view-->
<!--view class="tips">
{{
baseInfo
.
address
}}
</view-->
<view
class=
"itemView"
>
<view
class=
"itemTitleView"
>
<text
class=
"itemTitle"
>
师傅数量
</text>
<text
class=
"itemTitle"
>
师傅数量
</text>
<!--text class="itemRedStar">*
</text-->
</view>
</view>
<input
<input
class=
"itemInput"
@
input=
"countInput"
v-model=
"name"
type=
"number"
value=
""
class=
"itemInput"
placeholder=
"请输入师傅数量"
placeholder-style=
'color:#CCCCCC;font-size:32rpx;'
/>
@
input=
"countInput"
v-model=
"name"
type=
"number"
value=
""
placeholder=
"请输入师傅数量"
placeholder-style=
'color:#CCCCCC;font-size:32rpx;'
/>
</view>
</view>
<view
class=
"tips bottom_padding_80"
>
(选填项)输入可投入交付服务的人员数量
</view>
<view
class=
"tips"
>
可投入交付服务的人员数量
</view>
<view
class=
"newAddressView"
>
<view
class=
"line-view"
></view>
<view
class=
"newAddressTitleView"
@
click=
"locationClick()"
>
<view>
<view
class=
"address"
>
<view
class=
"item item-select"
@
click=
"locationClick()"
>
<view
class=
"flex-center"
>
<image
class=
"item-image"
src=
"../../static/settle/mixing@3x.png"
></image>
<text
class=
"itemTitle"
>
详细地址
</text>
<text
class=
"itemTitle"
>
详细地址
</text>
<!--text class="itemRedStar">*
</text-->
</view>
</view>
<view
class=
"right-margin-40
"
>
<view
class=
"flex-center
"
>
<u-icon
name=
"map"
color=
"#999"
size=
"34"
></u-icon
>
<image
class=
"item-image"
src=
"../../static/settle/dizhi@3x.png"
></image
>
<text
class=
"blueColor"
>
定位
</text>
<text
class=
"right-label blueColor"
>
自动定位
</text>
</view>
</view>
</view>
</view>
<view
class=
"addressBackView"
>
<textarea
class=
"address-view"
maxlength=
"100"
placeholder-style=
"color:#999999"
v-model=
"baseInfo.address"
placeholder=
"请填写可接收物料的详细地址"
/>
<textarea
class=
"addressTextAreaView"
maxlength=
"100"
v-model=
"baseInfo.address"
auto-height=
"true"
value=
""
placeholder=
"请输入详细服务地址"
placeholder-style=
'color:#CCCCCC;font-size:28rpx;'
/>
</view>
</view>
<view
class=
"tips"
>
(必填项)填写可接收物料的地址
</view>
</view>
</view>
</view>
</view>
<view
class=
"seat"
></view>
<view
class=
"seat"
></view>
<template
v-slot:bottom
>
<view
class=
"btn-wrap flex-xc"
>
<view
class=
"btn-wrap flex-xc"
>
<button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"$u.debounce(submitBaseInfo, 500)"
>
<button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"$u.debounce(submitBaseInfo, 500)"
>
<!--view class="">submitBaseInfo
</view-->
<!--button class="btn-submit" :disabled="!submitStatus" @click="submitBaseInfo()"-->
确定
确定
</button>
</button>
</view>
</view>
</
template
>
</Settle>
</Settle>
</view>
</view>
</template>
</template>
...
@@ -106,15 +81,15 @@
...
@@ -106,15 +81,15 @@
mobile
:
""
,
mobile
:
""
,
service_area
:
[],
service_area
:
[],
working_age
:
""
,
working_age
:
""
,
worker_num
:
""
,
worker_num
:
""
,
address
:
''
address
:
''
},
},
saving
:
false
,
saving
:
false
,
areaTxts
:
[],
areaTxts
:
[],
workingAgeTxt
:
''
,
workingAgeTxt
:
''
,
protocolContent
:
''
,
protocolContent
:
''
,
address
:
''
,
address
:
''
,
isPosting
:
false
isPosting
:
false
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
...
@@ -138,16 +113,16 @@
...
@@ -138,16 +113,16 @@
},
},
methods
:
{
methods
:
{
initLocation
()
{
initLocation
()
{
const
self
=
this
const
self
=
this
uni
.
getLocation
({
uni
.
getLocation
({
type
:
'wgs84'
,
type
:
'wgs84'
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
self
.
baiduLocation
(
res
.
longitude
,
res
.
latitude
)
self
.
baiduLocation
(
res
.
longitude
,
res
.
latitude
)
}
}
});
});
},
},
baiduLocation
(
long
,
lat
)
{
baiduLocation
(
long
,
lat
)
{
let
a
=
this
,
let
a
=
this
,
t
=
function
()
{
t
=
function
()
{
let
t
=
{
let
t
=
{
...
@@ -175,20 +150,21 @@
...
@@ -175,20 +150,21 @@
},
},
//师傅数量
//师傅数量
countInput
(
e
)
{
countInput
(
e
)
{
this
.
baseInfo
.
worker_num
=
e
.
detail
.
value
this
.
baseInfo
.
worker_num
=
e
.
detail
.
value
},
},
//定位点击
//定位点击
locationClick
:
function
(){
locationClick
:
function
()
{
let
that
=
this
let
that
=
this
uni
.
chooseLocation
({
uni
.
chooseLocation
({
success
:
function
(
res
)
{
success
:
function
(
res
)
{
that
.
baseInfo
.
address
=
res
.
address
+
res
.
name
that
.
baseInfo
.
address
=
res
.
address
+
res
.
name
//that.address = res.address + res.name
//that.address = res.address + res.name
},
fail
:
function
(
res
)
{
},
fail
:
function
(
res
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'定位失败'
title
:
'定位失败'
})
})
}
}
});
});
...
@@ -252,7 +228,7 @@
...
@@ -252,7 +228,7 @@
},
},
*/
*/
service_area
:
function
(
value
)
{
service_area
:
function
(
value
)
{
if
(
!
value
||
value
.
length
==
0
)
{
if
(
!
value
||
value
.
length
==
0
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'请选择您的接单城市'
,
title
:
'请选择您的接单城市'
,
icon
:
'none'
icon
:
'none'
...
@@ -321,9 +297,9 @@
...
@@ -321,9 +297,9 @@
});
});
const
params
=
{
const
params
=
{
...
baseInfo
,
...
baseInfo
,
recommender
:
getApp
().
globalData
.
settleRecommend
recommender
:
getApp
().
globalData
.
settleRecommend
}
}
console
.
log
(
params
,
'params'
)
console
.
log
(
params
,
'params'
)
params
.
service_area
=
baseInfo
.
service_area
.
join
(
','
)
params
.
service_area
=
baseInfo
.
service_area
.
join
(
','
)
const
res
=
await
this
.
$u
.
api
.
submitSettleBaseInfo
(
params
)
const
res
=
await
this
.
$u
.
api
.
submitSettleBaseInfo
(
params
)
this
.
saving
=
false
;
this
.
saving
=
false
;
...
@@ -345,7 +321,7 @@
...
@@ -345,7 +321,7 @@
let
timer
=
setTimeout
(()
=>
{
let
timer
=
setTimeout
(()
=>
{
clearTimeout
(
timer
)
clearTimeout
(
timer
)
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/settle/file'
,
url
:
'/pages/settle/file'
,
"animationType"
:
"fade-in"
,
"animationType"
:
"fade-in"
,
"animationDuration"
:
300
"animationDuration"
:
300
})
})
...
@@ -356,16 +332,40 @@
...
@@ -356,16 +332,40 @@
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.back_view
{
background-color
:
#F4F5F7
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.base-list
{
.base-list
{
.base-item
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
30rpx
;
height
:
160rpx
;
margin-bottom
:
20rpx
;
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
width
:
100%
;
margin-bottom
:
30rpx
;
}
.item
{
.item
{
margin-top
:
6rpx
;
display
:
flex
;
display
:
flex
;
margin-bottom
:
58rpx
;
padding
:
28rpx
30rpx
;
width
:
100%
;
width
:
100%
;
height
:
100rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
align-items
:
center
;
.label
{
.label
{
color
:
#333
;
color
:
#333
;
...
@@ -385,6 +385,11 @@
...
@@ -385,6 +385,11 @@
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
}
}
.item-image
{
width
:
24rpx
;
height
:
24rpx
;
margin-right
:
10rpx
;
}
.required
{
.required
{
margin
:
0
6rpx
;
margin
:
0
6rpx
;
color
:
red
;
color
:
red
;
...
@@ -397,18 +402,15 @@
...
@@ -397,18 +402,15 @@
}
}
.tips
{
.tips
{
margin-top
:
20rpx
;
margin-top
:
10rpx
;
padding
:
0
30rpx
;
font-size
:
24rpx
;
line-height
:
40rpx
;
font-size
:
28rpx
;
color
:
#666
;
color
:
#666
;
padding-bottom
:
36rpx
;
&
+
.id-identity-box
{
margin-top
:
-38rpx
;
margin-bottom
:
40rpx
;
}
}
}
.flex-center
{
display
:
flex
;
align-items
:
center
;
}
.id-identity-box
{
.id-identity-box
{
.txt
{
.txt
{
padding-top
:
8rpx
;
padding-top
:
8rpx
;
...
@@ -432,18 +434,12 @@
...
@@ -432,18 +434,12 @@
}
}
.item
+
.tips
{
margin-top
:
-38rpx
;
margin-bottom
:
58rpx
;
}
/*选择内容*/
/*选择内容*/
.item-select
{
.item-select
{
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#333
;
color
:
#333
;
font-weight
:
500
;
font-weight
:
500
;
justify-content
:
space-between
;
justify-content
:
space-between
;
border-bottom
:
1rpx
solid
#f5f5f5
;
}
}
.flex1
{
.flex1
{
...
@@ -494,7 +490,16 @@
...
@@ -494,7 +490,16 @@
}
}
}
}
}
}
.right-label
{
font-size
:
24rpx
;
color
:
#2272FF
;
margin-left
:
4rpx
;
line-height
:
22rpx
;
.slected
{
font-size
:
28rpx
;
color
:
#333333
;
}
}
.title
{
.title
{
padding
:
30rpx
0
40rpx
;
padding
:
30rpx
0
40rpx
;
text-align
:
center
;
text-align
:
center
;
...
@@ -515,7 +520,7 @@
...
@@ -515,7 +520,7 @@
//right: 0;
//right: 0;
//bottom: 0;
//bottom: 0;
padding
:
30rpx
0
;
padding
:
30rpx
0
;
background
:
#
f3f3f3
;
background
:
#
D1D4D4
;
width
:
100%
;
width
:
100%
;
...
@@ -545,46 +550,23 @@
...
@@ -545,46 +550,23 @@
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
width
:
100%
;
width
:
100%
;
height
:
104rpx
;
}
.itemTitleView
{
background-color
:
#FFFFFF
;
width
:
30%
;
height
:
102rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
.borderBottom
{
border-bottom
:
1rpx
solid
#CCCCCC
;
}
}
.itemTitle
{
.itemTitle
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
margin-left
:
30rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
}
}
.itemRedStar
{
font-size
:
32rpx
;
color
:
#D02B2B
;
}
.itemInput
{
.itemInput
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
margin-right
:
30rpx
;
width
:
65%
;
height
:
70rpx
;
width
:
70%
;
text-align
:
right
;
text-align
:
right
;
font-size
:
32rpx
;
font-size
:
28rpx
;
}
}
.newAddressView
{
.newAddressView
{
margin-top
:
60rpx
;
margin-top
:
60rpx
;
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
width
:
100%
;
width
:
100%
;
...
@@ -593,7 +575,7 @@
...
@@ -593,7 +575,7 @@
padding-bottom
:
30rpx
;
padding-bottom
:
30rpx
;
}
}
.newAddressTitleView
{
.newAddressTitleView
{
height
:
64rpx
;
height
:
64rpx
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
...
@@ -601,30 +583,21 @@
...
@@ -601,30 +583,21 @@
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.itemTitle
{
background-color
:
#FFFFFF
;
margin-left
:
30rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
color
:
#333333
;
}
.itemRedStar
{
.itemRedStar
{
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#D02B2B
;
color
:
#D02B2B
;
}
}
.addressBackView
{
.addressBackView
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
width
:
690rpx
;
border
:
2rpx
solid
#F3F3F3
;
border
:
2rpx
solid
#F3F3F3
;
margin-left
:
30rpx
;
margin-top
:
24prx
;
padding-bottom
:
24prx
;
}
}
.addressTextAreaView
{
.addressTextAreaView
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
width
:
640rpx
;
width
:
640rpx
;
height
:
40rpx
;
height
:
112rpx
;
margin-top
:
24rpx
;
margin-top
:
24rpx
;
margin-left
:
24rpx
;
margin-left
:
24rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
...
@@ -633,25 +606,20 @@
...
@@ -633,25 +606,20 @@
}
}
.right-margin-40
{
.right-margin-40
{
margin-right
:
40rpx
;
margin-right
:
40rpx
;
}
}
.blueColor
{
.blueColor
{
color
:
#007AFF
;
color
:
#007AFF
;
}
}
.area
{
max-width
:
400rpx
;
}
/* .back_view{
.area
{
background-color: #FFFFFF;
max-width
:
400rpx
;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
}
*/
.address-view
{
border
:
2rpx
solid
#ECECEC
;
height
:
112rpx
;
margin-top
:
30rpx
;
}
</
style
>
</
style
>
src/pages/settle/index.vue
View file @
18d0e480
...
@@ -189,6 +189,7 @@
...
@@ -189,6 +189,7 @@
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
...
@@ -201,7 +202,7 @@
...
@@ -201,7 +202,7 @@
.line-view
{
.line-view
{
background-color
:
#F4F5F7
;
background-color
:
#F4F5F7
;
height
:
1rpx
;
height
:
2rpx
;
width
:
100%
;
width
:
100%
;
margin-bottom
:
30rpx
;
margin-bottom
:
30rpx
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
...
@@ -212,7 +213,7 @@
...
@@ -212,7 +213,7 @@
color
:
#333333
;
color
:
#333333
;
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
32rpx
;
font-size
:
32rpx
;
margin-top
:
6
rpx
;
margin-top
:
8
rpx
;
}
}
.item-content
{
.item-content
{
...
@@ -232,10 +233,12 @@
...
@@ -232,10 +233,12 @@
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
background-color
:
#D1D4D4
;
background-color
:
#D1D4D4
;
&
.active
{
&
.active
{
background-color
:
#2272FF
;
background-color
:
#2272FF
;
}
}
.bottom_title
{
.bottom_title
{
color
:
#fff
;
color
:
#fff
;
}
}
...
...
src/static/settle/dizhi@3x.png
0 → 100644
View file @
18d0e480
2.76 KB
src/static/settle/mixing@3x.png
0 → 100644
View file @
18d0e480
1.54 KB
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