|
@@ -11,7 +11,9 @@
|
|
|
</el-avatar>
|
|
</el-avatar>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :md="23">
|
|
<el-col :md="23">
|
|
|
- <span>{{ user.screenName }}</span>
|
|
|
|
|
|
|
+ <router-link target="_blank" :to="`/user/${user.userId}/image`">
|
|
|
|
|
+ <span>{{ user.screenName }}的相册</span>
|
|
|
|
|
+ </router-link>
|
|
|
<span v-html="' '" />
|
|
<span v-html="' '" />
|
|
|
<el-button
|
|
<el-button
|
|
|
type="danger"
|
|
type="danger"
|
|
@@ -32,6 +34,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
|
|
+ <br>
|
|
|
<span>{{data.albumName}}</span>
|
|
<span>{{data.albumName}}</span>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</div>
|
|
</div>
|
|
@@ -51,14 +54,11 @@
|
|
|
:src="image.thumbnailUrl"
|
|
:src="image.thumbnailUrl"
|
|
|
@click="showImages(index)">
|
|
@click="showImages(index)">
|
|
|
</el-image>
|
|
</el-image>
|
|
|
- <span style="position: absolute; bottom: 0; left: 0; color:white">
|
|
|
|
|
- <i v-if="true" class="el-icon-monitor" />
|
|
|
|
|
- <i v-else class="el-icon-mobile-phone" />
|
|
|
|
|
- </span>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div style="padding: 14px;">
|
|
<div style="padding: 14px;">
|
|
|
<span>
|
|
<span>
|
|
|
- <i class="el-icon-collection-tag"/>
|
|
|
|
|
|
|
+ <i v-if="collected" class="el-icon-star-on"/>
|
|
|
|
|
+ <i v-else class="el-icon-star-off" @click="collectImage"/>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
@@ -91,20 +91,21 @@ export default {
|
|
|
icon: 'el-icon-plus',
|
|
icon: 'el-icon-plus',
|
|
|
text: '关注'
|
|
text: '关注'
|
|
|
},
|
|
},
|
|
|
|
|
+ collected: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- this.userId = 12973
|
|
|
|
|
- getUserInfo(this.userId).then(res => {
|
|
|
|
|
|
|
+ const albumId = this.$route.params.albumId
|
|
|
|
|
+ getUserAlbum(albumId).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
- this.user = res.data
|
|
|
|
|
|
|
+ const resData = res.data
|
|
|
|
|
+ this.data = resData
|
|
|
|
|
+ document.title = '相册 - ' + resData.albumName
|
|
|
|
|
|
|
|
- const albumId = this.$route.params.albumId
|
|
|
|
|
- getUserAlbum(albumId).then(res => {
|
|
|
|
|
|
|
+ this.userId = resData.userId
|
|
|
|
|
+ getUserInfo(this.userId).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
- this.data = res.data
|
|
|
|
|
-
|
|
|
|
|
- document.title = '相册'
|
|
|
|
|
|
|
+ this.user = res.data
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -156,6 +157,10 @@ export default {
|
|
|
sendMessage(userId) {
|
|
sendMessage(userId) {
|
|
|
console.log('发送消息')
|
|
console.log('发送消息')
|
|
|
},
|
|
},
|
|
|
|
|
+ collectImage() {
|
|
|
|
|
+ console.log('收藏图片')
|
|
|
|
|
+ this.collected = true
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -167,11 +172,6 @@ export default {
|
|
|
padding-right: 6%;
|
|
padding-right: 6%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.pagination {
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- padding: 10px;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
/*处于手机屏幕时*/
|
|
/*处于手机屏幕时*/
|
|
|
@media screen and (max-width: 768px){
|
|
@media screen and (max-width: 768px){
|
|
|
.movie-list {
|
|
.movie-list {
|
|
@@ -187,7 +187,7 @@ export default {
|
|
|
|
|
|
|
|
.coverImg {
|
|
.coverImg {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- height: 175px;
|
|
|
|
|
|
|
+ height: 320px;
|
|
|
display: block;
|
|
display: block;
|
|
|
}
|
|
}
|
|
|
|
|
|