Przeglądaj źródła

修改h5适配样式

ymm 4 lat temu
rodzic
commit
b3a3074ae4
1 zmienionych plików z 11 dodań i 6 usunięć
  1. 11 6
      microserviceUserH5/vcloud/actFissionShare.html

+ 11 - 6
microserviceUserH5/vcloud/actFissionShare.html

@@ -34,6 +34,8 @@
             padding: 0 0.3rem;
             padding: 0 0.3rem;
             width: 100%;
             width: 100%;
             left: 0;
             left: 0;
+            display: flex;
+            justify-content: center;
 
 
 
 
         }
         }
@@ -103,7 +105,7 @@
         }
         }
 
 
         .top-content {
         .top-content {
-            width: 100%;
+            width: 6.9rem;
             padding-bottom: 0.3rem;
             padding-bottom: 0.3rem;
 
 
         }
         }
@@ -199,12 +201,15 @@
         .van-dialog__footer {
         .van-dialog__footer {
             display: none;
             display: none;
         }
         }
+        .top-banner{
+            margin: 0 auto;
+        }
     </style>
     </style>
 </head>
 </head>
 
 
 <body>
 <body>
     <div id="app" v-cloak class="container">
     <div id="app" v-cloak class="container">
-        <div v-if='isshow&&topic'>
+        <div v-if='isshow&&topic' style="margin: 0 auto;">
 
 
             <div class="top-banner">
             <div class="top-banner">
                 <van-notice-bar :scrollable="false">
                 <van-notice-bar :scrollable="false">
@@ -256,8 +261,8 @@
                 defaultImg: 'this.src="' + "../static/offImg/tou.png" + '"',
                 defaultImg: 'this.src="' + "../static/offImg/tou.png" + '"',
                 marqueeList: [],
                 marqueeList: [],
                 code: '',
                 code: '',
-                msg:'活动已下架',
-                tagId:0,
+                msg: '活动已下架',
+                tagId: 0,
 
 
             },
             },
             created() {
             created() {
@@ -392,10 +397,10 @@
                             if (res.data) {
                             if (res.data) {
                                 this.isshow = true;
                                 this.isshow = true;
                                 this.topic = res.data.content;
                                 this.topic = res.data.content;
-                                this.tagId=res.data.tagId;
+                                this.tagId = res.data.tagId;
                                 console.log(this.topic)
                                 console.log(this.topic)
                             } else {
                             } else {
-                                this.msg=res.msg;
+                                this.msg = res.msg;
                                 this.isshow = false;
                                 this.isshow = false;
 
 
                             }
                             }