Commit d84205f6011a22510501855f0245c9d4a3060231
1 parent
d8c4fc7d
新增统计
Showing
2 changed files
with
32 additions
and
29 deletions
index.html
| @@ -27,6 +27,8 @@ | @@ -27,6 +27,8 @@ | ||
| 27 | <script type="text/javascript" charset="UTF-8" src="https://wjj.ys1.cnliveimg.com/769/h5/js/jquery.min.js"></script> | 27 | <script type="text/javascript" charset="UTF-8" src="https://wjj.ys1.cnliveimg.com/769/h5/js/jquery.min.js"></script> |
| 28 | <script type="text/javascript" charset="UTF-8" src="//res.cdn.openinstall.io/openinstall.js"></script> | 28 | <script type="text/javascript" charset="UTF-8" src="//res.cdn.openinstall.io/openinstall.js"></script> |
| 29 | <script type="text/javascript" src="static/js/cnLive_openinstall.js"></script> | 29 | <script type="text/javascript" src="static/js/cnLive_openinstall.js"></script> |
| 30 | + <!-- 统计 --> | ||
| 31 | + <script type="text/javascript" src="//yweb3.cnliveimg.com/js/page_stadig.min.js?v=1.0"></script> | ||
| 30 | </head> | 32 | </head> |
| 31 | <body> | 33 | <body> |
| 32 | <div class="warpper"> | 34 | <div class="warpper"> |
static/js/cnLive_openinstall.js
| @@ -90,7 +90,8 @@ function wakeupOrInstall(data) { | @@ -90,7 +90,8 @@ function wakeupOrInstall(data) { | ||
| 90 | mm.wakeupOrInstall(); | 90 | mm.wakeupOrInstall(); |
| 91 | } | 91 | } |
| 92 | // channelName通过channelName获取的渠道包名channelCodeName获取到的渠道包名 | 92 | // channelName通过channelName获取的渠道包名channelCodeName获取到的渠道包名 |
| 93 | -var channelName = "tg_dstg", | 93 | +// var channelName = "tg_dstg", |
| 94 | + var channelName = getUrlParam("channelName"), | ||
| 94 | pathPrefix = "", | 95 | pathPrefix = "", |
| 95 | channelCodeName = "TGDSTG", | 96 | channelCodeName = "TGDSTG", |
| 96 | sid = getUrlParam("sid"), //sid | 97 | sid = getUrlParam("sid"), //sid |
| @@ -185,33 +186,33 @@ function openInstallReady(schemeParams) { | @@ -185,33 +186,33 @@ function openInstallReady(schemeParams) { | ||
| 185 | }, openInstallData); | 186 | }, openInstallData); |
| 186 | } | 187 | } |
| 187 | 188 | ||
| 188 | -// $.ajax({ | ||
| 189 | -// url: "//apiwjj.cnlive.com/Daren/common/getLatestApk.action", | ||
| 190 | -// type: "GET", | ||
| 191 | -// dataType: "json", | ||
| 192 | -// data: { | ||
| 193 | -// channelId: channelName | ||
| 194 | -// }, | ||
| 195 | -// success: function(res) { | ||
| 196 | -// channelCodeName = res.data.apkChannelName; | ||
| 197 | -// if (window.location.href.indexOf("singingActivityDescription.html") > -1) { | ||
| 198 | -// wakeupOrInstallWrtcTop(); | ||
| 199 | -// var item = | ||
| 200 | -// "type=web&pathPrefix=/cnBlockMore.html&channelName=901&blockId=608&blockType=27&contentType=14&title=%E4%BD%9C%E5%93%81%E5%B1%95%E7%A4%BA&moreUrl=http%3A%2F%2Fcms.cnlive.com%3A8768%2FcontentApi%2FtcysgList&isVotingSearch=%E6%8C%89%E7%BC%96%E5%8F%B7%2F%E5%90%8D%E7%A7%B0%E6%90%9C%E7%B4%A2"; | ||
| 201 | -// wakeupOrInstallWrtcBtn(item); | ||
| 202 | -// } else if (window.location.href.indexOf("cnLtyInvitation.html") > -1) { | ||
| 203 | -// //领头雁邀请页面拉起领头雁报名页面处理 | ||
| 204 | -// var item = | ||
| 205 | -// "type=web&pathPrefix=/cnLty.html&channelName=&isShowTitle=true&inviterUid=" + | ||
| 206 | -// sid; | ||
| 207 | -// wakeupOrInstallLtyInvitationTop(item); | ||
| 208 | -// } else { | ||
| 209 | -// openInstallReady(); | ||
| 210 | -// } | ||
| 211 | -// }, | ||
| 212 | -// error: function(err) { | ||
| 213 | -// // alert("接口请求失败!") | ||
| 214 | -// } | ||
| 215 | -// }); | 189 | +$.ajax({ |
| 190 | + url: "//apiwjj.cnlive.com/Daren/common/getLatestApk.action", | ||
| 191 | + type: "GET", | ||
| 192 | + dataType: "json", | ||
| 193 | + data: { | ||
| 194 | + channelId: channelName | ||
| 195 | + }, | ||
| 196 | + success: function(res) { | ||
| 197 | + channelCodeName = res.data.apkChannelName; | ||
| 198 | + if (window.location.href.indexOf("singingActivityDescription.html") > -1) { | ||
| 199 | + wakeupOrInstallWrtcTop(); | ||
| 200 | + var item = | ||
| 201 | + "type=web&pathPrefix=/cnBlockMore.html&channelName=901&blockId=608&blockType=27&contentType=14&title=%E4%BD%9C%E5%93%81%E5%B1%95%E7%A4%BA&moreUrl=http%3A%2F%2Fcms.cnlive.com%3A8768%2FcontentApi%2FtcysgList&isVotingSearch=%E6%8C%89%E7%BC%96%E5%8F%B7%2F%E5%90%8D%E7%A7%B0%E6%90%9C%E7%B4%A2"; | ||
| 202 | + wakeupOrInstallWrtcBtn(item); | ||
| 203 | + } else if (window.location.href.indexOf("cnLtyInvitation.html") > -1) { | ||
| 204 | + //领头雁邀请页面拉起领头雁报名页面处理 | ||
| 205 | + var item = | ||
| 206 | + "type=web&pathPrefix=/cnLty.html&channelName=&isShowTitle=true&inviterUid=" + | ||
| 207 | + sid; | ||
| 208 | + wakeupOrInstallLtyInvitationTop(item); | ||
| 209 | + } else { | ||
| 210 | + openInstallReady(); | ||
| 211 | + } | ||
| 212 | + }, | ||
| 213 | + error: function(err) { | ||
| 214 | + // alert("接口请求失败!") | ||
| 215 | + } | ||
| 216 | +}); | ||
| 216 | // 本地测试 | 217 | // 本地测试 |
| 217 | openInstallReady(); | 218 | openInstallReady(); |
| 218 | \ No newline at end of file | 219 | \ No newline at end of file |