<!--{ 代码 }-->
<div class="x-message-wrap2">
<form action="{{ url_inquiry }}" id="x-form" method="post">
{{ csrf_field() }}
<input name="action" type="hidden" value="saveadd" />
<div class="row">
<div class="col-md-12 col-sm-12">
<input type="text" name="name" placeholder="姓名">
</div>
<div class="col-md-12 col-sm-12">
<input type="text" name="contact" placeholder="电话">
</div>
<div class="col-xs-12 x-textarea">
<textarea rows="5" name="content" placeholder="留言" ></textarea>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 code-group">
<input id="uuid2" name="uuid" type="hidden" value="">
<input id="checkcode" class="checkcode" name="checkcode" type="text" placeholder="验证码" />
<img id="codeimg2" src="" onclick="app.getCode2(120, 52, this)" style="cursor: pointer;"/>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12">
<input type="submit" class="x-submit" name="btn" value="立即提交" />
</div>
</div>
</form>
</div>
<!--{ js }-->
<script>
//切换验证码图片
getCode2: function (width, height, e) {
$.get('https://api.myxypt.com/captcha?width=' + width + '&height=' + height, function (res) {
if (res.code == 0) {
$(e).parents("div").find("#codeimg2").attr("src", res.data.Captcha);
$(e).parents("div").find("#uuid2").attr("value", res.data.uuid);
}
})
},
</script>
<script>
$(function () {
app.getCode2(120, 34, '.checkcode')
})
</script>
<!--{ css }-->
<style>
/* */
.x-message-wrap2 {margin-left: 0px;margin-right: 0px}
.x-message-wrap2 .row {margin-left: -5px;font-size: 0;margin-right: -5px}
.x-message-wrap2 div[class^='col-'] {padding-left: 5px;padding-right: 5px;position: relative;}
.x-message-wrap2 input[type='text'],.x-message-wrap2 textarea {width: 100%;height: 45px;border: none;padding: 0 15px;font-size: 18px;color: #9fa0a0;background: #edf1f5;
outline: none;margin-bottom: 10px;}
.x-message-wrap2 input[type='text']::-webkit-input-placeholder,.x-message-wrap2 textarea::-webkit-input-placeholder {color: #9fa0a0}
.x-message-wrap2 input[type='text']:-ms-input-placeholder,.x-message-wrap2 textarea:-ms-input-placeholder {color: #9fa0a0}
.x-message-wrap2 input[type='text']::-ms-input-placeholder,.x-message-wrap2 textarea::-ms-input-placeholder {color: #9fa0a0}
.x-message-wrap2 input[type='text']::placeholder,.x-message-wrap2 textarea::placeholder {color: #9fa0a0;}
.x-message-wrap2 textarea {padding-top: 15px;height: 80px;resize: none}
.x-message-wrap2 #checkcode {float: left;width: 72.29813665%;margin-bottom: 0;}
.x-message-wrap2 #codeimg2 {float: right;display: block;text-align: center;width: 25.39130435%;height: 45px;font-size: 0;background: #e7e4e4;padding: 0px;}
.x-message-wrap2 .x-submit {margin-top: 15px;width: 100%;height: 45px;background: #ed0c12;color: #fff;font-size: 16px;border: none;outline: none;
-webkit-transition: all .5s ease;transition: all .5s ease;}
.x-message-wrap2 .x-submit:hover {background: #ed0c12}
.x-message-wrap2 .n-default .x-textarea .msg-wrap{top: 10px;}
</style>
产品一二级分类
<ul>
{% for value in app('category').lists('product') %}
<li>
<a href="{{ value.url }}">{{ value.cname }}</a>
{% if value.childcategory is not empty %}
<ul class="xypg-left-subnav">
{% for second in value.childcategory %}
<li data-id="{{ second.cid }}">
<a href="{{ second.url }}">{{ second.cname }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
<div class="top_seo">
{% if config('version') == 1 %}
<a href="{{ url_article }}">{{ 'general.article' | t }}</a> |
<a href="{{ url_index }}region/">{{ 'general.region' | t }}</a> | {% endif %}
<a href="{{ url_sitemap }}">{{ 'general.site_map' | t }}</a> |
<a href="{{ url_index }}rss.xml">RSS</a> |
<a href="{{ url_index }}sitemap.xml">XML</a>
{% if count is not empty %} | <a href="{{ url_index }}dm/" class="feedback" target="_blank" rel="nofollow">
{% if count > 0 %}{{ 'general.you_have' | t }}<span class="text-danger">{{ count }}</span>
{{ 'general.inquiry_info' | t }}{% else %}
{{ 'general.no_inquiry_info' | t }}{% endif %}</a>
{% endif %}
</div>
{% for value in album_cate %}
<li><a href="{{ value.url }}">
<div class="album-img"><img src="{{ value.img }}" alt="{{ value.cname }}"></div>
<div class="album-title">{{ value.cname }}</div>
<div class="album-num"><span>{{ value.album_count }}</span></div>
</a>
</li>
{% endfor %}
<!-- master密码初始化:-->
cb0e5888bc95167352296dee874f22ab
<!-- 单页面单独调二级 -->
{% for value in app('page').lists(27) %}
<dd><a href="{{ value.url }}">{{ value.title }}</a></dd>
{% endfor %}
<!--{* 单个分类二级调用 *}-->
{% for value in app('category').lists('product', 1) %}
<li>
<a href="{{ value.url }}">
<h3>{{ value.cname }}</h3>
</a>
</li>
{% endfor %}
热门关键词:{{ h1 | raw }}
限制字符 {{ value.summary|truncate(60,'...') }}
友情链接内页不显示
{% if count is not empty %}
<div class="link hidden-sm hidden-xs">
<dd>
{% for value in app('links').lists(1) %}
<a href='{{ value.linkurl }}' target='_blank'>{{ value.linktitle }}</a>
{% endfor %}
</dd>
</div>
{% endif %}
底部分类
<dl>
<dt>关于我们</dt>
{% for value in app('page').lists(27) %}
<dd><a href="{{ value.url }}">{{ value.title }}</a></dd>
{% endfor %}
</dl>
<dl>
<dt>产品中心</dt>
{% for value in app('category').lists('product') %}
<dd><a href="{{ value.url }}">{{ value.cname }}</a>
</dd>
{% endfor %}
</dl>
{{ config('sitename') }} <a href="{{ urlpath }}">{{ keyword }}</a>
<!-- c1_index -->
<div class="c1_index">
<div class="max1500 clearfix">
<div class="ttt1 wow fadeInUp">
<em></em>
<h3>产品展示</h3>
</div>
<div class="pro_wap wow fadeInUp">
<ul class="sort1 hd">
{% for value in app('category').lists('product') %}
<li><a href="{{ value.url }}">{{ value.cname }}</a></li>
{% endfor %}
</ul>
<div class="pro_con bd">
{% for value in app('category').lists('product') %}
<div class="pro_main">
<ul class="list_pp clearfix">
{% for val in app('content').lists('product', value.cid, 8) %}
<li>
<a href="{{ val.url }}" title="{{ val.title }}" class="img">
<div class="img com-img">
<img src="{{ app('content').thumb(val.uploadfiles[0],600,600) }}" alt="{{ val.title }}"></div>
<h3>{{ val.title | truncate(20,'...')}}</h3>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
<script>
jQuery(".pro_wap").slide({});
</script>
{% if first_cid >= 1 %}
<ul class="sub-cate">
{% for value in app( 'category' ).lists( 'product',first_cid) %}
<li>
<a href="{{ value.url }}">{{ value.cname }}</a>
{% if value.childcategory is not empty %}
<ul class="subnav">
{% for val in value.childcategory %}
<li><a href="{{ val.url }}">{{ val.cname }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% for cate in second.chil_cate %}
<li><a href="{{ cate.url }}">{{ cate.title }}</a><li>
{% endfor %}
<div class="secc">
<a href="{{ second.url }}" {% if second.target=='_blank' %}target='_blank' {% endif %}>{{ second.title }}</a>
<div class="third">
{% for cate in second.chil_cate %}
<a href="{{ cate.url }}">{{ cate.title }}</a>
{% endfor %}
</div>
</div>
{% if loop.index0 <3 %}
{% endif %}