xiaogang 3 년 전
부모
커밋
1c1bdec463
1개의 변경된 파일17개의 추가작업 그리고 1개의 파일을 삭제
  1. 17 1
      public/web/index.html

+ 17 - 1
public/web/index.html

xqd xqd
@@ -104,7 +104,7 @@
         </div>
       </div>
       <!-- 标签 -->
-      <div class="tab-box tags">
+      <div class="tab-box tags" style="margin-bottom: 120px;">
         <div class="title">标签</div>
         <div class="list" id="hobby"></div>
       </div>
@@ -165,6 +165,22 @@
             $('#smoke').html(res.smoke?res.smoke:"暂无");
             $('#work').html(res.work?res.work:"暂无");
             $('#area').html(res.area?res.area:"暂无");
+            if(res.photo.length>0){
+                $('#currpic').attr('src',res.photo[0].url);
+            }
+
+            if(res.photo.length>1){
+                var list_item = "";
+                for (var i=1;i<res.photo.length;i++) {
+                    list_item += '<div class="list-item"><img onclick="changePic(this)" src="'+res.photo[i]+'" /></div>';
+                }
+
+                $('.pics-list').html(list_item);
+                $('.pics-list').show();
+            }else{
+                $('.pics-list').hide();
+            }
+
 
         }
     })