首页banner nav
|
|
@ -60,7 +60,7 @@ class GoodsCategoryController extends CommonController
|
|||
}
|
||||
|
||||
// 获取数据
|
||||
$field = array('id', 'pid', 'icon', 'name', 'sort', 'is_enable', 'bg_color', 'big_images');
|
||||
$field = array('id', 'pid', 'icon', 'name', 'sort', 'is_enable', 'bg_color', 'big_images', 'vice_name', 'describe');
|
||||
$data = M('GoodsCategory')->field($field)->where(array('pid'=>intval(I('id', 0))))->select();
|
||||
if(!empty($data))
|
||||
{
|
||||
|
|
@ -178,6 +178,8 @@ class GoodsCategoryController extends CommonController
|
|||
// 额外数据处理
|
||||
$m->add_time = time();
|
||||
$m->name = I('name');
|
||||
$m->vice_name = I('vice_name');
|
||||
$m->describe = I('describe');
|
||||
|
||||
// 写入数据库
|
||||
if($m->add())
|
||||
|
|
@ -194,6 +196,8 @@ class GoodsCategoryController extends CommonController
|
|||
// 额外数据处理
|
||||
$m->name = I('name');
|
||||
$m->upd_time = time();
|
||||
$m->vice_name = I('vice_name');
|
||||
$m->describe = I('describe');
|
||||
|
||||
// 移除 id
|
||||
unset($m->id, $m->pid);
|
||||
|
|
|
|||
|
|
@ -13,5 +13,11 @@ return array(
|
|||
'goods_category_edit_name' => '分类编辑',
|
||||
|
||||
'goods_category_big_images_text' => '大图片',
|
||||
|
||||
'goods_category_vice_name_text' => '副名称',
|
||||
'goods_category_vice_name_format' => '副名称最大60个字符',
|
||||
|
||||
'goods_category_describe_text' => '描述',
|
||||
'goods_category_describe_format' => '描述最大200个字符',
|
||||
);
|
||||
?>
|
||||
|
|
@ -50,6 +50,14 @@
|
|||
<label>{{:L('common_name_text')}}</label>
|
||||
<input type="text" placeholder="{{:L('common_name_text')}}" name="name" minlength="2" maxlength="16" data-validation-message="{{:L('common_name_format')}}" class="am-radius" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('goods_category_vice_name_text')}}</label>
|
||||
<input type="text" placeholder="{{:L('goods_category_vice_name_text')}}" name="vice_name" minlength="0" maxlength="60" data-validation-message="{{:L('goods_category_vice_name_format')}}" class="am-radius" />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('goods_category_describe_text')}}</label>
|
||||
<textarea rows="5" name="describe" maxlength="200" class="am-radius" placeholder="{{:L('goods_category_describe_text')}}" data-validation-message="{{:L('goods_category_describe_format')}}"></textarea>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('common_view_sort_title')}}</label>
|
||||
<input type="number" placeholder="{{:L('common_view_sort_title')}}" name="sort" min="0" max="255" data-validation-message="{{:L('common_sort_error')}}" class="am-radius" value="0" required />
|
||||
|
|
@ -68,7 +76,7 @@
|
|||
<!-- save win end -->
|
||||
|
||||
<!-- list start -->
|
||||
<div id="tree" class="m-t-15" data-rank="3" data-additional='[{"field":"bg_color", "value":"", "type":"input"}, {"field":"bg_color", "value":"", "type":"css", "tag":"button.colorpicker-submit", "style":"background-color"}, {"field":"file_icon", "value":"", "type":"file", "tag":"input.file_icon-tag"}, {"field":"icon", "value":"", "type":"input"}, {"field":"icon_url", "value":"{{$image_host}}/Public/Admin/Default/Images/default-images.png", "type":"attr", "tag":"#form-img-icon", "style":"src"}, {"value":"", "type":"html", "tag":"#form-icon-tips"}, {"field":"file_big_images", "value":"", "type":"file", "tag":"input.file_big_images-tag"}, {"field":"big_images", "value":"", "type":"input"}, {"field":"big_images_url", "value":"{{$image_host}}/Public/Admin/Default/Images/default-images.png", "type":"attr", "tag":"#form-img-big_images", "style":"src"}, {"value":"", "type":"html", "tag":"#form-big_images-tips"}]'>
|
||||
<div id="tree" class="m-t-15" data-rank="3" data-additional='[{"field":"bg_color", "value":"", "type":"input"}, {"field":"bg_color", "value":"", "type":"css", "tag":"button.colorpicker-submit", "style":"background-color"}, {"field":"file_icon", "value":"", "type":"file", "tag":"input.file_icon-tag"}, {"field":"icon", "value":"", "type":"input"}, {"field":"icon_url", "value":"{{$image_host}}/Public/Admin/Default/Images/default-images.png", "type":"attr", "tag":"#form-img-icon", "style":"src"}, {"value":"", "type":"html", "tag":"#form-icon-tips"}, {"field":"file_big_images", "value":"", "type":"file", "tag":"input.file_big_images-tag"}, {"field":"big_images", "value":"", "type":"input"}, {"field":"big_images_url", "value":"{{$image_host}}/Public/Admin/Default/Images/default-images.png", "type":"attr", "tag":"#form-img-big_images", "style":"src"}, {"value":"", "type":"html", "tag":"#form-big_images-tips"}, {"field":"vice_name", "value":"", "type":"input"}, {"field":"describe", "value":"", "type":"textarea"}]'>
|
||||
<div class="m-t-30 t-c">
|
||||
<img src="__PUBLIC__/Common/Images/loading.gif" />
|
||||
<p>{{:L('common_form_loading_tips')}}</p>
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
<td <if condition="!empty($v['bg_color'])">style="background-color:{{$v.bg_color}};"</if>>
|
||||
<if condition="!empty($v['images_url'])">
|
||||
<a href="{{$v['images_url']}}" target="_blank">
|
||||
<img src="{{$v['images_url']}}" class="am-img-thumbnail am-radius" width="100" height="60" />
|
||||
<img src="{{$v['images_url']}}" class="am-radius" width="100" height="60" />
|
||||
</a>
|
||||
<else />
|
||||
<span class="cr-ddd">{{:L('common_on_fill_in_images')}}</span>
|
||||
|
|
|
|||
|
|
@ -34,8 +34,35 @@ class IndexController extends CommonController
|
|||
public function Index()
|
||||
{
|
||||
|
||||
// 首页轮播
|
||||
$this->assign('banner_list', $this->GetHomeBanner());
|
||||
|
||||
$this->display('Index');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取首页banner
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2018-08-10
|
||||
* @desc description
|
||||
*/
|
||||
private function GetHomeBanner()
|
||||
{
|
||||
// 轮播图片
|
||||
$banner = M('Slide')->field('jump_url,jump_url_type,images_url,name,bg_color')->where(['platform'=>APPLICATION_CLIENT_TYPE, 'is_enable'=>1])->select();
|
||||
if(!empty($banner))
|
||||
{
|
||||
$images_host = C('IMAGE_HOST');
|
||||
foreach($banner as &$v)
|
||||
{
|
||||
$v['images_url'] = $images_host.$v['images_url'];
|
||||
$v['jump_url'] = empty($v['jump_url']) ? null : $v['jump_url'];
|
||||
}
|
||||
$result['banner'] = $banner;
|
||||
}
|
||||
return $banner;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -96,8 +96,8 @@
|
|||
<div class="shopMainbg">
|
||||
<div class="shopMain" id="shopmain">
|
||||
<!--今日推荐 -->
|
||||
<div class="am-g am-g-fixed recommendation">
|
||||
<div class="clock am-u-sm-3" ">
|
||||
<!-- <div class="am-g am-g-fixed recommendation">
|
||||
<div class="clock am-u-sm-3">
|
||||
<img src="../images/2016.png "></img>
|
||||
<p>今日<br>推荐</p>
|
||||
</div>
|
||||
|
|
@ -128,11 +128,11 @@
|
|||
<img src="../images/tj2.png "></img>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!--热门活动 -->
|
||||
<div class="am-container activity ">
|
||||
<div class="shopTitle ">
|
||||
<!-- <div class="am-container activity ">
|
||||
<div class="shopTitle">
|
||||
<h4>活动</h4>
|
||||
<h3>每期活动 优惠享不停 </h3>
|
||||
<span class="more ">
|
||||
|
|
@ -185,7 +185,7 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!--甜点 f1 -->
|
||||
<div id="f1">
|
||||
|
|
@ -450,10 +450,8 @@
|
|||
<!-- footer end -->
|
||||
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
$('.am-slider').flexslider();
|
||||
});
|
||||
|
||||
$(function()
|
||||
{
|
||||
$(".category-content li").hover(function() {
|
||||
$(".category-content .category-list li.first .menu-in").css("display", "none");
|
||||
$(".category-content .category-list li.first").removeClass("hover");
|
||||
|
|
@ -479,4 +477,5 @@
|
|||
})
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
@ -3,11 +3,14 @@
|
|||
</div>
|
||||
<div class="nav-cont">
|
||||
<ul>
|
||||
<li class="index"><a href="#">首页</a></li>
|
||||
<li class="qc"><a href="#">闪购</a></li>
|
||||
<li class="qc"><a href="#">限时抢</a></li>
|
||||
<li class="qc"><a href="#">团购</a></li>
|
||||
<li class="qc last"><a href="#">大包装</a></li>
|
||||
<li><a href="{{:__MY_URL__}}">{{:L('common_home_text')}}</a></li>
|
||||
<if condition="!empty($nav_header)">
|
||||
<foreach name="nav_header" item="nav">
|
||||
<li>
|
||||
<a href="{{$nav.url}}" <if condition="$nav['is_new_window_open'] eq 1">target="_blank"</if>>{{$nav.name}}</a>
|
||||
</li>
|
||||
</foreach>
|
||||
</if>
|
||||
</ul>
|
||||
<div class="nav-extra">
|
||||
<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
</ul>
|
||||
<ul class="message-r">
|
||||
<div class="topMessage home">
|
||||
<div class="menu-hd"><a href="#" target="_top" class="h">商城首页</a></div>
|
||||
<div class="menu-hd"><a href="{{:__MY_URL__}}" target="_top" class="h">商城首页</a></div>
|
||||
</div>
|
||||
<div class="topMessage my-shangcheng">
|
||||
<div class="menu-hd MyShangcheng"><a href="#" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
<!-- 首页轮播 start -->
|
||||
<div class="banner">
|
||||
<div class="am-slider am-slider-default scoll" data-am-flexslider id="demo-slider-0">
|
||||
<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false}' >
|
||||
<ul class="am-slides">
|
||||
<li class="banner1"><a href="introduction.html"><img src="../images/ad1.jpg" /></a></li>
|
||||
<li class="banner2"><a><img src="../images/ad2.jpg" /></a></li>
|
||||
<li class="banner3"><a><img src="../images/ad3.jpg" /></a></li>
|
||||
<li class="banner4"><a><img src="../images/ad4.jpg" /></a></li>
|
||||
<if condition="!empty($banner_list)">
|
||||
<foreach name="banner_list" item="banner">
|
||||
<if condition="!empty($banner['images_url'])">
|
||||
<li <if condition="!empty($banner['bg_color'])">style="background: {{$banner.bg_color}};"</if> title="{{$banner.name}}">
|
||||
<a href="<if condition="!empty($banner['jump_url'])">{{$banner.jump_url}}<else />javascript:;</if>" target="_blank"><img src="{{$banner.images_url}}" /></a>
|
||||
</li>
|
||||
</if>
|
||||
</foreach>
|
||||
</if>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<!-- 首页轮播 end -->
|
||||
|
|
@ -1,15 +1,20 @@
|
|||
<!-- 搜索框 start -->
|
||||
<div class="nav white">
|
||||
<div class="logo"><img src="../images/logo.png" /></div>
|
||||
<div class="logo">
|
||||
<a href="{{:__MY_URL__}}">
|
||||
<img src="{{$image_host}}{{:MyC('home_site_logo')}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="logoBig">
|
||||
<li><img src="../images/logobig.png" /></li>
|
||||
<a href="{{:__MY_URL__}}">
|
||||
<img src="{{$image_host}}{{:MyC('home_site_logo')}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="search-bar pr">
|
||||
<a name="index_none_header_sysc" href="#"></a>
|
||||
<form>
|
||||
<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="{{:L('common_so_tips')}}" autocomplete="off">
|
||||
<input id="ai-topsearch" class="submit am-btn" placeholder="{{:L('common_so_tips')}}" index="1" type="submit">
|
||||
<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="{{:L('common_so_tips')}}" autocomplete="off" />
|
||||
<input id="ai-topsearch" class="submit am-btn" placeholder="{{:L('common_so_tips')}}" index="1" type="submit" value="{{:L('common_so_text')}}" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,57 @@
|
|||
/**
|
||||
* 公共
|
||||
*/
|
||||
* { font-size: 14px; }
|
||||
.w100 {width:100%;}
|
||||
.fw-100 {font-weight:100;}
|
||||
.fw-700 {font-weight:700;}
|
||||
#common-prompt {position:fixed;top:0;left:0;right:0;text-align:center;margin-top:0;padding:5px;font-size:14px;z-index:10000;}
|
||||
.am-popover, .am-radius, .am-selected-btn { border-radius:2px !important; }
|
||||
.am-popover * {font-size: 12px;}
|
||||
.am-icon-trash-o:before {width:12px !important;}
|
||||
.fr {float:right !important;}
|
||||
.fl {float:left !important;}
|
||||
.fs-12 {font-size:12px !important;}
|
||||
.fs-13 {font-size:13px !important;}
|
||||
.fs-14 {font-size:14px !important;}
|
||||
.fs-15 {font-size:15px !important;}
|
||||
.fs-16 {font-size:16px !important;}
|
||||
.fs-17 {font-size:17px !important;}
|
||||
.fs-18 {font-size:18px !important;}
|
||||
.c-r {cursor:w-resize;}
|
||||
.c-p {cursor:pointer;}
|
||||
.c-m {cursor: move !important;}
|
||||
legend {padding-bottom:0.2rem !important; margin-bottom: 1rem; }
|
||||
.none {display:none !important;}
|
||||
.block {display:block !important;}
|
||||
.am-popup-bd {background:#fff;}
|
||||
.cr-eee {color:#eee !important;}
|
||||
.cr-ccc {color:#ccc !important;}
|
||||
.cr-ddd {color:#ddd !important;}
|
||||
.cr-999 {color:#999 !important;}
|
||||
.cr-666 {color:#666 !important;}
|
||||
.cr-red {color:#f00 !important;}
|
||||
.cr-green { color: #4aaa4a !important; }
|
||||
.cr-blue { color: #0e90d2 !important; }
|
||||
.cr-yellow { color: #e4bfbc !important; }
|
||||
.am-form select,.am-form textarea,.am-form input[type="text"],.am-form input[type="password"],.am-form input[type="datetime"],.am-form input[type="datetime-local"],.am-form input[type="date"],.am-form input[type="month"],.am-form input[type="time"],.am-form input[type="week"],.am-form input[type="number"],.am-form input[type="email"],.am-form input[type="url"],.am-form input[type="search"],.am-form input[type="tel"],.am-form input[type="color"],.am-form-field {font-size:1.4rem !important;}
|
||||
select {height:32px !important;}
|
||||
.bk-cr-gray {background:#f3f3f3 !important;}
|
||||
.bk-cr-ffd {background:#ffd !important;}
|
||||
.bk-cr-white {background-color: #fff;}
|
||||
.t-c {text-align:center;}
|
||||
.t-l {text-align:left;}
|
||||
.t-r {text-align:right;}
|
||||
.o-h { overflow: hidden; }
|
||||
.submit-state { font-size: 16px; width: 25px; height: 25px; line-height: 25px; }
|
||||
input:hover, select:hover, textarea:hover, .chosen-choices:hover, .chosen-single:hover { border-style:solid; border-width:1px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; border:1px solid #4FACF5 !important; box-shadow:0 0 5px #4FACF5 !important; }
|
||||
.am-input-group-sm > .am-input-group-btn > .am-btn { height: 32px; }
|
||||
.left-menu-more-ico-rotate {-webkit-transform: rotate(-90deg);transform: rotate(-90deg);-webkit-transition: all 300ms;transition: all 300ms;}
|
||||
.am-icon-angle-down {-webkit-transition: all 300ms;transition: all 300ms;}
|
||||
.am-radio-inline input[type="radio"] { margin-left: 0px !important; }
|
||||
.am-alert-tips { background-color: #ffffe9; border-color: #faebd2; color: #888; }
|
||||
.am-alert-tips, .am-alert-tips * { font-size: 12px; }
|
||||
|
||||
body {margin:0;color:#797979;}
|
||||
html,body {position:relative;background:#fff;height:100%;}
|
||||
h1,h2,h3,h4,h5,h6 {font-family:'Karla',sans-serif;margin:10px 0;}
|
||||
|
|
|
|||
|
|
@ -1,57 +1,3 @@
|
|||
/**
|
||||
* 公共
|
||||
*/
|
||||
* { font-size: 14px; }
|
||||
.w100 {width:100%;}
|
||||
.fw-100 {font-weight:100;}
|
||||
.fw-700 {font-weight:700;}
|
||||
#common-prompt {position:fixed;top:0;left:0;right:0;text-align:center;margin-top:0;padding:5px;font-size:14px;z-index:10000;}
|
||||
.am-popover, .am-radius, .am-selected-btn { border-radius:2px !important; }
|
||||
.am-popover * {font-size: 12px;}
|
||||
.am-icon-trash-o:before {width:12px !important;}
|
||||
.fr {float:right !important;}
|
||||
.fl {float:left !important;}
|
||||
.fs-12 {font-size:12px !important;}
|
||||
.fs-13 {font-size:13px !important;}
|
||||
.fs-14 {font-size:14px !important;}
|
||||
.fs-15 {font-size:15px !important;}
|
||||
.fs-16 {font-size:16px !important;}
|
||||
.fs-17 {font-size:17px !important;}
|
||||
.fs-18 {font-size:18px !important;}
|
||||
.c-r {cursor:w-resize;}
|
||||
.c-p {cursor:pointer;}
|
||||
.c-m {cursor: move !important;}
|
||||
legend {padding-bottom:0.2rem !important; margin-bottom: 1rem; }
|
||||
.none {display:none !important;}
|
||||
.block {display:block !important;}
|
||||
.am-popup-bd {background:#fff;}
|
||||
.cr-eee {color:#eee !important;}
|
||||
.cr-ccc {color:#ccc !important;}
|
||||
.cr-ddd {color:#ddd !important;}
|
||||
.cr-999 {color:#999 !important;}
|
||||
.cr-666 {color:#666 !important;}
|
||||
.cr-red {color:#f00 !important;}
|
||||
.cr-green { color: #4aaa4a !important; }
|
||||
.cr-blue { color: #0e90d2 !important; }
|
||||
.cr-yellow { color: #e4bfbc !important; }
|
||||
.am-form select,.am-form textarea,.am-form input[type="text"],.am-form input[type="password"],.am-form input[type="datetime"],.am-form input[type="datetime-local"],.am-form input[type="date"],.am-form input[type="month"],.am-form input[type="time"],.am-form input[type="week"],.am-form input[type="number"],.am-form input[type="email"],.am-form input[type="url"],.am-form input[type="search"],.am-form input[type="tel"],.am-form input[type="color"],.am-form-field {font-size:1.4rem !important;}
|
||||
select {height:32px !important;}
|
||||
.bk-cr-gray {background:#f3f3f3 !important;}
|
||||
.bk-cr-ffd {background:#ffd !important;}
|
||||
.bk-cr-white {background-color: #fff;}
|
||||
.t-c {text-align:center;}
|
||||
.t-l {text-align:left;}
|
||||
.t-r {text-align:right;}
|
||||
.o-h { overflow: hidden; }
|
||||
.submit-state { font-size: 16px; width: 25px; height: 25px; line-height: 25px; }
|
||||
input:hover, select:hover, textarea:hover, .chosen-choices:hover, .chosen-single:hover { border-style:solid; border-width:1px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; border:1px solid #4FACF5 !important; box-shadow:0 0 5px #4FACF5 !important; }
|
||||
.am-input-group-sm > .am-input-group-btn > .am-btn { height: 32px; }
|
||||
.left-menu-more-ico-rotate {-webkit-transform: rotate(-90deg);transform: rotate(-90deg);-webkit-transition: all 300ms;transition: all 300ms;}
|
||||
.am-icon-angle-down {-webkit-transition: all 300ms;transition: all 300ms;}
|
||||
.am-radio-inline input[type="radio"] { margin-left: 0px !important; }
|
||||
.am-alert-tips { background-color: #ffffe9; border-color: #faebd2; color: #888; }
|
||||
.am-alert-tips, .am-alert-tips * { font-size: 12px; }
|
||||
|
||||
/* 没数据 */
|
||||
.table-no {text-align:center;padding-top:30px !important;background:#FFF !important;}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@
|
|||
var obj = $(this);
|
||||
obj.bind(opts.event,function(){
|
||||
//定位
|
||||
var ttop = $(this).offset().top; //控件的定位点高
|
||||
var ttop = $(this).offset().top; //控件的定位点高
|
||||
var thei = $(this).height(); //控件本身的高
|
||||
var tleft = $(this).offset().left+$(this).outerWidth()-232; //控件的定位点宽
|
||||
var tleft = $(this).offset().left+$(this).outerWidth()-232; //控件的定位点宽
|
||||
$("#colorpanel").css({
|
||||
top:ttop+thei+16,
|
||||
left:tleft
|
||||
|
|
@ -36,6 +36,15 @@
|
|||
$("#colorpanel").hide();
|
||||
opts.reset(obj);
|
||||
});
|
||||
|
||||
$("#_determine").bind("click",function(){
|
||||
var color = $("#HexColor").val();
|
||||
target.css("color", color);
|
||||
$("#colorpanel").hide();
|
||||
opts.success(obj,color);
|
||||
}).css({
|
||||
"padding-left":"8px"
|
||||
});
|
||||
|
||||
$("#CT tr td").unbind("click").mouseover(function(){
|
||||
var color=$(this).css("background-color");
|
||||
|
|
@ -76,17 +85,14 @@
|
|||
colorTable='<table width=232 border="0" cellspacing="0" cellpadding="0" style="border:1px solid #000;">'
|
||||
+'<tr height=30><td colspan=21 bgcolor=#cccccc>'
|
||||
+'<table cellpadding="0" cellspacing="1" border="0" style="border-collapse: collapse">'
|
||||
+'<tr><td width="3"><td><input type="text" id="DisColor" size="6" disabled style="border:solid 1px #000000;background-color:#ffff00"></td>'
|
||||
+'<td width="3"><td><input type="text" id="HexColor" size="7" style="border:inset 1px;font-family:Arial;" value="#000000"><a href="javascript:void(0);" id="_cclose">关闭</a> | <a href="javascript:void(0);" id="_creset">清除</a></td></tr></table></td></table>'
|
||||
+'<tr><td width="3"><td><input type="text" id="DisColor" size="3" disabled style="border:solid 1px #000000;background-color:#ffff00"></td>'
|
||||
+'<td width="3"><td><input type="text" id="HexColor" size="7" style="border:inset 1px;font-family:Arial;" value="#000000"><a href="javascript:void(0);" id="_determine">确定</a> | <a href="javascript:void(0);" id="_cclose">关闭</a> | <a href="javascript:void(0);" id="_creset">清除</a></td></tr></table></td></table>'
|
||||
+'<table id="CT" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="000000" style="cursor:pointer;">'
|
||||
+colorTable+'</table>';
|
||||
$("#colorpanel").html(colorTable);
|
||||
$("#_cclose").on('click',function(){
|
||||
$("#colorpanel").hide();
|
||||
return false;
|
||||
}).css({
|
||||
"font-size":"12px",
|
||||
"padding-left":"20px"
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -124,36 +124,24 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px ;}
|
|||
.navCir li.active a{color:#F03726 ;}
|
||||
|
||||
@media only screen and (min-width: 640px)
|
||||
{
|
||||
/*公共*/
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
|
||||
/*公共*/
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
|
||||
font-size: 14px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.nav.white{background: none;}
|
||||
.header { display:block;height: 35px;}
|
||||
.message-l{ float:left;}
|
||||
|
|
@ -183,58 +171,55 @@ time, mark, audio, video {
|
|||
.header,.nav.white{ padding-right:40px;}
|
||||
.bloglist{ margin-top:0px;}
|
||||
.shopMain {margin:0px 5px;}
|
||||
/*选项卡样式*/
|
||||
.am-nav-tabs > li span{font-size:16px;padding:5px 15px ;}
|
||||
}
|
||||
@media only screen and (min-width: 1025px)
|
||||
/*选项卡样式*/
|
||||
.am-nav-tabs > li span{font-size:16px;padding:5px 15px ;}
|
||||
}
|
||||
|
||||
{
|
||||
@media only screen and (min-width: 1025px)
|
||||
{
|
||||
.mui-mbar-tabs{ display:block;}
|
||||
.nav.white{padding-left:0px; max-width:1000px; margin:0px auto;}
|
||||
.nav.white .logo{display:none;}
|
||||
.nav.white .logoBig { display:block; float:left;height:90px; width:200px; margin-left:0px;}
|
||||
.nav.white .logoBig li{float:left;}
|
||||
.search-bar{height:90px; padding: 20px 70px 0 230px; margin:auto;}
|
||||
|
||||
.my-cart{ display:none; right:10%; top:20px;}
|
||||
.shopNavfloat{ display:block; position:fixed;bottom:0px;left:30px;}
|
||||
.shopMain{margin:0px 40px 0px 5px;}
|
||||
.shopCon li{width:20%;padding:10px;}
|
||||
.search-bar input { height: 46px;}
|
||||
.search-bar {margin:0px auto;}
|
||||
.tip{display:block;}
|
||||
|
||||
|
||||
/*分类*/
|
||||
.nav-table{max-width:1000px;margin: 0px auto;height: 45px;position: relative;overflow: hidden;}
|
||||
.all-goods{font-size: 16px;}
|
||||
.long-title{background:#d2364c;color:#fff ;height: 45px;line-height: 45px;display:block;position: absolute;width:150px ;text-align: center;font-size:16px ;top:0px;z-index: 6;}
|
||||
.nav-cont{position: absolute;padding-left:150px;display:block;width:100% ;top:0px}
|
||||
.nav-cont li{float: left;height: 45px;line-height: 45px;}
|
||||
.nav-cont li::before{content: '\20';display: inline-block;height: 16px;border-right: 1px solid #d9d9d9;width: 0;vertical-align: middle;margin-left: -1px;}
|
||||
.nav-cont li a {font-size: 16px;color: #333;line-height: 36px;margin-left: -1px;padding: 0 25px;text-decoration: none;font-weight: 700;display: inline-block;vertical-align: middle;}
|
||||
|
||||
.mui-mbar-tabs{ display:block;}
|
||||
.nav.white{padding-left:0px; max-width:1000px; margin:0px auto;}
|
||||
.nav.white .logo{display:none;}
|
||||
.nav.white .logoBig { display:block; float:left;height:90px; width:200px; margin-left:0px;}
|
||||
.nav.white .logoBig li{float:left;}
|
||||
.search-bar{height:90px; padding: 20px 70px 0 230px; margin:auto;}
|
||||
|
||||
.my-cart{ display:none; right:10%; top:20px;}
|
||||
.shopNavfloat{ display:block; position:fixed;bottom:0px;left:30px;}
|
||||
.shopMain{margin:0px 40px 0px 5px;}
|
||||
.shopCon li{width:20%;padding:10px;}
|
||||
.search-bar input { height: 46px;}
|
||||
.search-bar {margin:0px auto;}
|
||||
.tip{display:block;}
|
||||
|
||||
|
||||
/*分类*/
|
||||
.nav-table{max-width:1000px;margin: 0px auto;height: 45px;position: relative;overflow: hidden;}
|
||||
.all-goods{font-size: 16px;}
|
||||
.long-title{background:#d2364c;color:#fff ;height: 45px;line-height: 45px;display:block;position: absolute;width:150px ;text-align: center;font-size:16px ;top:0px;z-index: 6;}
|
||||
.nav-cont{position: absolute;padding-left:150px;display:block;width:100% ;top:0px}
|
||||
.nav-cont li{float: left;height: 45px;line-height: 45px;}
|
||||
.nav-cont li::before{content: '\20';display: inline-block;height: 16px;border-right: 1px solid #d9d9d9;width: 0;vertical-align: middle;margin-left: -1px;}
|
||||
.nav-cont li a {font-size: 16px;color: #333;line-height: 36px;margin-left: -1px;padding: 0 25px;text-decoration: none;font-weight: 700;display: inline-block;vertical-align: middle;}
|
||||
|
||||
.nav-cont .nav-extra{position: absolute;right:0px ;top:6px;font-size: 16px;color:#fcff00;line-height:33px;height:33px ;width:160px;text-align:center;background: url(../../../../../images/extra.png);cursor: pointer;}
|
||||
.nav-cont .nav-extra i.nav-user{background:#000 ;color:#fff ;width: 33px;height: 33px;border-radius: 33px;position: absolute;left:-28px;z-index: 99;padding: 5px;overflow: hidden;}
|
||||
.nav-cont .nav-extra b{display:block;position: absolute;width: 45px;height: 45px;border-radius:45px;z-index: 1;left: -33px;top: -8px;background: #fff;}
|
||||
b.line{display: block;width:100%;height:2px ;border-bottom:2px solid #d2364c;position: absolute;top:180px;z-index:5;}
|
||||
}
|
||||
.nav-cont .nav-extra{position: absolute;right:0px ;top:6px;font-size: 16px;color:#fcff00;line-height:33px;height:33px ;width:160px;text-align:center;background: url(../../../../../images/extra.png);cursor: pointer;}
|
||||
.nav-cont .nav-extra i.nav-user{background:#000 ;color:#fff ;width: 33px;height: 33px;border-radius: 33px;position: absolute;left:-28px;z-index: 99;padding: 5px;overflow: hidden;}
|
||||
.nav-cont .nav-extra b{display:block;position: absolute;width: 45px;height: 45px;border-radius:45px;z-index: 1;left: -33px;top: -8px;background: #fff;}
|
||||
b.line{display: block;width:100%;height:2px ;border-bottom:2px solid #d2364c;position: absolute;top:180px;z-index:5;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media only screen and (min-width: 1260px) {
|
||||
.am-container {max-width: 1200px;}
|
||||
.footer{max-width:1200px ;margin: auto;}
|
||||
/*分类*/
|
||||
.nav-table{max-width:1200px;}
|
||||
.long-title {width:180px;}
|
||||
.nav-cont {padding-left: 180px;}
|
||||
.am-container, .nav.white {max-width: 1200px;}
|
||||
.footer{max-width:1200px ; margin: auto;}
|
||||
|
||||
/*分类*/
|
||||
.nav-table{max-width:1200px;}
|
||||
.long-title {width:180px;}
|
||||
.nav-cont {padding-left: 180px;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*侧边信息栏*/
|
||||
.tip{ position:fixed; top:0px;right:0px;background-color: #e1e1e1; min-height: 100%;z-index: 1000; }
|
||||
#sidebar {
|
||||
|
|
|
|||
|
|
@ -350,10 +350,6 @@ text-align: center;float:none}
|
|||
/*第一套轮播图布局*/
|
||||
.banner{position: absolute;left:0px;top:180px;z-index:9 ;border-top:2px solid #d2364c;}
|
||||
.banner .am-slider .am-slides li{height:360px;}
|
||||
.banner .am-slider .am-slides li.banner4{background: #ff9801;}
|
||||
.banner .am-slider .am-slides li.banner1{background: #55be59;}
|
||||
.banner .am-slider .am-slides li.banner2{background: #f44661;}
|
||||
.banner .am-slider .am-slides li.banner3{background: #0f1024;}
|
||||
.banner .am-slider .am-slides img{width:800px ;left:50% ;position: absolute;margin-left: -370px;}
|
||||
.banner .am-slider-default .am-direction-nav .am-next {right: 50px;}
|
||||
|
||||
|
|
@ -404,7 +400,7 @@ top: 11px;text-align: right;}
|
|||
.category-content .category-info em{ position:absolute; top:8px; right:15px; width: 13px; height: 13px; font: 12px/18px "宋体"; color: #9b9b9b;}
|
||||
.category-content .category .hover{ margin-left: -1px; padding-left: 1px;z-index:999;}
|
||||
.category-content .hover .category-info{ border:none; text-decoration:none; background: #fff; }
|
||||
.category-content .menu-item { position: absolute;left: 143px;height:100%; z-index: 11;padding:0 0 0 2px;width:770px;background: #fff; border:none; border-top: 1px solid #bbb\9;}
|
||||
.category-content .menu-item { position: absolute;left: 149px;height:100%; z-index: 11;padding:0 0 0 2px;width:770px;background: #fff; border:none; border-top: 1px solid #bbb\9;}
|
||||
.category-content .menu-item .area-in{ position: relative; z-index: 1; }
|
||||
.category-content .menu-item .area-bg{ padding: 10px 0 10px 40px;}
|
||||
.shadow-bg{ display: none; position: relative; width: 100%; height: 0; }
|
||||
|
|
@ -736,7 +732,7 @@ filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#f8c375',endCo
|
|||
#nav .category-content .all-goods {width:180px;}
|
||||
.category-content .category{ width:180px;}
|
||||
.category-content .category-info {padding-left: 12px;width: 182px;overflow: hidden;}
|
||||
.category-content .menu-item {left: 173px;}
|
||||
.category-content .menu-item {left: 179px;}
|
||||
.category-content .category-list li {height:45px ;}
|
||||
|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 255 KiB |
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 293 KiB |
|
|
@ -52,7 +52,7 @@ define('APPLICATION', empty($_REQUEST['application']) ? 'web' : trim($_REQUEST['
|
|||
// 请求客户端 [default, ...] 默认default
|
||||
define('APPLICATION_CLIENT', empty($_REQUEST['application_client']) ? 'default' : trim($_REQUEST['application_client']));
|
||||
|
||||
// 请求客户端 [pc, h5, alipay, wechat] 默认web
|
||||
define('APPLICATION_CLIENT_TYPE', empty($_REQUEST['application_client_type']) ? 'web' : trim($_REQUEST['application_client_type']));
|
||||
// 请求客户端 [pc, h5, alipay, wechat] 默认pc
|
||||
define('APPLICATION_CLIENT_TYPE', empty($_REQUEST['application_client_type']) ? 'pc' : trim($_REQUEST['application_client_type']));
|
||||
|
||||
?>
|
||||