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
74c4c563
Commit
74c4c563
authored
Dec 08, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阅读id&分享id&申请加盟所属组织bug修复
parent
2801a043
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
131 additions
and
97 deletions
+131
-97
api/api.ts
+4
-0
components/login/login.vue
+1
-1
pages/application-process/application-result.vue
+9
-4
pages/application-process/basic-info.vue
+16
-8
pages/application-process/signature.vue
+1
-1
pages/commonDetail/commonDetail.vue
+8
-4
pages/orderConfirm/orderConfirm.vue
+4
-1
pages/withdrawal/withdrawal.vue
+88
-78
No files found.
api/api.ts
View file @
74c4c563
...
...
@@ -304,5 +304,9 @@ export default {
// 用户阅读
userRead
(
params
){
return
request
(
`
${
apiURL
}
/cffp/share/userRead`
,
"POST"
,
params
)
},
//支付宝网页支付
aliWapPay
(
params
){
return
request
(
`
${
apiURL
}
/aliPay/aliWapPay`
,
"POST"
,
params
)
}
}
components/login/login.vue
View file @
74c4c563
...
...
@@ -43,7 +43,7 @@
<text>
已阅读并同意
</text><a
href=
"#"
>
银盾保险经纪服务协议
</a><text>
和
</text><a
href=
""
>
隐私政策
</a>
</view>
<view
class=
"login_btn"
@
click=
"loginInCheck()"
v-if=
"loginType!='resetpw'"
>
{{
loginType
==
'register'
?
'注册'
:
'登录'
}}
{{
loginType
==
'register'
?
'注册'
:
'登录'
}}
{{
this
.
loginType
}}
</view>
<view
class=
"login_btn"
v-if=
"loginType=='resetpw'"
@
click=
"loginInCheck()"
>
保存
...
...
pages/application-process/application-result.vue
View file @
74c4c563
...
...
@@ -19,13 +19,16 @@
</view>
<view
class=
"wrapper"
>
<view
class=
"iconfont icon-gou"
></view>
<h4>
您已提交成功
</h4>
<view
class=
"result"
v-if=
"this.partnerLevel=='A1'"
>
<h4>
{{
approvalStatus
==
3
?
'审批通过'
:
'您已提交成功'
}}
</h4>
<view
class=
"result"
v-if=
"this.partnerLevel=='A1'
&& approvalStatus==3
"
>
恭喜您成为
{{
areaName
}}
事业伙伴!
</view>
<view
class=
"result"
v-if=
"this.partnerLevel=='B1'"
>
<view
class=
"result"
v-if=
"this.partnerLevel=='B1'
&& approvalStatus!=3
"
>
您的申请已进入人工审核,请耐心等待!
</view>
<view
class=
"result"
v-if=
"this.partnerLevel=='B1' && approvalStatus==3"
>
欢迎您加入
{{
areaName
}}
!
</view>
<navigator
url=
"../index/index"
>
返回首页 >
</navigator>
...
...
@@ -38,13 +41,15 @@
data
(){
return
{
partnerLevel
:
null
,
areaName
:
null
areaName
:
null
,
approvalStatus
:
null
}
},
components
:{},
onLoad
(
options
){
this
.
areaName
=
options
.
areaName
;
this
.
partnerLevel
=
options
.
partnerLevel
;
this
.
approvalStatus
=
options
.
approvalStatus
;
},
methods
:{
...
...
pages/application-process/basic-info.vue
View file @
74c4c563
...
...
@@ -138,7 +138,6 @@
components
:{},
onLoad
(
options
){
this
.
erpInitialize
();
this
.
queryOrgList
();
// let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
// let curRoute = routes[routes.length - 1].route // 获取当前页面路由,也就是最后一个打开的页面路由
// console.log('当前路由地址',curRoute)
...
...
@@ -158,7 +157,7 @@
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
},
5
00
)
},
1
00
)
},
methods
:{
erpInitialize
(){
...
...
@@ -180,6 +179,12 @@
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
cffpAreaQuerys
=
this
.
cffpAreaQuerys
.
concat
(
res
[
'data'
][
'cffpAreaQuerys'
])
for
(
let
j
=
0
;
j
<
this
.
cffpAreaQuerys
.
length
;
j
++
){
if
(
this
.
applyParam
.
areaId
==
this
.
cffpAreaQuerys
[
j
].
areaId
){
this
.
areaIdIdx
=
j
;
console
.
log
(
j
)
}
}
}
})
},
...
...
@@ -253,17 +258,20 @@
api
.
queryById
({
id
:
id
,
userId
:
userId
}).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
queryOrgList
();
for
(
let
m
=
0
;
m
<
this
.
identityArr
.
length
;
m
++
){
if
(
this
.
applyParam
.
partnerLevel
==
this
.
identityArr
[
m
].
partnerLevel
){
this
.
identityIdx
=
m
;
}
}
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
;
console
.
log
(
j
)
}
}
}
else
{
this
.
queryOrgList
();
}
})
},
...
...
pages/application-process/signature.vue
View file @
74c4c563
...
...
@@ -110,7 +110,7 @@
})
}
else
{
uni
.
navigateTo
({
url
:
`application-result?partnerLevel=
${
this
.
applyParam
.
partnerLevel
}
&areaName=
${
this
.
applyParam
.
areaName
}
`
,
url
:
`application-result?partnerLevel=
${
this
.
applyParam
.
partnerLevel
}
&areaName=
${
this
.
applyParam
.
areaName
}
&approvalStatus=
${
this
.
applyParam
.
approvalStatus
}
`
,
success
:
res
=>
{},
fail
:
()
=>
{},
complete
:
()
=>
{}
...
...
pages/commonDetail/commonDetail.vue
View file @
74c4c563
...
...
@@ -2,8 +2,8 @@
<view>
<template
v-if=
"title"
>
<view><list-item
:title=
"title"
:lists=
"lists"
></list-item></view>
<view
v-if=
"lists.length
<
=
0
"
style=
"text-align: center;margin-top: 40rpx;"
>
暂无
{{
typeName
}}
记录
</view>
</
template
>
<!-- -->
</view>
</template>
...
...
@@ -20,7 +20,8 @@
lists
:[],
fileId
:
''
,
type
:
'1'
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
typeName
:
''
}
},
methods
:
{
...
...
@@ -57,6 +58,7 @@
mounted
()
{
console
.
log
(
'mounted'
)
if
(
this
.
type
==
'1'
){
this
.
typeName
=
'分享'
;
this
.
title
=
[
{
no
:
1
,
name
:
'分享时间'
,
width
:
'40%'
},
{
no
:
2
,
name
:
'分享链接'
,
width
:
'35%'
},
...
...
@@ -70,11 +72,12 @@
children
:[
{
no
:
1
,
name
:
'分享时间'
,
width
:
'40%'
,
value
:
''
,
link
:
null
,
alias
:
'shareDate'
},
{
no
:
2
,
name
:
'分享链接'
,
width
:
'35%'
,
value
:
''
,
link
:
null
,
alias
:
'shareUrl'
},
{
no
:
3
,
name
:
'阅读明细'
,
width
:
'25%'
,
value
:
'阅读明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=2
`
},
{
no
:
3
,
name
:
'阅读明细'
,
width
:
'25%'
,
value
:
'阅读明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=2
&shareId=`
,
needParam
:
true
},
]
}
);
}
else
if
(
this
.
type
==
'2'
){
this
.
typeName
=
'阅读'
;
this
.
title
=
[
{
no
:
1
,
name
:
'用户'
,
width
:
'20%'
},
{
no
:
2
,
name
:
'阅读链接'
,
width
:
'30%'
},
...
...
@@ -90,11 +93,12 @@
{
no
:
1
,
name
:
'用户'
,
width
:
'20%'
,
value
:
''
,
link
:
null
,
alias
:
'readName'
},
{
no
:
2
,
name
:
'阅读链接'
,
width
:
'30%'
,
value
:
''
,
link
:
null
,
alias
:
'readUrl'
},
{
no
:
3
,
name
:
'阅读时间'
,
width
:
'25%'
,
value
:
''
,
link
:
null
,
alias
:
'readDate'
},
{
no
:
3
,
name
:
'购买明细'
,
width
:
'25%'
,
value
:
'购买明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=3
`
},
{
no
:
3
,
name
:
'购买明细'
,
width
:
'25%'
,
value
:
'购买明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=3
&readId=`
,
needParam
:
true
},
]
}
);
}
else
if
(
this
.
type
==
'3'
){
this
.
typeName
=
'购买'
;
this
.
title
=
[
{
no
:
1
,
name
:
'用户'
,
width
:
'30%'
},
{
no
:
2
,
name
:
'阅读链接'
,
width
:
'30%'
},
...
...
pages/orderConfirm/orderConfirm.vue
View file @
74c4c563
...
...
@@ -175,6 +175,8 @@
this
.
paymentBtnDisabled
=
false
;
})
}
else
if
(
this
.
paymentMethod
==
2
){
// APP:
// #ifdef APP-PLUS
api
.
aliAppPay
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
]){
const
aliOrderString
=
res
[
'data'
][
'aliOrderString'
];
...
...
@@ -216,7 +218,8 @@
});
}
})
// #endif
}
},
...
...
pages/withdrawal/withdrawal.vue
View file @
74c4c563
...
...
@@ -60,7 +60,7 @@
3、如需帮助,请联系CFFP财富中心客服电话:12345678;
</view>
</view>
<view
class=
"btn"
@
click=
"confirmWithdrawal()"
>
<view
class=
"btn"
@
click=
"confirmWithdrawal()"
:class=
"
{'gray':readonlyFlag}"
>
确认提现
</view>
</view>
...
...
@@ -78,7 +78,8 @@
noTaxAmount
:
null
,
paymentMethod
:
2
,
//初始化支付宝提现
aliWithdrawalResVO
:
null
,
wxWithdrawalResVO
:
null
wxWithdrawalResVO
:
null
,
readonlyFlag
:
false
}
},
components
:{},
...
...
@@ -128,8 +129,10 @@
},
//支付宝去提现
aliWithdrawal
(){
this
.
readonlyFlag
=
true
;
api
.
aliWithdrawal
(
this
.
aliWithdrawalResVO
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
readonlyFlag
=
false
;
uni
.
showModal
({
content
:
'提现成功!'
,
success
:
function
(
res
)
{
...
...
@@ -188,85 +191,89 @@
// #endif
},
confirmWithdrawal
(){
this
.
aliWithdrawalResVO
=
{
...
this
.
aliWithdrawalResVO
,
orderNo
:
this
.
partnerTradeNo
,
amount
:
this
.
exchangeAmount
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
}
console
.
log
(
this
.
aliWithdrawalResVO
)
api
.
isAuth
(
this
.
aliWithdrawalResVO
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
aliWithdrawalResVO
.
aliUserId
=
res
[
'data'
][
'aliUserId'
];
if
(
res
[
'data'
][
'isAuth'
]
==
1
){
if
(
this
.
paymentMethod
==
1
){
this
.
wxWithdrawal
();
}
if
(
this
.
paymentMethod
==
2
){
// APP:
// #ifdef APP-PLUS
let
urls
=
this
.
aliWithdrawalResVO
.
aliAuthUrl
;
urls
=
encodeURIComponent
(
urls
);
// 判断平台
if
(
plus
.
os
.
name
==
'Android'
)
{
plus
.
runtime
.
openURL
(
'alipays://platformapi/startapp?appId=20000067&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'
);
if
(
!
this
.
readonlyFlag
){
this
.
readonlyFlag
=
true
;
this
.
aliWithdrawalResVO
=
{
...
this
.
aliWithdrawalResVO
,
orderNo
:
this
.
partnerTradeNo
,
amount
:
this
.
exchangeAmount
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
}
console
.
log
(
this
.
aliWithdrawalResVO
)
api
.
isAuth
(
this
.
aliWithdrawalResVO
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
aliWithdrawalResVO
.
aliUserId
=
res
[
'data'
][
'aliUserId'
];
if
(
res
[
'data'
][
'isAuth'
]
==
1
){
if
(
this
.
paymentMethod
==
1
){
this
.
wxWithdrawal
();
}
if
(
this
.
paymentMethod
==
2
){
// APP:
// #ifdef APP-PLUS
let
urls
=
this
.
aliWithdrawalResVO
.
aliAuthUrl
;
urls
=
encodeURIComponent
(
urls
);
// 判断平台
if
(
plus
.
os
.
name
==
'Android'
)
{
plus
.
runtime
.
openURL
(
'alipays://platformapi/startapp?appId=20000067&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'
);
}
// #endif
}
}
else
{
if
(
this
.
paymentMethod
==
1
){
this
.
wxWithdrawal
();
}
if
(
this
.
paymentMethod
==
2
){
this
.
aliWithdrawal
();
}
}
// #endif
}
}
else
{
if
(
this
.
paymentMethod
==
1
){
this
.
wxWithdrawal
();
}
if
(
this
.
paymentMethod
==
2
){
this
.
aliWithdrawal
();
}
}
}
else
{
uni
.
showModal
({
content
:
res
[
'message'
],
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
else
{
this
.
readonlyFlag
=
false
;
uni
.
showModal
({
content
:
res
[
'message'
],
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
}
});
}
});
}
}
}
}
...
...
@@ -291,6 +298,9 @@
background
:
#fff
;
margin
:
20
rpx
auto
;
padding
:
0
30
rpx
;
.btn.gray{
background
:
#666
;
}
.item
{
display
:
flex
;
padding
:
20
rpx
0
;
...
...
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