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
5e609892
Commit
5e609892
authored
Jun 01, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
7e05c2d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
near-good.vue
pages/hotel/components/near-good.vue
+1
-1
description.vue
pages/hotel/description.vue
+3
-3
detail.vue
pages/hotel/detail.vue
+1
-1
No files found.
pages/hotel/components/near-good.vue
View file @
5e609892
<
template
>
<view
class=
"near-good"
@
click=
"goDetail"
>
<image
:src=
"goodItem.CoverImg"
mode=
"aspectFill"
></image>
<view
class=
"good-name"
>
{{
goodItem
.
Name
}}
</view>
<view
class=
"good-name"
>
{{
goodItem
.
Name
.
substring
(
0
,
6
)
+
'...'
}}
</view>
</view>
</
template
>
...
...
pages/hotel/description.vue
View file @
5e609892
...
...
@@ -160,10 +160,10 @@
hotelObj
:
{},
//酒店信息
}
},
onLoad
()
{
onLoad
(
options
)
{
if
(
options
.
hotelObj
)
{
this
.
hotelObj
=
JSON
.
parse
(
options
.
hotelObj
);
console
.
log
(
"this.hotelObj"
,
this
.
hotelObj
)
this
.
formData
=
JSON
.
parse
(
decodeURIComponent
(
options
.
hotelObj
)
);
console
.
log
(
this
.
formData
,
'this.formData'
);
}
},
created
()
{
...
...
pages/hotel/detail.vue
View file @
5e609892
...
...
@@ -319,7 +319,7 @@
openDescription
()
{
let
hotelObj
=
JSON
.
stringify
(
this
.
dataList
);
uni
.
navigateTo
({
url
:
"/pages/hotel/description?hotelObj="
+
hotelObj
url
:
"/pages/hotel/description?hotelObj="
+
encodeURIComponent
(
hotelObj
)
})
},
//返回周几
...
...
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