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
769f9e80
Commit
769f9e80
authored
Jun 07, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3f67a01d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
index.vue
pages/index/index.vue
+2
-3
detail.vue
pages/restaurant/detail.vue
+5
-2
detail.vue
pages/ticketCoupons/detail.vue
+3
-2
No files found.
pages/index/index.vue
View file @
769f9e80
...
@@ -215,7 +215,6 @@
...
@@ -215,7 +215,6 @@
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
let
that
=
this
;
let
that
=
this
;
// options = {user_id:123978,SmallShopId:0,Up:0,JumpType:14}
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
(
res
)
{
success
(
res
)
{
that
.
titleStyle
=
{
that
.
titleStyle
=
{
...
@@ -825,9 +824,9 @@
...
@@ -825,9 +824,9 @@
}
else
if
(
that
.
JumpType
==
14
){
//用户资料填写
}
else
if
(
that
.
JumpType
==
14
){
//用户资料填写
uni
.
navigateTo
({
url
:
"/pages/blindDate/editData"
});
uni
.
navigateTo
({
url
:
"/pages/blindDate/editData"
});
}
else
if
(
that
.
JumpType
==
15
){
//门票详情
}
else
if
(
that
.
JumpType
==
15
){
//门票详情
uni
.
navigateTo
({
url
:
"/pages/ticketCoupons/detail?id"
+
that
.
GoodsId
});
uni
.
navigateTo
({
url
:
"/pages/ticketCoupons/detail?id
=
"
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
16
){
//餐食详情
}
else
if
(
that
.
JumpType
==
16
){
//餐食详情
uni
.
navigateTo
({
url
:
"/pages/restaurant/detail?id"
+
that
.
GoodsId
});
uni
.
navigateTo
({
url
:
"/pages/restaurant/detail?id
=
"
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
17
){
//景点专车
}
else
if
(
that
.
JumpType
==
17
){
//景点专车
uni
.
navigateTo
({
url
:
'/pages/guidecar/bookaCarList?carMsg='
+
that
.
carMsg
})
uni
.
navigateTo
({
url
:
'/pages/guidecar/bookaCarList?carMsg='
+
that
.
carMsg
})
}
else
if
(
that
.
JumpType
==
18
){
//酒店详情
}
else
if
(
that
.
JumpType
==
18
){
//酒店详情
...
...
pages/restaurant/detail.vue
View file @
769f9e80
<
template
>
<
template
>
<view
class=
"restaurant-detail"
>
<view
class=
"restaurant-detail"
v-if=
"details.Name"
>
<scroll-view
scroll-y=
"true"
style=
"width: 100%;height: 100%;"
@
scroll=
"scroll"
>
<scroll-view
scroll-y=
"true"
style=
"width: 100%;height: 100%;"
@
scroll=
"scroll"
>
<view
class=
"media"
:style=
"
{'opacity':(100-boxOption)+'%'}">
<view
class=
"media"
:style=
"
{'opacity':(100-boxOption)+'%'}">
<u-swiper
:list=
"imgsList"
:effect3d=
"false"
:height=
"407"
:interval=
"5000"
:border-radius=
"0"
<u-swiper
:list=
"imgsList"
:effect3d=
"false"
:height=
"407"
:interval=
"5000"
:border-radius=
"0"
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
info
:
''
info
:
''
}],
}],
Date
:
""
,
Date
:
""
,
up
:
""
,
Up
:
0
,
nearbyType
:
0
,
nearbyType
:
0
,
foodArr
:
[],
//推荐景点
foodArr
:
[],
//推荐景点
}
}
...
@@ -241,6 +241,7 @@
...
@@ -241,6 +241,7 @@
this
.
Date
=
tomorrow
this
.
Date
=
tomorrow
console
.
log
(
this
.
calendar
,
this
.
Date
)
console
.
log
(
this
.
calendar
,
this
.
Date
)
this
.
Up
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
},
},
onShareTimeline
()
{
onShareTimeline
()
{
// setTimeout(() => {
// setTimeout(() => {
...
@@ -282,6 +283,7 @@
...
@@ -282,6 +283,7 @@
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
}
}
console
.
log
(
"/pages/index/index?id="
+
this
.
ID
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=16'
)
return
{
return
{
title
:
this
.
details
.
Name
?
this
.
details
.
Name
:
'美食'
,
title
:
this
.
details
.
Name
?
this
.
details
.
Name
:
'美食'
,
path
:
"/pages/index/index?id="
+
this
.
ID
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=16'
,
path
:
"/pages/index/index?id="
+
this
.
ID
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=16'
,
...
@@ -289,6 +291,7 @@
...
@@ -289,6 +291,7 @@
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
options
)
if
(
options
&&
options
.
id
)
{
if
(
options
&&
options
.
id
)
{
this
.
ID
=
options
.
id
this
.
ID
=
options
.
id
this
.
getDetail
()
this
.
getDetail
()
...
...
pages/ticketCoupons/detail.vue
View file @
769f9e80
<
template
>
<
template
>
<view
style=
"height: 100vh; overflow: hidden;width:100vw;"
>
<view
style=
"height: 100vh; overflow: hidden;width:100vw;"
v-if=
"details.Name"
>
<scroll-view
scroll-y=
"true"
style=
"width: 100%;height: 100%;"
@
scroll=
"scroll"
>
<scroll-view
scroll-y=
"true"
style=
"width: 100%;height: 100%;"
@
scroll=
"scroll"
>
<view
style=
"height: 500rpx;position: relative;z-index: 1;background-color: #E7E7E7;"
<view
style=
"height: 500rpx;position: relative;z-index: 1;background-color: #E7E7E7;"
:style=
"
{'opacity':(100-boxOption)+'%'}">
:style=
"
{'opacity':(100-boxOption)+'%'}">
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
TicketName
:
""
,
TicketName
:
""
,
otherDate
:
"其他日期"
,
otherDate
:
"其他日期"
,
msgPath
:
""
,
msgPath
:
""
,
up
:
""
,
Up
:
0
,
nearbyType
:
0
,
nearbyType
:
0
,
scenicArr
:
[],
//推荐景点
scenicArr
:
[],
//推荐景点
}
}
...
@@ -308,6 +308,7 @@
...
@@ -308,6 +308,7 @@
let
imageUrl
=
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
?
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
:
let
imageUrl
=
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
?
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
:
''
;
''
;
let
id
=
this
.
ID
;
let
id
=
this
.
ID
;
this
.
Up
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
return
{
return
{
title
:
title
,
title
:
title
,
query
:
"id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
,
query
:
"id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
,
...
...
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