|
@@ -189,14 +189,32 @@ export default {
|
|
|
wxShare(document.location.href,res.Data.H5ShareName||document.title,res.Data.H5ShareTitle,res.Data.H5ReportShareImg,0);
|
|
|
this.getreportdetail()
|
|
|
},
|
|
|
- pageResize(){
|
|
|
- const el=document.getElementById('reportdtl')
|
|
|
- const windowWid=document.body.clientWidth
|
|
|
- if(windowWid<1200){
|
|
|
- el.style.transform=`scale(${windowWid/1200})`
|
|
|
- // el.style.
|
|
|
- }
|
|
|
- },
|
|
|
+ // pageResize(){
|
|
|
+ // const el=document.getElementById('reportdtl')
|
|
|
+ // const windowWid=document.body.clientWidth
|
|
|
+ // if(windowWid<1200){
|
|
|
+ // el.style.transform=`scale(${windowWid/1200})`
|
|
|
+ // // el.style.
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // 智能布局移动端样式时内容排版全部变成1个1行的顺排
|
|
|
+ formatSmartStyle() {
|
|
|
+ this.$nextTick(() =>{
|
|
|
+ const width=window.innerWidth;
|
|
|
+ if(width>600) return
|
|
|
+ $('.report-drag-item-wrap_child-wrap').css({
|
|
|
+ 'flex-wrap': 'wrap',
|
|
|
+ });
|
|
|
+ $('.report-drag-item-wrap_child-wrap').children().css({
|
|
|
+ 'flex': 'none',
|
|
|
+ 'width': '100%'
|
|
|
+ });
|
|
|
+
|
|
|
+ document.querySelectorAll('div[comp-type="text"]').forEach(function(div) {
|
|
|
+ div.style.height = 'auto';
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
playaudio(item) {
|
|
|
//子组件先存后播
|
|
@@ -265,9 +283,10 @@ export default {
|
|
|
this.layoutBaseInfo['创建时间']=[2,6].includes(this.reportInfo.State)?this.reportInfo.PublishTime:''
|
|
|
|
|
|
this.isshow = true;
|
|
|
- this.$nextTick(()=>{
|
|
|
- this.pageResize()
|
|
|
- })
|
|
|
+ this.formatSmartStyle()
|
|
|
+ // this.$nextTick(()=>{
|
|
|
+ // this.pageResize()
|
|
|
+ // })
|
|
|
|
|
|
// wxShare(document.location.href, H5ShareName || document.title, wxShareTitle, H5ReportShareImg, 0);
|
|
|
|
|
@@ -383,8 +402,8 @@ body{
|
|
|
font-size: 14px;
|
|
|
background: #fff;
|
|
|
overflow: auto;
|
|
|
- width: 1200px;
|
|
|
- padding: 20px 20px 20px 44px;
|
|
|
+ width: 1240px;
|
|
|
+ padding: 20px;
|
|
|
margin: 0 auto;
|
|
|
|
|
|
.top-header {
|
|
@@ -500,10 +519,14 @@ body{
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-@media screen and (max-width:1200px){
|
|
|
+@media screen and (max-width:610px){
|
|
|
#reportdtl{
|
|
|
- position: absolute;
|
|
|
- transform-origin: 0 0;
|
|
|
+ width: 100%;
|
|
|
+ .no-layout-img-box{
|
|
|
+ header{
|
|
|
+ flex-direction: column-reverse;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|