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
Show whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
1576 additions
and
109 deletions
+1576
-109
App.vue
+10
-0
components/bootpage/bootpage.vue
+1
-0
components/commonPopup/restrictedTip.vue
+18
-6
myPackageA/commission/withdrawalRecord.vue
+34
-1
myPackageA/myTeam/myTeam.vue
+35
-1
myPackageA/poster/poster.vue
+37
-2
myPackageA/product-list/commission-detail.vue
+35
-1
myPackageA/product-list/product-commission.vue
+35
-2
myPackageA/product-list/product-list.vue
+40
-3
myPackageA/ruleAndContract/cancelProtocol.vue
+39
-0
myPackageA/ruleAndContract/clause.vue
+35
-1
myPackageA/ruleAndContract/taxRules.vue
+34
-1
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
+30
-0
pages/index/index.vue
+21
-0
pages/inviteJoin/inviteJoin.vue
+35
-1
pages/lanch/index.vue
+17
-0
pages/myShare/myShare.vue
+35
-1
pages/orderConfirm/orderConfirm.vue
+34
-1
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
+34
-1
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
+34
-1
pages/product/product.vue
+31
-0
pages/saleCourseLists/saleCourseLists.vue
+36
-1
pages/systemMsg/system_msg.vue
+36
-0
pages/systemMsg/system_msg_detail.vue
+37
-1
pages/taxRules/taxRules.vue
+36
-1
pages/withdrawal/withdrawal.vue
+39
-2
sfp/childEdu/childEdu.vue
+40
-5
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
+35
-1
util/router.js
+23
-23
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=
""
>
<!-- 禁用弹窗 -->
<restrictedTip
ref=
"restrictedTipRef"
/>
<scroll-view
@
scroll=
"handleScroll"
scroll-y=
"true"
class=
"scroll-Y"
>
<view
class=
"product-list-page"
>
<view
class=
"product-list-page"
>
<!-- 顶部搜索和筛选 -->
<!-- 顶部搜索和筛选 -->
<view
class=
"search-bar"
>
<view
class=
"search-bar"
>
...
@@ -138,17 +141,20 @@
...
@@ -138,17 +141,20 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</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,6 +308,37 @@ const productTypes = ref([]);
...
@@ -302,6 +308,37 @@ 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
)
=>
{
...
...
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,8 +744,35 @@
...
@@ -741,8 +744,35 @@
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
()
{
this
.
fileUploadItemCFFPList
=
uni
.
getStorageSync
(
'fileUploadItemCFFPList'
);
this
.
fileUploadItemCFFPList
=
uni
.
getStorageSync
(
'fileUploadItemCFFPList'
);
...
...
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=
""
>
<view
class=
"loadTxt"
>
Loading...
</view>
<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
This diff is collapsed.
Click to expand it.
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
>
<view
class=
""
>
<!-- 禁用弹窗 -->
<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>
...
@@ -17,12 +20,15 @@
...
@@ -17,12 +20,15 @@
<view
style=
"font-size: 25rpx;"
v-html=
"systemMsgInfo.context"
></view>
<view
style=
"font-size: 25rpx;"
v-html=
"systemMsgInfo.context"
></view>
</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,8 +82,34 @@
...
@@ -73,8 +82,34 @@
// #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,8 +532,35 @@
...
@@ -520,8 +532,35 @@
*/
*/
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
()
{
this
.
dataTree
=
JSON
.
parse
(
JSON
.
stringify
(
eduGradeLists
));
this
.
dataTree
=
JSON
.
parse
(
JSON
.
stringify
(
eduGradeLists
));
...
@@ -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
...
@@ -31,6 +31,7 @@ export default function initApp() {
...
@@ -31,6 +31,7 @@ export default function initApp() {
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