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
1
Merge Requests
1
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
721bc2e5
Commit
721bc2e5
authored
Feb 03, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加启动页逻辑发布测试
parent
68eadfda
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
3 deletions
+76
-3
myPackageA/applyFranchise/applyFranchise.vue
+2
-3
myPackageA/assets/images/applyBg.png
+0
-0
pages.json
+8
-0
pages/lanch/index.vue
+66
-0
No files found.
myPackageA/applyFranchise/applyFranchise.vue
View file @
721bc2e5
...
...
@@ -10,7 +10,7 @@
/>
<image
class=
"imgbox"
:src=
"baseURL + `/$
{imgType}/static/images/applyBg.png`
"
src=
"../assets/images/applyBg.png
"
mode=
"widthFix"
></image>
<view
class=
"wapper"
>
...
...
@@ -135,8 +135,7 @@
data
()
{
return
{
companyInfo
:
environment
.
companyInfo
,
imgType
:
environment
.
companyInfo
.
imgType
,
baseURL
:
environment
.
baseURL
,
shareURL
:
environment
.
shareURL
,
form
:{
mobile
:
''
,
nickName
:
''
,
...
...
myPackageA/assets/images/applyBg.png
0 → 100644
View file @
721bc2e5
367 KB
pages.json
View file @
721bc2e5
{
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/index/index"
,
"style"
:
{
...
...
@@ -496,6 +497,13 @@
"webviewDebug"
:
true
}
}
},
{
"path"
:
"pages/lanch/index"
,
"style"
:
{
"topWindow"
:
false
,
"navigationBarTitleText"
:
"启动页"
}
}
],
...
...
pages/lanch/index.vue
0 → 100644
View file @
721bc2e5
<
template
>
<view
class=
"loadTxt"
>
Loading...
</view>
</
template
>
<
script
setup
>
import
{
ref
}
from
"vue"
;
import
api
from
'@/api/api'
;
import
{
onLaunch
,
onLoad
}
from
'@dcloudio/uni-app'
import
*
as
environment
from
'@/environments/environment'
let
dataToken
=
ref
()
onLoad
((
options
)
=>
{
// 参数带token了重新登录
if
(
options
.
dataToken
)
{
// uni.clearStorageSync();
dataToken
.
value
=
options
.
dataToken
reLogin
(
options
.
landingPage
)
}
})
const
reLogin
=
(
landingPage
)
=>
{
uni
.
showLoading
({
title
:
'加载中...'
});
// 添加iOS平台检测
const
isIOS
=
navigator
.
platform
.
match
(
/
(
iPhone|iPod|iPad
)
/i
);
const
params
=
{
loginType
:
'5'
,
authToken
:
dataToken
.
value
}
api
.
loginVerification
(
params
).
then
((
res
)
=>
{
if
(
res
[
'success'
])
{
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
uni
.
setStorageSync
(
'loginType'
,
'codelogin'
);
uni
.
setStorageSync
(
'cffp_userId'
,
res
.
data
.
userId
);
uni
.
setStorageSync
(
'uni-token'
,
res
.
data
[
'token'
]);
dataToken
.
value
=
''
uni
.
removeStorageSync
(
'dataToken'
)
if
(
landingPage
==
'sfpHousePurchase'
)
{
uni
.
reLaunch
({
url
:
`/sfp/housePurchase/housePurchase`
})
}
else
if
(
landingPage
==
'sfpIndex'
){
uni
.
reLaunch
({
url
:
`/sfp/index/index`
})
}
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
,
icon
:
'none'
})
}
})
uni
.
hideLoading
()
}
</
script
>
<
style
lang=
"scss"
scoped
>
.loadTxt
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
30
rpx
;
}
</
style
>
\ No newline at end of file
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