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
4f56f160
Commit
4f56f160
authored
Sep 01, 2018
by
汪波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into dev
parents
7c31c835
441ee3f9
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1089 additions
and
50 deletions
+1089
-50
style.css
appdownload/css/style.css
+160
-1
logo.png
appdownload/img/logo.png
+0
-0
index.html
appdownload/index.html
+41
-19
index.js
appdownload/js/index.js
+2
-2
inviteRedpack.php
e/action/inviteRedpack.php
+2
-1
MemberRedpack.php
e/extend/internalApi/ucenter/MemberRedpack.php
+2
-2
cas.php
e/member/cas.php
+1
-1
indexloginstatus.php
e/member/login/indexloginstatus.php
+25
-20
index_dev.html
index_dev.html
+8
-4
index_prod.html
index_prod.html
+492
-0
index_test.html
index_test.html
+240
-0
style.css
skin/default/css/style.css
+116
-0
enter.png
skin/default/images/enter.png
+0
-0
No files found.
appdownload/css/style.css
View file @
4f56f160
@charset
"utf-8"
;
.dw-head
{
height
:
485px
;
background-color
:
#fff
;
...
...
@@ -31,7 +32,6 @@
transform
:
translateY
(
-50%
);
text-align
:
left
;
}
.banshou-logo
{
position
:
fixed
;
display
:
block
;
...
...
@@ -377,4 +377,163 @@
.phone-box
{
display
:
block
;
}
}
/*---------------------------------------------------新头部*/
.fl
{
float
:
left
;
}
.fr
{
float
:
right
;
}
.clear
{
clear
:
both
;
}
.clearfix
{
*
zoom
:
1
;
}
.clearfix
:after
{
display
:
block
;
clear
:
both
;
overflow
:
hidden
;
visibility
:
hidden
;
height
:
0
;
content
:
''
;
}
.bl
{
display
:
block
;
}
.in-bl
{
display
:
inline-block
;
}
.fixed
{
position
:
fixed
;
}
.abs
{
position
:
absolute
;
}
.rel
{
position
:
relative
;
}
/* ----------头部菜单---------- */
.header-menu
,
.header-menu-seat
{
width
:
100%
;
height
:
70px
;
}
.header-menu
{
z-index
:
5
;
background
:
#fff
;
border-bottom
:
1px
solid
#ebeef3
;
box-shadow
:
0
3px
5px
rgba
(
0
,
0
,
0
,
0.05
);
}
.h-m-main
{
margin
:
0
auto
;
width
:
1200px
;
}
.h-m-main
img
{
height
:
32px
;
vertical-align
:
top
;
margin-top
:
19px
;
}
.menu
{
margin-left
:
60px
;
vertical-align
:
text-bottom
;
}
.menu-item
,
.header-menu
.btn-download
{
display
:
inline-block
;
padding
:
0
20px
;
font-size
:
18px
;
font-weight
:
500
;
height
:
70px
;
line-height
:
70px
;
border-left
:
1px
solid
#fff
;
border-right
:
1px
solid
#fff
;
}
.header-menu
.btn-download
{
margin-right
:
0
;
padding-right
:
0
;
}
.menu-item.active
{
position
:
relative
;
background-color
:
#fafafa
;
color
:
#008fd7
;
border-left
:
1px
solid
#f1f1f1
;
border-right
:
1px
solid
#f1f1f1
;
}
.menu-item.active
:after
{
content
:
''
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
2px
;
background-color
:
#2e8ded
;
}
.header-menu
a
{
color
:
#333
;
text-decoration
:
none
;
}
.header-menu
a
:hover
{
color
:
#008fd7
;
}
/*全屏遮罩*/
.mask
{
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
10
;
background
:
rgba
(
0
,
0
,
0
,
0.3
);
}
/*品牌选择*/
.brands-select
{
left
:
0
;
right
:
0
;
top
:
50%
;
margin
:
-120px
auto
0
;
padding
:
40px
0
0
36px
;
width
:
485px
;
height
:
240px
;
background
:
#fff
;
border-radius
:
10px
;
font-size
:
16px
;
}
.brands-s-title
{
margin-bottom
:
45px
;
font-weight
:
bold
;
font-size
:
20px
;
}
.brands-s-btn-close
{
top
:
30px
;
right
:
40px
;
color
:
#333
;
}
.brands-s-list
a
{
display
:
inline-block
;
margin
:
0
5px
20px
0
;
min-width
:
80px
;
}
\ No newline at end of file
appdownload/img/logo.png
0 → 100644
View file @
4f56f160
15.7 KB
appdownload/index.html
View file @
4f56f160
...
...
@@ -13,6 +13,7 @@
<!--Font Icon-->
<link
href=
"//at.alicdn.com/t/font_386523_2cql1vjt51m7vi.css"
rel=
"stylesheet"
>
<link
href=
"//at.alicdn.com/t/font_810718_1cddgzx1y8t.css"
rel=
"stylesheet"
>
<!-- Css -->
<link
rel=
"stylesheet"
href=
"css/basic.css"
>
...
...
@@ -28,26 +29,47 @@
</script>
<body>
<div
class=
"web"
>
<div
class=
"banshou-logo"
>
<div
class=
"warp clearfix"
>
<img
src=
"img/banshouApp.png"
>
<div
class=
"download-group clearfix fr"
style=
"margin-top: 5px; display: none"
id=
"downloadBtn"
>
<a
href=
"https://itunes.apple.com/cn/app/wei-xiu-hui-shi-fu-ban/id1034283227?mt=8"
class=
"dw-btn"
><i
class=
"iconfont icon-ios"
></i>
iPhone版下载
</a>
<a
href=
"https://pub-cdn.ibanshou.cn/banshou-0315.apk"
class=
"dw-btn"
><i
class=
"iconfont icon-android"
></i>
Android版下载
</a>
<a
href=
"#"
class=
"ewm-btn top-need"
>
<i
class=
"iconfont icon-erweima"
></i>
<span
class=
"tip"
><img
src=
"img/qrcode.png"
></span>
</a>
<!-- 导航 -->
<div
class=
"header-menu fixed"
>
<div
class=
"h-m-main clearfix"
>
<a
href=
""
><img
src=
"img/logo.png"
/></a>
<div
class=
"menu in-bl"
>
<a
class=
"menu-item"
href=
""
>
首页
</a>
<a
class=
"menu-item"
href=
""
>
服务云
</a>
<a
class=
"menu-item"
href=
""
>
品牌库
</a>
<a
class=
"menu-item"
href=
""
>
门店
</a>
<a
class=
"menu-item"
class=
"menu-item"
href=
""
>
大学
</a>
<a
class=
"menu-item"
href=
""
>
社区
</a>
</div>
<div
class=
"fr"
>
<div
class=
"download-group clearfix fr"
style=
"margin-top: 10px; display: none"
id=
"downloadBtn"
>
<a
href=
"https://a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui"
class=
"dw-btn"
><i
class=
"iconfont icon-ios"
></i>
iPhone版下载
</a>
<a
href=
"https://a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui"
class=
"dw-btn"
><i
class=
"iconfont icon-android"
></i>
Android版下载
</a>
<a
href=
"#"
class=
"ewm-btn top-need"
>
<i
class=
"iconfont icon-erweima"
></i>
<span
class=
"tip"
><img
src=
"img/qrcode.png"
></span>
</a>
</div>
</div>
</div>
</div>
<div
style=
"height: 100px;"
></div>
<div
class=
"header-menu-seat"
></div>
<!--品牌选择-->
<div
class=
"mask fixed"
id=
"brands-list"
style=
"display: none;"
>
<div
class=
"brands-select abs"
>
<a
class=
"brands-s-btn-close abs"
href=
"javascript:;"
><i
class=
"iconfont icon-guanbi"
></i></a>
<p
class=
"brands-s-title"
>
选择品牌
</p>
<div
class=
"brands-s-list"
>
<!--{loop $brand_list['subs'] $key $value}-->
<a
href=
"{$value[caturl]}"
>
{$value['catname']}
</a>
<!--{/loop}-->
</div>
</div>
</div>
<div
class=
"dw-head"
>
<div
class=
"warp clearfix"
>
...
...
@@ -62,9 +84,9 @@
</p>
<div
class=
"download-group clearfix"
>
<a
href=
"https://
itunes.apple.com/cn/app/wei-xiu-hui-shi-fu-ban/id1034283227?mt=8
"
<a
href=
"https://
a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui
"
class=
"dw-btn"
><i
class=
"iconfont icon-ios"
></i>
iPhone版下载
</a>
<a
href=
"https://
pub-cdn.ibanshou.cn/banshou-0131.apk
"
class=
"dw-btn"
><i
<a
href=
"https://
a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui
"
class=
"dw-btn"
><i
class=
"iconfont icon-android"
></i>
Android版下载
</a>
<a
href=
"#"
class=
"ewm-btn"
>
...
...
@@ -208,7 +230,7 @@
<script
type=
"application/javascript"
src=
"js/mobile-detect.min.js"
></script>
<script
type=
"application/javascript"
src=
"js/index.js?2018031
4
"
></script>
<script
type=
"application/javascript"
src=
"js/index.js?2018031
5
"
></script>
<script
type=
'text/javascript'
src=
"http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"
></script>
<script
type=
'text/javascript'
>
...
...
appdownload/js/index.js
View file @
4f56f160
...
...
@@ -12,13 +12,13 @@
global
.
onload
=
function
()
{
var
md
=
new
MobileDetect
(
window
.
navigator
.
userAgent
);
var
appStoreUrl
=
'https://
itunes.apple.com/cn/app/wei-xiu-hui-shi-fu-ban/id1034283227?mt=8
'
;
var
appStoreUrl
=
'https://
a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui
'
;
var
yingYongBaoUrl
=
'http://a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui'
;
var
urgency
=
false
;
if
(
urgency
)
{
yingYongBaoUrl
=
'https://
pub-cdn.ibanshou.cn/banshou-0131.apk
'
;
yingYongBaoUrl
=
'https://
a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui
'
;
if
(
inApp
())
{
$
(
'#app-warn'
).
show
();
$
(
'#app-close'
).
show
();
...
...
e/action/inviteRedpack.php
View file @
4f56f160
...
...
@@ -8,4 +8,5 @@
require
(
__DIR__
.
'/../extend/internalApi/autoload.php'
);
require
(
__DIR__
.
'/../config/config_ibanshou.php'
);
\internalApi\base\Client
::
config
(
$config
[
'wxh.internal'
][
'client'
]);
echo
json_encode
(
\internalApi\ucenter\MemberRedpack
::
getFirstRedpack
());
\ No newline at end of file
$uid
=
$_GET
[
'uid'
];
echo
json_encode
(
\internalApi\ucenter\MemberRedpack
::
getFirstRedpack
(
$uid
));
\ No newline at end of file
e/extend/internalApi/ucenter/MemberRedpack.php
View file @
4f56f160
...
...
@@ -11,8 +11,8 @@ use internalApi\base\Client;
class
MemberRedpack
extends
Client
{
public
static
function
getFirstRedpack
()
public
static
function
getFirstRedpack
(
$userId
)
{
return
self
::
call
(
'memberRedpack.firstRedpack'
);
return
self
::
call
(
'memberRedpack.firstRedpack'
,
compact
(
'userId'
)
);
}
}
\ No newline at end of file
e/member/cas.php
View file @
4f56f160
...
...
@@ -25,7 +25,7 @@ if ($mod == 'login') {
$member
=
\internalApi\ucenter\Member
::
getSyncByWxhuid
(
$phpcas
[
'id'
]);
if
(
!
$member
)
{
printerrortourl
(
'/'
,
"CAS接口错误"
.
json_encode
(
$
result
[
'data'
])
,
3
);
printerrortourl
(
'/'
,
"CAS接口错误"
.
json_encode
(
$
member
[
'data'
])
.
"wxhid:
{
$phpcas
[
'id'
]
}
"
,
3
);
}
$cmsmember
=
$empire
->
fetch1
(
"select "
.
eReturnSelectMemberF
(
'*'
)
.
" from "
.
eReturnMemberTable
()
.
" where "
.
egetmf
(
'ucid'
)
.
"=
{
$member
[
'uid'
]
}
limit 1"
);
...
...
e/member/login/indexloginstatus.php
View file @
4f56f160
...
...
@@ -4,29 +4,34 @@ require(__DIR__ . "/../../class/db_sql.php");
require
(
__DIR__
.
"/../../member/class/user.php"
);
require
(
__DIR__
.
"/../../class/q_functions.php"
);
$iscas
=
getcvar
(
'mlcas'
);
if
(
$iscas
)
{
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");
$("#loginGits").attr("style", "display:block;");
});
<?php
}
else
{
?>
var zhugeCheckRunHandler = false;
function zhugeCheckRun(){
if(!window.zhuge){
zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);
}else{
clearTimeout(zhugeCheckRunHandler);
window.zhuge.identify("
<?=
$ucid
?>
");
}
}
zhugeCheckRun();
<?php
if
(
$isShow
)
{
?>
showRedpack();
$("#invite-main").attr("style", "display:block;");
<?php
}
?>
<!-- $(".books").attr("href", "/e/member/login");-->
$("#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();
<?php
}
?>
bb
.html
→
index_dev
.html
View file @
4f56f160
...
...
@@ -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 @
4f56f160
[!--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=
"enter-img"
id=
"invite-main"
style=
"background: #fff;display: none"
>
<a
href=
"javascript:;"
onclick=
"inviteRedpack()"
><img
src=
"/skin/default/images/enter.png"
></a>
</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=
"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>
<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>
<a
href=
"javascript:;"
class=
"close"
onclick=
"redpackClose()"
><i
class=
"iconfont icon-close_light"
></i></a>
</div>
</div>
<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
showRedpack
(
uid
)
{
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
();
}
});
}
})
}
}
function
redpackClose
()
{
Banshou
.
pushTip
(
's_redpack'
,
'1d'
,
function
(
data
)
{
if
(
data
)
{
$
(
'#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
(
2
);
showLuckdraw
();
});
</script></body></html>
\ No newline at end of file
aa
.html
→
index_test
.html
View file @
4f56f160
[!--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,52 @@
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);
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
skin/default/css/style.css
View file @
4f56f160
...
...
@@ -1021,6 +1021,122 @@
vertical-align
:
top
;
}
/*邀请领红包*/
.enter-img
{
background
:
#fff
;
}
.enter-img
a
{
display
:
inline-block
;
width
:
100%
;
text-align
:
center
;
padding
:
15px
0
0
;
}
.enter-img
img
{
width
:
100%
;
}
.red-packet
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
top
:
0
;
left
:
0
;
background-color
:
rgba
(
0
,
0
,
0
,
.5
);
z-index
:
11
;
}
.red-packet
.info
{
position
:
absolute
;
left
:
50%
;
margin-left
:
-150px
;
top
:
50%
;
width
:
300px
;
transform
:
translateY
(
-50%
);
}
.red-packet
.info
img
{
width
:
100%
;
}
.red-packet
.info
.text
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
text-align
:
center
;
color
:
#fff
;
}
.red-packet
.info
.text
h3
{
height
:
140px
;
line-height
:
145px
;
}
.red-packet
.info
.text
p
{
font-size
:
48px
;
font-family
:
arial
,
sans-serif
;
padding
:
0
0
20px
;
}
.red-packet
.info
.text
b
{
font-weight
:
normal
;
font-size
:
14px
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
"Microsoft YaHei"
,
"\5FAE\8F6F\96C5\9ED1"
,
Arial
,
sans-serif
;
}
.red-packet
.info
.text
button
{
position
:
relative
;
width
:
80px
;
height
:
80px
;
display
:
inline-block
;
border
:
0
;
margin-left
:
7px
;
outline
:
none
;
border-radius
:
100%
;
background-color
:
#fff259
;
color
:
red
;
font-size
:
24px
;
box-shadow
:
0
0
1px
0
rgba
(
0
,
0
,
0
,
0.3
),
0
0
30px
2px
rgba
(
0
,
0
,
0
,
0.15
);
}
.red-packet
.info
.text
button
:after
{
content
:
''
;
position
:
absolute
;
top
:
5px
;
left
:
5px
;
width
:
70px
;
height
:
70px
;
border-radius
:
100%
;
border
:
2px
dotted
rgba
(
0
,
0
,
0
,
.2
);
box-sizing
:
border-box
;
}
.red-packet
.info
.text
button
span
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
50px
;
line-height
:
40px
;
display
:
inline-block
;
text-align
:
center
;
color
:
#ec2661
;
font-weight
:
bold
;
font-size
:
16px
;
}
.my-redpacket
{
display
:
block
;
margin-top
:
10px
;
color
:
#fff
;
font-size
:
14px
;
}
.red-packet
.info
.close
{
position
:
absolute
;
left
:
50%
;
bottom
:
-40px
;
text-align
:
center
;
display
:
inline-block
;
margin-left
:
-21px
;
width
:
40px
;
height
:
40px
;
line-height
:
36px
;
border
:
1px
solid
#fff
;
border-radius
:
100%
;
font-size
:
24px
;
color
:
#fff
;
}
/*适配电脑端*/
@media
screen
and
(
min-width
:
900px
){
html
{
...
...
skin/default/images/enter.png
View replaced file @
7c31c835
View file @
4f56f160
141 KB
|
W:
|
H:
51.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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