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

1

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