| 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>
|
| xqd
@@ -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();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
})
|