加入游戏时,标题显示为multiplayer
This commit is contained in:
parent
7b3dad796a
commit
09c29f6edf
@ -45,9 +45,11 @@
|
||||
this.link = `${this.link}&version=${env}&account_id=${encodeURIComponent(account.account_id)}&session_id=${encodeURIComponent(account.session_id)}`;
|
||||
console.log('load page: ' + this.link);
|
||||
this.name = decodeURIComponent(params.name);
|
||||
wepy.setNavigationBarTitle({
|
||||
title: this.name
|
||||
});
|
||||
if (this.name) {
|
||||
wepy.setNavigationBarTitle({
|
||||
title: this.name
|
||||
});
|
||||
}
|
||||
this.share_image = decodeURIComponent(params.share_image);
|
||||
this.$apply();
|
||||
}
|
||||
|
@ -179,7 +179,7 @@
|
||||
let gid = options.gid;
|
||||
let link = `${fcUrl}?id=${gid}&roomId=${roomId}`;
|
||||
wepy.navigateTo({
|
||||
url: '/pages/game?link=' + encodeURIComponent(link) + '&gid=' + gid
|
||||
url: '/pages/game?link=' + encodeURIComponent(link) + '&gid=' + gid +'&name=multiplayer'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user