Commit c04c8a03 authored by wildfirecode's avatar wildfirecode

1

parent 2ba94f51
...@@ -364,10 +364,12 @@ export default class MapScene extends Scene { ...@@ -364,10 +364,12 @@ export default class MapScene extends Scene {
NetManager.ins.hc_mapRank(() => { NetManager.ins.hc_mapRank(() => {
const hc_mapRank = DataManager.ins.getData('hc_mapRank').data; const hc_mapRank = DataManager.ins.getData('hc_mapRank').data;
if (!hc_mapRank) return; if (!hc_mapRank) return;
const { data } = DataManager.ins.getData('hc_userInfo');
hc_mapRank.forEach((ele) => { hc_mapRank.forEach((ele) => {
// ele.rank[0].avatar = if(ele.levelNum == getHomeData().levels.length + 1 ){
ele.rank[0].avatar = data.avatar;
}
this.addAvatar(ele.levelNum, ele.rank[0]); this.addAvatar(ele.levelNum, ele.rank[0]);
console.log(ele)
}); });
}); });
} }
......
...@@ -87,7 +87,7 @@ export default class InvitePanel extends Panel { ...@@ -87,7 +87,7 @@ export default class InvitePanel extends Panel {
return; return;
} }
let shareCode = res.data; // 分享码 let shareCode = res.data; // 分享码
CFG.wxShareLink = "https://gameact.suning.com/duiba/customShare/share?id=3531" + "&shareCode=" + shareCode; // 分享链接 CFG.wxShareLink = window['h5URL'] + "&shareCode=" + shareCode; // 分享链接
if(iswx()) { //微信端 if(iswx()) { //微信端
this.wxShareTip.visible = true; this.wxShareTip.visible = true;
window["invokeWX"](); window["invokeWX"]();
......
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