Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s_ibanshou
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋林
s_ibanshou
Commits
0adf0565
Commit
0adf0565
authored
Apr 27, 2018
by
wangjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调用红包接口
parent
a8b53bb2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
725 additions
and
31 deletions
+725
-31
indexloginstatus.php
e/member/login/indexloginstatus.php
+20
-27
index_dev.html
index_dev.html
+8
-4
index_prod.html
index_prod.html
+456
-0
index_test.html
index_test.html
+241
-0
No files found.
e/member/login/indexloginstatus.php
View file @
0adf0565
...
...
@@ -6,36 +6,29 @@ require(__DIR__ . "/../../class/q_functions.php");
$iscas
=
getcvar
(
'mlcas'
);
if
(
$iscas
)
{
$link
=
db_connect
();
$empire
=
new
mysqlquery
();
$user
=
islogin
();
$ucid
=
$user
[
'ucid'
];
$link
=
db_connect
();
$empire
=
new
mysqlquery
();
$user
=
islogin
();
$ucid
=
$user
[
'ucid'
];
}
?>
<?php
$isShow
=
false
;
if
(
time
()
>
strtotime
(
'2018-05-01 00:00:00'
)
&&
time
()
<=
strtotime
(
'2018-05-10 23:59:59'
))
{
$isShow
=
true
;
}
?>
<?php
if
(
!
$iscas
)
{
?>
$(function(){
<!-- $(".books").attr("href", "/e/member/login");-->
<?php
if
(
time
()
>
1525104000
)
{
?>
showRedpack();
$("#invite-main").attr("style", "display:block;");
<?php
}
?>
$("#loginGits").attr("style", "display:block;");
});
<?php
}
else
{
?>
<?php
if
(
time
()
>
1525104000
)
{
?>
showRedpack("
<?=
$ucid
?>
");
$("#invite-main").attr("style", "display:block;");
<?php
}
?>
$(function(){
<!-- $(".books").attr("href", "/e/member/login");-->
<?php
if
(
$isShow
)
{
?>
showRedpack();$("#invite-main").attr("style", "display:block;");
<?php
}
?>
$("#loginGits").attr("style", "display:block;");});
<?php
}
else
{
?><?php
if
(
$isShow
)
{
?>
showRedpack("
<?=
$ucid
?>
");$("#invite-main").attr("style", "display:block;");
<?php
}
?>
var zhugeCheckRunHandler = false;
function zhugeCheckRun(){
if(!window.zhuge){
zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);
}else{
clearTimeout(zhugeCheckRunHandler);
window.zhuge.identify("
<?=
$ucid
?>
");
}
}
zhugeCheckRun();
var zhugeCheckRunHandler = false;function zhugeCheckRun(){if(!window.zhuge){zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);}else{clearTimeout(zhugeCheckRunHandler);window.zhuge.identify("
<?=
$ucid
?>
");}}zhugeCheckRun();
<?php
}
?>
bb
.html
→
index_dev
.html
View file @
0adf0565
...
...
@@ -49,7 +49,7 @@
</div>
<div
class=
"enter-img"
>
<a
href=
"[!--temp.ucenterurl--]invite-redpack/index"
><img
src=
"/skin/default/images/enter.png"
></a>
<a
href=
"[!--temp.ucenterurl--]invite-redpack/index"
id=
"invite-redpack"
><img
src=
"/skin/default/images/enter.png"
></a>
</div>
<div
class=
"recommend-info"
>
...
...
@@ -213,8 +213,7 @@
}
</style>
<div
class=
"red-packet"
id=
"redpack"
style=
"display: none"
>
</div>
<div
class=
"red-packet"
id=
"redpack"
style=
"display: none"
></div>
<script
src=
"[!--news.url--]e/member/login/logincas.php"
></script>
<script
type=
'text/javascript'
src=
"[!--news.url--]skin/default/js/swiper.min.js"
></script>
...
...
@@ -378,7 +377,12 @@
};
function
inviteRedpack
()
{
window
.
location
.
href
=
"[!--temp.ucenterurl--]invite-redpack/index"
;
if
(
!
/Android|webOS|iPhone|iPod|BlackBerry/i
.
test
(
navigator
.
userAgent
)){
window
.
location
.
href
=
"http://a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui&ckey=CK1391535911216"
;
}
else
{
window
.
location
.
href
=
"[!--temp.ucenterurl--]invite-redpack/index"
;
}
}
$
(
function
()
{
...
...
index_prod.html
0 → 100644
View file @
0adf0565
[!--temp.header--]
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/nav.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/banshou.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/uba.js?20180330"
></script>
<script>
//if (/BanShou/.test(navigator.userAgent)) {
//if (getAppVersion() == '2.5.7') {
// WxhNative.toLoginAppForWxhWorker();
// }
//}
</script>
<div
class=
"empty-block"
></div>
<div
class=
"common-top"
>
<a
href=
"[!--temp.bbsurl--]home.php?mod=task2"
class=
"sign"
><i
class=
"iconfont icon-jinbi1"
></i></a>
<a
href=
"javascript:;"
id=
"quiz-enter"
class=
"bs-winner"
style=
"display:none;"
>
<span
class=
"bsdyj-tip"
id=
"bsdyj-tip"
style=
"display:none"
>
每日送出数千元现金
</span>
</a>
<div
class=
"nav-main"
>
<a
href=
"[!--news.url--]"
class=
"cur"
>
推荐
</a>
<a
href=
"/ziliao/song"
class=
"books"
>
资料
</a>
<a
href=
"[!--temp.bbsurl--]plugin.php?id=xigua_integralmall:xigua_integralmall"
>
兑换
</a>
<a
href=
"[!--temp.bbsurl--]plugin.php?id=tom_tcptuan&site=1&mod=index"
>
拼团
<span
class=
"new"
>
new
</span></a>
</div>
<a
href=
"[!--temp.ucenterurl--]search?from=s"
class=
"search"
><i
class=
"iconfont icon-sousuo"
></i></a>
<span
class=
"tips"
style=
"display:none"
>
签到领金币
</span>
</div>
<div
class=
"swiper-container topBanner"
>
<div
class=
"swiper-wrapper"
>
[ecmsinfo]29,5,64,0,2,15,1[/ecmsinfo]
</div>
<!-- 如果需要分页器 -->
<div
class=
"swiper-pagination"
></div>
</div>
<div
class=
"quick-link"
>
<ul
class=
"link-item clearfix"
>
<li>
<a
href=
"https://code.ibanshou.cn"
>
<i
class=
"icon-kuaicha"
></i>
<p>
快查
</p>
</a>
</li>
<li>
<a
href=
"//bbs.ibanshou.cn/forum.php?mod=forumdisplay&fid=161"
>
<i
class=
"icon-huati"
></i>
<p>
互助
</p>
<span
style=
"display: none"
id=
"unquestioncount"
></span>
</a>
</li>
<li>
<a
href=
"//s.ibanshou.cn/huati/"
>
<i
class=
"icon-bx"
></i>
<p>
话题
</p>
</a>
</li>
<li>
<a
href=
"//bbs.ibanshou.cn/forum.php?mod=forumdisplay&fid=157"
>
<i
class=
"icon-more-pro"
></i>
<p>
日记
</p>
</a>
</li>
<li>
<a
href=
"//u.ibanshou.cn/vdeposit/today-orders"
>
<i
class=
"icon-kuaiwen"
></i>
<p>
每日工单
</p>
</a>
</li>
<li>
<a
href=
"//xue.ibanshou.cn/home/category-detail?categoryId=41"
>
<i
class=
"icon-kt"
></i>
<p>
空调
</p>
</a>
</li>
<li>
<a
href=
"//xue.ibanshou.cn/home/category-detail?categoryId=48"
>
<i
class=
"icon-ds"
></i>
<p>
电视
</p>
</a>
</li>
<li>
<a
href=
"//xue.ibanshou.cn/home/category-detail?categoryId=47"
>
<i
class=
"icon-xyj"
></i>
<p>
洗衣机
</p>
</a>
</li>
</ul>
</div>
<div
class=
"recommend-info"
>
[ecmsinfo]0,1,100,0,3,14,0,'firsttitle=1'[/ecmsinfo]
</div>
<!-- 直播课程预约 -->
<div
class=
"tuan-list"
style=
"display:none;"
>
<a
href=
"#"
>
<img
src=
"https://pub-cdn.ibanshou.cn/preview/8f/e6/8e/yqsMGxSDtwCVlv9c4643.jpg-ym.preview"
>
<h3>
液晶电视芯片级维修之系列讲座--第十集高压板电路检修
</h3>
<p
class=
"clearfix"
>
<span
class=
"price"
>
12931
<b>
人已预约
</b></span>
<span
class=
"go-buy-btn"
>
预约报名
<i
class=
"iconfont icon-xiangyou1"
></i></span>
</p>
</a>
</div>
[ibanshou]1[/ibanshou]
<div
id=
"tuan-containter"
></div>
<!-- 扳手幸运星 -->
<!--<div class="news-item has-pic one-picture">-->
<!--<a href="//u.ibanshou.cn/luckdraw/5" class="content pb-none" style="min-height: 100px;">-->
<!--<div class="tit">奖品:制冷设备维修工(中级)—考证必备教材书籍X3 请点击参与→</div>-->
<!--<div class="img-item-box clearfix">-->
<!--<div class="img-item"><img src="https://ww1.sinaimg.cn/large/87c01ec7gy1fqjau3enprj205k05k3yn.jpg"></div>-->
<!--</div>-->
<!--</a>-->
<!--</div>-->
<div
id=
"luckdraw-containter"
style=
"display: none"
></div>
<div
class=
"tuan-list"
>
<a
href=
"//sv.ibanshou.cn"
>
<img
src=
"//s.ibanshou.cn/skin/default/images/sv_banner.jpg"
>
<h3>
最美维修人,秀出你自己,参与活动赢大奖!
</h3>
<p
class=
"clearfix"
>
<span
class=
"price"
><span
style=
"font-size: 14px;"
>
参与活动赢豪礼
</span></span>
<span
class=
"go-buy-btn"
>
立即参与
<i
class=
"iconfont icon-xiangyou1"
></i></span>
</p>
</a>
</div>
<div
class=
"interview-box"
>
<div
class=
"tit"
>
扳手专访
<span>
Interview
</span>
<a
href=
"/zhuanfang"
>
更多
</a></div>
<div
class=
"swiper-container interviewSlider"
>
<div
class=
"swiper-wrapper"
>
[ecmsinfo]32,10,80,0,0,17,0[/ecmsinfo]
</div>
</div>
</div>
<div
class=
"recommend-info"
>
[ecmsinfo]1,50,100,0,0,14,0,'isgood!=2 and firsttitle!=1','newstime DESC'[/ecmsinfo]
</div>
<div
class=
"update-app-tip"
id=
"update-app-tip"
style=
"display: none"
>
<div
class=
"uat-main"
>
<div
class=
"tit"
>
版本更新提示
<a
href=
"javascript:;"
class=
"UPDATE-CLOSE"
><i
class=
"iconfont icon-close_light"
></i></a>
</div>
<div
class=
"txt"
>
<p>
请将APP更新到最新版本
</p>
<p>
答题赢钱,千元现金等你来拿
</p>
</div>
<a
href=
"javascript;;"
class=
"uat-now UPDATE-CLOSE"
id=
""
>
我知道了
</a>
</div>
</div>
<div
class=
"update-app-tip"
id=
"prompt"
style=
"display: none"
>
<div
class=
"uat-main"
>
<div
class=
"tit"
>
扳手大赢家
<a
href=
"javascript:;"
class=
"PROMPT-CLOSE"
><i
class=
"iconfont icon-close_light"
></i></a>
</div>
<div
class=
"screen"
>
<div
class=
"item"
>
<p>
4月1日
</p>
<h3>
20:00
</h3>
</div>
<div
class=
"item"
>
<p>
奖池
</p>
<h3>
888
</h3>
</div>
</div>
<a
href=
"javascript:;"
class=
"uat-now PROMPT-CLOSE"
>
我知道了
</a>
</div>
</div>
<!-- 登录有礼提示 -->
<a
class=
"newer-tip"
id=
"loginGits"
href=
"[!--temp.ucenterurl--]login/web"
style=
"display:none"
><img
src=
"//s.ibanshou.cn/skin/default/images/login_gits.png"
></a>
<script
type=
'text/javascript'
src=
"[!--news.url--]skin/default/js/swiper.min.js"
></script>
<script>
/*
window.onerror = function (msg, url, lineNo, columnNo, error) {
var string = msg.toLowerCase();
var substring = "script error";
if (string.indexOf(substring) > -1){
alert('Script Error: See Browser Console for Detail');
} else {
var message = [
'Message: ' + msg,
'URL: ' + url,
'Line: ' + lineNo,
'Column: ' + columnNo,
'Error object: ' + JSON.stringify(error)
].join(' - ');
alert(message);
}
return false;
};
*/
var
mySwiper
=
new
Swiper
(
'.topBanner'
,
{
autoplay
:
5000
,
pagination
:
'.swiper-pagination'
});
$
(
function
()
{
setWidth
();
$
(
window
).
resize
(
setWidth
);
function
setWidth
()
{
if
(
$
(
window
).
width
()
>=
900
)
{
$
(
'.newest-list'
).
find
(
'.learn-course-box'
).
width
(
427
);
}
else
{
$
(
'.newest-list'
).
find
(
'.learn-course-box'
).
width
((
$
(
window
).
width
()
-
45
)
/
2
);
}
}
var
s
=
document
.
createElement
(
"script"
);
s
.
type
=
"text/javascript"
;
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
s
);
s
.
src
=
"[!--news.url--]e/member/login/logincas.php"
;
var
mySwiper2
=
new
Swiper
(
'.interviewSlider'
,
{
slidesPerView
:
2
,
grabCursor
:
true
,
autoplay
:
5000
});
$
.
getJSON
(
"[!--temp.ucenterurl--]tip/state-call?tips=s_books&callback=?"
,
function
(
data
)
{
var
books
=
$
(
".common-top a.books"
);
var
booksUrl
=
books
.
attr
(
'href'
);
if
(
data
.
s_books
)
{
books
.
attr
(
"href"
,
booksUrl
);
}
else
{
books
.
append
(
'<span class="file-tip">送的书和专享视频,在这里</span>'
);
books
.
click
(
function
()
{
$
.
getJSON
(
"[!--temp.ucenterurl--]tip/state-push?tip=s_books&callback=?"
,
function
(
data
)
{
location
.
href
=
booksUrl
;
});
});
}
});
})
</script>
[!--temp.stat-js--]
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.0.0.js"
></script>
<script>
function
wechatcallback
(
jsconfig
)
{
//其它的在对应页面
var
link
=
window
.
location
.
href
;
var
imgUrl
=
"http://u.ibanshou.cn/assets/img/logo.jpg"
;
var
title
=
"扳手 - 和百万家电维修人在一起"
;
var
desc
=
"和百万家电维修人在一起"
;
wx
.
config
(
jsconfig
);
wx
.
ready
(
function
()
{
wx
.
onMenuShareTimeline
({
title
:
title
,
// 分享标题
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
imgUrl
,
// 分享图标
success
:
function
()
{
// 用户确认分享后执行的回调函数
},
cancel
:
function
()
{
// 用户取消分享后执行的回调函数
}
});
wx
.
onMenuShareAppMessage
({
title
:
title
,
// 分享标题
desc
:
desc
,
// 分享描述
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
imgUrl
,
// 分享图标
type
:
'link'
,
// 分享类型,music、video或link,不填默认为link
dataUrl
:
''
,
// 如果type是music或video,则要提供数据链接,默认为空
success
:
function
()
{
// 用户确认分享后执行的回调函数
},
cancel
:
function
()
{
// 用户取消分享后执行的回调函数
}
});
wx
.
onMenuShareWeibo
({
desc
:
desc
,
// 分享描述
title
:
title
,
// 分享标题
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
imgUrl
,
// 分享图标
success
:
function
()
{
// 用户确认分享后执行的回调函数
},
cancel
:
function
()
{
// 用户取消分享后执行的回调函数
}
});
wx
.
onMenuShareQQ
({
desc
:
desc
,
// 分享描述
title
:
title
,
// 分享标题
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
imgUrl
,
// 分享图标
success
:
function
()
{
// 用户确认分享后执行的回调函数
},
cancel
:
function
()
{
// 用户取消分享后执行的回调函数
}
});
})
}
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
"/e/action/wechat/jsconfig.php?callback=wechatcallback&url="
+
window
.
location
.
href
;
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
script
);
</script>
<script
src=
"[!--news.url--]e/extend/DoTimeRepage/"
></script>
<script
src=
"[!--temp.ucenterurl--]common/beat-home-popup.js"
></script>
<script
src=
"[!--temp.ucenterurl--]common/js-app.js?1"
></script>
<script
src=
"[!--news.url--]e/member/login/indexloginstatus.php"
></script>
<script>
/*
if (BanShou.isSupport('messagePush')) {
BanShou.ready(function (native) {
$.ajax({type: "get", url: "[!--temp.ucenterurl--]member/regpushconf", dataType: "jsonp"}).done(function (conf) {
native.registerPushConfig(conf);
});
});
}
*/
/*
var isTipShow ;
function isShow() {
$.getJSON("[!--temp.ucenterurl--]tip/state-call?tips=quiz_bsdyj_tip&callback=?", function (data) {
if (data.quiz_bsdyj_tip) {
$('#bsdyj-tip').hide();
} else {
$('#bsdyj-tip').show();
}
isTipShow = !data.quiz_bsdyj_tip;
});
}
function toHide() {
$.getJSON("[!--temp.ucenterurl--]tip/state-push?tip=quiz_bsdyj_tip&callback=?", function (data) {
if (data) {
$('#bsdyj-tip').hide();
}
});
}
var md = new MobileDetect(window.navigator.userAgent);
var urgent = true;
if (BanShou.inApp()) {
if (BanShou.isSupport('quiz')) {
isShow();
$("#quiz-enter").show().click(function () {
if (isTipShow) {
toHide();
}
if (urgent) {
$('#prompt').show();
} else {
BanShou.ready(function (native) {
var obj = {
page: 'quiz_show', extra: {}
};
native.toIbanshouPage(obj);
});
}
});
} else {
if (!md.is('ios')) {
$("#quiz-enter").show().click(function () {
if (isTipShow) {
toHide();
}
$("#update-app-tip").show();
});
}
}
}
*/
$
(
'.PROMPT-CLOSE'
).
click
(
function
()
{
$
(
'#prompt'
).
hide
();
});
$
(
'.update-close'
).
click
(
function
()
{
$
(
"#update-app-tip"
).
hide
();
});
function
showUnquestionCount
()
{
$
.
ajax
({
type
:
"get"
,
url
:
"//s.ibanshou.cn/e/action/unquestion.php"
,
dataType
:
"json"
}).
done
(
function
(
count
)
{
if
(
count
>
0
)
{
$
(
'#unquestioncount'
).
html
(
parseInt
(
count
)).
show
();
}
else
{
$
(
'#unquestioncount'
).
hide
();
}
});
}
function
showTuanProcess
(
num
)
{
$
.
getJSON
(
"//s.ibanshou.cn/e/action/tcptuan.php?num="
+
num
,
function
(
data
)
{
var
html
=
''
;
for
(
var
i
=
0
,
item
;
item
=
data
[
i
];
i
++
)
{
html
+=
' <div class="tuan-list" >'
+
' <a href=" '
+
'//bbs.ibanshou.cn/plugin.php?id=tom_tcptuan&site=1&mod=goodsinfo&goods_id='
+
item
.
id
+
'">'
+
' <img src="'
+
item
.
toppic
+
'">'
+
' <h3>'
+
item
.
name
+
'</h3>'
+
' <p class="clearfix"><span class="price">¥'
+
item
.
tuan_price
+
' <b>'
+
item
.
tuan_num
+
'人团</b></span> <span class="go-buy-btn">去开团 <i class="iconfont icon-xiangyou1"></i></span></p>'
+
' </a>'
+
' </div>'
;
}
$
(
'#tuan-containter'
).
html
(
html
).
show
();
});
}
function
showLuckdraw
()
{
$
.
getJSON
(
"//s.ibanshou.cn/e/action/luckdraw.php"
,
function
(
data
)
{
if
(
data
)
{
var
html
=
'<div class="recommend-info">'
+
' <div class="news-item has-pic one-picture">'
+
' <a href="//u.ibanshou.cn/luckdraw/'
+
data
.
id
+
'" class="content pb-none" style="min-height: 100px;">'
+
' <div class="tit">'
+
data
.
s_title
+
'</div>'
+
' <div class="img-item-box clearfix">'
+
' <div class="img-item"><img src="'
+
data
.
share_image
+
'" alt=""></div>'
+
' </div>'
+
' </a>'
+
' </div>'
+
'</div>'
;
$
(
'#luckdraw-containter'
).
html
(
html
).
show
();
}
})
}
$
(
function
()
{
showUnquestionCount
();
showTuanProcess
(
2
);
showLuckdraw
();
});
</script></body></html>
\ No newline at end of file
aa
.html
→
index_test
.html
View file @
0adf0565
[!--temp.header--]
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/nav.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/banshou.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/uba.js?20180330"
></script>
<script>
//if (/BanShou/.test(navigator.userAgent)) {
//if (getAppVersion() == '2.5.7') {
// WxhNative.toLoginAppForWxhWorker();
// }
//}
</script>
<div
class=
"empty-block"
></div>
<div
class=
"common-top"
>
<a
href=
"[!--temp.bbsurl--]home.php?mod=task2"
class=
"sign"
><i
class=
"iconfont icon-jinbi1"
></i></a>
<a
href=
"javascript:;"
id=
"quiz-enter"
class=
"bs-winner"
style=
"display:none;"
>
<span
class=
"bsdyj-tip"
id=
"bsdyj-tip"
style=
"display:none"
>
每日送出数千元现金
</span>
</a>
<a
href=
"javascript:;"
class=
"sign"
><i
class=
"iconfont icon-qiandao1111"
></i></a>
<div
class=
"nav-main"
>
<a
href=
"[!--news.url--]"
class=
"cur"
>
推荐
</a>
<a
href=
"/ziliao/song"
class=
"books"
>
资料
</a>
<a
href=
"
[!--temp.bbsurl--]plugin.php?id=xigua_integralmall:xigua_integralmall"
>
兑换
</a>
<a
href=
"[!--temp.bbsurl--]plugin.php?id=tom_tcptuan&site=1&mod=index"
>
拼团
<span
class=
"new"
>
new
</span></a>
[e:loop={"select classname,classpath from phome_enewsclass where bclassid=1 order by classid ",0,24,0}]
<a
href=
"
/<?=$bqr[classpath]?>"
>
<?=$bqr[classname]?>
</a>
[/e:loop]
</div>
<a
href=
"[!--temp.ucenterurl--]search?from=s"
class=
"search"
><i
class=
"iconfont icon-sousuo"
></i></a>
<span
class=
"tips"
style=
"display:none"
>
签到领金币
</span>
</div>
<div
class=
"swiper-container
topBanner
"
>
<div
class=
"swiper-container"
>
<div
class=
"swiper-wrapper"
>
[ecmsinfo]29,5,64,0,2,15,1[/ecmsinfo]
</div>
...
...
@@ -38,177 +22,76 @@
<div
class=
"quick-link"
>
<ul
class=
"link-item clearfix"
>
<li>
<a
href=
"http
s
://code.ibanshou.cn"
>
<a
href=
"http://code.ibanshou.cn"
>
<i
class=
"icon-kuaicha"
></i>
<p>
快查
</p>
</a>
</li>
<li>
<a
href=
"//bbs.ibanshou.cn/forum.php?mod=forumdisplay&fid=161"
>
<i
class=
"icon-huati"
></i>
<p>
互助
</p>
<span
style=
"display: none"
id=
"unquestioncount"
></span>
</a>
</li>
<li>
<a
href=
"//s.ibanshou.cn/huati/"
>
<i
class=
"icon-bx"
></i>
<p>
话题
</p>
</a>
</li>
<li>
<a
href=
"//bbs.ibanshou.cn/forum.php?mod=forumdisplay&fid=157"
>
<i
class=
"icon-more-pro"
></i>
<p>
日记
</p>
</a>
</li>
<li>
<a
href=
"//u.ibanshou.cn/vdeposit/today-orders"
>
<a
href=
"javascript:;"
>
<i
class=
"icon-kuaiwen"
></i>
<p>
每日工单
</p>
</a>
</li>
<li>
<a
href=
"//xue.ibanshou.cn/home/category-detail?categoryId=41"
>
<i
class=
"icon-kt"
></i>
<p>
空调
</p>
<p>
接单
</p>
</a>
</li>
<li>
<a
href=
"
//xue.ibanshou.cn/home/category-detail?categoryId=48
"
>
<i
class=
"icon-
ds
"
></i>
<p>
电视
</p>
<a
href=
"
http://xue.ibanshou.cn/home/category-detail?categoryId=3
"
>
<i
class=
"icon-
huati
"
></i>
<p>
扳手SAAS
</p>
</a>
</li>
<li>
<a
href=
"
//xue.ibanshou.cn/home/category-detail?categoryId=47
"
>
<i
class=
"icon-
xyj
"
></i>
<p>
洗衣机
</p>
<a
href=
"
http://bbs.ibanshou.cn/forum.php?mod=forumdisplay&fid=112
"
>
<i
class=
"icon-
more-pro
"
></i>
<p>
反馈
</p>
</a>
</li>
</ul>
</div>
<div
class=
"recommend-info"
>
[ecmsinfo]0,1,100,0,3,14,0,'firsttitle=1'[/ecmsinfo]
</div>
<!-- 直播课程预约 -->
<div
class=
"tuan-list"
style=
"display:none;"
>
<a
href=
"#"
>
<img
src=
"https://pub-cdn.ibanshou.cn/preview/8f/e6/8e/yqsMGxSDtwCVlv9c4643.jpg-ym.preview"
>
<h3>
液晶电视芯片级维修之系列讲座--第十集高压板电路检修
</h3>
<p
class=
"clearfix"
>
<span
class=
"price"
>
12931
<b>
人已预约
</b></span>
<span
class=
"go-buy-btn"
>
预约报名
<i
class=
"iconfont icon-xiangyou1"
></i></span>
</p>
</a>
<div
class=
"enter-img"
id=
"invite-main"
style=
"background: #fff;display: none"
>
<a
href=
"javascript:;"
onclick=
"inviteRedpack()"
><img
src=
"/skin/default/images/enter.png"
></a>
</div>
[ibanshou]1[/ibanshou]
<div
id=
"tuan-containter"
></div>
<!-- 扳手幸运星 -->
<div
id=
"luckdraw-containter"
style=
"display: none"
></div>
<div
class=
"tuan-list"
>
<a
href=
"//sv.ibanshou.cn"
>
<img
src=
"//s.ibanshou.cn/skin/default/images/sv_banner.jpg"
>
<h3>
最美维修人,秀出你自己,参与活动赢大奖!
</h3>
<p
class=
"clearfix"
>
<span
class=
"price"
><span
style=
"font-size: 14px;"
>
参与活动赢豪礼
</span></span>
<span
class=
"go-buy-btn"
>
立即参与
<i
class=
"iconfont icon-xiangyou1"
></i></span>
</p>
</a>
<div
class=
"recommend-info"
>
[ecmsinfo]0,3,100,0,3,14,0,'firsttitle=1'[/ecmsinfo]
</div>
<div
class=
"interview-box"
>
<div
class=
"tit"
>
扳手专访
<span>
Interview
</span>
<a
href=
"/zhuanfang"
>
更多
</a></div>
<div
class=
"swiper-container interviewSlider"
>
<div
class=
"swiper-wrapper"
>
[ecmsinfo]32,10,80,0,0,17,0[/ecmsinfo]
</div>
</div>
</div>
[ibanshou]1[/ibanshou]
<div
class=
"recommend-info"
>
[ecmsinfo]1,50,100,0,0,14,0,'isgood!=2 and firsttitle!=1','newstime DESC'[/ecmsinfo]
</div>
<div
class=
"update-app-tip"
id=
"update-app-tip"
style=
"display: none"
>
<div
class=
"uat-main"
>
<div
class=
"tit"
>
版本更新提示
<a
href=
"javascript:;"
class=
"UPDATE-CLOSE"
><i
class=
"iconfont icon-close_light"
></i></a>
</div>
<div
class=
"txt"
>
<p>
请将APP更新到最新版本
</p>
<p>
答题赢钱,千元现金等你来拿
</p>
</div>
<a
href=
"javascript;;"
class=
"uat-now UPDATE-CLOSE"
id=
""
>
我知道了
</a>
</div>
[ecmsinfo]0,50,100,0,3,14,0,'','newstime DESC'[/ecmsinfo]
</div>
<div
class=
"update-app-tip"
id=
"prompt"
style=
"display: none"
>
<div
class=
"uat-main"
>
<div
class=
"tit"
>
扳手大赢家
<a
href=
"javascript:;"
class=
"PROMPT-CLOSE"
><i
class=
"iconfont icon-close_light"
></i></a>
<div
class=
"red-packet"
id=
"redpack"
style=
"display: none"
>
<div
class=
"info"
>
<img
src=
"skin/default/images/packet.png"
alt=
""
>
<div
class=
"text"
>
<h3>
恭喜您获得
</h3>
<p><b>
一个随机红包
</b></p>
<button
onclick=
"inviteRedpack()"
>
拆
</button>
</div>
<div
class=
"screen"
>
<div
class=
"item"
>
<p>
4月1日
</p>
<h3>
20:00
</h3>
</div>
<div
class=
"item"
>
<p>
奖池
</p>
<h3>
888
</h3>
</div>
</div>
<a
href=
"javascript:;"
class=
"uat-now PROMPT-CLOSE"
>
我知道了
</a>
<a
href=
"javascript:;"
class=
"close"
onclick=
"redpackClose()"
><i
class=
"iconfont icon-close_light"
></i></a>
</div>
</div>
<!-- 登录有礼提示 -->
<a
class=
"newer-tip"
id=
"loginGits"
href=
"[!--temp.ucenterurl--]login/web"
style=
"display:none"
><img
src=
"//s.ibanshou.cn/skin/default/images/login_gits.png"
></a>
<script
src=
"[!--news.url--]e/member/login/logincas.php"
></script>
<script
type=
'text/javascript'
src=
"[!--news.url--]skin/default/js/swiper.min.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/nav.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/banshou.js"
></script>
<script>
/*
window.onerror = function (msg, url, lineNo, columnNo, error) {
var string = msg.toLowerCase();
var substring = "script error";
if (string.indexOf(substring) > -1){
alert('Script Error: See Browser Console for Detail');
} else {
var message = [
'Message: ' + msg,
'URL: ' + url,
'Line: ' + lineNo,
'Column: ' + columnNo,
'Error object: ' + JSON.stringify(error)
].join(' - ');
alert(message);
}
return false;
};
*/
var
mySwiper
=
new
Swiper
(
'.topBanner'
,
{
var
mySwiper
=
new
Swiper
(
'.swiper-container'
,
{
autoplay
:
5000
,
pagination
:
'.swiper-pagination'
})
;
pagination
:
'.swiper-pagination'
,
})
$
(
function
()
{
$
(
'.newest-list'
).
hide
();
setWidth
();
$
(
window
).
resize
(
setWidth
);
$
(
window
).
resize
(
function
()
{
setWidth
();
});
function
setWidth
()
{
if
(
$
(
window
).
width
()
>=
900
)
{
...
...
@@ -216,39 +99,27 @@
}
else
{
$
(
'.newest-list'
).
find
(
'.learn-course-box'
).
width
((
$
(
window
).
width
()
-
45
)
/
2
);
}
$
(
'.newest-list'
).
show
();
}
var
s
=
document
.
createElement
(
"script"
);
s
.
type
=
"text/javascript"
;
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
s
);
s
.
src
=
"[!--news.url--]e/member/login/logincas.php"
;
var
mySwiper2
=
new
Swiper
(
'.interviewSlider'
,
{
slidesPerView
:
2
,
grabCursor
:
true
,
autoplay
:
5000
});
$
.
getJSON
(
"[!--temp.ucenterurl--]tip/state-call?tips=s_books&callback=?"
,
function
(
data
)
{
var
books
=
$
(
".common-top a.books"
);
var
booksUrl
=
books
.
attr
(
'href'
);
if
(
data
.
s_books
)
{
books
.
attr
(
"href"
,
booksUrl
);
$
.
getJSON
(
"[!--temp.ucenterurl--]tip/state-call?tips=s_checkin&callback=?"
,
function
(
data
)
{
var
sign
=
$
(
".common-top a.sign"
);
var
checkinUrl
=
"http://bbs.yunya.com/plugin.php?id=wq_sign:wq_sign"
;
if
(
data
.
s_checkin
)
{
sign
.
attr
(
"href"
,
checkinUrl
);
}
else
{
books
.
append
(
'<span class="file-tip">送的书和专享视频,在这里
</span>'
);
books
.
click
(
function
()
{
$
.
getJSON
(
"[!--temp.ucenterurl--]tip/state-push?tip=s_
books
&callback=?"
,
function
(
data
)
{
location
.
href
=
books
Url
;
sign
.
parent
().
append
(
'<span class="tips">签到领金币
</span>'
);
sign
.
click
(
function
()
{
$
.
getJSON
(
"[!--temp.ucenterurl--]tip/state-push?tip=s_
checkin
&callback=?"
,
function
(
data
)
{
location
.
href
=
checkin
Url
;
});
});
}
});
})
});
</script>
[!--temp.stat-js--]
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.0.0.js"
></script>
<script
src=
"
http:
//res.wx.qq.com/open/js/jweixin-1.0.0.js"
></script>
<script>
function
wechatcallback
(
jsconfig
)
{
...
...
@@ -318,136 +189,53 @@
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
"/e/action/wechat/jsconfig.php?callback=wechatcallback&url="
+
window
.
location
.
href
;
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
script
);
</script>
<script
src=
"[!--news.url--]e/extend/DoTimeRepage/"
></script>
<script
src=
"[!--temp.ucenterurl--]common/beat-home-popup.js"
></script>
<script
src=
"[!--temp.ucenterurl--]common/js-app.js?1"
></script>
<script
src=
"[!--news.url--]e/member/login/indexloginstatus.php"
></script>
<script>
/*
if (BanShou.isSupport('messagePush')) {
BanShou.ready(function (native) {
$.ajax({type: "get", url: "[!--temp.ucenterurl--]member/regpushconf", dataType: "jsonp"}).done(function (conf) {
native.registerPushConfig(conf);
});
});
}
*/
/*
var isTipShow ;
function isShow() {
$.getJSON("[!--temp.ucenterurl--]tip/state-call?tips=quiz_bsdyj_tip&callback=?", function (data) {
if (data.quiz_bsdyj_tip) {
$('#bsdyj-tip').hide();
} else {
$('#bsdyj-tip').show();
}
isTipShow = !data.quiz_bsdyj_tip;
});
}
function toHide() {
$.getJSON("[!--temp.ucenterurl--]tip/state-push?tip=quiz_bsdyj_tip&callback=?", function (data) {
if (data) {
$('#bsdyj-tip').hide();
}
});
}
var
timestamp
=
Date
.
parse
(
new
Date
())
/
1000
;
var md = new MobileDetect(window.navigator.userAgent);
var urgent = true;
if (BanShou.inApp()) {
if (BanShou.isSupport('quiz')) {
isShow();
$("#quiz-enter").show().click(function () {
if (isTipShow) {
toHide();
}
if (urgent) {
$('#prompt').show();
} else {
BanShou.ready(function (native) {
var obj = {
page: 'quiz_show', extra: {}
};
native.toIbanshouPage(obj);
function
showRedpack
(
uid
)
{
// if (timestamp > 1525104000) {
if
(
uid
===
undefined
)
{
$
(
'#redpack'
).
show
();
}
else
{
$
.
getJSON
(
"//s.test.yunyamooc.com/e/action/inviteRedpack.php?uid="
+
uid
,
function
(
data
)
{
if
(
data
==
null
)
{
Banshou
.
callTip
(
's_redpack'
,
function
(
data
)
{
if
(
!
data
.
s_redpack
)
{
$
(
'#redpack'
).
show
();
}
});
}
});
} else {
if (!md.is('ios')) {
$("#quiz-enter").show().click(function () {
if (isTipShow) {
toHide();
}
$("#update-app-tip").show();
});
}
})
}
// }
}
*/
$
(
'.PROMPT-CLOSE'
).
click
(
function
()
{
$
(
'#prompt'
).
hide
();
});
$
(
'.update-close'
).
click
(
function
()
{
$
(
"#update-app-tip"
).
hide
();
});
function
showUnquestionCount
()
{
$
.
ajax
({
type
:
"get"
,
url
:
"//s.ibanshou.cn/e/action/unquestion.php"
,
dataType
:
"json"
}).
done
(
function
(
count
)
{
if
(
count
>
0
)
{
$
(
'#unquestioncount'
).
html
(
parseInt
(
count
)).
show
();
}
else
{
$
(
'#unquestioncount'
).
hide
();
}
});
}
// if(timestamp > 1525104000){
$
(
'#invite-main'
).
show
();
function
showTuanProcess
(
num
)
{
$
.
getJSON
(
"//s.ibanshou.cn/e/action/tcptuan.php?num="
+
num
,
function
(
data
)
{
var
html
=
''
;
for
(
var
i
=
0
,
item
;
item
=
data
[
i
];
i
++
)
{
html
+=
' <div class="tuan-list" >'
+
' <a href=" '
+
'//bbs.ibanshou.cn/plugin.php?id=tom_tcptuan&site=1&mod=goodsinfo&goods_id='
+
item
.
id
+
'">'
+
' <img src="'
+
item
.
toppic
+
'">'
+
' <h3>'
+
item
.
name
+
'</h3>'
+
' <p class="clearfix"><span class="price">¥'
+
item
.
tuan_price
+
' <b>'
+
item
.
tuan_num
+
'人团</b></span> <span class="go-buy-btn">去开团 <i class="iconfont icon-xiangyou1"></i></span></p>'
+
' </a>'
+
' </div>'
;
}
$
(
'#tuan-containter'
).
html
(
html
).
show
();
});
}
// }
function
showLuckdraw
()
{
$
.
getJSON
(
"//s.ibanshou.cn/e/action/luckdraw.php"
,
function
(
data
)
{
function
redpackClose
()
{
Banshou
.
pushTip
(
's_redpack'
,
'1d'
,
function
(
data
)
{
if
(
data
)
{
var
html
=
'<div class="recommend-info">'
+
' <div class="news-item has-pic one-picture">'
+
' <a href="//u.ibanshou.cn/luckdraw/'
+
data
.
id
+
'" class="content pb-none" style="min-height: 100px;">'
+
' <div class="tit">'
+
data
.
s_title
+
'</div>'
+
' <div class="img-item-box clearfix">'
+
' <div class="img-item"><img src="'
+
data
.
share_image
+
'" alt=""></div>'
+
' </div>'
+
' </a>'
+
' </div>'
+
'</div>'
;
$
(
'#luckdraw-containter'
).
html
(
html
).
show
();
$
(
'#redpack'
).
hide
();
}
});
};
})
function
inviteRedpack
()
{
if
(
!
/Android|webOS|iPhone|iPod|BlackBerry/i
.
test
(
navigator
.
userAgent
))
{
window
.
location
.
href
=
"http://a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui&ckey=CK1391535911216"
;
}
else
{
window
.
location
.
href
=
"[!--temp.ucenterurl--]invite-redpack/index"
;
}
}
$
(
function
()
{
showUnquestionCount
();
showTuanProcess
(
3
);
showLuckdraw
();
});
</script>
<!--<script src="http://u.test.yunyamooc.com/common/beat-home-popup.js"></script>-->
<script
src=
"[!--news.url--]e/member/login/indexloginstatus.php"
></script>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment