Commit 27dd74c9 by wangshuo

组队信息增加需求 二维码

parent 4a26b69a
......@@ -18,6 +18,7 @@ class LiveRoom extends Component {
list: [],
showMark: false,
subUrl: '',
QRCodeUrl: '',
}
}
......@@ -50,6 +51,7 @@ class LiveRoom extends Component {
this.setState({
showMark: true,
subUrl: url,
QRCodeUrl: url,
})
})
} else {
......
......@@ -121,6 +121,15 @@ class TeamInfo extends Component {
fillTeam = (list, is_my_team) => {
let len = list.length;
// 没有创建队伍 并且没有加入他人队伍
if(this.props.user.hasError) {
for(let i=0;i<5-len;i++) {
list.push({
head_img: '',
user_name: '',
nobody: true,
})
}
} else {
if(len === 0 && !is_my_team) {
list.push({
head_img: jsCookie.get('avatar_file'),
......@@ -142,6 +151,7 @@ class TeamInfo extends Component {
})
}
}
}
return list;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment