Commit 9ed537a7 authored by lixy's avatar lixy

新闻详情内容字体、颜色调整

parent e6b9373f
......@@ -8,3 +8,4 @@ test/unit/coverage
test/e2e/reports
selenium-debug.log
.idea
.nuxt
\ No newline at end of file
......@@ -439,19 +439,6 @@ export default {
var galleryTop = new Swiper('.gallery-top', {
spaceBetween: 10,
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: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
......@@ -500,8 +487,10 @@ export default {
t.preIndex = this.activeIndex-1;
if(t.preIndex == 4){
t.preIndex = 0
} else if(t.preIndex == -1){
t.preIndex = 3
}
console.log(this.activeIndex)
console.log(t.preIndex + "---" +this.activeIndex)
},
},
navigation: {
......
......@@ -63,11 +63,9 @@
async asyncData({ env, params, error}) {
const { data } = await axios.get('/api/uccn/article/app/unauth/one?id='+params.id+"&urlType=1");
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 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}
},
methods:{
......@@ -75,7 +73,6 @@
this.$refs.mySwiper.swiper.slideTo(index+1, 1000, true);
this.lengthPic = length;
console.log(this.lengthPic);
},
},
mounted(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment