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
9ed537a7
Commit
9ed537a7
authored
Aug 31, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新闻详情内容字体、颜色调整
parent
e6b9373f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
18 deletions
+5
-18
.gitignore
.gitignore
+1
-0
index.vue
pages/index.vue
+3
-14
_id.vue
pages/newsList/_id.vue
+1
-4
No files found.
.gitignore
View file @
9ed537a7
...
@@ -8,3 +8,4 @@ test/unit/coverage
...
@@ -8,3 +8,4 @@ test/unit/coverage
test/e2e/reports
test/e2e/reports
selenium-debug.log
selenium-debug.log
.idea
.idea
.nuxt
\ No newline at end of file
pages/index.vue
View file @
9ed537a7
...
@@ -439,19 +439,6 @@ export default {
...
@@ -439,19 +439,6 @@ export default {
var
galleryTop
=
new
Swiper
(
'.gallery-top'
,
{
var
galleryTop
=
new
Swiper
(
'.gallery-top'
,
{
spaceBetween
:
10
,
spaceBetween
:
10
,
loop
:
true
,
loop
:
true
,
// autoplay: {
// delay: 2500,
// disableOnInteraction: false,
// },
on
:
{
slideChangeTransitionEnd
:
function
()
{
t
.
preIndex
=
this
.
activeIndex
-
1
;
if
(
t
.
preIndex
==
4
){
t
.
preIndex
=
0
}
console
.
log
(
this
.
activeIndex
)
},
},
navigation
:
{
navigation
:
{
nextEl
:
'.swiper-button-next'
,
nextEl
:
'.swiper-button-next'
,
prevEl
:
'.swiper-button-prev'
,
prevEl
:
'.swiper-button-prev'
,
...
@@ -500,8 +487,10 @@ export default {
...
@@ -500,8 +487,10 @@ export default {
t
.
preIndex
=
this
.
activeIndex
-
1
;
t
.
preIndex
=
this
.
activeIndex
-
1
;
if
(
t
.
preIndex
==
4
){
if
(
t
.
preIndex
==
4
){
t
.
preIndex
=
0
t
.
preIndex
=
0
}
else
if
(
t
.
preIndex
==
-
1
){
t
.
preIndex
=
3
}
}
console
.
log
(
this
.
activeIndex
)
console
.
log
(
t
.
preIndex
+
"---"
+
t
his
.
activeIndex
)
},
},
},
},
navigation
:
{
navigation
:
{
...
...
pages/newsList/_id.vue
View file @
9ed537a7
...
@@ -63,11 +63,9 @@
...
@@ -63,11 +63,9 @@
async
asyncData
({
env
,
params
,
error
})
{
async
asyncData
({
env
,
params
,
error
})
{
const
{
data
}
=
await
axios
.
get
(
'/api/uccn/article/app/unauth/one?id='
+
params
.
id
+
"&urlType=1"
);
const
{
data
}
=
await
axios
.
get
(
'/api/uccn/article/app/unauth/one?id='
+
params
.
id
+
"&urlType=1"
);
let
detail
=
data
.
data
;
let
detail
=
data
.
data
;
if
(
!
detail
)
{
return
error
({
message
:
'detail not found'
,
statusCode
:
404
})
}
let
tempBannerData
=
await
axios
.
get
(
'/api/uccn/article/app/unauth/three?type=1&number=3&id='
+
params
.
id
);
let
tempBannerData
=
await
axios
.
get
(
'/api/uccn/article/app/unauth/three?type=1&number=3&id='
+
params
.
id
);
let
hot
=
tempBannerData
.
data
.
data
;
let
hot
=
tempBannerData
.
data
.
data
;
detail
.
text
=
detail
.
text
.
replace
(
/font-size: 18px !important;/g
,
"font-size: 14px !important;color:#666;line-height: normal !important;"
);
return
{
detail
:
detail
,
hotList
:
hot
}
return
{
detail
:
detail
,
hotList
:
hot
}
},
},
methods
:{
methods
:{
...
@@ -75,7 +73,6 @@
...
@@ -75,7 +73,6 @@
this
.
$refs
.
mySwiper
.
swiper
.
slideTo
(
index
+
1
,
1000
,
true
);
this
.
$refs
.
mySwiper
.
swiper
.
slideTo
(
index
+
1
,
1000
,
true
);
this
.
lengthPic
=
length
;
this
.
lengthPic
=
length
;
console
.
log
(
this
.
lengthPic
);
console
.
log
(
this
.
lengthPic
);
},
},
},
},
mounted
(){
mounted
(){
...
...
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