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
89bdd2d4
Commit
89bdd2d4
authored
Jul 15, 2025
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into feature-20250614-首页菜单优化
parents
dafcad2d
4a76ed1b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
437 additions
and
27 deletions
+437
-27
App.vue
+7
-0
components/resigter/resigter.vue
+400
-0
myPackageA/applyFranchise/applyFranchise.vue
+9
-6
pages.json
+3
-9
util/interceptor.ts
+12
-3
util/router.js
+6
-9
No files found.
App.vue
View file @
89bdd2d4
...
@@ -4,6 +4,11 @@
...
@@ -4,6 +4,11 @@
import
{
baseURL
,
apiURL
,
cffpURL
,
companyInfo
}
from
"@/environments/environment"
;
import
{
baseURL
,
apiURL
,
cffpURL
,
companyInfo
}
from
"@/environments/environment"
;
import
api
from
'./api/api'
;
import
api
from
'./api/api'
;
export
default
{
export
default
{
data
()
{
return
{
invitationHandled
:
false
// 在data中明确定义
}
},
onLaunch
:
function
()
{
onLaunch
:
function
()
{
console
.
log
(
'App Launch'
);
console
.
log
(
'App Launch'
);
if
(
!
uni
.
getStorageSync
(
'loginType'
)){
if
(
!
uni
.
getStorageSync
(
'loginType'
)){
...
@@ -99,10 +104,12 @@
...
@@ -99,10 +104,12 @@
const
pages
=
getCurrentPages
();
const
pages
=
getCurrentPages
();
if
(
pages
.
length
>
0
)
{
if
(
pages
.
length
>
0
)
{
const
currentRoute
=
pages
[
pages
.
length
-
1
].
route
;
const
currentRoute
=
pages
[
pages
.
length
-
1
].
route
;
console
.
log
(
'currentRoute'
,
currentRoute
);
const
whiteList
=
[
const
whiteList
=
[
'/myPackageA/login/login'
,
'/myPackageA/login/login'
,
'/pages/invitationRegister/invitationlogin'
,
'/pages/invitationRegister/invitationlogin'
,
'/myPackageA/applyFranchise/applyFranchise'
,
'/myPackageA/applyFranchise/applyFranchise'
,
'/pages/applyFranchise/applyFranchise'
,
'/myPackageA/ruleAndContract/clause'
,
'/myPackageA/ruleAndContract/clause'
,
'/pages/courselist/courselist'
,
'/pages/courselist/courselist'
,
'/pages/courseDetail/courseDetail'
,
'/pages/courseDetail/courseDetail'
,
...
...
components/resigter/resigter.vue
0 → 100644
View file @
89bdd2d4
This diff is collapsed.
Click to expand it.
myPackageA/applyFranchise/applyFranchise.vue
View file @
89bdd2d4
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
优质资源,专业服务
优质资源,专业服务
</view>
</view>
</view>
</view>
<view
class=
"applyBox"
>
<view
class=
"applyBox"
>
<view
style=
"height: 550rpx;"
>
<view
style=
"height: 550rpx;"
>
<view
class=
"inputBox"
>
<view
class=
"inputBox"
>
...
@@ -119,7 +120,7 @@
...
@@ -119,7 +120,7 @@
import
dataHandling
from
"@/util/dataHandling"
;
import
dataHandling
from
"@/util/dataHandling"
;
export
default
{
export
default
{
components
:{
components
:{
everyJoinPopup
everyJoinPopup
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -162,7 +163,9 @@
...
@@ -162,7 +163,9 @@
uni
.
clearStorageSync
()
uni
.
clearStorageSync
()
uni
.
setStorageSync
(
'loginType'
,
'visitor'
)
uni
.
setStorageSync
(
'loginType'
,
'visitor'
)
}
}
},
},
onShow
(){
onShow
(){
if
(
uni
.
getStorageSync
(
'loginType'
)){
if
(
uni
.
getStorageSync
(
'loginType'
)){
...
@@ -186,10 +189,7 @@
...
@@ -186,10 +189,7 @@
if
(
!
this
.
inviteUserId
&&
this
.
loginType
==
'codelogin'
&&!
this
.
form
.
nickName
){
if
(
!
this
.
inviteUserId
&&
this
.
loginType
==
'codelogin'
&&!
this
.
form
.
nickName
){
this
.
queryInfo
()
this
.
queryInfo
()
}
}
// 邀请状态
// if(this.inviteUserId){
// this.getqueryById(this.shareId)
// }
},
},
methods
:
{
methods
:
{
getqueryById
(
shareId
){
getqueryById
(
shareId
){
...
@@ -197,7 +197,9 @@
...
@@ -197,7 +197,9 @@
this
.
form
.
nickName
=
res
.
data
.
data
.
name
this
.
form
.
nickName
=
res
.
data
.
data
.
name
this
.
form
.
mobile
=
res
.
data
.
data
.
mobileNumber
this
.
form
.
mobile
=
res
.
data
.
data
.
mobileNumber
this
.
editNickName
=
this
.
editMobile
=
true
this
.
editNickName
=
this
.
editMobile
=
true
if
(
res
.
data
.
data
.
isPartner
){
this
.
$refs
.
successJoinPopup
.
open
()
}
})
})
},
},
jumpPage
(
e
){
jumpPage
(
e
){
...
@@ -225,6 +227,7 @@
...
@@ -225,6 +227,7 @@
c_agreeFlag
(){
c_agreeFlag
(){
this
.
agreeFlag
=!
this
.
agreeFlag
;
this
.
agreeFlag
=!
this
.
agreeFlag
;
},
},
delayTime
()
{
delayTime
()
{
this
.
disabledSendBtn
=
true
;
this
.
disabledSendBtn
=
true
;
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
...
...
pages.json
View file @
89bdd2d4
...
@@ -502,10 +502,7 @@
...
@@ -502,10 +502,7 @@
},{
},{
"path"
:
"applyFranchise/applyFranchise"
,
"path"
:
"applyFranchise/applyFranchise"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"申请加盟"
,
"navigationBarTitleText"
:
"申请加盟"
"h5"
:
{
"reload"
:
false
//
禁用自动重新加载
}
}
}
},{
},{
"path"
:
"integralExchange/exchange"
,
"path"
:
"integralExchange/exchange"
,
...
@@ -540,12 +537,9 @@
...
@@ -540,12 +537,9 @@
},{
},{
"path"
:
"ruleAndContract/clause"
,
"path"
:
"ruleAndContract/clause"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"协议"
,
"navigationBarTitleText"
:
"协议"
"h5"
:
{
"reload"
:
false
//
禁用自动重新加载
}
}
}
}
},
]
]
},{
},{
"root"
:
"officialWebsite"
,
"root"
:
"officialWebsite"
,
...
...
util/interceptor.ts
View file @
89bdd2d4
import
{
apiURL
,
cffpURL
}
from
"../environments/environment"
;
import
{
apiURL
,
cffpURL
,
sfpUrl
}
from
"../environments/environment"
;
import
api
from
"@/api/api"
;
import
api
from
"@/api/api"
;
// 白名单,不需要携带token就允许被访问的接口
// 白名单,不需要携带token就允许被访问的接口
const
whiteApiList
=
[
`
${
apiURL
}
/authorize/obtainToken`
,
`
${
apiURL
}
/authorize/checkToken`
,
`
${
cffpURL
}
/user/loginVerification`
,
`
${
apiURL
}
/appVersion/checkIsUpdate`
,
const
whiteApiList
=
[
`
${
apiURL
}
/authorize/obtainToken`
,
`
${
cffpURL
}
/accessLog/accessLogSave`
,
`
${
cffpURL
}
/user/powerQuery`
,
`
${
cffpURL
}
/user/wxLogin`
,
`
${
cffpURL
}
/certificate/officialWebsiteDetail`
];
`
${
apiURL
}
/authorize/checkToken`
,
`
${
cffpURL
}
/user/loginVerification`
,
`
${
apiURL
}
/appVersion/checkIsUpdate`
,
`
${
cffpURL
}
/accessLog/accessLogSave`
,
`
${
cffpURL
}
/user/powerQuery`
,
`
${
cffpURL
}
/user/wxLogin`
,
`
${
cffpURL
}
/certificate/officialWebsiteDetail`
,
`
${
apiURL
}
/verificationCode`
,
`
${
sfpUrl
}
/sfp/sfpMain/pocessTracking`
,
`
${
cffpURL
}
/partner/queryById`
,
];
export
const
interceptor
=
()
=>
{
export
const
interceptor
=
()
=>
{
uni
.
addInterceptor
(
'request'
,
{
uni
.
addInterceptor
(
'request'
,
{
// 请求拦截器
// 请求拦截器
...
...
util/router.js
View file @
89bdd2d4
...
@@ -6,6 +6,7 @@ const whiteList = [
...
@@ -6,6 +6,7 @@ const whiteList = [
'/myPackageA/login/login'
,
'/myPackageA/login/login'
,
'/pages/invitationRegister/invitationlogin'
,
'/pages/invitationRegister/invitationlogin'
,
'/myPackageA/applyFranchise/applyFranchise'
,
'/myPackageA/applyFranchise/applyFranchise'
,
'/pages/applyFranchise/applyFranchise'
,
'/myPackageA/ruleAndContract/clause'
,
'/myPackageA/ruleAndContract/clause'
,
'/pages/orderDetail/orderDetail'
,
'/pages/orderDetail/orderDetail'
,
'/pages/courseDetail/courseDetail'
,
'/pages/courseDetail/courseDetail'
,
...
@@ -16,15 +17,11 @@ const whiteList = [
...
@@ -16,15 +17,11 @@ const whiteList = [
export
default
function
initApp
(){
export
default
function
initApp
(){
let
date
=
Date
.
now
()
let
date
=
Date
.
now
()
uni
.
addInterceptor
(
'navigateTo'
,
{
uni
.
addInterceptor
(
'navigateTo'
,
{
// 页面跳转前进行拦截, invoke根据返回值进行判断是否继续执行跳转
// 页面跳转前进行拦截, invoke根据返回值进行判断是否继续执行跳转
invoke
(
e
)
{
invoke
(
e
)
{
// 移除URL中的t_reload参数
console
.
log
(
e
);
let
url
=
e
.
url
;
if
(
url
.
includes
(
't_reload='
))
{
url
=
url
.
split
(
'?'
)[
0
]
+
(
url
.
includes
(
'?'
)
?
'?'
:
''
)
+
url
.
split
(
'?'
)[
1
].
split
(
'&'
).
filter
(
param
=>
!
param
.
startsWith
(
't_reload='
)).
join
(
'&'
);
}
let
pages
=
getCurrentPages
()
let
pages
=
getCurrentPages
()
let
pagesLength
=
pages
.
length
let
pagesLength
=
pages
.
length
...
@@ -44,7 +41,7 @@ export default function initApp(){
...
@@ -44,7 +41,7 @@ export default function initApp(){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/myPackageA/login/login'
url
:
'/myPackageA/login/login'
})
})
return
return
true
}
}
// 保存用户得个人信息
// 保存用户得个人信息
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
...
@@ -68,8 +65,8 @@ export default function initApp(){
...
@@ -68,8 +65,8 @@ export default function initApp(){
return
params
.
get
(
key
);
return
params
.
get
(
key
);
};
};
const
fromParam
=
getQueryParam
(
url
,
'from'
);
const
fromParam
=
getQueryParam
(
e
.
url
,
'from'
);
if
(
!
hasPermission
(
url
)){
if
(
!
hasPermission
(
e
.
url
)){
// 如果 from 参数在 whiteArr 中,说明是tabbar页带着tabbar的标志参数跳转到登录页,以便未登录状态下回到对应的tabbar页
// 如果 from 参数在 whiteArr 中,说明是tabbar页带着tabbar的标志参数跳转到登录页,以便未登录状态下回到对应的tabbar页
if
(
fromParam
&&
whiteArr
.
includes
(
fromParam
))
{
if
(
fromParam
&&
whiteArr
.
includes
(
fromParam
))
{
uni
.
redirectTo
({
uni
.
redirectTo
({
...
...
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