Mike 7 years ago
parent
commit
fb3c36255d

+ 4 - 3
miaomiao/www/css/style.css

xqd xqd
@@ -110,9 +110,7 @@ a.tab-item-add .icon {
 .img-file-up img { max-height: 100%; max-width: 100%; }
 .img-file-up em { position: absolute; top: -10px; right: -10px; display: inline-block; width: 20px; height: 20px; z-index: 2; font-size: 1.5em; color: #dd4814 }
 .btn-file-up:hover { background-color: #dd4814; color: #FFF; border: 1px solid #dd4814 }
-.dream-images{
-    background-repeat: no-repeat;background-position:center;background-size: cover;-webkit-background-size: cover;position: relative;height: 13rem;
-}
+
 .addfoot {
     background-color:#fafafa;
     border:1px solid #EEE;
@@ -232,6 +230,9 @@ overflow:auto;
     margin-top:5px;
     font-size: 15px;
 }
+.swiper-pagination-bullet{
+    background: #e5e5e5;
+}
 .mainitem .iheart {
     width: 1rem;
     position: relative;

+ 1 - 4
miaomiao/www/templates/home/dream-detail.html

xqd
@@ -31,10 +31,7 @@
                             </div>
                         </ion-slide-page>
                         <ion-slide-page ng-repeat="img in dream.imgs" >
-                            <div class="box banner" style="width: 100%">
-
-                        <div class="dream-images" style="background-image:url({{img.pic}});" style="width: 100%;"></div>
-                            </div>
+                                <div class="box banner" style="width: 100%"><img ng-src="{{img.pic}}" style="width: 100%;" /></div>
                         </ion-slide-page>
                     </ion-slides>
                 </div>

+ 2 - 3
miaomiao/www/templates/home/index.html

xqd xqd
@@ -49,7 +49,7 @@
                     <i class="icon ion-ios-arrow-right" style="font-size: 1.5rem; color: #00C3DA;"></i>
                 </div>
             </div>
-            <div style="background: #E6E6E6; height: 15px">
+            <div style="background:#E6E6E6;height:10px">
             </div>
             <div class="list">
                 <div class="item mainitem" ng-repeat="item in index.dreams">
@@ -71,8 +71,7 @@
                         </div>
                     </div>
                     <div ng-click="toDetail(item.id)">
-                        <div class="dream-images" style="background-image:url({{item.img.pic}});"></div>
-                        <!-- <img style="height: 220px" ng-src="{{item.img.pic}}" /> -->
+                        <img ng-src="{{item.img.pic}}" />
                         <div class="homeDream">
                             <p style="font-size: 16px">{{ item.name }}</p>
                             <p>{{ item.about }}</p>