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
37430cb0
Commit
37430cb0
authored
Mar 06, 2025
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化跳转问题
parent
8d190f77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
18 deletions
+34
-18
vip.vue
components/vip/vip.vue
+1
-0
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+33
-18
No files found.
components/vip/vip.vue
View file @
37430cb0
...
...
@@ -42,6 +42,7 @@
},
methods
:{
getUserVipInfo
(){
if
(
!
this
.
user
.
customerId
)
return
const
parameter
=
{
VipCusType
:
1
,
CustomerId
:
this
.
user
.
customerId
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
37430cb0
...
...
@@ -1102,7 +1102,7 @@
<
/view
>
<
/view
>
<
/view
>
<
auth
v
-
if
=
"showAuth&&is_show_auth==1"
@
changeuserinfo
=
"reloadUserinfo"
@
gbAuth
=
"gbAuth"
><
/auth
>
<
u
-
popup
v
-
model
=
"showStartCities"
mode
=
"bottom"
border
-
radius
=
"20"
length
=
"60%"
:
safe
-
area
-
inset
-
bottom
=
"true"
>
<
view
style
=
"display: flex;flex-direction: column;height:100%;width:100%;"
>
<
view
style
=
"font-size: 24px; font-weight: 700;padding: 20px;font-family: city-font;"
>
...
...
@@ -1163,6 +1163,7 @@
}
"
@
click
=
"goReserce()"
>
确定
<
/u-button
>
<
/view
>
<
/u-popup
>
<
auth
v
-
if
=
"showAuth"
@
changeuserinfo
=
"reloadUserinfo"
@
gbAuth
=
"gbAuth"
><
/auth
>
<
/view
>
<
/template
>
<
script
>
...
...
@@ -1170,6 +1171,7 @@
import
canlendar
from
"./components/sign/index.vue"
;
import
auth
from
"@/components/auth/index.vue"
;
import
vip
from
"../../components/vip/vip.vue"
;
export
default
{
components
:
{
canlendar
,
...
...
@@ -1315,12 +1317,12 @@
}
,
onLoad
(
option
)
{
this
.
mc
=
this
.
$uiConfig
.
mainColor
;
if
(
!
uni
.
getStorageSync
(
"b2b_user"
)){
uni
.
redirectTo
({
url
:
'/pages/index/index'
}
)
}
this
.
customer
=
uni
.
getStorageSync
(
"b2b_user"
);
//
if(!uni.getStorageSync("b2b_user"))
{
//
uni.redirectTo(
{
//
url:'/pages/index/index'
//
}
)
//
}
// #ifdef MP-DI
this
.
delMsg
.
directCustomerId
=
this
.
customer
.
customerId
// #endif
...
...
@@ -1414,6 +1416,7 @@
this
.
SaleId
=
item
.
CreateBy
}
,
getUserCouponList
()
{
if
(
!
this
.
customer
.
accountId
)
return
let
couponParams
=
{
"lineId"
:
this
.
dataList
.
lineId
,
//线路ID
"lineteamId"
:
this
.
dataList
.
lineteamId
,
//系列ID
...
...
@@ -1456,6 +1459,7 @@
);
}
,
getSale
(){
if
(
!
this
.
customer
.
customerId
)
return
this
.
apipost
(
"b2b_get_GetCustomerCreateByList"
,
{
...
...
@@ -1538,8 +1542,15 @@
}
)
}
,
reloadUserinfo
()
{
this
.
b2bUser
=
uni
.
getStorageSync
(
"b2b_user"
);
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
// this.b2bUser = uni.getStorageSync("b2b_user");
// this.u = uni.getStorageSync("mall_UserInfo");
// this.customer = this.b2bUser
console
.
log
(
'reload'
)
const
pages
=
getCurrentPages
()
const
curPage
=
pages
[
pages
.
length
-
1
]
curPage
.
onLoad
(
curPage
.
options
)
curPage
.
onShow
()
curPage
.
onReady
()
}
,
//关闭登录窗口
gbAuth
()
{
...
...
@@ -1704,20 +1715,24 @@
icon
:
'none'
,
title
:
'行程已下架,请查看其它行程'
}
)
setTimeout
(()
=>
{
uni
.
redirectTo
({
url
:
'/pages/index/index'
}
)
}
)
//
setTimeout(() =>
{
//
uni.redirectTo(
{
//
url: '/pages/index/index'
//
}
)
//
}
,
2000
)
}
}
,
(
err
)
=>
{
uni
.
hideLoading
()
setTimeout
(()
=>
{
uni
.
redirectTo
({
url
:
'/pages/index/index'
}
)
uni
.
showToast
({
icon
:
'none'
,
title
:
'行程不见了,请查看其它行程'
}
)
// setTimeout(() =>
{
// uni.redirectTo(
{
// url: '/pages/index/index'
//
}
,
2000
)
//
}
)
}
);
}
,
...
...
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