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
21a277ea
Commit
21a277ea
authored
Feb 05, 2025
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
7744eccb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
index.vue
components/auth/index.vue
+7
-0
index.vue
pages/index/index.vue
+13
-1
jz_Line.vue
pages/jiuzhai/jz_Line.vue
+5
-4
api.js
plugin/api.js
+1
-1
No files found.
components/auth/index.vue
View file @
21a277ea
...
...
@@ -43,6 +43,12 @@
this
.
isOpenAuth
=
mallConfig
.
mall
.
setting
.
is_show_auth
;
}
this
.
getUserInfo
()
// if(uni.getStorageSync('mall_UserInfo')&&uni.getStorageSync('mall_UserInfo').OpenId&&uni.getStorageSync('b2b_user')){
// console.log(uni.getStorageSync('b2b_user').salesBaseInfo)
// if(uni.getStorageSync('b2b_user').salesBaseInfo==''){
// this.getLogin(uni.getStorageSync('mall_UserInfo').OpenId)
// }
// }
},
methods
:
{
getoldUser
()
{
...
...
@@ -223,6 +229,7 @@
b2bResult
.
contactNumber
=
b2bData
.
contactNumber
;
uni
.
setStorageSync
(
'b2b_user'
,
b2bResult
)
that
.
$emit
(
"changeuserinfo"
);
uni
.
setStorageSync
(
"lastLogin"
,
new
Date
().
getTime
())
}
else
{
uni
.
redirectTo
({
url
:
'/pages/jiuzhai/bind_Customer'
...
...
pages/index/index.vue
View file @
21a277ea
...
...
@@ -424,6 +424,10 @@
that
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
that
.
b2bUser
=
uni
.
getStorageSync
(
"b2b_user"
);
if
(
that
.
b2bUser
&&
that
.
b2bUser
.
salesBaseInfo
==
''
){
uni
.
removeStorageSync
(
'b2b_user'
)
that
.
b2bUser
=
null
}
console
.
log
(
"onLoad_setting"
,
this
.
setting
);
console
.
log
(
"onLoad_b2bUser"
,
this
.
b2bUser
);
if
(
!
that
.
u
)
{
...
...
@@ -477,7 +481,15 @@
}
uni
.
showNavigationBarLoading
();
},
created
()
{},
created
()
{
if
(
uni
.
getStorageSync
(
"lastLogin"
)){
const
tempHour
=
(
new
Date
().
getTime
()
-
uni
.
getStorageSync
(
"lastLogin"
))
/
1000
/
60
/
60
if
(
tempHour
>
70
){
uni
.
removeStorageSync
(
'b2b_user'
)
uni
.
removeStorageSync
(
'mall_UserInfo'
)
}
}
},
// #ifdef MP-WEIXIN
onShareTimeline
()
{
setTimeout
(()
=>
{
...
...
pages/jiuzhai/jz_Line.vue
View file @
21a277ea
...
...
@@ -368,19 +368,19 @@
<view
style=
"height: 50vh;display: flex;"
>
<view
style=
"background-color: #f1f1f1;margin-right: 30rpx;height:100%"
>
<scroll-view
scroll-y=
"true"
style=
"height:100%"
>
<view
style=
"text-align: center; padding: 15px 0;"
>
<view
style=
"text-align: center; padding: 15px 0;"
v-if=
'msg.teamType==0 || msg.teamType==1'
>
<u-tag
mode=
"plain"
border-color=
"#DFBE6E"
color=
"#DFBE6E"
text=
"出境游"
size=
"mini"
></u-tag>
</view>
<template
v-for=
"x in lineList"
>
<view
:style=
"
{'background':x.LineID==currentLineId.LineID?'#FFF':'unset'}" @click="changeLineTeamsHandler(x)"
style="font-size: 15px;color:#111;padding:30rpx;text-align: center;" v-if="x.LineDirection==2" :key="x.LineID">
{{
x
.
LineShortName
}}
</view>
style="font-size: 15px;color:#111;padding:30rpx;text-align: center;" v-if="x.LineDirection==2
&&
(msg.teamType==0 || msg.teamType==1)
" :key="x.LineID">
{{
x
.
LineShortName
}}
</view>
</
template
>
<view
style=
"text-align: center; padding: 15px 0;"
>
<view
style=
"text-align: center; padding: 15px 0;"
v-if=
'msg.teamType==2'
>
<u-tag
mode=
"plain"
border-color=
"#DFBE6E"
color=
"#DFBE6E"
text=
"当地游"
size=
"mini"
></u-tag>
</view>
<
template
v-for=
"x in lineList"
>
<view
:style=
"
{'background':x.LineID==currentLineId.LineID?'#FFF':'unset'}" @click="changeLineTeamsHandler(x)"
style="font-size: 15px;color:#111;padding:30rpx;text-align: center;" v-if="x.LineDirection==3" :key="x.LineID">
{{
x
.
LineShortName
}}
</view>
style="font-size: 15px;color:#111;padding:30rpx;text-align: center;" v-if="x.LineDirection==3
&&
msg.teamType==2
" :key="x.LineID">
{{
x
.
LineShortName
}}
</view>
</
template
>
</scroll-view>
</view>
...
...
@@ -706,6 +706,7 @@
this
.
msg
.
lineId
=
item
.
LineID
;
this
.
msg
.
PlaceIds
=
""
;
this
.
msg
.
team
=
[];
this
.
allTeams
=
true
},
//获取查询条件
getLineQuery
()
{
...
...
plugin/api.js
View file @
21a277ea
...
...
@@ -121,7 +121,7 @@ export default {
uni
.
removeStorageSync
(
'b2b_user'
)
uni
.
removeStorageSync
(
'mall_UserInfo'
)
uni
.
redirectTo
({
url
:
'/pages/
jiuzhai/bind_Customer
'
url
:
'/pages/
index/index
'
})
// uni.redirectTo({
// 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