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
de0848ed
Commit
de0848ed
authored
Apr 10, 2018
by
夏彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
c624d91c
0ffc64cc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
321 additions
and
349 deletions
+321
-349
aa.html
aa.html
+145
-334
credit.php
e/action/credit.php
+39
-0
User.php
e/extend/internalApi/bbs/User.php
+50
-0
Credit.php
e/extend/internalApi/ucenter/Credit.php
+23
-0
news.js
skin/default/js/news.js
+64
-15
No files found.
aa.html
View file @
de0848ed
[!--temp.header--]
<!DOCTYPE html>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/nav.js"
></script>
<html
lang=
"zh-CN"
>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/banshou.js"
></script>
<head>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/growing-io.js?20180330"
></script>
<meta
charset=
"utf-8"
>
<script>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<meta
id=
"viewport"
name=
"viewport"
function
getAppVersion
()
{
content=
"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0"
>
var
m
=
navigator
.
userAgent
.
match
(
/BanShou
(\\\\
/
[
\\\\
d
\\\\
.]
+
)?
/
)
;
<meta
name=
"format-detection"
content=
"telephone=no"
>
if
(
m
)
{
<title>
[!--pagetitle--]
</title>
return
m
[
1
]
?
m
[
1
].
substr
(
1
)
:
0
;
<!-- Css -->
}
else
{
<link
rel=
"stylesheet"
href=
"[!--news.url--]skin/default/css/swiper.min.css"
>
return
false
;
<link
href=
"[!--news.url--]skin/default/css/basic.css"
rel=
"stylesheet"
>
}
<link
href=
"[!--news.url--]skin/default/css/style.css"
rel=
"stylesheet"
>
}
<link
href=
"[!--news.url--]skin/default/css/banshou.css"
rel=
"stylesheet"
>
<!--Font Icon-->
if
(
/BanShou/
.
test
(
navigator
.
userAgent
))
{
<link
href=
"//at.alicdn.com/t/font_yh71oy5td98me7b9.css"
rel=
"stylesheet"
>
if
(
getAppVersion
()
===
'2.5.5'
)
{
</head>
WxhNative
.
toLoginAppForWxhWorker
();
<body>
}
}
</script>
<div
class=
"empty-block"
></div>
<div
class=
"empty-block"
></div>
<div
class=
"common-top"
>
<div
class=
"detail-top-nav"
>
<a
href=
"[!--temp.bbsurl--]home.php?mod=task2"
class=
"sign"
><i
class=
"iconfont icon-jinbi1"
></i></a>
<a
href=
"javascript:history.back(-1);"
class=
"back"
><i
class=
"iconfont icon-back_light"
></i></a>
<a
href=
"javascript:;"
id=
"quiz-enter"
class=
"bs-winner"
style=
"display:none;"
>
<a
href=
"/"
class=
"close"
><i
class=
"iconfont icon-close_light"
></i></a>
<span
class=
"bsdyj-tip"
id=
"bsdyj-tip"
style=
"display:none"
>
每日送出数千元现金
</span>
<a
href=
"javascript:;"
class=
"menu"
id=
"rightBar"
><i
class=
"iconfont icon-caidan"
></i></a>
</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>
<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=
"//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=46"
>
<i
class=
"icon-bx"
></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"
>
<div
class=
"main-content"
>
[ecmsinfo]0,1,100,0,3,14,0,'firsttitle=1'[/ecmsinfo]
<div
class=
"tit"
>
</div>
<h1>
[!--title--]
</h1>
<p>
时间:[!--newstime--]
<span
style=
"display:none;"
>
点击数:
<script
<!-- 直播课程预约 -->
src=
[!--news.url--]e/public/ViewClick/?classid=[!--classid--]&id=[!--id--]&addclick=1
></script></span>
<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>
</p>
</a>
</div>
</div>
<div
id=
"desc"
class=
"txt"
>
[!--newstext--]
[ibanshou]1[/ibanshou]
<div
id=
"tuan-containter"
></div>
<!-- 扳手幸运星 -->
<div
class=
"recommend-info"
>
<div
class=
"news-item has-pic one-picture"
>
<a
href=
"//u.ibanshou.cn/luckdraw/2"
class=
"content pb-none"
style=
"min-height: 80px;"
>
<div
class=
"tit"
>
第二期幸运星,活动全面升级,抽奖居然无条件!
</div>
<div
class=
"img-item-box clearfix"
>
<div
class=
"img-item"
><img
src=
"https://s1.ax1x.com/2018/03/29/9jg4df.jpg"
alt=
""
></div>
</div>
</a>
</div>
</div>
</div>
</div>
<div
class=
"tuan-list"
>
<!--<div class="article-label">
<a
href=
"//sv.ibanshou.cn"
>
<a href="[!--class.url--]">[!--class.name--]</a>
<img
src=
"//s.ibanshou.cn/skin/default/images/sv_banner.jpg"
>
</div>-->
<h3>
最美维修人,秀出你自己,参于活动赢大奖!
</h3>
<div
class=
"px-line"
></div>
<p
class=
"clearfix"
>
<div
class=
"related-news"
>
<span
class=
"price"
><span
style=
"font-size: 14px;"
>
参与活动赢豪礼
</span></span>
<div
class=
"rl-tit"
>
热门推荐
<span>
Recommend
</span></div>
<span
class=
"go-buy-btn"
>
立即参与
<i
class=
"iconfont icon-xiangyou1"
></i></span>
<div
class=
"news-item has-pic three-picture"
id=
"hotRecommend"
></div>
</p>
[ecmsinfo]0,3,100,0,3,16,0,'isgood=3'[/ecmsinfo]
</a>
</div>
</div>
<div
class=
"interview-box"
>
<div
class=
"px-line"
></div>
<div
class=
"tit"
>
扳手专访
<span>
Interview
</span>
<a
href=
"/zhuanfang"
>
更多
</a></div>
<div
class=
"comment-box"
>
<div
class=
"swiper-container interviewSlider"
>
<div
class=
"rl-tit"
>
最新评论
<span>
Comment
</span></div>
<div
class=
"swiper-wrapper"
>
<ul
class=
"comment-list"
></ul>
[ecmsinfo]32,10,80,0,0,17,0[/ecmsinfo]
</div>
</div>
</div>
</div>
<div
id=
"scrollLoad"
class=
"t-c"
></div>
<div
class=
"recommend-info"
>
<div
class=
"empty-block"
></div>
[ecmsinfo]1,50,100,0,0,14,0,'isgood!=2 and firsttitle!=1','newstime DESC'[/ecmsinfo]
<div
class=
"bottom-menu clearfix"
>
<a
href=
"javascript:;"
class=
"send-comment"
>
我来说几句
</a>
<a
href=
"javascript:;"
id=
"commentList"
><i
class=
"iconfont icon-comment_light"
></i></a>
<a
href=
"javascript:;"
id=
"favor"
><i
class=
"iconfont icon-favor"
></i></a>
<a
href=
"javascript:;"
id=
"zan"
><i
class=
"iconfont icon-zan"
></i>
<span
class=
"zan-tip"
>
+1
</span></a>
<a
href=
"javascript:;"
class=
"share-btn"
><i
class=
"iconfont icon-share_light"
></i></a>
</div>
</div>
<div
class=
"update-app-tip"
id=
"update-app-tip"
style=
"display: none"
>
<div
class=
"uat-main"
>
<div
class=
"comment-send-box comment-send"
>
<div
class=
"tit"
>
版本更新提示
<a
href=
"javascript:;"
class=
"UPDATE-CLOSE"
><i
<div
class=
"comment-detail"
>
class=
"iconfont icon-close_light"
></i></a>
<div
class=
"tit clearfix"
>
</div>
<button
class=
"fl cancel-comment"
>
取消
</button>
<div
class=
"txt"
>
<button
class=
"fr send-ban send-pl"
>
发表
</button>
<p>
请将APP更新到最新版本
</p>
<p>
答题赢钱,千元现金等你来拿
</p>
</div>
</div>
<a
href=
"javascript;;"
class=
"uat-now UPDATE-CLOSE"
id=
""
>
我知道了
</a>
<textarea
name=
"content"
placeholder=
"我想说几句..."
></textarea>
<input
type=
"hidden"
name=
"newsid"
value=
"[!--id--]"
/>
</div>
</div>
</div>
</div>
<div
class=
"update-app-tip"
id=
"prompt"
style=
"display: none"
>
<div
class=
"comment-send-box comment-reply"
>
<div
class=
"uat-main"
>
<div
class=
"comment-detail"
>
<div
class=
"tit"
>
扳手大赢家
<a
href=
"javascript:;"
class=
"PROMPT-CLOSE"
><i
class=
"iconfont icon-close_light"
></i></a>
<div
class=
"tit clearfix"
>
<button
class=
"fl cancel-comment"
>
取消
</button>
<button
class=
"fr send-ban reply-pl"
>
回复
</button>
</div>
</div>
<div
class=
"screen"
>
<textarea
name=
"replycontent"
placeholder=
"我想说几句..."
></textarea>
<div
class=
"item"
>
<div
class=
"reply-root"
>
<p>
4月1日
</p>
<a
id=
"reply-name"
href=
"javascript:;"
></a>
<h3>
20:00
</h3>
<span
id=
"reply-content"
></span>
</div>
<div
class=
"item"
>
<p>
奖池
</p>
<h3>
888
</h3>
</div>
</div>
</div>
<a
href=
"javascript:;"
class=
"uat-now PROMPT-CLOSE"
>
我知道了
</a>
<input
type=
"hidden"
name=
"newsid"
value=
"[!--id--]"
/>
<input
type=
"hidden"
name=
"plid"
value=
"0"
/>
</div>
</div>
</div>
</div>
<!-- 登录有礼提示 -->
<a
class=
"newer-tip"
id=
"loginGits"
href=
"[!--temp.ucenterurl--]login/web"
style=
"display:none"
><img
src=
"images/login_gits.png"
></a>
<script
type=
'text/javascript'
src=
"[!--news.url--]skin/default/js/swiper.min.js"
></script>
<script
src=
"[!--news.url--]e/member/login/logincas.php"
></script>
<script
type=
'text/javascript'
src=
"[!--news.url--]skin/default/js/jquery-1.11.3.min.js"
></script>
<script
src=
"[!--news.url--]e/member/login/loginstatus.php"
></script>
<script
type=
'text/javascript'
src=
"[!--news.url--]skin/default/js/layer/layer.js"
></script>
<script
type=
'text/javascript'
src=
"[!--news.url--]skin/default/js/news.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/content_menu.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/banshou.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/uba.js?20180330.js"
></script>
<script
type=
'text/javascript'
src=
"[!--temp.ucenterurl--]common/recommend.js"
></script>
<script
type=
'text/javascript'
>
$
(
function
()
{
var
title
=
"[!--pagetitle--]-扳手"
;
var
desc
=
$
(
'#desc'
).
text
();
<script>
desc
=
desc
.
replace
(
/^
\\\\
s
\\\\
s*/
,
''
).
replace
(
/
\\\\
s
\\\\
s*$/
,
''
).
replace
(
/
[\\\\
r
\\\\
n
]
/g
,
""
);
/*
window.onerror = function (msg, url, lineNo, columnNo, error) {
//显示评论框
var string = msg.toLowerCase();
function
controlBox
(
btn
,
box
,
cancleset
)
{
var substring = "script error";
btn
.
click
(
function
()
{
if (string.indexOf(substring) > -1){
$
(
'#maskCommon'
).
show
();
alert('Script Error: See Browser Console for Detail');
box
.
show
();
} else {
});
var message = [
cancleset
.
click
(
function
()
{
'Message: ' + msg,
$
(
'#maskCommon'
).
hide
();
'URL: ' + url,
box
.
hide
();
'Line: ' + lineNo,
});
'Column: ' + columnNo,
$
(
'.mask'
).
click
(
function
()
{
'Error object: ' + JSON.stringify(error)
$
(
'#maskCommon'
).
hide
();
].join(' - ');
box
.
hide
();
});
alert(message);
}
}
return false;
controlBox
(
$
(
'.send-comment'
),
$
(
'.comment-send'
),
$
(
'.cancel-comment'
));
};
controlBox
(
$
(
'.pl-reply'
),
$
(
'.comment-reply'
),
$
(
'.cancel-comment'
));
*/
var
mySwiper
=
new
Swiper
(
'.topBanner'
,
{
autoplay
:
5000
,
pagination
:
'.swiper-pagination'
});
$
(
function
()
{
$
(
'.share-btn'
).
click
(
function
()
{
setWidth
();
var
option
=
{
$
(
window
).
resize
(
setWidth
);
'title'
:
title
,
'desc'
:
desc
,
function
setWidth
()
{
'img'
:
imgUrl
,
if
(
$
(
window
).
width
()
>=
900
)
{
'url'
:
window
.
location
.
href
,
$
(
'.newest-list'
).
find
(
'.learn-course-box'
).
width
(
427
);
'successCallback'
:
false
}
else
{
};
$
(
'.newest-list'
).
find
(
'.learn-course-box'
).
width
((
$
(
window
).
width
()
-
45
)
/
2
);
if
(
getCookie
(
'udvqbmlcas'
)
==
1
)
{
option
.
successCallback
=
function
()
{
shareSuccessCallback
(
'share'
);
};
}
}
}
var
s
=
document
.
createElement
(
"script"
);
Banshou
.
commonShareInit
(
option
);
s
.
type
=
"text/javascript"
;
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
s
);
s
.
src
=
"[!--news.url--]e/member/login/logincas.php"
;
Banshou
.
commonShareShow
();
var
mySwiper2
=
new
Swiper
(
'.interviewSlider'
,
{
slidesPerView
:
2
,
grabCursor
:
true
,
autoplay
:
5000
});
});
$
.
getJSON
(
"[!--temp.ucenterurl--]tip/state-call?tips=s_books&callback=?"
,
function
(
data
)
{
if
(
!
Banshou
.
inApp
())
{
var
books
=
$
(
".common-top a.books"
);
var
html
=
'<a href="//s.ibanshou.cn/appdownload/?wx" class="content pb-none">'
+
var
booksUrl
=
books
.
attr
(
'href'
);
' <div class="tit">注意啦!这些原因会导致空调在维修过程中发生爆炸</div>'
+
if
(
data
.
s_books
)
{
' <div class="img-item-box clearfix">'
+
books
.
attr
(
"href"
,
booksUrl
);
' <div class="img-item"><img src="//s.ibanshou.cn/skin/default/images/dw_ads_01.jpg"></div>'
+
}
else
{
' <div class="img-item"><img src="//s.ibanshou.cn/skin/default/images/dw_ads_02.jpg"></div>'
+
books
.
append
(
'<span class="file-tip">送的书和专享视频,在这里</span>'
);
' <div class="img-item"><img src="//s.ibanshou.cn/skin/default/images/dw_ads_03.jpg"></div>'
+
books
.
click
(
function
()
{
' </div>'
+
$
.
getJSON
(
"[!--temp.ucenterurl--]tip/state-push?tip=s_books&callback=?"
,
function
(
data
)
{
'</a>'
+
location
.
href
=
booksUrl
;
'<div class="portal-news-info clearfix">'
+
});
'<span class="time fl"><b>APP专享</b></span>'
+
});
'<span class="fr">阅读 5.7w</span> <span class="fr">评论 6739</span>'
+
}
'</div>'
;
});
$
(
'#hotRecommend'
).
append
(
html
);
}
;
})
})
</script>
</script>
[!--temp.stat-js--]
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.0.0.js"
></script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.0.0.js"
></script>
<script>
<script>
...
@@ -270,8 +177,12 @@
...
@@ -270,8 +177,12 @@
//其它的在对应页面
//其它的在对应页面
var
link
=
window
.
location
.
href
;
var
link
=
window
.
location
.
href
;
var
imgUrl
=
"http://u.ibanshou.cn/assets/img/logo.jpg"
;
var
imgUrl
=
"http://u.ibanshou.cn/assets/img/logo.jpg"
;
var
title
=
"扳手 - 和百万家电维修人在一起"
;
if
(
$
(
'.main-content'
).
find
(
'img'
)[
0
])
{
var
desc
=
"和百万家电维修人在一起"
;
imgUrl
=
$
(
'.main-content'
).
find
(
'img'
)[
0
].
src
;
}
var
title
=
"[!--pagetitle--] - 扳手"
;
var
desc
=
$
(
'#desc'
).
text
();
desc
=
desc
.
replace
(
/^
\\\\
s
\\\\
s*/
,
''
).
replace
(
/
\\\\
s
\\\\
s*$/
,
''
).
replace
(
/
[\\\\
r
\\\\
n
]
/g
,
""
);
wx
.
config
(
jsconfig
);
wx
.
config
(
jsconfig
);
wx
.
ready
(
function
()
{
wx
.
ready
(
function
()
{
...
@@ -280,6 +191,7 @@
...
@@ -280,6 +191,7 @@
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
imgUrl
,
// 分享图标
imgUrl
:
imgUrl
,
// 分享图标
success
:
function
()
{
success
:
function
()
{
shareSuccessCallback
(
'share'
);
// 用户确认分享后执行的回调函数
// 用户确认分享后执行的回调函数
},
},
cancel
:
function
()
{
cancel
:
function
()
{
...
@@ -295,6 +207,7 @@
...
@@ -295,6 +207,7 @@
type
:
'link'
,
// 分享类型,music、video或link,不填默认为link
type
:
'link'
,
// 分享类型,music、video或link,不填默认为link
dataUrl
:
''
,
// 如果type是music或video,则要提供数据链接,默认为空
dataUrl
:
''
,
// 如果type是music或video,则要提供数据链接,默认为空
success
:
function
()
{
success
:
function
()
{
shareSuccessCallback
(
'share'
);
// 用户确认分享后执行的回调函数
// 用户确认分享后执行的回调函数
},
},
cancel
:
function
()
{
cancel
:
function
()
{
...
@@ -309,6 +222,7 @@
...
@@ -309,6 +222,7 @@
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
imgUrl
,
// 分享图标
imgUrl
:
imgUrl
,
// 分享图标
success
:
function
()
{
success
:
function
()
{
shareSuccessCallback
(
'share'
);
// 用户确认分享后执行的回调函数
// 用户确认分享后执行的回调函数
},
},
cancel
:
function
()
{
cancel
:
function
()
{
...
@@ -322,6 +236,7 @@
...
@@ -322,6 +236,7 @@
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
imgUrl
,
// 分享图标
imgUrl
:
imgUrl
,
// 分享图标
success
:
function
()
{
success
:
function
()
{
shareSuccessCallback
(
'share'
);
// 用户确认分享后执行的回调函数
// 用户确认分享后执行的回调函数
},
},
cancel
:
function
()
{
cancel
:
function
()
{
...
@@ -333,114 +248,10 @@
...
@@ -333,114 +248,10 @@
var
script
=
document
.
createElement
(
'script'
);
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
"/e/action/wechat/jsconfig.php?callback=wechatcallback&url="
+
window
.
location
.
href
;
script
.
src
=
"/e/action/wechat/jsconfig.php?callback=wechatcallback&url="
+
window
.
location
.
href
;
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
script
);
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
script
);
</script>
</script>
<script
src=
"[!--news.url--]e/extend/DoTimeRepage/"
></script>
[!--temp.stat-js--]
<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
()
{
showUnquestionCount
();
showTuanProcess
(
0
);
});
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
e/action/credit.php
0 → 100644
View file @
de0848ed
<?php
use
internalApi\ucenter\Credit
;
require
(
__DIR__
.
'/../extend/internalApi/autoload.php'
);
require
(
__DIR__
.
"/../class/connect.php"
);
require
(
__DIR__
.
"/../class/db_sql.php"
);
require
(
__DIR__
.
"/../member/class/user.php"
);
require
(
__DIR__
.
"/../class/q_functions.php"
);
require
__DIR__
.
'/../config/config_ibanshou.php'
;
\internalApi\base\Client
::
config
(
$config
[
'wxh.internal'
][
'client'
]);
$link
=
db_connect
();
$empire
=
new
mysqlquery
();
$mod
=
isset
(
$_GET
[
'mod'
])
?
$_GET
[
'mod'
]
:
''
;
$type
=
isset
(
$_GET
[
'type'
])
?
$_GET
[
'type'
]
:
''
;
$user
=
islogin
();
$typeMap
=
[
'share'
=>
1
,
];
if
(
$mod
==
'credit'
){
$userId
=
$user
[
'ucid'
];
if
(
isset
(
$typeMap
[
$type
]))
{
$creditRuleId
=
$typeMap
[
$type
];
}
else
{
echo
json_encode
([
'status'
=>
false
,
'message'
=>
'type 字段错误'
]);
}
$creditRule
=
Credit
::
addCreditLog
(
$userId
,
$creditRuleId
);
if
(
$creditRule
)
{
$creditInfo
=
array
(
'title'
=>
$creditRule
[
'operation_name'
],
'desc'
=>
$creditRule
[
'operation_details'
],
'number'
=>
$creditRule
[
'number'
]);
setcookie
(
'creditNotice'
,
json_encode
(
$creditInfo
),
0
,
'/'
);
echo
json_encode
([
'status'
=>
true
,
'message'
=>
'ok'
,
'creditRule'
=>
$creditRule
]);
}
else
{
echo
json_encode
([
'status'
=>
false
]);
}
}
\ No newline at end of file
e/extend/internalApi/bbs/User.php
0 → 100644
View file @
de0848ed
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/8/23
* Time: 11:28
*/
namespace
internalApi\bbs
;
use
internalApi\base\Client
;
class
User
extends
Client
{
/**
* 同步更新用户基本信息
*
* @param int $uid
* @param array $data
* @return bool
*/
public
static
function
updateSync
(
$uid
,
$data
)
{
return
self
::
call
(
'user.updateSync'
,
compact
(
'uid'
,
'data'
));
}
/**
* 获取金币
* @param $uid
* @return mixed
*/
public
static
function
getGoldCoin
(
$uid
)
{
return
self
::
call
(
'user.getGoldCoin'
,
compact
(
'uid'
));
}
/**
* @param string $telephone 手机号
* @param int $num 加减的数量 +-num
* @param string $title 记录标题 例如 完工奖励
* @param string $text 记录内容 例如 完成工单奖励金钱+<span>5<span>
* @return mixed
*/
public
static
function
updateGoldCoin
(
$telephone
,
$num
,
$title
,
$text
){
return
self
::
call
(
'user.updateGoldCoin'
,
compact
(
'telephone'
,
'num'
,
'title'
,
'text'
));
}
}
\ No newline at end of file
e/extend/internalApi/ucenter/Credit.php
0 → 100644
View file @
de0848ed
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/4/8
* Time: 9:56
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Credit
extends
Client
{
/**
* 添加积分
* @param $userId
* @param $creditRuleId
* @return mixed
*/
public
static
function
addCreditLog
(
$userId
,
$creditRuleId
)
{
return
self
::
call
(
'credit.addCreditLog'
,
compact
(
'userId'
,
'creditRuleId'
));
}
}
\ No newline at end of file
skin/default/js/news.js
View file @
de0848ed
...
@@ -51,21 +51,21 @@ function comments() {
...
@@ -51,21 +51,21 @@ function comments() {
function
tpl
(
comment
)
{
function
tpl
(
comment
)
{
var
html
=
'<li data-id="'
+
comment
.
id
+
'">
\
var
html
=
'<li data-id="'
+
comment
.
id
+
'">
\
<img src="'
+
comment
.
avatar
+
'">
\
<img src="'
+
comment
.
avatar
+
'">
\
<div class="name">'
+
comment
.
nickname
+
'</div>
\
<div class="name">'
+
comment
.
nickname
+
'</div>
\
<div class="comment-main">'
+
comment
.
content
+
'</div>
\
<div class="comment-main">'
+
comment
.
content
+
'</div>
\
<div class="comment-footbar clearfix">
\
<div class="comment-footbar clearfix">
\
<span>'
+
comment
.
created_at
+
'</span>
\
<span>'
+
comment
.
created_at
+
'</span>
\
<a href="javascript:popReplyComment('
+
comment
.
id
+
');" class="pl-reply"><i class="iconfont icon-comment_light"></i>回复</a>
\
<a href="javascript:popReplyComment('
+
comment
.
id
+
');" class="pl-reply"><i class="iconfont icon-comment_light"></i>回复</a>
\
<a href="javascript:likeComment('
+
comment
.
id
+
', '
+
comment
.
islike
+
');" class="pl-zan"><i class="iconfont '
+
(
comment
.
islike
?
"icon-zan-fill"
:
"icon-zan"
)
+
'"></i>赞</a>
\
<a href="javascript:likeComment('
+
comment
.
id
+
', '
+
comment
.
islike
+
');" class="pl-zan"><i class="iconfont '
+
(
comment
.
islike
?
"icon-zan-fill"
:
"icon-zan"
)
+
'"></i>赞</a>
\
</div>'
;
</div>'
;
if
(
!
$
.
isEmptyObject
(
comment
.
reply
))
{
if
(
!
$
.
isEmptyObject
(
comment
.
reply
))
{
var
replys
=
comment
.
reply
;
var
replys
=
comment
.
reply
;
html
+=
'<div class="comment-replay">'
;
html
+=
'<div class="comment-replay">'
;
for
(
i
in
replys
)
{
for
(
i
in
replys
)
{
html
+=
'<div class="comment-replay-list"><span>'
+
replys
[
i
].
nickname
+
':</span>'
+
replys
[
i
].
content
+
' <span>'
+
replys
[
i
].
created_at
+
'</span></div>'
;
html
+=
'<div class="comment-replay-list"><span>'
+
replys
[
i
].
nickname
+
':</span>'
+
replys
[
i
].
content
+
' <span>'
+
replys
[
i
].
created_at
+
'</span></div>'
;
}
}
html
+=
'</div>'
;
html
+=
'</div>'
;
}
}
...
@@ -74,7 +74,7 @@ function tpl(comment) {
...
@@ -74,7 +74,7 @@ function tpl(comment) {
//回复弹窗
//回复弹窗
function
popReplyComment
(
id
)
{
function
popReplyComment
(
id
)
{
var
parent
=
$
(
'.comment-list'
).
find
(
'> li[data-id='
+
id
+
']'
);
var
parent
=
$
(
'.comment-list'
).
find
(
'> li[data-id='
+
id
+
']'
);
var
name
=
parent
.
find
(
'> .name'
).
text
()
+
':'
;
var
name
=
parent
.
find
(
'> .name'
).
text
()
+
':'
;
var
content
=
parent
.
find
(
'> .comment-main'
).
text
();
var
content
=
parent
.
find
(
'> .comment-main'
).
text
();
$
(
'#reply-name'
).
text
(
name
);
$
(
'#reply-name'
).
text
(
name
);
...
@@ -119,15 +119,15 @@ $(".reply-pl").click(function () {
...
@@ -119,15 +119,15 @@ $(".reply-pl").click(function () {
});
});
function
handelReplyComment
(
plid
,
comment
)
{
function
handelReplyComment
(
plid
,
comment
)
{
$
.
each
(
$
(
'.comment-list li'
),
function
()
{
$
.
each
(
$
(
'.comment-list li'
),
function
()
{
if
(
$
(
this
).
attr
(
'data-id'
)
==
plid
)
{
if
(
$
(
this
).
attr
(
'data-id'
)
==
plid
)
{
var
html
=
''
;
var
html
=
''
;
if
(
$
(
this
).
children
(
".comment-replay"
).
html
())
{
if
(
$
(
this
).
children
(
".comment-replay"
).
html
())
{
html
=
'<div class="comment-replay-list"><span>'
+
comment
.
nickname
+
':</span>'
+
comment
.
content
+
' <span>'
+
comment
.
created_at
+
'</span></div>'
;
html
=
'<div class="comment-replay-list"><span>'
+
comment
.
nickname
+
':</span>'
+
comment
.
content
+
' <span>'
+
comment
.
created_at
+
'</span></div>'
;
$
(
this
).
children
(
".comment-replay"
).
append
(
html
);
$
(
this
).
children
(
".comment-replay"
).
append
(
html
);
}
else
{
}
else
{
html
=
'<div class="comment-replay">
\
html
=
'<div class="comment-replay">
\
<div class="comment-replay-list"><span>'
+
comment
.
nickname
+
':</span>'
+
comment
.
content
+
' <span>'
+
comment
.
created_at
+
'</span></div>
\
<div class="comment-replay-list"><span>'
+
comment
.
nickname
+
':</span>'
+
comment
.
content
+
' <span>'
+
comment
.
created_at
+
'</span></div>
\
</div>'
;
</div>'
;
$
(
this
).
append
(
html
);
$
(
this
).
append
(
html
);
}
}
...
@@ -143,7 +143,7 @@ function likeComment(plid, islike) {
...
@@ -143,7 +143,7 @@ function likeComment(plid, islike) {
$
.
post
(
"/e/action/news/comment.php?mod=like"
,
{
plid
:
plid
},
function
(
e
)
{
$
.
post
(
"/e/action/news/comment.php?mod=like"
,
{
plid
:
plid
},
function
(
e
)
{
if
(
e
.
status
)
{
if
(
e
.
status
)
{
$
.
each
(
$
(
'.comment-list li'
),
function
()
{
$
.
each
(
$
(
'.comment-list li'
),
function
()
{
if
(
$
(
this
).
attr
(
'data-id'
)
==
plid
)
{
if
(
$
(
this
).
attr
(
'data-id'
)
==
plid
)
{
$
(
this
).
find
(
".icon-zan"
).
addClass
(
"icon-zan-fill"
).
removeClass
(
"icon-zan"
);
$
(
this
).
find
(
".icon-zan"
).
addClass
(
"icon-zan-fill"
).
removeClass
(
"icon-zan"
);
}
}
...
@@ -154,6 +154,55 @@ function likeComment(plid, islike) {
...
@@ -154,6 +154,55 @@ function likeComment(plid, islike) {
},
'json'
);
},
'json'
);
}
}
function
shareSuccessCallback
(
type
)
{
$
.
ajax
({
type
:
"GET"
,
url
:
"/e/action/credit.php?mod=credit&type="
+
type
,
data
:
''
,
dataType
:
"json"
,
success
:
function
(
response
)
{
if
(
response
.
status
)
{
cookieTips
();
}
}
});
}
function
getCookie
(
sName
)
{
var
aCookie
=
document
.
cookie
.
split
(
"; "
);
for
(
var
i
=
0
;
i
<
aCookie
.
length
;
i
++
)
{
var
aCrumb
=
aCookie
[
i
].
split
(
"="
);
if
(
sName
==
aCrumb
[
0
])
return
unescape
(
aCrumb
[
1
]);
}
return
null
;
}
function
setCookie
(
cname
,
cvalue
)
{
document
.
cookie
=
cname
+
"="
+
cvalue
+
"; "
;
}
function
deleteCookie
(
name
,
path
)
{
// 删除Cookie
var
strCookie
;
// 检查Cookie是否存在
// 设置Cookie的期限为己过期
strCookie
=
name
+
"="
;
strCookie
+=
(
path
)
?
"; path="
+
path
:
""
;
document
.
cookie
=
strCookie
;
}
//end function deleteCookie
function
cookieTips
()
{
var
obj
=
getCookie
(
'creditNotice'
);
if
(
obj
)
{
obj
=
JSON
.
parse
(
obj
);
var
desc
=
'金币 +'
+
obj
.
number
;
Banshou
.
creditTip
(
obj
.
title
,
desc
,
3000
);
deleteCookie
(
'creditNotice'
,
'/'
);
}
}
function
pop
(
msg
,
islogin
)
{
function
pop
(
msg
,
islogin
)
{
if
(
islogin
===
'nologin'
)
{
if
(
islogin
===
'nologin'
)
{
location
.
href
=
"/e/member/login"
;
location
.
href
=
"/e/member/login"
;
...
@@ -178,7 +227,7 @@ function scrollLoading() {
...
@@ -178,7 +227,7 @@ function scrollLoading() {
var
lastplid
=
$
(
".comment-list li:last-child"
).
attr
(
'data-id'
);
var
lastplid
=
$
(
".comment-list li:last-child"
).
attr
(
'data-id'
);
lastplid
=
lastplid
?
lastplid
:
0
;
lastplid
=
lastplid
?
lastplid
:
0
;
scrollLoad
.
html
(
"<img src='"
+
spinner
+
"'>"
);
scrollLoad
.
html
(
"<img src='"
+
spinner
+
"'>"
);
$
.
post
(
"/e/action/news/comment.php"
,
{
newsid
:
newsid
,
lastplid
:
lastplid
},
function
(
e
)
{
$
.
post
(
"/e/action/news/comment.php"
,
{
newsid
:
newsid
,
lastplid
:
lastplid
},
function
(
e
)
{
if
(
!
$
.
isEmptyObject
(
e
.
data
))
{
if
(
!
$
.
isEmptyObject
(
e
.
data
))
{
var
comments
=
e
.
data
;
var
comments
=
e
.
data
;
var
html
=
''
;
var
html
=
''
;
...
@@ -189,7 +238,7 @@ function scrollLoading() {
...
@@ -189,7 +238,7 @@ function scrollLoading() {
}
else
{
}
else
{
scrollLoad
.
html
(
"全部加载完毕"
);
scrollLoad
.
html
(
"全部加载完毕"
);
$
(
window
).
off
(
"scroll"
,
scrollLoading
);
$
(
window
).
off
(
"scroll"
,
scrollLoading
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
scrollLoad
.
slideUp
();
scrollLoad
.
slideUp
();
},
1000
);
},
1000
);
}
}
...
@@ -224,11 +273,11 @@ $.post("/e/action/news/index.php?mod=init", {newsid: newsid}, function (e) {
...
@@ -224,11 +273,11 @@ $.post("/e/action/news/index.php?mod=init", {newsid: newsid}, function (e) {
//点赞
//点赞
function
diggtop
()
{
function
diggtop
()
{
$
(
'#zan'
).
one
(
'click'
,
function
()
{
$
(
'#zan'
).
one
(
'click'
,
function
()
{
$
.
post
(
"/e/action/news/index.php?mod=diggtop"
,
{
newsid
:
newsid
},
function
(
e
)
{
$
.
post
(
"/e/action/news/index.php?mod=diggtop"
,
{
newsid
:
newsid
},
function
(
e
)
{
if
(
e
.
status
)
{
if
(
e
.
status
)
{
$
(
"#zan"
).
find
(
'i'
).
removeClass
(
'icon-zan'
).
addClass
(
'icon-zan-fill'
);
$
(
"#zan"
).
find
(
'i'
).
removeClass
(
'icon-zan'
).
addClass
(
'icon-zan-fill'
);
$
(
'.zan-tip'
).
animate
({
opacity
:
"1"
,
top
:
"-=30"
},
500
).
animate
({
opacity
:
"0"
,
top
:
"-30"
},
"slow"
);
$
(
'.zan-tip'
).
animate
({
opacity
:
"1"
,
top
:
"-=30"
},
500
).
animate
({
opacity
:
"0"
,
top
:
"-30"
},
"slow"
);
}
else
{
}
else
{
pop
(
e
.
msg
,
e
.
data
);
pop
(
e
.
msg
,
e
.
data
);
}
}
...
@@ -253,9 +302,9 @@ $('#favor').click(function () {
...
@@ -253,9 +302,9 @@ $('#favor').click(function () {
},
'json'
);
},
'json'
);
});
});
(
function
(
$
)
{
(
function
(
$
)
{
//加载乐视视频
//加载乐视视频
$
(
"div.lecloud-video"
).
each
(
function
()
{
$
(
"div.lecloud-video"
).
each
(
function
()
{
var
width
=
640
,
height
=
360
,
rate
=
width
/
height
;
var
width
=
640
,
height
=
360
,
rate
=
width
/
height
;
var
video
=
createVideoElement
(
width
,
height
);
var
video
=
createVideoElement
(
width
,
height
);
$
(
this
).
replaceWith
(
video
);
$
(
this
).
replaceWith
(
video
);
...
...
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