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
fcdb13f1
Commit
fcdb13f1
authored
Apr 14, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入驻保留上一版的代码
parent
253590f5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
992 additions
and
144 deletions
+992
-144
base copy.vue
src/pages/settle/base copy.vue
+647
-0
base.vue
src/pages/settle/base.vue
+48
-40
index copy.vue
src/pages/settle/index copy.vue
+286
-0
index.vue
src/pages/settle/index.vue
+11
-104
No files found.
src/pages/settle/base copy.vue
0 → 100644
View file @
fcdb13f1
This diff is collapsed.
Click to expand it.
src/pages/settle/base.vue
View file @
fcdb13f1
<
template
>
<view
class=
"content"
>
<
process
:process=
"1"
:type=
"0"
title=
"业务流程"
></process
>
<
view
class=
"title"
>
入驻基本信息
</view
>
<view
class=
"base-list"
>
<view
class=
"item item-select u-row-between"
>
<view
class=
"label"
>
实名认证
</view>
<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>
</view>
<view
class=
"newAddressView"
>
<view
class=
"newAddressTitleView"
@
click=
"locationClick()"
>
<view
class=
"address"
>
<text
class=
"itemTitle"
>
收货地址
</text>
</view>
<view
class=
"right-margin-40"
>
<u-icon
name=
"map"
color=
"#999"
size=
"34"
></u-icon>
<text
class=
"blueColor"
>
定位
</text>
</view>
</view>
<view
class=
"addressBackView"
>
<textarea
class=
"addressTextAreaView"
maxlength=
"100"
v-model=
"baseInfo.address"
auto-height=
"true"
value=
""
placeholder=
"请输入详细服务地址"
placeholder-style=
'color:#CCCCCC;font-size:28rpx;'
/>
</view>
<view
class=
"tips"
>
(必填项)填写可接收物料的地址
</view>
</view>
<!--view class="item item-input flex-yc">
<label
class=
"label"
>
姓名
</label>
<span
class=
"required"
>
*
</span>
<input
placeholder=
"请输入您的姓名"
v-model
.
trim=
"baseInfo.name"
class=
"input flex1"
/>
</view-->
<!--view class="item item-input flex u-row-between">
<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>
<u-icon
name=
"arrow-right"
color=
"#999"
size=
"28"
></u-icon>
</view>
<view
class=
"tips"
>
(必选项)选择你可以服务的城市,可选多个
</view>
<view
class=
"item item-select u-row-between"
>
<view
class=
"label"
>
电工证
</view>
<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>
</view>
<view
class=
"item item-select flex-yc"
@
click=
"gopage('/pages/settle/select?selectType=working_age')"
>
<view
class=
"label"
>
电工工龄(年):
</view>
<p
class=
"u-flex-1 u-text-right area"
v-show=
"baseInfo.working_age !== ''"
>
...
...
@@ -49,12 +27,11 @@
<!--
<i
class=
"iconfont icon-xiangyou"
></i>
-->
</view>
<view
class=
"tips"
>
(必选项)选择你从事电工工作的工龄
</view>
<view
class=
"item item-select u-row-between"
>
<view
class=
"label"
>
个人车辆信息
</view>
<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>
</view>
<view
class=
"tips"
>
(选填项)填写你的车辆信息
</view>
<!--view class="item item-input flex u-row-between">
<label
class=
"label"
>
详细地址:
</label>
<u-icon
name=
"map"
color=
"#999"
size=
"34"
></u-icon>
</view-->
<!--view class="tips">
{{
baseInfo
.
address
}}
</view-->
<view
class=
"itemView"
>
<view
class=
"itemTitleView"
>
...
...
@@ -72,11 +49,43 @@
</view>
<view
class=
"tips bottom_padding_80"
>
(选填项)输入可投入交付服务的人员数量
</view>
<view
class=
"newAddressView"
>
<view
class=
"newAddressTitleView"
@
click=
"locationClick()"
>
<view
class=
"address"
>
<text
class=
"itemTitle"
>
详细地址
</text>
<!--text class="itemRedStar">*
</text-->
</view>
<view
class=
"right-margin-40"
>
<u-icon
name=
"map"
color=
"#999"
size=
"34"
></u-icon>
<text
class=
"blueColor"
>
定位
</text>
</view>
</view>
<view
class=
"addressBackView"
>
<textarea
class=
"addressTextAreaView"
maxlength=
"100"
v-model=
"baseInfo.address"
auto-height=
"true"
value=
""
placeholder=
"请输入详细服务地址"
placeholder-style=
'color:#CCCCCC;font-size:28rpx;'
/>
</view>
<view
class=
"tips"
>
(必填项)填写可接收物料的地址
</view>
</view>
</view>
<view
class=
"seat"
></view>
<view
class=
"btn-wrap flex-xc"
>
<button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"$u.debounce(submitBaseInfo, 500)"
>
<!--view class="">submitBaseInfo
</view-->
<!--button class="btn-submit" :disabled="!submitStatus" @click="submitBaseInfo()"-->
确定
</button>
</view>
...
...
@@ -359,7 +368,6 @@
.label
{
color
:
#333
;
font-size
:
32rpx
;
font-weight
:
bold
;
}
.txt
{
...
...
src/pages/settle/index copy.vue
0 → 100644
View file @
fcdb13f1
<
template
>
<view
class=
"wrap"
>
<process
:process=
"0"
:type=
"0"
title=
"业务流程"
></process>
<view
class=
"introduction"
>
<view
class=
"item"
>
<view
class=
"label"
>
<text>
招募要求
</text>
</view>
<view
class=
"content"
>
<text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean euismod bibendum laoreet. Proin gravida dolor sit
amet lacus accumsan et viverra justo commodo. Proin sodales
pulvinar sic tempor. Sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Nam fermentum,
nulla luctus pharetra vulputate, felis tellus 。
</text>
</view>
</view>
<view
class=
"item"
>
<view
class=
"label"
>
<text>
结算价格
</text>
</view>
<view
class=
"content"
>
<text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean euismod bibendum laoreet. Proin gravida dolor sit
amet lacus accumsan et viverra justo commodo. Proin sodales
pulvinar sic tempor. Sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Nam fermentum,
nulla luctus pharetra vulputate, felis tellus 。
</text>
</view>
</view>
<view
class=
"item"
>
<view
class=
"label"
>
<text>
入驻资料
</text>
</view>
<view
class=
"content"
>
<text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean euismod bibendum laoreet. Proin gravida dolor sit
amet lacus accumsan et viverra justo commodo. Proin sodales
pulvinar sic tempor. Sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Nam fermentum,
nulla luctus pharetra vulputate, felis tellus 。
</text>
</view>
</view>
<view
class=
"item careful-color"
>
<view
class=
"careful-content"
>
<text>
注意事项:
</text>
<text>
身份证、银行卡、签约人均为同一人,否则无法入驻;
</text>
<text>
充电桩材料按要求自行准备
</text>
</view>
</view>
</view>
<view
class=
"bottom_view"
>
<button
:class=
"isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' "
@
click=
"$u.debounce(applyClick, 500)"
>
<text
class=
"bottom_title"
v-if=
"!isStop"
>
浏览
{{
count
}}
秒后可申请入驻
</text>
<text
class=
"bottom_title"
v-if=
"isStop"
>
申请入驻
</text>
</button>
</view>
</view>
</
template
>
<
script
>
import
{
process
}
from
'@/components/process/process'
export
default
{
components
:
{
process
},
data
()
{
return
{
theme_url
:
'https://qn-static.banshouhui.com/settle_theme.png?v='
+
new
Date
().
getTime
(),
count
:
9
,
isStop
:
false
,
settledInfo
:
null
,
status
:
''
,
saving
:
true
}
},
onLoad
(
e
)
{
this
.
initpageData
(
e
)
this
.
startCounting
()
},
onShow
(){
// if(!this.settledInfo){
// this.getBaseInfo()
// }
uni
.
hideLoading
()
},
methods
:
{
initpageData
(
option
){
let
recommender
=
''
if
(
option
&&
option
.
q
){
const
urlLink
=
decodeURIComponent
(
option
.
q
)
recommender
=
this
.
getQueryVariable
(
urlLink
,
'recommender'
)
getApp
().
globalData
.
settleRecommend
=
recommender
}
if
(
option
&&
option
.
recommender
){
recommender
=
decodeURI
(
option
.
recommender
)
getApp
().
globalData
.
settleRecommend
=
recommender
}
},
getQueryVariable
(
url
,
key
){
const
queryStringArr
=
url
.
split
(
'?'
)
let
val
=
''
let
queryStr
=
queryStringArr
&&
queryStringArr
.
length
>
1
&&
queryStringArr
[
1
]
if
(
!
queryStr
){
return
}
let
queryArr
=
queryStr
.
split
(
"&"
);
for
(
let
i
=
0
;
i
<
queryArr
.
length
;
i
++
)
{
let
pair
=
queryArr
[
i
].
split
(
"="
);
if
(
pair
[
0
]
==
key
){
val
=
pair
[
1
];
}
}
return
val
},
async
getBaseInfo
(){
const
app
=
getApp
()
const
callBack
=
(
vm
,
result
)
=>
{
vm
.
settledInfo
=
result
vm
.
status
=
result
.
record
.
status
}
let
settledInfo
=
await
app
.
getBaseInfo
(
this
,
callBack
)
if
(
!
settledInfo
){
return
}
this
.
settledInfo
=
settledInfo
this
.
status
=
settledInfo
.
record
.
status
},
startCounting
:
function
()
{
if
(
this
.
isStop
){
return
}
this
.
count
=
this
.
count
-
1
if
(
this
.
count
>
0
){
setTimeout
(
this
.
startCounting
,
1000
);
}
else
{
this
.
isStop
=
true
}
},
applyClick
:
async
function
()
{
if
(
!
this
.
isStop
){
return
}
this
.
saving
=
true
if
(
!
this
.
settledInfo
){
await
this
.
getBaseInfo
()
this
.
jumpJudge
()
this
.
saving
=
false
return
}
this
.
jumpJudge
()
},
jumpJudge
(){
if
(
this
.
status
>
0
){
uni
.
navigateTo
({
url
:
'/pages/settle/prompt'
})
return
}
uni
.
navigateTo
({
url
:
'/pages/settle/base'
})
}
}
}
</
script
>
<
style
>
/* page {
background-color: rgb(240, 242, 244);
} */
</
style
>
<
style
lang=
"scss"
scoped
>
.u-cell-icon
{
width
:
36rpx
;
height
:
36rpx
;
margin-right
:
8rpx
;
}
.back_view
{
background-color
:
#FFFFFF
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.theme_image
{
width
:
100%
;
height
:
3000rpx
;
margin-bottom
:
164rpx
;
}
.bottom_view
{
position
:fixed
;
box-shadow
:
0
-1rpx
6rpx
rgba
(
0
,
0
,
0
,
0
.05
);
bottom
:
0
;
background-color
:
#DAEBFF
;;
width
:
100%
;
height
:
164rpx
;
display
:
flex
;
align-content
:
center
;
justify-content
:
center
;
}
.bottom_btn
{
margin-top
:
30rpx
;
width
:
600rpx
;
height
:
104rpx
;
line-height
:
96rpx
;
border-radius
:
54rpx
;
// border: 4rpx solid #FFFFFF;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
&
.apply_color
{
// border: 4rpx solid #2272FF;
.bottom_title
{
color
:
#fff
;
}
}
}
.bottom_title
{
font-weight
:
bold
;
font-size
:
32rpx
;
color
:
#2272FF
;
}
.default_color
{
background-color
:
#fff
;
}
.apply_color
{
background-color
:
#2272FF
;
}
.introduction
{
border
:
4rpx
solid
#2272FF
;
border-radius
:
10rpx
;
background-color
:
#FFFFFF
;
margin
:
20rpx
;
margin-bottom
:
200rpx
;
}
.introduction
.item
{
padding
:
20rpx
;
}
.introduction
.item
.label
{
font-size
:
32rpx
;
padding
:
10rpx
;
}
.introduction
.item
.content
{
font-size
:
28rpx
;
padding
:
20rpx
40rpx
20rpx
40rpx
;
}
.careful-color
{
color
:
red
;
}
.careful-content
{
padding
:
10rpx
;
font-size
:
32rpx
;
}
</
style
>
src/pages/settle/index.vue
View file @
fcdb13f1
<
template
>
<view
class=
"wrap"
>
<process
:process=
"0"
:type=
"0"
title=
"业务流程"
></process>
<view
class=
"introduction"
>
<view
class=
"item"
>
<view
class=
"label"
>
<text>
招募要求
</text>
</view>
<view
class=
"content"
>
<text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean euismod bibendum laoreet. Proin gravida dolor sit
amet lacus accumsan et viverra justo commodo. Proin sodales
pulvinar sic tempor. Sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Nam fermentum,
nulla luctus pharetra vulputate, felis tellus 。
</text>
</view>
</view>
<view
class=
"item"
>
<view
class=
"label"
>
<text>
结算价格
</text>
</view>
<view
class=
"content"
>
<text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean euismod bibendum laoreet. Proin gravida dolor sit
amet lacus accumsan et viverra justo commodo. Proin sodales
pulvinar sic tempor. Sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Nam fermentum,
nulla luctus pharetra vulputate, felis tellus 。
</text>
</view>
</view>
<view
class=
"item"
>
<view
class=
"label"
>
<text>
入驻资料
</text>
</view>
<view
class=
"content"
>
<text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean euismod bibendum laoreet. Proin gravida dolor sit
amet lacus accumsan et viverra justo commodo. Proin sodales
pulvinar sic tempor. Sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Nam fermentum,
nulla luctus pharetra vulputate, felis tellus 。
</text>
</view>
</view>
<view
class=
"item careful-color"
>
<view
class=
"careful-content"
>
<text>
注意事项:
</text>
<text>
身份证、银行卡、签约人均为同一人,否则无法入驻;
</text>
<text>
充电桩材料按要求自行准备
</text>
</view>
</view>
</view>
<view
class=
"back_view"
>
<image
class=
"theme_image"
:src=
"theme_url"
mode=
"widthFix"
></image>
<view
class=
"bottom_view"
>
<button
:class=
"isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' "
@
click=
"$u.debounce(applyClick, 500)"
>
<text
class=
"bottom_title"
v-if=
"!isStop"
>
浏览
{{
count
}}
秒后可申请入驻
</text>
<text
class=
"bottom_title"
v-if=
"isStop"
>
申请入驻
</text>
</button>
<!--
<view
:class=
"isStop ? 'bottom_btn apply_color' : 'bottom_btn default_color' "
@
click=
"$u.deapplyClick"
>
<text
class=
"bottom_title"
v-if=
"!isStop"
>
浏览
{{
count
}}
秒后可申请入驻
</text>
<text
class=
"bottom_title"
v-if=
"isStop"
>
申请入驻
</text>
</view>
-->
</view>
</view>
</
template
>
<
script
>
import
{
process
}
from
'@/components/process/process'
export
default
{
components
:
{
process
},
data
()
{
return
{
theme_url
:
'https://qn-static.banshouhui.com/settle_theme.png?v='
+
new
Date
().
getTime
(),
count
:
9
,
...
...
@@ -155,6 +99,7 @@
},
applyClick
:
async
function
()
{
if
(
!
this
.
isStop
){
return
}
...
...
@@ -165,7 +110,6 @@
this
.
saving
=
false
return
}
this
.
jumpJudge
()
},
jumpJudge
(){
...
...
@@ -184,18 +128,7 @@
}
</
script
>
<
style
>
/* page {
background-color: rgb(240, 242, 244);
} */
</
style
>
<
style
lang=
"scss"
scoped
>
.u-cell-icon
{
width
:
36rpx
;
height
:
36rpx
;
margin-right
:
8rpx
;
}
<
style
lang=
"scss"
>
.back_view
{
background-color
:
#FFFFFF
;
...
...
@@ -256,31 +189,5 @@
.apply_color
{
background-color
:
#2272FF
;
}
.introduction
{
border
:
4rpx
solid
#2272FF
;
border-radius
:
10rpx
;
background-color
:
#FFFFFF
;
margin
:
20rpx
;
margin-bottom
:
200rpx
;
}
.introduction
.item
{
padding
:
20rpx
;
}
.introduction
.item
.label
{
font-size
:
32rpx
;
padding
:
10rpx
;
}
.introduction
.item
.content
{
font-size
:
28rpx
;
padding
:
20rpx
40rpx
20rpx
40rpx
;
}
.careful-color
{
color
:
red
;
}
.careful-content
{
padding
:
10rpx
;
font-size
:
32rpx
;
}
</
style
>
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