Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
9b9ecde8
Commit
9b9ecde8
authored
Apr 03, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复登录
parent
fa516890
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
15 deletions
+28
-15
index.vue
pages/index/index.vue
+27
-14
jz_Line.vue
pages/jiuzhai/jz_Line.vue
+1
-1
No files found.
pages/index/index.vue
View file @
9b9ecde8
...
...
@@ -59,7 +59,7 @@
</template>
<coupon
v-if=
"showCoupons"
:coupon-message=
"couponMessage"
:cform=
"ComeFrom"
@
goLook=
"()=>showCoupons = false"
@
closeBtn=
"()=>showCoupons = false"
></coupon>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<auth
v-if=
"showAuth
&&is_show_auth
"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<official-account></official-account>
</view>
</view>
...
...
@@ -114,7 +114,8 @@
ComeFrom
:
""
,
safeTop
:
0
,
isNavPosition
:
0
,
scrollTop
:
0
scrollTop
:
0
,
is_show_auth
:
0
,
};
},
components
:
{
...
...
@@ -159,11 +160,7 @@
}
}
const
mu
=
uni
.
getStorageSync
(
'mall_UserInfo'
)
const
bu
=
uni
.
getStorageSync
(
'b2b_user'
)
if
(
!
mu
||
!
bu
)
this
.
showAuth
=
true
this
.
tokenIsExpire
()
this
.
init
()
uni
.
showNavigationBarLoading
();
if
(
uni
.
getStorageSync
(
'coupons'
))
{
...
...
@@ -219,9 +216,20 @@
},
500
);
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
$utils
.
VersionUpdate
()
const
mu
=
uni
.
getStorageSync
(
'mall_UserInfo'
)
const
bu
=
uni
.
getStorageSync
(
'b2b_user'
)
if
(
!
mu
||
!
bu
)
this
.
showAuth
=
true
},
methods
:
{
tokenIsExpire
(){
this
.
apipost
(
'b2b_post_CheckMiniAppToken'
,{},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
){}
})
},
startb
()
{
this
.
showStart
=
false
;
if
(
innerAudioContext
!=
undefined
)
{
...
...
@@ -284,23 +292,27 @@
url
:
'/pages/index/index'
})
},
init
()
{
const
parameter
=
{
VipCusType
:
1
,
page_id
:
this
.
pageId
}
// #ifdef MP-DI
parameter
.
VipCusType
=
2
init
()
{
const
parameter
=
{
VipCusType
:
1
,
page_id
:
this
.
pageId
}
// #ifdef MP-DI
parameter
.
VipCusType
=
2
// #endif
this
.
request2
({
url
:
"/api/Mall/GetHome"
,
data
:
parameter
,
},
(
res
)
=>
{
this
.
myPageData
=
res
.
data
;
if
(
this
.
pageId
==
0
){
uni
.
setStorageSync
(
'navs'
,
this
.
myPageData
.
navbar
.
navs
)
this
.
myPageData
=
res
.
data
;
if
(
this
.
pageId
==
0
){
uni
.
setStorageSync
(
'navs'
,
this
.
myPageData
.
navbar
.
navs
)
}
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
if
(
res
.
data
&&
res
.
data
.
mall
&&
res
.
data
.
mall
.
setting
)
{
this
.
setting
=
res
.
data
.
mall
.
setting
;
//判断后台是否开启自动授权
if
(
this
.
setting
&&
this
.
setting
.
is_show_auth
==
1
)
{
this
.
is_show_auth
=
1
;
}
}
this
.
formatBg
();
if
(
this
.
pageId
==
0
)
{
...
...
@@ -344,6 +356,7 @@
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
init
();
uni
.
removeStorageSync
(
"LoginState"
)
},
gbAuth
()
{
this
.
showAuth
=
false
;
...
...
pages/jiuzhai/jz_Line.vue
View file @
9b9ecde8
...
...
@@ -706,7 +706,7 @@
}
let
basedata
=
uni
.
getStorageSync
(
"basedata"
);
//判断后台是否开启自动授权
if
(
basedata
&&
basedata
.
mall
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
.
is_show_auth
==
if
(
basedata
&&
basedata
.
mall
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
.
is_show_auth
==
1
)
{
this
.
is_show_auth
=
1
;
}
...
...
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