Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
d1e5cd3e
Commit
d1e5cd3e
authored
Jul 06, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code format
parent
d69560b6
Pipeline
#9801
passed with stages
in 34 seconds
Changes
9
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
3 additions
and
932 deletions
+3
-932
MediaCategoryModel.php
app/Model/MediaCategoryModel.php
+2
-4
MediaModel.php
app/Model/MediaModel.php
+1
-10
common.blade.php
resources/views/admin/common_bak/common.blade.php
+0
-133
commonMedia.blade.php
resources/views/admin/common_bak/commonMedia.blade.php
+0
-34
fiveCityMap.blade.php
resources/views/admin/common_bak/fiveCityMap.blade.php
+0
-100
foot.blade.php
resources/views/admin/common_bak/foot.blade.php
+0
-15
header.blade.php
resources/views/admin/common_bak/header.blade.php
+0
-248
left.blade.php
resources/views/admin/common_bak/left.blade.php
+0
-134
newContent.blade.php
resources/views/admin/common_bak/newContent.blade.php
+0
-254
No files found.
app/Model/MediaCategoryModel.php
View file @
d1e5cd3e
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
namespace
App\Model
;
namespace
App\Model
;
use
App\Exceptions\DatabaseException
;
use
App\Exceptions\DatabaseException
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Support\Facades\DB
;
use
Jenssegers\Mongodb\Eloquent\Model
as
Eloquent
;
use
Jenssegers\Mongodb\Eloquent\Model
as
Eloquent
;
class
MediaCategoryModel
extends
Eloquent
class
MediaCategoryModel
extends
Eloquent
...
@@ -24,7 +22,7 @@ class MediaCategoryModel extends Eloquent
...
@@ -24,7 +22,7 @@ class MediaCategoryModel extends Eloquent
public
static
function
catgList
(
$request
){
public
static
function
catgList
(
$request
){
try
{
try
{
self
::
addMediaCatg
(
$request
);;
$catgList
=
MediaCategoryModel
::
get
()
->
toArray
();
$catgList
=
MediaCategoryModel
::
get
()
->
toArray
();
}
catch
(
\Exception
$exception
){
}
catch
(
\Exception
$exception
){
...
@@ -44,7 +42,7 @@ class MediaCategoryModel extends Eloquent
...
@@ -44,7 +42,7 @@ class MediaCategoryModel extends Eloquent
try
{
try
{
$data
=
[
$data
=
[
'name'
=>
$request
->
name
??
"百度"
,
'name'
=>
$request
->
name
??
"百度
1
"
,
'status'
=>
0
'status'
=>
0
];
];
...
...
app/Model/MediaModel.php
View file @
d1e5cd3e
...
@@ -4,9 +4,6 @@ namespace App\Model;
...
@@ -4,9 +4,6 @@ namespace App\Model;
use
App\Exceptions\DatabaseException
;
use
App\Exceptions\DatabaseException
;
use
Jenssegers\Mongodb\Eloquent\Model
as
Eloquent
;
use
Jenssegers\Mongodb\Eloquent\Model
as
Eloquent
;
use
Illuminate\Support\Facades\DB
;
use
Qiniu\Config
;
use
Qiniu\Storage\FormUploader
;
class
MediaModel
extends
Eloquent
class
MediaModel
extends
Eloquent
{
{
...
@@ -18,26 +15,20 @@ class MediaModel extends Eloquent
...
@@ -18,26 +15,20 @@ class MediaModel extends Eloquent
public
static
function
mediaList
(
$request
){
public
static
function
mediaList
(
$request
){
try
{
try
{
$where
=
[];
$where
=
[];
if
(
$request
->
name
){
if
(
$request
->
name
){
$where
[
'name'
]
=
$request
->
name
;
$where
[
'name'
]
=
$request
->
name
;
}
}
$medias
=
DB
::
connection
(
'mongodb'
)
->
collection
(
'media'
)
$medias
=
MediaModel
::
where
(
$where
)
->
paginate
(
10
);
->
where
(
$where
)
->
paginate
(
10
);
}
catch
(
\Exception
$exception
){
}
catch
(
\Exception
$exception
){
throw
new
DatabaseException
(
$exception
->
getMessage
());
throw
new
DatabaseException
(
$exception
->
getMessage
());
}
}
return
$medias
;
return
$medias
;
}
}
/**
/**
...
...
resources/views/admin/common_bak/common.blade.php
deleted
100644 → 0
View file @
d69560b6
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
<meta
name=
"format-detection"
content=
"telephone=no,email=no"
/>
<meta
name=
"apple-touch-fullscreen"
content=
"yes"
>
<meta
name=
"App-Config"
content=
"fullscreen=yes,useHistoryState=yes,transition=yes"
>
<title>
宁夏广播电视台新闻客户端
</title>
{{--
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/base.css')}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/slider.css')}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/layout.css')}}"
>
--}}
<style
type=
"text/css"
>
font
{
color
:
#FFFFFF
;
}
img
{
height
:
auto
;
width
:
auto
\
9
;
width
:
100%
;
}
</style>
<script
src=
"{{URL::asset('js/zepto.js')}}"
></script>
<script
src=
"{{URL::asset('js/slider.js')}}"
></script>
</head>
<body>
<div
class=
"mnews"
>
<p
class=
"content_p"
style=
"font-size: 14px;"
style=
"text-indent:2em;"
>
{!! $content !!}
</p>
<p
style=
"text-indent:2em;"
>
</p>
</div>
<script>
(
function
(
doc
,
win
)
{
var
docEl
=
doc
.
documentElement
,
//根元素html
//判断窗口有没有orientationchange这个方法,有就赋值给一个变量,没有就返回resize方法。
resizeEvt
=
'orientationchange'
in
window
?
'orientationchange'
:
'resize'
,
recalc
=
function
()
{
var
clientWidth
=
docEl
.
clientWidth
;
if
(
!
clientWidth
)
return
;
//把document的fontSize大小设置成跟窗口成一定比例的大小,从而实现响应式效果。
docEl
.
style
.
fontSize
=
20
*
(
clientWidth
/
320
)
+
'px'
;
};
if
(
!
doc
.
addEventListener
)
return
;
win
.
addEventListener
(
resizeEvt
,
recalc
,
false
);
//addEventListener事件方法接受三个参数:第一个是事件名称比如点击事件onclick,第二个是要执行的函数,第三个是布尔值
doc
.
addEventListener
(
'DOMContentLoaded'
,
recalc
,
false
);
//绑定浏览器缩放与加载时间
})(
document
,
window
);
</script>
<script
src=
" {{URL::asset('js/common.js')}}"
></script>
<script
src=
"{{URL::asset('js/mobile.js')}}"
></script>
<script
type=
"text/javascript"
>
//判断浏览器下载
$
(
function
()
{
//浏览器判断
var
browser
=
{
versions
:
function
(){
var
u
=
navigator
.
userAgent
,
app
=
navigator
.
appVersion
;
return
{
//移动终端浏览器版本信息
trident
:
u
.
indexOf
(
'Trident'
)
>
-
1
,
//IE内核
presto
:
u
.
indexOf
(
'Presto'
)
>
-
1
,
//opera内核
webKit
:
u
.
indexOf
(
'AppleWebKit'
)
>
-
1
,
//苹果、谷歌内核
gecko
:
u
.
indexOf
(
'Gecko'
)
>
-
1
&&
u
.
indexOf
(
'KHTML'
)
==
-
1
,
//火狐内核
mobile
:
!!
u
.
match
(
/AppleWebKit.*Mobile.*/
)
||!!
u
.
match
(
/AppleWebKit/
),
//是否为移动终端
ios
:
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
),
//ios终端
android
:
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
,
//android终端或者uc浏览器
iPhone
:
u
.
indexOf
(
'iPhone'
)
>
-
1
||
u
.
indexOf
(
'Mac'
)
>
-
1
,
//是否为iPhone或者QQHD浏览器
iPad
:
u
.
indexOf
(
'iPad'
)
>
-
1
,
//是否iPad
webApp
:
u
.
indexOf
(
'Safari'
)
==
-
1
,
//是否web应该程序,没有头部与底部
weiXin
:
u
.
indexOf
(
'MicroMessenger'
)
>
-
1
,
QQ
:
u
.
indexOf
(
'QQ'
)
>
-
1
};
}(),
language
:(
navigator
.
browserLanguage
||
navigator
.
language
).
toLowerCase
()
}
//判断浏览器下载
$
(
".goDownload,.down_but"
).
on
(
"click"
,
function
(){
if
(
browser
.
versions
.
iPhone
||
browser
.
versions
.
iPad
||
browser
.
versions
.
ios
){
//alert("https://itunes.apple.com/us/app/hong-gou-qi/id790073439?l=zh&ls=1&mt=8");return;
if
(
browser
.
versions
.
weiXin
){
$
(
".iosweixin"
).
show
();
}
else
if
(
browser
.
versions
.
QQ
){
$
(
".iosweixin"
).
show
();
}
else
{
location
.
href
=
"https://itunes.apple.com/us/app/hong-gou-qi/id790073439?l=zh&ls=1&mt=8"
;
}
}
else
if
(
browser
.
versions
.
android
){
//alert("http://video.sinosns.cn/nxtv/V3_2_3.apk");return;
if
(
browser
.
versions
.
weiXin
){
$
(
".androidweixin"
).
show
();
}
else
{
location
.
href
=
"http://video.sinosns.cn/nxtv/V3_2_3.apk"
;
}
}
else
{
//alert("123");return;
location
.
href
=
"http://video.sinosns.cn/nxtv/V3_2_3.apk"
;
}
})
$
(
".androidweixin,.iosweixin"
).
on
(
"click"
,
function
(
e
){
$
(
this
).
hide
();
})
})
var
_bdhmProtocol
=
((
"https:"
==
document
.
location
.
protocol
)
?
" https://"
:
" http://"
);
document
.
write
(
unescape
(
"%3Cscript src='"
+
_bdhmProtocol
+
"hm.baidu.com/h.js%3Fab8ab62edab2a66f3b4358c4adbd08c0' type='text/javascript'%3E%3C/script%3E"
));
</script>
</body>
</html>
\ No newline at end of file
resources/views/admin/common_bak/commonMedia.blade.php
deleted
100644 → 0
View file @
d69560b6
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"robots"
content=
"all,follow"
>
<title>
后台管理系统
</title>
<link
rel=
"shortcut icon"
href=
"img/test.ico"
>
<script
src=
"{{ asset('xadmin/js/jquery.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/jquery.cookie.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/common.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/jquery.validate.js')}}"
></script>
{{--
<script
src=
"{{ asset('xadmin/extra/bootstrapvalidator-master/dist/js/bootstrapValidator.js')}}"
></script>
--}}
<!-- global stylesheets -->
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/base.css')}}"
>
<link
href=
"https://fonts.googleapis.com/css?family=Roboto+Condensed"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/bootstrap.min.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/font-awesome-4.7.0/css/font-awesome.min.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/font-icon-style.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/style.default.css')}}"
id=
"theme-stylesheet"
>
<!-- Core stylesheets -->
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/ui-elements/card.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/style.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/common.css')}}"
>
</head>
\ No newline at end of file
resources/views/admin/common_bak/fiveCityMap.blade.php
deleted
100644 → 0
View file @
d69560b6
<!doctype html>
<html>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
<meta
name=
"format-detection"
content=
"telephone=no,email=no"
/>
<meta
name=
"apple-touch-fullscreen"
content=
"yes"
>
<meta
name=
"App-Config"
content=
"fullscreen=yes,useHistoryState=yes,transition=yes"
>
<!-- uc强制竖屏 -->
<meta
name=
"screen-orientation"
content=
"portrait"
>
<!-- QQ强制竖屏 -->
<meta
name=
"x5-orientation"
content=
"portrait"
>
<!-- UC强制全屏 -->
<meta
name=
"full-screen"
content=
"yes"
>
<!-- QQ强制全屏 -->
<meta
name=
"x5-fullscreen"
content=
"true"
>
<!-- UC应用模式 -->
<meta
name=
"browsermode"
content=
"application"
>
{{--
<meta
name=
"csrf-token"
content=
"{{ csrf_token() }}"
/>
--}}
<title>
宁夏广播电视台新闻客户端
</title>
<head>
<style
type=
"text/css"
>
*
{
margin
:
0
;
padding
:
0
;}
html
,
body
{
width
:
100%
;
/*height:100%*/
}
body
{
font-family
:
"华文细黑"
;
background
:
url({{URL::asset('images/five_bj.png')
}
}
)
no-repeat
;
background-size
:
cover
;
}
</style>
</head>
<body>
<div
id=
"main"
style=
"margin:0 auto;width:100%;height:650px;"
></div>
{{--margin:-10px auto auto auto;"--}}
<script
type=
"text/JavaScript"
src=
"{{URL::asset('js/echarts.min.js')}}"
></script>
<script
type=
"text/JavaScript"
src=
"{{URL::asset('js/ningxia.js')}}"
></script>
<script
type=
"text/javascript"
>
var
he
=
document
.
body
.
clientHeight
;
var
oDiv
=
document
.
getElementById
(
'main'
);
oDiv
.
style
.
height
=
he
-
40
-
49
-
40
+
'px'
;
var
dom
=
document
.
getElementById
(
"main"
);
var
myChart
=
echarts
.
init
(
dom
);
var
chart
=
echarts
.
init
(
document
.
getElementById
(
'main'
));
chart
.
setOption
({
series
:
[{
type
:
'map'
,
//selectedMode : 'single',
map
:
'宁夏'
,
itemStyle
:{
normal
:{
label
:{
show
:
true
},
borderColor
:
'blue'
,
areaColor
:
'#ffffff'
,
},
emphasis
:
{
areaColor
:
'red'
,
borderWidth
:
1
,
label
:{
show
:
true
},
}
},
data
:{
!!
$data
!!
}
,
}]
});
function
setupWebViewJavascriptBridge
(
callback
)
{
if
(
window
.
WebViewJavascriptBridge
)
{
callback
(
WebViewJavascriptBridge
)
}
else
{
document
.
addEventListener
(
'WebViewJavascriptBridgeReady'
,
function
()
{
callback
(
WebViewJavascriptBridge
)
},
false
);
}
// =====以下是iOS必须的特殊处理========
if
(
window
.
WVJBCallbacks
)
{
return
window
.
WVJBCallbacks
.
push
(
callback
);
}
window
.
WVJBCallbacks
=
[
callback
];
var
WVJBIframe
=
document
.
createElement
(
'iframe'
);
WVJBIframe
.
style
.
display
=
'none'
;
WVJBIframe
.
src
=
'wvjbscheme://__BRIDGE_LOADED__'
;
document
.
documentElement
.
appendChild
(
WVJBIframe
);
setTimeout
(
function
()
{
document
.
documentElement
.
removeChild
(
WVJBIframe
)
},
0
);
// =====以上是iOS必须的特殊处理========
}
myChart
.
on
(
'click'
,
function
(
params
){
//console.log("OC中返回的参数:", params)
//alert(params.data.id);
// 注意:abc是html跟iOS和安卓定义好的一个名字,后面的{}里面是传过去的参数,用这个上面必须得引用header的一堆关于webviewjavascript的js
setupWebViewJavascriptBridge
(
function
(
bridge
)
{
bridge
.
callHandler
(
'interactive'
,
{
'id'
:
params
.
data
.
id
},
function
responseCallback
(
responseData
)
{
console
.
log
(
"OC中返回的参数:"
,
responseData
)
});
})
});
</script>
</body>
</html>
\ No newline at end of file
resources/views/admin/common_bak/foot.blade.php
deleted
100644 → 0
View file @
d69560b6
<!--Global Javascript -->
<script
src=
"{{ asset('xadmin/js/popper/popper.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/tether.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/bootstrap.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/jquery.cookie.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/chart.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/front.js')}}"
></script>
<!--Core Javascript -->
{{--
<script
src=
"{{ asset('xadmin/js/mychart.js')}}"
></script>
--}}
{{--
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/extra/jqueryToast/css/toast.style.css')}}"
>
--}}
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/icon/iconfont.css')}}"
>
resources/views/admin/common_bak/header.blade.php
deleted
100644 → 0
View file @
d69560b6
<header
class=
"header"
>
<nav
class=
"navbar navbar-expand-lg "
>
<div
class=
"search-box"
>
<button
class=
"dismiss"
><i
class=
"icon-close"
></i></button>
<form
id=
"searchForm"
action=
"#"
role=
"search"
>
<input
type=
"search"
placeholder=
"Search Now"
class=
"form-control"
>
</form>
</div>
<div
class=
"container-fluid "
>
<div
class=
"navbar-holder d-flex align-items-center justify-content-between"
>
<div
class=
"navbar-header"
>
<a
href=
"/web/admin"
class=
"navbar-brand"
>
<div
class=
"brand-text brand-big hidden-lg-down"
><img
src=
" {{ asset('xadmin/img/logo-white.png')}}"
alt=
"Logo"
style=
"width: 180px;height: auto;"
class=
"img-fluid"
></div>
<div
class=
"brand-text brand-small"
><img
src=
" {{ asset('xadmin/img/logo-icon.pn')}}g"
alt=
"Logo"
class=
"img-fluid"
></div>
</a>
<a
id=
"toggle-btn"
href=
"#"
class=
"menu-btn active"
>
<span></span>
<span></span>
<span></span>
</a>
</div>
</div>
<ul
class=
"nav-menu list-unstyled d-flex flex-md-row align-items-md-center"
>
<!-- Expand-->
{{--
<li
class=
"nav-item d-flex align-items-center full_scr_exp"
><a
class=
"nav-link"
href=
"#"
><img
src=
" {{ asset('xadmin/img/expand.png')}}"
')}}
onclick=
"toggleFullScreen(document.body)"
class=
"img-fluid"
alt=
""
></a></li>
--}}
<!-- Search-->
{{--
<li
class=
"nav-item d-flex align-items-center"
><a
id=
"search"
class=
"nav-link"
href=
"#"
><i
class=
"icon-search"
></i></a></li>
<li
class=
"nav-item d-flex align-items-center"
>
<a
href=
"javascript:StranBody()"
id=
"StranLink"
class=
"top_t"
title=
"點擊以繁體中文方式瀏覽"
>
繁體版
</a>
</li>
--}}
<!-- Notifications-->
{{--
<li
class=
"nav-item dropdown"
>
--}}
{{--
<a
id=
"notifications"
class=
"nav-link"
rel=
"nofollow"
data-target=
"#"
href=
"#"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
><i
class=
"fa fa-bell-o"
></i><span
class=
"noti-numb-bg"
></span><span
class=
"badge"
>
12
</span></a>
--}}
{{--
<ul
aria-labelledby=
"notifications"
class=
"dropdown-menu"
>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item nav-link"
>
--}}
{{--
<div
class=
"notification"
>
--}}
{{--
<div
class=
"notification-content"
><i
class=
"fa fa-envelope bg-red"
></i>
You have 6 new messages
</div>
--}}
{{--
<div
class=
"notification-time"
><small>
4 minutes ago
</small></div>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item nav-link"
>
--}}
{{--
<div
class=
"notification"
>
--}}
{{--
<div
class=
"notification-content"
><i
class=
"fa fa-twitter bg-skyblue"
></i>
You have 2 followers
</div>
--}}
{{--
<div
class=
"notification-time"
><small>
4 minutes ago
</small></div>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item nav-link"
>
--}}
{{--
<div
class=
"notification"
>
--}}
{{--
<div
class=
"notification-content"
><i
class=
"fa fa-upload bg-blue"
></i>
Server Rebooted
</div>
--}}
{{--
<div
class=
"notification-time"
><small>
4 minutes ago
</small></div>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item nav-link"
>
--}}
{{--
<div
class=
"notification"
>
--}}
{{--
<div
class=
"notification-content"
><i
class=
"fa fa-twitter bg-skyblue"
></i>
You have 2 followers
</div>
--}}
{{--
<div
class=
"notification-time"
><small>
10 minutes ago
</small></div>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li><a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item all-notifications text-center"
>
<strong>
view all notifications
</strong></a></li>
--}}
{{--
</ul>
--}}
{{--
</li>
--}}
<!-- Messages -->
{{--
<li
class=
"nav-item dropdown"
>
<a
id=
"messages"
class=
"nav-link logout"
rel=
"nofollow"
data-target=
"#"
href=
"#"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
><i
class=
"fa fa-envelope-o"
></i><span
class=
"noti-numb-bg"
></span><span
class=
"badge"
>
10
</span></a>
--}}
{{--
<ul
aria-labelledby=
"messages"
class=
"dropdown-menu"
>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item d-flex"
>
--}}
{{--
<div
class=
"msg-profile"
>
<img
src=
" {{ asset('xadmin/img/avatar-1.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h3
class=
"h5 msg-nav-h3"
>
Jason Doe
</h3><span>
Sent You Message
</span>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item d-flex"
>
--}}
{{--
<div
class=
"msg-profile"
>
<img
src=
" {{ asset('xadmin/img/avatar-2.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h3
class=
"h5 msg-nav-h3"
>
Frank Williams
</h3><span>
Sent You Message
</span>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item d-flex"
>
--}}
{{--
<div
class=
"msg-profile"
>
<img
src=
" {{ asset('xadmin/img/avatar-3.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h3
class=
"h5 msg-nav-h3"
>
Ashley Wood
</h3><span>
Sent You Message
</span>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li><a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item all-notifications text-center"
>
<strong>
Read all messages
</strong></a></li>
--}}
{{--
</ul>
--}}
{{--
</li>
--}}
<li
class=
"nav-item dropdown"
><a
id=
"profile"
class=
"nav-link logout"
data-target=
"#"
href=
"#"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
><img
src=
" {{ asset('xadmin/img/avatar-1.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
style=
"height: 30px; width: 30px;"
></a>
<ul
aria-labelledby=
"profile"
class=
"dropdown-menu profile"
>
<li>
<a
rel=
"nofollow"
href=
"#"
class=
"dropdown-item d-flex"
>
<div
class=
"msg-profile"
>
<img
src=
" {{ asset('xadmin/img/avatar-1.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
<div
class=
"msg-body"
>
<h3
class=
"h5"
id=
"msg-username"
></h3><span
id=
"msg-email"
></span>
</div>
</a>
<hr>
</li>
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"profile.html"
class=
"dropdown-item"
>
--}}
{{--
<div
class=
"notification"
>
--}}
{{--
<div
class=
"notification-content"
><i
class=
"fa fa-user "
></i>
My Profile
</div>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"profile.html"
class=
"dropdown-item"
>
--}}
{{--
<div
class=
"notification"
>
--}}
{{--
<div
class=
"notification-content"
><i
class=
"fa fa-envelope-o"
></i>
Inbox
</div>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li>
--}}
{{--
<a
rel=
"nofollow"
href=
"profile.html"
class=
"dropdown-item"
>
--}}
{{--
<div
class=
"notification"
>
--}}
{{--
<div
class=
"notification-content"
><i
class=
"fa fa-cog"
></i>
设置
</div>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
<hr>
--}}
{{--
</li>
--}}
<li>
<a
rel=
"nofollow"
href=
"/web/logout"
class=
"dropdown-item"
>
<div
class=
"notification"
>
<div
class=
"notification-content"
><i
class=
"fa fa-power-off"
></i>
退出
</div>
</div>
</a>
</li>
</ul>
</li>
{{--
<li
class=
"nav-item d-flex align-items-center"
><a
id=
"menu-toggle-right"
class=
"nav-link"
href=
"#"
><i
class=
"fa fa-bars"
></i></a></li>
--}}
{{--
<nav
id=
"sidebar-wrapper"
>
--}}
{{--
<div
class=
"sidebar-nav"
>
--}}
{{--
<div
class=
"tab"
role=
"tabpanel"
>
--}}
{{--
<ul
class=
"nav nav-tabs"
role=
"tablist"
>
--}}
{{--
<li
class=
"nav-item "
>
--}}
{{--
<a
class=
"nav-link active"
href=
"#live"
role=
"tab"
data-toggle=
"tab"
><i
class=
"fa fa-globe"
></i>
Live
</a>
--}}
{{--
</li>
--}}
{{--
<li
class=
"nav-item"
>
--}}
{{--
<a
class=
"nav-link"
href=
"#trend"
role=
"tab"
data-toggle=
"tab"
><i
class=
"fa fa-rocket"
></i>
Trending
</a>
--}}
{{--
</li>
--}}
{{--
</ul>
--}}
{{--
<div
class=
"tab-content tabs"
>
--}}
{{--
<div
role=
"tabpanel"
class=
"tab-pane fade show active"
id=
"live"
>
--}}
{{--
<h3>
Connect Live
</h3>
--}}
{{--
<div
class=
"content newsf-list"
>
--}}
{{--
<ul
class=
"list-unstyled"
>
--}}
{{--
<li
class=
"border border-primary"
>
--}}
{{--
<a
rel=
"nofollow "
href=
"#"
class=
" d-flex"
>
--}}
{{--
<div
class=
"news-f-img"
>
<img
src=
" {{ asset('xadmin/img/avatar-2.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h6
class=
"h5 msg-nav-h6"
>
New Innovation world
</h6>
--}}
{{--
<small>
Tech soft is great innovation for...
</small>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li
class=
"border border-success"
>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
" d-flex"
>
--}}
{{--
<div
class=
"news-f-img"
>
<img
src=
" {{ asset('xadmin/img/avatar-3.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h6
class=
"h5 msg-nav-h6"
>
Modified hand-cart
</h6>
--}}
{{--
<small>
The idea is to incorporate easy...
</small>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li
class=
"border border-info"
>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
" d-flex"
>
--}}
{{--
<div
class=
"news-f-img"
>
<img
src=
" {{ asset('xadmin/img/avatar-4.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h6
class=
"h5 msg-nav-h6"
>
Low cost Modern printer
</h6>
--}}
{{--
<small>
A dot matrix printer modified at...
</small>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li
class=
"border border-primary"
>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
" d-flex"
>
--}}
{{--
<div
class=
"news-f-img"
>
<img
src=
" {{ asset('xadmin/img/avatar-1.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h6
class=
"h5 msg-nav-h6"
>
Low cost Modern printer
</h6>
--}}
{{--
<small>
A dot matrix printer modified at...
</small>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li
class=
"border border-success"
>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
" d-flex"
>
--}}
{{--
<div
class=
"news-f-img"
>
<img
src=
" {{ asset('xadmin/img/avatar-2.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h6
class=
"h5 msg-nav-h6"
>
Low cost Modern printer
</h6>
--}}
{{--
<small>
A dot matrix printer modified at...
</small>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
<li
class=
"border border-info"
>
--}}
{{--
<a
rel=
"nofollow"
href=
"#"
class=
" d-flex"
>
--}}
{{--
<div
class=
"news-f-img"
>
<img
src=
" {{ asset('xadmin/img/avatar-3.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
--}}
{{--
<div
class=
"msg-body"
>
--}}
{{--
<h6
class=
"h5 msg-nav-h6"
>
Low cost Modern printer
</h6>
--}}
{{--
<small>
A dot matrix printer modified at...
</small>
--}}
{{--
</div>
--}}
{{--
</a>
--}}
{{--
</li>
--}}
{{--
</ul>
--}}
{{--
</div>
--}}
{{--
</div>
--}}
{{--
<div
role=
"tabpanel"
class=
"tab-pane fade"
id=
"trend"
>
--}}
{{--
<div
class=
"card card-c2"
style=
"box-shadow: 0 0 0;"
>
--}}
{{--
<div
class=
"header"
>
--}}
{{--
<h3
class=
"title"
>
Trending Items
</h3>
--}}
{{--
<p
class=
"category"
>
Last Campaign Performance
</p>
--}}
{{--
</div>
--}}
{{--
<div
class=
"content"
>
--}}
{{--
<canvas
class=
"ct-chart"
id=
"myChart4"
height=
"250"
></canvas>
--}}
{{--
<div
class=
"footer"
>
--}}
{{--
<div
class=
"legend"
>
--}}
{{--
<i
class=
"fa fa-circle text-info"
></i>
Open--}}
{{--
<i
class=
"fa fa-circle text-danger"
></i>
Bounce--}}
{{--
<i
class=
"fa fa-circle text-warning"
></i>
Unsubscribe--}}
{{--
</div>
--}}
{{--
<hr>
--}}
{{--
<div
class=
"stats"
>
--}}
{{--
<i
class=
"fa fa-clock-o"
></i>
Campaign sent 2 days ago--}}
{{--
</div>
--}}
{{--
</div>
--}}
{{--
</div>
--}}
{{--
</div>
--}}
{{--
</div>
--}}
{{--
</div>
--}}
{{--
</div>
--}}
{{--
</div>
--}}
{{--
</nav>
--}}
</ul>
</div>
</nav>
</header>
<script
src=
"{{ asset('xadmin/js/language_002.js')}}"
></script>
\ No newline at end of file
resources/views/admin/common_bak/left.blade.php
deleted
100644 → 0
View file @
d69560b6
<!--***** SIDE NAVBAR *****-->
<style>
nav
.side-navbar
ul
a
.choice
{
background
:
linear-gradient
(
to
left
,
#7c8ce4
,
#2196f3
)
!important
;
border-left
:
4px
solid
#7b4397
!important
;
color
:
#fff
!important
;
}
</style>
<nav
class=
"side-navbar"
>
<div
class=
"sidebar-header d-flex align-items-center"
>
<div
class=
"avatar"
><img
src=
" {{ asset('xadmin/img/avatar-1.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
<div
class=
"title"
>
<h1
class=
"h4"
id=
"nav-username"
></h1>
</div>
</div>
<hr>
<!-- Sidebar Navidation Menus-->
<ul
class=
"list-unstyled first"
>
<li><a
href=
"/web/admin"
id=
"home-li"
><i
class=
"icon-home"
></i>
首页
</a></li>
@foreach($top as $key => $item)
<li
class=
""
>
{{--
<a
href=
"index.blade.php2"
><i
class=
"icon-home"
></i>
Home
</a>
--}}
@if(count($item['son'])>0)
<a
href=
"#top{{$key}}"
data-toggle=
"collapse"
>
{{--
<i
class=
""
style=
"font-size:20px;"
></i>
--}}
<i
class=
"iconfont"
>
{!! $item['icon'] !!}
</i>
<cite>
{{$item['name']}}
</cite>
{{--
<cite>
{{trans('index.'.$item['key_name'])}}
</cite>
--}}
{{--
<i
class=
"iconfont nav_right"
>

</i>
--}}
</a>
@else
<a
href=
"#top{{$key}}"
>
{{--
<i
class=
"{{$item['icon']}}"
style=
"font-size:20px;"
></i>
--}}
<i
class=
"icon-home"
></i>
<cite>
{{$item['name']}}
</cite>
{{--
<cite>
{{trans('index.'.$item['key_name'])}}
</cite>
--}}
{{--
<i
class=
"iconfont nav_right"
>

</i>
--}}
</a>
@endif
@if(count($item['son'])>0)
<ul
id=
"top{{$key}}"
class=
"second collapse list-unstyled"
>
@foreach($item['son'] as $k => $child_item)
@if($child_item['show'] == 1)
<li
class=
"{{parse_custom_str($child_item['link'])}}"
>
<a
href=
"{{get_prefix().$child_item['link']}}"
>
{{--
<i
class=
"iconfont"
>

</i>
--}}
<cite>
{{$child_item['name']}}
</cite>
{{--
<cite>
{{ trans('index.'.$child_item['key_name']) }}
</cite>
--}}
</a>
</li>
@endif
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
</nav>
<script>
$
(
'nav.side-navbar ul li'
).
removeClass
(
'active'
);
var
current_url
=
window
.
location
.
pathname
;
var
li_arr
=
$
(
'nav.side-navbar ul.second > li'
);
var
urlexist
=
false
;
for
(
var
i
=
0
;
i
<
li_arr
.
length
;
i
++
)
{
//console.log($(li_arr[i]).attr('class'))
// console.log('get_prefix()',"{{get_prefix()}}"+$(li_arr[i]).attr('class')+current_url)
if
(
"{{get_prefix()}}"
+
"/"
+
$
(
li_arr
[
i
]).
attr
(
'class'
)
==
current_url
)
{
urlexist
=
true
;
$
.
cookie
(
'previous_url'
,
$
(
li_arr
[
i
]).
attr
(
'class'
).
substr
(
$
(
li_arr
[
i
]).
attr
(
'class'
).
lastIndexOf
(
"/"
)
+
1
));
if
(
urlexist
)
{
//console.log("$(li_arr[i]).attr('class') parent",$(li_arr[i]).parent().parent().addClass('active'))
//设置选中侧边栏背景颜色,即ul.first li背景颜色
$
(
li_arr
[
i
]).
parent
().
parent
().
addClass
(
'active'
);
//设置选中侧边箭头朝下,即ul.first > a 属性aria-expanded=true
$
(
li_arr
[
i
]).
parent
().
parent
().
children
(
"a:eq(0)"
).
attr
(
'aria-expanded'
,
true
);
//设置选中侧边展开
$
(
li_arr
[
i
]).
parent
().
addClass
(
'show'
);
//设置选择项颜色
$
(
li_arr
[
i
]).
children
(
"a:eq(0)"
).
addClass
(
'choice'
);
console
.
log
(
'$(li_arr[i])'
,
$
(
li_arr
[
i
]))
}
}
}
if
(
!
urlexist
)
{
previous_url
=
$
.
cookie
(
'previous_url'
);
$
(
'nav.side-navbar ul li.'
+
previous_url
+
''
).
parent
().
parent
().
addClass
(
'active'
);
$
(
'nav.side-navbar ul li.'
+
previous_url
+
''
).
parent
().
parent
().
children
(
"a:eq(0)"
).
attr
(
'aria-expanded'
,
true
);
$
(
'nav.side-navbar ul li.'
+
previous_url
+
''
).
parent
().
addClass
(
'show'
);
$
(
'nav.side-navbar ul li.'
+
previous_url
+
''
).
children
(
"a:eq(0)"
).
addClass
(
'choice'
);
}
if
(
current_url
==
'/web/admin'
)
{
$
(
'a'
).
removeClass
(
'choice'
)
$
(
'a'
).
attr
(
'aria-expanded'
,
false
)
$
(
'ul'
).
removeClass
(
'show'
);
$
(
'li'
).
removeClass
(
'active'
);
$
(
'#home-li'
).
addClass
(
'choice'
);
}
</script>
resources/views/admin/common_bak/newContent.blade.php
deleted
100644 → 0
View file @
d69560b6
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
<meta
name=
"format-detection"
content=
"telephone=no,email=no"
/>
<meta
name=
"apple-touch-fullscreen"
content=
"yes"
>
<meta
name=
"App-Config"
content=
"fullscreen=yes,useHistoryState=yes,transition=yes"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=8"
>
<meta
http-equiv=
"Expires"
content=
"0"
>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
>
<meta
http-equiv=
"Cache-control"
content=
"no-cache"
>
<meta
http-equiv=
"Cache"
content=
"no-cache"
>
<title>
{{$content->title}}
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('js/videojs/css/video-js.min.css')}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/base.css')}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/slider.css')}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/layout.css')}}"
>
<style
type=
'text/css'
>
body
img
{
width
:
100%
;
background
:
#ffffff
;}
.mnews
font
,
.mnews
p
{
font-size
:
18px
;
}
.news_video
{
width
:
100%
;
height
:
10rem
;
position
:
relative
;
margin-bottom
:
1.5rem
;}
.news_video
.img
{
width
:
100%
;
height
:
10rem
;
position
:
absolute
;
left
:
0
;
top
:
0
;
z-index
:
20
;
display
:
block
;
}
.news_video
img
{
width
:
100%
;
height
:
100%
;}
.news_video
.video
{
width
:
100%
;
height
:
10rem
;
position
:
absolute
;
left
:
0
;
top
:
0
;
z-index
:
10
;}
.news_video
video
{
width
:
100%
;
height
:
10rem
;}
</style>
<style
type=
"text/css"
>
font
{
color
:
#000000
;
}
img
{
height
:
auto
;
width
:
auto
\
9
;
width
:
100%
;
text-align
:
center
;
}
</style>
<script
src=
"{{URL::asset('js/zepto.js')}}"
></script>
<script
src=
"{{URL::asset('js/slider.js')}}"
></script>
<script
src=
"{{URL::asset('js/videojs/js/video.min.js')}}"
></script>
<script
src=
"{{URL::asset('js/videojs/js/zh-CN.js')}}"
></script>
<script
src=
"{{URL::asset('js/videojs/js/videojs-ie8.min.js')}}"
></script>
<script
src=
"{{URL::asset('js/videojs/js/videojs.hotkeys.min.js')}}"
></script>
<script
type=
"text/javascript"
src=
"{{ asset('js/jquery.min.js') }}"
></script>
<script
src=
"{{ asset('lib/layui/layui.js')}}"
charset=
"utf-8"
></script>
</head>
<body
style=
"background-color: #ffffff;"
>
<div
id=
"wrap"
>
<header
id=
"head"
>
{{--
<div
class=
"mobileTop clearfix"
>
<p
class=
"m_logo"
><img
src=
"{{URL::asset('images/m_logo.png')}}"
/></p>
<p
class=
"portal_app"
>
<span>
红枸杞
</span>
<font>
<!--宁夏本地门户类APP--><!--宁夏广播电视台门户APP-->
宁夏广播电视台新闻客户端
</font>
</p>
<a
href=
"javascript:void(0);"
class=
"goDownload"
>
下载
</a>
</div>
--}}
</header>
<div
id=
"content"
>
<div
class=
"mnews"
style=
"background-color: #ffffff;"
>
<h3
style=
"font-size: 18px ;text-align: left"
>
{{$content->title}}
</h3>
<font
style=
"font-size: 18px ; text-align: left"
>
来源:{{$content->origin}} {{$content->new_datetime}}
</font>
@if($content->intro != '')
<p
class=
"content_p"
style=
"padding:8px;font-size: 18px;font:#000000;background-color: #EAEAEA;"
style=
"text-indent:2em;"
>
简介:{{$content->intro}}
</p>
@endif
@if(trim($content->video_pic) !='')
<video
id=
"my-video"
class=
"video-js vjs-big-play-centered vjs-fluid"
controls
preload=
"auto"
width=
"640px"
height=
"360px"
poster=
"{{$content->y_video_pic}}"
data-setup=
"{'aspectRatio':'640:360','techOrder': ['html5', 'flash']}"
>
<source
src=
"{{$content->video_url}}"
type=
"video/mp4"
>
<source
src=
"{{$content->video_url}}"
type=
"application/x-mpegURL"
>
<p
class=
"vjs-no-js"
>
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a
href=
"http://videojs.com/html5-video-support/"
target=
"_blank"
>
supports HTML5 video
</a>
</p>
</video>
<script
type=
"text/javascript"
>
videojs
(
"my-video"
).
ready
(
function
(){
var
myPlayer
=
this
;
myPlayer
.
play
();
this
.
hotkeys
({
volumeStep
:
0.1
,
seekStep
:
5
,
enableVolumeScroll
:
false
,
//禁用鼠标滚轮调节问音量大小
enableModifiersForNumbers
:
false
});
});
</script>
@endif
<p
class=
"content_p"
style=
"font-size: 18px;font:#000000;"
style=
"text-indent:2em;"
>
{!! $content->body !!}
</p>
<p
style=
"text-indent:2em;"
>
</p>
{{--
<p
style=
"text-indent:2em;"
>
<br
/>
</p></p>
--}}
<!--<p class="content_p">浏览量:6476</p>-->
</div>
</div>
<footer
id=
"foot"
></footer>
<!--微信入口判断-->
<div
class=
"weixin_pop androidweixin"
style=
"display:none"
onclick=
""
>
<div
class=
'tip top2bottom clearfix'
>
<img
src=
"{{URL::asset('images/pointer_android_up.png')}}"
>
<div
class=
"wechat_text"
>
请点击右上角图示按钮, 选择“
<span>
在浏览器中打开
</span>
”,然后进行下载。
</div>
</div>
</div>
<div
class=
"weixin_pop iosweixin"
style=
"display:none"
onclick=
""
>
<div
class=
'tip top2bottom clearfix'
>
<img
src=
"{{URL::asset('images/pointer_ios_up.png')}}"
>
<div
class=
"wechat_text"
>
请点击右上角图示按钮, 选择“
<span>
在Safari中打开
</span>
”,然后进行下载。
</div>
</div>
</div>
</div>
<script>
(
function
(
doc
,
win
)
{
var
docEl
=
doc
.
documentElement
,
//根元素html
//判断窗口有没有orientationchange这个方法,有就赋值给一个变量,没有就返回resize方法。
resizeEvt
=
'orientationchange'
in
window
?
'orientationchange'
:
'resize'
,
recalc
=
function
()
{
var
clientWidth
=
docEl
.
clientWidth
;
if
(
!
clientWidth
)
return
;
//把document的fontSize大小设置成跟窗口成一定比例的大小,从而实现响应式效果。
docEl
.
style
.
fontSize
=
20
*
(
clientWidth
/
320
)
+
'px'
;
};
if
(
!
doc
.
addEventListener
)
return
;
win
.
addEventListener
(
resizeEvt
,
recalc
,
false
);
//addEventListener事件方法接受三个参数:第一个是事件名称比如点击事件onclick,第二个是要执行的函数,第三个是布尔值
doc
.
addEventListener
(
'DOMContentLoaded'
,
recalc
,
false
);
//绑定浏览器缩放与加载时间
})(
document
,
window
);
</script>
<script
src=
" {{URL::asset('js/common.js')}}"
></script>
<script
src=
"{{URL::asset('js/mobile.js')}}"
></script>
<script
type=
"text/javascript"
>
//判断浏览器下载
$
(
function
()
{
//浏览器判断
var
browser
=
{
versions
:
function
(){
var
u
=
navigator
.
userAgent
,
app
=
navigator
.
appVersion
;
return
{
//移动终端浏览器版本信息
trident
:
u
.
indexOf
(
'Trident'
)
>
-
1
,
//IE内核
presto
:
u
.
indexOf
(
'Presto'
)
>
-
1
,
//opera内核
webKit
:
u
.
indexOf
(
'AppleWebKit'
)
>
-
1
,
//苹果、谷歌内核
gecko
:
u
.
indexOf
(
'Gecko'
)
>
-
1
&&
u
.
indexOf
(
'KHTML'
)
==
-
1
,
//火狐内核
mobile
:
!!
u
.
match
(
/AppleWebKit.*Mobile.*/
)
||!!
u
.
match
(
/AppleWebKit/
),
//是否为移动终端
ios
:
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
),
//ios终端
android
:
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
,
//android终端或者uc浏览器
iPhone
:
u
.
indexOf
(
'iPhone'
)
>
-
1
||
u
.
indexOf
(
'Mac'
)
>
-
1
,
//是否为iPhone或者QQHD浏览器
iPad
:
u
.
indexOf
(
'iPad'
)
>
-
1
,
//是否iPad
webApp
:
u
.
indexOf
(
'Safari'
)
==
-
1
,
//是否web应该程序,没有头部与底部
weiXin
:
u
.
indexOf
(
'MicroMessenger'
)
>
-
1
,
QQ
:
u
.
indexOf
(
'QQ'
)
>
-
1
};
}(),
language
:(
navigator
.
browserLanguage
||
navigator
.
language
).
toLowerCase
()
}
//判断浏览器下载
$
(
".goDownload,.down_but"
).
on
(
"click"
,
function
(){
if
(
browser
.
versions
.
iPhone
||
browser
.
versions
.
iPad
||
browser
.
versions
.
ios
){
//alert("https://itunes.apple.com/us/app/hong-gou-qi/id790073439?l=zh&ls=1&mt=8");return;
if
(
browser
.
versions
.
weiXin
){
$
(
".iosweixin"
).
show
();
}
else
if
(
browser
.
versions
.
QQ
){
$
(
".iosweixin"
).
show
();
}
else
{
location
.
href
=
"https://itunes.apple.com/us/app/hong-gou-qi/id790073439?l=zh&ls=1&mt=8"
;
}
}
else
if
(
browser
.
versions
.
android
){
//alert("http://video.sinosns.cn/nxtv/V3_2_3.apk");return;
if
(
browser
.
versions
.
weiXin
){
$
(
".androidweixin"
).
show
();
}
else
{
location
.
href
=
"http://video.sinosns.cn/nxtv/V3_2_3.apk"
;
}
}
else
{
//alert("123");return;
location
.
href
=
"http://video.sinosns.cn/nxtv/V3_2_3.apk"
;
}
})
$
(
".androidweixin,.iosweixin"
).
on
(
"click"
,
function
(
e
){
$
(
this
).
hide
();
})
})
/* var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fab8ab62edab2a66f3b4358c4adbd08c0' type='text/javascript'%3E%3C/script%3E"));
*/
liulan
();
//浏览统计
function
liulan
(){
var
id
=
{{
$content
->
id
}};
$
.
ajax
({
type
:
"POST"
,
url
:
"{{URL::asset('/api/mobile/set_newsViewCount')}}"
,
data
:{
'id'
:
id
},
dataType
:
"JSON"
,
success
:
function
(
data
){
//alert(data);
}
});
}
//var myChart = document.getElementById("news_img");
//alert(dom);
//var myChart = echarts.init(dom);
function
setupWebViewJavascriptBridge
(
callback
)
{
if
(
window
.
WebViewJavascriptBridge
)
{
callback
(
WebViewJavascriptBridge
)
}
else
{
document
.
addEventListener
(
'WebViewJavascriptBridgeReady'
,
function
()
{
callback
(
WebViewJavascriptBridge
)
},
false
);
}
// =====以下是iOS必须的特殊处理========
if
(
window
.
WVJBCallbacks
)
{
return
window
.
WVJBCallbacks
.
push
(
callback
);
}
window
.
WVJBCallbacks
=
[
callback
];
var
WVJBIframe
=
document
.
createElement
(
'iframe'
);
WVJBIframe
.
style
.
display
=
'none'
;
WVJBIframe
.
src
=
'wvjbscheme://__BRIDGE_LOADED__'
;
document
.
documentElement
.
appendChild
(
WVJBIframe
);
setTimeout
(
function
()
{
document
.
documentElement
.
removeChild
(
WVJBIframe
)
},
0
);
// =====以上是iOS必须的特殊处理========
}
$
(
"#news_video"
).
on
(
"click"
,
function
(
params
){
//alert(params);
//alert(1);
// 注意:abc是html跟iOS和安卓定义好的一个名字,后面的{}里面是传过去的参数,用这个上面必须得引用header的一堆关于webviewjavascript的js
setupWebViewJavascriptBridge
(
function
(
bridge
)
{
bridge
.
callHandler
(
'interactive'
,
{
'video_url'
:
'{{$content->video_url}}'
},
function
responseCallback
(
responseData
)
{
console
.
log
(
"OC中返回的参数:"
,
responseData
)
});
})
});
</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