Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-ssr
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
lixy
vue-ssr
Commits
a8ec1c03
Commit
a8ec1c03
authored
Sep 18, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接优化
parent
4b121645
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
24 deletions
+2
-24
_id.vue
pages/activityList/_id.vue
+0
-1
campsite.vue
pages/campsite.vue
+1
-15
_id.vue
pages/campsiteDetails/_id.vue
+0
-1
tour.vue
pages/tour.vue
+1
-5
_id.vue
pages/tourDetails/_id.vue
+0
-1
_id.vue
pages/vehicleList/_id.vue
+0
-1
No files found.
pages/activityList/_id.vue
View file @
a8ec1c03
...
...
@@ -98,7 +98,6 @@
let
path
=
$nuxt
.
$route
.
path
;
if
(
path
.
indexOf
(
'/activityList'
)
!=
-
1
){
var
menuTop
=
document
.
querySelector
(
'#activityHotId'
).
offsetTop
;
console
.
log
(
menuTop
+
"--"
+
scrollTop
);
//滑动到指定位置菜单吸顶
if
(
scrollTop
>
menuTop
-
120
)
{
this
.
barFixed
=
true
;
...
...
pages/campsite.vue
View file @
a8ec1c03
...
...
@@ -36,14 +36,6 @@
:value=
"item.id"
>
</el-option>
</el-select>
<!--
<select
@
change=
"chooseSelect($event)"
style=
"width:145px;text-align:center;height:30px;float:right;border:none;outline: none;color:#666;padding-left:30px"
>
<option
value
>
营地类型
</option>
<option
v-for=
"item in dataType"
:value=
"item.id"
:key=
"item.id"
>
{{
item
.
name
}}
</option>
<option
value
>
全部
</option>
</select>
-->
</div>
<h3
v-if=
"dataNull"
style=
"margin:20px 0;background-color: #fff;padding:20px"
>
暂无信息
</h3>
<ul
class=
"campsiteDetail clearfix"
v-if=
"!dataNull"
>
...
...
@@ -51,7 +43,6 @@
<nuxt-link
:to=
"item.link"
class=
"vehicle-item"
>
<img
:src=
"item.logo"
alt
style=
"width:100%;height:223px"
/>
<h2
style=
"font-size:20px;margin-top:22px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"
>
{{
item
.
name
}}
</h2>
<!--
<nuxt-link
:to=
"item.link"
class=
""
>
-->
<button
class=
"buttonDetails"
>
营地详情
<img
style=
"position: absolute;"
src=
"https://mgmt.dfangche.com/xxfccn/image/home/next.png"
/></button>
</nuxt-link>
</li>
...
...
@@ -134,7 +125,6 @@ export default {
const
{
data
:
{
data
}
}
=
await
axios
.
get
(
"/api/campsite/campsiteTag/app/unauth/tags"
);
// console.log(data);
data
.
unshift
({
id
:
""
,
name
:
'全部'
})
this
.
dataType
=
data
;
},
...
...
@@ -142,13 +132,9 @@ export default {
let
{
data
:
{
data
}
}
=
await
axios
.
get
(
`/api/uccn/app/unauth/campsite/shops?type=
${
this
.
listQuery
.
type
}
&pageNo=
${
this
.
listQuery
.
pageNo
}
&pageSize=
${
this
.
listQuery
.
pageSize
}
`
);
// console.log(data);
data
.
data
.
map
(
function
(
item
){
// item.modelParam = JSON.parse( item.modelParam);
item
.
link
=
encodeURI
(
'/campsiteDetails/'
+
item
.
id
+
'?name='
+
item
.
name
);
item
.
link
=
encodeURI
(
'/campsiteDetails/'
+
item
.
id
);
item
.
link
=
encodeURI
(
item
.
link
);
// item.pictureList = item.picture.split(",");
// item.coverPic = item.coverPic?item.coverPic: item.pictureList.length>0?item.pictureList[0]:'';
});
if
(
!
data
.
data
.
length
==
0
){
this
.
totalCount
=
data
.
totalCount
;
...
...
pages/campsiteDetails/_id.vue
View file @
a8ec1c03
...
...
@@ -170,7 +170,6 @@ export default {
let
path
=
$nuxt
.
$route
.
path
;
if
(
path
.
indexOf
(
'/campsiteDetail'
)
!=
-
1
){
var
menuTop
=
document
.
querySelector
(
'#campsiteHotId'
).
offsetTop
;
console
.
log
(
menuTop
+
"--"
+
scrollTop
);
//滑动到指定位置菜单吸顶
if
(
scrollTop
>
menuTop
-
120
)
{
this
.
barFixed
=
true
;
...
...
pages/tour.vue
View file @
a8ec1c03
...
...
@@ -120,7 +120,6 @@
},
methods
:{
chooseSelect
()
{
console
.
log
(
this
.
typeList
);
this
.
listQuery
.
tagId
=
this
.
typeList
this
.
getAll
();
},
...
...
@@ -134,7 +133,6 @@
this
.
getAll
();
},
choose
(
e
)
{
console
.
log
(
e
.
target
.
value
);
this
.
listQuery
.
tagId
=
e
.
target
.
value
;
this
.
getAll
();
},
...
...
@@ -144,16 +142,14 @@
}
=
await
axios
.
get
(
"/api/uccn/app/unauth/tour/tagList"
);
data
.
unshift
({
id
:
""
,
name
:
'全部'
})
this
.
dataType
=
data
;
console
.
log
(
data
);
this
.
loading
=
false
},
async
getAll
()
{
let
{
data
:
{
data
}
}
=
await
axios
.
get
(
`/api/uccn/app/unauth/tour/getGoodList?tagId=
${
this
.
listQuery
.
tagId
}
&page=
${
this
.
listQuery
.
page
}
&limit=
${
this
.
listQuery
.
limit
}
`
);
console
.
log
(
data
);
data
.
data
.
map
(
function
(
item
){
item
.
link
=
encodeURI
(
'/tourDetails/'
+
item
.
id
+
'?name='
+
item
.
name
);
item
.
link
=
encodeURI
(
'/tourDetails/'
+
item
.
id
);
item
.
link
=
encodeURI
(
item
.
link
);
});
if
(
!
data
.
data
.
length
==
0
){
...
...
pages/tourDetails/_id.vue
View file @
a8ec1c03
...
...
@@ -262,7 +262,6 @@ export default {
let
path
=
$nuxt
.
$route
.
path
;
if
(
path
.
indexOf
(
'/tourDetail'
)
!=
-
1
){
var
menuTop
=
document
.
querySelector
(
'#tourHotId'
).
offsetTop
;
console
.
log
(
menuTop
+
"--"
+
scrollTop
);
//滑动到指定位置菜单吸顶
if
(
scrollTop
>
menuTop
-
120
)
{
this
.
barFixed
=
true
;
...
...
pages/vehicleList/_id.vue
View file @
a8ec1c03
...
...
@@ -181,7 +181,6 @@
let
path
=
$nuxt
.
$route
.
path
;
if
(
path
.
indexOf
(
'/vehicleList'
)
!=
-
1
){
var
menuTop
=
document
.
querySelector
(
'#vehicleHotId'
).
offsetTop
;
console
.
log
(
menuTop
+
"--"
+
scrollTop
);
//滑动到指定位置菜单吸顶
if
(
scrollTop
>
menuTop
-
120
)
{
this
.
barFixed
=
true
;
...
...
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