Commit c6d85829 authored by XieChuanJin's avatar XieChuanJin

1111

parent da77b23e
......@@ -123,11 +123,9 @@ class Main extends eui.UILayer {
this.btnGoto.onOnceTap(this, (resume) => {
Buried.doClickBuried(8);
let url = MConfigs.toAppUrl;
if (url.indexOf("?") >= 0) {
url += "&assistItemId=" + this.getAssistItemId();
} else {
url += "?assistItemId=" + this.getAssistItemId();
}
let activityUrl = url.split("MK_URL=")[1].split("&MK_TYPE=")[0];
let param = encodeURIComponent("?assistItemId=" + this.getAssistItemId());
url = url.replace(activityUrl, activityUrl + param);
window.location.href = url;
});
}
......
......@@ -116,6 +116,31 @@
}
});
</script>
14:41
<script>
function requirelogin() {
var ua = navigator.userAgent.toLocaleLowerCase();
if (ua.match(/android/)) {
window.NEWClientJs.clearMenuDataBean();
}
var param = window.location.href.split("assistItemId=")[1].split("&")[0];
loginForComm(
"https://activity.m.duiba.com.cn/customShare/share?id=3701",
"http://activity.m.duiba.com.cn/customActivity/cmbc/autoLogin/xmdxq" + param ? "?assistItemId=" + param : ""
);
}
function loginForComm(beforeUrl, toUrl) {
var p = {
'beforeUrl': beforeUrl, //跳转失败地址
'toUrl': toUrl //跳转地址
};
cmbcParams = p;
setWebitEvent("setFuncParams()", "loginForComm");
}
</script>
</body>
</html>
\ No newline at end of file
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