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
d7a93dcd
Commit
d7a93dcd
authored
Apr 23, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!111
parents
8e8ed1c5
1e724831
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
2220 additions
and
738 deletions
+2220
-738
App.vue
+10
-0
components/bootpage/bootpage.vue
+1
-0
components/commonPopup/restrictedTip.vue
+18
-6
myPackageA/commission/withdrawalRecord.vue
+35
-2
myPackageA/myTeam/myTeam.vue
+35
-1
myPackageA/poster/poster.vue
+37
-2
myPackageA/product-list/commission-detail.vue
+36
-2
myPackageA/product-list/product-commission.vue
+35
-2
myPackageA/product-list/product-list.vue
+174
-137
myPackageA/ruleAndContract/cancelProtocol.vue
+39
-0
myPackageA/ruleAndContract/clause.vue
+35
-1
myPackageA/ruleAndContract/taxRules.vue
+35
-2
myPackageA/setting/logOff.vue
+34
-1
pages/afterSaleDetail/afterSaleDetail.vue
+34
-1
pages/afterSales/afterSales.vue
+35
-1
pages/applyDropClass/applyDropClass.vue
+34
-0
pages/commonDetail/commonDetail.vue
+42
-3
pages/courseDetail/courseDetail.vue
+18
-35
pages/courselist/courselist.vue
+31
-1
pages/index/index.vue
+21
-0
pages/inviteJoin/inviteJoin.vue
+36
-2
pages/lanch/index.vue
+18
-1
pages/myShare/myShare.vue
+35
-1
pages/orderConfirm/orderConfirm.vue
+35
-2
pages/orderDetail/orderDetail.vue
+36
-0
pages/orderStatus/orderStatus.vue
+34
-1
pages/personalCenter/accountoperation/aboutcffp.vue
+37
-0
pages/personalCenter/detail.vue
+481
-466
pages/personalCenter/helpCenter.vue
+37
-0
pages/personalCenter/myTeam.vue
+35
-2
pages/personalCenter/myTeamIncubate.vue
+35
-1
pages/personalCenter/personalCenter.vue
+10
-0
pages/personalCenter/system/accontsetting.vue
+36
-1
pages/personalCenter/system/menulist.vue
+37
-0
pages/personalCenter/system/settings.vue
+35
-1
pages/personalCenter/user-information.vue
+36
-3
pages/pointsExchange/pointsExchange.vue
+35
-2
pages/product/product.vue
+32
-1
pages/saleCourseLists/saleCourseLists.vue
+36
-1
pages/systemMsg/system_msg.vue
+36
-0
pages/systemMsg/system_msg_detail.vue
+52
-16
pages/taxRules/taxRules.vue
+37
-2
pages/withdrawal/withdrawal.vue
+39
-2
sfp/childEdu/childEdu.vue
+41
-6
sfp/dataImport/data-import.vue
+36
-0
sfp/housePurchase/housePurchase.vue
+35
-2
sfp/housePurchase/loanBalance.vue
+35
-1
sfp/housePurchase/planningParameters.vue
+34
-1
sfp/index/index.vue
+36
-2
util/router.js
+24
-24
No files found.
App.vue
View file @
d7a93dcd
...
@@ -126,6 +126,15 @@
...
@@ -126,6 +126,15 @@
const
cffp_userInfo
=
{
const
cffp_userInfo
=
{
...
res
.
data
...
res
.
data
}
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
))
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
))
}
}
...
@@ -241,6 +250,7 @@
...
@@ -241,6 +250,7 @@
}
}
//家办商城跳转未登录状态下
//家办商城跳转未登录状态下
if
(
params
.
noLogin
){
if
(
params
.
noLogin
){
uni
.
removeStorageSync
(
'userIsActive'
)
uni
.
removeStorageSync
(
'dataToken'
)
uni
.
removeStorageSync
(
'dataToken'
)
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
}
}
...
...
components/bootpage/bootpage.vue
View file @
d7a93dcd
...
@@ -144,6 +144,7 @@
...
@@ -144,6 +144,7 @@
// 禁用账号,不让登录
// 禁用账号,不让登录
if
(
res
.
data
.
userIsActive
==
2
){
if
(
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
this
.
$refs
.
restrictedTip
.
open
()
return
return
}
}
this
.
userId
=
String
(
res
[
'data'
][
'userId'
]);
this
.
userId
=
String
(
res
[
'data'
][
'userId'
]);
...
...
components/commonPopup/restrictedTip.vue
View file @
d7a93dcd
<
template
>
<
template
>
<uni-popup
ref=
"popup"
type=
"center"
background-color=
"#fff"
v-if=
"visible"
>
<uni-popup
ref=
"popup"
type=
"center"
background-color=
"#fff"
v-if=
"visible"
:isMaskClick=
"false"
>
<!-- 你的弹窗内容 -->
<!-- 你的弹窗内容 -->
<view
class=
"joinContent"
>
<view
class=
"joinContent"
>
<view
class=
"title"
>
{{
title
}}
</view>
<view
class=
"title"
>
{{
title
}}
</view>
...
@@ -8,27 +8,28 @@
...
@@ -8,27 +8,28 @@
<view
class=
"iconfont icon-exclamation"
></view>
<view
class=
"iconfont icon-exclamation"
></view>
</view>
</view>
<view
class=
"joinCon"
>
<view
class=
"joinCon"
>
<view
class=
"one"
>
{{
conten
t
}}
</view>
<view
class=
"one"
>
{{
tipTx
t
}}
</view>
<view
class=
"qrCode"
v-if=
"showCode"
>
<view
class=
"qrCode"
v-if=
"showCode"
>
<image
src=
"@/static/images/customer.jpg"
mode=
"widthFix"
></image>
<image
src=
"@/static/images/customer.jpg"
mode=
"widthFix"
></image>
</view>
</view>
</view>
</view>
<view
class=
"joinFotter"
>
<
!--
<
view
class=
"joinFotter"
>
<view
@
click=
"handleConfirm"
>
{{
confirmText
}}
</view>
<view
@
click=
"handleConfirm"
>
{{
confirmText
}}
</view>
</view>
</view>
-->
</view>
</view>
</uni-popup>
</uni-popup>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
shareURL
}
from
"@/environments/environment"
;
import
{
shareURL
}
from
"@/environments/environment"
;
import
dataHandling
from
"@/util/dataHandling"
;
export
default
{
export
default
{
name
:
'restrictedTip'
,
name
:
'restrictedTip'
,
props
:
{
props
:
{
title
:
String
,
title
:
String
,
content
:
{
content
:
{
type
:
String
,
type
:
String
,
default
:
'您的账号处在不可用状态,请
扫码
添加客服咨询情况'
default
:
'您的账号处在不可用状态,请
长按图片
添加客服咨询情况'
},
},
showCode
:
{
showCode
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -41,11 +42,22 @@
...
@@ -41,11 +42,22 @@
},
},
data
()
{
data
()
{
return
{
return
{
visible
:
false
visible
:
false
,
tipTxt
:
'您的账号处在不可用状态,请长按图片添加客服咨询情况'
}
}
},
},
onMounted
(){
console
.
log
(
'禁用弹窗onMounted'
);
},
methods
:
{
methods
:
{
open
()
{
open
()
{
if
(
dataHandling
.
getRuntimeEnv
()
==
'browser'
){
this
.
tipTxt
=
'您的账号处在不可用状态,请扫码添加客服咨询情况'
}
if
(
this
.
visible
){
return
}
this
.
visible
=
true
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
popup
.
open
()
// 确保DOM渲染后再打开
this
.
$refs
.
popup
.
open
()
// 确保DOM渲染后再打开
...
...
myPackageA/commission/withdrawalRecord.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
...
@@ -77,9 +79,11 @@
...
@@ -77,9 +79,11 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
MultiSelectDropdown
from
'@/components/commonPopup/MultiSelectDropdown.vue'
import
MultiSelectDropdown
from
'@/components/commonPopup/MultiSelectDropdown.vue'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:
{
components
:
{
MultiSelectDropdown
MultiSelectDropdown
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -99,6 +103,9 @@
...
@@ -99,6 +103,9 @@
onLoad
(
options
){
onLoad
(
options
){
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -111,7 +118,33 @@
...
@@ -111,7 +118,33 @@
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
// 获取团队数据
// 获取团队数据
getWithdrawalList
()
{
getWithdrawalList
()
{
const
status
=
this
.
selectedStatus
.
length
===
0
||
this
.
selectedStatus
.
includes
(
'-1'
)
const
status
=
this
.
selectedStatus
.
length
===
0
||
this
.
selectedStatus
.
includes
(
'-1'
)
...
...
myPackageA/myTeam/myTeam.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"myHeader"
>
<view
class=
"myHeader"
>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
...
@@ -255,10 +257,12 @@
...
@@ -255,10 +257,12 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
BootPage
from
"@/components/bootpage/bootpage.vue"
;
import
BootPage
from
"@/components/bootpage/bootpage.vue"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:
{
components
:
{
CommonTimePicker
,
CommonTimePicker
,
BootPage
BootPage
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -414,6 +418,9 @@
...
@@ -414,6 +418,9 @@
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -423,6 +430,33 @@
...
@@ -423,6 +430,33 @@
this
.
loginType
=
uni
.
getStorageSync
(
'loginType'
)
this
.
loginType
=
uni
.
getStorageSync
(
'loginType'
)
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
sortswitch
(
obj
)
{
sortswitch
(
obj
)
{
this
.
currentFilterBtn
=
obj
.
id
this
.
currentFilterBtn
=
obj
.
id
this
.
CffpOrgInfoReqVO
.
sortType
=
obj
.
sortType
this
.
CffpOrgInfoReqVO
.
sortType
=
obj
.
sortType
...
...
myPackageA/poster/poster.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- 添加ref以便获取DOM -->
<!-- 添加ref以便获取DOM -->
<view
class=
"imgBox"
ref=
"captureElement"
v-if=
"!generatedImage"
>
<view
class=
"imgBox"
ref=
"captureElement"
v-if=
"!generatedImage"
>
<view
class=
"imgContainer"
>
<view
class=
"imgContainer"
>
...
@@ -31,10 +33,13 @@
...
@@ -31,10 +33,13 @@
import
*
as
environment
from
"@/environments/environment"
;
import
*
as
environment
from
"@/environments/environment"
;
import
UQRCode
from
'uqrcodejs'
;
import
UQRCode
from
'uqrcodejs'
;
import
{
elementToImage
}
from
'@/util/htmlToImage'
;
import
{
elementToImage
}
from
'@/util/htmlToImage'
;
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
companyInfo
:
environment
.
companyInfo
,
companyInfo
:
environment
.
companyInfo
,
...
@@ -53,6 +58,9 @@ export default {
...
@@ -53,6 +58,9 @@ export default {
}
}
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
loginType
=
uni
.
getStorageSync
(
'loginType'
)
this
.
loginType
=
uni
.
getStorageSync
(
'loginType'
)
if
(
!
this
.
loginType
||
this
.
loginType
==
'visitor'
){
if
(
!
this
.
loginType
||
this
.
loginType
==
'visitor'
){
...
@@ -79,6 +87,33 @@ export default {
...
@@ -79,6 +87,33 @@ export default {
// #endif
// #endif
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
// 背景图片加载成功
// 背景图片加载成功
handleBgImageLoad
()
{
handleBgImageLoad
()
{
console
.
log
(
'背景图片加载完成'
);
console
.
log
(
'背景图片加载完成'
);
...
...
myPackageA/product-list/commission-detail.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTipRef"
/>
<!-- 水印容器 -->
<!-- 水印容器 -->
<view
class=
"watermark-container"
>
<view
class=
"watermark-container"
>
<view
class=
"watermark"
v-for=
"i in 24"
:key=
"i"
>
<view
class=
"watermark"
v-for=
"i in 24"
:key=
"i"
>
...
@@ -124,10 +126,12 @@
...
@@ -124,10 +126,12 @@
import
{
ref
,
onMounted
,
computed
}
from
'vue'
import
{
ref
,
onMounted
,
computed
}
from
'vue'
import
{
useRouter
,
useRoute
}
from
'vue-router'
;
import
{
useRouter
,
useRoute
}
from
'vue-router'
;
import
api
from
'@/api/api'
;
import
api
from
'@/api/api'
;
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
// 默认最大年份是5
// 默认最大年份是5
const
maxYears
=
ref
(
5
)
const
maxYears
=
ref
(
5
)
let
restrictedTipRef
=
ref
()
// 获取指定年份的佣金率
// 获取指定年份的佣金率
const
getCommissionRate
=
(
plan
,
year
)
=>
{
const
getCommissionRate
=
(
plan
,
year
)
=>
{
const
rate
=
plan
.
termRateResponseList
.
find
(
item
=>
item
.
issueNumber
===
year
)
const
rate
=
plan
.
termRateResponseList
.
find
(
item
=>
item
.
issueNumber
===
year
)
...
@@ -190,7 +194,37 @@ const fetchRateData = async () => {
...
@@ -190,7 +194,37 @@ const fetchRateData = async () => {
loading
.
value
=
false
loading
.
value
=
false
}
}
}
}
const
queryInfo
=
()
=>
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
})
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
delete
res
.
data
?.
commonResult
;
const
cffp_userInfo
=
{
...
res
.
data
};
// 账号禁用用户
if
(
res
.
data
?.
userIsActive
===
2
)
{
restrictedTipRef
.
value
.
open
();
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
));
return
;
}
if
(
res
.
data
?.
userIsActive
&&
res
.
data
.
userIsActive
!==
2
)
{
restrictedTipRef
.
value
.
close
();
uni
.
removeStorageSync
(
'userIsActive'
);
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
?.
mobile
??
''
);
}
});
};
onShow
(()
=>
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
queryInfo
()
}
})
// 生命周期
// 生命周期
onMounted
(()
=>
{
onMounted
(()
=>
{
userId
.
value
=
uni
.
getStorageSync
(
'cffp_userId'
)
||
''
userId
.
value
=
uni
.
getStorageSync
(
'cffp_userId'
)
||
''
...
...
myPackageA/product-list/product-commission.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTipRef"
/>
<!-- 搜索区域 -->
<!-- 搜索区域 -->
<view
class=
"search-box"
>
<view
class=
"search-box"
>
<input
<input
...
@@ -53,13 +55,15 @@
...
@@ -53,13 +55,15 @@
<
script
setup
>
<
script
setup
>
import
{
ref
,
computed
,
onMounted
}
from
'vue'
import
{
ref
,
computed
,
onMounted
}
from
'vue'
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
;
import
api
from
'@/api/api'
;
import
api
from
'@/api/api'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
// 响应式数据
// 响应式数据
const
searchKeyword
=
ref
(
''
)
const
searchKeyword
=
ref
(
''
)
const
products
=
ref
([])
const
products
=
ref
([])
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
const
tips
=
ref
(
'无默认产品,请输入产品名称进行查询'
)
const
tips
=
ref
(
'无默认产品,请输入产品名称进行查询'
)
let
restrictedTipRef
=
ref
()
// 方法
// 方法
const
handleSearch
=
()
=>
{
const
handleSearch
=
()
=>
{
// 实际项目中可以添加防抖
// 实际项目中可以添加防抖
...
@@ -71,7 +75,32 @@ const goToCommissionDetail = (product) => {
...
@@ -71,7 +75,32 @@ const goToCommissionDetail = (product) => {
})
})
}
}
const
queryInfo
=
()
=>
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
})
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
delete
res
.
data
?.
commonResult
;
const
cffp_userInfo
=
{
...
res
.
data
};
// 账号禁用用户
if
(
res
.
data
?.
userIsActive
===
2
)
{
restrictedTipRef
.
value
.
open
();
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
));
return
;
}
if
(
res
.
data
?.
userIsActive
&&
res
.
data
.
userIsActive
!==
2
)
{
restrictedTipRef
.
value
.
close
();
uni
.
removeStorageSync
(
'userIsActive'
);
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
?.
mobile
??
''
);
}
});
};
// 获取产品数据
// 获取产品数据
const
fetchProducts
=
async
(
type
=
0
)
=>
{
const
fetchProducts
=
async
(
type
=
0
)
=>
{
if
(
!
searchKeyword
.
value
){
if
(
!
searchKeyword
.
value
){
...
@@ -115,7 +144,11 @@ const fetchProducts = async (type=0) => {
...
@@ -115,7 +144,11 @@ const fetchProducts = async (type=0) => {
loading
.
value
=
false
loading
.
value
=
false
}
}
}
}
onShow
(()
=>
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
queryInfo
()
}
})
// 生命周期
// 生命周期
onMounted
(()
=>
{
onMounted
(()
=>
{
})
})
...
...
myPackageA/product-list/product-list.vue
View file @
d7a93dcd
<
template
>
<
template
>
<scroll-view
@
scroll=
"handleScroll"
scroll-y=
"true"
class=
"scroll-Y"
>
<view
class=
""
>
<view
class=
"product-list-page"
>
<!-- 禁用弹窗 -->
<!-- 顶部搜索和筛选 -->
<restrictedTip
ref=
"restrictedTipRef"
/>
<view
class=
"search-bar"
>
<scroll-view
@
scroll=
"handleScroll"
scroll-y=
"true"
class=
"scroll-Y"
>
<view
class=
"search-input"
>
<view
class=
"product-list-page"
>
<uni-icons
type=
"search"
size=
"18"
color=
"#999"
></uni-icons>
<!-- 顶部搜索和筛选 -->
<input
<view
class=
"search-bar"
>
type=
"text"
<view
class=
"search-input"
>
placeholder=
"搜索产品或保险公司"
<uni-icons
type=
"search"
size=
"18"
color=
"#999"
></uni-icons>
v-model=
"searchKeyword"
<input
@
input=
"handleSearch"
type=
"text"
>
placeholder=
"搜索产品或保险公司"
</view>
v-model=
"searchKeyword"
<button
class=
"filter-btn"
@
click=
"openFilter"
>
@
input=
"handleSearch"
<view
class=
"iconfont icon-shaixuan"
></view>
>
</button>
</view>
</view>
<button
class=
"filter-btn"
@
click=
"openFilter"
>
<view
class=
"iconfont icon-shaixuan"
></view>
<!-- 筛选弹窗 -->
</button>
<uni-popup
</view>
type=
"bottom"
ref=
"popup"
<!-- 筛选弹窗 -->
:mask-click=
"false"
<uni-popup
background-color=
"#fff"
type=
"bottom"
class=
"filter-popup"
ref=
"popup"
@
touchmove=
"handlePopupTouchMove"
:mask-click=
"false"
@
open=
"handlePopupOpen"
background-color=
"#fff"
@
close=
"handlePopupClose"
class=
"filter-popup"
>
@
touchmove=
"handlePopupTouchMove"
<view
class=
"filter-title"
>
@
open=
"handlePopupOpen"
<text>
筛选条件
</text>
@
close=
"handlePopupClose"
<button
class=
"close-btn"
@
click=
"closeFilter"
>
<uni-icons
type=
"close"
size=
"18"
></uni-icons>
</button>
</view>
<view
class=
"filter-content"
>
<!-- 保险公司筛选(改为按钮多选) -->
<view
class=
"filter-item"
>
<text
class=
"filter-label"
>
保险公司
</text>
<!-- 按钮组容器,支持横向滚动 -->
<view
class=
"btn-group-container"
>
<button
class=
"filter-btn-item"
:class=
"
{ 'active': isCompanySelected(company.insuranceCompanyBizId) }"
@click="toggleSelection('insurer',company.insuranceCompanyBizId)"
v-for="company in insuranceCompanies"
:key="company.insuranceCompanyBizId"
>
{{
company
.
name
}}
</button>
</view>
</view>
<!-- 产品类型筛选(如需同步改为按钮,可参考上面的逻辑) -->
<view
class=
"filter-item"
>
<text
class=
"filter-label"
>
产品类型
</text>
<view
class=
"btn-group-container"
>
<button
class=
"filter-btn-item"
:class=
"
{ 'active': isProductTypeSelected(item.dropOptionCode) }"
@click="toggleSelection('productType',item.dropOptionCode)"
v-for="item in productTypes"
:key="item.dropOptionCode"
>
>
{{
item
.
dropOptionName
}}
<view
class=
"filter-title"
>
</button>
<text>
筛选条件
</text>
</view>
<button
class=
"close-btn"
@
click=
"closeFilter"
>
</view>
<uni-icons
type=
"close"
size=
"18"
></uni-icons>
</view>
</button>
</view>
<view
class=
"filter-actions"
>
<button
class=
"reset-btn"
@
click=
"resetFilter"
>
重置
</button>
<view
class=
"filter-content"
>
<button
class=
"confirm-btn"
@
click=
"confirmFilter"
>
确认筛选
</button>
<!-- 保险公司筛选(改为按钮多选) -->
</view>
<view
class=
"filter-item"
>
</uni-popup>
<text
class=
"filter-label"
>
保险公司
</text>
<!-- 按钮组容器,支持横向滚动 -->
<!-- 产品列表 -->
<view
class=
"btn-group-container"
>
<button
<view
class=
"product-list"
>
class=
"filter-btn-item"
<view
:class=
"
{ 'active': isCompanySelected(company.insuranceCompanyBizId) }"
class=
"product-item"
@click="toggleSelection('insurer',company.insuranceCompanyBizId)"
v-for=
"product in products"
v-for="company in insuranceCompanies"
:key=
"product.planBizId"
:key="company.insuranceCompanyBizId"
>
>
<view
class=
"product-info"
@
click=
"navigateToDetail(product.planBizId)"
>
{{
company
.
name
}}
<view
class=
"product-details"
>
</button>
<view
class=
"product-name"
>
{{
product
.
planName
}}
</view>
</view>
<view
class=
"product-type"
>
</view>
<text
class=
"type-label"
>
险种:
</text>
<text>
{{
product
.
categoryName
}}
</text>
<!-- 产品类型筛选(如需同步改为按钮,可参考上面的逻辑) -->
</view>
<view
class=
"filter-item"
>
<view
class=
"product-company"
>
<text
class=
"filter-label"
>
产品类型
</text>
<text
class=
"type-label"
>
保险公司:
</text>
<view
class=
"btn-group-container"
>
<text>
{{
product
.
companyName
}}
</text>
<button
</view>
class=
"filter-btn-item"
<view
class=
"product-tag"
>
:class=
"
{ 'active': isProductTypeSelected(item.dropOptionCode) }"
<uni-tag
:text=
"product.isInsured==1 ? '保融产品' : '非保融产品'"
:type=
"product.isInsured==1 ? 'success' : 'info'"
size=
"small"
></uni-tag>
@click="toggleSelection('productType',item.dropOptionCode)"
v-for="item in productTypes"
:key="item.dropOptionCode"
>
{{
item
.
dropOptionName
}}
</button>
</view>
</view>
</view>
<view
class=
"filter-actions"
>
<button
class=
"reset-btn"
@
click=
"resetFilter"
>
重置
</button>
<button
class=
"confirm-btn"
@
click=
"confirmFilter"
>
确认筛选
</button>
</view>
</uni-popup>
<!-- 产品列表 -->
<view
class=
"product-list"
>
<view
class=
"product-item"
v-for=
"product in products"
:key=
"product.planBizId"
>
<view
class=
"product-info"
@
click=
"navigateToDetail(product.planBizId)"
>
<view
class=
"product-details"
>
<view
class=
"product-name"
>
{{
product
.
planName
}}
</view>
<view
class=
"product-type"
>
<text
class=
"type-label"
>
险种:
</text>
<text>
{{
product
.
categoryName
}}
</text>
</view>
<view
class=
"product-company"
>
<text
class=
"type-label"
>
保险公司:
</text>
<text>
{{
product
.
companyName
}}
</text>
</view>
<view
class=
"product-tag"
>
<uni-tag
:text=
"product.isInsured==1 ? '保融产品' : '非保融产品'"
:type=
"product.isInsured==1 ? 'success' : 'info'"
size=
"small"
></uni-tag>
</view>
</view>
</view>
<button
class=
"pk-btn"
@
click
.
stop=
"togglePKSelection(product)"
:disabled=
"!isInPKList(product.planBizId) && pkList.length >= 3"
>
{{
isInPKList
(
product
.
planBizId
)
?
'取消选择'
:
'PK'
}}
</button>
</view>
<!-- 空状态 -->
<view
class=
"empty-state"
v-if=
"products.length === 0"
>
<uni-icons
type=
"empty"
size=
"60"
color=
"#ccc"
></uni-icons>
<text
class=
"empty-text"
>
未找到匹配的产品
</text>
</view>
</view>
<!-- PK选择条(新增已选产品展示和删除功能) -->
<view
class=
"pk-bar"
v-if=
"pkList.length > 0"
>
<view
class=
"pk-selected-list"
>
<view
class=
"selected-product"
v-for=
"(item, index) in pkList"
:key=
"item.planBizId"
>
<text
class=
"product-short-name"
>
{{
getShortName
(
item
.
planName
)
}}
</text>
<button
class=
"delete-btn"
@
click
.
stop=
"removeFromPK(index)"
>
<uni-icons
type=
"close"
size=
"16"
color=
"#fff"
></uni-icons>
</button>
</view>
</view>
</view>
</view>
<button
class=
"compare-btn"
@
click=
"navigateToPKPage"
:disabled=
"pkList.length
<
1
"
>
去对比
</button>
</view>
</view>
<button
class=
"pk-btn"
@
click
.
stop=
"togglePKSelection(product)"
:disabled=
"!isInPKList(product.planBizId) && pkList.length >= 3"
>
{{
isInPKList
(
product
.
planBizId
)
?
'取消选择'
:
'PK'
}}
</button>
</view>
</view>
</scroll-view>
<!-- 空状态 -->
</view>
<view
class=
"empty-state"
v-if=
"products.length === 0"
>
<uni-icons
type=
"empty"
size=
"60"
color=
"#ccc"
></uni-icons>
<text
class=
"empty-text"
>
未找到匹配的产品
</text>
</view>
</view>
<!-- PK选择条(新增已选产品展示和删除功能) -->
<view
class=
"pk-bar"
v-if=
"pkList.length > 0"
>
<view
class=
"pk-selected-list"
>
<view
class=
"selected-product"
v-for=
"(item, index) in pkList"
:key=
"item.planBizId"
>
<text
class=
"product-short-name"
>
{{
getShortName
(
item
.
planName
)
}}
</text>
<button
class=
"delete-btn"
@
click
.
stop=
"removeFromPK(index)"
>
<uni-icons
type=
"close"
size=
"16"
color=
"#fff"
></uni-icons>
</button>
</view>
</view>
<button
class=
"compare-btn"
@
click=
"navigateToPKPage"
:disabled=
"pkList.length
<
1
"
>
去对比
</button>
</view>
</view>
</scroll-view>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
ref
,
computed
,
onMounted
,
onUnmounted
}
from
'vue'
;
import
{
ref
,
computed
,
onMounted
,
onUnmounted
}
from
'vue'
;
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
import
api
from
'@/api/api'
;
import
api
from
'@/api/api'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
// 路由实例
// 路由实例
const
router
=
useRouter
();
const
router
=
useRouter
();
let
restrictedTipRef
=
ref
()
// 搜索和筛选相关
// 搜索和筛选相关
const
searchKeyword
=
ref
(
''
);
const
searchKeyword
=
ref
(
''
);
const
selectedTypes
=
ref
([]);
const
selectedTypes
=
ref
([]);
...
@@ -302,7 +308,38 @@ const productTypes = ref([]);
...
@@ -302,7 +308,38 @@ const productTypes = ref([]);
// 产品列表
// 产品列表
const
products
=
ref
([]);
const
products
=
ref
([]);
const
queryInfo
=
()
=>
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
})
.
then
((
res
)
=>
{
if
(
res
.
success
)
{
delete
res
.
data
?.
commonResult
;
const
cffp_userInfo
=
{
...
res
.
data
};
// 账号禁用用户
if
(
res
.
data
?.
userIsActive
===
2
)
{
restrictedTipRef
.
value
.
open
();
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
));
return
;
}
if
(
res
.
data
?.
userIsActive
&&
res
.
data
.
userIsActive
!==
2
)
{
restrictedTipRef
.
value
.
close
();
uni
.
removeStorageSync
(
'userIsActive'
);
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
?.
mobile
??
''
);
}
});
};
onShow
(()
=>
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
queryInfo
()
}
})
// 检查产品是否已在PK列表中
// 检查产品是否已在PK列表中
const
isInPKList
=
(
productId
)
=>
{
const
isInPKList
=
(
productId
)
=>
{
return
pkList
.
value
.
some
(
item
=>
item
.
planBizId
===
productId
);
return
pkList
.
value
.
some
(
item
=>
item
.
planBizId
===
productId
);
...
...
myPackageA/ruleAndContract/cancelProtocol.vue
View file @
d7a93dcd
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"header"
>
<view
class=
"header"
>
<text
class=
"title"
>
合伙人解约协议
</text>
<text
class=
"title"
>
合伙人解约协议
</text>
</view>
</view>
...
@@ -107,14 +109,51 @@
...
@@ -107,14 +109,51 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
}
}
},
},
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
},
onShow
(){
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
myPackageA/ruleAndContract/clause.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
v-if=
"isBack !=1"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
v-if=
"isBack !=1"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -288,6 +290,8 @@
...
@@ -288,6 +290,8 @@
<
script
>
<
script
>
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
@@ -296,12 +300,15 @@
...
@@ -296,12 +300,15 @@
isBack
:
null
isBack
:
null
}
}
},
},
components
:{},
components
:{
restrictedTip
,
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
type
=
options
.
type
;
this
.
type
=
options
.
type
;
this
.
isBack
=
options
.
isBack
this
.
isBack
=
options
.
isBack
},
},
onShow
(){
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -310,6 +317,33 @@
...
@@ -310,6 +317,33 @@
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
callCustomerService
()
{
callCustomerService
()
{
const
phoneNumber
=
'400-921-9290'
;
const
phoneNumber
=
'400-921-9290'
;
...
...
myPackageA/ruleAndContract/taxRules.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
""
>
<view
class=
""
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"content_wrapper"
>
<view
class=
"content_wrapper"
>
<h4
style=
"font-size: 28rpx;"
>
劳务报酬税缴纳规则
</h4>
<h4
style=
"font-size: 28rpx;"
>
劳务报酬税缴纳规则
</h4>
<view
class=
"content"
>
<view
class=
"content"
>
...
@@ -57,6 +59,8 @@
...
@@ -57,6 +59,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
export
default
{
data
(){
data
(){
...
@@ -64,8 +68,11 @@
...
@@ -64,8 +68,11 @@
}
}
},
},
components
:{},
components
:{
restrictedTip
,
},
onShow
(){
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -73,7 +80,33 @@
...
@@ -73,7 +80,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
}
}
}
}
</
script
>
</
script
>
...
...
myPackageA/setting/logOff.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"wapper"
>
<view
class=
"wapper"
>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
...
@@ -78,8 +80,9 @@
...
@@ -78,8 +80,9 @@
import
eSignature
from
'@/components/eSignature/eSignature.vue'
;
import
eSignature
from
'@/components/eSignature/eSignature.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
eSignature
,
everyJoinPopup
},
components
:{
eSignature
,
everyJoinPopup
,
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
mobile
:
''
,
mobile
:
''
,
...
@@ -100,6 +103,9 @@
...
@@ -100,6 +103,9 @@
},
},
onShow
(){
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
let
dataForm
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
let
dataForm
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
mobile
=
dataForm
.
mobile
this
.
mobile
=
dataForm
.
mobile
this
.
lockScroll
()
this
.
lockScroll
()
...
@@ -123,6 +129,33 @@
...
@@ -123,6 +129,33 @@
uni
.
hideToast
();
uni
.
hideToast
();
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
// 处理签名验证错误
// 处理签名验证错误
handleValidationError
(
error
)
{
handleValidationError
(
error
)
{
this
.
signatureError
=
error
;
this
.
signatureError
=
error
;
...
...
pages/afterSaleDetail/afterSaleDetail.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"top"
>
<view
class=
"top"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
...
@@ -79,8 +81,9 @@
...
@@ -79,8 +81,9 @@
import
api
from
"@/api/api"
;
import
api
from
"@/api/api"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
courseItem
},
components
:{
courseItem
,
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
...
@@ -97,6 +100,33 @@
...
@@ -97,6 +100,33 @@
};
};
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
(){
goBack
(){
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
@@ -149,6 +179,9 @@
...
@@ -149,6 +179,9 @@
this
.
userAfterSalesDtl
()
this
.
userAfterSalesDtl
()
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
pages/afterSales/afterSales.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"top"
>
<view
class=
"top"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
...
@@ -27,9 +29,11 @@
...
@@ -27,9 +29,11 @@
import
api
from
"@/api/api"
;
import
api
from
"@/api/api"
;
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
components
:{
courseItem
courseItem
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -39,6 +43,33 @@
...
@@ -39,6 +43,33 @@
};
};
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
(){
goBack
(){
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
@@ -73,6 +104,9 @@
...
@@ -73,6 +104,9 @@
this
.
userAfterSales
()
this
.
userAfterSales
()
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
pages/applyDropClass/applyDropClass.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
style=
"flex: 1;"
>
<view
style=
"flex: 1;"
>
<view
class=
"classInfo"
style=
"padding-top:80rpx"
>
<view
class=
"classInfo"
style=
"padding-top:80rpx"
>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
...
@@ -87,10 +89,12 @@
...
@@ -87,10 +89,12 @@
import
commonSelect
from
'@/components/commonSelect/commonSelect.vue'
;
import
commonSelect
from
'@/components/commonSelect/commonSelect.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
components
:{
courseItem
,
courseItem
,
commonSelect
,
commonSelect
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -108,6 +112,33 @@
...
@@ -108,6 +112,33 @@
};
};
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
()
{
goBack
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
@@ -226,6 +257,9 @@
...
@@ -226,6 +257,9 @@
this
.
dropOptionsQuery
()
this
.
dropOptionsQuery
()
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
this
.
userRefundCourseDtl
();
this
.
userRefundCourseDtl
();
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
...
...
pages/commonDetail/commonDetail.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view>
<view>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"top: 20rpx;"
@
click=
"goBack()"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"top: 20rpx;"
@
click=
"goBack()"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -15,10 +17,11 @@
...
@@ -15,10 +17,11 @@
// import myListItem from "@/components/my-list-item/my-list-item.vue";
// import myListItem from "@/components/my-list-item/my-list-item.vue";
import
api
from
"@/api/api"
;
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
//
components:{
components
:{
// myListItem
restrictedTip
,
//
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -34,6 +37,39 @@
...
@@ -34,6 +37,39 @@
}
}
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$nextTick
(()
=>
{
this
.
$refs
.
restrictedTip
.
open
()
})
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$nextTick
(()
=>
{
this
.
$refs
.
restrictedTip
.
close
()
})
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
()
{
goBack
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
@@ -78,6 +114,9 @@
...
@@ -78,6 +114,9 @@
this
.
queryDate
=
option
.
queryDate
;
this
.
queryDate
=
option
.
queryDate
;
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
pages/courseDetail/courseDetail.vue
View file @
d7a93dcd
...
@@ -1169,9 +1169,19 @@
...
@@ -1169,9 +1169,19 @@
const
cffp_userInfo
=
{
const
cffp_userInfo
=
{
...
res
.
data
...
res
.
data
}
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
res
.
data
.
userIsActive
)
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
))
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
))
this
.
realName
=
res
.
data
.
realName
;
//
this.realName = res.data.realName;
}
}
})
})
},
},
...
@@ -1353,35 +1363,6 @@
...
@@ -1353,35 +1363,6 @@
// fileFirstImage:''
// fileFirstImage:''
// }
// }
},
},
startPolling
()
{
// 先清除可能存在的旧定时器
if
(
this
.
pollingTimer
)
{
clearInterval
(
this
.
pollingTimer
)
this
.
pollingTimer
=
null
}
// 每3秒轮询一次,最多轮询100次(5分钟)
let
count
=
0
const
maxCount
=
100
this
.
pollingTimer
=
setInterval
(()
=>
{
count
++
uni
.
showModal
({
content
:
count
})
},
1000
)
// 3秒轮询一次
},
// 新增:停止轮询
stopPolling
()
{
if
(
this
.
pollingTimer
)
{
clearInterval
(
this
.
pollingTimer
)
this
.
pollingTimer
=
null
}
},
// 跳转到小程序登录
// 跳转到小程序登录
jumpMplogin
()
{
jumpMplogin
()
{
let
currentUrl
=
``
;
let
currentUrl
=
``
;
...
@@ -1458,10 +1439,10 @@
...
@@ -1458,10 +1439,10 @@
this
.
getshareData
()
this
.
getshareData
()
}
}
let
dataForm
=
JSON
.
parse
(
JSON
.
stringify
(
uni
.
getStorageSync
(
'cffp_userInfo'
)))
let
dataForm
=
JSON
.
parse
(
JSON
.
stringify
(
uni
.
getStorageSync
(
'cffp_userInfo'
)))
this
.
realName
=
dataForm
.
realName
;
//
this.realName = dataForm.realName;
if
(
!
this
.
realName
)
{
//
if (!this.realName) {
this
.
queryInfo
();
//
this.queryInfo();
}
//
}
// this.switchTab(1);
// this.switchTab(1);
},
},
...
@@ -1484,7 +1465,9 @@
...
@@ -1484,7 +1465,9 @@
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
}
}
this
.
userId
=
uni
.
getStorageSync
(
'cffp_userId'
)
this
.
userId
=
uni
.
getStorageSync
(
'cffp_userId'
)
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
pages/courselist/courselist.vue
View file @
d7a93dcd
...
@@ -243,6 +243,9 @@
...
@@ -243,6 +243,9 @@
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
}
}
this
.
userId
=
uni
.
getStorageSync
(
'cffp_userId'
)
this
.
userId
=
uni
.
getStorageSync
(
'cffp_userId'
)
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -741,7 +744,34 @@
...
@@ -741,7 +744,34 @@
wx
.
miniProgram
.
navigateBack
({
wx
.
miniProgram
.
navigateBack
({
delta
:
1
delta
:
1
})
})
}
},
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
},
},
mounted
()
{
mounted
()
{
...
...
pages/index/index.vue
View file @
d7a93dcd
...
@@ -375,9 +375,20 @@
...
@@ -375,9 +375,20 @@
// 保存用户得个人信息
// 保存用户得个人信息
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
const
cffp_userInfo
=
{
...
res
.
data
...
res
.
data
}
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
this
.
userInfo
=
cffp_userInfo
this
.
userInfo
=
cffp_userInfo
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
...
@@ -786,6 +797,16 @@
...
@@ -786,6 +797,16 @@
}
}
api
.
loginVerification
(
params
).
then
((
res
)
=>
{
api
.
loginVerification
(
params
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
res
.
data
.
userIsActive
)
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'loginType'
,
'codelogin'
);
uni
.
setStorageSync
(
'loginType'
,
'codelogin'
);
uni
.
setStorageSync
(
'cffp_userId'
,
JSON
.
stringify
(
res
.
data
.
userId
));
uni
.
setStorageSync
(
'cffp_userId'
,
JSON
.
stringify
(
res
.
data
.
userId
));
...
...
pages/inviteJoin/inviteJoin.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"padding-top container"
>
<view
class=
"padding-top container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -123,11 +125,13 @@
...
@@ -123,11 +125,13 @@
import
loadingIcon
from
'@/components/loading/loading.vue'
;
import
loadingIcon
from
'@/components/loading/loading.vue'
;
import
ShareGuide
from
'@/components/ShareGuide/ShareGuide.vue'
;
import
ShareGuide
from
'@/components/ShareGuide/ShareGuide.vue'
;
import
wx
from
'weixin-js-sdk'
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:
{
components
:
{
sharePosterPop
,
sharePosterPop
,
loadingIcon
,
loadingIcon
,
ShareGuide
ShareGuide
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -195,6 +199,9 @@
...
@@ -195,6 +199,9 @@
this
.
isLoading
=
false
this
.
isLoading
=
false
this
.
posterImg
=
''
this
.
posterImg
=
''
this
.
generatedImage
=
''
this
.
generatedImage
=
''
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -616,7 +623,34 @@
...
@@ -616,7 +623,34 @@
closePoster
()
{
closePoster
()
{
this
.
posterImg
=
''
this
.
posterImg
=
''
this
.
generatedImage
=
''
this
.
generatedImage
=
''
}
},
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
}
}
}
}
</
script
>
</
script
>
...
...
pages/lanch/index.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"loadTxt"
>
Loading...
</view>
<view
class=
""
>
<view
class=
"loadTxt"
>
Loading...
</view>
<restrictedTip
ref=
"restrictedTipRef"
/>
</view>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
...
@@ -9,8 +14,10 @@
...
@@ -9,8 +14,10 @@
import
*
as
environment
from
'@/environments/environment'
import
*
as
environment
from
'@/environments/environment'
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
wx
from
'weixin-js-sdk'
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
let
jumpInfo
=
ref
({})
let
jumpInfo
=
ref
({})
let
dataToken
=
ref
()
let
dataToken
=
ref
()
let
restrictedTipRef
=
ref
()
onLoad
((
options
)
=>
{
onLoad
((
options
)
=>
{
jumpInfo
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
options
))
jumpInfo
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
options
))
...
@@ -83,6 +90,16 @@
...
@@ -83,6 +90,16 @@
}
}
api
.
loginVerification
(
params
).
then
((
res
)
=>
{
api
.
loginVerification
(
params
).
then
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
restrictedTipRef
.
value
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
res
.
data
.
userIsActive
)
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
restrictedTipRef
.
value
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'loginType'
,
'codelogin'
);
uni
.
setStorageSync
(
'loginType'
,
'codelogin'
);
uni
.
setStorageSync
(
'cffp_userId'
,
res
.
data
.
userId
);
uni
.
setStorageSync
(
'cffp_userId'
,
res
.
data
.
userId
);
...
...
pages/myShare/myShare.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
""
>
<view
class=
""
>
<!-- 时间选择 -->
<!-- 时间选择 -->
<view
class=
"timeSelectContent"
>
<view
class=
"timeSelectContent"
>
...
@@ -96,6 +98,7 @@
...
@@ -96,6 +98,7 @@
import
CommonTimePicker
from
'@/components/commonTimePicker/commonTimePicker.vue'
;
import
CommonTimePicker
from
'@/components/commonTimePicker/commonTimePicker.vue'
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
{
import
{
fmdata
fmdata
}
from
'@/util/currentDate.js'
}
from
'@/util/currentDate.js'
...
@@ -103,7 +106,8 @@
...
@@ -103,7 +106,8 @@
components
:
{
components
:
{
courseItem
,
courseItem
,
CommonTimePicker
,
CommonTimePicker
,
JoinPopup
JoinPopup
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -125,6 +129,33 @@
...
@@ -125,6 +129,33 @@
}
}
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
// 去加盟
// 去加盟
gotoApply
(){
gotoApply
(){
dataHandling
.
pocessTracking
(
dataHandling
.
pocessTracking
(
...
@@ -234,6 +265,9 @@
...
@@ -234,6 +265,9 @@
this
.
userShareQuery
();
this
.
userShareQuery
();
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
pages/orderConfirm/orderConfirm.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
style=
"flex: 1;"
>
<view
style=
"flex: 1;"
>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
...
@@ -184,9 +186,11 @@
...
@@ -184,9 +186,11 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
wx
from
'weixin-js-sdk'
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:
{
components
:
{
courseItem
courseItem
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -237,7 +241,33 @@
...
@@ -237,7 +241,33 @@
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
()
{
goBack
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
@@ -628,6 +658,9 @@
...
@@ -628,6 +658,9 @@
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
pages/orderDetail/orderDetail.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
...
@@ -43,7 +45,11 @@
...
@@ -43,7 +45,11 @@
import
common
from
"@/common/common"
;
import
common
from
"@/common/common"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
...
@@ -163,6 +169,33 @@
...
@@ -163,6 +169,33 @@
};
};
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
()
{
goBack
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
@@ -234,6 +267,9 @@
...
@@ -234,6 +267,9 @@
this
.
commissionType
=
option
.
commissionType
;
this
.
commissionType
=
option
.
commissionType
;
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
pages/orderStatus/orderStatus.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"statusBox"
>
<view
class=
"statusBox"
>
<view
class=
"successBox"
v-if=
"orderStatus=='2'"
>
<view
class=
"successBox"
v-if=
"orderStatus=='2'"
>
<i
class=
"iconfont icon-dengdai"
></i>
<i
class=
"iconfont icon-dengdai"
></i>
...
@@ -59,8 +61,9 @@
...
@@ -59,8 +61,9 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
wx
from
'weixin-js-sdk'
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
tabBar
,
courseItem
},
components
:{
tabBar
,
courseItem
,
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
cffpCourseInfos
:[],
cffpCourseInfos
:[],
...
@@ -75,6 +78,9 @@
...
@@ -75,6 +78,9 @@
};
};
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -98,6 +104,33 @@
...
@@ -98,6 +104,33 @@
}
}
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
querySystemMessage
()
{
querySystemMessage
()
{
api
.
querySystemMessage
({
systemType
:
1
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
api
.
querySystemMessage
({
systemType
:
1
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
if
(
res
[
'success'
]
&&
res
[
'data'
][
'dataList'
].
length
>
0
)
{
if
(
res
[
'success'
]
&&
res
[
'data'
][
'dataList'
].
length
>
0
)
{
...
...
pages/personalCenter/accountoperation/aboutcffp.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"content"
>
<view
class=
"content"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -36,9 +38,14 @@
...
@@ -36,9 +38,14 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
api
from
"@/api/api"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
companyType
:
companyInfo
.
companyType
,
companyType
:
companyInfo
.
companyType
,
...
@@ -61,6 +68,9 @@
...
@@ -61,6 +68,9 @@
}
}
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
if
(
this
.
companyType
==
'1'
){
if
(
this
.
companyType
==
'1'
){
this
.
companyLogo
=
'../../../static/myteam/Group1633.png'
;
this
.
companyLogo
=
'../../../static/myteam/Group1633.png'
;
}
else
if
(
this
.
companyType
==
'2'
){
}
else
if
(
this
.
companyType
==
'2'
){
...
@@ -73,6 +83,33 @@
...
@@ -73,6 +83,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
()
{
goBack
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
...
pages/personalCenter/detail.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"module-container"
>
<view
class=
"module-container"
>
<!-- 内容区域 -->
<!-- 禁用弹窗 -->
<view
class=
"content"
>
<restrictedTip
ref=
"restrictedTipRef"
/>
<!-- 加载状态 -->
<!-- 内容区域 -->
<view
v-if=
"loading"
class=
"loading"
>
<view
class=
"content"
>
<view
class=
"spinner"
></view>
<!-- 加载状态 -->
<text>
加载中...
</text>
<view
v-if=
"loading"
class=
"loading"
>
</view>
<view
class=
"spinner"
></view>
<!-- 1. 公司介绍(直接显示单个PDF) -->
<text>
加载中...
</text>
<view
v-if=
"!loading && currentType === 1 && companyPdf.urls"
class=
"pdf-single"
>
</view>
<!-- 当前Tab的PDF列表 -->
<!-- 1. 公司介绍(直接显示单个PDF) -->
<view
<view
v-if=
"!loading && currentType === 1 && companyPdf.urls"
class=
"pdf-single"
>
v-for=
"(url, index) in currentPdf.urls"
<!-- 当前Tab的PDF列表 -->
:key=
"index"
<view
v-for=
"(url, index) in currentPdf.urls"
:key=
"index"
class=
"pdf-item-container"
>
class=
"pdf-item-container"
<PdfViewer
:pdfInfo=
"
{
>
<PdfViewer
:pdfInfo=
"
{
title: null,
title: null,
url: url
url: url
}"
}" :autoLoad="index === 0" :lazyLoad="true" :maxRetryCount="2" @loadComplete="handlePdfLoadComplete"
:autoLoad="index === 0"
@loadError="handlePdfLoadError" @pageChange="handlePageChange" />
:lazyLoad="true"
</view>
:maxRetryCount="2"
</view>
@loadComplete="handlePdfLoadComplete"
@loadError="handlePdfLoadError"
<!-- 2-4. 带Tab的模块 -->
@pageChange="handlePageChange"
<view
v-if=
"!loading && currentType >= 2 && currentType
<
=
4
"
>
/>
<!-- Tab切换栏 -->
</view>
<view
class=
"tab-bar"
>
</view>
<view
v-for=
"(tab, index) in filteredCurrentTabs"
:key=
"tab.id"
class=
"tab-item"
:class=
"
{ active: activeTab === index }" @click="switchTab(index)">
<!-- 2-4. 带Tab的模块 -->
<text
class=
"tab-text"
>
{{
tab
.
title
}}
</text>
<view
v-if=
"!loading && currentType >= 2 && currentType
<
=
4
"
>
<view
class=
"tab-indicator"
v-if=
"activeTab === index"
></view>
<!-- Tab切换栏 -->
</view>
<view
class=
"tab-bar"
>
</view>
<view
v-for=
"(tab, index) in filteredCurrentTabs"
<!-- Tab对应的PDF内容 -->
:key=
"tab.id"
<view
class=
"pdf-tab-content"
v-if=
"currentPdf.type === 'showURL'"
>
class=
"tab-item"
<template
v-if=
"filteredCurrentTabs.length > 0 && currentPdf.urls"
>
:class=
"
{ active: activeTab === index }"
<!-- 当前Tab的PDF列表 -->
@click="switchTab(index)"
<view
v-for=
"(url, index) in currentPdf.urls"
:key=
"index"
class=
"pdf-item-container"
>
>
<PdfViewer
:pdfInfo=
"
{
<text
class=
"tab-text"
>
{{
tab
.
title
}}
</text>
<view
class=
"tab-indicator"
v-if=
"activeTab === index"
></view>
</view>
</view>
<!-- Tab对应的PDF内容 -->
<view
class=
"pdf-tab-content"
v-if=
"currentPdf.type === 'showURL'"
>
<template
v-if=
"filteredCurrentTabs.length > 0 && currentPdf.urls"
>
<!-- 当前Tab的PDF列表 -->
<view
v-for=
"(url, index) in currentPdf.urls"
:key=
"index"
class=
"pdf-item-container"
>
<PdfViewer
:pdfInfo=
"
{
title: null,
title: null,
url: url,
url: url,
landscapeFlag:currentPdf.landscapeFlag
landscapeFlag:currentPdf.landscapeFlag
}"
}" :autoLoad="index === 0" :lazyLoad="true" :maxRetryCount="2" @loadComplete="handlePdfLoadComplete"
:autoLoad="index === 0"
@loadError="handlePdfLoadError" @pageChange="handlePageChange" />
:lazyLoad="true"
</view>
:maxRetryCount="2"
</
template
>
@loadComplete="handlePdfLoadComplete"
<
template
v-else
>
@loadError="handlePdfLoadError"
<view
class=
"pdf-empty"
>
暂无访问权限
</view>
@pageChange="handlePageChange"
</
template
>
/>
</view>
</view>
</
template
>
<!-- 显示产品搜索组件 -->
<
template
v-else
>
<view
class=
"pdf-tab-content"
v-if=
"currentPdf.type === 'showPage'"
>
<view
class=
"pdf-empty"
>
暂无访问权限
</view>
<productListVue
/>
</
template
>
</view>
</view>
</view>
<!-- 显示产品搜索组件 -->
<!-- 错误状态 -->
<view
class=
"pdf-tab-content"
v-if=
"currentPdf.type === 'showPage'"
>
<view
v-if=
"!loading && (currentType < 1 || currentType > 4)"
class=
"error"
>
<productListVue/>
<text>
无效的模块类型
</text>
</view>
</view>
</view>
</view>
</view>
<!-- 错误状态 -->
<view
v-if=
"!loading && (currentType < 1 || currentType > 4)"
class=
"error"
>
<text>
无效的模块类型
</text>
</view>
</view>
</view>
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
,
computed
,
watch
}
from
'vue'
;
import
{
ref
,
computed
,
watch
}
from
'vue'
;
import
{
onLoad
}
from
'@dcloudio/uni-app'
;
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
;
import
api
from
"@/api/api"
;
import
api
from
"@/api/api"
;
import
productListVue
from
'@/myPackageA/product-list/product-list.vue'
;
import
productListVue
from
'@/myPackageA/product-list/product-list.vue'
;
// 导入PDF查看器组件
// 导入PDF查看器组件
import
PdfViewer
from
'@/components/pdf-viewer/pdf-viewer.vue'
;
import
PdfViewer
from
'@/components/pdf-viewer/pdf-viewer.vue'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
// ========================== 类型定义 ==========================
// ========================== 类型定义 ==========================
interface
PdfItem
{
interface
PdfItem
{
id
:
string
;
id
:
string
;
title
:
string
;
title
:
string
;
urls
:
string
[];
urls
:
string
[];
type
:
string
;
type
:
string
;
landscapeFlag
?:
boolean
;
landscapeFlag
?:
boolean
;
}
}
interface
PermissionRight
{
interface
PermissionRight
{
key
:
string
;
key
:
string
;
}
}
interface
PermissionItem
{
interface
PermissionItem
{
key
:
string
;
key
:
string
;
rights
:
PermissionRight
[];
rights
:
PermissionRight
[];
}
}
// 定义 API 返回的基础结构
// ========================== 响应式数据 ==========================
interface
QueryInfoResponse
{
const
OSS_BASE_URL
=
'https://csf-doc-center.oss-cn-shanghai-finance-1-pub.aliyuncs.com'
;
success
:
boolean
;
const
currentType
=
ref
<
number
>
(
1
);
data
?:
{
const
loading
=
ref
(
true
);
commonResult
?:
any
;
// 你主动 delete 的字段
const
activeTab
=
ref
(
0
);
userIsActive
?:
1
|
2
;
// 1=正常,2=禁用
const
currentPdf
=
ref
<
PdfItem
>
({
id
:
''
,
title
:
''
,
urls
:
[],
type
:
''
,
landscapeFlag
:
false
});
mobile
?:
string
;
const
permissionList
=
ref
<
PermissionItem
[]
>
([]);
[
key
:
string
]:
any
;
// 其他用户信息字段
};
// 公司介绍PDF
}
const
companyPdf
=
ref
<
PdfItem
>
({
id
:
'company'
,
// ========================== 响应式数据 ==========================
title
:
'公司介绍'
,
const
OSS_BASE_URL
=
'https://csf-doc-center.oss-cn-shanghai-finance-1-pub.aliyuncs.com'
;
// urls: Array.from({ length: 21 }, (_, i) =>
const
currentType
=
ref
<
number
>
(
1
);
// `${OSS_BASE_URL}/public/company-intro_part${i + 1}.pdf`
const
loading
=
ref
(
true
);
// ),
const
activeTab
=
ref
(
0
);
// urls: [`${OSS_BASE_URL}/public/company-intro.pdf`],
const
currentPdf
=
ref
<
PdfItem
>
({
id
:
''
,
title
:
''
,
urls
:
[],
type
:
''
,
landscapeFlag
:
false
});
urls
:
[
`
${
OSS_BASE_URL
}
/wslucky/product/2025/06/24/31c164ac-565c-4990-a584-b5d4935840d0.pdf`
],
const
permissionList
=
ref
<
PermissionItem
[]
>
([]);
type
:
'showURL'
let
restrictedTipRef
=
ref
()
});
// 公司介绍PDF
const
companyPdf
=
ref
<
PdfItem
>
({
// 其他配置保持不变...
id
:
'company'
,
const
rawTabConfig
=
ref
<
Record
<
number
,
PdfItem
[]
>>
({
title
:
'公司介绍'
,
2
:
[
// urls: Array.from({ length: 21 }, (_, i) =>
{
// `${OSS_BASE_URL}/public/company-intro_part${i + 1}.pdf`
id
:
'case1'
,
// ),
title
:
'规划案例'
,
// urls: [`${OSS_BASE_URL}/public/company-intro.pdf`],
urls
:
[
urls
:
[
`
${
OSS_BASE_URL
}
/wslucky/product/2025/06/24/31c164ac-565c-4990-a584-b5d4935840d0.pdf`
],
`
${
OSS_BASE_URL
}
/cases/planning.pdf`
,
type
:
'showURL'
],
});
type
:
'showURL'
,
},
// 其他配置保持不变...
{
const
rawTabConfig
=
ref
<
Record
<
number
,
PdfItem
[]
>>
({
id
:
'case2'
,
2
:
[
title
:
'团财案例'
,
{
urls
:
[
id
:
'case1'
,
`
${
OSS_BASE_URL
}
/cases/CorporateServiceDeliveryCase-GroupandPropertyInsurance.pdf`
title
:
'规划案例'
,
],
urls
:
[
type
:
'showURL'
,
`
${
OSS_BASE_URL
}
/cases/planning.pdf`
,
}
],
],
type
:
'showURL'
,
3
:
[
},
{
{
id
:
'product2'
,
id
:
'case2'
,
title
:
'港险分析'
,
title
:
'团财案例'
,
urls
:
[
urls
:
[
`
${
OSS_BASE_URL
}
/products/hk-analysis-20260115.pdf`
,
`
${
OSS_BASE_URL
}
/cases/CorporateServiceDeliveryCase-GroupandPropertyInsurance.pdf`
],
],
type
:
'showURL'
,
type
:
'showURL'
,
landscapeFlag
:
true
}
},
],
{
3
:
[
id
:
'product1'
,
{
title
:
'港险明细'
,
id
:
'product2'
,
urls
:
[
title
:
'港险分析'
,
`
${
OSS_BASE_URL
}
/products/hk-detail-20260115.pdf`
,
urls
:
[
],
`
${
OSS_BASE_URL
}
/products/hk-analysis-20260115.pdf`
,
type
:
'showURL'
,
],
landscapeFlag
:
true
type
:
'showURL'
,
},
landscapeFlag
:
true
{
},
id
:
'product3'
,
{
title
:
'产品对比'
,
id
:
'product1'
,
urls
:
[],
title
:
'港险明细'
,
type
:
'showPage'
urls
:
[
},
`
${
OSS_BASE_URL
}
/products/hk-detail-20260115.pdf`
,
],
],
4
:
[
type
:
'showURL'
,
{
landscapeFlag
:
true
id
:
'policy1'
,
},
title
:
'个险政策'
,
{
urls
:
[
id
:
'product3'
,
`
${
OSS_BASE_URL
}
/policies/individual-policy.pdf`
title
:
'产品对比'
,
],
urls
:
[],
type
:
'showURL'
type
:
'showPage'
},
},
{
],
id
:
'policy2'
,
4
:
[
title
:
'家办政策'
,
{
urls
:
[
id
:
'policy1'
,
`
${
OSS_BASE_URL
}
/policies/group-policy.pdf`
,
title
:
'个险政策'
,
],
urls
:
[
type
:
'showURL'
`
${
OSS_BASE_URL
}
/policies/individual-policy.pdf`
},
],
{
type
:
'showURL'
id
:
'policy3'
,
},
title
:
'介绍费政策'
,
{
urls
:
[
id
:
'policy2'
,
`
${
OSS_BASE_URL
}
/policies/commission-policy.pdf`
title
:
'家办政策'
,
],
urls
:
[
type
:
'showURL'
`
${
OSS_BASE_URL
}
/policies/group-policy.pdf`
,
}
],
]
type
:
'showURL'
});
},
{
const
typeToPermissionKey
=
ref
<
Record
<
number
,
string
>>
({
id
:
'policy3'
,
2
:
'cases'
,
title
:
'介绍费政策'
,
3
:
'products'
,
urls
:
[
4
:
'policies'
`
${
OSS_BASE_URL
}
/policies/commission-policy.pdf`
});
],
type
:
'showURL'
// ========================== 事件处理 ==========================
}
const
handlePdfLoadComplete
=
(
url
:
string
,
pageCount
:
number
)
=>
{
]
console
.
log
(
`PDF加载完成:
${
url
}
, 共
${
pageCount
}
页`
);
});
};
const
typeToPermissionKey
=
ref
<
Record
<
number
,
string
>>
({
const
handlePdfLoadError
=
(
url
:
string
,
error
:
Error
)
=>
{
2
:
'cases'
,
console
.
error
(
`PDF加载失败:
${
url
}
`
,
error
);
3
:
'products'
,
uni
.
showToast
({
4
:
'policies'
title
:
'PDF加载失败'
,
});
icon
:
'none'
,
duration
:
2000
// ========================== 事件处理 ==========================
});
const
handlePdfLoadComplete
=
(
url
:
string
,
pageCount
:
number
)
=>
{
};
console
.
log
(
`PDF加载完成:
${
url
}
, 共
${
pageCount
}
页`
);
};
const
handlePageChange
=
(
currentPage
:
number
,
totalPages
:
number
)
=>
{
console
.
log
(
`页面变化:
${
currentPage
}
/
${
totalPages
}
`
);
const
handlePdfLoadError
=
(
url
:
string
,
error
:
Error
)
=>
{
};
console
.
error
(
`PDF加载失败:
${
url
}
`
,
error
);
uni
.
showToast
({
// ========================== 辅助方法 ==========================
title
:
'PDF加载失败'
,
const
getPdfTitle
=
(
url
:
string
):
string
=>
{
icon
:
'none'
,
if
(
!
url
)
return
'未命名文件'
;
duration
:
2000
const
fileName
=
url
.
split
(
'/'
).
pop
()
||
''
;
});
const
title
=
fileName
};
.
replace
(
/
\.
pdf$/i
,
''
)
.
replace
(
/
[
-_
]
/g
,
' '
)
const
handlePageChange
=
(
currentPage
:
number
,
totalPages
:
number
)
=>
{
.
replace
(
/
([
A-Z
])
/g
,
' $1'
)
console
.
log
(
`页面变化:
${
currentPage
}
/
${
totalPages
}
`
);
.
trim
();
};
return
title
||
'PDF文档'
;
};
// ========================== 辅助方法 ==========================
const
getPdfTitle
=
(
url
:
string
)
:
string
=>
{
// ========================== 核心方法(简化版) ==========================
if
(
!
url
)
return
'未命名文件'
;
const
queryUserInfoAndPermission
=
()
=>
{
const
fileName
=
url
.
split
(
'/'
).
pop
()
||
''
;
const
userId
=
uni
.
getStorageSync
(
'cffp_userId'
);
const
title
=
fileName
if
(
!
userId
)
{
.
replace
(
/
\.
pdf$/i
,
''
)
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
.
replace
(
/
[
-_
]
/g
,
' '
)
initPdfAfterPermission
();
.
replace
(
/
([
A-Z
])
/g
,
' $1'
)
return
;
.
trim
();
}
return
title
||
'PDF文档'
;
};
api
.
queryInfo
({
userId
}).
then
(
res
=>
{
if
(
res
.
success
)
{
// ========================== 核心方法(简化版) ==========================
permissionList
.
value
=
res
.
data
.
accessPermission
||
[];
const
queryUserInfoAndPermission
=
()
=>
{
}
else
{
const
userId
=
uni
.
getStorageSync
(
'cffp_userId'
);
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
if
(
!
userId
)
{
permissionList
.
value
=
[];
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
}
initPdfAfterPermission
();
initPdfAfterPermission
();
return
;
}).
catch
(()
=>
{
}
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
permissionList
.
value
=
[];
api
.
queryInfo
({
userId
}).
then
(
res
=>
{
initPdfAfterPermission
();
if
(
res
.
success
)
{
});
permissionList
.
value
=
res
.
data
.
accessPermission
||
[];
};
}
else
{
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
const
initPdfAfterPermission
=
()
=>
{
permissionList
.
value
=
[];
loading
.
value
=
true
;
}
const
filteredTabs
=
filteredCurrentTabs
.
value
;
initPdfAfterPermission
();
if
(
currentType
.
value
>=
2
&&
currentType
.
value
<=
4
)
{
}).
catch
(()
=>
{
if
(
filteredTabs
.
length
>
0
)
{
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
activeTab
.
value
=
0
;
permissionList
.
value
=
[];
currentPdf
.
value
=
filteredTabs
[
0
];
initPdfAfterPermission
();
}
else
{
});
currentPdf
.
value
=
{
id
:
''
,
title
:
''
,
urls
:
[],
type
:
''
,
landscapeFlag
:
false
};
};
}
}
else
{
const
initPdfAfterPermission
=
()
=>
{
currentPdf
.
value
=
{
id
:
'company'
,
title
:
'公司介绍'
,
urls
:
[
`
${
OSS_BASE_URL
}
/public/company-intro.pdf`
],
type
:
'showURL'
,
landscapeFlag
:
false
};
loading
.
value
=
true
;
}
const
filteredTabs
=
filteredCurrentTabs
.
value
;
if
(
currentType
.
value
>=
2
&&
currentType
.
value
<=
4
)
{
setTimeout
(()
=>
{
if
(
filteredTabs
.
length
>
0
)
{
loading
.
value
=
false
;
activeTab
.
value
=
0
;
},
200
);
currentPdf
.
value
=
filteredTabs
[
0
];
};
}
else
{
currentPdf
.
value
=
{
id
:
''
,
title
:
''
,
urls
:
[],
type
:
''
,
landscapeFlag
:
false
};
const
filteredCurrentTabs
=
computed
(()
=>
{
}
const
originalTabs
=
rawTabConfig
.
value
[
currentType
.
value
]
||
[];
}
else
{
if
(
permissionList
.
value
.
length
===
0
)
return
[];
currentPdf
.
value
=
{
id
:
'company'
,
title
:
'公司介绍'
,
urls
:
[
`
${
OSS_BASE_URL
}
/public/company-intro.pdf`
],
type
:
'showURL'
,
landscapeFlag
:
false
};
}
const
targetPermissionKey
=
typeToPermissionKey
.
value
[
currentType
.
value
];
if
(
!
targetPermissionKey
)
return
[];
setTimeout
(()
=>
{
loading
.
value
=
false
;
const
targetPermission
=
permissionList
.
value
.
find
(
},
200
);
item
=>
item
.
key
===
targetPermissionKey
};
);
if
(
!
targetPermission
||
targetPermission
.
rights
.
length
===
0
)
return
[];
const
filteredCurrentTabs
=
computed
(()
=>
{
const
originalTabs
=
rawTabConfig
.
value
[
currentType
.
value
]
||
[];
const
allowedTabIds
=
new
Set
(
if
(
permissionList
.
value
.
length
===
0
)
return
[];
targetPermission
.
rights
.
map
(
right
=>
right
.
key
)
);
const
targetPermissionKey
=
typeToPermissionKey
.
value
[
currentType
.
value
];
return
originalTabs
.
filter
(
tab
=>
allowedTabIds
.
has
(
tab
.
id
));
if
(
!
targetPermissionKey
)
return
[];
});
const
targetPermission
=
permissionList
.
value
.
find
(
const
switchTab
=
(
index
:
number
)
=>
{
item
=>
item
.
key
===
targetPermissionKey
const
tabs
=
filteredCurrentTabs
.
value
;
);
if
(
index
<
0
||
index
>=
tabs
.
length
||
tabs
.
length
===
0
)
return
;
if
(
!
targetPermission
||
targetPermission
.
rights
.
length
===
0
)
return
[];
loading
.
value
=
true
;
const
allowedTabIds
=
new
Set
(
targetPermission
.
rights
.
map
(
right
=>
right
.
key
)
setTimeout
(()
=>
{
);
activeTab
.
value
=
index
;
return
originalTabs
.
filter
(
tab
=>
allowedTabIds
.
has
(
tab
.
id
));
currentPdf
.
value
=
tabs
[
index
];
});
uni
.
setStorageSync
(
'tabsIndex'
,
index
);
const
switchTab
=
(
index
:
number
)
=>
{
setTimeout
(()
=>
{
const
tabs
=
filteredCurrentTabs
.
value
;
loading
.
value
=
false
;
if
(
index
<
0
||
index
>=
tabs
.
length
||
tabs
.
length
===
0
)
return
;
},
300
);
},
100
);
loading
.
value
=
true
;
};
setTimeout
(()
=>
{
// ========================== 生命周期 ==========================
activeTab
.
value
=
index
;
onLoad
((
query
)
=>
{
currentPdf
.
value
=
tabs
[
index
];
currentType
.
value
=
Number
(
query
.
type
)
||
1
;
uni
.
setStorageSync
(
'tabsIndex'
,
index
);
const
index
=
uni
.
getStorageSync
(
'tabsIndex'
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
index
)
{
loading
.
value
=
false
;
switchTab
(
index
);
},
300
);
}
},
100
);
},
300
);
};
const
queryInfo
=
()
=>
{
queryUserInfoAndPermission
();
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
})
});
.
then
((
res
:
QueryInfoResponse
)
=>
{
// 👈 添加类型注解
if
(
res
.
success
)
{
// 监听当前PDF变化
delete
res
.
data
?.
commonResult
;
watch
(()
=>
currentPdf
.
value
,
(
newVal
)
=>
{
// Tab切换时不需要额外处理,组件会自动处理
const
cffp_userInfo
=
{
});
...
res
.
data
};
// 账号禁用用户
if
(
res
.
data
?.
userIsActive
==
2
)
{
restrictedTipRef
.
value
.
open
();
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
));
return
;
}
if
(
res
.
data
?.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
)
{
restrictedTipRef
.
value
.
close
();
uni
.
removeStorageSync
(
'userIsActive'
);
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
?.
mobile
??
''
);
}
});
};
// ========================== 生命周期 ==========================
onLoad
((
query
)
=>
{
currentType
.
value
=
Number
(
query
.
type
)
||
1
;
const
index
=
uni
.
getStorageSync
(
'tabsIndex'
);
setTimeout
(()
=>
{
if
(
index
)
{
switchTab
(
index
);
}
},
300
);
queryUserInfoAndPermission
();
});
onShow
(()
=>
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
queryInfo
()
}
})
// 监听当前PDF变化
watch
(()
=>
currentPdf
.
value
,
(
newVal
)
=>
{
// Tab切换时不需要额外处理,组件会自动处理
});
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
/* 样式可以大幅简化,因为PDF查看逻辑都在组件中 */
/* 样式可以大幅简化,因为PDF查看逻辑都在组件中 */
.module-container
{
.module-container
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
min-height
:
100vh
;
min-height
:
100vh
;
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
}
}
.content
{
.content
{
flex
:
1
;
flex
:
1
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
position
:
relative
;
position
:
relative
;
}
}
.loading
{
.loading
{
flex
:
1
;
flex
:
1
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
.spinner
{
.spinner
{
width
:
30px
;
width
:
30px
;
height
:
30px
;
height
:
30px
;
border
:
3px
solid
#eeeeee
;
border
:
3px
solid
#eeeeee
;
border-top-color
:
#20269B
;
border-top-color
:
#20269B
;
border-radius
:
50%
;
border-radius
:
50%
;
animation
:
spin
1s
linear
infinite
;
animation
:
spin
1s
linear
infinite
;
margin-bottom
:
16px
;
margin-bottom
:
16px
;
}
}
text
{
text
{
color
:
#999999
;
color
:
#999999
;
font-size
:
14px
;
font-size
:
14px
;
}
}
}
}
.error
{
.error
{
flex
:
1
;
flex
:
1
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
color
:
#ef4444
;
color
:
#ef4444
;
font-size
:
16px
;
font-size
:
16px
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
}
}
.pdf-item-container
{
.pdf-item-container
{
margin-bottom
:
24
rpx
;
margin-bottom
:
24
rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
8
rpx
;
border-radius
:
8
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
box-shadow
:
0
2
rpx
8
rpx
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
2
rpx
8
rpx
rgba
(
0
,
0
,
0
,
0.1
);
}
}
.tab-bar
{
.tab-bar
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
height
:
48px
;
height
:
48px
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-bottom
:
1px
solid
#eeeeee
;
border-bottom
:
1px
solid
#eeeeee
;
overflow-x
:
auto
;
overflow-x
:
auto
;
white-space
:
nowrap
;
white-space
:
nowrap
;
scrollbar-width
:
none
;
scrollbar-width
:
none
;
&::-webkit-scrollbar
{
&::-webkit-scrollbar
{
display
:
none
;
display
:
none
;
}
}
.tab-item
{
.tab-item
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
padding
:
0
16px
;
padding
:
0
16px
;
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
cursor
:
pointer
;
cursor
:
pointer
;
.tab-text
{
.tab-text
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#666666
;
color
:
#666666
;
transition
:
color
0.3s
;
transition
:
color
0.3s
;
}
}
.tab-indicator
{
.tab-indicator
{
position
:
absolute
;
position
:
absolute
;
bottom
:
0
;
bottom
:
0
;
width
:
24px
;
width
:
24px
;
height
:
2px
;
height
:
2px
;
background-color
:
#20269B
;
background-color
:
#20269B
;
border-radius
:
1px
;
border-radius
:
1px
;
transition
:
all
0.3s
;
transition
:
all
0.3s
;
}
}
&
.active
{
&
.active
{
.tab-text
{
.tab-text
{
color
:
#20269B
;
color
:
#20269B
;
font-weight
:
500
;
font-weight
:
500
;
}
}
}
}
}
}
}
}
.pdf-tab-content
{
.pdf-tab-content
{
width
:
100%
;
width
:
100%
;
position
:
absolute
;
position
:
absolute
;
top
:
48px
;
top
:
48px
;
bottom
:
0
;
bottom
:
0
;
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
overflow-y
:
auto
;
overflow-y
:
auto
;
padding
:
16
rpx
;
padding
:
16
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.pdf-empty
{
.pdf-empty
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
color
:
#999999
;
color
:
#999999
;
font-size
:
14px
;
font-size
:
14px
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
}
}
@keyframes
spin
{
@keyframes
spin
{
to
{
to
{
transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/personalCenter/helpCenter.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
...
@@ -51,9 +53,14 @@
...
@@ -51,9 +53,14 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
questionsData
from
"@/util/questions"
;
import
questionsData
from
"@/util/questions"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
tabList
:[
tabList
:[
...
@@ -67,6 +74,9 @@
...
@@ -67,6 +74,9 @@
}
}
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -81,6 +91,33 @@
...
@@ -81,6 +91,33 @@
}
}
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
changeTab
(
item
){
changeTab
(
item
){
this
.
currentTab
=
item
.
id
this
.
currentTab
=
item
.
id
},
},
...
...
pages/personalCenter/myTeam.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"myHeader"
>
<view
class=
"myHeader"
>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
...
@@ -138,10 +140,12 @@
...
@@ -138,10 +140,12 @@
import
api
from
"@/api/api"
;
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
BootPage
from
"@/components/bootpage/bootpage.vue"
;
import
BootPage
from
"@/components/bootpage/bootpage.vue"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:
{
components
:
{
CommonTimePicker
,
CommonTimePicker
,
BootPage
BootPage
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -281,6 +285,9 @@
...
@@ -281,6 +285,9 @@
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -288,7 +295,33 @@
...
@@ -288,7 +295,33 @@
// #endif
// #endif
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
sortswitch
(
obj
)
{
sortswitch
(
obj
)
{
this
.
currentFilterBtn
=
obj
.
id
this
.
currentFilterBtn
=
obj
.
id
this
.
CffpOrgInfoReqVO
.
sortType
=
obj
.
sortType
this
.
CffpOrgInfoReqVO
.
sortType
=
obj
.
sortType
...
...
pages/personalCenter/myTeamIncubate.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"myHeader"
>
<view
class=
"myHeader"
>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
...
@@ -120,9 +122,11 @@
...
@@ -120,9 +122,11 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
api
from
"@/api/api"
;
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:
{
components
:
{
CommonTimePicker
CommonTimePicker
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -208,6 +212,9 @@
...
@@ -208,6 +212,9 @@
this
.
getqueryTeamAchievement
()
this
.
getqueryTeamAchievement
()
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -215,6 +222,33 @@
...
@@ -215,6 +222,33 @@
// #endif
// #endif
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
sortswitch
(
obj
)
{
sortswitch
(
obj
)
{
this
.
currentFilterBtn
=
obj
.
id
this
.
currentFilterBtn
=
obj
.
id
this
.
getqueryTeamAchievement
()
this
.
getqueryTeamAchievement
()
...
...
pages/personalCenter/personalCenter.vue
View file @
d7a93dcd
...
@@ -850,6 +850,16 @@
...
@@ -850,6 +850,16 @@
// 检查名片状态
// 检查名片状态
this
.
getBusissedCardStatus
(
res
[
'data'
][
'businessCardId'
])
this
.
getBusissedCardStatus
(
res
[
'data'
][
'businessCardId'
])
}
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
// id=03的权限设置
// id=03的权限设置
// 执行处理
// 执行处理
...
...
pages/personalCenter/system/accontsetting.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
style=
"display: flex;flex-direction: column;"
>
<view
style=
"display: flex;flex-direction: column;"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -15,9 +17,12 @@
...
@@ -15,9 +17,12 @@
<
script
>
<
script
>
import
MenuList
from
"@/components/menuList/menuList.vue"
import
MenuList
from
"@/components/menuList/menuList.vue"
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
api
from
"@/api/api"
;
export
default
{
export
default
{
components
:{
components
:{
MenuList
MenuList
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -50,6 +55,9 @@
...
@@ -50,6 +55,9 @@
}
}
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
if
(
this
.
userInfo
.
partnerIsActive
&&
this
.
userInfo
.
partnerIsActive
==
2
){
if
(
this
.
userInfo
.
partnerIsActive
&&
this
.
userInfo
.
partnerIsActive
==
2
){
this
.
minorMenuLists
.
forEach
(
item
=>
{
this
.
minorMenuLists
.
forEach
(
item
=>
{
...
@@ -65,6 +73,33 @@
...
@@ -65,6 +73,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
()
{
goBack
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
...
pages/personalCenter/system/menulist.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view>
<view>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"personalInfo"
>
<view
class=
"personalInfo"
>
<view
class=
"ulBox"
>
<view
class=
"ulBox"
>
<view
v-for=
"item in menuList.filter(v=>v.isShow)"
:key=
"item.title"
@
click=
"goDetail(item)"
<view
v-for=
"item in menuList.filter(v=>v.isShow)"
:key=
"item.title"
@
click=
"goDetail(item)"
...
@@ -20,7 +22,12 @@
...
@@ -20,7 +22,12 @@
<
script
>
<
script
>
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
props
:
{
props
:
{
menuList
:
{
menuList
:
{
type
:
Array
type
:
Array
...
@@ -30,6 +37,9 @@
...
@@ -30,6 +37,9 @@
return
{}
return
{}
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -43,6 +53,33 @@
...
@@ -43,6 +53,33 @@
uni
.
hideToast
();
uni
.
hideToast
();
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goDetail
(
item
)
{
goDetail
(
item
)
{
if
(
item
.
isShow
==
true
&&
item
.
isOpen
==
true
)
{
if
(
item
.
isShow
==
true
&&
item
.
isOpen
==
true
)
{
if
(
item
.
isTips
==
true
)
{
if
(
item
.
isTips
==
true
)
{
...
...
pages/personalCenter/system/settings.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
style=
"display: flex;flex-direction: column;"
>
<view
style=
"display: flex;flex-direction: column;"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -22,8 +24,10 @@
...
@@ -22,8 +24,10 @@
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
MenuList
},
components
:{
MenuList
,
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
menuList
:
null
,
menuList
:
null
,
...
@@ -55,6 +59,9 @@
...
@@ -55,6 +59,9 @@
}
}
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -75,6 +82,33 @@
...
@@ -75,6 +82,33 @@
uni
.
hideToast
();
uni
.
hideToast
();
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
(){
goBack
(){
uni
.
switchTab
({
uni
.
switchTab
({
url
:
'/pages/personalCenter/personalCenter'
url
:
'/pages/personalCenter/personalCenter'
...
...
pages/personalCenter/user-information.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"userHeader"
>
<view
class=
"userHeader"
>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"left: 20rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"left: 20rpx;"
></text>
...
@@ -127,6 +128,7 @@
...
@@ -127,6 +128,7 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
commonSelect
from
'@/components/commonSelect/commonSelect.vue'
;
import
commonSelect
from
'@/components/commonSelect/commonSelect.vue'
;
import
PartnerTipPopup
from
"@/components/commonPopup/PartnerTipPopup.vue"
;
import
PartnerTipPopup
from
"@/components/commonPopup/PartnerTipPopup.vue"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -155,7 +157,8 @@
...
@@ -155,7 +157,8 @@
},
},
components
:
{
components
:
{
commonSelect
,
commonSelect
,
PartnerTipPopup
PartnerTipPopup
,
restrictedTip
,
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
this
.
companyType
==
'1'
){
if
(
this
.
companyType
==
'1'
){
...
@@ -174,6 +177,9 @@
...
@@ -174,6 +177,9 @@
// this.optionForm = this.tempInfo.optionForm = JSON.parse(options.customerBasicInfo)
// this.optionForm = this.tempInfo.optionForm = JSON.parse(options.customerBasicInfo)
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -182,6 +188,33 @@
...
@@ -182,6 +188,33 @@
this
.
getIdType
()
this
.
getIdType
()
},
},
methods
:
{
methods
:
{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
continueCancel
(){
continueCancel
(){
// 使用深拷贝还原数据
// 使用深拷贝还原数据
this
.
optionForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tempInfo
.
optionForm
));
this
.
optionForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tempInfo
.
optionForm
));
...
@@ -419,7 +452,7 @@
...
@@ -419,7 +452,7 @@
position
:
absolute
;
position
:
absolute
;
bottom
:
15%
;
bottom
:
15%
;
left
:
14%
;
left
:
14%
;
z-index
:
99
;
z-index
:
11
;
.add{
.add{
position
:
absolute
;
position
:
absolute
;
bottom
:
2%
;
bottom
:
2%
;
...
...
pages/pointsExchange/pointsExchange.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
:style=
"cffpFortuneDateList.length>6?'height:auto':'height:100vh'"
>
<view
class=
"container"
:style=
"cffpFortuneDateList.length>6?'height:auto':'height:100vh'"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<view
class=
"backArrow"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
...
@@ -125,6 +127,7 @@
...
@@ -125,6 +127,7 @@
import
CustomDatePop
from
'./customDatePop.vue'
;
import
CustomDatePop
from
'./customDatePop.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
let
nowTime
=
dataHandling
.
getMonthRange
(
dataHandling
.
getDateParts
().
year
,
dataHandling
.
getDateParts
().
month
)
let
nowTime
=
dataHandling
.
getMonthRange
(
dataHandling
.
getDateParts
().
year
,
dataHandling
.
getDateParts
().
month
)
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -170,7 +173,7 @@
...
@@ -170,7 +173,7 @@
showWithdrawal
:
true
showWithdrawal
:
true
}
}
},
},
components
:
{
CustomDatePop
},
components
:
{
CustomDatePop
,
restrictedTip
,
},
onLoad
()
{
onLoad
()
{
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
// 经销商职级p3之上的都不给提现
// 经销商职级p3之上的都不给提现
...
@@ -183,6 +186,9 @@
...
@@ -183,6 +186,9 @@
this
.
queryByUserIdFortuneStatistic
();
this
.
queryByUserIdFortuneStatistic
();
this
.
getCommissionType
()
this
.
getCommissionType
()
this
.
getDetail
()
this
.
getDetail
()
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -360,7 +366,34 @@
...
@@ -360,7 +366,34 @@
url
:
'/myPackageA/commission/withdrawalRecord'
url
:
'/myPackageA/commission/withdrawalRecord'
})
})
}
}
}
},
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
}
}
}
}
</
script
>
</
script
>
...
...
pages/product/product.vue
View file @
d7a93dcd
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
import
tabBar
from
'../../components/tabBar/tabBar.vue'
;
import
tabBar
from
'../../components/tabBar/tabBar.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
api
from
'../../api/api'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -78,6 +79,9 @@
...
@@ -78,6 +79,9 @@
restrictedTip
restrictedTip
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -121,7 +125,34 @@
...
@@ -121,7 +125,34 @@
}
else
{
}
else
{
common
.
errorDialog
(
2
,
'该模块正在开发中,敬请期待!'
,
'提示'
);
common
.
errorDialog
(
2
,
'该模块正在开发中,敬请期待!'
,
'提示'
);
}
}
}
},
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
}
}
}
}
</
script
>
</
script
>
...
...
pages/saleCourseLists/saleCourseLists.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view>
<view>
<!-- 时间选择 -->
<!-- 时间选择 -->
<view
class=
"top"
>
<view
class=
"top"
>
...
@@ -116,11 +118,13 @@
...
@@ -116,11 +118,13 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
components
:{
courseItem
,
courseItem
,
CommonTimePicker
,
CommonTimePicker
,
JoinPopup
JoinPopup
,
restrictedTip
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -252,7 +256,35 @@
...
@@ -252,7 +256,35 @@
url
:
`/pages/pointsExchange/pointsExchange`
url
:
`/pages/pointsExchange/pointsExchange`
})
})
},
},
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
partnerType
){
if
(
options
.
partnerType
){
this
.
partnerType
=
options
.
partnerType
this
.
partnerType
=
options
.
partnerType
...
@@ -265,6 +297,9 @@
...
@@ -265,6 +297,9 @@
let
app22
=
getCurrentPages
().
length
let
app22
=
getCurrentPages
().
length
this
.
userCourseCount
()
this
.
userCourseCount
()
this
.
userCourseList
()
this
.
userCourseList
()
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
...
pages/systemMsg/system_msg.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"top"
>
<view
class=
"top"
>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<view
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></view>
<view
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></view>
...
@@ -39,7 +41,11 @@
...
@@ -39,7 +41,11 @@
<
script
>
<
script
>
import
api
from
'../../api/api'
;
import
api
from
'../../api/api'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
(){
data
(){
return
{
return
{
system_msgs_list
:[],
system_msgs_list
:[],
...
@@ -49,6 +55,9 @@
...
@@ -49,6 +55,9 @@
this
.
querySystemMessage
();
this
.
querySystemMessage
();
},
},
onShow
(){
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
this
.
querySystemMessage
();
this
.
querySystemMessage
();
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
...
@@ -57,6 +66,33 @@
...
@@ -57,6 +66,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
querySystemMessage
()
{
querySystemMessage
()
{
api
.
querySystemMessage
({
systemType
:
1
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
api
.
querySystemMessage
({
systemType
:
1
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
if
(
res
[
'success'
]
&&
res
[
'data'
][
'dataList'
]
&&
res
[
'data'
][
'dataList'
].
length
>
0
)
{
if
(
res
[
'success'
]
&&
res
[
'data'
][
'dataList'
]
&&
res
[
'data'
][
'dataList'
].
length
>
0
)
{
...
...
pages/systemMsg/system_msg_detail.vue
View file @
d7a93dcd
<
template
>
<
template
>
<!-- #ifdef APP -->
<view
class=
""
>
<view
class=
"top"
>
<!-- 禁用弹窗 -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
<restrictedTip
ref=
"restrictedTip"
/>
<text
class=
"commonTitle"
>
消息详情
</text>
<!-- #ifdef APP -->
</view>
<view
class=
"top"
>
<!-- #endif -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
<text
class=
"commonTitle"
>
消息详情
</text>
<view
class=
"announcement_detail_wrapper container"
>
</view>
<view
class=
"content"
>
<!-- #endif -->
<view
class=
"title"
>
{{
systemMsgInfo
.
title
}}
<view
class=
"announcement_detail_wrapper container"
>
</view>
<view
class=
"content"
>
<view
class=
"date"
>
<view
class=
"title"
>
发布时间:
{{
systemMsgInfo
.
createdAt
}}
{{
systemMsgInfo
.
title
}}
</view>
<view
class=
"date"
>
发布时间:
{{
systemMsgInfo
.
createdAt
}}
</view>
<view
style=
"font-size: 25rpx;"
v-html=
"systemMsgInfo.context"
></view>
</view>
</view>
<view
style=
"font-size: 25rpx;"
v-html=
"systemMsgInfo.context"
></view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
api
from
"../../api/api"
;
import
api
from
"../../api/api"
;
import
common
from
'../../common/common'
;
import
common
from
'../../common/common'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
@@ -35,12 +41,15 @@
...
@@ -35,12 +41,15 @@
}
}
},
},
name
:
'system_msg_detail'
,
name
:
'system_msg_detail'
,
components
:{},
components
:{
restrictedTip
,
},
onLoad
(
options
){
onLoad
(
options
){
this
.
id
=
options
.
id
;
this
.
id
=
options
.
id
;
this
.
getSystemMsgDetail
();
this
.
getSystemMsgDetail
();
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -48,6 +57,33 @@
...
@@ -48,6 +57,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
getSystemMsgDetail
(){
getSystemMsgDetail
(){
api
.
querySystemMessageDetail
({
systemMessageId
:
this
.
id
}).
then
((
res
)
=>
{
api
.
querySystemMessageDetail
({
systemMessageId
:
this
.
id
}).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
...
...
pages/taxRules/taxRules.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
""
>
<view
class=
""
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"content_wrapper"
>
<view
class=
"content_wrapper"
>
<h4
style=
"font-size: 28rpx;"
>
劳务报酬税缴纳规则
</h4>
<h4
style=
"font-size: 28rpx;"
>
劳务报酬税缴纳规则
</h4>
<view
class=
"content"
>
<view
class=
"content"
>
...
@@ -58,14 +60,21 @@
...
@@ -58,14 +60,21 @@
<
script
>
<
script
>
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
(){
data
(){
return
{
return
{
}
}
},
},
components
:{},
onShow
(){
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -73,7 +82,33 @@
...
@@ -73,7 +82,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
}
}
}
}
</
script
>
</
script
>
...
...
pages/withdrawal/withdrawal.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -74,7 +76,11 @@
...
@@ -74,7 +76,11 @@
<
script
>
<
script
>
import
api
from
'../../api/api'
;
import
api
from
'../../api/api'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
(){
data
(){
return
{
return
{
exchangeAmount
:
null
,
exchangeAmount
:
null
,
...
@@ -93,6 +99,9 @@
...
@@ -93,6 +99,9 @@
this
.
goFortuneWithdrawal
()
this
.
goFortuneWithdrawal
()
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -100,6 +109,33 @@
...
@@ -100,6 +109,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
()
{
goBack
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
@@ -145,8 +181,9 @@
...
@@ -145,8 +181,9 @@
//支付宝去提现
//支付宝去提现
aliWithdrawal
(){
aliWithdrawal
(){
this
.
readonlyFlag
=
true
;
this
.
readonlyFlag
=
true
;
let
aliWithdrawalResVOParam
=
{}
//#ifdef H5
//#ifdef H5
let
aliWithdrawalResVOParam
=
{
aliWithdrawalResVOParam
=
{
...
this
.
aliWithdrawalResVO
,
...
this
.
aliWithdrawalResVO
,
dataSource
:
2
,
dataSource
:
2
,
orderNo
:
this
.
partnerTradeNo
,
orderNo
:
this
.
partnerTradeNo
,
...
@@ -155,7 +192,7 @@
...
@@ -155,7 +192,7 @@
}
}
//#endif
//#endif
// #ifdef APP-PLUS
// #ifdef APP-PLUS
let
aliWithdrawalResVOParam
=
{
aliWithdrawalResVOParam
=
{
...
this
.
aliWithdrawalResVO
,
...
this
.
aliWithdrawalResVO
,
dataSource
:
2
,
dataSource
:
2
,
orderNo
:
this
.
partnerTradeNo
,
orderNo
:
this
.
partnerTradeNo
,
...
...
sfp/childEdu/childEdu.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view>
<view>
<view
class=
"wrapper"
>
<view
class=
"wrapper"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -173,7 +175,14 @@
...
@@ -173,7 +175,14 @@
import
{
nanoid
}
from
"nanoid"
;
import
{
nanoid
}
from
"nanoid"
;
import
LEchart
from
'@/uni_modules/lime-echart/components/l-echart/l-echart.vue'
;
import
LEchart
from
'@/uni_modules/lime-echart/components/l-echart/l-echart.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
commonHead
,
foot
,
LEchart
,
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
accountBalanceEnd
:[],
accountBalanceEnd
:[],
...
@@ -206,6 +215,9 @@
...
@@ -206,6 +215,9 @@
}
}
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -520,7 +532,34 @@
...
@@ -520,7 +532,34 @@
*/
*/
formatFloat
(
num
,
digitNum
=
2
,
type
=
1
){
formatFloat
(
num
,
digitNum
=
2
,
type
=
1
){
return
common
.
formatFloat
(
num
,
digitNum
=
2
,
type
=
1
)
return
common
.
formatFloat
(
num
,
digitNum
=
2
,
type
=
1
)
}
},
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
},
},
mounted
()
{
mounted
()
{
...
@@ -530,11 +569,7 @@
...
@@ -530,11 +569,7 @@
val
[
'educationNo'
]
=
idx
+
1
;
val
[
'educationNo'
]
=
idx
+
1
;
});
});
},
},
components
:{
commonHead
,
foot
,
LEchart
}
}
}
</
script
>
</
script
>
...
...
sfp/dataImport/data-import.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"batchDataImportContainer"
>
<view
class=
"batchDataImportContainer"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"selectStepContainer"
>
<view
class=
"selectStepContainer"
>
<view
class=
"selectStepContent"
>
<view
class=
"selectStepContent"
>
<text>
我想测算每隔
</text>
<text>
我想测算每隔
</text>
...
@@ -87,7 +89,11 @@
...
@@ -87,7 +89,11 @@
import
api
from
"../../api/api"
;
import
api
from
"../../api/api"
;
import
{
reactive
,
provide
}
from
"vue"
;
import
{
reactive
,
provide
}
from
"vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
components
:{
restrictedTip
,
},
data
()
{
data
()
{
return
{
return
{
index
:
0
,
index
:
0
,
...
@@ -110,6 +116,9 @@
...
@@ -110,6 +116,9 @@
this
.
calcuteData
=
uni
.
getStorageSync
(
'calcuteData'
)
?
JSON
.
parse
(
uni
.
getStorageSync
(
'calcuteData'
))
:
null
;
this
.
calcuteData
=
uni
.
getStorageSync
(
'calcuteData'
)
?
JSON
.
parse
(
uni
.
getStorageSync
(
'calcuteData'
))
:
null
;
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -117,6 +126,33 @@
...
@@ -117,6 +126,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
// 选择间隔
// 选择间隔
bindPickerChange
(
e
){
bindPickerChange
(
e
){
this
.
index
=
e
.
detail
.
value
;
this
.
index
=
e
.
detail
.
value
;
...
...
sfp/housePurchase/housePurchase.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"wrapper"
>
<view
class=
"wrapper"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -279,7 +281,7 @@
...
@@ -279,7 +281,7 @@
// import Echarts from '../../components/echarts/echarts'
// import Echarts from '../../components/echarts/echarts'
import
LEchart
from
'@/uni_modules/lime-echart/components/l-echart/l-echart.vue'
;
import
LEchart
from
'@/uni_modules/lime-echart/components/l-echart/l-echart.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
@@ -351,12 +353,16 @@
...
@@ -351,12 +353,16 @@
foot
,
foot
,
commonHead
,
commonHead
,
// Echarts
// Echarts
LEchart
LEchart
,
restrictedTip
,
},
},
onLoad
(){
onLoad
(){
this
.
provCityQry
();
this
.
provCityQry
();
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -364,6 +370,33 @@
...
@@ -364,6 +370,33 @@
// #endif
// #endif
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
goBack
(){
goBack
(){
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
...
sfp/housePurchase/loanBalance.vue
View file @
d7a93dcd
<
template
>
<
template
>
<div
class=
"mortgageCalculatorContainer"
>
<div
class=
"mortgageCalculatorContainer"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"tabTitle"
v-if=
"!isReadonly"
>
<view
class=
"tabTitle"
v-if=
"!isReadonly"
>
<view
v-for=
"item of loanTypeLists"
>
<view
v-for=
"item of loanTypeLists"
>
<text
:class=
"
{ actived: item.value===loanType }" @click="selectLoanType(item.value)">
{{
item
.
text
}}
</text>
<text
:class=
"
{ actived: item.value===loanType }" @click="selectLoanType(item.value)">
{{
item
.
text
}}
</text>
...
@@ -54,6 +56,8 @@
...
@@ -54,6 +56,8 @@
<
script
>
<
script
>
import
{
ref
,
toRefs
,
reactive
}
from
"vue"
;
import
{
ref
,
toRefs
,
reactive
}
from
"vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
api
from
"@/api/api"
;
export
default
{
export
default
{
props
:
[
'isReadonly'
,
'loanType'
,
'a'
,
'b'
],
props
:
[
'isReadonly'
,
'loanType'
,
'a'
,
'b'
],
emits
:[
'getData'
],
emits
:[
'getData'
],
...
@@ -91,9 +95,12 @@
...
@@ -91,9 +95,12 @@
},
},
name
:
'loanBalance'
,
name
:
'loanBalance'
,
components
:{
components
:{
restrictedTip
,
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -126,6 +133,33 @@
...
@@ -126,6 +133,33 @@
}
}
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
clear
(){
clear
(){
this
.
accumulationFundParams
=
[
this
.
accumulationFundParams
=
[
{
id
:
'00'
,
text
:
'公积金贷款余额'
,
value
:
null
,
type
:
'digit'
,
unit
:
'元'
,
alias
:
'oldHouseLoanBalance'
},
{
id
:
'00'
,
text
:
'公积金贷款余额'
,
value
:
null
,
type
:
'digit'
,
unit
:
'元'
,
alias
:
'oldHouseLoanBalance'
},
...
...
sfp/housePurchase/planningParameters.vue
View file @
d7a93dcd
<
template
>
<
template
>
<view
class=
"paramsContainer"
>
<view
class=
"paramsContainer"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<h5>
规划参数
<span>
(点击参数值即可修改参数)
</span></h5>
<h5>
规划参数
<span>
(点击参数值即可修改参数)
</span></h5>
<view
class=
"ulBox"
>
<view
class=
"ulBox"
>
<template
v-for=
"item in editParamLists"
>
<template
v-for=
"item in editParamLists"
>
...
@@ -38,6 +40,7 @@
...
@@ -38,6 +40,7 @@
import
api
from
'../../api/api'
;
import
api
from
'../../api/api'
;
import
common
from
'../../common/common'
import
common
from
'../../common/common'
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
props
:[
'cityInfo'
,
'planningParams'
],
props
:[
'cityInfo'
,
'planningParams'
],
emits
:[
'getData'
],
emits
:[
'getData'
],
...
@@ -59,9 +62,12 @@
...
@@ -59,9 +62,12 @@
},
},
name
:
'planningParameters'
,
name
:
'planningParameters'
,
components
:{
components
:{
restrictedTip
,
},
},
onShow
(){
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
// #ifdef H5
initJssdkShare
(()
=>
{
initJssdkShare
(()
=>
{
setWechatShare
();
setWechatShare
();
...
@@ -77,6 +83,33 @@
...
@@ -77,6 +83,33 @@
return
{
sendData
,
cityInfo
,
planningParams
}
return
{
sendData
,
cityInfo
,
planningParams
}
},
},
methods
:{
methods
:{
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
onchange
(
e
)
{
onchange
(
e
)
{
// const value = e.detail.value;
// const value = e.detail.value;
},
},
...
...
sfp/index/index.vue
View file @
d7a93dcd
<
template
>
<
template
>
<!-- 已关注公众号用户 -->
<!-- 已关注公众号用户 -->
<view
class=
"content"
>
<view
class=
"content"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<!-- #endif -->
<!-- #endif -->
...
@@ -206,6 +208,7 @@
...
@@ -206,6 +208,7 @@
import
{
toRefs
,
ref
}
from
'vue'
;
import
{
toRefs
,
ref
}
from
'vue'
;
import
commonHead
from
'../header/header.vue'
;
import
commonHead
from
'../header/header.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -236,7 +239,8 @@
...
@@ -236,7 +239,8 @@
components
:{
components
:{
dataImport
,
dataImport
,
foot
,
foot
,
commonHead
commonHead
,
restrictedTip
,
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
if
(
option
.
isBack
==
1
){
if
(
option
.
isBack
==
1
){
...
@@ -630,9 +634,39 @@
...
@@ -630,9 +634,39 @@
this
.
withdrawalType
=
'1'
;
this
.
withdrawalType
=
'1'
;
this
.
irrAndSimple
=
{
nyear
:
undefined
,
cashValue
:
undefined
};
this
.
irrAndSimple
=
{
nyear
:
undefined
,
cashValue
:
undefined
};
this
.
resultShowFlag
=
false
;
this
.
resultShowFlag
=
false
;
}
},
queryInfo
()
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
this
.
$refs
.
restrictedTip
.
close
()
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
}
})
},
},
},
onShow
()
{
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
if
(
uni
.
getStorageSync
(
'resIrrAndSimpleResInfos'
)){
if
(
uni
.
getStorageSync
(
'resIrrAndSimpleResInfos'
)){
this
.
resIrrAndSimpleResInfos
=
uni
.
getStorageSync
(
'resIrrAndSimpleResInfos'
);
this
.
resIrrAndSimpleResInfos
=
uni
.
getStorageSync
(
'resIrrAndSimpleResInfos'
);
this
.
calcuteMethod
=
'2'
;
this
.
calcuteMethod
=
'2'
;
...
...
util/router.js
View file @
d7a93dcd
...
@@ -27,10 +27,11 @@ let shareCustomPageList = [
...
@@ -27,10 +27,11 @@ let shareCustomPageList = [
]
]
export
default
function
initApp
()
{
export
default
function
initApp
()
{
let
date
=
Date
.
now
()
let
date
=
Date
.
now
()
uni
.
addInterceptor
(
'navigateTo'
,
{
uni
.
addInterceptor
(
'navigateTo'
,
{
// 页面跳转前进行拦截, invoke根据返回值进行判断是否继续执行跳转
// 页面跳转前进行拦截, invoke根据返回值进行判断是否继续执行跳转
invoke
(
e
)
{
invoke
(
e
)
{
let
userInfo
=
{}
let
userInfo
=
{}
if
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
{
if
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
{
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
...
@@ -81,13 +82,23 @@ export default function initApp() {
...
@@ -81,13 +82,23 @@ export default function initApp() {
const
cffp_userInfo
=
{
const
cffp_userInfo
=
{
...
res
.
data
...
res
.
data
}
}
// 账号禁用用户
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
==
2
){
uni
.
setStorageSync
(
'userIsActive'
,
String
(
res
.
data
.
userIsActive
))
return
}
if
(
res
.
data
.
userIsActive
&&
res
.
data
.
userIsActive
!=
2
){
uni
.
removeStorageSync
(
'userIsActive'
)
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
))
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
))
}
}
})
})
}
}
if
(
userInfo
.
userIsActive
==
2
&&
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
)
{
if
(
userInfo
.
userIsActive
==
2
&&
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
)
{
// 显示禁用用户弹窗
const
currentPage
=
getCurrentPages
()[
getCurrentPages
().
length
-
1
];
const
currentPage
=
getCurrentPages
()[
getCurrentPages
().
length
-
1
];
currentPage
.
$refs
.
restrictedTip
.
open
()
currentPage
.
$refs
.
restrictedTip
.
open
()
...
@@ -140,9 +151,14 @@ export default function initApp() {
...
@@ -140,9 +151,14 @@ export default function initApp() {
success
(
e
)
{}
success
(
e
)
{}
})
})
uni
.
addInterceptor
(
'switchTab'
,
{
uni
.
addInterceptor
(
'switchTab'
,
{
// tabbar页面跳转前进行拦截
// tabbar页面跳转前进行拦截
invoke
(
e
)
{
invoke
(
e
)
{
// 账号禁用用户不让跳转
if
(
uni
.
getStorageSync
(
'userIsActive'
)
&&
uni
.
getStorageSync
(
'userIsActive'
)
==
2
){
return
false
}
if
(
shareCustomPageList
.
indexOf
(
e
.
url
)
==
-
1
)
{
if
(
shareCustomPageList
.
indexOf
(
e
.
url
)
==
-
1
)
{
if
(
dataHandling
.
h5RuntimeEnv
()
==
'wechat-miniprogram'
)
{
if
(
dataHandling
.
h5RuntimeEnv
()
==
'wechat-miniprogram'
)
{
let
shareInfo
=
{
let
shareInfo
=
{
...
@@ -163,27 +179,6 @@ export default function initApp() {
...
@@ -163,27 +179,6 @@ export default function initApp() {
return
return
}
}
}
}
if
(
uni
.
getStorageSync
(
'cffp_userId'
))
{
api
.
queryInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)
}).
then
(
res
=>
{
// if(!res['success']){
// uni.setStorageSync('loginType','visitor')
// uni.navigateTo({
// url: '/myPackageA/login/login'
// })
// return true
// }
// 保存用户得个人信息
if
(
res
[
'success'
])
{
delete
res
.
data
.
commonResult
const
cffp_userInfo
=
{
...
res
.
data
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
))
}
})
}
if
(
date
)
{
if
(
date
)
{
//如果时间戳存在 那么记录此页面的停留时间
//如果时间戳存在 那么记录此页面的停留时间
dataHandling
.
pocessTracking
(
dataHandling
.
pocessTracking
(
...
@@ -201,6 +196,11 @@ export default function initApp() {
...
@@ -201,6 +196,11 @@ export default function initApp() {
uni
.
addInterceptor
(
'reLaunch'
,
{
uni
.
addInterceptor
(
'reLaunch'
,
{
//页面跳转前拦截
//页面跳转前拦截
invoke
(
e
)
{
invoke
(
e
)
{
// 账号禁用用户不让跳转
if
(
uni
.
getStorageSync
(
'userIsActive'
)
&&
uni
.
getStorageSync
(
'userIsActive'
)
==
2
){
return
false
}
if
(
shareCustomPageList
.
indexOf
(
e
.
url
)
==
-
1
)
{
if
(
shareCustomPageList
.
indexOf
(
e
.
url
)
==
-
1
)
{
if
(
dataHandling
.
h5RuntimeEnv
()
==
'wechat-miniprogram'
)
{
if
(
dataHandling
.
h5RuntimeEnv
()
==
'wechat-miniprogram'
)
{
let
shareInfo
=
{
let
shareInfo
=
{
...
...
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