init
This commit is contained in:
514
app/mobile/view/tops_nas/index.phtml
Executable file
514
app/mobile/view/tops_nas/index.phtml
Executable file
@@ -0,0 +1,514 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>元创官网</title>
|
||||
{include file='include/head-nas'/}
|
||||
<style type="text/css">
|
||||
.header {
|
||||
color: #000;
|
||||
}
|
||||
.narsMBpage {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.narsMBpage .narsMB-banner {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-cate {
|
||||
margin-top: 2.8125rem;
|
||||
margin: 0 0.4375rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-cate .narsmbcatetop,
|
||||
.narsMBpage .narsmb-cate .narsmbcate-it {
|
||||
background: transparent;
|
||||
color: #000;
|
||||
border-radius: 0.3125rem;
|
||||
/*height: 6.8rem;*/
|
||||
width: 100%;
|
||||
line-height: 1rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: bold;
|
||||
/*margin-top: 2.8125rem;
|
||||
display: flex;*/
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-cate .narsmbcatetop,
|
||||
.narsMBpage .narsmb-cate .narsmbcate-it .narsmbcate-sp span:last-child{
|
||||
font-size: 0.5625rem;
|
||||
padding-top:5px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-cate .narsmbcateits {
|
||||
/*height: 5.8125rem;*/
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
/*margin-bottom: 0.4375rem;*/
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-cate .narsmbcateits .narsmbcate-it {
|
||||
width: 49%;
|
||||
margin-top: 0.4375rem;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-cate .narsmbcate-sp {
|
||||
margin: 0 0.75rem;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmbvd {
|
||||
width: 100%;
|
||||
/*height: 14.5625rem;*/
|
||||
margin-top: 2.5rem;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmbvd .narsmbvideo {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: fill;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa .narsmbjjfa-title {
|
||||
text-align: center;
|
||||
font-size: 1.6875rem;
|
||||
font-weight: bold;
|
||||
padding-top: 2.0625rem;
|
||||
padding-bottom: 1.3125rem;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa .narsmbjjfaSwiper {
|
||||
margin-left: 0.4375rem;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa .narsmbjjfa-slide {
|
||||
width: 10rem;
|
||||
height: 18.375rem;
|
||||
border-radius: 0.125rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa .narsmbjjfa-slide .narsmb-jjfa-ct {
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
line-height: 2.5rem;
|
||||
height: 2.5rem;
|
||||
background:#004BFA;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa .narsmbjjfa-slide .narsmb-jjfa-info {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 18.375rem;
|
||||
padding: 0 1.3rem;
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
border-radius: 0.125rem;
|
||||
z-index: 11;
|
||||
background: linear-gradient( 90deg, #CDD9F1 0%, #ECF2FE 100%);
|
||||
overflow-y: hidden;
|
||||
color: #9196A5;
|
||||
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa .narsmbjjfa-slide .narsmb-jjfa-info .narsmbjjfatt {
|
||||
width: 100%;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 1.6875rem;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa .narsmbjjfa-slide .narsmb-jjfa-info .narsmbjjfa-txt {
|
||||
font-size: 0.75rem;
|
||||
line-height: 1rem;
|
||||
text-indent: 2em;
|
||||
}
|
||||
|
||||
.narsMBpage .narsmb-jjfa .narsmb-jjfabgimg {
|
||||
width: 100%;
|
||||
height: 18.375rem;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.narsmb-wlj {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwlj-title {
|
||||
text-align: center;
|
||||
font-size: 1.6875rem;
|
||||
font-weight: bold;
|
||||
padding-top: 2.0625rem;
|
||||
padding-bottom: 1.3125rem;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem {
|
||||
margin: 0 0.4375rem;
|
||||
/*height: 9.0625rem;*/
|
||||
background: #ecf2fe;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.5rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcp {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
/*justify-content: center;*/
|
||||
height: inherit;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcp .narsmbtt {
|
||||
font-size: 1.0625rem;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
width: 35.5rem;
|
||||
text-align: center;
|
||||
margin-left: 35%;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcp .narsmbwljimg {
|
||||
height: inherit;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcpinfo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
flex: 1;
|
||||
margin: 0 1.25rem;
|
||||
padding: 0 0.75rem;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcpinfo .narsmbif-title {
|
||||
font-weight: bold;
|
||||
font-size: 1.0625rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcpinfo .narsmbif-info {
|
||||
font-size: 0.625rem;
|
||||
line-height: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 640px) {
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcpinfo .narsmbif-title {
|
||||
font-weight: bold;
|
||||
font-size: 1.25rem;
|
||||
padding-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcpinfo .narsmbif-info {
|
||||
font-size: 0.65rem;
|
||||
line-height: 0.875rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcpinfo .narsmbwlj-xzbt {
|
||||
width: 7.25rem;
|
||||
height: 2.1875rem;
|
||||
border-radius: 3.25rem;
|
||||
line-height: 2.1875rem;
|
||||
border: 1px solid #ffffff;
|
||||
font-size: 0.875rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
margin: 0 1.25rem;
|
||||
}
|
||||
|
||||
.narsmb-wlj .narsmbwltitem .narsmbwljcpinfo .narsmbtt {
|
||||
font-size: 1.0625rem;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.narsMBbannerSwiper {
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
.narsMB-banner .swiper-slide {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.narsMB-banner-st {
|
||||
position: absolute;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
color: #07111C;
|
||||
}
|
||||
.narsMB-banner-st h2{
|
||||
margin: 0 auto;
|
||||
font-size: 1.4rem;
|
||||
padding-top: 2.8rem;
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
.narsMB-banner-st .narsMB-bannersm {
|
||||
font-size: 1rem;
|
||||
font-size: 0.875rem;
|
||||
color: #82898F;
|
||||
}
|
||||
.narsMB-banner .swiper-container-horizontal>.swiper-pagination-bullets{
|
||||
bottom:50px;
|
||||
}
|
||||
.narsMB-banner .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet{
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 0 5px;
|
||||
outline: 0;
|
||||
}
|
||||
.narsMB-banner .swiper-pagination-bullet-active {
|
||||
background: #004bfa !important;
|
||||
width: 20px!important;
|
||||
height: 10px!important;
|
||||
border-radius: 5px!important;
|
||||
}
|
||||
/* 针对小屏幕平板电脑的样式 */
|
||||
@media screen and (min-width: 400px) and (max-width: 660px) {
|
||||
.narsMBpage .narsmb-cate .narsmbcatetop, .narsMBpage .narsmb-cate .narsmbcate-it {
|
||||
/*height: 8.8rem;*/
|
||||
}
|
||||
.narsmbcate-sp span:first-child{
|
||||
font-size: 1.125rem!important;
|
||||
padding-bottom: 0.3125rem;
|
||||
}
|
||||
.narsmbcate-sp span:last-child{
|
||||
font-size: 0.875rem !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 661px) and (max-width: 991px) {
|
||||
.narsMBpage .narsmb-cate .narsmbcatetop, .narsMBpage .narsmb-cate .narsmbcate-it {
|
||||
/*height: 10.8rem;*/
|
||||
}
|
||||
.narsmbcate-sp span:first-child{
|
||||
font-size: 1rem !important;
|
||||
padding-bottom: 0.3125rem;
|
||||
}
|
||||
.narsmbcate-sp span:last-child{
|
||||
font-size: 0.75rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{include file='include/top_nas'/}
|
||||
<!--nars 手机 -->
|
||||
<div class="narsMBpage">
|
||||
<!--轮播 banner-->
|
||||
<div class="narsMB-banner">
|
||||
<div class="swiper-container narsMBbannerSwiper">
|
||||
<div class="swiper-wrapper">
|
||||
{volist name='data.swiper.banners' id='vo'}
|
||||
<div class="swiper-slide" onclick="location.href='{$vo.link}'">
|
||||
<div class="narsMB-banner-st">
|
||||
<h2 style="white-space:pre-line;color:{$vo.alt|default='#000'};">{$vo.name}</h2>
|
||||
<span class="narsMB-bannersm" style="white-space:pre-line;color:{$vo.desc_color|default='#82898F'};">{$vo.desc}</span>
|
||||
</div>
|
||||
<img src="{$vo.picture|getImage}" onclick="location.href='{$vo.link}'" alt="" class="narsmb-img" />
|
||||
</div>
|
||||
{/volist}
|
||||
</div>
|
||||
<!-- Add Pagination -->
|
||||
<div class="swiper-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 九大模块分类-->
|
||||
<div class="narsmb-cate">
|
||||
<a class="narsmbcatetop" href="{$data.product.banners[0]['link']}" >
|
||||
<img src="{$data.product.banners[0]['picture']|getImage}" style="width:100%"/>
|
||||
|
||||
</a>
|
||||
<div class="narsmbcateits">
|
||||
<a class="narsmbcate-it" href="{$data.product.banners[1]['link']}">
|
||||
<img src="{$data.product.banners[1]['picture']|getImage}" style="width:100%"/>
|
||||
|
||||
</a>
|
||||
<a class="narsmbcate-it" href="{$data.product.banners[2]['link']}">
|
||||
<img src="{$data.product.banners[2]['picture']|getImage}" style="width:100%"/>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div class="narsmbcateits">
|
||||
<a class="narsmbcate-it" href="{$data.product.banners[3]['link']}">
|
||||
<img src="{$data.product.banners[3]['picture']|getImage}" style="width:100%"/>
|
||||
|
||||
</a>
|
||||
<a class="narsmbcate-it" href="{$data.product.banners[4]['link']}">
|
||||
<img src="{$data.product.banners[4]['picture']|getImage}" style="width:100%"/>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div class="narsmbcateits">
|
||||
<a class="narsmbcate-it" href="{$data.product.banners[5]['link']}">
|
||||
<img src="{$data.product.banners[5]['picture']|getImage}" style="width:100%"/>
|
||||
|
||||
</a>
|
||||
<a class="narsmbcate-it" href="{$data.product.banners[6]['link']}">
|
||||
<img src="{$data.product.banners[6]['picture']|getImage}" style="width:100%"/>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div class="narsmbcateits">
|
||||
<a class="narsmbcate-it" href="{$data.product.banners[7]['link']}">
|
||||
<img src="{$data.product.banners[7]['picture']|getImage}" style="width:100%"/>
|
||||
</a>
|
||||
<a class="narsmbcate-it" href="{$data.product.banners[8]['link']}">
|
||||
<img src="{$data.product.banners[8]['picture']|getImage}" style="width:100%"/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 视频-->
|
||||
<div class="narsmbvd">
|
||||
<video class="narsmbvideo" poster="{$data.video.banners[0]['picture']|getImage}" controls autoplay loop muted>
|
||||
<source type="video/mp4" src="{$data.video.banners[0]['video_url']}">
|
||||
</video>
|
||||
</div>
|
||||
<!-- 解决方案 -->
|
||||
<div class="narsmb-jjfa">
|
||||
<span class="narsmbjjfa-title"><span style="color:#084BFA">ORICO</span>网络存储解决方案</span>
|
||||
<div class="swiper narsmbjjfaSwiper">
|
||||
<div class="swiper-wrapper">
|
||||
{volist name='data.plan.banners' id='vo'}
|
||||
<div class="swiper-slide narsmbjjfa-slide">
|
||||
<div class="narsmb-jjfa-ct" style="color:{$vo.alt|default='#000'}">{$vo.name}</div>
|
||||
<img src="{$vo.picture|getImage}" class="narsmb-jjfabgimg" />
|
||||
<!-- 点击移入效果-->
|
||||
<div class="narsmb-jjfa-info" style="text-align:left;white-space:pre-line;color:{$vo.desc_color|default='#fff'}">
|
||||
<div style="width:100%;display:flex;flex-direction:column;height:95%;overflow-y:auto;">
|
||||
<span style="font-size: 1rem;padding-bottom:5px;font-weight:bold;padding-top: 1.4rem;">{$vo.name}</span>
|
||||
<span style="font-size:0.625rem;">{$vo.desc}</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
</div>
|
||||
<!-- <div class="swiper-pagination"></div> -->
|
||||
</div>
|
||||
</div>
|
||||
<!--微链接 -->
|
||||
<div class="narsmb-wlj">
|
||||
<span class="narsmbwlj-title"><span style="color:#084BFA">Weline</span> 微链接</span>
|
||||
{volist name='data.weline.banners' id='vo'}
|
||||
<div class="narsmbwltitem">
|
||||
<div class="narsmbwljcp">
|
||||
<img src="{$vo.picture|getImage}" class="narsmbwljimg" />
|
||||
</div>
|
||||
<div class="narsmbwljcpinfo">
|
||||
<span class="narsmbif-title" style="color:{$vo.alt|default='#fff'}">{$vo.name}</span>
|
||||
<span class="narsmbif-info" style="white-space:pre-line;color:{$vo.desc_color|default='#fff'}">{$vo.desc}</span>
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
{volist name='data.download.banners' id='vo'}
|
||||
<div class="narsmbwltitem" style="height:auto;">
|
||||
<div class="narsmbwljcp" style="width: 50%;color: {$vo.alt|default='#fff'}">
|
||||
{if condition="!empty($vo.picture)"}
|
||||
<img src="{$vo.picture|getImage}" class="narsmbwljimg" style="width:100%"/>
|
||||
{else}
|
||||
<span class="narsmbtt">{$vo.name}</span>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
<div class="narsmbwljcpinfo" style="width: 50%;">
|
||||
{assign name='download_color' value="$vo.alt|default='#fff'" /}
|
||||
{assign name='download_background' value="$vo.btn_color|default='#131b28'" /}
|
||||
<a
|
||||
class="narsmbwlj-xzbt"
|
||||
href="{$vo.link}"
|
||||
style="background:{$download_background};color:{$download_color};border-color:{$download_color}"
|
||||
>
|
||||
下载
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/volist}
|
||||
</div>
|
||||
{include file='include/bottom1'/}
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
// banner轮播
|
||||
var swiper = new Swiper(".narsMBbannerSwiper", {
|
||||
pagination: '.swiper-pagination',
|
||||
paginationClickable: true,
|
||||
spaceBetween: 30,
|
||||
centeredSlides: true,
|
||||
autoplay: 5000,
|
||||
autoplayDisableOnInteraction: false,
|
||||
loop: true
|
||||
});
|
||||
|
||||
// 解决方案轮播
|
||||
var swiper1 = new Swiper(".narsmbjjfaSwiper", {
|
||||
slidesPerView: "auto",
|
||||
spaceBetween: 6,
|
||||
freeMode: true,
|
||||
autoplay: 5000,
|
||||
|
||||
loop: true
|
||||
});
|
||||
// 解决方案轮播点击显示文案
|
||||
var swiperSlides = document.querySelectorAll('.narsmbjjfa-slide');
|
||||
// 为每个 swiper-slide 添加点击事件
|
||||
swiperSlides.forEach(function(slide) {
|
||||
slide.addEventListener('click', function() {
|
||||
var infoElement = this.querySelector('.narsmb-jjfa-info');
|
||||
if (window.getComputedStyle(infoElement).display === 'none') {
|
||||
infoElement.style.display = 'flex';
|
||||
swiper1.stopAutoplay()
|
||||
} else {
|
||||
infoElement.style.display = 'none';
|
||||
swiper1.startAutoplay()
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user