|
|
@@ -2,12 +2,12 @@
|
|
|
<div>
|
|
|
<el-row id="movie-list">
|
|
|
<el-col :md="18">
|
|
|
- <el-card :if="!video" :body-style="{ padding: '0px' }" class="card">
|
|
|
+ <el-card :if="!user" :body-style="{ padding: '0px' }" class="card">
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span>卡片名称</span>
|
|
|
+ <span>{{user.screenName}}</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
|
|
|
</div>
|
|
|
- <div :md="6" :sm="12" :xs="12">
|
|
|
+<!-- <div :md="6" :sm="12" :xs="12">
|
|
|
<router-link target="_blank" :to="`/video/${video.videoId}`">
|
|
|
<el-row>
|
|
|
<el-col :md="6">
|
|
|
@@ -26,7 +26,7 @@
|
|
|
</el-row>
|
|
|
<el-divider />
|
|
|
</router-link>
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
<!-- <div v-for="(video, index) in videoList" :key="index" :md="6" :sm="12" :xs="12">
|
|
|
<article-card :video="video" />
|
|
|
</div>-->
|
|
|
@@ -48,17 +48,16 @@ export default {
|
|
|
return {
|
|
|
// 屏幕宽度, 为了控制分页条的大小
|
|
|
screenWidth: document.body.clientWidth,
|
|
|
- currentPage: 1,
|
|
|
- videoList: [],
|
|
|
- video: null
|
|
|
+ user: null
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
const userId = this.$route.params.id
|
|
|
getUserInfo(userId).then(res => {
|
|
|
- console.log(res)
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.user = res.data
|
|
|
+ }
|
|
|
})
|
|
|
- console.log(userId)
|
|
|
},
|
|
|
mounted() {
|
|
|
// 当窗口宽度改变时获取屏幕宽度
|