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
b192b832
Commit
b192b832
authored
Jul 29, 2025
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全局分享已做好发布测试
parent
9d988583
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
309 additions
and
24 deletions
+309
-24
myPackageA/applyFranchise/applyFranchise.vue
+6
-1
myPackageA/login/login.vue
+6
-0
myPackageA/poster/poster.vue
+6
-0
myPackageA/ruleAndContract/cancelProtocol.vue
+8
-0
myPackageA/ruleAndContract/clause.vue
+8
-3
myPackageA/ruleAndContract/taxRules.vue
+7
-2
myPackageA/setting/logOff.vue
+6
-0
pages/afterSaleDetail/afterSaleDetail.vue
+8
-0
pages/afterSales/afterSales.vue
+9
-1
pages/applyDropClass/applyDropClass.vue
+6
-0
pages/commonDetail/commonDetail.vue
+8
-0
pages/courseDetail/courseDetail.vue
+6
-1
pages/courselist/courselist.vue
+6
-0
pages/index/index.vue
+2
-2
pages/inviteJoin/inviteJoin.vue
+8
-2
pages/myShare/myShare.vue
+8
-0
pages/orderConfirm/orderConfirm.vue
+8
-1
pages/orderDetail/orderDetail.vue
+8
-0
pages/orderStatus/orderStatus.vue
+6
-0
pages/personalCenter/accountoperation/aboutcffp.vue
+6
-0
pages/personalCenter/helpCenter.vue
+8
-0
pages/personalCenter/myTeam.vue
+8
-0
pages/personalCenter/myTeamIncubate.vue
+8
-0
pages/personalCenter/personalCenter.vue
+4
-0
pages/personalCenter/system/accontsetting.vue
+8
-1
pages/personalCenter/system/menulist.vue
+8
-0
pages/personalCenter/system/settings.vue
+8
-0
pages/personalCenter/user-information.vue
+8
-0
pages/pointsExchange/pointsExchange.vue
+6
-1
pages/product/product.vue
+8
-0
pages/saleCourseLists/saleCourseLists.vue
+6
-0
pages/systemMsg/system_msg.vue
+6
-0
pages/systemMsg/system_msg_detail.vue
+8
-0
pages/taxRules/taxRules.vue
+7
-2
pages/withdrawal/withdrawal.vue
+8
-0
sfp/childEdu/childEdu.vue
+8
-1
sfp/dataImport/data-import.vue
+8
-0
sfp/housePurchase/housePurchase.vue
+8
-0
sfp/housePurchase/loanBalance.vue
+8
-0
sfp/housePurchase/planningParameters.vue
+7
-1
sfp/index/index.vue
+6
-1
util/fiveshare.ts
+14
-3
util/router.js
+5
-1
No files found.
myPackageA/applyFranchise/applyFranchise.vue
View file @
b192b832
...
...
@@ -118,6 +118,7 @@
import
*
as
environment
from
"@/environments/environment"
;
import
common
from
'@/common/common'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
everyJoinPopup
,
...
...
@@ -189,7 +190,11 @@
if
(
!
this
.
inviteUserId
&&
this
.
loginType
==
'codelogin'
&&!
this
.
form
.
nickName
){
this
.
queryInfo
()
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:
{
getqueryById
(
shareId
){
...
...
myPackageA/login/login.vue
View file @
b192b832
...
...
@@ -60,6 +60,7 @@
import
api
from
'../../api/api'
;
import
common
from
'../../common/common'
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -359,6 +360,11 @@
},
onShow
()
{
this
.
checkToken
();
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
destroyed
()
{
uni
.
hideToast
();
...
...
myPackageA/poster/poster.vue
View file @
b192b832
...
...
@@ -36,6 +36,7 @@ import * as environment from "@/environments/environment";
import
UQRCode
from
'uqrcodejs'
;
import
{
elementToImage
}
from
'@/util/htmlToImage'
;
import
registerBg
from
'@/static/registerBg.png'
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
...
...
@@ -75,6 +76,11 @@ export default {
// 开始加载背景图片(由@load事件触发后续流程)
console
.
log
(
'开始加载背景图片...'
);
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:
{
// 背景图片加载成功
...
...
myPackageA/ruleAndContract/cancelProtocol.vue
View file @
b192b832
...
...
@@ -81,11 +81,19 @@
</
template
>
<
script
>
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
}
},
onShow
(){
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
}
}
</
script
>
...
...
myPackageA/ruleAndContract/clause.vue
View file @
b192b832
...
...
@@ -287,6 +287,7 @@
<
script
>
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
(){
return
{
...
...
@@ -300,10 +301,14 @@
this
.
type
=
options
.
type
;
this
.
isBack
=
options
.
isBack
},
// onLoad(options){
onShow
(){
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
// },
},
methods
:{
callCustomerService
()
{
const
phoneNumber
=
'400-921-9290'
;
...
...
myPackageA/ruleAndContract/taxRules.vue
View file @
b192b832
...
...
@@ -57,6 +57,7 @@
</
template
>
<
script
>
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
(){
return
{
...
...
@@ -64,8 +65,12 @@
}
},
components
:{},
onLoad
(){
onShow
(){
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
...
...
myPackageA/setting/logOff.vue
View file @
b192b832
...
...
@@ -76,6 +76,7 @@
import
everyJoinPopup
from
"@/components/commonPopup/everyJoinPopup.vue"
;
import
eSignature
from
'@/components/eSignature/eSignature.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
eSignature
,
everyJoinPopup
},
data
()
{
...
...
@@ -100,6 +101,11 @@
},
onShow
(){
this
.
lockScroll
()
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
beforeDestroy
()
{
console
.
log
(
'组件销毁'
);
...
...
pages/afterSaleDetail/afterSaleDetail.vue
View file @
b192b832
...
...
@@ -78,6 +78,7 @@
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
import
api
from
"@/api/api"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
courseItem
},
data
()
{
...
...
@@ -147,6 +148,13 @@
this
.
afterSalesFlag
=
option
.
afterSalesFlag
;
this
.
userAfterSalesDtl
()
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
mounted
()
{
}
...
...
pages/afterSales/afterSales.vue
View file @
b192b832
...
...
@@ -26,6 +26,7 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
api
from
"@/api/api"
;
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
courseItem
...
...
@@ -70,7 +71,14 @@
},
onLoad
()
{
this
.
userAfterSales
()
}
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
}
</
script
>
...
...
pages/applyDropClass/applyDropClass.vue
View file @
b192b832
...
...
@@ -86,6 +86,7 @@
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
import
commonSelect
from
'@/components/commonSelect/commonSelect.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
courseItem
,
...
...
@@ -223,6 +224,11 @@
},
onShow
()
{
this
.
userRefundCourseDtl
();
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
}
}
</
script
>
...
...
pages/commonDetail/commonDetail.vue
View file @
b192b832
...
...
@@ -14,6 +14,7 @@
<
script
>
// import myListItem from "@/components/my-list-item/my-list-item.vue";
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
// components:{
// myListItem
...
...
@@ -76,6 +77,13 @@
this
.
readId
=
option
.
readId
;
this
.
queryDate
=
option
.
queryDate
;
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
mounted
()
{
if
(
this
.
type
==
'1'
){
this
.
typeName
=
'分享'
;
...
...
pages/courseDetail/courseDetail.vue
View file @
b192b832
...
...
@@ -194,7 +194,7 @@
import
{
nanoid
}
from
'nanoid'
;
import
common
from
'../../common/common'
;
import
{
baseURL
,
apiURL
,
cffpURL
,
companyInfo
,
shareURL
}
from
"@/environments/environment"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:
{
UniShareWx
,
...
...
@@ -1030,6 +1030,11 @@
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
}
this
.
userId
=
uni
.
getStorageSync
(
'cffp_userId'
)
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
mounted
()
{
let
_this
=
this
;
...
...
pages/courselist/courselist.vue
View file @
b192b832
...
...
@@ -102,6 +102,7 @@
</
template
>
<
script
>
import
BootPage
from
"@/components/bootpage/bootpage.vue"
;
import
PartnerTipPopup
from
"@/components/commonPopup/PartnerTipPopup.vue"
;
import
api
from
"../../api/api"
;
...
...
@@ -174,6 +175,11 @@
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
}
this
.
userId
=
uni
.
getStorageSync
(
'cffp_userId'
)
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
created
(){
this
.
queryName
=
uni
.
getStorageSync
(
'queryName'
)
||
''
;
...
...
pages/index/index.vue
View file @
b192b832
...
...
@@ -351,9 +351,9 @@
link
:
currentUrl
,
imgUrl
:
`
${
shareURL
}
/static/images/shareBg.png`
};
// shareData
initJssdkShare
(()
=>
{
setWechatShare
(
shareData
);
setWechatShare
();
},
window
.
location
.
href
.
split
(
'#'
)[
0
]);
// #endif
...
...
pages/inviteJoin/inviteJoin.vue
View file @
b192b832
...
...
@@ -154,9 +154,8 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
api
from
"@/api/api"
import
common
from
'../../common/common'
;
import
{
hshare
}
from
'@/util/fiveshare'
;
import
{
hshare
,
setWechatShare
,
initJssdkShare
}
from
'@/util/fiveshare'
;
import
{
baseURL
,
apiURL
,
cffpURL
,
companyInfo
,
shareURL
}
from
"@/environments/environment"
;
export
default
{
data
()
{
return
{
...
...
@@ -207,6 +206,13 @@
this
.
queryInfo
();
}
},
onShow
(){
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:
{
goBack
()
{
uni
.
navigateBack
({
...
...
pages/myShare/myShare.vue
View file @
b192b832
...
...
@@ -95,6 +95,7 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
CommonTimePicker
from
'@/components/commonTimePicker/commonTimePicker.vue'
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
import
{
fmdata
}
from
'@/util/currentDate.js'
...
...
@@ -232,6 +233,13 @@
this
.
userShareCount
();
this
.
userShareQuery
();
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
mounted
()
{
}
...
...
pages/orderConfirm/orderConfirm.vue
View file @
b192b832
...
...
@@ -177,6 +177,7 @@
import
{
apiURL
,
companyInfo
}
from
"@/environments/environment"
;
import
{
nextTick
}
from
"vue"
;
import
common
from
'../../common/common'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:
{
courseItem
...
...
@@ -531,7 +532,13 @@
this
.
courseDetailLoad
(
option
);
}
},
mounted
()
{}
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
}
</
script
>
...
...
pages/orderDetail/orderDetail.vue
View file @
b192b832
...
...
@@ -42,6 +42,7 @@
import
api
from
"@/api/api"
;
import
common
from
"@/common/common"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -232,6 +233,13 @@
this
.
Withdrawal
=
option
.
Withdrawal
this
.
commissionType
=
option
.
commissionType
;
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
mounted
()
{
uni
.
showLoading
({
title
:
'加载中...'
...
...
pages/orderStatus/orderStatus.vue
View file @
b192b832
...
...
@@ -56,6 +56,7 @@
import
{
apiURL
}
from
"@/environments/environment"
;
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
import
tabBar
from
'../../components/tabBar/tabBar.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
tabBar
,
courseItem
},
data
()
{
...
...
@@ -71,6 +72,11 @@
};
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
// let loginType = uni.getStorageSync('loginType')
// if(loginType !== "visitor" ){
// this.querySystemMessage()
...
...
pages/personalCenter/accountoperation/aboutcffp.vue
View file @
b192b832
...
...
@@ -37,6 +37,7 @@
<
script
>
import
{
companyInfo
}
from
"@/environments/environment"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -65,6 +66,11 @@
}
else
if
(
this
.
companyType
==
'2'
){
this
.
companyLogo
=
'../../../static/logo2.png'
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
goBack
()
{
...
...
pages/personalCenter/helpCenter.vue
View file @
b192b832
...
...
@@ -52,6 +52,7 @@
<
script
>
import
questionsData
from
"@/util/questions"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -65,6 +66,13 @@
}
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
computed
:{
newQuestionData
(){
let
result
=
questionsData
.
filter
(
item
=>
item
.
id
==
this
.
currentTab
)
...
...
pages/personalCenter/myTeam.vue
View file @
b192b832
...
...
@@ -128,6 +128,7 @@
import
CommonTimePicker
from
'@/components/commonTimePicker/commonTimePicker.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:
{
CommonTimePicker
...
...
@@ -263,6 +264,13 @@
this
.
getmyseatem
()
this
.
getqueryTeamAchievement
()
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:
{
sortswitch
(
obj
)
{
this
.
currentFilterBtn
=
obj
.
id
...
...
pages/personalCenter/myTeamIncubate.vue
View file @
b192b832
...
...
@@ -119,6 +119,7 @@
import
CommonTimePicker
from
'@/components/commonTimePicker/commonTimePicker.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
api
from
"@/api/api"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:
{
CommonTimePicker
...
...
@@ -229,6 +230,13 @@
this
.
getmyseatem
()
this
.
getqueryTeamAchievement
()
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:
{
sortswitch
(
obj
)
{
this
.
currentFilterBtn
=
obj
.
id
...
...
pages/personalCenter/personalCenter.vue
View file @
b192b832
...
...
@@ -174,6 +174,7 @@
import
FloatingButton
from
'@/components/FloatingButton/FloatingButton.vue'
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
PartnerTipPopup
from
"@/components/commonPopup/PartnerTipPopup.vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -273,6 +274,9 @@
}
// #ifdef H5
this
.
shareBtnBottom
=
dataHandling
.
isNotchIOS
()
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
...
...
pages/personalCenter/system/accontsetting.vue
View file @
b192b832
...
...
@@ -14,7 +14,7 @@
<
script
>
import
MenuList
from
"@/components/menuList/menuList.vue"
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
MenuList
...
...
@@ -53,6 +53,13 @@
]
}
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
goBack
()
{
uni
.
navigateBack
({
...
...
pages/personalCenter/system/menulist.vue
View file @
b192b832
...
...
@@ -19,6 +19,7 @@
</
template
>
<
script
>
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
props
:
{
menuList
:
{
...
...
@@ -28,6 +29,13 @@
data
()
{
return
{}
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
mounted
()
{
console
.
log
(
this
.
minorMenuLists
,
7412
)
},
...
...
pages/personalCenter/system/settings.vue
View file @
b192b832
...
...
@@ -21,6 +21,7 @@
import
MenuList
from
"@/components/menuList/menuList.vue"
import
{
companyInfo
}
from
"@/environments/environment"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
MenuList
},
data
()
{
...
...
@@ -53,6 +54,13 @@
]
}
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
destroyed
()
{
uni
.
hideToast
();
},
...
...
pages/personalCenter/user-information.vue
View file @
b192b832
...
...
@@ -50,6 +50,7 @@
import
common
from
'../../common/common'
;
import
{
companyInfo
}
from
"@/environments/environment"
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -100,6 +101,13 @@
}
this
.
optionForm
=
JSON
.
parse
(
options
.
customerBasicInfo
)
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:
{
handleKeyDown
(
e
)
{
console
.
log
(
'this.isComposing'
,
this
.
isComposing
);
...
...
pages/pointsExchange/pointsExchange.vue
View file @
b192b832
...
...
@@ -131,6 +131,7 @@
import
api
from
'../../api/api'
;
import
CustomDatePop
from
'./customDatePop.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
let
nowTime
=
dataHandling
.
getMonthRange
(
dataHandling
.
getDateParts
().
year
,
dataHandling
.
getDateParts
().
month
)
export
default
{
data
(){
...
...
@@ -182,7 +183,11 @@
this
.
queryByUserIdFortuneStatistic
();
this
.
getCommissionType
()
this
.
getDetail
()
console
.
log
(
11111
);
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
// 查看订单详情
...
...
pages/product/product.vue
View file @
b192b832
...
...
@@ -31,6 +31,7 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
tabBar
from
'../../components/tabBar/tabBar.vue'
;
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -71,6 +72,13 @@
]
}
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
goDetail
(
item
)
{
if
(
item
.
isShow
==
true
&&
item
.
isOpen
==
true
)
{
...
...
pages/saleCourseLists/saleCourseLists.vue
View file @
b192b832
...
...
@@ -115,6 +115,7 @@
import
CommonTimePicker
from
'@/components/commonTimePicker/commonTimePicker.vue'
;
import
dataHandling
from
"@/util/dataHandling"
;
import
JoinPopup
from
'@/components/commonPopup/JoinPopup.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
components
:{
courseItem
,
...
...
@@ -264,6 +265,11 @@
let
app22
=
getCurrentPages
().
length
this
.
userCourseCount
()
this
.
userCourseList
()
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
}
}
</
script
>
...
...
pages/systemMsg/system_msg.vue
View file @
b192b832
...
...
@@ -38,6 +38,7 @@
<
script
>
import
api
from
'../../api/api'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
(){
return
{
...
...
@@ -49,6 +50,11 @@
},
onShow
(){
this
.
querySystemMessage
();
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
querySystemMessage
()
{
...
...
pages/systemMsg/system_msg_detail.vue
View file @
b192b832
...
...
@@ -22,6 +22,7 @@
<
script
>
import
api
from
"../../api/api"
;
import
common
from
'../../common/common'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
(){
return
{
...
...
@@ -39,6 +40,13 @@
this
.
id
=
options
.
id
;
this
.
getSystemMsgDetail
();
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
getSystemMsgDetail
(){
api
.
querySystemMessageDetail
({
systemMessageId
:
this
.
id
}).
then
((
res
)
=>
{
...
...
pages/taxRules/taxRules.vue
View file @
b192b832
...
...
@@ -57,6 +57,7 @@
</
template
>
<
script
>
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
(){
return
{
...
...
@@ -64,8 +65,12 @@
}
},
components
:{},
onLoad
(){
onShow
(){
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
...
...
pages/withdrawal/withdrawal.vue
View file @
b192b832
...
...
@@ -73,6 +73,7 @@
<
script
>
import
api
from
'../../api/api'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
(){
return
{
...
...
@@ -91,6 +92,13 @@
this
.
partnerTradeNo
=
options
.
partnerTradeNo
;
this
.
goFortuneWithdrawal
()
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
goBack
()
{
uni
.
navigateBack
({
...
...
sfp/childEdu/childEdu.vue
View file @
b192b832
...
...
@@ -172,7 +172,7 @@
import
dataHandling
from
"../../util/dataHandling"
;
import
{
nanoid
}
from
"nanoid"
;
import
LEchart
from
'@/uni_modules/lime-echart/components/l-echart/l-echart.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -205,6 +205,13 @@
option
:{}
}
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:
{
goBack
(){
uni
.
navigateBack
({
...
...
sfp/dataImport/data-import.vue
View file @
b192b832
...
...
@@ -86,6 +86,7 @@
<
script
>
import
api
from
"../../api/api"
;
import
{
reactive
,
provide
}
from
"vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -108,6 +109,13 @@
this
.
bindPickerChange
({
detail
:{
value
:
this
.
index
}});
this
.
calcuteData
=
uni
.
getStorageSync
(
'calcuteData'
)
?
JSON
.
parse
(
uni
.
getStorageSync
(
'calcuteData'
))
:
null
;
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
// 选择间隔
bindPickerChange
(
e
){
...
...
sfp/housePurchase/housePurchase.vue
View file @
b192b832
...
...
@@ -278,6 +278,7 @@
import
{
nanoid
}
from
"nanoid"
;
// import Echarts from '../../components/echarts/echarts'
import
LEchart
from
'@/uni_modules/lime-echart/components/l-echart/l-echart.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
(){
...
...
@@ -355,6 +356,13 @@
onLoad
(){
this
.
provCityQry
();
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
methods
:{
goBack
(){
uni
.
navigateBack
({
...
...
sfp/housePurchase/loanBalance.vue
View file @
b192b832
...
...
@@ -53,6 +53,7 @@
<
script
>
import
{
ref
,
toRefs
,
reactive
}
from
"vue"
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
props
:
[
'isReadonly'
,
'loanType'
,
'a'
,
'b'
],
emits
:[
'getData'
],
...
...
@@ -92,6 +93,13 @@
components
:{
},
onShow
()
{
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
setup
(
props
,
content
)
{
const
a
=
reactive
({
value
:
props
.
a
});
const
b
=
reactive
({
value
:
props
.
b
});
...
...
sfp/housePurchase/planningParameters.vue
View file @
b192b832
...
...
@@ -37,6 +37,7 @@
import
{
toRefs
}
from
"vue"
;
import
api
from
'../../api/api'
;
import
common
from
'../../common/common'
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
props
:[
'cityInfo'
,
'planningParams'
],
emits
:[
'getData'
],
...
...
@@ -60,7 +61,12 @@
components
:{
},
onLoad
(){
onShow
(){
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
setup
(
props
,
content
){
const
cityInfo
=
props
.
cityInfo
?
props
.
cityInfo
:
null
;
...
...
sfp/index/index.vue
View file @
b192b832
...
...
@@ -205,7 +205,7 @@
import
foot
from
'../footer/footer.vue'
;
import
{
toRefs
,
ref
}
from
'vue'
;
import
commonHead
from
'../header/header.vue'
;
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
export
default
{
data
()
{
return
{
...
...
@@ -638,6 +638,11 @@
this
.
calcuteMethod
=
'2'
;
this
.
resultShowFlag
=
true
;
}
// #ifdef H5
initJssdkShare
(()
=>
{
setWechatShare
();
},
window
.
location
.
href
);
// #endif
},
mounted
()
{
//this.checkToken();
...
...
util/fiveshare.ts
View file @
b192b832
...
...
@@ -3,8 +3,11 @@
// import wx from 'weixin-js-sdk'
import
api
from
"../api/api"
;
import
{
companyInfo
,
baseURL
,
shareURL
}
from
"@/environments/environment"
;
let
userInfo
=
{
name
:
''
}
if
(
uni
.
getStorageSync
(
'cffp_userInfo'
)){
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
}
//初始化
// export function initJssdkShare(callback, url) {
// console.log('签名',url);
...
...
@@ -68,7 +71,15 @@ export function setWechatShare(data) {
console
.
error
(
'微信SDK未初始化'
);
return
;
}
console
.
log
(
'data'
,
data
);
if
(
!
data
){
const
currentUrl
=
`
${
shareURL
}
/pages/index/index`
;
data
=
{
title
:
'银盾家办家庭财务策划师联盟邀您加入'
,
desc
:
`
${
userInfo
.
name
||
''
}
邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`
,
link
:
currentUrl
,
imgUrl
:
`
${
shareURL
}
/static/images/shareBg.png`
};
}
jWeixin
.
ready
(()
=>
{
// 新API(推荐)
jWeixin
.
updateAppMessageShareData
({
...
...
util/router.js
View file @
b192b832
import
api
from
"@/api/api"
;
import
dataHandling
from
'./dataHandling'
import
{
initJssdkShare
,
setWechatShare
}
from
'@/util/fiveshare'
;
//只要是未登录状态,想要跳转到名单内的路径时,直接跳到登录页
// 页面白名单,不受拦截
const
whiteList
=
[
...
...
@@ -23,9 +24,9 @@ export default function initApp(){
// 页面跳转前进行拦截, invoke根据返回值进行判断是否继续执行跳转
invoke
(
e
)
{
let
pages
=
getCurrentPages
()
let
pagesLength
=
pages
.
length
console
.
log
(
'11111'
,
whiteList
.
indexOf
(
e
.
url
)
==-
1
&&!
uni
.
getStorageSync
(
'loginType'
));
if
(
whiteList
.
indexOf
(
e
.
url
)
==-
1
&&!
uni
.
getStorageSync
(
'loginType'
)){
uni
.
clearStorageSync
();
uni
.
setStorageSync
(
'loginType'
,
'visitor'
)
...
...
@@ -107,8 +108,10 @@ export default function initApp(){
success
(
e
)
{}
})
uni
.
addInterceptor
(
'switchTab'
,
{
// tabbar页面跳转前进行拦截
invoke
(
e
)
{
if
(
date
)
{
//如果时间戳存在 那么记录此页面的停留时间
dataHandling
.
pocessTracking
(
...
...
@@ -126,6 +129,7 @@ export default function initApp(){
uni
.
addInterceptor
(
'reLaunch'
,
{
//页面跳转前拦截
invoke
(
e
)
{
if
(
date
)
{
//如果时间戳存在 那么记录此页面的停留时间
dataHandling
.
pocessTracking
(
...
...
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