Commit 638daddb authored by 邱旭's avatar 邱旭

1

parent fb514dd6
...@@ -42,8 +42,7 @@ export default class MapScene extends Scene { ...@@ -42,8 +42,7 @@ export default class MapScene extends Scene {
sendInvite() { sendInvite() {
const code = Utils.getRequestByKey('shareCode'); const code = Utils.getRequestByKey('shareCode');
const code2 = Utils.getRequestByKey('shareCode2'); if(!code) return;
if(!code && !code2) return;
const dojoin = DataManager.ins.getData('hc_doJoin'); const dojoin = DataManager.ins.getData('hc_doJoin');
if(!dojoin) return; if(!dojoin) return;
if(doHelpFlag) { if(doHelpFlag) {
...@@ -60,10 +59,11 @@ export default class MapScene extends Scene { ...@@ -60,10 +59,11 @@ export default class MapScene extends Scene {
if(!success) { return; } if(!success) { return; }
showToast("助力成功"); showToast("助力成功");
}; };
if(code) { if(code.indexOf("12345678") == -1){ // 邀请有礼
NetManager.ins.doHelp(callBack, code, dojoin.data); NetManager.ins.doHelp(callBack, code, dojoin.data);
} else if(code2) { } else { // 刮刮卡
NetManager.ins.scratchDoHelp(callBack, code2); let _code = code.slice(8);
NetManager.ins.scratchDoHelp(callBack, _code);
} }
} }
......
...@@ -220,8 +220,8 @@ class ScratchItem extends eui.ItemRenderer { ...@@ -220,8 +220,8 @@ class ScratchItem extends eui.ItemRenderer {
if(!success) { if(!success) {
return; return;
} }
let shareCode2 = res.data; // 分享码 let shareCode = res.data; // 分享码
CFG.wxShareLink = window['h5URL2'] + "&shareCode2=" + shareCode2; // 分享链接 CFG.wxShareLink = window['h5URL2'] + "&shareCode=" + "12345678" + shareCode; // 分享链接
CFG.wxShareTitle = '狮狮连萌超好玩~我已经玩到第一了!'; CFG.wxShareTitle = '狮狮连萌超好玩~我已经玩到第一了!';
CFG.wxShareDesc = '我在萌狮消消乐等你来挑战哦'; CFG.wxShareDesc = '我在萌狮消消乐等你来挑战哦';
CFG.wxShareImg = "http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg"; CFG.wxShareImg = "http://yun.duiba.com.cn/db_games/xiaoxiaole2.jpg";
...@@ -230,7 +230,7 @@ class ScratchItem extends eui.ItemRenderer { ...@@ -230,7 +230,7 @@ class ScratchItem extends eui.ItemRenderer {
window["invokeWX"](); window["invokeWX"]();
} else {//端内 } else {//端内
this.data.wxShareTip.visible = false; this.data.wxShareTip.visible = false;
window["inviteShare2"](shareCode2); window["scratchShare"](shareCode);
} }
}, this.data.scratchTaskId); }, this.data.scratchTaskId);
}, this); }, this);
......
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