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
20ca0278
Commit
20ca0278
authored
Nov 29, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请加盟
parent
2022df85
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
493 additions
and
97 deletions
+493
-97
api/api.ts
+8
-0
pages/application-process/bank-card.vue
+56
-7
pages/application-process/basic-info.vue
+23
-0
pages/application-process/contract.vue
+67
-23
pages/application-process/education.vue
+85
-8
pages/application-process/id-card.vue
+21
-18
pages/application-process/personal-statement.vue
+38
-5
pages/application-process/signature.vue
+35
-5
pages/application-process/work-experience.vue
+12
-9
pages/myPoints/myPoints.vue
+23
-13
pages/withdrawal/withdrawal.vue
+125
-9
No files found.
api/api.ts
View file @
20ca0278
...
...
@@ -272,5 +272,13 @@ export default {
//查询申请加盟信息
queryById
(
params
){
return
request
(
`
${
cffpURL
}
/partner/queryById/
${
params
}
`
,
"GET"
)
},
//支付宝去提现
aliWithdrawal
(
params
){
return
request
(
`
${
apiURL
}
/aliPay/aliWithdrawal`
,
"POST"
,
params
)
},
//微信去提现
wxWithdrawal
(
params
){
return
request
(
`
${
apiURL
}
/pay/wxWithdrawal`
,
"POST"
,
params
)
}
}
pages/application-process/bank-card.vue
View file @
20ca0278
...
...
@@ -10,25 +10,28 @@
<div
class=
"contentDetail employ"
>
<div
class=
"contentItem"
>
<text>
开户行
</text>
<input
class=
"form-control"
name=
""
id=
""
placeholder=
"请输入"
/>
<input
class=
"form-control"
name=
""
placeholder=
"请输入"
v-model=
"applyParam.bankAccountOpening"
/>
</div>
<div
class=
"contentItem"
>
<text>
银行卡号
</text>
<input
class=
"form-control"
placeholder=
"请输入"
type=
"number"
maxlength=
"19"
v-model=
"bankAccountId"
/>
<input
class=
"form-control"
placeholder=
"请输入"
type=
"number"
maxlength=
"19"
v-model=
"applyParam.bankAccountId"
auto-blur=
true
@
blur=
"checkInput(applyParam.bankAccountId)"
/>
</div>
<div
class=
"contentItem"
>
<text>
再次输入银行卡号以确认
</text>
<input
class=
"form-control"
placeholder=
"请输入"
type=
"number"
v-model=
"sureBankAccountId"
maxlength=
"19"
/>
<input
class=
"form-control"
placeholder=
"请输入"
type=
"number"
v-model=
"sureBankAccountId"
maxlength=
"19"
auto-blur=
true
@
blur=
"checkInput(sureBankAccountId)"
/>
</div>
</div>
</div>
<
navigator
class=
"fixed"
url=
"personal-statement
"
@
click=
"saveInfo()"
>
<
view
class=
"fixed
"
@
click=
"saveInfo()"
>
保存并下一步
</
navigator
>
</
view
>
</view>
</
template
>
<
script
>
import
api
from
'@/api/api'
;
export
default
{
data
(){
return
{
...
...
@@ -41,11 +44,57 @@
},
components
:{},
onLoad
(){
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
}
},
methods
:{
queryById
(
id
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
}
})
},
//去除输入空格
checkInput
(
str
){
str
=
str
.
replace
(
/
\s
*/g
,
""
);
},
saveInfo
(){
uni
.
setStorageSync
(
'applyParam'
,
JSON
.
stringify
(
this
.
applyParam
))
if
(
this
.
applyParam
.
bankAccountId
||
this
.
sureBankAccountId
){
if
(
this
.
applyParam
.
bankAccountId
!=
this
.
sureBankAccountId
){
uni
.
showToast
({
title
:
'两次银行卡号不一致,请重新输入'
,
duration
:
2000
,
icon
:
'none'
})
return
;
}
}
this
.
applyParam
=
{
...
this
.
applyParam
,
applyType
:
2
,
operatStep
:
5
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
42
,
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
;
}
})
}
}
}
...
...
pages/application-process/basic-info.vue
View file @
20ca0278
...
...
@@ -108,6 +108,11 @@
onLoad
(){
this
.
erpInitialize
();
this
.
queryOrgList
();
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
},
500
)
}
},
methods
:{
erpInitialize
(){
...
...
@@ -196,6 +201,24 @@
}
},
queryById
(
id
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
for
(
let
i
=
0
;
i
<
this
.
idTypesList
.
length
;
i
++
){
if
(
this
.
applyParam
.
idType
==
this
.
idTypesList
[
i
].
name
){
this
.
idTypeIdx
=
i
;
}
}
for
(
let
j
=
0
;
j
<
this
.
cffpAreaQuerys
.
length
;
j
++
){
if
(
this
.
applyParam
.
areaId
==
this
.
cffpAreaQuerys
[
j
].
areaId
){
this
.
areaIdIdx
=
j
;
}
}
}
})
},
saveInfo
(){
if
(
!
this
.
applyParam
.
name
){
uni
.
showToast
({
...
...
pages/application-process/contract.vue
View file @
20ca0278
...
...
@@ -43,11 +43,20 @@
curContract
:
''
,
curContractId
:
null
,
isAllAgree
:
false
,
applyParam
:{
contractTerms
:
''
},
contractTermsConfirmsListParm
:[]
}
},
components
:{},
onLoad
(){
this
.
getContractList
();
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
},
500
)
}
},
methods
:{
getContractList
(){
...
...
@@ -57,17 +66,34 @@
})
},
saveInfo
(){
console
.
log
(
this
.
isAllAgree
)
// if (!this.isAllAgree) {
// uni.showToast({
// title: '请详细阅读全部条款!',
// duration: 2000,
// icon: 'none'
// });
// return;
// }
uni
.
navigateTo
({
url
:
'signature'
if
(
!
this
.
isAllAgree
)
{
uni
.
showToast
({
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
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
},
readContract
(
contractItem
)
{
...
...
@@ -82,20 +108,38 @@
this
.
isAllAgree
=
this
.
contractTermsList
.
every
((
item
)
=>
{
return
item
.
confirmStatus
==
1
;
});
},
//同意合同条款
agree
()
{
this
.
isShow
=
false
;
for
(
let
i
=
0
;
i
<
this
.
contractTermsList
.
length
;
i
++
)
{
if
(
this
.
curContractId
==
this
.
contractTermsList
[
i
][
"id"
])
{
this
.
contractTermsList
[
i
][
"confirmStatus"
]
=
1
;
}
}
this
.
isAllAgree
=
this
.
contractTermsList
.
every
((
item
)
=>
{
return
item
.
confirmStatus
==
1
;
});
//同意合同条款
agree
()
{
this
.
isShow
=
false
;
for
(
let
i
=
0
;
i
<
this
.
contractTermsList
.
length
;
i
++
)
{
if
(
this
.
curContractId
==
this
.
contractTermsList
[
i
][
"id"
])
{
this
.
contractTermsList
[
i
][
"confirmStatus"
]
=
1
;
}
}
this
.
isAllAgree
=
this
.
contractTermsList
.
every
((
item
)
=>
{
return
item
.
confirmStatus
==
1
;
});
},
queryById
(
id
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
if
(
this
.
applyParam
.
contractTerms
){
this
.
contractTermsConfirmsListParm
=
this
.
applyParam
.
contractTerms
.
split
(
','
);
console
.
log
(
this
.
contractTermsConfirmsListParm
)
for
(
let
i
=
0
;
i
<
this
.
contractTermsList
.
length
;
i
++
){
for
(
let
j
=
0
;
j
<
this
.
contractTermsConfirmsListParm
.
length
;
j
++
){
if
(
this
.
contractTermsList
[
i
][
'termName'
]
==
this
.
contractTermsConfirmsListParm
[
j
]){
this
.
contractTermsList
[
i
].
confirmStatus
=
1
;
}
}
}
this
.
isAllAgree
=
true
;
}
}
})
},
}
}
</
script
>
...
...
pages/application-process/education.vue
View file @
20ca0278
...
...
@@ -10,7 +10,7 @@
<view
class=
"contentDetail employ"
>
<view
class=
"contentItem"
>
<text>
最高学历:如本科、专科、硕士
</text>
<picker
@
change=
"changeEducation"
:value=
"
name
"
:range=
"educationLevelList"
<picker
@
change=
"changeEducation"
:value=
"
educationIdx
"
:range=
"educationLevelList"
range-key=
"name"
>
<view
class=
"uni-input"
>
{{
educationLevelList
[
educationIdx
][
'name'
]
}}
<text
class=
"iconfont icon-youjiantou"
></text>
...
...
@@ -19,30 +19,32 @@
</view>
<view
class=
"contentItem"
>
<text>
毕业学校
</text>
<input
class=
"form-control"
/>
<input
class=
"form-control"
v-model=
"applyParam.lastGraduateSchool"
/>
</view>
<view
class=
"contentItem"
style=
"border:none;"
>
<text>
毕业证
</text>
<view></view>
</view>
</view>
<view
class=
"photo_wrapper"
>
<view
class=
"photo_wrapper"
v-if=
"!applyParam.lastGraduateCertificationOssPath"
@
click=
"upLoadPhoto()"
>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
style=
"margin-top: 10px;"
>
点击添加毕业证照片
</view>
</view>
<!--
<image
alt=
"毕业证照片"
></image>
-->
<image
:src=
"applyParam.lastGraduateCertificationOssPath"
v-if=
"applyParam.lastGraduateCertificationOssPath"
@
click=
"upLoadPhoto()"
mode=
"widthFix"
></image>
<view
class=
"tips"
>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
</view>
<
navigator
class=
"fixed"
url=
"bank-car
d"
@
click=
"saveInfo()"
>
<
view
class=
"fixe
d"
@
click=
"saveInfo()"
>
保存并下一步
</
navigator
>
</
view
>
</view>
</
template
>
<
script
>
import
api
from
'../../api/api'
;
import
{
CommonUpload
}
from
'@/util/uploaderFile'
;
export
default
{
data
(){
return
{
...
...
@@ -52,12 +54,23 @@
lastGraduateGrade
:
''
,
lastGraduateSchool
:
''
,
lastGraduateCertificationOssPath
:
''
,
},
dataForm
:{
loginId
:
uni
.
getStorageSync
(
'cffp_userId'
),
targetType
:
"5"
,
targetId
:
uni
.
getStorageSync
(
'cffp_userId'
),
targetNo
:
"4"
,
targetUseFor
:
"12"
,
targetSeq
:
"0"
}
}
},
components
:{},
onLoad
(){
this
.
educationLevelQuery
()
this
.
educationLevelQuery
();
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
}
},
methods
:{
educationLevelQuery
(){
...
...
@@ -68,12 +81,76 @@
}
})
},
queryById
(
id
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
for
(
let
i
=
0
;
i
<
this
.
educationLevelList
.
length
;
i
++
){
if
(
this
.
applyParam
.
lastGraduateGrade
==
this
.
educationLevelList
[
i
].
name
){
this
.
educationIdx
=
i
;
}
}
}
})
},
upLoadPhoto
(
event
){
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
this
.
applyParam
.
lastGraduateCertificationOssPath
=
res
.
data
.
filePath
;
});
},
changeEducation
:
function
(
e
){
this
.
educationIdx
=
e
.
detail
.
value
;
this
.
applyParam
.
lastGraduateGrade
=
this
.
educationLevelList
[
this
.
educationIdx
][
'name'
];
},
saveInfo
(){
uni
.
setStorageSync
(
'applyParam'
,
JSON
.
stringify
(
this
.
applyParam
))
if
(
!
this
.
applyParam
.
lastGraduateGrade
){
uni
.
showToast
({
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
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
}
}
}
...
...
pages/application-process/id-card.vue
View file @
20ca0278
...
...
@@ -8,28 +8,26 @@
</view>
<view
class=
"content"
>
<view
class=
"content_wrapper"
>
<view
class=
"photo"
v-if=
"!applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
>
<view
class=
"photo"
v-if=
"!applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
>
<image
src=
"../../static/front.png"
alt=
"身份证正面"
mode=
"widthFix"
></image>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
class=
"choseBtn"
>
点击添加身份证正面
</view>
</view>
<view
class=
"showimage"
v-if=
"applyParam.idFrontPageOssPath"
>
<image
:src=
"applyParam.idFrontPageOssPath"
mode=
"widthFix"
></image>
</view>
</view>
<image
:src=
"applyParam.idFrontPageOssPath"
mode=
"widthFix"
v-if=
"applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
></image>
<view
class=
"tips"
>
<view>
(正确示例:身份证正面,字体清晰)
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
</view>
<view
class=
"content_wrapper"
style=
"margin-top: 25px;"
>
<view
class=
"photo"
v-if=
"!applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('back')"
>
<view
class=
"photo"
v-if=
"!applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('back')"
>
<image
src=
"../../static/back.png"
alt=
"身份证反面面"
mode=
"widthFix"
></image>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
class=
"choseBtn"
>
点击添加身份证反面
</view>
</view>
<view
class=
"showimage"
v-if=
"applyParam.idBackPageOssPath"
>
<image
:src=
"applyParam.idBackPageOssPath"
mode=
"widthFix"
></image>
</view>
</view>
<image
:src=
"applyParam.idBackPageOssPath"
mode=
"widthFix"
v-if=
"applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('front')"
></image>
<view
class=
"tips"
>
<view>
(正确示例:身份证反面,字体清晰)
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
...
...
@@ -64,9 +62,19 @@
},
components
:{},
onLoad
(){
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
}
},
methods
:{
queryById
(
id
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
}
})
},
upLoadPhoto
(
type
){
if
(
type
==
'front'
){
this
.
dataForm
.
targetNo
=
2
;
...
...
@@ -74,7 +82,7 @@
if
(
type
==
'back'
){
this
.
dataForm
.
targetNo
=
3
;
}
CommonUpload
(
th
at
.
dataForm
).
then
(
res
=>
{
CommonUpload
(
th
is
.
dataForm
).
then
(
res
=>
{
if
(
type
==
'front'
){
this
.
applyParam
.
idFrontPageOssPath
=
res
.
data
.
filePath
;
}
...
...
@@ -108,7 +116,7 @@
userId
:
42
,
id
:
17
,
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
(()
=>
{
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
...
...
@@ -159,10 +167,6 @@
bottom
:
19%
;
}
}
.showImg
{
max-width
:
429px
;
max-height
:
276px
;
}
}
</
style
>
\ No newline at end of file
pages/application-process/personal-statement.vue
View file @
20ca0278
...
...
@@ -24,7 +24,7 @@
</
template
>
<
script
>
import
api
from
'../../api/api'
import
api
from
'../../api/api'
;
export
default
{
data
(){
return
{
...
...
@@ -38,6 +38,11 @@
components
:{},
onLoad
(){
this
.
dropOptionsQuery
();
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
},
500
)
}
},
methods
:{
dropOptionsQuery
(){
...
...
@@ -53,6 +58,23 @@
}
console
.
log
(
this
.
dropOptionsInfoList
)
},
queryById
(
id
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
if
(
this
.
applyParam
.
personalStatement
){
this
.
personalStatementList
=
this
.
applyParam
.
personalStatement
.
split
(
','
);
for
(
let
i
=
0
;
i
<
this
.
dropOptionsInfoList
.
length
;
i
++
){
for
(
let
j
=
0
;
j
<
this
.
personalStatementList
.
length
;
j
++
){
if
(
this
.
dropOptionsInfoList
[
i
][
'dropOptionName'
]
==
this
.
personalStatementList
[
j
]){
this
.
dropOptionsInfoList
[
i
].
status
=
1
;
}
}
}
}
}
})
},
saveInfo
(){
const
selectedPersonalStatement
=
this
.
dropOptionsInfoList
.
filter
((
item
)
=>
{
return
item
.
status
==
1
;
...
...
@@ -70,11 +92,22 @@
this
.
personalStatementList
.
push
(
selectedPersonalStatement
[
i
][
'dropOptionName'
]);
}
this
.
applyParam
.
personalStatement
=
this
.
personalStatementList
.
join
(
','
);
uni
.
setStorageSync
(
'applyParam'
,
JSON
.
stringify
(
this
.
applyParam
))
uni
.
navigateTo
({
url
:
'contract'
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
;
}
})
}
}
}
...
...
pages/application-process/signature.vue
View file @
20ca0278
...
...
@@ -2,7 +2,7 @@
<view
class=
"container"
>
<view
class=
"title"
>
<view>
<text
class=
"line"
style=
"background: #5F83FF;"
></text>
电子签名
<text
style=
"font-size: 20rpx;font-weight: normal;"
>
(请书写工整,字迹清晰)
</text>
<text
class=
"line"
></text>
电子签名
<text
style=
"font-size: 20rpx;font-weight: normal;"
>
(请书写工整,字迹清晰)
</text>
</view>
<text
class=
"page_mark"
>
8/8
</text>
</view>
...
...
@@ -10,13 +10,15 @@
<e-signature
:showCanvas=
"showCanvas"
ref=
"signatureComponent"
@
sendImage=
"getImage"
></e-signature>
</view>
<view
class=
"fixed"
url=
"bank-card"
@
click=
"save()"
>
保存并下一步
我自愿签订推广人合同书
</view>
</view>
</
template
>
<
script
>
import
eSignature
from
'@/components/eSignature/eSignature.vue'
;
import
api
from
'../../api/api'
;
import
{
nextTick
}
from
"vue"
;
export
default
{
data
()
{
return
{
...
...
@@ -24,19 +26,47 @@
showCanvas
:
true
,
//是否展示操作菜单
completionSignPath
:
''
,
//签名
applyParam
:{
personalSignOssPath
:
''
}
}
},
components
:{
eSignature
},
onLoad
()
{
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
},
500
)
}
},
methods
:
{
save
(){
this
.
$refs
.
signatureComponent
.
finish
()
},
queryById
(
id
){
api
.
queryById
(
id
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
}
})
},
getImage
(
e
){
console
.
log
(
e
)
}
this
.
applyParam
.
personalSignOssPath
=
e
;
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
return
;
}
})
},
}
}
</
script
>
...
...
pages/application-process/work-experience.vue
View file @
20ca0278
...
...
@@ -101,7 +101,11 @@
// if(options.id){
// this.queryById(options.id)
// }
if
(
uni
.
getStorageSync
(
'applyId'
)){
setTimeout
(()
=>
{
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
},
500
)
}
},
methods
:{
changeIndustry
:
function
(
e
){
...
...
@@ -118,7 +122,6 @@
occupationQry
(){
api
.
occupationQry
({
insurerId
:
2
}).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
console
.
log
(
res
[
'data'
][
'industry'
])
this
.
industry
=
this
.
industry
.
concat
(
res
[
'data'
][
'industry'
]);
}
else
{
this
.
industry
=
[{
industryName
:
'请选择'
,
industryId
:
null
}];
...
...
@@ -126,8 +129,7 @@
})
},
upLoadPhoto
(
event
){
let
that
=
this
;
CommonUpload
(
that
.
dataForm
).
then
(
res
=>
{
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
this
.
applyParam
.
certificate
=
res
.
data
.
filePath
;
this
.
picList
.
push
(
this
.
applyParam
.
certificate
);
});
...
...
@@ -174,17 +176,18 @@
this
.
applyParam
=
res
[
'data'
][
'data'
];
if
(
this
.
applyParam
.
certificate
){
this
.
picList
=
this
.
applyParam
.
certificate
.
split
(
','
);
console
.
log
(
this
.
picList
)
}
console
.
log
(
this
.
picList
)
for
(
let
i
=
0
;
i
<
this
.
industry
.
length
;
i
++
){
if
(
this
.
applyParam
.
workingCategoryId
==
this
.
industry
[
i
].
industryId
){
this
.
industryIdx
=
i
;
}
}
}
})
}
},
mounted
()
{
if
(
uni
.
getStorageSync
(
'applyId'
)){
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
))
}
}
}
</
script
>
...
...
pages/myPoints/myPoints.vue
View file @
20ca0278
...
...
@@ -33,11 +33,11 @@
<text>
累计积分
</text>
</view>
<view
class=
""
>
<text
style=
"color: #F15A1F;"
>
{{
nowSumCommissionAmount
}}
</text>
<text
style=
"color: #F15A1F;"
>
{{
(
Number
(
nowSumCommissionAmount
)).
toFixed
(
2
)
}}
</text>
<text>
{{
getName
(
timeFlag
)
}}
获得积分
</text>
</view>
<view
class=
""
>
<text
style=
"color: #0A2F99;"
>
{{
prePercent
}}
%
</text>
<text
style=
"color: #0A2F99;"
>
{{
(
Number
(
prePercent
)).
toFixed
(
2
)
}}
%
</text>
<text>
比
{{
getInfo
(
timeFlag
)
}}
得分
</text>
</view>
</view>
...
...
@@ -86,24 +86,32 @@
methods
:{
selectNav
(
navItem
){
this
.
timeFlag
=
navItem
.
timeFlag
;
if
(
this
.
timeFlag
==
'M'
){
this
.
fortuneDate
=
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
}
if
(
this
.
timeFlag
==
'Y'
){
this
.
fortuneDate
=
`
${
new
Date
().
getFullYear
()}
`
}
this
.
findByUserIdForFortuneStatistic
();
},
bindDateChange
:
function
(
e
)
{
this
.
fortuneDate
=
e
.
detail
.
value
;
this
.
findByUserIdForFortuneStatistic
();
},
findByUserIdForFortuneStatistic
(){
// const param = {
// isDtl:2,
// userId:uni.getStorageSync('cffp_userId'),
// fortuneDate:this.fortuneDate,
// timeFlag:this.timeFlag
// }
const
param
=
{
"isDtl"
:
2
,
"userId"
:
1
,
"fortuneDate"
:
"2022-11-01"
,
"timeFlag"
:
"D"
}
isDtl
:
2
,
// userId:uni.getStorageSync('cffp_userId'),
userId
:
1
,
fortuneDate
:
this
.
fortuneDate
,
timeFlag
:
this
.
timeFlag
}
// const param = {
// "isDtl": 2,
// "userId": 1,
// "fortuneDate": "2022-11-01",
// "timeFlag": "D"
// }
api
.
findByUserIdForFortuneStatistic
(
param
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
...
...
@@ -198,7 +206,9 @@
width
:
33%
;
overflow
:
hidden
;
text{
width
:
100%
;
margin-bottom
:
10
rpx
;
text-align
:
center
;
}
}
}
...
...
pages/withdrawal/withdrawal.vue
View file @
20ca0278
...
...
@@ -24,12 +24,24 @@
</view>
<view
class=
"content_wrapper"
>
<h4>
提现到
</h4>
<view
class=
"withdrawal_content"
>
<view
style=
"display: flex;align-items: center;"
>
<text
class=
"iconfont icon-py_weixinzhifu"
></text>
<h4>
微信钱包
</h4>
<view
class=
"paymentItem"
@
click=
"selectPaymentMethod(2)"
>
<view>
<i
class=
"iconfont icon-zhifubao"
></i>
<text>
支付宝钱包
</text>
</view>
<view
class=
"selectRadio"
:class=
"
{'actived':paymentMethod===2}">
<i
class=
"iconfont icon-duihao"
></i>
</view>
</view>
<view
class=
"paymentItem"
@
click=
"selectPaymentMethod(1)"
>
<view>
<i
class=
"iconfont icon-py_weixinzhifu"
></i>
<text>
微信钱包
</text>
</view>
<view
class=
"selectRadio"
:class=
"
{'actived':paymentMethod===1}">
<i
class=
"iconfont icon-duihao"
></i>
</view>
<text
class=
"iconfont icon-gou"
></text>
</view>
<view
class=
"tips_wrapper"
>
<view
class=
""
>
...
...
@@ -48,7 +60,7 @@
3、如需帮助,请联系CFFP财富中心客服电话:12345678;
</view>
</view>
<view
class=
"btn"
>
<view
class=
"btn"
@
click=
"confirmWithdrawal()"
>
确认提现
</view>
</view>
...
...
@@ -63,8 +75,9 @@
exchangeAmount
:
null
,
partnerTradeNo
:
null
,
taxAmount
:
null
,
noTaxAmount
:
null
noTaxAmount
:
null
,
paymentMethod
:
2
,
//初始化支付宝提现
withdrawalParam
:
null
,
}
},
components
:{},
...
...
@@ -76,7 +89,8 @@
methods
:{
goFortuneWithdrawal
(){
const
param
=
{
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
// userId:uni.getStorageSync('cffp_userId'),
userId
:
1
,
exchangeAmount
:
this
.
exchangeAmount
,
partnerTradeNo
:
this
.
partnerTradeNo
?
this
.
partnerTradeNo
:
null
}
...
...
@@ -88,6 +102,8 @@
this
.
partnerTradeNo
=
data
.
partnerTradeNo
;
this
.
taxAmount
=
data
.
taxAmount
;
this
.
noTaxAmount
=
data
.
noTaxAmount
;
this
.
withdrawalParam
=
res
[
'data'
];
this
.
withdrawalParam
.
cffpFortuneExchangeVO
=
undefined
;
}
else
{
this
.
exchangeAmount
=
0
;
this
.
partnerTradeNo
=
null
;
...
...
@@ -95,6 +111,68 @@
this
.
noTaxAmount
=
0
;
}
})
},
selectPaymentMethod
(
value
){
this
.
paymentMethod
=
value
;
},
//支付宝去提现
aliWithdrawal
(){
this
.
withdrawalParam
=
{
...
this
.
withdrawalParam
,
orderNo
:
'CFFPTX221129164200020081'
}
api
.
aliWithdrawal
(
this
.
withdrawalParam
).
then
((
res
)
=>
{
console
.
log
(
res
)
})
},
//微信去提现
wxWithdrawal
(){
},
confirmWithdrawal
(){
if
(
this
.
paymentMethod
==
1
){
this
.
wxWithdrawal
();
}
if
(
this
.
paymentMethod
==
2
){
let
urls
=
this
.
withdrawalParam
.
aliAuthUrl
;
urls
=
encodeURIComponent
(
urls
);
// 判断平台
if
(
plus
.
os
.
name
==
'Android'
)
{
plus
.
runtime
.
openURL
(
'alipays://platformapi/startapp?appId=2021003161624312&url='
+
urls
,
res
=>
{
//这里写打开URL地址失败后的处理
console
.
log
(
res
);
uni
.
showModal
({
content
:
'本机未检测到对应客户端,是否打开浏览器访问页面?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
//plus.runtime.openURL();
}
}
});
},
'com.eg.android.AlipayGphone'
);
}
else
if
(
plus
.
os
.
name
==
'iOS'
)
{
plus
.
runtime
.
openURL
(
'alipay://platformapi/startapp?appId=20000067&url='
+
urls
,
res
=>
{
console
.
log
(
res
);
uni
.
showModal
({
content
:
'本机未检测到对应客户端,是否打开浏览器访问页面?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
//plus.runtime.openURL(url);
}
}
});
},
'com.eg.android.AlipayGphone'
);
}
// this.aliWithdrawal();
}
}
}
}
...
...
@@ -125,6 +203,44 @@
border-bottom
:
2
rpx
solid
#F2F2F2
;
justify-content
:
space-between
;
}
h4
{
font-size
:
32
rpx
;
margin-bottom
:
20
rpx
;
}
.paymentItem
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
10
rpx
;
view{
display
:
flex
;
align-items
:
center
;
}
.icon-zhifubao
{
color
:
#5A9EF7
;
font-size
:
60
rpx
;
margin-right
:
20
rpx
;
}
.icon-py_weixinzhifu
{
color
:
#09BB07
;
font-size
:
60
rpx
;
margin-right
:
20
rpx
;
}
.selectRadio
{
width
:
40
rpx
;
height
:
40
rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
border-radius
:
50%
;
border
:
1px
solid
#D8D8D8
;
color
:
transparent
;
&.actived{
background-color
:
#0A2F99
;
color
:
#fff
;
}
}
}
.withdrawal_content
{
display
:
flex
;
justify-content
:
space-between
;
...
...
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