Commit 27dd74c9 by wangshuo

组队信息增加需求 二维码

parent 4a26b69a
...@@ -18,6 +18,7 @@ class LiveRoom extends Component { ...@@ -18,6 +18,7 @@ class LiveRoom extends Component {
list: [], list: [],
showMark: false, showMark: false,
subUrl: '', subUrl: '',
QRCodeUrl: '',
} }
} }
...@@ -50,6 +51,7 @@ class LiveRoom extends Component { ...@@ -50,6 +51,7 @@ class LiveRoom extends Component {
this.setState({ this.setState({
showMark: true, showMark: true,
subUrl: url, subUrl: url,
QRCodeUrl: url,
}) })
}) })
} else { } else {
......
...@@ -121,25 +121,35 @@ class TeamInfo extends Component { ...@@ -121,25 +121,35 @@ class TeamInfo extends Component {
fillTeam = (list, is_my_team) => { fillTeam = (list, is_my_team) => {
let len = list.length; let len = list.length;
// 没有创建队伍 并且没有加入他人队伍 // 没有创建队伍 并且没有加入他人队伍
if(len === 0 && !is_my_team) { if(this.props.user.hasError) {
list.push({ for(let i=0;i<5-len;i++) {
head_img: jsCookie.get('avatar_file'),
user_name: jsCookie.get('user_name'),
})
for(let i=0;i<4;i++) {
list.push({ list.push({
head_img: '', head_img: '',
user_name: '', user_name: '',
nobody: true, nobody: true,
}) })
} }
}else{ } else {
for(let i=0;i<5-len;i++) { if(len === 0 && !is_my_team) {
list.push({ list.push({
head_img: '', head_img: jsCookie.get('avatar_file'),
user_name: '', user_name: jsCookie.get('user_name'),
nobody: true,
}) })
for(let i=0;i<4;i++) {
list.push({
head_img: '',
user_name: '',
nobody: true,
})
}
}else{
for(let i=0;i<5-len;i++) {
list.push({
head_img: '',
user_name: '',
nobody: true,
})
}
} }
} }
......
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