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
b062d5db
Commit
b062d5db
authored
Feb 12, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-20260203-解决外部跳转页面登录问题' into 'dev'
Feature 20260203 解决外部跳转页面登录问题 See merge request
!84
parents
367db91a
a41efacb
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
28 deletions
+45
-28
index.html
+3
-2
myPackageA/ticket/unUsed.vue
+1
-0
pages.json
+14
-14
pages/courselist/courselist.vue
+2
-3
pages/personalCenter/personalCenter.vue
+24
-9
util/interceptor.ts
+1
-0
No files found.
index.html
View file @
b062d5db
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</div>
</div>
<script
type=
"module"
src=
"/main.js"
></script>
<script
type=
"module"
src=
"/main.js"
></script>
<!-- uni 的 SDK,必须引用。 -->
<!-- uni 的 SDK,必须引用。 -->
<script
type=
"text/javascript"
src=
"/static/uni.webview.1.5.4.js"
></script>
<
!-- <
script type="text/javascript" src="/static/uni.webview.1.5.4.js"></script>
<script type="text/javascript">
<script type="text/javascript">
// 验证脚本是否加载成功(调试关键:控制台打印 webViewJs 确认)
// 验证脚本是否加载成功(调试关键:控制台打印 webViewJs 确认)
const webViewJs = window.uni?.webView;
const webViewJs = window.uni?.webView;
...
@@ -53,6 +53,6 @@
...
@@ -53,6 +53,6 @@
// 将 webViewJs 挂载到 window 全局,供 Vue 组件访问
// 将 webViewJs 挂载到 window 全局,供 Vue 组件访问
window.webViewJs = webViewJs;
window.webViewJs = webViewJs;
}
}
</script>
</script>
-->
</body>
</body>
</html>
</html>
\ No newline at end of file
myPackageA/ticket/unUsed.vue
View file @
b062d5db
...
@@ -106,6 +106,7 @@
...
@@ -106,6 +106,7 @@
"size"
:
10
,
"size"
:
10
,
}
}
dealerId
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
uni
.
getStorageSync
(
'cffp_userInfo'
)))
?
JSON
.
parse
(
JSON
.
stringify
(
uni
.
getStorageSync
(
'cffp_userInfo'
))).
dealerId
:
''
dealerId
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
uni
.
getStorageSync
(
'cffp_userInfo'
)))
?
JSON
.
parse
(
JSON
.
stringify
(
uni
.
getStorageSync
(
'cffp_userInfo'
))).
dealerId
:
''
console
.
log
(
'dealerId.value'
,
dealerId
.
value
);
getList
(
paginationInfo
.
value
)
getList
(
paginationInfo
.
value
)
})
})
</
script
>
</
script
>
...
...
pages.json
View file @
b062d5db
...
@@ -620,21 +620,21 @@
...
@@ -620,21 +620,21 @@
{
{
"navigationBarTitleText"
:
"我的名片"
"navigationBarTitleText"
:
"我的名片"
}
}
},
{
"path"
:
"ticket/unUsed"
,
"style"
:
{
"navigationBarTitleText"
:
"我的卡券"
}
},
{
"path"
:
"ticket/alreadyUsed"
,
"style"
:
{
"navigationBarTitleText"
:
"使用记录"
}
}
}
//
{
//
"path"
:
"ticket/unUsed"
,
//
"style"
:
//
{
//
"navigationBarTitleText"
:
"我的卡券"
//
}
//
},
//
{
//
"path"
:
"ticket/alreadyUsed"
,
//
"style"
:
//
{
//
"navigationBarTitleText"
:
"使用记录"
//
}
//
}
]
]
},{
},{
...
...
pages/courselist/courselist.vue
View file @
b062d5db
...
@@ -79,9 +79,8 @@
...
@@ -79,9 +79,8 @@
<view
class=
"productBox"
>
<view
class=
"productBox"
>
<view
class=
"productList"
:style=
"
{marginTop}">
<view
class=
"productList"
:style=
"
{marginTop}">
<view
class=
"tabBox"
>
<view
class=
"tabBox"
>
<view
:class=
"
{'actived': courseClassify==4}" @click="transform('consult')">
<text>
咨询产品
</text></view>
<view
:class=
"
{'actived': courseClassify==3}" @click="transform('plan')">
<text>
规划产品
</text></view>
<view
:class=
"
{'actived': courseClassify==3}" @click="transform('plan')">
<text>
规划产品
</text></view>
<view
:class=
"
{'actived': courseClassify==4}" @click="transform('consult')">
<text>
咨询产品
</text></view>
</view>
</view>
<view
class=
"productItem"
v-for=
"item in localCourseInfos"
:key=
"item.fileId"
>
<view
class=
"productItem"
v-for=
"item in localCourseInfos"
:key=
"item.fileId"
>
<view
class=
"top"
@
click=
"goDetail(item)"
>
<view
class=
"top"
@
click=
"goDetail(item)"
>
...
@@ -235,7 +234,7 @@
...
@@ -235,7 +234,7 @@
env
:
dataHandling
.
getRuntimeEnv2
(),
env
:
dataHandling
.
getRuntimeEnv2
(),
shareItem
:{},
//分享的产品
shareItem
:{},
//分享的产品
sharelogin
:
false
,
sharelogin
:
false
,
courseClassify
:
4
,
courseClassify
:
3
,
posterImg
:
'https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/ydMall/product/serviceContent-zx_jqsw1-1.png'
,
posterImg
:
'https://yindun-images.oss-cn-shanghai-finance-1-pub.aliyuncs.com/ydMall/product/serviceContent-zx_jqsw1-1.png'
,
qrCodeUrl
:
'https://example.com'
,
//二维码的链接地址
qrCodeUrl
:
'https://example.com'
,
//二维码的链接地址
...
...
pages/personalCenter/personalCenter.vue
View file @
b062d5db
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
inviteEqrode
:
''
,
inviteEqrode
:
''
,
currentPage
:
'personalCenter'
,
currentPage
:
'personalCenter'
,
customerBasicInfo
:
{},
customerBasicInfo
:
{},
loginornot
:
true
,
loginornot
:
true
,
//登录状态
tabBarPadding
:
100
,
tabBarPadding
:
100
,
settingItem
:
{
settingItem
:
{
title
:
'系统设置'
,
title
:
'系统设置'
,
...
@@ -218,13 +218,14 @@
...
@@ -218,13 +218,14 @@
isShow
:
true
,
isShow
:
true
,
identity
:
true
identity
:
true
},
},
{
// {
title
:
'我的卡券'
,
// title: '我的卡券',
icon
:
'icon-yifukuan'
,
// icon: 'icon-yifukuan',
link
:
'/myPackageA/ticket/unUsed'
,
// link: '/myPackageA/ticket/unUsed',
isOpen
:
true
,
// isOpen: true,
isShow
:
true
// isShow: true,
},
// key:'ticket',
// },
{
{
title
:
'我的售后'
,
title
:
'我的售后'
,
icon
:
'icon-shouhoufuwu'
,
icon
:
'icon-shouhoufuwu'
,
...
@@ -587,6 +588,7 @@
...
@@ -587,6 +588,7 @@
},
},
// 菜单跳转页面
// 菜单跳转页面
goDetail
(
item
)
{
goDetail
(
item
)
{
if
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
{
if
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
{
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'cffp_userInfo'
))
}
}
...
@@ -691,10 +693,21 @@
...
@@ -691,10 +693,21 @@
});
});
return
return
}
}
if
(
!
this
.
loginornot
&&
!
item
.
islogin
)
{
console
.
log
(
'判断'
,(
!
uni
.
getStorageSync
(
'loginType'
)
||
uni
.
getStorageSync
(
'loginType'
)
==
'visitor'
)
&&
!
item
.
islogin
);
if
((
!
uni
.
getStorageSync
(
'loginType'
)
||
uni
.
getStorageSync
(
'loginType'
)
==
'visitor'
)
&&
!
item
.
islogin
)
{
this
.
isLogin
()
this
.
isLogin
()
return
return
}
}
// 登录状态下直接去我的卡券
if
(
item
.
key
==
'ticket'
){
uni
.
navigateTo
({
url
:
`
${
item
.
link
}
`
});
return
}
if
(
item
.
isShow
&&
item
.
isOpen
)
{
if
(
item
.
isShow
&&
item
.
isOpen
)
{
if
(
item
.
title
===
'我的邀请码'
)
{
if
(
item
.
title
===
'我的邀请码'
)
{
this
.
$refs
.
popup1
.
open
(
'bottom'
);
this
.
$refs
.
popup1
.
open
(
'bottom'
);
...
@@ -722,7 +735,9 @@
...
@@ -722,7 +735,9 @@
url
:
`
${
item
.
link
}
?levelCode=`
+
this
.
customerBasicInfo
.
levelCode
url
:
`
${
item
.
link
}
?levelCode=`
+
this
.
customerBasicInfo
.
levelCode
});
});
}
else
{
}
else
{
const
urlObj
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
const
urlObj
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
console
.
log
(
'222222222'
,
urlObj
.
link
);
if
(
urlObj
.
type
)
{
if
(
urlObj
.
type
)
{
urlObj
.
link
=
urlObj
.
link
=
`
${
urlObj
.
link
}
?type=
${
urlObj
.
type
}
&from=personalCenter&partnerType=
${
this
.
customerBasicInfo
.
partnerType
}
`
`
${
urlObj
.
link
}
?type=
${
urlObj
.
type
}
&from=personalCenter&partnerType=
${
this
.
customerBasicInfo
.
partnerType
}
`
...
...
util/interceptor.ts
View file @
b062d5db
...
@@ -156,6 +156,7 @@ export const interceptor = () => {
...
@@ -156,6 +156,7 @@ export const interceptor = () => {
if
(
args
&&
args
.
data
&&
args
.
data
.
errorCode
&&
"T001"
==
args
.
data
.
errorCode
){
if
(
args
&&
args
.
data
&&
args
.
data
.
errorCode
&&
"T001"
==
args
.
data
.
errorCode
){
uni
.
removeStorageSync
(
'isLogin'
);
uni
.
removeStorageSync
(
'isLogin'
);
uni
.
removeStorageSync
(
'uni-token'
);
uni
.
removeStorageSync
(
'uni-token'
);
uni
.
setStorageSync
(
'loginType'
,
'visitor'
)
uni
.
switchTab
({
uni
.
switchTab
({
url
:
'/pages/index/index'
url
:
'/pages/index/index'
})
})
...
...
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