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
4cc57e4c
Commit
4cc57e4c
authored
Aug 07, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复未登录分享和购买的bug,待发生产
parent
810147c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
App.vue
+1
-1
pages/courseDetail/courseDetail.vue
+7
-4
No files found.
App.vue
View file @
4cc57e4c
...
...
@@ -249,7 +249,7 @@
uni
.
setStorageSync
(
'dataToken'
,
decodeURIComponent
(
params
.
dataToken
));
}
//家办商城跳转未登录状态下
if
(
params
.
noLogin
){
if
(
params
.
noLogin
||
!
params
.
dataToken
){
uni
.
removeStorageSync
(
'userIsActive'
)
uni
.
removeStorageSync
(
'dataToken'
)
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
...
...
pages/courseDetail/courseDetail.vue
View file @
4cc57e4c
...
...
@@ -150,6 +150,7 @@
<text>
{{showName}}
</text>
</view>
</view>
<!-- 小程序的购买 -->
<view
v-if=
"mpCffp"
class=
"shareBuyBox"
>
<view
class=
"rightShare"
@
click=
"reinvite"
>
<loadingIcon
:loading=
"isLoading"
v-if=
"isLoading"
loadColor=
"#20269B"
/>
...
...
@@ -394,7 +395,7 @@
// 打开微信分享啊
reinvite
()
{
//小程序没登录进入到系统,要回到小程序去登录
if
(
uni
.
getStorageSync
(
'mpCffp'
)
&&
!
uni
.
getStorageSync
(
'dataToken'
))
{
if
(
uni
.
getStorageSync
(
'mpCffp'
)
&&
!
uni
.
getStorageSync
(
'dataToken'
)
&&
this
.
loginType
===
'visitor'
)
{
this
.
jumpMplogin
()
return
}
...
...
@@ -636,12 +637,14 @@
},
// 订单保存
saveOrder
()
{
//小程序没登录进入到系统,要回到小程序去登录
if
(
uni
.
getStorageSync
(
'mpCffp'
)
&&
!
uni
.
getStorageSync
(
'dataToken'
))
{
this
.
loginType
=
uni
.
getStorageSync
(
'loginType'
);
//小程序没登录进入到分销系统,并且分销系统也没登录要回到小程序去登录 (比如在申请加盟那登录了,可以直接在分销系统中购买)
if
(
uni
.
getStorageSync
(
'mpCffp'
)
&&
!
uni
.
getStorageSync
(
'dataToken'
)
&&
this
.
loginType
===
'visitor'
)
{
this
.
jumpMplogin
()
return
}
this
.
loginType
=
uni
.
getStorageSync
(
'loginType'
);
if
(
this
.
loginType
===
'visitor'
)
{
this
.
wayType
=
'1'
if
(
this
.
systemType
==
'IOS'
)
{
...
...
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