diff --git a/src/components/ExampleItem.vue b/src/components/ExampleItem.vue index 61e1ba1..9f8aa40 100644 --- a/src/components/ExampleItem.vue +++ b/src/components/ExampleItem.vue @@ -1,10 +1,10 @@ - + + + + - + @@ -19,14 +19,23 @@ const { breakpoint } = useBootstrapBreakpoint(); margin-top: auto;bottom: 0; color: darkgray"> - - - - + + + + + + + + + + + + + + {{this.psginfo.brandname_en}} - {{this.psginfo.projectname_en}} @@ -88,13 +97,8 @@ export default { this.error = "返回的 JSON 对象中不存在 'data' 数组"; }else{ this.psginfo=this.psginfos[0]; - let bannerpath=this.cmsroot+this.psginfo.headimage.formats.large.url; - // let bannerpath=this.psginfo.headimage.formats.large.url; - if(bannerpath!=null) - { - console.log('bannerpath:', bannerpath); - document.getElementById('passagebanner').style.backgroundImage = "url('" + bannerpath + "')"; - } + let newtitle=this.psginfo.brandname_cn+this.psginfo.projectname_cn+'-开动文化科技(北京)有限公司'; + document.title=newtitle; } } else { this.error = "返回的 JSON 对象中不存在 'data' 数组"; @@ -123,15 +127,8 @@ export default { this.fetchpsginfos(); }, mounted() { - let bannerpath=this.cmsroot+this.psginfo.headimage.formats.large.url; - // let bannerpath=this.psginfo.headimage.formats.large.url; - if(bannerpath!=null) - { - console.log('bannerpath:', bannerpath); - document.getElementById('passagebanner').style.backgroundImage = "url('" + bannerpath + "')"; - } - let newtitle=this.psginfo.brandname_cn+this.psginfo.projectname_cn+'-开动文化科技(北京)有限公司'; - document.title=newtitle; + // let newtitle=this.psginfo.brandname_cn+this.psginfo.projectname_cn+'-开动文化科技(北京)有限公司'; + // document.title=newtitle; } } @@ -148,22 +145,35 @@ export default { } #wepbar{ - display: flex; - flex-direction: column; + } #pcbar{ - display: flex; - flex-direction: row; - span{ - overflow-wrap: break-word; - color: rgba(255, 255, 255, 1); - font-size: 36px; - font-family: DINPro-Light; - font-weight: 300; - text-align: left; - white-space: nowrap; - line-height: 40px; + @include media-breakpoint-between(xs, md) { + display: flex; + flex-direction: column; + span{ + overflow-wrap: break-word; + font-size: 16px; + font-family: DINPro-Light; + font-weight: 300; + text-align: left; + white-space: nowrap; + line-height: 20px; + } + } + @include media-breakpoint-up(md) { + display: flex; + flex-direction: column; + span { + overflow-wrap: break-word; + font-size: 36px; + font-family: DINPro-Light; + font-weight: 300; + text-align: left; + white-space: nowrap; + line-height: 40px; + } } }