Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
eba3f263
Commit
eba3f263
authored
Nov 30, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请加盟联调
parent
f8e22c23
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1051 additions
and
640 deletions
+1051
-640
api/api.ts
+5
-1
pages.json
+9
-3
pages/application-process/application-result.vue
+78
-0
pages/application-process/applyCommon.scss
+42
-1
pages/application-process/bank-card.vue
+96
-61
pages/application-process/basic-info.vue
+182
-148
pages/application-process/contract.vue
+96
-63
pages/application-process/education.vue
+123
-88
pages/application-process/id-card.vue
+115
-83
pages/application-process/personal-statement.vue
+91
-59
pages/application-process/signature.vue
+72
-21
pages/application-process/work-experience.vue
+131
-102
pages/systemMsg/system_msg.vue
+1
-1
pages/withdrawal/withdrawal.vue
+10
-9
No files found.
api/api.ts
View file @
eba3f263
...
@@ -275,7 +275,7 @@ export default {
...
@@ -275,7 +275,7 @@ export default {
},
},
//查询申请加盟信息
//查询申请加盟信息
queryById
(
params
){
queryById
(
params
){
return
request
(
`
${
cffpURL
}
/partner/queryById
/
${
params
}
`
,
"GET"
)
return
request
(
`
${
cffpURL
}
/partner/queryById
`
,
"POST"
,
params
)
},
},
//支付宝去提现
//支付宝去提现
aliWithdrawal
(
params
){
aliWithdrawal
(
params
){
...
@@ -284,5 +284,9 @@ export default {
...
@@ -284,5 +284,9 @@ export default {
//微信去提现
//微信去提现
wxWithdrawal
(
params
){
wxWithdrawal
(
params
){
return
request
(
`
${
apiURL
}
/pay/wxWithdrawal`
,
"POST"
,
params
)
return
request
(
`
${
apiURL
}
/pay/wxWithdrawal`
,
"POST"
,
params
)
},
//保存base64电子签名
saveDigitalSignatures
(
params
){
return
request
(
`
${
cffpURL
}
/partner/saveDigitalSignatures`
,
"POST"
,
params
)
}
}
}
}
pages.json
View file @
eba3f263
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
"navigationBarTitleText"
:
"学习统计"
,
"navigationBarTitleText"
:
"学习统计"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
}
,
{
{
"path"
:
"pages/personalCenter/system/accontsetting"
,
"path"
:
"pages/personalCenter/system/accontsetting"
,
"style"
:
"style"
:
...
@@ -429,8 +429,14 @@
...
@@ -429,8 +429,14 @@
{
{
"navigationBarTitleText"
:
"邀请登录"
,
"navigationBarTitleText"
:
"邀请登录"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
"path"
:
"pages/application-process/application-result"
,
"style"
:
{
"navigationBarTitleText"
:
"申请加盟-结果"
,
"enablePullDownRefresh"
:
false
}
}
}
],
],
...
...
pages/application-process/application-result.vue
0 → 100644
View file @
eba3f263
<
template
>
<view
class=
"container"
>
<view
class=
"page"
>
<text
class=
"num actived pass"
>
1
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
2
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
3
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
4
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
5
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
6
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
7
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
8
</text>
</view>
<view
class=
"wrapper"
>
<view
class=
"iconfont icon-gou"
></view>
<h4>
您已提交成功
</h4>
<view
class=
"result"
v-if=
"this.partnerLevel=='A1'"
>
恭喜您成为
{{
areaName
}}
事业伙伴!
</view>
<view
class=
"result"
v-if=
"this.partnerLevel=='B1'"
>
您的申请已进入人工审核,请耐心等待!
</view>
<navigator
url=
"../index/index"
>
返回首页 >
</navigator>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
partnerLevel
:
null
,
areaName
:
null
}
},
components
:{},
onLoad
(
options
){
this
.
areaName
=
options
.
areaName
;
this
.
partnerLevel
=
options
.
partnerLevel
;
},
methods
:{
}
}
</
script
>
<
style
lang=
"scss"
>
@import
'applyCommon.scss'
;
.wrapper
{
padding-top
:
40
rpx
;
.icon-gou{
color
:
#78c06e
;
font-size
:
200
rpx
;
text-align
:
center
;
margin
:
20
rpx
;
}
.result
,
h4
{
text-align
:
center
;
margin-bottom
:
20
rpx
;
}
.navigator-wrap
{
text-align
:
center
;
padding
:
40
rpx
0
;
color
:
#20269B
;
font-size
:
36
rpx
;
}
}
</
style
>
\ No newline at end of file
pages/application-process/applyCommon.scss
View file @
eba3f263
.container
{
.container
{
font-size
:
36rpx
;
font-size
:
36rpx
;
background
:
#fff
;
//
background: #fff;
min-height
:
100%
;
min-height
:
100%
;
overflow
:
auto
;
overflow
:
auto
;
padding-bottom
:
80rpx
;
padding-bottom
:
80rpx
;
.wrapper
{
background
:
#fff
;
}
.title
{
.title
{
padding
:
20rpx
30rpx
0
30rpx
;
padding
:
20rpx
30rpx
0
30rpx
;
display
:
flex
;
display
:
flex
;
...
@@ -131,4 +134,41 @@
...
@@ -131,4 +134,41 @@
text-align
:
center
;
text-align
:
center
;
border-radius
:
60rpx
;
border-radius
:
60rpx
;
}
}
.page
{
padding
:
20rpx
;
background
:
#fff
;
margin-bottom
:
20rpx
;
.num
{
display
:
inline-block
;
width
:
46rpx
;
height
:
46rpx
;
text-align
:
center
;
line-height
:
46rpx
;
background
:
#CFCFCF
;
color
:
#fff
;
border-radius
:
50%
;
border
:
4rpx
#CFCFCF
solid
;
}
.actived
{
color
:
#F15A1F
;
border
:
4rpx
#F15A1F
solid
;
background
:
#fff
;
}
.pass
{
color
:
#fff
;
border
:
4rpx
#F15A1F
solid
;
background
:
#F15A1F
;
}
.line
{
display
:
inline-block
;
background
:
#CFCFCF
;
width
:
39rpx
;
height
:
4rpx
;
position
:
relative
;
top
:
-10rpx
;
}
.line_pass
{
background
:
#F15A1F
;
}
}
}
}
\ No newline at end of file
pages/application-process/bank-card.vue
View file @
eba3f263
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"title"
>
<view
class=
"page"
>
<view>
<text
class=
"num actived pass"
>
1
</text>
<text
class=
"line"
></text>
银行卡号
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
2
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
3
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
4
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived"
>
5
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
6
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
7
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
8
</text>
</view>
<view
class=
"wrapper"
>
<view
class=
"title"
>
<view>
<text
class=
"line"
></text>
银行卡号
</view>
<text
class=
"page_mark"
>
5/8
</text>
</view>
</view>
<text
class=
"page_mark"
>
5/8
</text>
<view
class=
"content"
>
</view>
<view
class=
"contentDetail employ"
>
<div
class=
"content"
>
<view
class=
"contentItem"
>
<div
class=
"contentDetail employ"
>
<text>
开户行
</text>
<div
class=
"contentItem"
>
<input
class=
"form-control"
name=
""
placeholder=
"请输入"
v-model=
"applyParam.bankAccountOpening"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
<text>
开户行
</text>
</view>
<input
class=
"form-control"
name=
""
placeholder=
"请输入"
v-model=
"applyParam.bankAccountOpening"
/>
<view
class=
"contentItem"
>
</div>
<text>
银行卡号
</text>
<div
class=
"contentItem"
>
<input
class=
"form-control"
placeholder=
"请输入"
type=
"number"
maxlength=
"19"
v-model=
"applyParam.bankAccountId"
<text>
银行卡号
</text>
auto-blur=
true
@
blur=
"checkInput(applyParam.bankAccountId)"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
<input
class=
"form-control"
placeholder=
"请输入"
type=
"number"
maxlength=
"19"
v-model=
"applyParam.bankAccountId"
</view>
auto-blur=
true
@
blur=
"checkInput(applyParam.bankAccountId)"
/>
<view
class=
"contentItem"
>
</div>
<text>
再次输入银行卡号以确认
</text>
<div
class=
"contentItem"
>
<input
class=
"form-control"
placeholder=
"请输入"
type=
"number"
v-model=
"sureBankAccountId"
maxlength=
"19"
<text>
再次输入银行卡号以确认
</text>
auto-blur=
true
@
blur=
"checkInput(sureBankAccountId)"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
<input
class=
"form-control"
placeholder=
"请输入"
type=
"number"
v-model=
"sureBankAccountId"
maxlength=
"19"
</view>
auto-blur=
true
@
blur=
"checkInput(sureBankAccountId)"
/>
</view>
</div>
</view>
</div>
</view>
</div>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'保存并下一步'
:
'下一步'
}}
保存并下一步
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -43,17 +62,26 @@
...
@@ -43,17 +62,26 @@
}
}
},
},
components
:{},
components
:{},
onLoad
(){
onLoad
(
options
){
if
(
uni
.
getStorageSync
(
'applyId'
)){
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
}
else
if
(
options
.
shareId
){
this
.
queryById
(
options
.
shareId
,
null
)
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
}
},
},
methods
:{
methods
:{
queryById
(
id
){
queryById
(
id
,
userId
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
api
.
queryById
(
{
id
:
id
,
userId
:
userId
}
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
if
(
this
.
applyParam
.
bankAccountId
){
this
.
sureBankAccountId
=
this
.
applyParam
.
bankAccountId
;
}
else
{
this
.
sureBankAccountId
=
''
;
}
}
}
})
})
},
},
...
@@ -62,39 +90,46 @@
...
@@ -62,39 +90,46 @@
str
=
str
.
replace
(
/
\s
*/g
,
""
);
str
=
str
.
replace
(
/
\s
*/g
,
""
);
},
},
saveInfo
(){
saveInfo
(){
if
(
this
.
applyParam
.
bankAccountId
||
this
.
sureBankAccountId
){
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
if
(
this
.
applyParam
.
bankAccountId
!=
this
.
sureBankAccountId
){
if
(
this
.
applyParam
.
bankAccountId
||
this
.
sureBankAccountId
){
uni
.
showToast
({
if
(
this
.
applyParam
.
bankAccountId
!=
this
.
sureBankAccountId
){
title
:
'两次银行卡号不一致,请重新输入'
,
uni
.
showToast
({
duration
:
2000
,
title
:
'两次银行卡号不一致,请重新输入'
,
icon
:
'none'
duration
:
2000
,
})
icon
:
'none'
return
;
})
return
;
}
}
}
}
this
.
applyParam
=
{
this
.
applyParam
=
{
...
this
.
applyParam
,
...
this
.
applyParam
,
applyType
:
2
,
applyType
:
2
,
operatStep
:
5
,
operatStep
:
5
,
// userId:uni.getStorageSync('cffp_userId'),
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
userId
:
42
,
id
:
17
id
:
17
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`personal-statement?id=${res['data']['id']}`
url
:
`personal-statement`
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
}
})
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`personal-statement?id=${res['data']['id']}`
url
:
`personal-statement`
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
else
{
uni
.
navigateTo
({
// url:`personal-statement?id=${res['data']['id']}`
url
:
`personal-statement`
});
}
}
}
}
}
}
}
...
...
pages/application-process/basic-info.vue
View file @
eba3f263
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"title"
>
<view
class=
"page"
>
<view>
<text
class=
"num actived"
>
1
</text>
<text
class=
"line"
></text>
<text
class=
"line"
></text>
基本资料
<text
class=
"num"
>
2
</text>
</view>
<text
class=
"line"
></text>
<text
class=
"page_mark"
>
1/8
</text>
<text
class=
"num"
>
3
</text>
</view>
<text
class=
"line"
></text>
<view
class=
"content"
>
<text
class=
"num"
>
4
</text>
<view
class=
"contentDetail employ"
>
<text
class=
"line"
></text>
<view
class=
"contentItem"
>
<text
class=
"num"
>
5
</text>
<text>
邀请码
</text>
<text
class=
"line"
></text>
<input
type=
"text"
class=
"form-control"
placeholder=
"非必填"
v-model=
"applyParam.inviterInvitationCode"
/>
<text
class=
"num"
>
6
</text>
</view>
<text
class=
"line"
></text>
<view
class=
"contentItem"
>
<text
class=
"num"
>
7
</text>
<text>
申请身份
</text>
<text
class=
"line"
></text>
<picker
@
change=
"changeIdentity"
:value=
"identityIdx"
:range=
"identityArr"
<text
class=
"num"
>
8
</text>
range-key=
"name"
>
</view>
<view
class=
"uni-input"
>
{{
identityArr
[
identityIdx
][
'name'
]
}}
<view
class=
"wrapper"
>
<text
class=
"iconfont icon-youjiantou"
></text>
<view
class=
"title"
>
</view>
<view>
</picker>
<text
class=
"line"
></text>
</view>
基本资料
<view
class=
"contentItem"
>
<text>
所属组织
</text>
<picker
@
change=
"changeArea"
:value=
"areaIdIdx"
:range=
"cffpAreaQuerys"
range-key=
"areaName"
>
<view
class=
"uni-input"
>
{{
cffpAreaQuerys
[
areaIdIdx
][
'areaName'
]
}}
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
姓名
</text>
<input
type=
"text"
class=
"form-control"
v-model=
"applyParam.name"
placeholder=
"请输入姓名"
auto-blur=
true
@
blur=
"checkInput(1,applyParam.name)"
/>
</view>
<view
class=
"contentItem"
>
<text>
手机号
</text>
<input
type=
"text"
class=
"form-control"
v-model=
"applyParam.mobileNumber"
placeholder=
"请输入手机号"
maxlength=
"11"
auto-blur=
true
@
blur=
"checkInput(2,applyParam.mobileNumber)"
/>
</view>
<view
class=
"contentItem"
>
<text>
证件类型
</text>
<picker
@
change=
"changeIdType"
:value=
"idTypeIdx"
:range=
"idTypesList"
range-key=
"name"
>
<view
class=
"uni-input"
>
{{
idTypesList
[
idTypeIdx
][
'name'
]
}}
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
证件号码
</text>
<view>
<input
type=
"text"
class=
"form-control"
v-model=
"applyParam.idNo"
placeholder=
"请输入证件号码"
auto-blur=
true
@
blur=
"checkInput(3,applyParam.idNo)"
/>
</view>
</view>
<view
class=
"contentItem"
>
<text>
出生日期
</text>
<picker
mode=
"date"
:value=
"applyParam.birthday"
@
change=
"bindBirthday"
:end=
"maxDate"
>
<view
v-if=
"!applyParam.birthday"
>
请选择
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
<view
class=
"uni-input"
v-if=
"applyParam.birthday"
>
{{
this
.
applyParam
.
birthday
}}
<text
class=
"iconfont icon-youjiantou"
></text></view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
居住地址
</text>
<view><input
type=
"text"
class=
"form-control"
placeholder=
"请选择"
/></view>
</view>
</view>
</view>
<text
class=
"page_mark"
>
1/8
</text>
</view>
</view>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
<view
class=
"content"
>
保存并下一步
<view
class=
"contentDetail employ"
>
</view>
<view
class=
"contentItem"
>
<text>
邀请码
</text>
<input
type=
"text"
class=
"form-control"
placeholder=
"非必填"
v-model=
"applyParam.inviterInvitationCode"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
</view>
<view
class=
"contentItem"
>
<text>
申请身份
</text>
<picker
@
change=
"changeIdentity"
:value=
"identityIdx"
:range=
"identityArr"
range-key=
"name"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
>
<view
class=
"uni-input"
>
{{
identityArr
[
identityIdx
][
'name'
]
}}
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
所属组织
</text>
<picker
@
change=
"changeArea"
:value=
"areaIdIdx"
:range=
"cffpAreaQuerys"
range-key=
"areaName"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
>
<view
class=
"uni-input"
>
{{
cffpAreaQuerys
[
areaIdIdx
][
'areaName'
]
}}
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
姓名
</text>
<input
type=
"text"
class=
"form-control"
v-model=
"applyParam.name"
placeholder=
"请输入姓名"
auto-blur=
true
@
blur=
"checkInput(1,applyParam.name)"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
</view>
<view
class=
"contentItem"
>
<text>
手机号
</text>
<input
type=
"text"
class=
"form-control"
v-model=
"applyParam.mobileNumber"
placeholder=
"请输入手机号"
maxlength=
"11"
auto-blur=
true
@
blur=
"checkInput(2,applyParam.mobileNumber)"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
</view>
<view
class=
"contentItem"
>
<text>
证件类型
</text>
<picker
@
change=
"changeIdType"
:value=
"idTypeIdx"
:range=
"idTypesList"
range-key=
"name"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
>
<view
class=
"uni-input"
>
{{
idTypesList
[
idTypeIdx
][
'name'
]
}}
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
证件号码
</text>
<view>
<input
type=
"text"
class=
"form-control"
v-model=
"applyParam.idNo"
placeholder=
"请输入证件号码"
auto-blur=
true
@
blur=
"checkInput(3,applyParam.idNo)"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
</view>
</view>
<view
class=
"contentItem"
>
<text>
出生日期
</text>
<picker
mode=
"date"
:value=
"applyParam.birthday"
@
change=
"bindBirthday"
:end=
"maxDate"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
>
<view
v-if=
"!applyParam.birthday"
>
请选择
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
<view
class=
"uni-input"
v-if=
"applyParam.birthday"
>
{{
this
.
applyParam
.
birthday
}}
<text
class=
"iconfont icon-youjiantou"
></text></view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
居住地址
</text>
<view><input
type=
"text"
class=
"form-control"
placeholder=
"请选择"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/></view>
</view>
</view>
</view>
</view>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'保存并下一步'
:
'下一步'
}}
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -105,14 +125,21 @@
...
@@ -105,14 +125,21 @@
}
}
},
},
components
:{},
components
:{},
onLoad
(){
onLoad
(
options
){
this
.
erpInitialize
();
this
.
erpInitialize
();
this
.
queryOrgList
();
this
.
queryOrgList
();
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
},
500
)
}
else
if
(
options
.
shareId
){
}
this
.
queryById
(
options
.
shareId
,
null
)
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
},
500
)
// let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
// let curRoute = routes[routes.length - 1].route // 获取当前页面路由,也就是最后一个打开的页面路由
// console.log('当前路由地址',curRoute)
},
},
methods
:{
methods
:{
erpInitialize
(){
erpInitialize
(){
...
@@ -201,8 +228,8 @@
...
@@ -201,8 +228,8 @@
}
}
},
},
queryById
(
id
){
queryById
(
id
,
userId
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
api
.
queryById
(
{
id
:
id
,
userId
:
userId
}
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
...
@@ -220,79 +247,86 @@
...
@@ -220,79 +247,86 @@
})
})
},
},
saveInfo
(){
saveInfo
(){
if
(
!
this
.
applyParam
.
name
){
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
uni
.
showToast
({
if
(
!
this
.
applyParam
.
name
){
title
:
'请输入姓名'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
mobileNumber
){
uni
.
showToast
({
title
:
'请输入手机号'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
partnerLevel
){
uni
.
showToast
({
title
:
'请选择申请身份!'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
idType
){
uni
.
showToast
({
title
:
'请选择证件类型'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
idNo
){
uni
.
showToast
({
title
:
'请输入证件号'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
birthday
){
uni
.
showToast
({
title
:
'请选择出生日期'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
1
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
hasCrossDistrict
:
0
,
id
:
17
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`work-experience?id=${res['data']['id']}`
url
:
`work-experience`
});
uni
.
setStorageSync
(
'applyId'
,
String
(
res
[
'data'
][
'id'
]))
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
]
,
title
:
'请输入姓名'
,
duration
:
2000
,
duration
:
2000
,
icon
:
'none'
icon
:
'none'
})
})
return
;
return
;
}
}
})
if
(
!
this
.
applyParam
.
mobileNumber
){
uni
.
showToast
({
title
:
'请输入手机号'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
partnerLevel
){
uni
.
showToast
({
title
:
'请选择申请身份!'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
idType
){
uni
.
showToast
({
title
:
'请选择证件类型'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
idNo
){
uni
.
showToast
({
title
:
'请输入证件号'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
birthday
){
uni
.
showToast
({
title
:
'请选择出生日期'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
1
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
hasCrossDistrict
:
0
,
id
:
17
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`work-experience?id=${res['data']['id']}`
url
:
`work-experience`
});
uni
.
setStorageSync
(
'applyId'
,
String
(
res
[
'data'
][
'id'
]))
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
else
{
uni
.
navigateTo
({
// url:`work-experience?id=${res['data']['id']}`
url
:
`work-experience`
});
}
}
}
}
}
}
}
...
...
pages/application-process/contract.vue
View file @
eba3f263
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"title"
>
<view
class=
"page"
>
<view>
<text
class=
"num actived pass"
>
1
</text>
<text
class=
"line"
></text>
合同文档确认
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
2
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
3
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
4
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
5
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
6
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived"
>
7
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
8
</text>
</view>
<view
class=
"wrapper"
>
<view
class=
"title"
>
<view>
<text
class=
"line"
></text>
合同文档确认
</view>
<text
class=
"page_mark"
>
7/8
</text>
</view>
</view>
<text
class=
"page_mark"
>
7/8
</text>
<view
class=
"content"
>
</view>
<view
class=
"ulBox"
>
<view
class=
"content"
>
<view
class=
"liBox"
v-for=
"contractItem in contractTermsList"
@
click=
"readContract(contractItem)"
<view
class=
"ulBox"
>
>
<view
class=
"liBox"
v-for=
"contractItem in contractTermsList"
@
click=
"readContract(contractItem)"
<text
class=
"iconfont icon-yuanxingweixuanzhong"
v-if=
"!contractItem.confirmStatus"
></text>
>
<text
class=
"iconfont icon-selected-copy"
v-if=
"contractItem.confirmStatus"
></text>
<text
class=
"iconfont icon-yuanxingweixuanzhong"
v-if=
"!contractItem.confirmStatus"
></text>
<text
class=
"itemName"
>
{{
contractItem
.
termName
}}
</text>
<text
class=
"iconfont icon-selected-copy"
v-if=
"contractItem.confirmStatus"
></text>
<text
class=
"iconfont icon-gougou"
v-if=
"contractItem.confirmStatus"
></text>
<text
class=
"itemName"
>
{{
contractItem
.
termName
}}
</text>
</view>
<text
class=
"iconfont icon-gougou"
v-if=
"contractItem.confirmStatus"
></text>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'全部阅读且同意,下一步'
:
'下一步'
}}
全部阅读且同意,下一步
</view>
</view>
</view>
</view>
<view
class=
"toastWrapper toast"
v-if=
"isShow"
></view>
<view
class=
"toastWrapper toast"
v-if=
"isShow"
></view>
<view
id=
"toastContent"
v-if=
"isShow"
ref=
"contractRef"
>
<view
id=
"toastContent"
v-if=
"isShow"
ref=
"contractRef"
>
...
@@ -50,13 +69,17 @@
...
@@ -50,13 +69,17 @@
}
}
},
},
components
:{},
components
:{},
onLoad
(){
onLoad
(
options
){
this
.
getContractList
();
this
.
getContractList
();
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
},
500
)
}
else
if
(
options
.
shareId
){
}
this
.
queryById
(
options
.
shareId
,
null
)
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
},
500
)
},
},
methods
:{
methods
:{
getContractList
(){
getContractList
(){
...
@@ -66,48 +89,58 @@
...
@@ -66,48 +89,58 @@
})
})
},
},
saveInfo
(){
saveInfo
(){
if
(
!
this
.
isAllAgree
)
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
uni
.
showToast
({
if
(
!
this
.
isAllAgree
)
{
title
:
'请详细阅读全部条款!'
,
duration
:
2000
,
icon
:
'none'
});
return
;
}
this
.
contractTermsConfirmsListParm
=
[];
for
(
let
i
=
0
;
i
<
this
.
contractTermsList
.
length
;
i
++
)
{
this
.
contractTermsConfirmsListParm
.
push
(
this
.
contractTermsList
[
i
][
"termName"
]);
}
this
.
applyParam
.
operatStep
=
7
;
this
.
applyParam
.
contractTerms
=
this
.
contractTermsConfirmsListParm
.
join
(
','
);
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`signature?id=${res['data']['id']}`
url
:
`signature`
});
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
]
,
title
:
'请详细阅读全部条款!'
,
duration
:
2000
,
duration
:
2000
,
icon
:
'none'
icon
:
'none'
})
})
;
return
;
return
;
}
}
})
this
.
contractTermsConfirmsListParm
=
[];
for
(
let
i
=
0
;
i
<
this
.
contractTermsList
.
length
;
i
++
)
{
this
.
contractTermsConfirmsListParm
.
push
(
this
.
contractTermsList
[
i
][
"termName"
]);
}
this
.
applyParam
.
operatStep
=
7
;
this
.
applyParam
.
contractTerms
=
this
.
contractTermsConfirmsListParm
.
join
(
','
);
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`signature?id=${res['data']['id']}`
url
:
`signature`
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
else
{
uni
.
navigateTo
({
// url:`signature?id=${res['data']['id']}`
url
:
`signature`
});
}
},
},
readContract
(
contractItem
)
{
readContract
(
contractItem
)
{
if
(
contractItem
.
confirmStatus
==
1
)
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
contractItem
.
confirmStatus
=
0
;
if
(
contractItem
.
confirmStatus
==
1
)
{
}
else
{
contractItem
.
confirmStatus
=
0
;
this
.
isShow
=
true
;
}
else
{
this
.
curContract
=
contractItem
.
termNote
;
this
.
isShow
=
true
;
this
.
curTitle
=
contractItem
.
termName
;
this
.
curContract
=
contractItem
.
termNote
;
this
.
curContractId
=
contractItem
.
id
;
this
.
curTitle
=
contractItem
.
termName
;
}
this
.
curContractId
=
contractItem
.
id
;
this
.
isAllAgree
=
this
.
contractTermsList
.
every
((
item
)
=>
{
}
return
item
.
confirmStatus
==
1
;
this
.
isAllAgree
=
this
.
contractTermsList
.
every
((
item
)
=>
{
});
return
item
.
confirmStatus
==
1
;
});
}
},
},
//同意合同条款
//同意合同条款
agree
()
{
agree
()
{
...
@@ -121,8 +154,8 @@
...
@@ -121,8 +154,8 @@
return
item
.
confirmStatus
==
1
;
return
item
.
confirmStatus
==
1
;
});
});
},
},
queryById
(
id
){
queryById
(
id
,
userId
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
api
.
queryById
(
{
id
:
id
,
userId
:
userId
}
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
if
(
this
.
applyParam
.
contractTerms
){
if
(
this
.
applyParam
.
contractTerms
){
...
...
pages/application-process/education.vue
View file @
eba3f263
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"title"
>
<view
class=
"page"
>
<view>
<text
class=
"num actived pass"
>
1
</text>
<text
class=
"line"
></text>
学历信息
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
2
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
3
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived"
>
4
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
5
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
6
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
7
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
8
</text>
</view>
<view
class=
"wrapper"
>
<view
class=
"title"
>
<view>
<text
class=
"line"
></text>
学历信息
</view>
<text
class=
"page_mark"
>
4/8
</text>
</view>
</view>
<text
class=
"page_mark"
>
4/8
</text
>
<view
class=
"content"
>
</view
>
<view
class=
"contentDetail employ"
>
<view
class=
"content
"
>
<view
class=
"contentItem
"
>
<view
class=
"contentDetail employ"
>
<text>
最高学历:如本科、专科、硕士
</text
>
<view
class=
"contentItem"
>
<picker
@
change=
"changeEducation"
:value=
"educationIdx"
:range=
"educationLevelList"
<text>
最高学历:如本科、专科、硕士
</text
>
range-key=
"name"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
>
<picker
@
change=
"changeEducation"
:value=
"educationIdx"
:range=
"educationLevelList"
<view
class=
"uni-input"
>
{{
educationLevelList
[
educationIdx
][
'name'
]
}}
range-key=
"name"
>
<text
class=
"iconfont icon-youjiantou"
></text
>
<view
class=
"uni-input"
>
{{
educationLevelList
[
educationIdx
][
'name'
]
}}
</view>
<text
class=
"iconfont icon-youjiantou"
></text
>
</picker
>
</view>
</view>
</picker
>
<view
class=
"contentItem"
>
</view
>
<text>
毕业学校
</text
>
<view
class=
"contentItem"
>
<input
class=
"form-control"
v-model=
"applyParam.lastGraduateSchool"
<text>
毕业学校
</text
>
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/
>
<input
class=
"form-control"
v-model=
"applyParam.lastGraduateSchool"
/
>
</view
>
</view
>
<view
class=
"contentItem"
style=
"border:none;"
>
<view
class=
"contentItem"
style=
"border:none;"
>
<text>
毕业证
</text
>
<text>
毕业证
</text
>
<view></view
>
<view>
</view>
</view>
</view>
</view>
</view
>
<view
class=
"photo_wrapper"
v-if=
"!applyParam.lastGraduateCertificationOssPath"
@
click=
"upLoadPhoto()"
>
<view
class=
"photo_wrapper"
v-if=
"!applyParam.lastGraduateCertificationOssPath"
@
click=
"upLoadPhoto()"
>
<text
class=
"iconfont icon-weibiaoti553"
></text
>
<text
class=
"iconfont icon-weibiaoti553"
></text
>
<view
style=
"margin-top: 10px;"
>
点击添加毕业证照片
</view
>
<view
style=
"margin-top: 10px;"
>
点击添加毕业证照片
</view>
</view>
</view>
<image
:src=
"applyParam.lastGraduateCertificationOssPath"
v-if=
"applyParam.lastGraduateCertificationOssPath"
<image
:src=
"applyParam.lastGraduateCertificationOssPath"
v-if=
"applyParam.lastGraduateCertificationOssPath"
@
click=
"upLoadPhoto()"
mode=
"widthFix"
></image>
@
click=
"upLoadPhoto()"
mode=
"widthFix"
></image
>
<view
class=
"tips"
>
<view
class=
"tips"
>
<view>
(jpg,png 文件大小不大于1mb)
</view
>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
保存并下一步
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'保存并下一步'
:
'下一步'
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -66,11 +86,17 @@
...
@@ -66,11 +86,17 @@
}
}
},
},
components
:{},
components
:{},
onLoad
(){
onLoad
(
options
){
this
.
educationLevelQuery
();
this
.
educationLevelQuery
();
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
if
(
uni
.
getStorageSync
(
'applyId'
)){
}
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
}
else
if
(
options
.
shareId
){
this
.
queryById
(
options
.
shareId
,
null
)
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
},
500
)
},
},
methods
:{
methods
:{
educationLevelQuery
(){
educationLevelQuery
(){
...
@@ -81,8 +107,8 @@
...
@@ -81,8 +107,8 @@
}
}
})
})
},
},
queryById
(
id
){
queryById
(
id
,
userId
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
api
.
queryById
(
{
id
:
id
,
userId
:
userId
}
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
...
@@ -95,62 +121,71 @@
...
@@ -95,62 +121,71 @@
})
})
},
},
upLoadPhoto
(
event
){
upLoadPhoto
(
event
){
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
this
.
applyParam
.
lastGraduateCertificationOssPath
=
res
.
data
.
filePath
;
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
});
this
.
applyParam
.
lastGraduateCertificationOssPath
=
res
.
data
.
filePath
;
});
}
},
},
changeEducation
:
function
(
e
){
changeEducation
:
function
(
e
){
this
.
educationIdx
=
e
.
detail
.
value
;
this
.
educationIdx
=
e
.
detail
.
value
;
this
.
applyParam
.
lastGraduateGrade
=
this
.
educationLevelList
[
this
.
educationIdx
][
'name'
];
this
.
applyParam
.
lastGraduateGrade
=
this
.
educationLevelList
[
this
.
educationIdx
][
'name'
];
},
},
saveInfo
(){
saveInfo
(){
if
(
!
this
.
applyParam
.
lastGraduateGrade
){
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
uni
.
showToast
({
if
(
!
this
.
applyParam
.
lastGraduateGrade
){
title
:
'请选择最高学历'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
lastGraduateSchool
){
uni
.
showToast
({
title
:
'请输入毕业学校'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
lastGraduateCertificationOssPath
){
uni
.
showToast
({
title
:
'请上传毕业证书'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
4
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
id
:
17
,
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`bank-card?id=${res['data']['id']}`
url
:
`bank-card`
});
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
]
,
title
:
'请选择最高学历'
,
duration
:
2000
,
duration
:
2000
,
icon
:
'none'
icon
:
'none'
})
})
return
;
return
;
}
}
})
if
(
!
this
.
applyParam
.
lastGraduateSchool
){
uni
.
showToast
({
title
:
'请输入毕业学校'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
if
(
!
this
.
applyParam
.
lastGraduateCertificationOssPath
){
uni
.
showToast
({
title
:
'请上传毕业证书'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
4
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
id
:
17
,
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`bank-card?id=${res['data']['id']}`
url
:
`bank-card`
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
else
{
uni
.
navigateTo
({
// url:`bank-card?id=${res['data']['id']}`
url
:
`bank-card`
});
}
}
}
}
}
}
}
...
...
pages/application-process/id-card.vue
View file @
eba3f263
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"title"
>
<view
class=
"page"
>
<view>
<text
class=
"num actived pass"
>
1
</text>
<text
class=
"line"
></text>
个人证件资料
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
2
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived"
>
3
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
4
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
5
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
6
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
7
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
8
</text>
</view>
<view
class=
"wrapper"
>
<view
class=
"title"
>
<view>
<text
class=
"line"
></text>
个人证件资料
</view>
<text
class=
"page_mark"
>
3/8
</text>
</view>
</view>
<text
class=
"page_mark"
>
3/8
</text>
<view
class=
"content"
>
</view>
<view
class=
"content_wrapper"
>
<view
class=
"content"
>
<view
class=
"photo"
v-if=
"!applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
>
<view
class=
"content_wrapper"
>
<image
src=
"../../static/front.png"
alt=
"身份证正面"
mode=
"widthFix"
></image>
<view
class=
"photo"
v-if=
"!applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<image
src=
"../../static/front.png"
alt=
"身份证正面"
mode=
"widthFix"
></image>
<view
class=
"choseBtn"
>
点击添加身份证正面
</view>
<text
class=
"iconfont icon-weibiaoti553"
></text>
</view>
<view
class=
"choseBtn"
>
点击添加身份证正面
</view>
<image
:src=
"applyParam.idFrontPageOssPath"
mode=
"widthFix"
v-if=
"applyParam.idFrontPageOssPath"
</view>
@
click=
"upLoadPhoto('front')"
></image>
<image
:src=
"applyParam.idFrontPageOssPath"
mode=
"widthFix"
v-if=
"applyParam.idFrontPageOssPath"
<view
class=
"tips"
>
@
click=
"upLoadPhoto('front')"
></image>
<view>
(正确示例:身份证正面,字体清晰)
</view>
<view
class=
"tips"
>
<view>
(jpg,png 文件大小不大于1mb)
</view>
<view>
(正确示例:身份证正面,字体清晰)
</view>
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
</view>
<view
class=
"content_wrapper"
style=
"margin-top: 25px;"
>
</view>
<view
class=
"photo"
v-if=
"!applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('back')"
>
<view
class=
"content_wrapper"
style=
"margin-top: 25px;"
>
<image
src=
"../../static/back.png"
alt=
"身份证反面面"
mode=
"widthFix"
></image>
<view
class=
"photo"
v-if=
"!applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('back')"
>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<image
src=
"../../static/back.png"
alt=
"身份证反面面"
mode=
"widthFix"
></image>
<view
class=
"choseBtn"
>
点击添加身份证反面
</view>
<text
class=
"iconfont icon-weibiaoti553"
></text>
</view>
<view
class=
"choseBtn"
>
点击添加身份证反面
</view>
<image
:src=
"applyParam.idBackPageOssPath"
mode=
"widthFix"
v-if=
"applyParam.idBackPageOssPath"
</view>
@
click=
"upLoadPhoto('front')"
></image>
<image
:src=
"applyParam.idBackPageOssPath"
mode=
"widthFix"
v-if=
"applyParam.idBackPageOssPath"
<view
class=
"tips"
>
@
click=
"upLoadPhoto('front')"
></image>
<view>
(正确示例:身份证反面,字体清晰)
</view>
<view
class=
"tips"
>
<view>
(jpg,png 文件大小不大于1mb)
</view>
<view>
(正确示例:身份证反面,字体清晰)
</view>
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'保存并下一步'
:
'下一步'
}}
保存并下一步
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -61,14 +80,18 @@
...
@@ -61,14 +80,18 @@
}
}
},
},
components
:{},
components
:{},
onLoad
(){
onLoad
(
options
){
if
(
uni
.
getStorageSync
(
'applyId'
)){
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
}
else
if
(
options
.
shareId
){
this
.
queryById
(
options
.
shareId
,
null
)
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
}
},
},
methods
:{
methods
:{
queryById
(
id
){
queryById
(
id
,
userId
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
api
.
queryById
(
{
id
:
id
,
userId
:
userId
}
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
...
@@ -76,61 +99,70 @@
...
@@ -76,61 +99,70 @@
})
})
},
},
upLoadPhoto
(
type
){
upLoadPhoto
(
type
){
if
(
type
==
'front'
){
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
this
.
dataForm
.
targetNo
=
2
;
}
if
(
type
==
'back'
){
this
.
dataForm
.
targetNo
=
3
;
}
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
if
(
type
==
'front'
){
if
(
type
==
'front'
){
this
.
applyParam
.
idFrontPageOssPath
=
res
.
data
.
filePath
;
this
.
dataForm
.
targetNo
=
2
;
}
}
if
(
type
==
'back'
){
if
(
type
==
'back'
){
this
.
applyParam
.
idBackPageOssPath
=
res
.
data
.
filePath
;
this
.
dataForm
.
targetNo
=
3
;
}
}
})
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
},
if
(
type
==
'front'
){
saveInfo
(){
this
.
applyParam
.
idFrontPageOssPath
=
res
.
data
.
filePath
;
if
(
!
this
.
applyParam
.
idFrontPageOssPath
){
}
uni
.
showToast
({
if
(
type
==
'back'
){
title
:
'请上传身份证正面照片'
,
this
.
applyParam
.
idBackPageOssPath
=
res
.
data
.
filePath
;
duration
:
2000
,
}
icon
:
'none'
})
})
return
;
}
}
if
(
!
this
.
applyParam
.
idBackPageOssPath
){
},
uni
.
showToast
({
saveInfo
(){
title
:
'请上传身份证反面照片'
,
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
duration
:
2000
,
if
(
!
this
.
applyParam
.
idFrontPageOssPath
){
icon
:
'none'
})
return
;
}
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
3
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
id
:
17
,
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
url
:
`education`
});
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
]
,
title
:
'请上传身份证正面照片'
,
duration
:
2000
,
duration
:
2000
,
icon
:
'none'
icon
:
'none'
})
})
return
;
return
;
}
}
})
if
(
!
this
.
applyParam
.
idBackPageOssPath
){
uni
.
showToast
({
title
:
'请上传身份证反面照片'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
3
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
id
:
17
,
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
url
:
`education`
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
else
{
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
url
:
`education`
});
}
}
}
}
}
}
}
...
...
pages/application-process/personal-statement.vue
View file @
eba3f263
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"title"
>
<view
class=
"page"
>
<view>
<text
class=
"num actived pass"
>
1
</text>
<text
class=
"line"
></text>
个人声明
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
2
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
3
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
4
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
5
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived"
>
6
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
7
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
8
</text>
</view>
<view
class=
"wrapper"
>
<view
class=
"title"
>
<view>
<text
class=
"line"
></text>
个人声明
</view>
<text
class=
"page_mark"
>
6/8
</text>
</view>
</view>
<text
class=
"page_mark"
>
6/8
</text>
<view
class=
"content"
>
</view>
<view
class=
"ulBox"
>
<view
class=
"content"
>
<view
class=
"liBox"
v-for=
"personalStatements in dropOptionsInfoList"
@
click=
"selectStatements(personalStatements)"
<view
class=
"ulBox"
>
>
<view
class=
"liBox"
v-for=
"personalStatements in dropOptionsInfoList"
@
click=
"selectStatements(personalStatements)"
<text
class=
"iconfont icon-yuanxingweixuanzhong"
v-if=
"!personalStatements.status"
></text>
>
<text
class=
"iconfont icon-selected-copy"
v-if=
"personalStatements.status"
></text>
<text
class=
"iconfont icon-yuanxingweixuanzhong"
v-if=
"!personalStatements.status"
></text>
<text
class=
"itemName"
>
{{
personalStatements
.
dropOptionName
}}
</text>
<text
class=
"iconfont icon-selected-copy"
v-if=
"personalStatements.status"
></text>
<text
class=
"iconfont icon-gougou"
v-if=
"personalStatements.status"
></text>
<text
class=
"itemName"
>
{{
personalStatements
.
dropOptionName
}}
</text>
</view>
<text
class=
"iconfont icon-gougou"
v-if=
"personalStatements.status"
></text>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
保存并下一步
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'保存并下一步'
:
'下一步'
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -36,13 +55,18 @@
...
@@ -36,13 +55,18 @@
}
}
},
},
components
:{},
components
:{},
onLoad
(){
onLoad
(
options
){
this
.
dropOptionsQuery
();
this
.
dropOptionsQuery
();
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
},
500
)
}
else
if
(
options
.
shareId
){
}
this
.
queryById
(
options
.
shareId
,
null
)
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
},
500
)
},
},
methods
:{
methods
:{
dropOptionsQuery
(){
dropOptionsQuery
(){
...
@@ -51,15 +75,16 @@
...
@@ -51,15 +75,16 @@
})
})
},
},
selectStatements
(
personalStatements
)
{
selectStatements
(
personalStatements
)
{
if
(
personalStatements
.
status
==
1
)
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
personalStatements
.
status
=
0
;
if
(
personalStatements
.
status
==
1
)
{
}
else
{
personalStatements
.
status
=
0
;
personalStatements
.
status
=
1
;
}
else
{
}
personalStatements
.
status
=
1
;
console
.
log
(
this
.
dropOptionsInfoList
)
}
}
},
},
queryById
(
id
){
queryById
(
id
,
userId
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
api
.
queryById
(
{
id
:
id
,
userId
:
userId
}
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
if
(
this
.
applyParam
.
personalStatement
){
if
(
this
.
applyParam
.
personalStatement
){
...
@@ -76,38 +101,45 @@
...
@@ -76,38 +101,45 @@
})
})
},
},
saveInfo
(){
saveInfo
(){
const
selectedPersonalStatement
=
this
.
dropOptionsInfoList
.
filter
((
item
)
=>
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
return
item
.
status
==
1
;
const
selectedPersonalStatement
=
this
.
dropOptionsInfoList
.
filter
((
item
)
=>
{
});
return
item
.
status
==
1
;
if
(
!
selectedPersonalStatement
.
length
)
{
});
uni
.
showToast
({
if
(
!
selectedPersonalStatement
.
length
)
{
title
:
'请选择至少一项个人声明!'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
this
.
personalStatementList
=
[];
for
(
let
i
=
0
;
i
<
selectedPersonalStatement
.
length
;
i
++
){
this
.
personalStatementList
.
push
(
selectedPersonalStatement
[
i
][
'dropOptionName'
]);
}
this
.
applyParam
.
personalStatement
=
this
.
personalStatementList
.
join
(
','
);
this
.
applyParam
.
operatStep
=
6
;
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`contract?id=${res['data']['id']}`
url
:
`contract`
});
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
]
,
title
:
'请选择至少一项个人声明!'
,
duration
:
2000
,
duration
:
2000
,
icon
:
'none'
icon
:
'none'
})
})
return
;
return
;
}
}
})
this
.
personalStatementList
=
[];
for
(
let
i
=
0
;
i
<
selectedPersonalStatement
.
length
;
i
++
){
this
.
personalStatementList
.
push
(
selectedPersonalStatement
[
i
][
'dropOptionName'
]);
}
this
.
applyParam
.
personalStatement
=
this
.
personalStatementList
.
join
(
','
);
this
.
applyParam
.
operatStep
=
6
;
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`contract?id=${res['data']['id']}`
url
:
`contract`
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
else
{
uni
.
navigateTo
({
// url:`contract?id=${res['data']['id']}`
url
:
`contract`
});
}
}
}
}
}
}
}
...
...
pages/application-process/signature.vue
View file @
eba3f263
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"page"
>
<text
class=
"num actived pass"
>
1
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
2
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
3
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
4
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
5
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
6
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived pass"
>
7
</text>
<text
class=
"line line_pass"
></text>
<text
class=
"num actived"
>
8
</text>
</view>
<view
class=
"title"
>
<view
class=
"title"
>
<view>
<view>
<text
class=
"line"
></text>
电子签名
<text
style=
"font-size: 20rpx;font-weight: normal;"
>
(请书写工整,字迹清晰)
</text>
<text
class=
"line"
></text>
电子签名
<text
style=
"font-size: 20rpx;font-weight: normal;"
>
(请书写工整,字迹清晰)
</text>
</view>
</view>
<text
class=
"page_mark"
>
8/8
</text>
<text
class=
"page_mark"
>
8/8
</text>
</view>
</view>
<view
class=
"signatureContent"
>
<view
class=
"signatureContent"
v-if=
"!applyParam.personalSignOssPath"
>
<e-signature
:showCanvas=
"showCanvas"
ref=
"signatureComponent"
@
sendImage=
"getImage"
></e-signature>
<e-signature
:showCanvas=
"showCanvas"
ref=
"signatureComponent"
@
sendImage=
"getImage"
></e-signature>
</view>
</view>
<image
:src=
"applyParam.personalSignOssPath"
mode=
"widthFix"
v-if=
"applyParam.personalSignOssPath"
></image>
<view
class=
"fixed"
url=
"bank-card"
@
click=
"save()"
>
<view
class=
"fixed"
url=
"bank-card"
@
click=
"save()"
>
我自愿签订推广人合同书
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'我自愿签订推广人合同书'
:
'下一步'
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -18,7 +36,7 @@
...
@@ -18,7 +36,7 @@
<
script
>
<
script
>
import
eSignature
from
'@/components/eSignature/eSignature.vue'
;
import
eSignature
from
'@/components/eSignature/eSignature.vue'
;
import
api
from
'../../api/api'
;
import
api
from
'../../api/api'
;
import
{
nextTick
}
from
"vue"
;
import
{
nextTick
}
from
"vue"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -32,41 +50,74 @@ import { nextTick } from "vue";
...
@@ -32,41 +50,74 @@ import { nextTick } from "vue";
}
}
},
},
components
:{
eSignature
},
components
:{
eSignature
},
onLoad
()
{
onLoad
(
options
)
{
if
(
uni
.
getStorageSync
(
'applyId'
)){
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
}
else
if
(
options
.
shareId
){
},
500
)
this
.
queryById
(
options
.
shareId
,
null
)
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
}
},
},
methods
:
{
methods
:
{
save
(){
save
(){
this
.
$refs
.
signatureComponent
.
finish
()
if
(
this
.
applyParam
.
personalSignOssPath
){
this
.
saveApplyInfo
();
}
else
{
this
.
$refs
.
signatureComponent
.
finish
()
}
},
},
queryById
(
id
){
queryById
(
id
,
userId
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
api
.
queryById
(
{
id
:
id
,
userId
:
userId
}
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
}
}
})
})
},
},
getImage
(
e
){
getImage
(
e
){
this
.
applyParam
.
personalSignOssPath
=
e
;
api
.
saveDigitalSignatures
({
imgStr
:
e
}).
then
((
res
)
=>
{
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
// this.applyParam.personalSignOssPath = e;
}
else
{
this
.
applyParam
.
personalSignOssPath
=
res
[
'data'
][
'filePath'
];
uni
.
showToast
({
this
.
saveApplyInfo
();
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
}
})
})
},
},
saveApplyInfo
(){
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
this
.
applyParam
=
{
...
this
.
applyParam
,
operatStep
:
99
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
url
:
`application-result?partnerLevel=
${
this
.
applyParam
.
partnerLevel
}
&areaName=
${
this
.
applyParam
.
areaName
}
`
,
success
:
res
=>
{},
fail
:
()
=>
{},
complete
:
()
=>
{}
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
else
{
uni
.
navigateTo
({
url
:
`application-result?partnerLevel=
${
this
.
applyParam
.
partnerLevel
}
&areaName=
${
this
.
applyParam
.
areaName
}
`
,
success
:
res
=>
{},
fail
:
()
=>
{},
complete
:
()
=>
{}
});
}
}
}
}
}
}
</
script
>
</
script
>
...
...
pages/application-process/work-experience.vue
View file @
eba3f263
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"title"
>
<view
class=
"page"
>
<view>
<text
class=
"num actived pass"
>
1
</text>
<text
class=
"line"
></text>
从业经历
<text
class=
"line line_pass"
></text>
</view>
<text
class=
"num actived"
>
2
</text>
<text
class=
"page_mark"
>
2/8
</text>
<text
class=
"line"
></text>
</view>
<text
class=
"num"
>
3
</text>
<view
class=
"content"
>
<text
class=
"line"
></text>
<view
class=
"contentDetail employ"
>
<text
class=
"num"
>
4
</text>
<view
class=
"contentItem"
>
<text
class=
"line"
></text>
<text>
职业类型
</text>
<text
class=
"num"
>
5
</text>
<picker
@
change=
"changeIndustry"
:value=
"industryIdx"
:range=
"industry"
<text
class=
"line"
></text>
range-key=
"industryName"
>
<text
class=
"num"
>
6
</text>
<view
class=
"uni-input"
>
{{
industry
[
industryIdx
][
'industryName'
]
}}
<text
class=
"line"
></text>
<text
class=
"iconfont icon-youjiantou"
></text>
<text
class=
"num"
>
7
</text>
<text
class=
"line"
></text>
<text
class=
"num"
>
8
</text>
</view>
<view
class=
"wrapper"
>
<view
class=
"title"
>
<view>
<text
class=
"line"
></text>
从业经历
</view>
<text
class=
"page_mark"
>
2/8
</text>
</view>
<view
class=
"content"
>
<view
class=
"contentDetail employ"
>
<view
class=
"contentItem"
>
<text>
职业类型
</text>
<picker
@
change=
"changeIndustry"
:value=
"industryIdx"
:range=
"industry"
range-key=
"industryName"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
>
<view
class=
"uni-input"
>
{{
industry
[
industryIdx
][
'industryName'
]
}}
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
最近一次工作单位
</text>
<input
type=
"text"
class=
"form-control"
placeholder=
"非必填"
v-model=
"applyParam.workingCompany"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
</view>
<view
class=
"contentItem"
>
<text>
职位
</text>
<input
type=
"text"
class=
"form-control"
placeholder=
"非必填"
v-model=
"applyParam.position"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
/>
</view>
<view
class=
"contentItem"
>
<text>
任职开始时间
</text>
<picker
mode=
"date"
:value=
"applyParam.workingStart"
@
change=
"bindWorkingStart"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
>
<view
v-if=
"!applyParam.workingStart"
>
请选择
<text
class=
"iconfont icon-youjiantou"
></text></view>
<view
class=
"uni-input"
v-if=
"applyParam.workingStart"
>
{{
applyParam
.
workingStart
}}
<text
class=
"iconfont icon-youjiantou"
></text></view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
结束时间
</text>
<picker
mode=
"date"
:value=
"applyParam.workingEnd"
@
change=
"bindWorkingEnd"
:disabled=
"this.applyParam.approvalStatus!= 0 && this.applyParam.approvalStatus != 2"
>
<view
v-if=
"!applyParam.workingEnd"
>
请选择
<text
class=
"iconfont icon-youjiantou"
></text></view>
<view
class=
"uni-input"
v-if=
"applyParam.workingEnd"
>
{{
applyParam
.
workingEnd
}}
<text
class=
"iconfont icon-youjiantou"
></text></view>
</picker>
</view>
<view
class=
"contentItem"
style=
"border: 0;"
>
<text>
荣誉证书
</text>
</view>
</view>
<view
class=
"photo_wrapper"
@
click=
"upLoadPhoto()"
v-if=
"!applyParam.certificate"
>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
style=
"margin-top: 10px;"
>
点击添加荣誉证书照片
</view>
</view>
<view
v-if=
"applyParam.certificate"
>
<view
class=
"pic_list"
v-for=
"picItem in picList"
>
<image
:src=
"picItem"
mode=
"widthFix"
></image>
</view>
</view>
</picker>
</view>
</view>
<view
class=
"tips"
>
<view
class=
"contentItem"
>
<view>
(jpg,png 文件大小不大于1mb)
</view>
<text>
最近一次工作单位
</text>
</view>
<input
type=
"text"
class=
"form-control"
placeholder=
"非必填"
v-model=
"applyParam.workingCompany"
/>
<view
class=
"upLoadMore"
v-if=
"applyParam.certificate"
@
click=
"upLoadPhoto()"
>
</view>
<view
class=
"iconfont icon-jiahao"
></view>
<view
class=
"contentItem"
>
<view>
上传更多
</view>
<text>
职位
</text>
<input
type=
"text"
class=
"form-control"
placeholder=
"非必填"
v-model=
"applyParam.position"
/>
</view>
<view
class=
"contentItem"
>
<text>
任职开始时间
</text>
<picker
mode=
"date"
:value=
"applyParam.workingStart"
@
change=
"bindWorkingStart"
>
<view
v-if=
"!applyParam.workingStart"
>
请选择
<text
class=
"iconfont icon-youjiantou"
></text></view>
<view
class=
"uni-input"
v-if=
"applyParam.workingStart"
>
{{
applyParam
.
workingStart
}}
<text
class=
"iconfont icon-youjiantou"
></text></view>
</picker>
</view>
<view
class=
"contentItem"
>
<text>
结束时间
</text>
<picker
mode=
"date"
:value=
"applyParam.workingEnd"
@
change=
"bindWorkingEnd"
>
<view
v-if=
"!applyParam.workingEnd"
>
请选择
<text
class=
"iconfont icon-youjiantou"
></text></view>
<view
class=
"uni-input"
v-if=
"applyParam.workingEnd"
>
{{
applyParam
.
workingEnd
}}
<text
class=
"iconfont icon-youjiantou"
></text></view>
</picker>
</view>
<view
class=
"contentItem"
style=
"border: 0;"
>
<text>
荣誉证书
</text>
</view>
</view>
<view
class=
"photo_wrapper"
@
click=
"upLoadPhoto()"
v-if=
"!applyParam.certificate"
>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
style=
"margin-top: 10px;"
>
点击添加荣誉证书照片
</view>
</view>
<view
v-if=
"applyParam.certificate"
>
<view
class=
"pic_list"
v-for=
"picItem in picList"
>
<image
:src=
"picItem"
mode=
"widthFix"
></image>
</view>
</view>
</view>
</view>
<view
class=
"tips"
>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
<view
class=
"upLoadMore"
v-if=
"applyParam.certificate"
@
click=
"upLoadPhoto()"
>
<view
class=
"iconfont icon-jiahao"
></view>
<view>
上传更多
</view>
</view>
</view>
</view>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
保存并下一步
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'保存并下一步'
:
'下一步'
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -97,15 +117,15 @@
...
@@ -97,15 +117,15 @@
components
:{},
components
:{},
onLoad
(
options
){
onLoad
(
options
){
this
.
occupationQry
();
this
.
occupationQry
();
// console.log(options)
setTimeout
(()
=>
{
// if(options.id
){
if
(
uni
.
getStorageSync
(
'applyId'
)
){
// this.queryById(options.id
)
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
// }
}
else
if
(
options
.
shareId
){
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
options
.
shareId
,
null
)
setTimeout
(()
=>
{
}
else
{
this
.
queryById
(
uni
.
getStorageSync
(
'apply
Id'
))
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_user
Id'
))
}
,
500
)
}
}
}
,
500
)
},
},
methods
:{
methods
:{
changeIndustry
:
function
(
e
){
changeIndustry
:
function
(
e
){
...
@@ -129,48 +149,57 @@
...
@@ -129,48 +149,57 @@
})
})
},
},
upLoadPhoto
(
event
){
upLoadPhoto
(
event
){
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
this
.
applyParam
.
certificate
=
res
.
data
.
filePath
;
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
this
.
picList
.
push
(
this
.
applyParam
.
certificate
);
this
.
applyParam
.
certificate
=
res
.
data
.
filePath
;
});
this
.
picList
.
push
(
this
.
applyParam
.
certificate
);
});
}
},
},
saveInfo
(){
saveInfo
(){
if
(
!
this
.
applyParam
.
workingCategoryId
){
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
){
uni
.
showToast
({
if
(
!
this
.
applyParam
.
workingCategoryId
){
title
:
'请选择职业类型'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
2
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
id
:
17
,
certificate
:
this
.
picList
.
join
(
','
)
}
console
.
log
(
this
.
applyParam
)
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
url
:
`id-card`
});
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
]
,
title
:
'请选择职业类型'
,
duration
:
2000
,
duration
:
2000
,
icon
:
'none'
icon
:
'none'
})
})
return
;
return
;
}
}
})
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
2
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
id
:
17
,
certificate
:
this
.
picList
.
join
(
','
)
}
console
.
log
(
this
.
applyParam
)
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
url
:
`id-card`
});
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
else
{
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
url
:
`id-card`
});
}
},
},
queryById
(
id
){
queryById
(
id
,
userId
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
api
.
queryById
(
{
id
:
id
,
userId
:
userId
}
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
...
...
pages/systemMsg/system_msg.vue
View file @
eba3f263
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
},
},
methods
:{
methods
:{
querySystemMessage
()
{
querySystemMessage
()
{
api
.
querySystemMessage
({
systemType
:
1
,
userId
:
2
}).
then
(
res
=>
{
api
.
querySystemMessage
({
systemType
:
1
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
system_msgs_list
=
res
[
'data'
][
'dataList'
];
this
.
system_msgs_list
=
res
[
'data'
][
'dataList'
];
}
else
{
}
else
{
...
...
pages/withdrawal/withdrawal.vue
View file @
eba3f263
...
@@ -77,7 +77,8 @@
...
@@ -77,7 +77,8 @@
taxAmount
:
null
,
taxAmount
:
null
,
noTaxAmount
:
null
,
noTaxAmount
:
null
,
paymentMethod
:
2
,
//初始化支付宝提现
paymentMethod
:
2
,
//初始化支付宝提现
withdrawalParam
:
null
,
aliWithdrawalResVO
:
null
,
wxWithdrawalResVO
:
null
}
}
},
},
components
:{},
components
:{},
...
@@ -97,13 +98,13 @@
...
@@ -97,13 +98,13 @@
api
.
goFortuneWithdrawal
(
param
).
then
((
res
)
=>
{
api
.
goFortuneWithdrawal
(
param
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
const
data
=
res
[
'data'
]
[
'cffpFortuneExchangeVO'
]
const
data
=
res
[
'data'
]
this
.
exchangeAmount
=
data
.
exchangeAmount
;
this
.
exchangeAmount
=
data
.
exchangeAmount
;
this
.
partnerTradeNo
=
data
.
partnerTradeNo
;
this
.
partnerTradeNo
=
data
.
partnerTradeNo
;
this
.
taxAmount
=
data
.
taxAmount
;
this
.
taxAmount
=
data
.
taxAmount
;
this
.
noTaxAmount
=
data
.
noTaxAmount
;
this
.
noTaxAmount
=
data
.
noTaxAmount
;
this
.
withdrawalParam
=
res
[
'data
'
];
this
.
aliWithdrawalResVO
=
data
[
'aliWithdrawalResVO
'
];
this
.
w
ithdrawalParam
.
cffpFortuneExchangeVO
=
undefined
;
this
.
w
xWithdrawalResVO
=
data
[
'wxWithdrawalResVO'
]
;
}
else
{
}
else
{
this
.
exchangeAmount
=
0
;
this
.
exchangeAmount
=
0
;
this
.
partnerTradeNo
=
null
;
this
.
partnerTradeNo
=
null
;
...
@@ -117,11 +118,11 @@
...
@@ -117,11 +118,11 @@
},
},
//支付宝去提现
//支付宝去提现
aliWithdrawal
(){
aliWithdrawal
(){
this
.
withdrawalParam
=
{
this
.
aliWithdrawalResVO
=
{
...
this
.
withdrawalParam
,
...
this
.
aliWithdrawalResVO
,
orderNo
:
'CFFPTX221129164200020081'
orderNo
:
this
.
partnerTradeNo
}
}
api
.
aliWithdrawal
(
this
.
withdrawalParam
).
then
((
res
)
=>
{
api
.
aliWithdrawal
(
this
.
aliWithdrawalResVO
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
})
})
},
},
...
@@ -139,7 +140,7 @@
...
@@ -139,7 +140,7 @@
// 判断平台
// 判断平台
if
(
plus
.
os
.
name
==
'Android'
)
{
if
(
plus
.
os
.
name
==
'Android'
)
{
plus
.
runtime
.
openURL
(
plus
.
runtime
.
openURL
(
'alipays://platformapi/startapp?appId=20
21003161624312
&url='
+
urls
,
'alipays://platformapi/startapp?appId=20
000067
&url='
+
urls
,
res
=>
{
res
=>
{
//这里写打开URL地址失败后的处理
//这里写打开URL地址失败后的处理
console
.
log
(
res
);
console
.
log
(
res
);
...
...
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