Files
orico-official-website-old/app/mobile/view/tops_nas/guide.phtml

596 lines
21 KiB
PHTML
Executable File

<!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">
.narsjswdMbPage {
width: 100%;
height: 100%;
position: relative;
background: #f5f5f5;
overflow: hidden;
}
.narsjswdMbPage .narsjswdMbmain {
width: 100%;
height: 100%;
position: relative;
background: #f5f5f5;
overflow-y: auto;
}
.narsjswdMbPage .narsjswd-mbsearch {
width: 100%;
height: 11.25rem;
display: flex;
align-items: center;
justify-content: center;
background: pink;
}
.narsjswdMbPage .narsjswd-mbsearch .narsjswd-mb-searchdiv {
width: 90%;
background: #fff;
height: 3rem;
line-height: 3rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-radius: 1.5625rem;
}
.narsjswdMbPage .narsjswd-mbsearch .narsjswd-mb-searchdiv .siput {
flex: 1;
font-size: 1rem;
border: none;
margin-left: 1rem;
}
.narsjswdMbPage .narsjswd-mbsearch .narsjswd-mb-searchdiv .siput:focus {
outline: none;
}
.narsjswdMbPage .narsjswd-mbsearch .narsjswd-mb-searchdiv .narsjswdmbico {
margin-right: 1rem;
width: 1.125rem;
height: 1.125rem;
}
.narsjswdMbPage .nars-jswd-sx {
margin: 0 20px;
display: flex;
flex-direction: row;
justify-content: space-between;
margin-top: 1.875rem;
margin-bottom: 0.8125rem;
}
.narsjswdMbPage .nars-jswd-sx .sxtitle {
color: #000;
font-size: 1rem;
font-weight: bold;
line-height: 2.5rem;
}
.narsjswdMbPage .nars-jswd-sx .sxkuan {
width: 9.25rem;
height: 2.5rem;
border-radius: 0.5rem;
background: #fff;
line-height: 2.5rem;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.narsjswdMbPage .nars-jswd-sx .sxkuan .st {
margin-right: 1.125rem;
font-size: 0.875rem;
color: #262626;
margin-left: 1.125rem;
}
.narsjswdMbPage .nars-jswd-sx .sxkuan .sxdownico {
width: 0.875rem;
height: 0.875rem;
margin-right: 0.8125rem;
}
.narsjswdMbPage .narsjswd-mb-bank {
color: #a7a7a7;
font-size: 0.75rem;
margin: 0 1.25rem;
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 0.75rem;
}
.narsjswdMbPage .narsjswd-mb-bank .jswd-banckico {
width: 0.75rem;
height: 0.75rem;
margin-right: 0.25rem;
}
.narsjswdMbPage .narsjswd-mb-list {
margin-top: 1.125rem;
margin: 0 1.25rem;
display: flex;
flex-direction: column;
margin-bottom: 1.25rem;
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item {
background: #fff;
padding: 0.875rem 1rem;
display: flex;
flex-direction: column;
margin-bottom: 1rem;
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item h2 {
color: #1d1d1f;
font-size: 1rem;
padding-bottom: 0.875rem;
line-height: 1.75rem;
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item .jswdmb-xq-title {
border-bottom: 1px solid #e6e6e6;
margin-bottom: 1.25rem;
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item .jswdmb-xq-ct {
font-size: 0.875rem;
color: #333;
/*line-height: 1.5rem;*/
font-weight: 500;
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item .jswdmb-dce {
color: #333335;
font-size: 0.875rem;
line-height: 1.375rem;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding-bottom: 0.875rem;
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item .jswdmb-tags {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item .jswdmb-tags .jswdmb-tag {
font-size: 0.75rem;
padding: 0.25rem 0.625rem;
border: 0.0625rem solid #000;
border-radius: 0.125rem;
margin-right: 0.5rem;
margin-bottom: 0.5rem;
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item .jswdmb-tags .tagmnjswdtype1 {
color: #00c5dd;
border: 0.0625rem solid rgba(0, 197, 221, 0.3);
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item .jswdmb-tags .tagmnjswdtype2 {
color: #056efc;
border: 0.0625rem solid rgba(5, 110, 252, 0.3);
}
.narsjswdMbPage .narsjswd-mb-list .jswdmb-item .jswdmb-tags .tagmnjswdtype3 {
color: #01a3fc;
border: 0.0625rem solid rgba(1, 163, 252, 0.3);
}
.narsjswdMbPage .nars-jswd-mb-dbtk {
width: 100%;
height: 100vh;
position: absolute;
display: none;
top: 0;
background: rgba(0, 0, 0, 0.5);
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main {
width: 100%;
position: fixed;
background: #fff;
height: 90vh;
border-top-right-radius: 2rem;
border-top-left-radius: 2rem;
bottom: 0;
display: flex;
flex-direction: column;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-top {
width: 100%;
padding-top: 0.8125rem;
display: flex;
flex-direction: row;
align-items: center;
position: relative;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-top h1 {
width: 100%;
text-align: center;
font-size: 1rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-top .narsjswdmb-sxclose-ico {
width: 0.8125rem;
height: 0.8125rem;
position: absolute;
right: 1.25rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel {
width: 100%;
height: 81%;
background: #fff;
position: relative;
overflow: hidden;
margin-top: 1.8125rem;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-left {
height: 100%;
width: 4.875rem;
background: #f6f6f6;
overflow-y: auto;
margin-right: 0.5625rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-left .jswdmb-dbtk-leftitem {
width: 4.875rem;
height: 2.5rem;
line-height: 2.5rem;
text-align: center;
color: #000000;
font-size: 0.875rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-left .jswdmb-dbtk-leftitem-active {
background: #fff;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right {
flex: 1;
height: 100%;
position: relative;
overflow: hidden;
overflow-y: auto;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype1 {
width: 100%;
position: relative;
overflow: hidden;
overflow-y: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.625rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype1 .ct1-it {
/*width: 5.5rem;*/
height: 2.125rem;
line-height: 2.125rem;
font-size: 0.8125rem;
border-radius: 0.25rem;
color: #000;
background: #f9f9f9;
text-align: center;
border: 0.0625rem solid #f9f9f9;
padding: 0 10px;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype1 .ct1-it-active {
color: #004bfa;
background: rgba(0, 75, 250, 0.08);
border: 0.0625rem solid rgba(0, 75, 250, 0.3);
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 {
width: 100%;
position: relative;
overflow: hidden;
overflow-y: auto;
height: inherit;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it {
display: flex;
flex-direction: column;
height: auto;
min-height: 1.25rem;
padding-bottom: 1rem;
border-bottom: 0.0625rem solid #f2f2f2;
margin-bottom: 1rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main {
display: flex;
flex-direction: column;
width: 100%;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main .ct2-it-title {
width: 100%;
display: flex;
padding-bottom: 0.75rem;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main .ct2-it-title .ct2left {
display: flex;
flex-direction: row;
align-items: center;
color: #262626;
font-size: 0.875rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main .ct2-it-title .ct2left .checkct2 {
width: 1.125rem;
height: 1.125rem;
margin-right: 0.75rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main .ct2-it-title .ct2-right {
font-size: 0.625rem;
color: #000;
display: flex;
flex-direction: row;
align-items: center;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main .ct2-it-title .ct2-right .narsjswdmb-openico {
width: 0.4375rem;
height: 0.1875rem;
margin-left: 0.25rem;
margin-right: 0.875rem;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main .jswdmbct2-items {
width: 100%;
position: relative;
overflow: hidden;
overflow-y: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.625rem;
display: none;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main .jswdmbct2-items .ct2-it {
width: 5.5rem;
height: 2.125rem;
line-height: 2.125rem;
font-size: 0.8125rem;
border-radius: 0.25rem;
color: #000;
background: #f9f9f9;
text-align: center;
padding-bottom: 0;
margin-bottom: 0;
border: 0.0625rem solid #f9f9f9;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-dbtk-midel .jswdmb-dbtk-right .jswdmb-dbtk-cttype2 .ct2-it .ct2-it-main .jswdmbct2-items .ct2-it-active {
color: #004bfa;
background: rgba(0, 75, 250, 0.08);
border: 0.0625rem solid rgba(0, 75, 250, 0.3);
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-bts {
height: 7%;
align-items: center;
display: flex;
justify-content: space-between;
position: fixed;
bottom: 1.5%;
left: 6%;
right: 6%;
align-items: center;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-bts .jswdmb-bt {
padding: 0.5625rem 0;
color: #fff;
font-size: 0.875rem;
border-radius: 0.25rem;
text-align: center;
width: 45%;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-bts .jswdmb-bt-right {
background: #97E6FF;
}
.narsjswdMbPage .nars-jswd-mb-dbtk .nars-jswdmb-dbtk-main .jswdmb-bts .jswdmb-bt-left {
background: #004BFA;
}
.hide {
display: none !important;
}
.jswdmb-xq-ct img{ width:100%; text-align:center;}
</style>
</head>
<body>
{include file='include/top_nas'/}
<!-- 技术文档app端-->
<div class="narsjswdMbPage">
<div class="narsjswdMbmain">
<!--搜索 -->
<div class="narsjswd-mbsearch"
style="background: url(__PUBLIC__/m_web/images/nas/guide/narsjswdmb-bg-ico.png);background-size: 100% 100%;background-repeat: no-repeat;">
<div class="narsjswd-mb-searchdiv">
<form action="">
<input name="keywords" placeholder="搜索帮助" class="siput" />
</form>
<img src="__PUBLIC__/m_web/images/nas/guide/narsjswdmbico.png" class="narsjswdmbico" />
</div>
</div>
<!-- 筛选 -->
<div class="nars-jswd-sx">
<div class="sxtitle">技术文档</div>
<div class="sxkuan">
<div class="st">筛选</div>
<img src="__PUBLIC__/m_web/images/nas/guide/narsjswdmb-sx-ico.png" class="sxdownico" />
</div>
</div>
<!-- 返回 -->
<div>
<span class="narsjswd-mb-bank history-back">
<img src="__PUBLIC__/m_web/images/nas/guide/narsjswdmb-banckico.png" class="jswd-banckico" />
<span>返回</span>
</span>
</div>
<!--文章列表-->
<div class="narsjswd-mb-list article-list">
{volist name='list' id='vo'}
<div class="jswdmb-item">
<h2>{$vo.name}</h2>
<span class="jswdmb-dce">{$vo.description}</span>
<div class="jswdmb-tags">
{volist name='vo.product_series' id='ps' key='key'}
<?php $t = $key % 3;?>
<div class="jswdmb-tag tagmnjswdtype{$t == 0 ? 3 : $t}">{$ps}</div>
{/volist}
</div>
</div>
{/volist}
<div>{$page}</div>
</div>
<div class="narsjswd-mb-list article-detail hide">
<!-- 文章详情-->
<div class="jswdmb-item">
<h2 class="jswdmb-xq-title"></h2>
<span class="jswdmb-xq-ct"></span>
</div>
</div>
</div>
<!--筛选底部弹框-->
<div class="nars-jswd-mb-dbtk">
<div class="nars-jswdmb-dbtk-main">
<div class="jswdmb-dbtk-top">
<h1>全部筛选</h1>
<img src="__PUBLIC__/m_web/images/nas/guide/narsjswdmb-sxclose-ico.png" class="narsjswdmb-sxclose-ico" />
</div>
<div class="jswdmb-dbtk-midel">
<div class="jswdmb-dbtk-left">
<div class="jswdmb-dbtk-leftitem jswdmb-dbtk-leftitem-active">设备</div>
<div class="jswdmb-dbtk-leftitem">型号</div>
<div class="jswdmb-dbtk-leftitem">分类</div>
</div>
<form action="" class="jswdmb-dbtk-right series-category-form" autocomplete="off">
<!--型号的内容选择 -->
<div class="jswdmb-dbtk-cttype1">
{volist name='series' id='vo'}
<label class="ct1-it" data-id="{$vo.id}">
<span>{$vo.name}</span>
<input type="radio" name="series" value="{$vo.id}" hidden />
</label>
{/volist}
</div>
<!--设备和型号的内容选择 -->
<div class="jswdmb-dbtk-cttype1" style="display: none;">
{volist name='category' id='vo'}
<label class="ct1-it {if condition='$vo.id == 38'}ct1-it-active{/if}" data-id="{$vo.id}">
<span>{$vo.name}</span>
<input type="radio" name="device" value="{$vo.id}" hidden />
</label>
{/volist}
</div>
<!-- 分类的内容选择 -->
<div class="jswdmb-dbtk-cttype2" style="display: none;">
{volist name='category' id='vo'}
<div style="{if condition='$vo.id != 38'}display: none;{/if}">
{volist name='vo.items' id='vt'}
<div class="ct2-it">
<div class="ct2-it-main">
<div class="ct2-it-title">
<div class="ct2left">
<input type="checkbox" id="lv2_{$vt.id}" name="category" value="{$vt.id}" class="checkct2" />
<label for="lv2_{$vt.id}">{$vt.name}</label>
</div>
{if condition='!empty($vt.items)'}
<div class="ct2-right">
<span>展开</span>
<img src="__PUBLIC__/m_web/images/nas/guide/narsjswdmb-openico.png" class="narsjswdmb-openico" />
</div>
{/if}
</div>
{if condition='!empty($vt.items)'}
<div class="jswdmbct2-items">
{volist name='vt.items' id='it'}
<label class="ct2-it ct2-it-active">
<span>{$it.name}</span>
<input type="radio" name="category" value="{$it.id}" hidden />
</label>
{/volist}
</div>
{/if}
</div>
</div>
{/volist}
</div>
{/volist}
</div>
</form>
</div>
<div class="jswdmb-bts">
<div class="jswdmb-bt jswdmb-bt-right submit-cancel">取消</div>
<div class="jswdmb-bt jswdmb-bt-left submit-confirm">确定</div>
</div>
</div>
</div>
{include file="include/bottom1" /}
</div>
</body>
<script type="text/javascript">
$(document).ready(function() {
//弹框的交互
$('.jswdmb-dbtk-leftitem').click(function() {
// 移除所有兄弟元素上的 active 类
$(this).siblings('.jswdmb-dbtk-leftitem').removeClass('jswdmb-dbtk-leftitem-active');
// 给被点击的元素添加 active 类
$(this).addClass('jswdmb-dbtk-leftitem-active');
$('.jswdmb-dbtk-right>div').hide();
$('.jswdmb-dbtk-right>div').eq($(this).index()).show();
});
// 型号/设备事件
$('.jswdmb-dbtk-cttype1').find('[type="radio"]').change(function() {
$(this).parents('.jswdmb-dbtk-cttype1').find('label').removeClass('ct1-it-active');
$(this).parent('label').addClass('ct1-it-active');
if ($(this).attr('name') == 'device') {
var index = $('.jswdmb-dbtk-cttype1 [name="device"]').index(this)
$('.jswdmb-dbtk-cttype2>div').eq(index).show().siblings().hide()
}
});
// 分类事件
$('.jswdmb-dbtk-cttype2').find('[type="checkbox"]').change(function() {
$('.jswdmb-dbtk-cttype2 [type="checkbox"]').each(function(i, el) {
el.checked = false;
});
$(this).get(0).checked = true;
});
// 点击筛选显示弹框
$('.sxkuan').click(function() {
$('.nars-jswd-mb-dbtk').show();
});
// 提交型号/设备/分类筛选
$('.submit-confirm').click(function() {
$('.series-category-form').submit();
})
//关闭弹框
$('.jswdmb-dbtk-top, .submit-cancel').click(function() {
$('.nars-jswd-mb-dbtk').hide();
});
//收起展开
// 为每个.ct2-right绑定点击事件
$('.ct2-right').click(function() {
// 找到与当前.ct2-right相关的.jswdmbct2-items元素
var $items = $(this).closest('.ct2-it-main').find('.jswdmbct2-items');
// 切换display属性
$items.css('display', function(index, currentDisplay) {
return currentDisplay === 'flex' ? 'none' : 'flex';
});
// 如果你还想切换箭头图片(例如,从展开图标切换到收起图标),你可以这样做:
var $img = $(this).find('.narsjswdmb-openico');
if ($items.css('display') === 'none') {
// 如果收起,改变图片(如果有需要的话)
$img.attr('src', '__PUBLIC__/m_web/images/nas/guide/narsjswdmb-closeico.png'); // 假设你有一个收起图标
} else {
// 如果展开,恢复原始图片
$img.attr('src', '__PUBLIC__/m_web/images/nas/guide/narsjswdmb-openico.png');
}
});
// 查看详细内容
$('div.article-list .jswdmb-item').click(function() {
var index = $(this).index();
var article = (JSON.parse(JSON.stringify({$list|json_encode})))[index];
$('div.article-detail .jswdmb-xq-title').html(article.name);
$('div.article-detail .jswdmb-xq-ct').html(article.content);
$('div.article-list').addClass('hide').siblings('div.article-detail').removeClass('hide');
})
$('.history-back').click(function() {
if ($('div.article-list').hasClass('hide')) {
$('div.article-list').removeClass('hide').siblings('div.article-detail').addClass('hide');
} else {
history.go(-1);
}
})
});
</script>
</html>