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
b4d6d3e5
Commit
b4d6d3e5
authored
Apr 16, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请入驻基本信息
parent
d307bdb4
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
800 additions
and
704 deletions
+800
-704
pages.json
src/pages.json
+3
-1
index.vue
src/pages/index/index.vue
+7
-5
base.vue
src/pages/settle/base.vue
+23
-1
file.vue
src/pages/settle/file.vue
+526
-499
prompt.vue
src/pages/settle/prompt.vue
+241
-198
anquan@3x.png
src/static/settle/anquan@3x.png
+0
-0
cemian@3x.png
src/static/settle/cemian@3x.png
+0
-0
chenggong@3x.png
src/static/settle/chenggong@3x.png
+0
-0
diangong@3x.png
src/static/settle/diangong@3x.png
+0
-0
guohui@3x.png
src/static/settle/guohui@3x.png
+0
-0
icon-prompt@3x.png
src/static/settle/icon-prompt@3x.png
+0
-0
jiashi@3x.png
src/static/settle/jiashi@3x.png
+0
-0
renxiang@3x.png
src/static/settle/renxiang@3x.png
+0
-0
xingshi@3x.png
src/static/settle/xingshi@3x.png
+0
-0
zhengmian@3x.png
src/static/settle/zhengmian@3x.png
+0
-0
No files found.
src/pages.json
View file @
b4d6d3e5
...
@@ -115,7 +115,9 @@
...
@@ -115,7 +115,9 @@
{
{
"path"
:
"pages/settle/prompt"
,
"path"
:
"pages/settle/prompt"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"入驻提示"
"navigationBarTitleText"
:
"入驻提示"
,
"navigationStyle"
:
"custom"
,
"disableScroll"
:
true
}
}
},
{
},
{
...
...
src/pages/index/index.vue
View file @
b4d6d3e5
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
暂无订单
暂无订单
</view>
</view>
<!-- 入驻前-->
<!-- 入驻前-->
<view
v-else
>
<view
v-else
-if=
"loaded"
>
<text
class=
"title"
>
当前订单
{{
count
}}
笔\n入驻通过后,平台将向您推荐订单
</text>
<text
class=
"title"
>
当前订单
{{
count
}}
笔\n入驻通过后,平台将向您推荐订单
</text>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
:custom-style=
"buttonStyle"
>
...
@@ -72,7 +72,8 @@
...
@@ -72,7 +72,8 @@
title
:
false
,
title
:
false
,
mode
:
'round'
,
mode
:
'round'
,
indicatorPos
:
'bottomCenter'
,
indicatorPos
:
'bottomCenter'
,
title
:
'Hello'
,
title
:
'Hello'
,
loaded
:
false
,
count
:
0
,
// 推荐订单数量
count
:
0
,
// 推荐订单数量
messageList
:
[{
messageList
:
[{
id
:
1234
,
id
:
1234
,
...
@@ -125,9 +126,10 @@
...
@@ -125,9 +126,10 @@
if
(
this
.
status
==
7
)
return
if
(
this
.
status
==
7
)
return
const
callBack
=
(
vm
,
result
)
=>
{
const
callBack
=
(
vm
,
result
)
=>
{
// 后台自动判断入驻流程是否完成,前台通过status确定状态
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if
(
result
&&
result
.
record
)
{
if
(
result
&&
result
.
record
)
{
// vm.status = result.record.status
vm
.
loaded
=
true
vm
.
status
=
0
vm
.
status
=
result
.
record
.
status
// vm.status = 1
}
}
}
}
await
app
.
getBaseInfo
(
this
,
callBack
)
await
app
.
getBaseInfo
(
this
,
callBack
)
...
...
src/pages/settle/base.vue
View file @
b4d6d3e5
<
template
>
<
template
>
<view
class=
"back_view"
>
<view
class=
"back_view"
>
<Settle
:index=
"2"
>
<Settle
:index=
"2"
>
<view
class=
"base-list"
>
<view
class=
"base-list"
>
<view
class=
"tip-text"
>
<image
class=
"tip-image"
mode=
"widthFix"
src=
"../../static/settle/anquan@3x.png"
></image>
<text>
身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。
</text>
</view>
<view
class=
"base-item"
>
<view
class=
"base-item"
>
<view
class=
"item item-select"
@
click=
"gopage('/pages/settle/select?selectType=area')"
>
<view
class=
"item item-select"
@
click=
"gopage('/pages/settle/select?selectType=area')"
>
<view
class=
"flex-center"
>
<view
class=
"flex-center"
>
...
@@ -668,5 +672,23 @@
...
@@ -668,5 +672,23 @@
.address-textarea
{
.address-textarea
{
font-size
:
26rpx
;
font-size
:
26rpx
;
}
.tip-text
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
38rpx
30rpx
30rpx
30rpx
;
height
:
140rpx
;
margin-bottom
:
20rpx
;
font-size
:
24rpx
;
color
:
#000000
;
display
:
flex
;
align-items
:
flex-start
;
}
.tip-image
{
width
:
34rpx
;
margin-right
:
8rpx
;
margin-top
:
2rpx
;
}
}
</
style
>
</
style
>
src/pages/settle/file.vue
View file @
b4d6d3e5
<
template
>
<
template
>
<view
class=
"page-content"
>
<view
class=
"page-content"
>
<Settle
:index=
"2"
>
<Settle
:index=
"2"
>
<view
class=
"title"
>
入驻充电安装业务所需资料
</view>
<view
class=
"tip-text"
>
<view
class=
"base-list"
>
<image
class=
"tip-image"
mode=
"widthFix"
src=
"../../static/settle/anquan@3x.png"
></image>
<template
v-for=
"(fileItem, index) in formShowList"
>
<text>
身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。
</text>
<view
class=
"item item-select flex flex-yc"
:key=
"index"
@
click=
"toUploadImg(fileItem, index)"
>
</view>
<view
class=
"label txt"
>
{{
fileItem
.
label
}}
</view>
<p
class=
"flex1 u-text-right txt"
v-show=
"fileInfo[fileItem.filedName] !== ''"
>
<template
v-slot:bottom
>
{{
<view
class=
"btn-wrap flex-xc"
>
imgObj
[
fileItem
.
filedName
]
&&
imgObj
[
fileItem
.
filedName
].
length
+
"张"
<button
class=
"btn-submit"
:disabled=
"!submitBtnStatus"
@
click=
"$u.debounce(submitFileInfo, 500)"
>
}}
{{
</p>
!
submitBtnStatus
?
"完成必填项,可提交资料"
:
"提交"
<u-icon
name=
"arrow-right"
color=
"#999"
size=
"28"
></u-icon>
}}
</view>
</button>
<view
class=
"tips"
:key=
"index + 't'"
>
</view>
{{
fileItem
.
tips
}}
</
template
>
</view>
<view
class=
"tips id-identity-box"
:key=
"index + 'identity'"
v-if=
"fileItem.filedName === 'id_card_front'"
>
<view
class=
"txt"
>
请核实识别结果
</view>
<view
class=
"txt"
>
<view
class=
"base-list"
>
身份证姓名:
{{
fileInfo
.
id_card_name
}}
<span
class=
"red"
v-show=
"
<
template
v-for=
"(fileItem, index) in formShowList"
>
!fileInfo.id_card_name &&
<view
class=
"item item-select flex flex-yc"
:key=
"index"
@
click=
"toUploadImg(fileItem, index)"
>
fileInfo.id_card_front
<view
class=
"label txt"
>
{{
fileItem
.
label
}}
</view>
"
>
识别失败,请重新上传
</span>
<p
class=
"flex1 u-text-right txt"
v-show=
"fileInfo[fileItem.filedName] !== ''"
>
</view>
{{
<view
class=
"txt"
>
imgObj
[
fileItem
.
filedName
]
&&
imgObj
[
fileItem
.
filedName
].
length
+
"张"
身份证号码:
{{
fileInfo
.
id_card_number
}}
}}
<span
class=
"red"
v-show=
"
</p>
!fileInfo.id_card_name &&
<u-icon
name=
"arrow-right"
color=
"#999"
size=
"28"
></u-icon>
fileInfo.id_card_front
</view>
"
>
识别失败,请重新上传
</span>
<view
class=
"tips"
:key=
"index + 't'"
>
</view>
{{
fileItem
.
tips
}}
</view>
</view>
</
template
>
<view
class=
"tips id-identity-box"
:key=
"index + 'identity'"
</view>
v-if=
"fileItem.filedName === 'id_card_front'"
>
<view
class=
"seat"
></view>
<view
class=
"txt"
>
请核实识别结果
</view>
<view
class=
"btn-wrap fixed flex flex-xc"
>
<view
class=
"txt"
>
<button
class=
"btn-submit"
:disabled=
"!submitBtnStatus"
@
click=
"$u.debounce(submitFileInfo, 500)"
>
身份证姓名:
{{
fileInfo
.
id_card_name
}}
<span
class=
"red"
v-show=
"
{{
!fileInfo.id_card_name &&
!submitBtnStatus ? "完成必填项,可提交资料" : "提交"
fileInfo.id_card_front
}}
"
>
识别失败,请重新上传
</span>
</button>
</view>
</view>
<view
class=
"txt"
>
</Settle>
身份证号码:
{{
fileInfo
.
id_card_number
</view>
}}
<span
class=
"red"
v-show=
"
</template>
!fileInfo.id_card_name &&
fileInfo.id_card_front
<
script
>
"
>
识别失败,请重新上传
</span>
</view>
</view>
</
template
>
</view>
<!-- <view class="seat"></view>
<view class="btn-wrap fixed flex flex-xc">
<button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)">
{{
!submitBtnStatus ? "完成必填项,可提交资料" : "提交"
}}
</button>
</view> -->
</Settle>
</view>
</template>
<
script
>
import
Settle
from
'@/components/settle/index.vue'
import
Settle
from
'@/components/settle/index.vue'
export
default
{
export
default
{
components
:
{
components
:
{
Settle
Settle
},
},
data
()
{
data
()
{
return
{
return
{
fileInfo
:
{
fileInfo
:
{
id
:
""
,
id
:
""
,
id_card_name
:
""
,
id_card_name
:
""
,
id_card_number
:
""
,
id_card_number
:
""
,
id_card_front
:
""
,
id_card_front
:
""
,
id_card_back
:
""
,
id_card_back
:
""
,
electrician_certificate
:
""
,
electrician_certificate
:
""
,
vehicle_photos
:
""
,
vehicle_photos
:
""
,
other_certificates
:
""
,
other_certificates
:
""
,
id_card_back_check
:
false
,
id_card_back_check
:
false
,
},
},
imgObj
:
{
imgObj
:
{
id_card_front
:
[],
id_card_front
:
[],
id_card_back
:
[],
id_card_back
:
[],
electrician_certificate
:
[],
electrician_certificate
:
[],
vehicle_photos
:
[],
vehicle_photos
:
[],
other_certificates
:
[]
other_certificates
:
[]
},
},
formShowList
:
[{
formShowList
:
[{
filedName
:
"id_card_front"
,
filedName
:
"id_card_front"
,
required
:
true
,
required
:
true
,
maxImgs
:
1
,
maxImgs
:
1
,
label
:
"身份证人像面"
,
label
:
"身份证人像面"
,
tips
:
"(必选项)拍身份证人像面,证件需清晰可见"
,
tips
:
"(必选项)拍身份证人像面,证件需清晰可见"
,
imgs
:
[],
imgs
:
[],
},
},
{
{
filedName
:
"id_card_back"
,
filedName
:
"id_card_back"
,
required
:
true
,
required
:
true
,
label
:
"身份证国徽面"
,
label
:
"身份证国徽面"
,
maxImgs
:
1
,
maxImgs
:
1
,
tips
:
"(必选项)拍身份证国徽面,证件需清晰可见"
,
tips
:
"(必选项)拍身份证国徽面,证件需清晰可见"
,
imgs
:
[],
imgs
:
[],
},
},
{
{
filedName
:
"electrician_certificate"
,
filedName
:
"electrician_certificate"
,
label
:
"电工证照"
,
label
:
"电工证照"
,
required
:
true
,
required
:
true
,
maxImgs
:
1
,
maxImgs
:
1
,
tips
:
"(必选项)拍电工证照,证件需清晰可见"
,
tips
:
"(必选项)拍电工证照,证件需清晰可见"
,
imgs
:
[],
imgs
:
[],
},
},
{
{
filedName
:
"vehicle_photos"
,
filedName
:
"vehicle_photos"
,
label
:
"车辆照"
,
label
:
"车辆照"
,
maxImgs
:
1
,
maxImgs
:
1
,
tips
:
"(可选项)45度拍摄车辆照片,车牌清晰可见"
,
tips
:
"(可选项)45度拍摄车辆照片,车牌清晰可见"
,
imgs
:
[],
imgs
:
[],
},
},
{
{
filedName
:
"other_certificates"
,
filedName
:
"other_certificates"
,
label
:
"其他工作证件"
,
label
:
"其他工作证件"
,
imgs
:
[],
imgs
:
[],
maxImgs
:
999
,
maxImgs
:
999
,
tips
:
"(可选项)可拍多张"
,
tips
:
"(可选项)可拍多张"
,
},
},
],
],
submitSuccess
:
false
,
submitSuccess
:
false
,
saving
:
false
,
saving
:
false
,
}
}
},
},
onLoad
(
e
)
{},
onLoad
(
e
)
{},
updated
()
{
updated
()
{
this
.
updateImgs
()
this
.
updateImgs
()
},
},
watch
:
{
watch
:
{
"fileInfo.id_card_front"
()
{
"fileInfo.id_card_front"
()
{
if
(
this
.
fileInfo
.
id_card_front
)
{
if
(
this
.
fileInfo
.
id_card_front
)
{
this
.
checkIdCard
(
"front"
);
this
.
checkIdCard
(
"front"
);
}
else
{
}
else
{
this
.
fileInfo
.
id_card_name
=
""
;
this
.
fileInfo
.
id_card_name
=
""
;
this
.
fileInfo
.
id_card_number
=
""
;
this
.
fileInfo
.
id_card_number
=
""
;
}
}
},
},
"fileInfo.id_card_back"
()
{
"fileInfo.id_card_back"
()
{
if
(
this
.
fileInfo
.
id_card_front
)
{
if
(
this
.
fileInfo
.
id_card_front
)
{
this
.
checkIdCard
(
"back"
);
this
.
checkIdCard
(
"back"
);
}
else
{
}
else
{
this
.
fileInfo
.
id_card_back_check
=
true
;
this
.
fileInfo
.
id_card_back_check
=
true
;
}
}
},
},
},
},
computed
:
{
computed
:
{
submitBtnStatus
()
{
submitBtnStatus
()
{
// const baseInfo = this.baseInfo
// const baseInfo = this.baseInfo
const
fileInfo
=
this
.
fileInfo
const
fileInfo
=
this
.
fileInfo
const
flag
=
fileInfo
.
id_card_front
&&
fileInfo
.
id_card_back
&&
fileInfo
.
electrician_certificate
const
flag
=
fileInfo
.
id_card_front
&&
fileInfo
.
id_card_back
&&
fileInfo
.
electrician_certificate
return
flag
&&
!
this
.
saving
;
return
flag
&&
!
this
.
saving
;
},
},
},
},
components
:
{
components
:
{
},
},
methods
:
{
methods
:
{
updateImgs
(){
updateImgs
()
{
const
uploadType
=
this
.
uploadType
const
uploadType
=
this
.
uploadType
const
uploadImgs
=
this
.
imgObj
[
uploadType
]
const
uploadImgs
=
this
.
imgObj
[
uploadType
]
if
(
uploadImgs
.
length
<
1
){
if
(
uploadImgs
.
length
<
1
)
{
return
return
}
}
if
(
uploadType
===
'other_certificates'
){
if
(
uploadType
===
'other_certificates'
)
{
const
otherImgs
=
this
.
imgObj
[
'other_certificates'
]
const
otherImgs
=
this
.
imgObj
[
'other_certificates'
]
let
imgs
=
[]
let
imgs
=
[]
otherImgs
.
map
(
item
=>
{
otherImgs
.
map
(
item
=>
{
const
img
=
item
.
key
||
item
.
src
||
''
const
img
=
item
.
key
||
item
.
src
||
''
imgs
.
push
(
img
)
imgs
.
push
(
img
)
})
})
this
.
fileInfo
[
uploadType
]
=
imgs
.
join
(
','
)
this
.
fileInfo
[
uploadType
]
=
imgs
.
join
(
','
)
return
return
}
}
this
.
fileInfo
[
uploadType
]
=
uploadImgs
[
0
].
key
||
uploadImgs
[
0
].
src
||
''
this
.
fileInfo
[
uploadType
]
=
uploadImgs
[
0
].
key
||
uploadImgs
[
0
].
src
||
''
},
},
toUploadImg
(
item
,
index
)
{
toUploadImg
(
item
,
index
)
{
this
.
uploadType
=
item
.
filedName
this
.
uploadType
=
item
.
filedName
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/settle/file-upload?uploadType='
+
item
.
filedName
url
:
'/pages/settle/file-upload?uploadType='
+
item
.
filedName
})
})
// this.fileUploadIndex = index;
// this.fileUploadIndex = index;
},
},
gopage
(
url
)
{
gopage
(
url
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
,
url
,
});
});
},
},
async
checkIdCard
(
type
)
{
async
checkIdCard
(
type
)
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
})
})
let
request
=
{
let
request
=
{
front
:
this
.
$u
.
api
.
checkSettleIDCardFront
,
front
:
this
.
$u
.
api
.
checkSettleIDCardFront
,
back
:
this
.
$u
.
api
.
checkSettleIDCardBack
,
back
:
this
.
$u
.
api
.
checkSettleIDCardBack
,
};
};
let
url
=
{
let
url
=
{
front
:
this
.
fileInfo
.
id_card_front
,
front
:
this
.
fileInfo
.
id_card_front
,
back
:
this
.
fileInfo
.
id_card_back
,
back
:
this
.
fileInfo
.
id_card_back
,
};
};
const
params
=
{
const
params
=
{
[
"id_card_"
+
type
]:
url
[
type
],
[
"id_card_"
+
type
]:
url
[
type
],
id
:
this
.
fileInfo
.
id
||
0
,
id
:
this
.
fileInfo
.
id
||
0
,
}
}
const
res
=
await
request
[
type
](
params
);
const
res
=
await
request
[
type
](
params
);
if
(
res
.
code
!==
200
)
{
if
(
res
.
code
!==
200
)
{
if
(
type
===
"front"
)
{
if
(
type
===
"front"
)
{
this
.
fileInfo
.
id_card_name
=
""
;
this
.
fileInfo
.
id_card_name
=
""
;
this
.
fileInfo
.
id_card_number
=
""
;
this
.
fileInfo
.
id_card_number
=
""
;
}
else
{
}
else
{
this
.
fileInfo
.
id_card_back_check
=
false
;
this
.
fileInfo
.
id_card_back_check
=
false
;
}
}
return
return
}
}
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
type
===
"front"
)
{
if
(
type
===
"front"
)
{
this
.
fileInfo
.
id_card_name
=
this
.
fileInfo
.
id_card_name
=
res
.
data
.
id_card_name
||
""
;
res
.
data
.
id_card_name
||
""
;
this
.
fileInfo
.
id_card_number
=
this
.
fileInfo
.
id_card_number
=
res
.
data
.
id_card_number
||
""
;
res
.
data
.
id_card_number
||
""
;
}
else
{
}
else
{
this
.
fileInfo
.
id_card_back_check
=
true
;
this
.
fileInfo
.
id_card_back_check
=
true
;
}
}
},
},
checkFileInfo
()
{
checkFileInfo
()
{
let
formFlag
=
true
;
let
formFlag
=
true
;
const
fileInfo
=
this
.
fileInfo
;
const
fileInfo
=
this
.
fileInfo
;
let
checkFunc
=
function
(
item
)
{
let
checkFunc
=
function
(
item
)
{
const
value
=
fileInfo
[
item
.
filedName
];
const
value
=
fileInfo
[
item
.
filedName
];
const
tips
=
"请上传您的"
+
item
.
label
;
const
tips
=
"请上传您的"
+
item
.
label
;
if
(
!
value
)
{
if
(
!
value
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
tips
,
title
:
tips
,
icon
:
'none'
icon
:
'none'
})
})
return
false
;
return
false
;
}
}
return
true
;
return
true
;
};
};
const
flagArr
=
this
.
formShowList
.
some
((
item
)
=>
{
const
flagArr
=
this
.
formShowList
.
some
((
item
)
=>
{
// 返回验证失败的数组
// 返回验证失败的数组
let
flag
=
true
;
let
flag
=
true
;
if
(
item
.
required
)
{
if
(
item
.
required
)
{
flag
=
checkFunc
(
item
);
flag
=
checkFunc
(
item
);
}
}
return
!
flag
;
return
!
flag
;
});
});
formFlag
=
!
flagArr
||
flagArr
.
length
>
1
;
formFlag
=
!
flagArr
||
flagArr
.
length
>
1
;
if
(
formFlag
)
{
if
(
formFlag
)
{
if
(
!
fileInfo
.
id_card_name
)
{
if
(
!
fileInfo
.
id_card_name
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'身份证识别不通过,请重新上传'
,
title
:
'身份证识别不通过,请重新上传'
,
icon
:
'none'
icon
:
'none'
})
})
formFlag
=
false
;
formFlag
=
false
;
return
formFlag
;
return
formFlag
;
}
}
if
(
!
fileInfo
.
id_card_back_check
)
{
if
(
!
fileInfo
.
id_card_back_check
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'身份证国徽面识别不通过,请重新上传'
,
title
:
'身份证国徽面识别不通过,请重新上传'
,
icon
:
'none'
icon
:
'none'
})
})
formFlag
=
false
;
formFlag
=
false
;
}
}
}
}
return
formFlag
;
return
formFlag
;
},
},
async
submitFileInfo
()
{
async
submitFileInfo
()
{
if
(
!
this
.
checkFileInfo
())
{
if
(
!
this
.
checkFileInfo
())
{
return
;
return
;
}
}
const
fileInfo
=
this
.
fileInfo
;
const
fileInfo
=
this
.
fileInfo
;
let
submitInfoData
=
{
let
submitInfoData
=
{
...
fileInfo
,
...
fileInfo
,
recommender
:
getApp
().
globalData
.
settleRecommend
recommender
:
getApp
().
globalData
.
settleRecommend
}
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中……'
title
:
'加载中……'
})
})
const
res
=
await
this
.
$u
.
api
.
submitSettleFileInfo
(
submitInfoData
)
const
res
=
await
this
.
$u
.
api
.
submitSettleFileInfo
(
submitInfoData
)
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
code
!==
200
)
{
if
(
res
.
code
!==
200
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
icon
:
'none'
icon
:
'none'
})
})
return
return
}
}
uni
.
showToast
({
uni
.
showToast
({
title
:
'资料提交成功'
,
title
:
'资料提交成功'
,
})
})
let
timer
=
setTimeout
(()
=>
{
let
timer
=
setTimeout
(()
=>
{
clearTimeout
(
timer
)
clearTimeout
(
timer
)
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/settle/prompt'
url
:
'/pages/settle/prompt'
})
})
},
2000
)
},
2000
)
this
.
submitSuccess
=
true
;
this
.
submitSuccess
=
true
;
// this.$u.api.post("@u/v1/h5/settled/submit-info", submitInfoData)
// this.$u.api.post("@u/v1/h5/settled/submit-info", submitInfoData)
// .then((res) => {
// .then((res) => {
// uni.hideLoading()
// uni.hideLoading()
// if (res.status != 200) {
// if (res.status != 200) {
// return;
// return;
// }
// }
// if (res.data) {
// if (res.data) {
// uni.showToast({
// uni.showToast({
// title:'工作人员2个工作日内审核回复',
// title:'工作人员2个工作日内审核回复',
// icon:'none'
// icon:'none'
// })
// })
// this.submitSuccess = true;
// this.submitSuccess = true;
// }
// }
// })
// })
// .catch(() => {
// .catch(() => {
// //Indicator.close();
// //Indicator.close();
// });
// });
},
},
},
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.base-list
{
.page-content
{
.item
{
background-color
:
#F4F5F7
;
display
:
flex
;
position
:
absolute
;
margin-bottom
:
58rpx
;
top
:
0
;
padding
:
28rpx
30rpx
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
100rpx
;
height
:
100%
;
font-size
:
32rpx
;
display
:
flex
;
background-color
:
#fff
;
flex-direction
:
column
;
}
.label
{
color
:
#333
;
.base-list
{
font-size
:
32rpx
;
.item
{
}
display
:
flex
;
margin-bottom
:
58rpx
;
.txt
{
padding
:
28rpx
30rpx
;
line-height
:
44rpx
;
width
:
100%
;
color
:
#333
;
height
:
100rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
}
background-color
:
#fff
;
.required
{
.label
{
margin
:
0
6rpx
;
color
:
#333
;
color
:
red
;
font-size
:
32rpx
;
font-size
:
32rpx
;
}
}
.txt
{
.iconfont
{
line-height
:
44rpx
;
color
:
#999
;
color
:
#333
;
}
font-size
:
32rpx
;
}
}
.tips
{
.required
{
margin-top
:
20rpx
;
margin
:
0
6rpx
;
padding
:
0
30rpx
;
color
:
red
;
line-height
:
40rpx
;
font-size
:
32rpx
;
font-size
:
28rpx
;
}
color
:
#666
;
.iconfont
{
&
+
.id-identity-box
{
color
:
#999
;
margin-top
:
-38rpx
;
}
margin-bottom
:
40rpx
;
}
}
}
.tips
{
margin-top
:
20rpx
;
.id-identity-box
{
padding
:
0
30rpx
;
.txt
{
line-height
:
40rpx
;
padding-top
:
8rpx
;
font-size
:
28rpx
;
line-height
:
40rpx
;
color
:
#666
;
font-size
:
28rpx
;
color
:
#666
;
&
+
.id-identity-box
{
margin-top
:
-38rpx
;
&
:first-child
{
margin-bottom
:
40rpx
;
margin-top
:
-58rpx
;
}
padding-top
:
12rpx
;
}
}
.id-identity-box
{
.red
{
.txt
{
color
:
red
;
padding-top
:
8rpx
;
}
line-height
:
40rpx
;
}
font-size
:
28rpx
;
color
:
#666
;
// &.tips{
// margin-bottom:0!important;
&
:first-child
{
// }
margin-top
:
-58rpx
;
padding-top
:
12rpx
;
}
}
.item
+
.tips
{
.red
{
margin-top
:
-38rpx
;
color
:
red
;
margin-bottom
:
58rpx
;
}
}
}
/*选择内容*/
// &.tips{
.item-select
{
// margin-bottom:0!important;
font-size
:
30rpx
;
// }
color
:
#333
;
font-weight
:
500
;
}
justify-content
:
space-between
;
border-bottom
:
1rpx
solid
#f5f5f5
;
.item
+
.tips
{
}
margin-top
:
-38rpx
;
margin-bottom
:
58rpx
;
.flex1
{
}
flex
:
1
!
important
;
/*选择内容*/
&
.txt
{
.item-select
{
white-space
:
nowrap
;
font-size
:
30rpx
;
// max-width: 450rpx;
color
:
#333
;
overflow
:
hidden
;
font-weight
:
500
;
text-overflow
:
ellipsis
;
justify-content
:
space-between
;
}
border-bottom
:
1rpx
solid
#f5f5f5
;
}
}
.item-input
{
.flex1
{
overflow
:
hidden
;
flex
:
1
!
important
;
input
{
&
.txt
{
text-align
:
right
;
white-space
:
nowrap
;
line-height
:
44rpx
;
// max-width: 450rpx;
width
:
100%
;
overflow
:
hidden
;
font-size
:
30rpx
;
text-overflow
:
ellipsis
;
color
:
#333
;
}
font-weight
:
400
;
}
}
.item-input
{
.input-readonly
{
overflow
:
hidden
;
font-size
:
30rpx
;
color
:
#999
;
input
{
font-weight
:
400
;
text-align
:
right
;
}
line-height
:
44rpx
;
width
:
100%
;
input
:
:-
webkit-input-placeholder
{
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#333
;
color
:
#999
;
font-weight
:
400
;
font-weight
:
400
;
}
}
.input-readonly
{
input
:
-
moz-placeholder
{
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#999
;
color
:
#999
;
font-weight
:
400
;
font-weight
:
400
;
}
}
input
:
:-
webkit-input-placeholder
{
input
:
-
ms-input-placeholder
{
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#999
;
color
:
#999
;
font-weight
:
400
;
font-weight
:
400
;
}
}
}
input
:
-
moz-placeholder
{
}
font-size
:
30rpx
;
color
:
#999
;
.title
{
font-weight
:
400
;
padding
:
30rpx
0
40rpx
;
}
text-align
:
center
;
line-height
:
50rpx
;
input
:
-
ms-input-placeholder
{
font-size
:
36rpx
;
font-size
:
30rpx
;
color
:
#333
;
color
:
#999
;
font-weight
:
bold
;
font-weight
:
400
;
}
}
}
.seat
{
}
padding-bottom
:
144rpx
;
}
.tip-text
{
background-color
:
#FFFFFF
;
/*提交按钮*/
border-radius
:
12rpx
;
.btn-wrap
{
padding
:
38rpx
30rpx
30rpx
30rpx
;
position
:
fixed
;
height
:
140rpx
;
// margin: px2rem(36);
margin-bottom
:
20rpx
;
left
:
0
;
font-size
:
24rpx
;
right
:
0
;
color
:
#000000
;
bottom
:
0
;
display
:
flex
;
padding
:
30rpx
0
;
align-items
:
flex-start
;
background
:
#f3f3f3
;
}
.btn-submit
{
.tip-image
{
width
:
600rpx
;
width
:
34rpx
;
// left: 5%;
margin-right
:
8rpx
;
// bottom: px2rem(36);
margin-top
:
2rpx
;
height
:
104rpx
;
}
line-height
:
104rpx
;
border-radius
:
52rpx
;
.seat
{
overflow
:
hidden
;
padding-bottom
:
144rpx
;
background
:
#2272ff
;
}
font-size
:
32rpx
;
color
:
#fff
;
/*提交按钮*/
.btn-wrap
{
&
[
disabled
]
{
width
:
100%
;
border
:
2rpx
solid
#999
;
background-color
:
#f3f3f3
;
.btn-submit
{
color
:
#999
;
width
:
600rpx
;
}
height
:
104rpx
;
}
line-height
:
104rpx
;
}
border-radius
:
52rpx
;
background
:
#2272FF
;
/* .back_view{
font-size
:
32rpx
;
background-color: #FFFFFF;
color
:
#fff
;
position: absolute;
top: 0;
&
[
disabled
]
{
left: 0;
background-color
:
#D1D4D4
;
width: 100%;
color
:
#FFFFFF
;
display: flex;
}
flex-direction: column;
}
}
}
*/
/* .back_view{
background-color: #FFFFFF;
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
*/
</
style
>
</
style
>
src/pages/settle/prompt.vue
View file @
b4d6d3e5
<
template
>
<
template
>
<view
class=
"container u-row-between"
v-if=
"info"
>
<view
class=
"container u-row-between"
v-if=
"info"
>
<view
class=
"u-flex u-row-center"
>
<Settle
:index=
"2"
>
<image
class=
"icon"
src=
"@/static/settle/icon-prompt.png"
></image>
<view
class=
"content-view"
>
</view>
<view
class=
"u-flex u-row-center"
>
<view
class=
"txt-box"
>
<image
:class=
"['icon',
{active: status != 1}]"
<text
:class=
"['title',index ? 'active' : '']"
v-for=
"(txt,index) in info.txtArr"
>
{{
txt
}}
</text>
:src="status == 1 ? require('@/static/settle/chenggong@3x.png') : require('@/static/settle/icon-prompt@3x.png')">
</view>
</image>
<view
class=
"tips-box"
v-if=
"info.tipsArr"
>
</view>
<text
:class=
"['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']"
v-for=
"(txt,index) in info.tipsArr"
>
{{
txt
}}
</text>
<view
class=
"txt-box"
>
</view>
<text
:class=
"['title',index ? 'active' : '']"
v-for=
"(txt,index) in info.txtArr"
>
{{
txt
}}
</text>
<button
class=
"btn-submit"
@
click=
"$u.debounce(goPage, 500)"
>
{{
info
.
btnTxt
}}
</button>
</view>
</view>
<view
class=
"tips-box"
v-if=
"info.tipsArr"
>
</
template
>
<text
:class=
"['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']"
v-for=
"(txt,index) in info.tipsArr"
>
{{
txt
}}
</text>
<
script
>
</view>
export
default
{
</view>
data
()
{
<template
v-slot:bottom
>
return
{
<button
class=
"btn-submit"
@
click=
"$u.debounce(goPage, 500)"
>
{{
info
.
btnTxt
}}
</button>
settledInfo
:
null
,
</
template
>
promptList
:[{
</Settle>
status
:
1
,
</view>
statusName
:
'待审核'
,
</template>
txtArr
:[
'已提交,等待审核'
,
'正在审核中'
],
btnTxt
:
'去接单广场逛逛'
,
<
script
>
url
:
'/pages/take/index'
import
Settle
from
'@/components/settle/index.vue'
},{
status
:
2
,
export
default
{
statusName
:
'已通过'
,
components
:
{
txtArr
:[
'恭喜,审核通过'
,
'“充电桩安装入驻审核”'
],
Settle
btnTxt
:
'去考试'
,
},
url
:
'/pages/exam/start'
},{
data
()
{
status
:
3
,
return
{
statusName
:
'备选'
,
settledInfo
:
null
,
txtArr
:[
'您已成为'
,
"“充电桩安装备选服务商”"
],
promptList
:
[{
tipsArr
:[
'后续如有业务,请留意通知!'
],
status
:
1
,
btnTxt
:
'去接单广场逛逛'
,
statusName
:
'待审核'
,
url
:
'/pages/take/index'
txtArr
:
[
'已提交,等待审核'
,
'正在审核中'
],
},{
btnTxt
:
'去接单广场逛逛'
,
status
:
4
,
url
:
'/pages/take/index'
statusName
:
'已驳回'
,
},
{
txtArr
:[
'您的入驻资料已被驳回!'
,
'可重新提交资料!'
],
status
:
2
,
tipsArr
:[
'原因:'
,
'图片不够清楚'
],
statusName
:
'已通过'
,
btnTxt
:
'重新提交'
,
txtArr
:
[
'恭喜,审核通过'
,
'“充电桩安装入驻审核”'
],
url
:
'/pages/settle/file'
btnTxt
:
'去考试'
,
},{
url
:
'/pages/exam/start'
status
:
8
,
},
{
statusName
:
'step4'
,
status
:
3
,
txtArr
:[
'您已通过'
,
'“充电桩安装入驻考试”'
],
statusName
:
'备选'
,
tipsArr
:[
'可以正式签约了'
],
txtArr
:
[
'您已成为'
,
"“充电桩安装备选服务商”"
],
btnTxt
:
'去签约'
,
tipsArr
:
[
'后续如有业务,请留意通知!'
],
url
:
'/pages/settle/sign-contract'
btnTxt
:
'去接单广场逛逛'
,
},{
url
:
'/pages/take/index'
status
:[
5
,
6
],
},
{
statusName
:
'未支付保证金'
,
status
:
4
,
txtArr
:[
'您已成为'
,
"充电桩安装的签约服务商"
],
statusName
:
'已驳回'
,
tipsArr
:[
'请缴纳1000元质保金'
],
txtArr
:
[
'您的入驻资料已被驳回!'
,
'可重新提交资料!'
],
btnTxt
:
'去缴纳保证金'
,
tipsArr
:
[
'原因:'
,
'图片不够清楚'
],
url
:
'/pages/settle/pay-ensure'
btnTxt
:
'重新提交'
,
},{
url
:
'/pages/settle/file'
status
:
7
,
},
{
statusName
:
'已支付保证金'
,
status
:
8
,
txtArr
:[
'您已成为'
,
"充电桩安装的正式服务商"
],
statusName
:
'step4'
,
btnTxt
:
'去接单广场逛逛'
,
txtArr
:
[
'您已通过'
,
'“充电桩安装入驻考试”'
],
url
:
'/pages/take/index'
tipsArr
:
[
'可以正式签约了'
],
}],
btnTxt
:
'去签约'
,
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
url
:
'/pages/settle/sign-contract'
status
:
''
,
},
{
info
:
null
,
status
:
[
5
,
6
],
statusName
:
'未支付保证金'
,
}
txtArr
:
[
'您已成为'
,
"充电桩安装的签约服务商"
],
},
tipsArr
:
[
'请缴纳1000元质保金'
],
onLoad
(
e
)
{
btnTxt
:
'去缴纳保证金'
,
// if(!this.settledInfo){
url
:
'/pages/settle/pay-ensure'
// this.getBaseInfo()
},
{
// }
status
:
7
,
},
statusName
:
'已支付保证金'
,
onShow
(){
txtArr
:
[
'您已成为'
,
"充电桩安装的正式服务商"
],
if
(
!
this
.
settledInfo
){
btnTxt
:
'去接单广场逛逛'
,
this
.
getBaseInfo
()
url
:
'/pages/take/index'
}
}],
},
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
computed
:
{
status
:
''
,
},
info
:
null
,
components
:
{
}
},
},
methods
:
{
computed
:
{
async
getBaseInfo
(){
imageUrl
()
{
const
app
=
getApp
()
return
this
.
status
==
1
?
require
(
'@/static/settle/chenggong@3x.png'
)
:
require
(
const
callBack
=
(
vm
,
result
)
=>
{
'@/static/settle/icon-prompt@3x.png'
)
vm
.
settledInfo
=
result
}
vm
.
status
=
result
.
record
.
status
},
}
onLoad
(
e
)
{
let
settledInfo
=
await
app
.
getBaseInfo
(
this
,
callBack
)
// if(!this.settledInfo){
this
.
settledInfo
=
settledInfo
// this.getBaseInfo()
this
.
status
=
settledInfo
.
record
.
status
// }
uni
.
hideLoading
()
},
this
.
initInfo
(
settledInfo
.
record
)
onShow
()
{
},
if
(
!
this
.
settledInfo
)
{
initInfo
(
record
){
this
.
getBaseInfo
()
if
(
!
record
){
}
this
.
info
=
this
.
promptList
[
0
]
},
return
computed
:
{},
}
components
:
{
const
status
=
record
.
status
// const status = 7
},
const
infoArr
=
this
.
promptList
.
filter
(
item
=>
{
methods
:
{
const
itemStatus
=
item
.
status
async
getBaseInfo
()
{
// console.log(itemStatus,'itemStatus')
const
app
=
getApp
()
let
idx
=
-
2
const
callBack
=
(
vm
,
result
)
=>
{
if
(
Array
.
isArray
(
itemStatus
)){
vm
.
settledInfo
=
result
idx
=
itemStatus
.
indexOf
(
status
)
vm
.
status
=
result
.
record
.
status
}
}
return
itemStatus
===
status
||
idx
>=
0
let
settledInfo
=
await
app
.
getBaseInfo
(
this
,
callBack
)
})
this
.
settledInfo
=
settledInfo
const
info
=
infoArr
.
length
>
0
&&
infoArr
[
0
]
this
.
status
=
settledInfo
.
record
.
status
if
(
!
info
){
uni
.
hideLoading
()
this
.
info
=
this
.
promptList
[
0
]
this
.
initInfo
(
settledInfo
.
record
)
return
},
}
initInfo
(
record
)
{
if
(
status
===
6
){
if
(
!
record
)
{
info
.
tipsArr
[
0
]
=
'请缴纳'
+
this
.
settledInfo
.
record
.
deposit
+
'元质保金'
this
.
info
=
this
.
promptList
[
0
]
}
else
if
(
status
===
4
){
return
info
.
tipsArr
[
1
]
=
this
.
settledInfo
.
record
.
reason
||
''
}
}
const
status
=
record
.
status
this
.
info
=
info
// const status = 7
},
const
infoArr
=
this
.
promptList
.
filter
(
item
=>
{
goPage
()
{
const
itemStatus
=
item
.
status
const
url
=
this
.
info
.
url
// console.log(itemStatus,'itemStatus')
uni
.
navigateTo
({
let
idx
=
-
2
url
,
if
(
Array
.
isArray
(
itemStatus
))
{
});
idx
=
itemStatus
.
indexOf
(
status
)
},
}
},
return
itemStatus
===
status
||
idx
>=
0
}
})
</
script
>
const
info
=
infoArr
.
length
>
0
&&
infoArr
[
0
]
if
(
!
info
)
{
<
style
lang=
"scss"
>
this
.
info
=
this
.
promptList
[
0
]
.container
{
return
display
:
flex
;
}
width
:
750rpx
;
if
(
status
===
6
)
{
// height:500rpx;
info
.
tipsArr
[
0
]
=
'请缴纳'
+
this
.
settledInfo
.
record
.
deposit
+
'元质保金'
display
:
flex
;
}
else
if
(
status
===
4
)
{
info
.
tipsArr
[
1
]
=
this
.
settledInfo
.
record
.
reason
||
''
}
this
.
info
=
info
},
goPage
()
{
const
url
=
this
.
info
.
url
uni
.
navigateTo
({
url
,
});
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.container
{
display
:
flex
;
width
:
750rpx
;
// height:500rpx;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.icon
{
background-color
:
#F4F5F7
;
margin-top
:
180rpx
;
height
:
100%
;
width
:
316rpx
;
position
:
absolute
;
height
:
312rpx
}
.icon
{
margin-top
:
68rpx
;
.txt-box
{
width
:
334rpx
;
margin-top
:
112rpx
;
height
:
320rpx
;
}
.title
{
&
.active
{
display
:
block
;
width
:
224rpx
;
font-weight
:
bold
;
height
:
224rpx
;
margin-top
:
20rpx
;
}
// padding: 0 30rpx;
}
text-align
:
center
;
font-weight
:
bold
;
.content-view
{
line-height
:
66rpx
;
background-color
:
#FFFFFF
;
font-size
:
48rpx
;
margin-bottom
:
188rpx
;
color
:
#333
;
border-radius
:
12rpx
;
&
.active
{
padding
:
30rpx
;
color
:
#2272FF
}
}
}
.txt-box
{
.tips-box
{
padding-bottom
:
50rpx
;
margin-top
:
32rpx
;
}
text-align
:
center
;
}
.title
{
.tips
{
display
:
block
;
text-align
:
center
;
font-weight
:
bold
;
line-height
:
44rpx
;
// padding: 0 30rpx;
font-size
:
32rpx
;
text-align
:
center
;
color
:
#666
;
font-weight
:
bold
;
&
.red
{
font-size
:
44rpx
;
color
:red
;
color
:
#2272FF
;
}
}
&
.active
{
.btn-submit
{
color
:
#666666
;
margin-top
:
112rpx
;
font-size
:
24rpx
;
width
:
600rpx
;
font-weight
:
300rpx
;
height
:
104rpx
;
margin-top
:
26rpx
;
line-height
:
104rpx
;
}
border-radius
:
52rpx
;
}
background
:
#2272ff
;
font-size
:
32rpx
;
.tips-box
{
color
:
#fff
;
margin-top
:
32rpx
;
text-align
:
center
;
&
:disabled
{
}
border
:
2rpx
solid
#999
;
background-color
:
#f3f3f3
;
.tips
{
color
:
#999
;
text-align
:
center
;
}
line-height
:
44rpx
;
}
font-size
:
32rpx
;
}
color
:
#666
;
&
.red
{
color
:
red
;
}
}
.btn-submit
{
margin-top
:
112rpx
;
width
:
600rpx
;
height
:
104rpx
;
line-height
:
104rpx
;
border-radius
:
52rpx
;
background
:
#2272ff
;
font-size
:
32rpx
;
color
:
#fff
;
&
:disabled
{
border
:
2rpx
solid
#999
;
background-color
:
#f3f3f3
;
color
:
#999
;
}
}
}
</
style
>
</
style
>
src/static/settle/anquan@3x.png
0 → 100644
View file @
b4d6d3e5
2.22 KB
src/static/settle/cemian@3x.png
0 → 100644
View file @
b4d6d3e5
14.4 KB
src/static/settle/chenggong@3x.png
0 → 100644
View file @
b4d6d3e5
37.1 KB
src/static/settle/diangong@3x.png
0 → 100644
View file @
b4d6d3e5
9.06 KB
src/static/settle/guohui@3x.png
0 → 100644
View file @
b4d6d3e5
10 KB
src/static/settle/icon-prompt@3x.png
0 → 100644
View file @
b4d6d3e5
26.6 KB
src/static/settle/jiashi@3x.png
0 → 100644
View file @
b4d6d3e5
9.61 KB
src/static/settle/renxiang@3x.png
0 → 100644
View file @
b4d6d3e5
9.83 KB
src/static/settle/xingshi@3x.png
0 → 100644
View file @
b4d6d3e5
9.61 KB
src/static/settle/zhengmian@3x.png
0 → 100644
View file @
b4d6d3e5
11 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