Commit b7306ea0 by 田爽

闪动优化,首页轮播,文字排版图片边框

parent e0ffa883
...@@ -9,3 +9,7 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts'; ...@@ -9,3 +9,7 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts';
background-color: transparent; background-color: transparent;
} }
} }
.el-loading-custom-class {
transition: opacity 0s !important;
}
...@@ -671,27 +671,27 @@ export default { ...@@ -671,27 +671,27 @@ export default {
keywords: "", keywords: "",
keyBanner:0, keyBanner:0,
banner: [ banner: [
{ // {
brief: "国际物品编码组织(GS1)是全球性的、中立的非营利国际组织,致力于通过制定全球统一的产品标识和电子商务标准,实现供应链的高效运作与可视化。GS1总部设在布鲁塞尔,目前,在全球拥有116个成员组织。", // brief: "国际物品编码组织(GS1)是全球性的、中立的非营利国际组织,致力于通过制定全球统一的产品标识和电子商务标准,实现供应链的高效运作与可视化。GS1总部设在布鲁塞尔,目前,在全球拥有116个成员组织。",
briefShow: "国际物品编码组织(GS1)是全球性的、中立的非营利国际组织,致力于通过制定全球统一的产品标识和电子商务标准,实现供应链的高效运作与可视化。GS1总部设在布鲁塞尔,目前,在全球拥有116个成员组织。", // briefShow: "国际物品编码组织(GS1)是全球性的、中立的非营利国际组织,致力于通过制定全球统一的产品标识和电子商务标准,实现供应链的高效运作与可视化。GS1总部设在布鲁塞尔,目前,在全球拥有116个成员组织。",
checkIndexAuthor: "pwindqq", // checkIndexAuthor: "pwindqq",
checkflagIndex: 1, // checkflagIndex: 1,
classnum: "大轮播", // classnum: "大轮播",
colorBackground: "#002c6c !important", // colorBackground: "#002c6c !important",
colorBrief: "#FFF", // colorBrief: "#FFF",
colorMore: "orange", // colorMore: "orange",
directpath: "http://www.gs1.org/", // directpath: "http://www.gs1.org/",
editorIndex: "liun", // editorIndex: "liun",
id: 6, // id: 6,
isShow: "1", // isShow: "1",
lasteditorIndex: "pwindqq", // lasteditorIndex: "pwindqq",
levels: 1, // levels: 1,
levelsIndex: 0, // levelsIndex: 0,
picIndexPath: "http://dynamic.gs1cn.org/office/uploadFileResource/img/demo/index-banner2.jpg", // picIndexPath: "http://dynamic.gs1cn.org/office/uploadFileResource/img/demo/index-banner2.jpg",
starttimeIndex: "2018-05-02 10:20:00", // starttimeIndex: "2018-05-02 10:20:00",
title: "GS1", // title: "GS1",
updatetimeIndex: "2023-03-09 10:22:32", // updatetimeIndex: "2023-03-09 10:22:32",
}, // },
], // 首页大轮播图 ], // 首页大轮播图
bannerSettings: { bannerSettings: {
arrows: true, arrows: true,
......
...@@ -81,9 +81,10 @@ export default { ...@@ -81,9 +81,10 @@ export default {
} }
img { img {
max-width: 100%; max-width: 100%;
border-style: solid;
} }
p{ p{
overflow: hidden; // overflow: hidden;
} }
.custom_dash { .custom_dash {
list-style-type: none!important; /* 不显示列表项标记 */ list-style-type: none!important; /* 不显示列表项标记 */
...@@ -99,7 +100,4 @@ export default { ...@@ -99,7 +100,4 @@ export default {
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>
<template> <template>
<div class="msg container" v-loading="loading"> <div class="msg container">
<breadcrumb /> <breadcrumb />
<div class="row"> <div class="row">
<div class="col-lg-9"> <div class="col-lg-9">
...@@ -99,6 +99,7 @@ import { mapState,mapMutations } from "vuex"; ...@@ -99,6 +99,7 @@ import { mapState,mapMutations } from "vuex";
import breadcrumb from "../comps/breadcrumb.vue"; import breadcrumb from "../comps/breadcrumb.vue";
import list from "./comps/list.vue"; import list from "./comps/list.vue";
import list2 from "./comps/list2.vue"; import list2 from "./comps/list2.vue";
import { Loading } from 'element-ui';
export default { export default {
components: { components: {
...@@ -213,6 +214,9 @@ export default { ...@@ -213,6 +214,9 @@ export default {
] ]
}; };
}, },
beforeCreate() {
Loading.service({customClass: 'el-loading-custom-class'});
},
created() { created() {
if(JSON.parse(localStorage.getItem('isList'+this.id)) && JSON.parse(localStorage.getItem('isList'+this.id)) == 1){ if(JSON.parse(localStorage.getItem('isList'+this.id)) && JSON.parse(localStorage.getItem('isList'+this.id)) == 1){
let matche=[ let matche=[
...@@ -231,7 +235,6 @@ export default { ...@@ -231,7 +235,6 @@ export default {
this.source = data.source; this.source = data.source;
this.editor = data.editor; this.editor = data.editor;
this.xgljList(data.keyword); this.xgljList(data.keyword);
}else{ }else{
this.InfoFn(); this.InfoFn();
} }
...@@ -239,7 +242,6 @@ export default { ...@@ -239,7 +242,6 @@ export default {
this.newsTop10(); this.newsTop10();
this.announceList(); this.announceList();
this.zttjList(); this.zttjList();
}, },
mounted() { mounted() {
window.onbeforeunload = () => { window.onbeforeunload = () => {
...@@ -291,6 +293,7 @@ export default { ...@@ -291,6 +293,7 @@ export default {
this.$message.error(returnMsg) this.$message.error(returnMsg)
} }
this.loading=false this.loading=false
Loading.service().close();
}, },
// getBreadcrumb(classId){ // getBreadcrumb(classId){
......
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