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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
1565 additions
and
135 deletions
+1565
-135
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
+0
-0
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
+0
-0
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 @@
const
cffp_userInfo
=
{
...
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
))
}
...
...
@@ -241,6 +250,7 @@
}
//家办商城跳转未登录状态下
if
(
params
.
noLogin
){
uni
.
removeStorageSync
(
'userIsActive'
)
uni
.
removeStorageSync
(
'dataToken'
)
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
}
...
...
components/bootpage/bootpage.vue
View file @
d7a93dcd
...
...
@@ -144,6 +144,7 @@
// 禁用账号,不让登录
if
(
res
.
data
.
userIsActive
==
2
){
this
.
$refs
.
restrictedTip
.
open
()
return
}
this
.
userId
=
String
(
res
[
'data'
][
'userId'
]);
...
...
components/commonPopup/restrictedTip.vue
View file @
d7a93dcd
<
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=
"title"
>
{{
title
}}
</view>
...
...
@@ -8,27 +8,28 @@
<view
class=
"iconfont icon-exclamation"
></view>
</view>
<view
class=
"joinCon"
>
<view
class=
"one"
>
{{
conten
t
}}
</view>
<view
class=
"one"
>
{{
tipTx
t
}}
</view>
<view
class=
"qrCode"
v-if=
"showCode"
>
<image
src=
"@/static/images/customer.jpg"
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"joinFotter"
>
<
!--
<
view
class=
"joinFotter"
>
<view
@
click=
"handleConfirm"
>
{{
confirmText
}}
</view>
</view>
</view>
-->
</view>
</uni-popup>
</
template
>
<
script
>
import
{
shareURL
}
from
"@/environments/environment"
;
import
dataHandling
from
"@/util/dataHandling"
;
export
default
{
name
:
'restrictedTip'
,
props
:
{
title
:
String
,
content
:
{
type
:
String
,
default
:
'您的账号处在不可用状态,请
扫码
添加客服咨询情况'
default
:
'您的账号处在不可用状态,请
长按图片
添加客服咨询情况'
},
showCode
:
{
type
:
Boolean
,
...
...
@@ -41,11 +42,22 @@
},
data
()
{
return
{
visible
:
false
visible
:
false
,
tipTxt
:
'您的账号处在不可用状态,请长按图片添加客服咨询情况'
}
},
onMounted
(){
console
.
log
(
'禁用弹窗onMounted'
);
},
methods
:
{
open
()
{
if
(
dataHandling
.
getRuntimeEnv
()
==
'browser'
){
this
.
tipTxt
=
'您的账号处在不可用状态,请扫码添加客服咨询情况'
}
if
(
this
.
visible
){
return
}
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
popup
.
open
()
// 确保DOM渲染后再打开
...
...
myPackageA/commission/withdrawalRecord.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
...
...
@@ -77,9 +79,11 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
MultiSelectDropdown
from
'@/components/commonPopup/MultiSelectDropdown.vue'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:
{
MultiSelectDropdown
MultiSelectDropdown
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -99,6 +103,9 @@
onLoad
(
options
){
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -111,7 +118,33 @@
},
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
()
{
const
status
=
this
.
selectedStatus
.
length
===
0
||
this
.
selectedStatus
.
includes
(
'-1'
)
...
...
myPackageA/myTeam/myTeam.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"myHeader"
>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
...
...
@@ -255,10 +257,12 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
BootPage
from
"@/components/bootpage/bootpage.vue"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:
{
CommonTimePicker
,
BootPage
BootPage
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -414,6 +418,9 @@
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -423,6 +430,33 @@
this
.
loginType
=
uni
.
getStorageSync
(
'loginType'
)
},
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
)
{
this
.
currentFilterBtn
=
obj
.
id
this
.
CffpOrgInfoReqVO
.
sortType
=
obj
.
sortType
...
...
myPackageA/poster/poster.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- 添加ref以便获取DOM -->
<view
class=
"imgBox"
ref=
"captureElement"
v-if=
"!generatedImage"
>
<view
class=
"imgContainer"
>
...
...
@@ -31,10 +33,13 @@
import
*
as
environment
from
"@/environments/environment"
;
import
UQRCode
from
'uqrcodejs'
;
import
{
elementToImage
}
from
'@/util/htmlToImage'
;
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
restrictedTip
,
},
data
()
{
return
{
companyInfo
:
environment
.
companyInfo
,
...
...
@@ -53,6 +58,9 @@ export default {
}
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
loginType
=
uni
.
getStorageSync
(
'loginType'
)
if
(
!
this
.
loginType
||
this
.
loginType
==
'visitor'
){
...
...
@@ -79,6 +87,33 @@ export default {
// #endif
},
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
()
{
console
.
log
(
'背景图片加载完成'
);
...
...
myPackageA/product-list/commission-detail.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTipRef"
/>
<!-- 水印容器 -->
<view
class=
"watermark-container"
>
<view
class=
"watermark"
v-for=
"i in 24"
:key=
"i"
>
...
...
@@ -124,10 +126,12 @@
import
{
ref
,
onMounted
,
computed
}
from
'vue'
import
{
useRouter
,
useRoute
}
from
'vue-router'
;
import
api
from
'@/api/api'
;
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
// 默认最大年份是5
const
maxYears
=
ref
(
5
)
let
restrictedTipRef
=
ref
()
// 获取指定年份的佣金率
const
getCommissionRate
=
(
plan
,
year
)
=>
{
const
rate
=
plan
.
termRateResponseList
.
find
(
item
=>
item
.
issueNumber
===
year
)
...
...
@@ -190,7 +194,37 @@ const fetchRateData = async () => {
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
(()
=>
{
userId
.
value
=
uni
.
getStorageSync
(
'cffp_userId'
)
||
''
...
...
myPackageA/product-list/product-commission.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTipRef"
/>
<!-- 搜索区域 -->
<view
class=
"search-box"
>
<input
...
...
@@ -53,13 +55,15 @@
<
script
setup
>
import
{
ref
,
computed
,
onMounted
}
from
'vue'
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
;
import
api
from
'@/api/api'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
// 响应式数据
const
searchKeyword
=
ref
(
''
)
const
products
=
ref
([])
const
loading
=
ref
(
false
)
const
tips
=
ref
(
'无默认产品,请输入产品名称进行查询'
)
let
restrictedTipRef
=
ref
()
// 方法
const
handleSearch
=
()
=>
{
// 实际项目中可以添加防抖
...
...
@@ -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
)
=>
{
if
(
!
searchKeyword
.
value
){
...
...
@@ -115,7 +144,11 @@ const fetchProducts = async (type=0) => {
loading
.
value
=
false
}
}
onShow
(()
=>
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
queryInfo
()
}
})
// 生命周期
onMounted
(()
=>
{
})
...
...
myPackageA/product-list/product-list.vue
View file @
d7a93dcd
This diff is collapsed.
Click to expand it.
myPackageA/ruleAndContract/cancelProtocol.vue
View file @
d7a93dcd
...
...
@@ -2,6 +2,8 @@
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"header"
>
<text
class=
"title"
>
合伙人解约协议
</text>
</view>
...
...
@@ -107,14 +109,51 @@
</
template
>
<
script
>
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
restrictedTip
,
},
data
()
{
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
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
myPackageA/ruleAndContract/clause.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
v-if=
"isBack !=1"
></text>
<!-- #endif -->
...
...
@@ -288,6 +290,8 @@
<
script
>
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
data
(){
return
{
...
...
@@ -296,12 +300,15 @@
isBack
:
null
}
},
components
:{},
components
:{
restrictedTip
,
},
onLoad
(
options
)
{
this
.
type
=
options
.
type
;
this
.
isBack
=
options
.
isBack
},
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -310,6 +317,33 @@
},
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
()
{
const
phoneNumber
=
'400-921-9290'
;
...
...
myPackageA/ruleAndContract/taxRules.vue
View file @
d7a93dcd
<
template
>
<view
class=
""
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"content_wrapper"
>
<h4
style=
"font-size: 28rpx;"
>
劳务报酬税缴纳规则
</h4>
<view
class=
"content"
>
...
...
@@ -57,6 +59,8 @@
</
template
>
<
script
>
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
(){
...
...
@@ -64,8 +68,11 @@
}
},
components
:{},
components
:{
restrictedTip
,
},
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -73,7 +80,33 @@
// #endif
},
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
>
...
...
myPackageA/setting/logOff.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"wapper"
>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
...
...
@@ -78,8 +80,9 @@
import
eSignature
from
'@/components/eSignature/eSignature.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
eSignature
,
everyJoinPopup
},
components
:{
eSignature
,
everyJoinPopup
,
restrictedTip
,
},
data
()
{
return
{
mobile
:
''
,
...
...
@@ -100,6 +103,9 @@
},
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
let
dataForm
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
mobile
=
dataForm
.
mobile
this
.
lockScroll
()
...
...
@@ -123,6 +129,33 @@
uni
.
hideToast
();
},
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
)
{
this
.
signatureError
=
error
;
...
...
pages/afterSaleDetail/afterSaleDetail.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<view
class=
"top"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
...
...
@@ -79,8 +81,9 @@
import
api
from
"@/api/api"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
courseItem
},
components
:{
courseItem
,
restrictedTip
,
},
data
()
{
return
{
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
...
...
@@ -97,6 +100,33 @@
};
},
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
(){
uni
.
navigateBack
({
delta
:
1
...
...
@@ -149,6 +179,9 @@
this
.
userAfterSalesDtl
()
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
pages/afterSales/afterSales.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<view
class=
"top"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
...
...
@@ -27,9 +29,11 @@
import
api
from
"@/api/api"
;
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
courseItem
courseItem
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -39,6 +43,33 @@
};
},
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
(){
uni
.
navigateBack
({
delta
:
1
...
...
@@ -73,6 +104,9 @@
this
.
userAfterSales
()
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
pages/applyDropClass/applyDropClass.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
style=
"flex: 1;"
>
<view
class=
"classInfo"
style=
"padding-top:80rpx"
>
<!-- #ifdef APP -->
...
...
@@ -87,10 +89,12 @@
import
commonSelect
from
'@/components/commonSelect/commonSelect.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
courseItem
,
commonSelect
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -108,6 +112,33 @@
};
},
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
()
{
uni
.
navigateBack
({
delta
:
1
...
...
@@ -226,6 +257,9 @@
this
.
dropOptionsQuery
()
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
this
.
userRefundCourseDtl
();
// #ifdef H5
initJssdkShare
(()
=>
{
...
...
pages/commonDetail/commonDetail.vue
View file @
d7a93dcd
<
template
>
<view>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"top: 20rpx;"
@
click=
"goBack()"
></text>
<!-- #endif -->
...
...
@@ -15,10 +17,11 @@
// import myListItem from "@/components/my-list-item/my-list-item.vue";
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
//
components:{
// myListItem
//
},
components
:{
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -34,6 +37,39 @@
}
},
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
()
{
uni
.
navigateBack
({
delta
:
1
...
...
@@ -78,6 +114,9 @@
this
.
queryDate
=
option
.
queryDate
;
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
pages/courseDetail/courseDetail.vue
View file @
d7a93dcd
...
...
@@ -1169,9 +1169,19 @@
const
cffp_userInfo
=
{
...
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
))
this
.
realName
=
res
.
data
.
realName
;
//
this.realName = res.data.realName;
}
})
},
...
...
@@ -1353,35 +1363,6 @@
// 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
()
{
let
currentUrl
=
``
;
...
...
@@ -1458,10 +1439,10 @@
this
.
getshareData
()
}
let
dataForm
=
JSON
.
parse
(
JSON
.
stringify
(
uni
.
getStorageSync
(
'cffp_userInfo'
)))
this
.
realName
=
dataForm
.
realName
;
if
(
!
this
.
realName
)
{
this
.
queryInfo
();
}
//
this.realName = dataForm.realName;
//
if (!this.realName) {
//
this.queryInfo();
//
}
// this.switchTab(1);
},
...
...
@@ -1484,7 +1465,9 @@
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
}
this
.
userId
=
uni
.
getStorageSync
(
'cffp_userId'
)
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
pages/courselist/courselist.vue
View file @
d7a93dcd
...
...
@@ -243,6 +243,9 @@
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
}
this
.
userId
=
uni
.
getStorageSync
(
'cffp_userId'
)
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -741,7 +744,34 @@
wx
.
miniProgram
.
navigateBack
({
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
()
{
...
...
pages/index/index.vue
View file @
d7a93dcd
...
...
@@ -375,9 +375,20 @@
// 保存用户得个人信息
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'
)
}
this
.
userInfo
=
cffp_userInfo
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
uni
.
setStorageSync
(
'user_mobile'
,
res
.
data
.
mobile
)
...
...
@@ -786,6 +797,16 @@
}
api
.
loginVerification
(
params
).
then
((
res
)
=>
{
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
(
'loginType'
,
'codelogin'
);
uni
.
setStorageSync
(
'cffp_userId'
,
JSON
.
stringify
(
res
.
data
.
userId
));
...
...
pages/inviteJoin/inviteJoin.vue
View file @
d7a93dcd
<
template
>
<view
class=
"padding-top container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
></text>
<!-- #endif -->
...
...
@@ -123,11 +125,13 @@
import
loadingIcon
from
'@/components/loading/loading.vue'
;
import
ShareGuide
from
'@/components/ShareGuide/ShareGuide.vue'
;
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:
{
sharePosterPop
,
loadingIcon
,
ShareGuide
ShareGuide
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -195,6 +199,9 @@
this
.
isLoading
=
false
this
.
posterImg
=
''
this
.
generatedImage
=
''
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -616,7 +623,34 @@
closePoster
()
{
this
.
posterImg
=
''
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
>
...
...
pages/lanch/index.vue
View file @
d7a93dcd
<
template
>
<view
class=
"loadTxt"
>
Loading...
</view>
<view
class=
""
>
<view
class=
"loadTxt"
>
Loading...
</view>
<restrictedTip
ref=
"restrictedTipRef"
/>
</view>
</
template
>
<
script
setup
>
...
...
@@ -9,8 +14,10 @@
import
*
as
environment
from
'@/environments/environment'
import
dataHandling
from
"@/util/dataHandling"
;
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
let
jumpInfo
=
ref
({})
let
dataToken
=
ref
()
let
restrictedTipRef
=
ref
()
onLoad
((
options
)
=>
{
jumpInfo
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
options
))
...
...
@@ -83,6 +90,16 @@
}
api
.
loginVerification
(
params
).
then
((
res
)
=>
{
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
(
'loginType'
,
'codelogin'
);
uni
.
setStorageSync
(
'cffp_userId'
,
res
.
data
.
userId
);
...
...
pages/myShare/myShare.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
""
>
<!-- 时间选择 -->
<view
class=
"timeSelectContent"
>
...
...
@@ -96,6 +98,7 @@
import
CommonTimePicker
from
'@/components/commonTimePicker/commonTimePicker.vue'
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
{
fmdata
}
from
'@/util/currentDate.js'
...
...
@@ -103,7 +106,8 @@
components
:
{
courseItem
,
CommonTimePicker
,
JoinPopup
JoinPopup
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -125,6 +129,33 @@
}
},
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
(){
dataHandling
.
pocessTracking
(
...
...
@@ -234,6 +265,9 @@
this
.
userShareQuery
();
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
pages/orderConfirm/orderConfirm.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
style=
"flex: 1;"
>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
...
...
@@ -184,9 +186,11 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:
{
courseItem
courseItem
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -237,7 +241,33 @@
},
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
()
{
uni
.
navigateBack
({
delta
:
1
...
...
@@ -628,6 +658,9 @@
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
pages/orderDetail/orderDetail.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
...
...
@@ -43,7 +45,11 @@
import
common
from
"@/common/common"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
restrictedTip
,
},
data
()
{
return
{
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
...
...
@@ -163,6 +169,33 @@
};
},
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
()
{
uni
.
navigateBack
({
delta
:
1
...
...
@@ -234,6 +267,9 @@
this
.
commissionType
=
option
.
commissionType
;
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
pages/orderStatus/orderStatus.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"statusBox"
>
<view
class=
"successBox"
v-if=
"orderStatus=='2'"
>
<i
class=
"iconfont icon-dengdai"
></i>
...
...
@@ -59,8 +61,9 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
wx
from
'weixin-js-sdk'
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
tabBar
,
courseItem
},
components
:{
tabBar
,
courseItem
,
restrictedTip
,
},
data
()
{
return
{
cffpCourseInfos
:[],
...
...
@@ -75,6 +78,9 @@
};
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -98,6 +104,33 @@
}
},
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
()
{
api
.
querySystemMessage
({
systemType
:
1
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
if
(
res
[
'success'
]
&&
res
[
'data'
][
'dataList'
].
length
>
0
)
{
...
...
pages/personalCenter/accountoperation/aboutcffp.vue
View file @
d7a93dcd
<
template
>
<view
class=
"content"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<!-- #endif -->
...
...
@@ -36,9 +38,14 @@
</
template
>
<
script
>
import
api
from
"@/api/api"
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
restrictedTip
,
},
data
()
{
return
{
companyType
:
companyInfo
.
companyType
,
...
...
@@ -61,6 +68,9 @@
}
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
if
(
this
.
companyType
==
'1'
){
this
.
companyLogo
=
'../../../static/myteam/Group1633.png'
;
}
else
if
(
this
.
companyType
==
'2'
){
...
...
@@ -73,6 +83,33 @@
// #endif
},
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
()
{
uni
.
navigateBack
({
delta
:
1
...
...
pages/personalCenter/detail.vue
View file @
d7a93dcd
This diff is collapsed.
Click to expand it.
pages/personalCenter/helpCenter.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
...
...
@@ -51,9 +53,14 @@
</
template
>
<
script
>
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
questionsData
from
"@/util/questions"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
restrictedTip
,
},
data
()
{
return
{
tabList
:[
...
...
@@ -67,6 +74,9 @@
}
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -81,6 +91,33 @@
}
},
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
){
this
.
currentTab
=
item
.
id
},
...
...
pages/personalCenter/myTeam.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"myHeader"
>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
...
...
@@ -138,10 +140,12 @@
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
BootPage
from
"@/components/bootpage/bootpage.vue"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:
{
CommonTimePicker
,
BootPage
BootPage
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -281,6 +285,9 @@
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -288,7 +295,33 @@
// #endif
},
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
)
{
this
.
currentFilterBtn
=
obj
.
id
this
.
CffpOrgInfoReqVO
.
sortType
=
obj
.
sortType
...
...
pages/personalCenter/myTeamIncubate.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"myHeader"
>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
...
...
@@ -120,9 +122,11 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:
{
CommonTimePicker
CommonTimePicker
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -208,6 +212,9 @@
this
.
getqueryTeamAchievement
()
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -215,6 +222,33 @@
// #endif
},
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
)
{
this
.
currentFilterBtn
=
obj
.
id
this
.
getqueryTeamAchievement
()
...
...
pages/personalCenter/personalCenter.vue
View file @
d7a93dcd
...
...
@@ -850,6 +850,16 @@
// 检查名片状态
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的权限设置
// 执行处理
...
...
pages/personalCenter/system/accontsetting.vue
View file @
d7a93dcd
<
template
>
<view
style=
"display: flex;flex-direction: column;"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<!-- #endif -->
...
...
@@ -15,9 +17,12 @@
<
script
>
import
MenuList
from
"@/components/menuList/menuList.vue"
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
api
from
"@/api/api"
;
export
default
{
components
:{
MenuList
MenuList
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -50,6 +55,9 @@
}
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
if
(
this
.
userInfo
.
partnerIsActive
&&
this
.
userInfo
.
partnerIsActive
==
2
){
this
.
minorMenuLists
.
forEach
(
item
=>
{
...
...
@@ -65,6 +73,33 @@
// #endif
},
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
()
{
uni
.
navigateBack
({
delta
:
1
...
...
pages/personalCenter/system/menulist.vue
View file @
d7a93dcd
<
template
>
<view>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"personalInfo"
>
<view
class=
"ulBox"
>
<view
v-for=
"item in menuList.filter(v=>v.isShow)"
:key=
"item.title"
@
click=
"goDetail(item)"
...
...
@@ -20,7 +22,12 @@
<
script
>
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
restrictedTip
,
},
props
:
{
menuList
:
{
type
:
Array
...
...
@@ -30,6 +37,9 @@
return
{}
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -43,6 +53,33 @@
uni
.
hideToast
();
},
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
)
{
if
(
item
.
isShow
==
true
&&
item
.
isOpen
==
true
)
{
if
(
item
.
isTips
==
true
)
{
...
...
pages/personalCenter/system/settings.vue
View file @
d7a93dcd
<
template
>
<view
style=
"display: flex;flex-direction: column;"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 10rpx;"
></text>
<!-- #endif -->
...
...
@@ -22,8 +24,10 @@
import
{
companyInfo
}
from
"@/environments/environment"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
MenuList
},
components
:{
MenuList
,
restrictedTip
,
},
data
()
{
return
{
menuList
:
null
,
...
...
@@ -55,6 +59,9 @@
}
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -75,6 +82,33 @@
uni
.
hideToast
();
},
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
(){
uni
.
switchTab
({
url
:
'/pages/personalCenter/personalCenter'
...
...
pages/personalCenter/user-information.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"userHeader"
>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"left: 20rpx;"
></text>
...
...
@@ -127,6 +128,7 @@
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
commonSelect
from
'@/components/commonSelect/commonSelect.vue'
;
import
PartnerTipPopup
from
"@/components/commonPopup/PartnerTipPopup.vue"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
data
()
{
return
{
...
...
@@ -155,7 +157,8 @@
},
components
:
{
commonSelect
,
PartnerTipPopup
PartnerTipPopup
,
restrictedTip
,
},
onLoad
(
options
)
{
if
(
this
.
companyType
==
'1'
){
...
...
@@ -174,6 +177,9 @@
// this.optionForm = this.tempInfo.optionForm = JSON.parse(options.customerBasicInfo)
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -182,6 +188,33 @@
this
.
getIdType
()
},
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
(){
// 使用深拷贝还原数据
this
.
optionForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tempInfo
.
optionForm
));
...
...
@@ -419,7 +452,7 @@
position
:
absolute
;
bottom
:
15%
;
left
:
14%
;
z-index
:
99
;
z-index
:
11
;
.add{
position
:
absolute
;
bottom
:
2%
;
...
...
pages/pointsExchange/pointsExchange.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
:style=
"cffpFortuneDateList.length>6?'height:auto':'height:100vh'"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<view
class=
"backArrow"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
style=
"left: 5rpx;"
@
click=
"goBack()"
></text>
...
...
@@ -125,6 +127,7 @@
import
CustomDatePop
from
'./customDatePop.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
let
nowTime
=
dataHandling
.
getMonthRange
(
dataHandling
.
getDateParts
().
year
,
dataHandling
.
getDateParts
().
month
)
export
default
{
data
()
{
...
...
@@ -170,7 +173,7 @@
showWithdrawal
:
true
}
},
components
:
{
CustomDatePop
},
components
:
{
CustomDatePop
,
restrictedTip
,
},
onLoad
()
{
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
// 经销商职级p3之上的都不给提现
...
...
@@ -183,6 +186,9 @@
this
.
queryByUserIdFortuneStatistic
();
this
.
getCommissionType
()
this
.
getDetail
()
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -360,7 +366,34 @@
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
>
...
...
pages/product/product.vue
View file @
d7a93dcd
...
...
@@ -34,6 +34,7 @@
import
tabBar
from
'../../components/tabBar/tabBar.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
api
from
'../../api/api'
;
export
default
{
data
()
{
return
{
...
...
@@ -78,6 +79,9 @@
restrictedTip
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -121,7 +125,34 @@
}
else
{
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
>
...
...
pages/saleCourseLists/saleCourseLists.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view>
<!-- 时间选择 -->
<view
class=
"top"
>
...
...
@@ -116,11 +118,13 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
courseItem
,
CommonTimePicker
,
JoinPopup
JoinPopup
,
restrictedTip
,
},
data
()
{
return
{
...
...
@@ -252,7 +256,35 @@
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
)
{
if
(
options
.
partnerType
){
this
.
partnerType
=
options
.
partnerType
...
...
@@ -265,6 +297,9 @@
let
app22
=
getCurrentPages
().
length
this
.
userCourseCount
()
this
.
userCourseList
()
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
pages/systemMsg/system_msg.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"top"
>
<!-- #ifdef APP -->
<view
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></view>
...
...
@@ -39,7 +41,11 @@
<
script
>
import
api
from
'../../api/api'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
restrictedTip
,
},
data
(){
return
{
system_msgs_list
:[],
...
...
@@ -49,6 +55,9 @@
this
.
querySystemMessage
();
},
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
this
.
querySystemMessage
();
// #ifdef H5
initJssdkShare
(()
=>
{
...
...
@@ -57,6 +66,33 @@
// #endif
},
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
()
{
api
.
querySystemMessage
({
systemType
:
1
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
)}).
then
(
res
=>
{
if
(
res
[
'success'
]
&&
res
[
'data'
][
'dataList'
]
&&
res
[
'data'
][
'dataList'
].
length
>
0
)
{
...
...
pages/systemMsg/system_msg_detail.vue
View file @
d7a93dcd
<
template
>
<!-- #ifdef APP -->
<view
class=
"top"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
<text
class=
"commonTitle"
>
消息详情
</text>
</view>
<!-- #endif -->
<view
class=
"announcement_detail_wrapper container"
>
<view
class=
"content"
>
<view
class=
"title"
>
{{
systemMsgInfo
.
title
}}
</view>
<view
class=
"date"
>
发布时间:
{{
systemMsgInfo
.
createdAt
}}
<view
class=
""
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<view
class=
"top"
>
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
></text>
<text
class=
"commonTitle"
>
消息详情
</text>
</view>
<!-- #endif -->
<view
class=
"announcement_detail_wrapper container"
>
<view
class=
"content"
>
<view
class=
"title"
>
{{
systemMsgInfo
.
title
}}
</view>
<view
class=
"date"
>
发布时间:
{{
systemMsgInfo
.
createdAt
}}
</view>
<view
style=
"font-size: 25rpx;"
v-html=
"systemMsgInfo.context"
></view>
</view>
<view
style=
"font-size: 25rpx;"
v-html=
"systemMsgInfo.context"
></view>
</view>
</view>
</
template
>
<
script
>
import
api
from
"../../api/api"
;
import
common
from
'../../common/common'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
data
(){
return
{
...
...
@@ -35,12 +41,15 @@
}
},
name
:
'system_msg_detail'
,
components
:{},
components
:{
restrictedTip
,
},
onLoad
(
options
){
this
.
id
=
options
.
id
;
this
.
getSystemMsgDetail
();
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -48,6 +57,33 @@
// #endif
},
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
(){
api
.
querySystemMessageDetail
({
systemMessageId
:
this
.
id
}).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
...
...
pages/taxRules/taxRules.vue
View file @
d7a93dcd
<
template
>
<view
class=
""
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"content_wrapper"
>
<h4
style=
"font-size: 28rpx;"
>
劳务报酬税缴纳规则
</h4>
<view
class=
"content"
>
...
...
@@ -58,14 +60,21 @@
<
script
>
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
api
from
"@/api/api"
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
restrictedTip
,
},
data
(){
return
{
}
},
components
:{},
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -73,7 +82,33 @@
// #endif
},
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
>
...
...
pages/withdrawal/withdrawal.vue
View file @
d7a93dcd
<
template
>
<view
class=
"container"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 20rpx;"
></text>
<!-- #endif -->
...
...
@@ -74,7 +76,11 @@
<
script
>
import
api
from
'../../api/api'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
restrictedTip
,
},
data
(){
return
{
exchangeAmount
:
null
,
...
...
@@ -93,6 +99,9 @@
this
.
goFortuneWithdrawal
()
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -100,6 +109,33 @@
// #endif
},
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
()
{
uni
.
navigateBack
({
delta
:
1
...
...
@@ -145,8 +181,9 @@
//支付宝去提现
aliWithdrawal
(){
this
.
readonlyFlag
=
true
;
let
aliWithdrawalResVOParam
=
{}
//#ifdef H5
let
aliWithdrawalResVOParam
=
{
aliWithdrawalResVOParam
=
{
...
this
.
aliWithdrawalResVO
,
dataSource
:
2
,
orderNo
:
this
.
partnerTradeNo
,
...
...
@@ -155,7 +192,7 @@
}
//#endif
// #ifdef APP-PLUS
let
aliWithdrawalResVOParam
=
{
aliWithdrawalResVOParam
=
{
...
this
.
aliWithdrawalResVO
,
dataSource
:
2
,
orderNo
:
this
.
partnerTradeNo
,
...
...
sfp/childEdu/childEdu.vue
View file @
d7a93dcd
<
template
>
<view>
<view
class=
"wrapper"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<!-- #endif -->
...
...
@@ -173,7 +175,14 @@
import
{
nanoid
}
from
"nanoid"
;
import
LEchart
from
'@/uni_modules/lime-echart/components/l-echart/l-echart.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
commonHead
,
foot
,
LEchart
,
restrictedTip
,
},
data
()
{
return
{
accountBalanceEnd
:[],
...
...
@@ -206,6 +215,9 @@
}
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -520,7 +532,34 @@
*/
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
()
{
...
...
@@ -530,11 +569,7 @@
val
[
'educationNo'
]
=
idx
+
1
;
});
},
components
:{
commonHead
,
foot
,
LEchart
}
}
</
script
>
...
...
sfp/dataImport/data-import.vue
View file @
d7a93dcd
<
template
>
<view
class=
"batchDataImportContainer"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"selectStepContainer"
>
<view
class=
"selectStepContent"
>
<text>
我想测算每隔
</text>
...
...
@@ -87,7 +89,11 @@
import
api
from
"../../api/api"
;
import
{
reactive
,
provide
}
from
"vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
components
:{
restrictedTip
,
},
data
()
{
return
{
index
:
0
,
...
...
@@ -110,6 +116,9 @@
this
.
calcuteData
=
uni
.
getStorageSync
(
'calcuteData'
)
?
JSON
.
parse
(
uni
.
getStorageSync
(
'calcuteData'
))
:
null
;
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -117,6 +126,33 @@
// #endif
},
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
){
this
.
index
=
e
.
detail
.
value
;
...
...
sfp/housePurchase/housePurchase.vue
View file @
d7a93dcd
<
template
>
<view
class=
"wrapper"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<!-- #endif -->
...
...
@@ -279,7 +281,7 @@
// import Echarts from '../../components/echarts/echarts'
import
LEchart
from
'@/uni_modules/lime-echart/components/l-echart/l-echart.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
data
(){
return
{
...
...
@@ -351,12 +353,16 @@
foot
,
commonHead
,
// Echarts
LEchart
LEchart
,
restrictedTip
,
},
onLoad
(){
this
.
provCityQry
();
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -364,6 +370,33 @@
// #endif
},
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
(){
uni
.
navigateBack
({
delta
:
1
...
...
sfp/housePurchase/loanBalance.vue
View file @
d7a93dcd
<
template
>
<div
class=
"mortgageCalculatorContainer"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<view
class=
"tabTitle"
v-if=
"!isReadonly"
>
<view
v-for=
"item of loanTypeLists"
>
<text
:class=
"
{ actived: item.value===loanType }" @click="selectLoanType(item.value)">
{{
item
.
text
}}
</text>
...
...
@@ -54,6 +56,8 @@
<
script
>
import
{
ref
,
toRefs
,
reactive
}
from
"vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
import
api
from
"@/api/api"
;
export
default
{
props
:
[
'isReadonly'
,
'loanType'
,
'a'
,
'b'
],
emits
:[
'getData'
],
...
...
@@ -91,9 +95,12 @@
},
name
:
'loanBalance'
,
components
:{
restrictedTip
,
},
onShow
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -126,6 +133,33 @@
}
},
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
(){
this
.
accumulationFundParams
=
[
{
id
:
'00'
,
text
:
'公积金贷款余额'
,
value
:
null
,
type
:
'digit'
,
unit
:
'元'
,
alias
:
'oldHouseLoanBalance'
},
...
...
sfp/housePurchase/planningParameters.vue
View file @
d7a93dcd
<
template
>
<view
class=
"paramsContainer"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<h5>
规划参数
<span>
(点击参数值即可修改参数)
</span></h5>
<view
class=
"ulBox"
>
<template
v-for=
"item in editParamLists"
>
...
...
@@ -38,6 +40,7 @@
import
api
from
'../../api/api'
;
import
common
from
'../../common/common'
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
props
:[
'cityInfo'
,
'planningParams'
],
emits
:[
'getData'
],
...
...
@@ -59,9 +62,12 @@
},
name
:
'planningParameters'
,
components
:{
restrictedTip
,
},
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
...
...
@@ -77,6 +83,33 @@
return
{
sendData
,
cityInfo
,
planningParams
}
},
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
)
{
// const value = e.detail.value;
},
...
...
sfp/index/index.vue
View file @
d7a93dcd
<
template
>
<!-- 已关注公众号用户 -->
<view
class=
"content"
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTip"
/>
<!-- #ifdef APP -->
<text
class=
"iconfont icon-youjiantou zuojiantou"
@
click=
"goBack()"
style=
"top: 30rpx;"
></text>
<!-- #endif -->
...
...
@@ -206,6 +208,7 @@
import
{
toRefs
,
ref
}
from
'vue'
;
import
commonHead
from
'../header/header.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
restrictedTip
from
'@/components/commonPopup/restrictedTip.vue'
;
export
default
{
data
()
{
return
{
...
...
@@ -236,7 +239,8 @@
components
:{
dataImport
,
foot
,
commonHead
commonHead
,
restrictedTip
,
},
onLoad
(
option
)
{
if
(
option
.
isBack
==
1
){
...
...
@@ -630,9 +634,39 @@
this
.
withdrawalType
=
'1'
;
this
.
irrAndSimple
=
{
nyear
:
undefined
,
cashValue
:
undefined
};
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
()
{
if
(
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
){
this
.
queryInfo
()
}
if
(
uni
.
getStorageSync
(
'resIrrAndSimpleResInfos'
)){
this
.
resIrrAndSimpleResInfos
=
uni
.
getStorageSync
(
'resIrrAndSimpleResInfos'
);
this
.
calcuteMethod
=
'2'
;
...
...
util/router.js
View file @
d7a93dcd
...
...
@@ -27,10 +27,11 @@ let shareCustomPageList = [
]
export
default
function
initApp
()
{
let
date
=
Date
.
now
()
uni
.
addInterceptor
(
'navigateTo'
,
{
// 页面跳转前进行拦截, invoke根据返回值进行判断是否继续执行跳转
invoke
(
e
)
{
let
userInfo
=
{}
if
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
{
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
...
...
@@ -81,13 +82,23 @@ export default function initApp() {
const
cffp_userInfo
=
{
...
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
))
}
})
}
if
(
userInfo
.
userIsActive
==
2
&&
uni
.
getStorageSync
(
'loginType'
)
==
'codelogin'
)
{
// 显示禁用用户弹窗
const
currentPage
=
getCurrentPages
()[
getCurrentPages
().
length
-
1
];
currentPage
.
$refs
.
restrictedTip
.
open
()
...
...
@@ -140,9 +151,14 @@ export default function initApp() {
success
(
e
)
{}
})
uni
.
addInterceptor
(
'switchTab'
,
{
// tabbar页面跳转前进行拦截
invoke
(
e
)
{
// 账号禁用用户不让跳转
if
(
uni
.
getStorageSync
(
'userIsActive'
)
&&
uni
.
getStorageSync
(
'userIsActive'
)
==
2
){
return
false
}
if
(
shareCustomPageList
.
indexOf
(
e
.
url
)
==
-
1
)
{
if
(
dataHandling
.
h5RuntimeEnv
()
==
'wechat-miniprogram'
)
{
let
shareInfo
=
{
...
...
@@ -163,27 +179,6 @@ export default function initApp() {
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
)
{
//如果时间戳存在 那么记录此页面的停留时间
dataHandling
.
pocessTracking
(
...
...
@@ -201,6 +196,11 @@ export default function initApp() {
uni
.
addInterceptor
(
'reLaunch'
,
{
//页面跳转前拦截
invoke
(
e
)
{
// 账号禁用用户不让跳转
if
(
uni
.
getStorageSync
(
'userIsActive'
)
&&
uni
.
getStorageSync
(
'userIsActive'
)
==
2
){
return
false
}
if
(
shareCustomPageList
.
indexOf
(
e
.
url
)
==
-
1
)
{
if
(
dataHandling
.
h5RuntimeEnv
()
==
'wechat-miniprogram'
)
{
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