Merge branch 'dev' of https://gitea.f2b211.com/jsasg/orico-official-website into dev
This commit is contained in:
@@ -7,7 +7,7 @@ use Detection\MobileDetect;
|
||||
|
||||
$detect = new MobileDetect();
|
||||
$view_device_name = 'pc';
|
||||
if ($detect->isMobile() || $detect->isTablet()) {
|
||||
if ($detect->isMobile() || $detect->isTablet() || request()->get('mtpl') == 1) {
|
||||
$view_device_name = 'mobile';
|
||||
}
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ class Article extends Common
|
||||
'image'
|
||||
])
|
||||
->where('id', '<>', $id)
|
||||
->language($this->lang_id)
|
||||
->order(['release_time' => 'desc', 'id' => 'desc'])
|
||||
->limit(3)
|
||||
->select();
|
||||
|
||||
@@ -18,6 +18,13 @@
|
||||
<script type="text/javascript" src="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/before-after.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/large.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(window).ready(function() {
|
||||
if ($(window).width() < 1024) {
|
||||
window.location.href = '?mtpl=1';
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
{block name="header"}
|
||||
|
||||
Reference in New Issue
Block a user