Commit fc305bdd authored by wangjj's avatar wangjj

门户首页添加幸运星

parent 42633065
...@@ -4,19 +4,6 @@ ...@@ -4,19 +4,6 @@
<script type='text/javascript' src="[!--temp.ucenterurl--]common/uba.js?20180330"></script> <script type='text/javascript' src="[!--temp.ucenterurl--]common/uba.js?20180330"></script>
<script> <script>
function getAppVersion() {
var m = navigator.userAgent.match(/BanShou(\\\\/[\\\\d\\\\.]
+
)
? /);
if (m) {
return m[1] ? m[1].substr(1) : 0;
} else {
return false;
}
}
//if (/BanShou/.test(navigator.userAgent)) { //if (/BanShou/.test(navigator.userAgent)) {
//if (getAppVersion() == '2.5.7') { //if (getAppVersion() == '2.5.7') {
// WxhNative.toLoginAppForWxhWorker(); // WxhNative.toLoginAppForWxhWorker();
...@@ -127,7 +114,7 @@ ...@@ -127,7 +114,7 @@
<div id="tuan-containter"></div> <div id="tuan-containter"></div>
<!-- 扳手幸运星 --> <!-- 扳手幸运星 -->
<div id="luckdraw-containter"></div> <div id="luckdraw-containter" style="display: none"></div>
<div class="tuan-list"> <div class="tuan-list">
<a href="//sv.ibanshou.cn"> <a href="//sv.ibanshou.cn">
...@@ -437,18 +424,21 @@ ...@@ -437,18 +424,21 @@
function showLuckdraw() { function showLuckdraw() {
$.getJSON("//s.ibanshou.cn/e/action/luckdraw.php", function (data) { $.getJSON("//s.ibanshou.cn/e/action/luckdraw.php", function (data) {
var html = '\n' + if (data) {
'<div class="recommend-info">\n' + var html =
' <div class="news-item has-pic one-picture">\n' + '<div class="recommend-info">' +
' <a href="//u.ibanshou.cn/luckdraw/"' + data.id + '" class="content pb-none" style="min-height: 100px;">\n' + ' <div class="news-item has-pic one-picture">' +
' <div class="tit">' + data.s_title + '</div>\n' + ' <a href="//u.ibanshou.cn/luckdraw/' + data.id + '" class="content pb-none" style="min-height: 100px;">' +
' <div class="img-item-box clearfix">\n' + ' <div class="tit">' + data.s_title + '</div>' +
' <div class="img-item"><img src="' + data.share_image + '" alt=""></div>\n' + ' <div class="img-item-box clearfix">' +
' </div>\n' + ' <div class="img-item"><img src="' + data.share_image + '" alt=""></div>' +
' </a>\n' + ' </div>' +
' </div>\n' + ' </a>' +
'</div>'; ' </div>' +
$('#luckdraw-containter').html(html); '</div>';
$('#luckdraw-containter').html(html).show();
}
}) })
} }
......
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