diff --git a/basepro-manager/basepro-framework/src/main/java/basepro/manager/framework/config/ShiroConfig.java b/basepro-manager/basepro-framework/src/main/java/basepro/manager/framework/config/ShiroConfig.java index 430203b..982242d 100644 --- a/basepro-manager/basepro-framework/src/main/java/basepro/manager/framework/config/ShiroConfig.java +++ b/basepro-manager/basepro-framework/src/main/java/basepro/manager/framework/config/ShiroConfig.java @@ -127,9 +127,9 @@ public class ShiroConfig // Shiro的核心安全接口,这个属性是必须的 shiroFilterFactoryBean.setSecurityManager(securityManager); // 身份认证失败,则跳转到登录页面的配置 - shiroFilterFactoryBean.setLoginUrl("/index"); + shiroFilterFactoryBean.setLoginUrl("/login"); // 权限认证失败,则跳转到指定页面 - shiroFilterFactoryBean.setUnauthorizedUrl("/index"); + shiroFilterFactoryBean.setUnauthorizedUrl("/login"); // Shiro连接约束配置,即过滤链的定义 LinkedHashMap filterChainDefinitionMap = new LinkedHashMap<>(); // 对静态资源设置匿名访问 @@ -155,7 +155,7 @@ public class ShiroConfig // 不需要拦截的访问 filterChainDefinitionMap.put("/login", "anon,captchaValidate"); - filterChainDefinitionMap.put("/index", "anon,captchaValidate"); +// filterChainDefinitionMap.put("/index", "anon,captchaValidate"); filterChainDefinitionMap.put("/common/download/resource", "anon,captchaValidate"); filterChainDefinitionMap.put("/generateOriginalNum", "anon,captchaValidate"); filterChainDefinitionMap.put("/PKILogin", "anon,captchaValidate"); diff --git a/basepro-manager/basepro-manager-dao/src/main/java/basepro/manager/mapper/TbMdjfjxxxbMapper.java b/basepro-manager/basepro-manager-dao/src/main/java/basepro/manager/mapper/TbMdjfjxxxbMapper.java index c4670a7..cca7151 100644 --- a/basepro-manager/basepro-manager-dao/src/main/java/basepro/manager/mapper/TbMdjfjxxxbMapper.java +++ b/basepro-manager/basepro-manager-dao/src/main/java/basepro/manager/mapper/TbMdjfjxxxbMapper.java @@ -15,10 +15,10 @@ public interface TbMdjfjxxxbMapper /** * 查询矛盾纠纷简项信息 * - * @param MDJFBH 矛盾纠纷简项信息ID + * @param mdjfbh 矛盾纠纷简项信息ID * @return 矛盾纠纷简项信息 */ - public TbMdjfjxxxb selectTbMdjfjxxxbById(String MDJFBH); + public TbMdjfjxxxb selectTbMdjfjxxxbById(String mdjfbh); /** * 查询矛盾纠纷简项信息列表 @@ -47,16 +47,16 @@ public interface TbMdjfjxxxbMapper /** * 删除矛盾纠纷简项信息 * - * @param MDJFBH 矛盾纠纷简项信息ID + * @param mdjfbh 矛盾纠纷简项信息ID * @return 结果 */ - public int deleteTbMdjfjxxxbById(String MDJFBH); + public int deleteTbMdjfjxxxbById(String mdjfbh); /** * 批量删除矛盾纠纷简项信息 * - * @param MDJFBHs 需要删除的数据ID + * @param mdjfbhs 需要删除的数据ID * @return 结果 */ - public int deleteTbMdjfjxxxbByIds(String[] MDJFBHs); + public int deleteTbMdjfjxxxbByIds(String[] mdjfbhs); } diff --git a/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbMdjfjxxxbMapper.xml b/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbMdjfjxxxbMapper.xml index 3e5160b..2ca2abf 100644 --- a/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbMdjfjxxxbMapper.xml +++ b/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbMdjfjxxxbMapper.xml @@ -5,25 +5,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -33,24 +33,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -62,82 +62,82 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" insert into tb_mdjfjxxxb - MDJFBH, - FSSJ, - XZQHDM, - XZQHMC, - FSDZ, - MDJFLY, - TBDWMC, - MDJFLX, - MDJFJS, - MDJFCD, - DSR_SFZHM, - DJR_SFZHM, - DJSJ, - ZRDWDM, - ZRDWMC, - TCSJ, - TCGCJS, - TCJG, - JLGXSJ, + MDJFBH, + FSSJ, + XZQHDM, + XZQHMC, + FSDZ, + MDJFLY, + TBDWMC, + MDJFLX, + MDJFJS, + MDJFCD, + DSR_SFZHM, + DJR_SFZHM, + DJSJ, + ZRDWDM, + ZRDWMC, + TCSJ, + TCGCJS, + TCJG, + JLGXSJ, - #{MDJFBH}, - #{FSSJ}, - #{XZQHDM}, - #{XZQHMC}, - #{FSDZ}, - #{MDJFLY}, - #{TBDWMC}, - #{MDJFLX}, - #{MDJFJS}, - #{MDJFCD}, - #{DsrSfzhm}, - #{DjrSfzhm}, - #{DJSJ}, - #{ZRDWDM}, - #{ZRDWMC}, - #{TCSJ}, - #{TCGCJS}, - #{TCJG}, - #{JLGXSJ}, + #{mdjfbh}, + #{fssj}, + #{xzqhdm}, + #{xzqhmc}, + #{fsdz}, + #{mdjfly}, + #{tbdwmc}, + #{mdjflx}, + #{mdjfjs}, + #{mdjfcd}, + #{dsrSfzhm}, + #{djrSfzhm}, + #{djsj}, + #{zrdwdm}, + #{zrdwmc}, + #{tcsj}, + #{tcgcjs}, + #{tcjg}, + #{jlgxsj}, update tb_mdjfjxxxb - FSSJ = #{FSSJ}, - XZQHDM = #{XZQHDM}, - XZQHMC = #{XZQHMC}, - FSDZ = #{FSDZ}, - MDJFLY = #{MDJFLY}, - TBDWMC = #{TBDWMC}, - MDJFLX = #{MDJFLX}, - MDJFJS = #{MDJFJS}, - MDJFCD = #{MDJFCD}, - DSR_SFZHM = #{DsrSfzhm}, - DJR_SFZHM = #{DjrSfzhm}, - DJSJ = #{DJSJ}, - ZRDWDM = #{ZRDWDM}, - ZRDWMC = #{ZRDWMC}, - TCSJ = #{TCSJ}, - TCGCJS = #{TCGCJS}, - TCJG = #{TCJG}, - JLGXSJ = #{JLGXSJ}, + FSSJ = #{fssj}, + XZQHDM = #{xzqhdm}, + XZQHMC = #{xzqhmc}, + FSDZ = #{fsdz}, + MDJFLY = #{mdjfly}, + TBDWMC = #{tbdwmc}, + MDJFLX = #{mdjflx}, + MDJFJS = #{mdjfjs}, + MDJFCD = #{mdjfcd}, + DSR_SFZHM = #{dsrSfzhm}, + DJR_SFZHM = #{djrSfzhm}, + DJSJ = #{djsj}, + ZRDWDM = #{zrdwdm}, + ZRDWMC = #{zrdwmc}, + TCSJ = #{tcsj}, + TCGCJS = #{tcgcjs}, + TCJG = #{tcjg}, + JLGXSJ = #{jlgxsj}, - where MDJFBH = #{MDJFBH} + where MDJFBH = #{mdjfbh} - delete from tb_mdjfjxxxb where MDJFBH = #{MDJFBH} + delete from tb_mdjfjxxxb where MDJFBH = #{mdjfbh} delete from tb_mdjfjxxxb where MDJFBH in - - #{MDJFBH} + + #{mdjfbh} diff --git a/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbXjxdzhxxbMapper.xml b/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbXjxdzhxxbMapper.xml index 2129b61..37953c8 100644 --- a/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbXjxdzhxxbMapper.xml +++ b/basepro-manager/basepro-manager-dao/src/main/resources/mybatis/mapper/TbXjxdzhxxbMapper.xml @@ -51,15 +51,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, XZQHDM, XZQHMC, GAJGDM, GAJGMC, ZAFKRQ, TRXFJLSL, TRXFCLSL, QFQZSL, ZAKDSL, JCCLSL, PCRYSL, XCZDBWSL, JCFXYHCSSL, FXYHCS_CZWSL, FXYHCS_LGSL, FXYHCS_YLCSSL, PCAQYHSL, XCAQYHSL, SJZDWP_QZ, SJZDWP_ZD, SJZDWP_ZY, SJZDWP_LG, SJZDWP_YZBHXP, SJZDWP_JDHXP, SJZDWP_GZDJ, PCMDJFSL, HJMDJFSL, HLJTJFSL, HJHLJTJFSL, LLJFSL, HJLLJFSL, JJJFSL, HJJJJFSL, YLJFSL, HJYLJFSL, YXGAJCZSL, SLZHKDSL, ZAPCRYSL, ZAPCCLSL, ZHZTRYSL, QFSFRYSL, CHWP_GZDJ from tb_xjxdzhxxb + select id, XZQHDM, XZQHMC, GAJGDM, GAJGMC, ZAFKRQ, TRXFJLSL, TRXFCLSL, QFQZSL, ZAKDSL, JCCLSL, PCRYSL, XCZDBWSL, JCFXYHCSSL, + FXYHCS_CZWSL, FXYHCS_LGSL, FXYHCS_YLCSSL, PCAQYHSL, XCAQYHSL, SJZDWP_QZ, SJZDWP_ZD, SJZDWP_ZY, SJZDWP_LG, SJZDWP_YZBHXP, + SJZDWP_JDHXP, SJZDWP_GZDJ, PCMDJFSL, HJMDJFSL, HLJTJFSL, HJHLJTJFSL, LLJFSL, HJLLJFSL, JJJFSL, HJJJJFSL, YLJFSL, HJYLJFSL, + YXGAJCZSL, SLZHKDSL, ZAPCRYSL, ZAPCCLSL, ZHZTRYSL, QFSFRYSL, CHWP_GZDJ from tb_xjxdzhxxb +
+
+
+ +
+
+ + +
+
+
+
+
+
+ +
+ +
-
- -
- +
+
+
+ +
+ +
+
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - +
+
+ +
+ +
-
- -
- +
+
+
+ +
+ +
+
-
-
- -
- -
-
-
- -
-
- - +
+
+ +
+ +
-
- -
- +
+
+
+ +
+ +
+
+
+
+
+ +
+
+ + +
+
+
+
-
- -
- +
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
-
- -
-
- - +
+
+
+ +
+ +
+
+
+
+
+ +
+
+ + +
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+
+ + +
+
@@ -143,27 +206,27 @@ } } - $("input[name='FSSJ']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", + $("input[name='fssjStr']").datetimepicker({ + format: "yyyy-mm-dd hh:ii:ss", + minView: 0, autoclose: true }); - $("input[name='DJSJ']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", + $("input[name='djsjStr']").datetimepicker({ + format: "yyyy-mm-dd hh:ii:ss", + minView: 0, autoclose: true }); - $("input[name='TCSJ']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", + $("input[name='tcsjStr']").datetimepicker({ + format: "yyyy-mm-dd hh:ii:ss", + minView: 0, autoclose: true }); - $("input[name='JLGXSJ']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", + $("input[name='jlgxsjStr']").datetimepicker({ + format: "yyyy-mm-dd hh:ii:ss", + minView: 0, autoclose: true }); diff --git a/basepro-manager/basepro-manager-web/src/main/resources/templates/mdjf/edit.html b/basepro-manager/basepro-manager-web/src/main/resources/templates/mdjf/edit.html index 0cf1df8..5e1565e 100644 --- a/basepro-manager/basepro-manager-web/src/main/resources/templates/mdjf/edit.html +++ b/basepro-manager/basepro-manager-web/src/main/resources/templates/mdjf/edit.html @@ -7,127 +7,192 @@
- -
- -
-
- - + +
+
+
+ +
+
+ + +
+
+
+
+
+
+ +
+ +
-
- -
- + +
+
+
+ +
+ +
+
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - +
+
+ +
+ +
-
- -
- +
+
+
+ +
+ +
+
-
-
- -
- -
-
-
- -
-
- - +
+
+ +
+ +
-
- -
- +
+
+
+ +
+ +
+
-
-
- -
- -
-
-
- -
-
- - +
+
+ +
+
+ + +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+
+ + +
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+
+ + +
+
+
+
+
+
@@ -144,25 +209,25 @@ } } - $("input[name='FSSJ']").datetimepicker({ + $("input[name='fssj']").datetimepicker({ format: "yyyy-mm-dd", minView: "month", autoclose: true }); - $("input[name='DJSJ']").datetimepicker({ + $("input[name='djsj']").datetimepicker({ format: "yyyy-mm-dd", minView: "month", autoclose: true }); - $("input[name='TCSJ']").datetimepicker({ + $("input[name='tcsj']").datetimepicker({ format: "yyyy-mm-dd", minView: "month", autoclose: true }); - $("input[name='JLGXSJ']").datetimepicker({ + $("input[name='jlgxsj']").datetimepicker({ format: "yyyy-mm-dd", minView: "month", autoclose: true diff --git a/basepro-manager/basepro-manager-web/src/main/resources/templates/mdjf/mdjfjxxxb.html b/basepro-manager/basepro-manager-web/src/main/resources/templates/mdjf/mdjfjxxxb.html index b43a3d3..c6caa5c 100644 --- a/basepro-manager/basepro-manager-web/src/main/resources/templates/mdjf/mdjfjxxxb.html +++ b/basepro-manager/basepro-manager-web/src/main/resources/templates/mdjf/mdjfjxxxb.html @@ -2,6 +2,8 @@ + +
@@ -10,78 +12,46 @@
    -
  • -

    矛盾纠纷发生时间:

    - - - - +
  • + +
  • -

    矛盾纠纷地行政区划代码:

    - + +
  • -

    矛盾纠纷地行政区划名称:

    - + +
  • +
  • -

    矛盾纠纷发生地址:

    - -
  • -
  • -

    矛盾纠纷来源(0:工作发现, 1:接处警发现, 2:其他单位通报):

    - -
  • -
  • -

    通报单位名称:

    - -
  • -
  • -

    矛盾纠纷类型(见矛盾纠纷类型字典表):

    - -
  • -
  • -

    矛盾纠纷程度(0:简单矛盾纠纷, 1:一般矛盾纠纷 ,2:复杂疑难矛盾纠纷, 3:重大矛盾纠纷):

    - -
  • -
  • -

    当事人一身份证号码:

    - -
  • -
  • -

    当事人二身份证号码:

    - + +
  • -

    登记时间:

    - - - - -
  • -
  • -

    责任公安机关代码:

    - -
  • -
  • -

    责任公安机关名称:

    - -
  • -
  • -

    矛盾纠纷调处时间:

    + -
  • -

    矛盾纠纷调处结果(0:未化解, 1:已化解,2:移交):

    - -
  • -
  • -

    记录更新时间:

    - - - - + +
  • +
  •  搜索  重置 @@ -92,10 +62,10 @@
+ '; + //}else if(data[i].indexOf('e3033e46c7067234571e13c215481d1d')>0){//D + }else if(data[i].indexOf('87dff42bd2505998a3d1c4a01949b7cc')>0){ + str += '
  • '; + str += '
  • '; + }else{ + str += '
  • '; + } + } + } + $('#points-sf').html(str); + } + + //处理评论数据(包括第一屏右侧好评度) + Goods.commentTpl = function(data) { + //如果第一页,刷新首屏右侧 + if (_SF_CFG.commentPage == 1 && data && _SF_CFG.commentType == 0) { + $("#positive-sf").attr('style', data.score.positive + '%'); + $("#positive-num-sf").html(data.score.positive); + //写入最新好评 + if (data.best.author && data.best.comment) { + var str = '
    '+ data.pageCount[0] +' 条评论
    ' + + '
    '+ data.best.author +':'+ data.best.comment +'
    '; + $("#bestComment-sf").html(str); + }else{ + if(data.pageCount[0]>0){ + var str = '
    '+ data.pageCount[0] +' 条评论
    '; + $("#bestComment-sf").html(str); + } + } + $("#user-comment-sf").html(data.score.positive); + + var sorceListStr = ''; + sorceListStr += '
    好评
    '+ data.score.positive +'%
    '; + sorceListStr += '
    中评
    '+ data.score.middle +'%
    '; + sorceListStr += '
    差评
    '+ data.score.bad +'%
    '; + $("#sorce-star-sf").html(sorceListStr); + $(".comment-total-sf").html(data.pageCount[0]); + if(0==data.pageCount[0]){ + var str = '

    还没人评论哦!

    马上评价

    '; + $("#bestComment-sf").html(str); + } + var fontIndex = 0; + $("#comment-filter-sf").find('font').each(function(){ + $(this).html('('+data.pageCount[fontIndex]+')'); + fontIndex++; + }); + } + if (_SF_CFG.commentPage == 1 && data.pageCount[0] < 1) { + $(".showAll").hide(); + } + + //写入评论列表 + var commentsStr = ''; + if (data.pageCount[_SF_CFG.commentType]) { + for (var i in data.data) { + var comment = data.data[i]; + commentsStr += '
  • '; + //等级 + if (comment.rankInfo) { + commentsStr += '
    '+ comment.rankInfo.rankName +'
    '; + } + commentsStr += '
    ' + comment.author + '
    '; + commentsStr += '
    '; + //评论标题 + if (comment.comment_score) { + commentsStr += ''; + } + if (comment.new_title) { + commentsStr += ''; + } + commentsStr += ''+ Goods.formatDateTime(comment.time) +''; + commentsStr += (comment.comment_from ? ''+(comment.comment_from_url ? '': '')+'来自'+comment.comment_from + (comment.comment_from_url ? '': '') + '' : '') + '
    '; + commentsStr += '
    评价内容:
    '+comment.comment+'
    '; + if (comment.comments_for) { + commentsStr += '
    客服回复:
    '+ comment.comments_for +'
    '; + } + commentsStr += '
    '; + if (comment.images) { + commentsStr += '
      '; + for(var i = 0; i < comment.images.length; i++) { + commentsStr += '
    • '; + } + commentsStr += '
    • 查看晒单
    • '; + commentsStr += '
    '; + } + commentsStr += ''; + commentsStr += '
  • '; + } + } + $("#have-none-comments").remove(); + $("#comment-lists-sf").html(''); + if (commentsStr == '') { + var tipshtml = '
    还木有评价额,快抢沙发吧!
    '; + if (_SF_CFG.commentType > 0) { + tipshtml = '
    暂无评价数据!
    '; + } + $(tipshtml).insertBefore($("#comment-lists-sf")); + } else { + $("#comment-lists-sf").html(commentsStr); + $(".comment-like-sf").click(function(){ + var commentLike = $(this), + commentId = commentLike.attr('comment-id'), + hasLiked = commentLike.attr('has-liked'), + number = commentLike.attr('like-number'); + if (hasLiked == '0') { + $.post("/comments/addLike/", {'cid' : commentId}, function(r){ + if (r.error == 2) { + SF.Widget.login(window.location.href); + } else if (r.error) { + //jAlert(r.msg); + } else { + commentLike.attr('has-liked', 1); + commentLike.attr('title', '已赞过'); + commentLike.addClass('click'); + if (number > 0) { + commentLike.html(' '+(Number(number)+1)); + } else { + commentLike.html(' 1'); + } + } + }, 'json'); + } + }); + } + + //写入分页信息 + if (data.pagestr) { + $("#comment-ajax-page-sf").html(data.pagestr); + } + } + + //相关品牌 + Goods.brandsTpl = function(data){ + var brandStr = ''; + if (data.count) { + var sortNumber = 1; + for (var i in data.list) { + var arr = data.list[i]; + brandStr += ''+ arr.name +''; + sortNumber++; + } + brandStr = '

    相关品牌

    • ' + brandStr + '
    '; + $("#brandCon").show().html(brandStr); + Goods.brandToggle(); + } + } + + //销售排行 + Goods.saleTopTpl = function(data) { + var saleStr = '', + number = 1, + arr, + classFore, + imgStt, + priceStr; + if (data.count) { + for (var i in data.list) { + var arr = data.list[i]; + if (number < 4) { + classFore = 'class="fore"'; + imgStr = '
    '; + priceStr = '
    ¥'+ arr.price +'
    '; + } else { + classFore = ''; + imgStr = ''; + priceStr = ''; + } + if (number == data.count) { + classFore = 'class="last"'; + } + saleStr += '
  • '; + saleStr += imgStr; + saleStr += ''; + saleStr += priceStr + saleStr += '
  • '; + number++; + } + saleStr = '

    热销排行

      ' + saleStr + '
    '; + $("#saletop-sf").show().html(saleStr); + } + } + + //组合商品 + Goods.zuheProductTpl = function(data) { + var zuheStr = '', + sortNumber = 0, + arr; + if (data) { + for (var i in data) { + arr = data[i]; + sortNumber++; + zuheStr += '
  • ' + arr.name + '
    '+arr.str+':'+arr.price+'元
  • '; + } + } + if (!zuheStr) { + $("#zuhe").hide(); + } else { + $("#groupPro0").html(zuheStr); + 0 !== $("#groupPro0").length && Goods.groupShow("#groupPro0"); + Goods.calculateZuhePrice(); + //为组合商品绑定计算价格事件 + $('.gbatch').click(Goods.calculateZuhePrice); + } + } + + //组合套装 + Goods.packageTpl = function(data) { + var pack, item, packStr = '', packItemStr, sortPackNumber = 0, sortProductNumber = 0; + if (data.count) { + for (var i in data.list) { + pack = data.list[i]; + packItemStr = ''; + sortPackNumber++; + if (pack.list) { + for ( var j in pack.list) { + item = pack.list[j]; + sortProductNumber++; + packItemStr += '
  • ' + item.name + '
    '+ item.priceStr + item.price +'元
  • '; + + } + } + packStr += '
      ' + + packItemStr + + '
    ' + + '
    优惠价格:'+ pack.price +'
    '; + } + } + $("#package").html(packStr); + 0 !== $("#package").length && Goods.packageShow(); + } + + //晒单展示 + Goods.sdTpl = function(data) { + var sdStr = '', item, img; + if (data.pageCount) { + for ( var i in data.data) { + item = data.data[i]; + sdStr += '
    '; + if (item.rankInfo) { + sdStr += '
    '; + sdStr += '
    '+ item.rankInfo.rankName +'
    '; + } + sdStr += '
    ' + item.author + '
    '; + sdStr += '
    '; + sdStr += ''+ item.title +''+ item.time +'
    '; + sdStr += '
    ' + item.comment + '
    '; + sdStr += '
      '; + if (item.imags) { + for (var j in item.imags) { + img = item.imags[j]; + sdStr += '
    • '; + } + } + sdStr += '
    '; + } + + } + if (_SF_CFG.sdPage == 1) { + $(".sd-total-sf").html(data.pageCount); + } + if (sdStr == '') { + $('
    暂无晒单,快抢沙发吧!
    ').insertBefore($('#sd-lists-sf')); + } else { + $("#sd-lists-sf").html(sdStr); + } + + //写入分页信息 + if (data.pagestr) { + $("#sd-ajax-page-sf").html(data.pagestr); + } + } + + //购买此商品的顾客最终购买了 + Goods.buyrebuyTpl = function(data) { + var buyStr = '', item, sortNumber = 0; + if (data) { + for (var i in data) { + item = data[i]; + sortNumber++; + buyStr += '
  • '; + buyStr += '
    '; + if (item.adword) { + buyStr += ''; + buyStr += '
    ' + item.adword + '
    '; + } else { + buyStr += ''; + } + buyStr += '
    ¥'+ item.price +'
    '; + buyStr += '
  • '; + } + } + $("#buyrebuy-sf").html(buyStr); + } + + //逛 + Goods.getHistory = function (){ + $.post("/product/guang/",{},function(str){ + if(str){ + $("#history_con").html(str); + } + }); + } + + //set 历史访问 + Goods.setHistory = function() { + $.post("/product/history/id/" + _SF_CFG.productId,{style:1},function(str){ }); + } + + //购买此商品的顾客还购买了(购买弹层用) + Goods.buyAlsoBuy = function(data) { + var buyStr = '', number = 4; + if (data) { + var sortNumber = 1; + for (var i in data) { + if (number < 1) break; + var item = data[i]; + buyStr += '
  • '; + buyStr += ''+ item.name  +''; + buyStr += '
    '; + buyStr += '
    ¥'+ item.price +'
  • '; + number--; + sortNumber++; + } + } + if (buyStr) { + buyStr = '
    购买过该商品的用户还购买了
      ' + buyStr + '
    ' + $("#elsebuy").html(buyStr); + }else{ + $("#elsebuy").hide(); + } + } + + //浏览此商品的顾客还浏览了 + Goods.browserbrowseTpl = function(data) { + var buyStr = '', item, sortNumber = 0; + if (data) { + for (var i in data) { + item = data[i]; + sortNumber++; + buyStr += '
  • '; + buyStr += '
    '; + if (item.adword) { + buyStr += ''; + buyStr += '
    ' + item.adword + '
    '; + } else { + buyStr += ''; + } + buyStr += '
    ¥'+ item.price +'
    '; + buyStr += '
  • '; + } + } + $("#browserbrowse-sf").html(buyStr); + } + + //处理预售 + Goods.preSellTpl = function(data) { + if (data.presell) { //有预售 + //商品名称前增加预售汉字 start + var goodsName = $("#base_name-sf").html(); + goodsName = goodsName.replace(/(.*?)<\/strong>/gi,''); + goodsName = '【预售】'+goodsName; + $("#base_name-sf").html(goodsName); + changeGoodsNameClass(goodsName); + //商品名称前增加预售汉字 end + var item, fprice, sfpricetpl, tpl, preSellStr = ''; + + _SF_CFG.sfprice = data.sfprice; + _SF_CFG.price = data.presell.price; + _SF_CFG.warehouse = data.siteId; + + if (data.presell.warn) { + for (var i in data.presell.warn) { + item = data.presell.warn[i]; + preSellStr += item; + } + } + preSellStr = '
    ' + + preSellStr + + '
    '; + $("#presell-info-sf").show().html(preSellStr); + + if (data.presell.stateid == 1) { + $("#buy-nogood-sf").hide(); //无货 + $("#buy-btn-sf").show(); //显示购买btn + $("#finalbuy-sf").hide();//看过该商品的用户最终购买了改为我们为您推荐了 + $("#viewBuyDiv").show(); + Goods.viewBuy(_SF_CFG.productId, Goods.viewBuyLeftTpl);//浏览最终购买了 + } else { + $("#add-cart-r-btn-sf").hide(); + $("#buy-nogood-sf").show(); + $("#buy-btn-sf").hide(); + $("#viewBuyDiv").hide(); //浏览此商品的顾客还买了 + Goods.viewBuy(_SF_CFG.productId, Goods.viewBuyTpl);//我们为您推荐了 + } + if(data.cansale == false){ + $("#buy-nogood-sf").hide(); //无货 + $("#buy-btn-sf").hide(); //显示购买btn + $("#buy-canntsend-sf").show(); //无法送达 + }else{ + $("#buy-canntsend-sf").hide(); //无法送达 + } + + //预售价 + fprice = _SF_CFG.price.toString().split('.'); + if (fprice.length > 1) { + sfpricetpl = '' + fprice[0] + '.' + fprice[1] + ''; + } else { + sfpricetpl = '' + fprice[0] + ''; + } + if (_SF_CFG.sfprice) { + tpl = '
    预售价:' + + sfpricetpl + + '
    '; + } else { + tpl = '
    预售价:' + + sfpricetpl + + '
    '; + } + tpl += '
    '; + $("#price-sf").html(tpl); + //处理预售购物车按钮 + $("#cart-add-btn-sf").html('预约购买'); + $("#cart-add-btn-sf").addClass('preBtn'); + $('#quickBuy').css('display','none'); + $("#sendTime").show(); + $("#sendTime").html(data.presell.sendTime); + $("#add-cart-r-btn-sf").removeClass().addClass('pre-btn'); + $("#add-cart-r-btn-sf").html('预约购买'); + Goods.productStamp(); + //隐藏促销信息 + $("#promotion-sf").hide(); + } else { //无预售,则读取库存 + $("#presell-info-sf").hide(); + var goodsName = $("#base_name-sf").html(); + //去除预售汉字start + goodsName = goodsName.replace(/(.*?)<\/strong>/gi,''); + $("#base_name-sf").attr('title',goodsName); + $("#base_name-sf").html(goodsName); + Goods.price(_SF_CFG.productId, Goods.priceTpl); + Goods.stock(_SF_CFG.productId, Goods.stockTpl); + //去除预售汉字end + } + } + + //推荐商品展示 + Goods.recommendTpl = function(data) { + var recStr = ''; + if (data) { + var sortNumber = 1; + for (var i in data) { + var item = data[i]; + recStr += '
  • '; + if (item.price) { + //if (item.sfprice) { + // recStr += '
    '+ item.price +'¥'+ item.sfprice +'
    '; + //} else { + recStr += '
    '+ item.price +'
    '; + //} + } else { + recStr += '
    '+ item.sfprice +'
    '; + } + recStr += '
  • '; + sortNumber++; + } + if (recStr) { + recStr = '

    根据浏览为您推荐

      ' + recStr + '
    '; + $("#recommend-by-view-sf").show().html(recStr); + } + } + } + + //浏览最终购买展示 + Goods.viewBuyTpl = function(data) { + var viewStr = '', sortNumber = 0; + if (data) { + for (var i in data) { + var item = data[i]; + sortNumber++; + viewStr += '
  • '+item.name+'
    '; + viewStr += ''; + viewStr += '
    ¥'+ item.price +'
  • '; + } + if (viewStr) { + viewStr = '
    我们为您推荐了
      ' + viewStr + '
    '; + $("#finalbuy-sf").show().html(viewStr); + } + } + } + + //浏览最终购买左侧展示 + Goods.viewBuyLeftTpl = function(data) { + var buyStr = '', item, sortNumber = 0; + + if (data) { + for (var i in data) { + item = data[i]; + sortNumber++; + buyStr += '
  • '; + buyStr += '
    '; + if (item.adword) { + buyStr += ''; + buyStr += '
    ' + item.adword + '
    '; + } else { + buyStr += ''; + } + buyStr += '
    ¥'+ item.price +'
    '; + buyStr += '
  • '; + } + } + $("#viewBuyDiv").hide(); + if(buyStr){ + $("#viewbuy-sf").html(buyStr); + $("#viewBuyDiv").show(); + } + } + + //收藏还收藏了展示 + Goods.userStoreTpl = function(data) { + var html = '', sortNumber = 0; + if (data) { + for (var i in data) { + var item = data[i]; + sortNumber++; + html += '
  • '; + html += ''+ item.name +'
    '; + html += ''; + html += '
    ¥'+ item.price +'
  • '; + } + if (html) { + html = '
    收藏该商品的用户还收藏了
      ' + html + '
    '; + $("#faved-also-fav-sf").html(html); + } + } + + } + + //饮食文化 + Goods.articleTpl = function(data){ + var html = ''; + for (var i = 0, len = data.data.length; i < len; i++) { + var item = data.data[i]; + html += '
  • '; + html += '

    '+ item['title'] +'

    '; + html += '

    '+ item['description'] +'

    '; + html += '
  • '; + } + html = '
      ' + html + '
    '; + $("#div-article").html(html); + } + + //顺丰包邮标识 + Goods.productStamp = function() { + if(4==_SF_CFG.businessModel || 5==_SF_CFG.businessModel || _SF_CFG.businessModel == 7){ + $("#productStamp").remove(); + return; + } + $("#productStamp").remove(); + if (_SF_CFG.presell || _SF_CFG.price >= 199) { + $(".pItemsPrice").append('
    '); + } else { + //get weight + var + pWeightMatch = $(".pdetail").html().match(/重量:(.+)kg/), + weight = pWeightMatch && pWeightMatch[1] ? pWeightMatch[1] * 1 : 0; + if (weight <= 10) { + $(".pItemsPrice").append('
    '); + } + } + } + + //GOOGLE再营销 + Goods.GoogleTpl = function(){ + if(_SF_CFG.price){ + window.google_tag_params.ecomm_totalvalue = _SF_CFG.price; + } + if(_SF_CFG.warehouse && window.google_tag_params.ecomm_prodid.indexOf('-') < 0){ + window.google_tag_params.ecomm_prodid = _SF_CFG.warehouse+'-'+window.google_tag_params.ecomm_prodid; + } + if(_SF_CFG.price && _SF_CFG.warehouse && !isChange){ + window.google_trackConversion({ + google_conversion_id: 990764409, + google_custom_params: window.google_tag_params, + google_remarketing_only: true + }); + } + } + window.Goods = Goods; +})(); + + +//判断商品名称长度,大于指定长度后增加class +function changeGoodsNameClass(goodsName){ + //预售商品去除预售html标签 + if(_SF_CFG.presell){ + goodsName = goodsName.replace(/(.*?)<\/strong>/gi,'【预售】'); + $("#base_name-sf").attr('title',goodsName); + } +} + +//服务保障icon +function poptipShow(){ + $(".has_poptip").hover(function(){ + var top = $(".points").offset().top + 85,left = $(".points").offset().left + 20,a_left = 26,i = $(this).index(); + if (0==i){a_left =145}else if(1==i){a_left=75}else{a_left=10} + if ($(this).hasClass("attr3")){ + $("body").append("
    本商品由顺丰速运承运
    保障您享受高品质物流服务
    "); + }else{ + $("body").append("
    本商品经国际检测机构SGS
    质量鉴定,保障您享受安全
    高品质的商品
    "); + } + $(".ui-poptip").css({"top":top,"left":left});$(".ui-poptip-arrow-11").css("right",a_left); + },function(){ + $(".ui-poptip").remove(); + }); +} + + +//去除预售商品名称中html标签 +function changeGoodsAdwordClass(adword){ + var goodsName = $("#base_name-sf").attr('title'); + if(goodsName.length>29 && adword){ + $("#base_name-sf").attr('class','title-long'); + } + var goodsNameClass = $("#base_name-sf").attr('class'); + if('title-long'==goodsNameClass && adword.length>29){ + $("#adword-sf").attr("class","title-long"); + } + $("#adword-sf").attr("title",adword); + if('title-long'==goodsNameClass){ + $("#adword-sf").html(adword); + }else{ + $("#adword-sf").html('  '+adword); + } +} + +$(document).ready(function(){ + isChange = 0; + //判断是否需要弹出评论提示框或跳转用户中心评论页 + var currentUrl = window.location.href; + if(1==$.cookie('flagComment') && currentUrl.indexOf("html#flagComment")>=0){ + Goods.gotoPl(); + } + //判断是否需要弹出收藏成功框 + if(1==$.cookie('flagAddFav') && currentUrl.indexOf("html?flagAddFav=1")>=0){ + var goodsAddFavObj = $("#goodsAddFav"); + Goods.addFav(goodsAddFavObj); + } + //为购买数量绑定事件 + $("#reduce-sell-num").click(function(){ + if(!$("#reduce-sell-num").hasClass('disable')){ + Goods.changeNum(1); + } + }); + $("#add-sell-num").click(function(){ + if(!$("#add-sell-num").hasClass('disable')){ + Goods.changeNum(2); + } + }); + $("#number_" + _SF_CFG.productId).blur(function(){ + Goods.changeNum(4); + }); + + //初始化购物数量 + $("#number_" + _SF_CFG.productId).val(_SF_CFG.minBuy); + + /* //处理预售、库存、价格 + if (_SF_CFG.presell) { + Goods.preSell(_SF_CFG.productId, Goods.preSellTpl); + } else { + Goods.price(_SF_CFG.productId, Goods.priceTpl); + Goods.stock(_SF_CFG.productId, Goods.stockTpl); + } + + //获取地区 + Goods.getOldRegion(Goods.regionOldTpl); + + //获取父子商品 + Goods.fatherson(_SF_CFG.productId, _SF_CFG.parentId, document.location.href.split('.html')[0] + '.html', Goods.fathersonTpl); + + //获取右上角标签 + Goods.productIcon(_SF_CFG.productId, Goods.productIconTpl); + + //获取用户评论 + Goods.getPl(_SF_CFG.pid, _SF_CFG.commentPage, 10, Goods.commentTpl); + + //获取用户晒单 + Goods.getSd(_SF_CFG.productId, _SF_CFG.sdPage, 10, 0, Goods.sdTpl) + + //相关品牌 + Goods.brands(_SF_CFG.oneCategoryId, _SF_CFG.threeCategoryId, Goods.brandsTpl); + + //销售排行 + Goods.saleTop(_SF_CFG.threeCategoryId, Goods.saleTopTpl); + + //购买此商品顾客还购买了 + Goods.buyrebuy(_SF_CFG.productId, Goods.buyrebuyTpl); + + //浏览了还浏览了 + Goods.browserbrowse(_SF_CFG.productId, Goods.browserbrowseTpl); + + //获取相关商品 + if (_SF_CFG.zuheProducts) { + Goods.zuheProduct(_SF_CFG.zuheProducts, Goods.zuheProductTpl); + } + + //Goods.shipfee(_SF_CFG.productId, Goods.shipfeeTpl); + + //获取组合商品 + Goods.package(_SF_CFG.productId, Goods.packageTpl); + + //获取推荐商品 + Goods.recommendProduct(_SF_CFG.productId, Goods.recommendTpl); + + //逛 + Goods.getHistory(); + + //写入History + Goods.setHistory(); + + //右侧浮动 + sfAddCart.init();*/ + + //商品信息Tab切换 + $(".pTab li").click(function(){ + if($(".pDetail").hasClass("pFixed")){ + $(".pDetail").removeClass("pFixed"); + var pTabTop = $(".pTab").offset().top -50; + $(document).scrollTop(pTabTop); + } + var $this = $(this); + $this.addClass("curr").siblings().removeClass("curr"); + $(".pCont").hide(); + $('#' + $this.attr('pCont-target')).show(); + if ($this.attr('pCont-target') != 'div-shaidan' && $this.attr('pCont-target') != 'div-comment') { + $("#div-comment").show(); + $("#div-shaidan").show(); + } + }); + if($(".pDetail").length > 0){ + var pDetailFixed=function(){ + var pDetailTop = $("#flow-layer-sf").offset().top; + var pDomTop = $(document).scrollTop(); + (pDomTop > pDetailTop) ? $(".pDetail").addClass("pFixed") : $(".pDetail").removeClass("pFixed"); + (pDomTop > pDetailTop) ? $(".pDetail").addClass("pFixed").find('.p-buy-phone').show() : $(".pDetail").removeClass("pFixed").find('.p-buy-phone').hide(); + }; + $(window).bind("scroll", pDetailFixed); + pDetailFixed(); + } + + if($(".s-top").length > 0){ + $(".s-top").click(function() { + $("html, body").scrollTop(0); + }); + var bToTop = function() { + var st = $(document).scrollTop(); + (st > 0) ? $(".s-top").css("display","block") : $(".s-top").css("display","none"); + }; + $(window).bind("scroll", bToTop); + bToTop(); + } + //手机扫描二维码 + $(".p-buy-phone").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}); + + //兼容旧JS,修改地区后调用 + window.changeOpen = function() { + changeGoodsAdwordClass("");//广告语清空 + provinceid = getCookie('provinceid'); + isChange = 1;//修改地区(用于区分头次加载或修改地区操作) + if (_SF_CFG.presell) { + Goods.preSell(_SF_CFG.productId, Goods.preSellTpl); + } else { + Goods.price(_SF_CFG.productId, Goods.priceTpl); + Goods.stock(_SF_CFG.productId, Goods.stockTpl); + } + //获取组合商品 + Goods.package(_SF_CFG.productId, Goods.packageTpl); + //获取相关商品 + if (_SF_CFG.zuheProducts) { + Goods.zuheProduct(_SF_CFG.zuheProducts, Goods.zuheProductTpl); + } + //getPackage(); + getAllCity(); + $("#add-sell-num").removeClass('disable'); + //Goods.shipfee(_SF_CFG.productId, Goods.shipfeeTpl); + } + + //本页面定位到评论位置 + window.ToCommentPosition = function() { + $(".pTab li:eq("+ (_SF_CFG.businessModel == 3 ? 1: 2) +")").click(); + $("body,html").animate({ scrollTop : $("#comment-lists-sf").offset().top - 255}, 1000); + } + window.GetUserComment = function(page, type) { + _SF_CFG.commentPage = page; + Goods.getPl(_SF_CFG.pid, _SF_CFG.commentPage, 10, Goods.commentTpl); + $("body,html").animate({ scrollTop : $("#comment-lists-sf").offset().top - 220}, 1000); + } + //按照分页刷新用户晒单 + window.GetUserSd = function(page) { + _SF_CFG.sdPage = page; + Goods.getSd(_SF_CFG.productId, _SF_CFG.sdPage, 10, 0, Goods.sdTpl) + } + //购买还购买了(购买弹层专用) + window.BuyAlsoBuy = function(pid) { + Goods.buyrebuy(pid, Goods.buyAlsoBuy); + } + + $("#buy-zuhe-sf").click(function(){ + var gidstr = _SF_CFG.productId; + $('.gbatch:checked').each( + function (){ + gidstr += ',' + $(this).attr('value'); + } + ); + cartAdd(gidstr, 0, 1, 2, 1, this, 3); + }); + + $("#comment-filter-sf a").click(function(){ + var $this = $(this), + type = $this.attr('data-type'); + $("#comment-filter-sf h3").removeClass('curr'); + $this.parent().addClass('curr'); + _SF_CFG.commentType = type; + _SF_CFG.commentPage = 1; + Goods.getPl(_SF_CFG.pid, _SF_CFG.commentPage, 10, Goods.commentTpl); + }); + + var ScrollCommentAndClick + = "var url = window.document.location.href," + + "comment = url.split('#').pop();" + + "if (comment == 'comment') {" + + "var commentTop = $(\"#flow-layer-sf\").offset().top;" + + "$(\"body,html\").animate({ scrollTop : commentTop - 35}, 1000);" + + "setTimeout('$(\".pTab li:eq("+ (_SF_CFG.businessModel == 3 ? 1: 2) +")\").click();', 800);" + + "}"; + setTimeout(ScrollCommentAndClick, 1500); + + /*@@手机二维码 start*/ + $('.phone_client').click(function(event){ + event.stopPropagation(); + $(this).find('.phone_clientCode').show(); + $(this).removeClass('phone_border'); + $(".phone_clientCode").find(".p-logo").show(); + $(this).css('cursor','default'); + $(".chooseBtns").css('z-index',92); + }) + $('.ac_phoneClose').click(function(event){ + event.stopPropagation(); + $(this).parent('.phone_clientCode').hide(); + $('.phone_client').addClass('phone_border'); + $(".phone_clientCode").find(".p-logo").hide(); + $('.phone_client').css('cursor','pointer'); + $('.chooseBtns').css('z-index',1); + }) + $('.phone_client').hover(function(){ + },function(){ + $(this).find('.phone_clientCode').hide(); + $('.phone_client').addClass('phone_border'); + $('.phone_client').css('cursor','pointer'); + $(".chooseBtns").css('z-index',1); + }) + $(document).click(function(){ + $('.phone_clientCode').hide(); + $('.phone_client').addClass('phone_border'); + $('.phone_client').css('cursor','pointer'); + $(".chooseBtns").css('z-index',1); + }) + /*@@手机二维码 end*/ + + //处理到货通知start + $("#user_email").focus(function(){ + $("#emailDiv").removeClass('okBorder'); + $("#email_error").hide(); + }); + $("#user_mobile").focus(function(){ + $("#mobileDiv").removeClass('okBorder'); + $("#mobile_error").hide(); + }); + //处理到货通知end + + //右侧浮动广告位 + var index_win_w = $(window).width(); + if (index_win_w <= 1440) {$(".index_rfloat").addClass("index_side");} + else {$(".index_rfloat").removeClass("index_side");} + $(window).resize(function() { + var index_win_width = $(window).width(); + if (index_win_width <= 1440) {$(".index_rfloat").addClass("index_side");} + else {$(".index_rfloat").removeClass("index_side");} + }); + //右侧浮动广告位end +}); + +function getUserBuyNum(product_id){ + var buyNum = $("#number_"+product_id).val(); + if(undefined==buyNum){ + buyNum=1 + } + return buyNum; +} + +//一键购买begin +//商品和礼包加入购物车 +//@param product_id 商品id +//@param cart_type 购物类型 0 普通商品 +//@param opencity_id 站点id +//@param flag 提示方式 0本页提示 1跳转购物车 +//@param bs 加入时是否验证商品的礼品袋开关 1,是;0,否 +//@param obj 加入按钮对象 +//@param cfrom 从哪里点击的购物按钮 +function oneKeyBuy(product_id,cart_type,opencity_id, flag,bs, obj, cfrom) { + if (typeof(bs) == "undefined") { + bs = 1; + } + if (typeof(cfrom) == "undefined") { + cfrom = 1; + } + + var alsoBuy = ''; + var web_url = cartHostUrl+'/cart/addCart/'; + var number = 1; + if($("#number_"+product_id).length!=0){ + number = $("#number_"+product_id).val(); + } + if(number > 1000){ + jAlert('对不起购买上限不能大于1000!!'); + return; + } + if(!checkRate(number)){ + jAlert('您输入的数量格式有误!!'); + return false; + } + var cartHostUrl = 'http://cart.'+domain;//购物车域名 + var requestUrl = cartHostUrl+'/cart/oneKeyBuy/';//请求URL + var ownUrl = cartHostUrl+'/order/index/';//自营和商铺商品的订单页面 + var htUrl = cartHostUrl+'/orderHt/index/';//海淘商品的订单页面 + var imgTitle = $('div.hyzyIcon img').attr('title'); + $.ajax({ + url : requestUrl, + type : 'GET', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {product_id:product_id,number:number,opencity_id:opencity_id,cart_type:cart_type,mes:bs}, + success: function(msg){ + if(msg.error == -1) + { + SF.Widget.login();//登录成功后停留在商品详情页面 + } + else if(msg.error == 1) + { + if(imgTitle ==1 || imgTitle ==2)//如果是海淘商品 + { + location.href = htUrl; + } + else + { + location.href = ownUrl; + } + } + else if(msg.error == 2) + { + jConfirm(msg.info, '提示消息', function(r){ + if(r){ + cartAdd(product_id,cart_type,opencity_id, flag,0, obj, cfrom) + } + }) + } + else + { + if(7 == flag){ + if(msg.info.indexOf("库存不足")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('抱歉,该商品已售罄'); + return; + } + if(msg.info.indexOf("无法送达")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('抱歉,该商品无法送达'); + return; + } + if(msg.info.indexOf("已经下架")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('抱歉,该商品已售罄'); + return; + } + if(msg.info.indexOf("已经售完")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('抱歉,该商品已售罄'); + return; + } + jAlert(msg.info);return; + } + if(13 == flag){ + if(msg.info.indexOf("库存不足")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('已售罄'); + return; + } + if(msg.info.indexOf("无法送达")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('无法送达'); + return; + } + if(msg.info.indexOf("已经下架")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('已售罄'); + return; + } + if(msg.info.indexOf("已经售完")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('已售罄'); + return; + } + jAlert(msg.info);return; + } + jAlert(msg.info);return; + } + } + }); +} + +//一键购买end diff --git a/e3-item-web/src/main/resources/static/js/qiangGouPro.js b/e3-item-web/src/main/resources/static/js/qiangGouPro.js new file mode 100644 index 0000000..bd99df7 --- /dev/null +++ b/e3-item-web/src/main/resources/static/js/qiangGouPro.js @@ -0,0 +1,91 @@ +// JavaScript Document 商品详情页抢购倒计时 +var nowtimes; //当前时间戳 +var startTime; //开始时间 +var stopTime; //结束时间 +var productid; //商品ID +var isasync = (isasync == false) ? false : true; +/** + * 当前页面时钟 + * @param _stoday 当前服务器时间戳 + */ +function clockWeb(){ + nowtimes = Number(nowtimes) + 1000; //当前时间戳 + if(nowtimes>=startTime && nowtimes<=stopTime){ + clockRun = window.setTimeout("clockWeb()",1000); + }else{ + qiangGou(); + } +} + + +/** + * 修改剩余时间 + **/ +function editOverplus(){ + var theDays = Number(stopTime); + var seconds = (theDays - nowtimes)/1000; + var minutes = Math.floor(seconds/60); + var hours = Math.floor(minutes/60); + var days = Math.floor(hours/24); + var CDay= days; + var CHour= hours % 24; + var CMinute= minutes % 60; + var CSecond= seconds % 60; + + if(CMinute < 10) { + CMinute = "0" + CMinute; + } + if(CHour < 10) { + CHour = "0" + CHour; + } + if(CSecond<10) { + CSecond = "0" + CSecond; + } + //显示倒计时 + + $("#showDays").html(CDay); + $("#showHour").html(CHour); + $("#showMin").html(CMinute); + $("#showSencond").html(CSecond); + + if(CHour=='00' && CMinute=='00' && CSecond=='00') { + //时间到自动刷新页面 + qiangGou(); + }else{ + //如果剩余分钟零秒时检查是否抢完 + editRun = window.setTimeout("editOverplus()",1000); + } +} + + +/** + * 抢购 + */ +function qiangGou(){ + $.ajax({ + type: "POST", + async: isasync, + dataType: "json", + url: "/ajax/getQingGouByPid", + data: "productid="+productid, + success: function(str){ + if(str.status){ + nowtimes = Number(str.nowtimes + '000'); + startTime = Number(str.startTime + '000'); + stopTime = Number(str.stopTime + '000'); + clockWeb(); + htmlstr = '
  • 抢购价:'+str.price+''; + htmlstr += '剩余时间:00天'; + htmlstr += '00小时00分'; + htmlstr += '00
  • ' + htmlstr += '
  • 优选价:¥'+str.sfprice+'
  • '; + htmlstr += ''; + //$("#adword").html("("+str.ad_word+")"); + $("#price").html(htmlstr); + }else{ + str = '
  • 优 选 价:'+str.sfprice+'
  • '; + $("#price").html(str); + } + } + }); +} \ No newline at end of file diff --git a/e3-item-web/src/main/resources/static/js/qrcode.js b/e3-item-web/src/main/resources/static/js/qrcode.js new file mode 100644 index 0000000..5cbe0f6 --- /dev/null +++ b/e3-item-web/src/main/resources/static/js/qrcode.js @@ -0,0 +1,1237 @@ +//--------------------------------------------------------------------- +// QRCode for JavaScript +// +// Copyright (c) 2009 Kazuhiko Arase +// +// URL: http://www.d-project.com/ +// +// Licensed under the MIT license: +// http://www.opensource.org/licenses/mit-license.php +// +// The word "QR Code" is registered trademark of +// DENSO WAVE INCORPORATED +// http://www.denso-wave.com/qrcode/faqpatent-e.html +// +//--------------------------------------------------------------------- + +//--------------------------------------------------------------------- +// QR8bitByte +//--------------------------------------------------------------------- + +function QR8bitByte(data) { + this.mode = QRMode.MODE_8BIT_BYTE; + this.data = data; +} + +QR8bitByte.prototype = { + + getLength : function(buffer) { + return this.data.length; + }, + + write : function(buffer) { + for (var i = 0; i < this.data.length; i++) { + // not JIS ... + buffer.put(this.data.charCodeAt(i), 8); + } + } +}; + +//--------------------------------------------------------------------- +// QRCode +//--------------------------------------------------------------------- + +function QRCode(typeNumber, errorCorrectLevel) { + this.typeNumber = typeNumber; + this.errorCorrectLevel = errorCorrectLevel; + this.modules = null; + this.moduleCount = 0; + this.dataCache = null; + this.dataList = new Array(); +} + +QRCode.prototype = { + + addData : function(data) { + var newData = new QR8bitByte(data); + this.dataList.push(newData); + this.dataCache = null; + }, + + isDark : function(row, col) { + if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) { + throw new Error(row + "," + col); + } + return this.modules[row][col]; + }, + + getModuleCount : function() { + return this.moduleCount; + }, + + make : function() { + // Calculate automatically typeNumber if provided is < 1 + if (this.typeNumber < 1 ){ + var typeNumber = 1; + for (typeNumber = 1; typeNumber < 40; typeNumber++) { + var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, this.errorCorrectLevel); + + var buffer = new QRBitBuffer(); + var totalDataCount = 0; + for (var i = 0; i < rsBlocks.length; i++) { + totalDataCount += rsBlocks[i].dataCount; + } + + for (var i = 0; i < this.dataList.length; i++) { + var data = this.dataList[i]; + buffer.put(data.mode, 4); + buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber) ); + data.write(buffer); + } + if (buffer.getLengthInBits() <= totalDataCount * 8) + break; + } + this.typeNumber = typeNumber; + } + this.makeImpl(false, this.getBestMaskPattern() ); + }, + + makeImpl : function(test, maskPattern) { + + this.moduleCount = this.typeNumber * 4 + 17; + this.modules = new Array(this.moduleCount); + + for (var row = 0; row < this.moduleCount; row++) { + + this.modules[row] = new Array(this.moduleCount); + + for (var col = 0; col < this.moduleCount; col++) { + this.modules[row][col] = null;//(col + row) % 3; + } + } + + this.setupPositionProbePattern(0, 0); + this.setupPositionProbePattern(this.moduleCount - 7, 0); + this.setupPositionProbePattern(0, this.moduleCount - 7); + this.setupPositionAdjustPattern(); + this.setupTimingPattern(); + this.setupTypeInfo(test, maskPattern); + + if (this.typeNumber >= 7) { + this.setupTypeNumber(test); + } + + if (this.dataCache == null) { + this.dataCache = QRCode.createData(this.typeNumber, this.errorCorrectLevel, this.dataList); + } + + this.mapData(this.dataCache, maskPattern); + }, + + setupPositionProbePattern : function(row, col) { + + for (var r = -1; r <= 7; r++) { + + if (row + r <= -1 || this.moduleCount <= row + r) continue; + + for (var c = -1; c <= 7; c++) { + + if (col + c <= -1 || this.moduleCount <= col + c) continue; + + if ( (0 <= r && r <= 6 && (c == 0 || c == 6) ) + || (0 <= c && c <= 6 && (r == 0 || r == 6) ) + || (2 <= r && r <= 4 && 2 <= c && c <= 4) ) { + this.modules[row + r][col + c] = true; + } else { + this.modules[row + r][col + c] = false; + } + } + } + }, + + getBestMaskPattern : function() { + + var minLostPoint = 0; + var pattern = 0; + + for (var i = 0; i < 8; i++) { + + this.makeImpl(true, i); + + var lostPoint = QRUtil.getLostPoint(this); + + if (i == 0 || minLostPoint > lostPoint) { + minLostPoint = lostPoint; + pattern = i; + } + } + + return pattern; + }, + + createMovieClip : function(target_mc, instance_name, depth) { + + var qr_mc = target_mc.createEmptyMovieClip(instance_name, depth); + var cs = 1; + + this.make(); + + for (var row = 0; row < this.modules.length; row++) { + + var y = row * cs; + + for (var col = 0; col < this.modules[row].length; col++) { + + var x = col * cs; + var dark = this.modules[row][col]; + + if (dark) { + qr_mc.beginFill(0, 100); + qr_mc.moveTo(x, y); + qr_mc.lineTo(x + cs, y); + qr_mc.lineTo(x + cs, y + cs); + qr_mc.lineTo(x, y + cs); + qr_mc.endFill(); + } + } + } + + return qr_mc; + }, + + setupTimingPattern : function() { + + for (var r = 8; r < this.moduleCount - 8; r++) { + if (this.modules[r][6] != null) { + continue; + } + this.modules[r][6] = (r % 2 == 0); + } + + for (var c = 8; c < this.moduleCount - 8; c++) { + if (this.modules[6][c] != null) { + continue; + } + this.modules[6][c] = (c % 2 == 0); + } + }, + + setupPositionAdjustPattern : function() { + + var pos = QRUtil.getPatternPosition(this.typeNumber); + + for (var i = 0; i < pos.length; i++) { + + for (var j = 0; j < pos.length; j++) { + + var row = pos[i]; + var col = pos[j]; + + if (this.modules[row][col] != null) { + continue; + } + + for (var r = -2; r <= 2; r++) { + + for (var c = -2; c <= 2; c++) { + + if (r == -2 || r == 2 || c == -2 || c == 2 + || (r == 0 && c == 0) ) { + this.modules[row + r][col + c] = true; + } else { + this.modules[row + r][col + c] = false; + } + } + } + } + } + }, + + setupTypeNumber : function(test) { + + var bits = QRUtil.getBCHTypeNumber(this.typeNumber); + + for (var i = 0; i < 18; i++) { + var mod = (!test && ( (bits >> i) & 1) == 1); + this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod; + } + + for (var i = 0; i < 18; i++) { + var mod = (!test && ( (bits >> i) & 1) == 1); + this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod; + } + }, + + setupTypeInfo : function(test, maskPattern) { + + var data = (this.errorCorrectLevel << 3) | maskPattern; + var bits = QRUtil.getBCHTypeInfo(data); + + // vertical + for (var i = 0; i < 15; i++) { + + var mod = (!test && ( (bits >> i) & 1) == 1); + + if (i < 6) { + this.modules[i][8] = mod; + } else if (i < 8) { + this.modules[i + 1][8] = mod; + } else { + this.modules[this.moduleCount - 15 + i][8] = mod; + } + } + + // horizontal + for (var i = 0; i < 15; i++) { + + var mod = (!test && ( (bits >> i) & 1) == 1); + + if (i < 8) { + this.modules[8][this.moduleCount - i - 1] = mod; + } else if (i < 9) { + this.modules[8][15 - i - 1 + 1] = mod; + } else { + this.modules[8][15 - i - 1] = mod; + } + } + + // fixed module + this.modules[this.moduleCount - 8][8] = (!test); + + }, + + mapData : function(data, maskPattern) { + + var inc = -1; + var row = this.moduleCount - 1; + var bitIndex = 7; + var byteIndex = 0; + + for (var col = this.moduleCount - 1; col > 0; col -= 2) { + + if (col == 6) col--; + + while (true) { + + for (var c = 0; c < 2; c++) { + + if (this.modules[row][col - c] == null) { + + var dark = false; + + if (byteIndex < data.length) { + dark = ( ( (data[byteIndex] >>> bitIndex) & 1) == 1); + } + + var mask = QRUtil.getMask(maskPattern, row, col - c); + + if (mask) { + dark = !dark; + } + + this.modules[row][col - c] = dark; + bitIndex--; + + if (bitIndex == -1) { + byteIndex++; + bitIndex = 7; + } + } + } + + row += inc; + + if (row < 0 || this.moduleCount <= row) { + row -= inc; + inc = -inc; + break; + } + } + } + + } + +}; + +QRCode.PAD0 = 0xEC; +QRCode.PAD1 = 0x11; + +QRCode.createData = function(typeNumber, errorCorrectLevel, dataList) { + + var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectLevel); + + var buffer = new QRBitBuffer(); + + for (var i = 0; i < dataList.length; i++) { + var data = dataList[i]; + buffer.put(data.mode, 4); + buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber) ); + data.write(buffer); + } + + // calc num max data. + var totalDataCount = 0; + for (var i = 0; i < rsBlocks.length; i++) { + totalDataCount += rsBlocks[i].dataCount; + } + + if (buffer.getLengthInBits() > totalDataCount * 8) { + throw new Error("code length overflow. (" + + buffer.getLengthInBits() + + ">" + + totalDataCount * 8 + + ")"); + } + + // end code + if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) { + buffer.put(0, 4); + } + + // padding + while (buffer.getLengthInBits() % 8 != 0) { + buffer.putBit(false); + } + + // padding + while (true) { + + if (buffer.getLengthInBits() >= totalDataCount * 8) { + break; + } + buffer.put(QRCode.PAD0, 8); + + if (buffer.getLengthInBits() >= totalDataCount * 8) { + break; + } + buffer.put(QRCode.PAD1, 8); + } + + return QRCode.createBytes(buffer, rsBlocks); +} + +QRCode.createBytes = function(buffer, rsBlocks) { + + var offset = 0; + + var maxDcCount = 0; + var maxEcCount = 0; + + var dcdata = new Array(rsBlocks.length); + var ecdata = new Array(rsBlocks.length); + + for (var r = 0; r < rsBlocks.length; r++) { + + var dcCount = rsBlocks[r].dataCount; + var ecCount = rsBlocks[r].totalCount - dcCount; + + maxDcCount = Math.max(maxDcCount, dcCount); + maxEcCount = Math.max(maxEcCount, ecCount); + + dcdata[r] = new Array(dcCount); + + for (var i = 0; i < dcdata[r].length; i++) { + dcdata[r][i] = 0xff & buffer.buffer[i + offset]; + } + offset += dcCount; + + var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount); + var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1); + + var modPoly = rawPoly.mod(rsPoly); + ecdata[r] = new Array(rsPoly.getLength() - 1); + for (var i = 0; i < ecdata[r].length; i++) { + var modIndex = i + modPoly.getLength() - ecdata[r].length; + ecdata[r][i] = (modIndex >= 0)? modPoly.get(modIndex) : 0; + } + + } + + var totalCodeCount = 0; + for (var i = 0; i < rsBlocks.length; i++) { + totalCodeCount += rsBlocks[i].totalCount; + } + + var data = new Array(totalCodeCount); + var index = 0; + + for (var i = 0; i < maxDcCount; i++) { + for (var r = 0; r < rsBlocks.length; r++) { + if (i < dcdata[r].length) { + data[index++] = dcdata[r][i]; + } + } + } + + for (var i = 0; i < maxEcCount; i++) { + for (var r = 0; r < rsBlocks.length; r++) { + if (i < ecdata[r].length) { + data[index++] = ecdata[r][i]; + } + } + } + + return data; + +} + +//--------------------------------------------------------------------- +// QRMode +//--------------------------------------------------------------------- + +var QRMode = { + MODE_NUMBER : 1 << 0, + MODE_ALPHA_NUM : 1 << 1, + MODE_8BIT_BYTE : 1 << 2, + MODE_KANJI : 1 << 3 +}; + +//--------------------------------------------------------------------- +// QRErrorCorrectLevel +//--------------------------------------------------------------------- + +var QRErrorCorrectLevel = { + L : 1, + M : 0, + Q : 3, + H : 2 +}; + +//--------------------------------------------------------------------- +// QRMaskPattern +//--------------------------------------------------------------------- + +var QRMaskPattern = { + PATTERN000 : 0, + PATTERN001 : 1, + PATTERN010 : 2, + PATTERN011 : 3, + PATTERN100 : 4, + PATTERN101 : 5, + PATTERN110 : 6, + PATTERN111 : 7 +}; + +//--------------------------------------------------------------------- +// QRUtil +//--------------------------------------------------------------------- + +var QRUtil = { + + PATTERN_POSITION_TABLE : [ + [], + [6, 18], + [6, 22], + [6, 26], + [6, 30], + [6, 34], + [6, 22, 38], + [6, 24, 42], + [6, 26, 46], + [6, 28, 50], + [6, 30, 54], + [6, 32, 58], + [6, 34, 62], + [6, 26, 46, 66], + [6, 26, 48, 70], + [6, 26, 50, 74], + [6, 30, 54, 78], + [6, 30, 56, 82], + [6, 30, 58, 86], + [6, 34, 62, 90], + [6, 28, 50, 72, 94], + [6, 26, 50, 74, 98], + [6, 30, 54, 78, 102], + [6, 28, 54, 80, 106], + [6, 32, 58, 84, 110], + [6, 30, 58, 86, 114], + [6, 34, 62, 90, 118], + [6, 26, 50, 74, 98, 122], + [6, 30, 54, 78, 102, 126], + [6, 26, 52, 78, 104, 130], + [6, 30, 56, 82, 108, 134], + [6, 34, 60, 86, 112, 138], + [6, 30, 58, 86, 114, 142], + [6, 34, 62, 90, 118, 146], + [6, 30, 54, 78, 102, 126, 150], + [6, 24, 50, 76, 102, 128, 154], + [6, 28, 54, 80, 106, 132, 158], + [6, 32, 58, 84, 110, 136, 162], + [6, 26, 54, 82, 110, 138, 166], + [6, 30, 58, 86, 114, 142, 170] + ], + + G15 : (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0), + G18 : (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0), + G15_MASK : (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1), + + getBCHTypeInfo : function(data) { + var d = data << 10; + while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) { + d ^= (QRUtil.G15 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) ) ); + } + return ( (data << 10) | d) ^ QRUtil.G15_MASK; + }, + + getBCHTypeNumber : function(data) { + var d = data << 12; + while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) { + d ^= (QRUtil.G18 << (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) ) ); + } + return (data << 12) | d; + }, + + getBCHDigit : function(data) { + + var digit = 0; + + while (data != 0) { + digit++; + data >>>= 1; + } + + return digit; + }, + + getPatternPosition : function(typeNumber) { + return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1]; + }, + + getMask : function(maskPattern, i, j) { + + switch (maskPattern) { + + case QRMaskPattern.PATTERN000 : return (i + j) % 2 == 0; + case QRMaskPattern.PATTERN001 : return i % 2 == 0; + case QRMaskPattern.PATTERN010 : return j % 3 == 0; + case QRMaskPattern.PATTERN011 : return (i + j) % 3 == 0; + case QRMaskPattern.PATTERN100 : return (Math.floor(i / 2) + Math.floor(j / 3) ) % 2 == 0; + case QRMaskPattern.PATTERN101 : return (i * j) % 2 + (i * j) % 3 == 0; + case QRMaskPattern.PATTERN110 : return ( (i * j) % 2 + (i * j) % 3) % 2 == 0; + case QRMaskPattern.PATTERN111 : return ( (i * j) % 3 + (i + j) % 2) % 2 == 0; + + default : + throw new Error("bad maskPattern:" + maskPattern); + } + }, + + getErrorCorrectPolynomial : function(errorCorrectLength) { + + var a = new QRPolynomial([1], 0); + + for (var i = 0; i < errorCorrectLength; i++) { + a = a.multiply(new QRPolynomial([1, QRMath.gexp(i)], 0) ); + } + + return a; + }, + + getLengthInBits : function(mode, type) { + + if (1 <= type && type < 10) { + + // 1 - 9 + + switch(mode) { + case QRMode.MODE_NUMBER : return 10; + case QRMode.MODE_ALPHA_NUM : return 9; + case QRMode.MODE_8BIT_BYTE : return 8; + case QRMode.MODE_KANJI : return 8; + default : + throw new Error("mode:" + mode); + } + + } else if (type < 27) { + + // 10 - 26 + + switch(mode) { + case QRMode.MODE_NUMBER : return 12; + case QRMode.MODE_ALPHA_NUM : return 11; + case QRMode.MODE_8BIT_BYTE : return 16; + case QRMode.MODE_KANJI : return 10; + default : + throw new Error("mode:" + mode); + } + + } else if (type < 41) { + + // 27 - 40 + + switch(mode) { + case QRMode.MODE_NUMBER : return 14; + case QRMode.MODE_ALPHA_NUM : return 13; + case QRMode.MODE_8BIT_BYTE : return 16; + case QRMode.MODE_KANJI : return 12; + default : + throw new Error("mode:" + mode); + } + + } else { + throw new Error("type:" + type); + } + }, + + getLostPoint : function(qrCode) { + + var moduleCount = qrCode.getModuleCount(); + + var lostPoint = 0; + + // LEVEL1 + + for (var row = 0; row < moduleCount; row++) { + + for (var col = 0; col < moduleCount; col++) { + + var sameCount = 0; + var dark = qrCode.isDark(row, col); + + for (var r = -1; r <= 1; r++) { + + if (row + r < 0 || moduleCount <= row + r) { + continue; + } + + for (var c = -1; c <= 1; c++) { + + if (col + c < 0 || moduleCount <= col + c) { + continue; + } + + if (r == 0 && c == 0) { + continue; + } + + if (dark == qrCode.isDark(row + r, col + c) ) { + sameCount++; + } + } + } + + if (sameCount > 5) { + lostPoint += (3 + sameCount - 5); + } + } + } + + // LEVEL2 + + for (var row = 0; row < moduleCount - 1; row++) { + for (var col = 0; col < moduleCount - 1; col++) { + var count = 0; + if (qrCode.isDark(row, col ) ) count++; + if (qrCode.isDark(row + 1, col ) ) count++; + if (qrCode.isDark(row, col + 1) ) count++; + if (qrCode.isDark(row + 1, col + 1) ) count++; + if (count == 0 || count == 4) { + lostPoint += 3; + } + } + } + + // LEVEL3 + + for (var row = 0; row < moduleCount; row++) { + for (var col = 0; col < moduleCount - 6; col++) { + if (qrCode.isDark(row, col) + && !qrCode.isDark(row, col + 1) + && qrCode.isDark(row, col + 2) + && qrCode.isDark(row, col + 3) + && qrCode.isDark(row, col + 4) + && !qrCode.isDark(row, col + 5) + && qrCode.isDark(row, col + 6) ) { + lostPoint += 40; + } + } + } + + for (var col = 0; col < moduleCount; col++) { + for (var row = 0; row < moduleCount - 6; row++) { + if (qrCode.isDark(row, col) + && !qrCode.isDark(row + 1, col) + && qrCode.isDark(row + 2, col) + && qrCode.isDark(row + 3, col) + && qrCode.isDark(row + 4, col) + && !qrCode.isDark(row + 5, col) + && qrCode.isDark(row + 6, col) ) { + lostPoint += 40; + } + } + } + + // LEVEL4 + + var darkCount = 0; + + for (var col = 0; col < moduleCount; col++) { + for (var row = 0; row < moduleCount; row++) { + if (qrCode.isDark(row, col) ) { + darkCount++; + } + } + } + + var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5; + lostPoint += ratio * 10; + + return lostPoint; + } + +}; + + +//--------------------------------------------------------------------- +// QRMath +//--------------------------------------------------------------------- + +var QRMath = { + + glog : function(n) { + + if (n < 1) { + throw new Error("glog(" + n + ")"); + } + + return QRMath.LOG_TABLE[n]; + }, + + gexp : function(n) { + + while (n < 0) { + n += 255; + } + + while (n >= 256) { + n -= 255; + } + + return QRMath.EXP_TABLE[n]; + }, + + EXP_TABLE : new Array(256), + + LOG_TABLE : new Array(256) + +}; + +for (var i = 0; i < 8; i++) { + QRMath.EXP_TABLE[i] = 1 << i; +} +for (var i = 8; i < 256; i++) { + QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] + ^ QRMath.EXP_TABLE[i - 5] + ^ QRMath.EXP_TABLE[i - 6] + ^ QRMath.EXP_TABLE[i - 8]; +} +for (var i = 0; i < 255; i++) { + QRMath.LOG_TABLE[QRMath.EXP_TABLE[i] ] = i; +} + +//--------------------------------------------------------------------- +// QRPolynomial +//--------------------------------------------------------------------- + +function QRPolynomial(num, shift) { + + if (num.length == undefined) { + throw new Error(num.length + "/" + shift); + } + + var offset = 0; + + while (offset < num.length && num[offset] == 0) { + offset++; + } + + this.num = new Array(num.length - offset + shift); + for (var i = 0; i < num.length - offset; i++) { + this.num[i] = num[i + offset]; + } +} + +QRPolynomial.prototype = { + + get : function(index) { + return this.num[index]; + }, + + getLength : function() { + return this.num.length; + }, + + multiply : function(e) { + + var num = new Array(this.getLength() + e.getLength() - 1); + + for (var i = 0; i < this.getLength(); i++) { + for (var j = 0; j < e.getLength(); j++) { + num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i) ) + QRMath.glog(e.get(j) ) ); + } + } + + return new QRPolynomial(num, 0); + }, + + mod : function(e) { + + if (this.getLength() - e.getLength() < 0) { + return this; + } + + var ratio = QRMath.glog(this.get(0) ) - QRMath.glog(e.get(0) ); + + var num = new Array(this.getLength() ); + + for (var i = 0; i < this.getLength(); i++) { + num[i] = this.get(i); + } + + for (var i = 0; i < e.getLength(); i++) { + num[i] ^= QRMath.gexp(QRMath.glog(e.get(i) ) + ratio); + } + + // recursive call + return new QRPolynomial(num, 0).mod(e); + } +}; + +//--------------------------------------------------------------------- +// QRRSBlock +//--------------------------------------------------------------------- + +function QRRSBlock(totalCount, dataCount) { + this.totalCount = totalCount; + this.dataCount = dataCount; +} + +QRRSBlock.RS_BLOCK_TABLE = [ + + // L + // M + // Q + // H + + // 1 + [1, 26, 19], + [1, 26, 16], + [1, 26, 13], + [1, 26, 9], + + // 2 + [1, 44, 34], + [1, 44, 28], + [1, 44, 22], + [1, 44, 16], + + // 3 + [1, 70, 55], + [1, 70, 44], + [2, 35, 17], + [2, 35, 13], + + // 4 + [1, 100, 80], + [2, 50, 32], + [2, 50, 24], + [4, 25, 9], + + // 5 + [1, 134, 108], + [2, 67, 43], + [2, 33, 15, 2, 34, 16], + [2, 33, 11, 2, 34, 12], + + // 6 + [2, 86, 68], + [4, 43, 27], + [4, 43, 19], + [4, 43, 15], + + // 7 + [2, 98, 78], + [4, 49, 31], + [2, 32, 14, 4, 33, 15], + [4, 39, 13, 1, 40, 14], + + // 8 + [2, 121, 97], + [2, 60, 38, 2, 61, 39], + [4, 40, 18, 2, 41, 19], + [4, 40, 14, 2, 41, 15], + + // 9 + [2, 146, 116], + [3, 58, 36, 2, 59, 37], + [4, 36, 16, 4, 37, 17], + [4, 36, 12, 4, 37, 13], + + // 10 + [2, 86, 68, 2, 87, 69], + [4, 69, 43, 1, 70, 44], + [6, 43, 19, 2, 44, 20], + [6, 43, 15, 2, 44, 16], + + // 11 + [4, 101, 81], + [1, 80, 50, 4, 81, 51], + [4, 50, 22, 4, 51, 23], + [3, 36, 12, 8, 37, 13], + + // 12 + [2, 116, 92, 2, 117, 93], + [6, 58, 36, 2, 59, 37], + [4, 46, 20, 6, 47, 21], + [7, 42, 14, 4, 43, 15], + + // 13 + [4, 133, 107], + [8, 59, 37, 1, 60, 38], + [8, 44, 20, 4, 45, 21], + [12, 33, 11, 4, 34, 12], + + // 14 + [3, 145, 115, 1, 146, 116], + [4, 64, 40, 5, 65, 41], + [11, 36, 16, 5, 37, 17], + [11, 36, 12, 5, 37, 13], + + // 15 + [5, 109, 87, 1, 110, 88], + [5, 65, 41, 5, 66, 42], + [5, 54, 24, 7, 55, 25], + [11, 36, 12], + + // 16 + [5, 122, 98, 1, 123, 99], + [7, 73, 45, 3, 74, 46], + [15, 43, 19, 2, 44, 20], + [3, 45, 15, 13, 46, 16], + + // 17 + [1, 135, 107, 5, 136, 108], + [10, 74, 46, 1, 75, 47], + [1, 50, 22, 15, 51, 23], + [2, 42, 14, 17, 43, 15], + + // 18 + [5, 150, 120, 1, 151, 121], + [9, 69, 43, 4, 70, 44], + [17, 50, 22, 1, 51, 23], + [2, 42, 14, 19, 43, 15], + + // 19 + [3, 141, 113, 4, 142, 114], + [3, 70, 44, 11, 71, 45], + [17, 47, 21, 4, 48, 22], + [9, 39, 13, 16, 40, 14], + + // 20 + [3, 135, 107, 5, 136, 108], + [3, 67, 41, 13, 68, 42], + [15, 54, 24, 5, 55, 25], + [15, 43, 15, 10, 44, 16], + + // 21 + [4, 144, 116, 4, 145, 117], + [17, 68, 42], + [17, 50, 22, 6, 51, 23], + [19, 46, 16, 6, 47, 17], + + // 22 + [2, 139, 111, 7, 140, 112], + [17, 74, 46], + [7, 54, 24, 16, 55, 25], + [34, 37, 13], + + // 23 + [4, 151, 121, 5, 152, 122], + [4, 75, 47, 14, 76, 48], + [11, 54, 24, 14, 55, 25], + [16, 45, 15, 14, 46, 16], + + // 24 + [6, 147, 117, 4, 148, 118], + [6, 73, 45, 14, 74, 46], + [11, 54, 24, 16, 55, 25], + [30, 46, 16, 2, 47, 17], + + // 25 + [8, 132, 106, 4, 133, 107], + [8, 75, 47, 13, 76, 48], + [7, 54, 24, 22, 55, 25], + [22, 45, 15, 13, 46, 16], + + // 26 + [10, 142, 114, 2, 143, 115], + [19, 74, 46, 4, 75, 47], + [28, 50, 22, 6, 51, 23], + [33, 46, 16, 4, 47, 17], + + // 27 + [8, 152, 122, 4, 153, 123], + [22, 73, 45, 3, 74, 46], + [8, 53, 23, 26, 54, 24], + [12, 45, 15, 28, 46, 16], + + // 28 + [3, 147, 117, 10, 148, 118], + [3, 73, 45, 23, 74, 46], + [4, 54, 24, 31, 55, 25], + [11, 45, 15, 31, 46, 16], + + // 29 + [7, 146, 116, 7, 147, 117], + [21, 73, 45, 7, 74, 46], + [1, 53, 23, 37, 54, 24], + [19, 45, 15, 26, 46, 16], + + // 30 + [5, 145, 115, 10, 146, 116], + [19, 75, 47, 10, 76, 48], + [15, 54, 24, 25, 55, 25], + [23, 45, 15, 25, 46, 16], + + // 31 + [13, 145, 115, 3, 146, 116], + [2, 74, 46, 29, 75, 47], + [42, 54, 24, 1, 55, 25], + [23, 45, 15, 28, 46, 16], + + // 32 + [17, 145, 115], + [10, 74, 46, 23, 75, 47], + [10, 54, 24, 35, 55, 25], + [19, 45, 15, 35, 46, 16], + + // 33 + [17, 145, 115, 1, 146, 116], + [14, 74, 46, 21, 75, 47], + [29, 54, 24, 19, 55, 25], + [11, 45, 15, 46, 46, 16], + + // 34 + [13, 145, 115, 6, 146, 116], + [14, 74, 46, 23, 75, 47], + [44, 54, 24, 7, 55, 25], + [59, 46, 16, 1, 47, 17], + + // 35 + [12, 151, 121, 7, 152, 122], + [12, 75, 47, 26, 76, 48], + [39, 54, 24, 14, 55, 25], + [22, 45, 15, 41, 46, 16], + + // 36 + [6, 151, 121, 14, 152, 122], + [6, 75, 47, 34, 76, 48], + [46, 54, 24, 10, 55, 25], + [2, 45, 15, 64, 46, 16], + + // 37 + [17, 152, 122, 4, 153, 123], + [29, 74, 46, 14, 75, 47], + [49, 54, 24, 10, 55, 25], + [24, 45, 15, 46, 46, 16], + + // 38 + [4, 152, 122, 18, 153, 123], + [13, 74, 46, 32, 75, 47], + [48, 54, 24, 14, 55, 25], + [42, 45, 15, 32, 46, 16], + + // 39 + [20, 147, 117, 4, 148, 118], + [40, 75, 47, 7, 76, 48], + [43, 54, 24, 22, 55, 25], + [10, 45, 15, 67, 46, 16], + + // 40 + [19, 148, 118, 6, 149, 119], + [18, 75, 47, 31, 76, 48], + [34, 54, 24, 34, 55, 25], + [20, 45, 15, 61, 46, 16] +]; + +QRRSBlock.getRSBlocks = function(typeNumber, errorCorrectLevel) { + + var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel); + + if (rsBlock == undefined) { + throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + errorCorrectLevel); + } + + var length = rsBlock.length / 3; + + var list = new Array(); + + for (var i = 0; i < length; i++) { + + var count = rsBlock[i * 3 + 0]; + var totalCount = rsBlock[i * 3 + 1]; + var dataCount = rsBlock[i * 3 + 2]; + + for (var j = 0; j < count; j++) { + list.push(new QRRSBlock(totalCount, dataCount) ); + } + } + + return list; +} + +QRRSBlock.getRsBlockTable = function(typeNumber, errorCorrectLevel) { + + switch(errorCorrectLevel) { + case QRErrorCorrectLevel.L : + return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0]; + case QRErrorCorrectLevel.M : + return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1]; + case QRErrorCorrectLevel.Q : + return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2]; + case QRErrorCorrectLevel.H : + return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3]; + default : + return undefined; + } +} + +//--------------------------------------------------------------------- +// QRBitBuffer +//--------------------------------------------------------------------- + +function QRBitBuffer() { + this.buffer = new Array(); + this.length = 0; +} + +QRBitBuffer.prototype = { + + get : function(index) { + var bufIndex = Math.floor(index / 8); + return ( (this.buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1; + }, + + put : function(num, length) { + for (var i = 0; i < length; i++) { + this.putBit( ( (num >>> (length - i - 1) ) & 1) == 1); + } + }, + + getLengthInBits : function() { + return this.length; + }, + + putBit : function(bit) { + + var bufIndex = Math.floor(this.length / 8); + if (this.buffer.length <= bufIndex) { + this.buffer.push(0); + } + + if (bit) { + this.buffer[bufIndex] |= (0x80 >>> (this.length % 8) ); + } + + this.length++; + } +}; diff --git a/e3-item-web/src/main/resources/static/js/shadow.js b/e3-item-web/src/main/resources/static/js/shadow.js new file mode 100644 index 0000000..b621a16 --- /dev/null +++ b/e3-item-web/src/main/resources/static/js/shadow.js @@ -0,0 +1,30 @@ +jQuery.fn.center = function(loaded) { + var obj = this; + body_width = parseInt($(window).width()); + body_height = parseInt($(window).height()); + block_width = parseInt(obj.width()); + block_height = parseInt(obj.height()); + + left_position = parseInt((body_width/2) - (block_width/2) + $(window).scrollLeft()); + if (body_width + + \ No newline at end of file diff --git a/e3-item-web/src/main/resources/templates/commons/header.html b/e3-item-web/src/main/resources/templates/commons/header.html new file mode 100644 index 0000000..c961827 --- /dev/null +++ b/e3-item-web/src/main/resources/templates/commons/header.html @@ -0,0 +1,57 @@ + +
    + +
    + + +
    + \ No newline at end of file diff --git a/e3-item-web/src/main/resources/templates/commons/mainmenu.html b/e3-item-web/src/main/resources/templates/commons/mainmenu.html new file mode 100644 index 0000000..35cd9b7 --- /dev/null +++ b/e3-item-web/src/main/resources/templates/commons/mainmenu.html @@ -0,0 +1,53 @@ + + + \ No newline at end of file diff --git a/e3-item-web/src/main/resources/templates/commons/shortcut.html b/e3-item-web/src/main/resources/templates/commons/shortcut.html new file mode 100644 index 0000000..ddea07b --- /dev/null +++ b/e3-item-web/src/main/resources/templates/commons/shortcut.html @@ -0,0 +1,143 @@ + +
    +
    + + +
    + + +
    + \ No newline at end of file diff --git a/e3-item-web/src/main/resources/templates/item.html b/e3-item-web/src/main/resources/templates/item.html new file mode 100644 index 0000000..6cf12e0 --- /dev/null +++ b/e3-item-web/src/main/resources/templates/item.html @@ -0,0 +1,2209 @@ + + + + [[${item.title}]] - 宜立方商城 + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +

    [[${item.title}]]



    + [[${item.sellPoint}]] +
    +
    +
    +
    + 优选价: + [[${item.price / 100}]] +
    +
    +
    +
    +
    + + +
    +
    送至:
    +
    +
    +
    +
    +
    北京昌平区回龙观镇
    +
    + +
    +
    +
    +
    原产地直供,发货后预计2-5天内为您送达
    +
    + +
    +
    +
    +
      + +
      +
      +
      + + + + + - + +
      + + +
      预计发货时间:
      2014-02-28 08:59
      +
      +
      扫描下载客户端
      先摇券 后买单
      + + + +
      + +
      + + + +
      +
      +
      +
      +
      + +
      +
      + + + +
      +
        +
      • + +
      • +
      +
      +
      +
      +
      +
      +
      + 分享到: + + + + + + +
      + +
      + + +
      +
      + +
      +
      +
      +
      +
        +
      • +
      • +
      • +
      +
      +
      +
      +
        +
      • 品牌:我是花吃
      • +
      • 产地:中国 +
      • +
      • 重量:1.4kg (含包装)
      • +
      • 商品编号:[[${item.id}]]
      • +
      • + 优选卡 + 支持优选卡支付 +
      • +
      +
      + +
      本品不支持无理由退换货
      +
      +
      +
      +
      +
      好评度:
      +
      +
      + 100% + +
      +
      +
      +
      +

      还没人评论哦!

      马上评价

      +
      +
      +
      +
      + +
      +
      +
      +
      +
      + +
      +
      +
        +
      • 保质期:60(天)
      • +
      • 重量(含包装):1.4(kg)
      • +
      • 销售单位:
      • +
      • 产地:中国
      • +
      +
      + 温馨提示: + + 宜立方商城所售商品均经过严格的供应商资质审查、商品审查、入库全检、出货全检流程。 + 由于部分商品存在厂家更换包装、不同批次、不同生产日期、不同生产工厂等情况, + 导致商品实物与图片存在微小差异,因此请您以收到的商品实物为准, + 同时我们会尽量做到及时更新,由此给您带来不便敬请谅解,谢谢! + +
      +
      + 如果您发现商品信息存在问题,欢迎纠错 +
      +
      +
      +
      +
      +
      +

      用户评价

      +
      +
      好评度100% +
      +
      +
      +
      好评
      +
      +
      +
      +
      100%
      +
      +
      +
      中评
      +
      +
      +
      +
      0%
      +
      +
      +
      差评
      +
      +
      +
      +
      0%
      +
      +
      +
      +
      购买过商品,参与评价晒单,可获得积分哦~~
      + +
      +
      +
      + +
      还木有评价额,快抢沙发吧!
      +
        +
        + +
        上一页1下一页
        +
        +
        +
        +
        +
        + +
        +
        + + + +
        +

        购买此商品的顾客还买了

        +
        + +
        +
        +
        +

        浏览此商品的顾客还浏览了

        +
        + +
        +
        +
        +
        +
        +
        +
        + + \ No newline at end of file diff --git a/e3-manager/pom.xml b/e3-manager/pom.xml new file mode 100644 index 0000000..54ca85b --- /dev/null +++ b/e3-manager/pom.xml @@ -0,0 +1,32 @@ + + + + e3-parent + guo.ping.e3mall + 1.0-SNAPSHOT + ../e3-parent/pom.xml + + 4.0.0 + + e3-manager + pom + + + e3-manager-pojo + e3-manager-dao + e3-manager-interface + e3-manager-service + + + + + + guo.ping.e3mall + e3-common + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/e3-order-web/pom.xml b/e3-order-web/pom.xml new file mode 100644 index 0000000..c6aff34 --- /dev/null +++ b/e3-order-web/pom.xml @@ -0,0 +1,84 @@ + + + + e3-parent + guo.ping.e3mall + 1.0-SNAPSHOT + ../e3-parent/pom.xml + + 4.0.0 + + e3-order-web + jar + + e3-order-web + + + UTF-8 + 1.7 + 1.7 + + + + + guo.ping.e3mall + e3-order-interface + 1.0-SNAPSHOT + + + guo.ping.e3mall + e3-cart-interface + 1.0-SNAPSHOT + + + guo.ping.e3mall + e3-sso-interface + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + com.alibaba.boot + dubbo-spring-boot-starter + + + + com.github.sgroschupf + zkclient + + + log4j + log4j + + + + + + + e3-order-web + + + org.springframework.boot + spring-boot-maven-plugin + + + + + \ No newline at end of file diff --git a/e3-order-web/src/main/java/guo/ping/e3mall/order/OrderWebApplicationStarter.java b/e3-order-web/src/main/java/guo/ping/e3mall/order/OrderWebApplicationStarter.java new file mode 100644 index 0000000..09b559e --- /dev/null +++ b/e3-order-web/src/main/java/guo/ping/e3mall/order/OrderWebApplicationStarter.java @@ -0,0 +1,11 @@ +package guo.ping.e3mall.order; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class OrderWebApplicationStarter { + public static void main(String[] args) { + SpringApplication.run(OrderWebApplicationStarter.class, args); + } +} \ No newline at end of file diff --git a/e3-order-web/src/main/java/guo/ping/e3mall/order/config/MySettingFileConfig.java b/e3-order-web/src/main/java/guo/ping/e3mall/order/config/MySettingFileConfig.java new file mode 100644 index 0000000..94c54c4 --- /dev/null +++ b/e3-order-web/src/main/java/guo/ping/e3mall/order/config/MySettingFileConfig.java @@ -0,0 +1,10 @@ +package guo.ping.e3mall.order.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; + +@Configuration +@PropertySource("classpath:conf/conf.properties") +public class MySettingFileConfig { + +} diff --git a/e3-order-web/src/main/java/guo/ping/e3mall/order/config/MyWebMvcConfg.java b/e3-order-web/src/main/java/guo/ping/e3mall/order/config/MyWebMvcConfg.java new file mode 100644 index 0000000..8d333ed --- /dev/null +++ b/e3-order-web/src/main/java/guo/ping/e3mall/order/config/MyWebMvcConfg.java @@ -0,0 +1,23 @@ +package guo.ping.e3mall.order.config; + +import guo.ping.e3mall.order.interceptor.LoginInterceptor; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; + +@Configuration +public class MyWebMvcConfg implements WebMvcConfigurer{ + + @Autowired + private LoginInterceptor loginInterceptor; + + /** + * 添加自定义登录拦截器 + * @param registry + */ + @Override + public void addInterceptors(InterceptorRegistry registry) { + registry.addInterceptor(loginInterceptor).addPathPatterns("/order/**"); + } +} diff --git a/e3-order-web/src/main/java/guo/ping/e3mall/order/controller/OrderController.java b/e3-order-web/src/main/java/guo/ping/e3mall/order/controller/OrderController.java new file mode 100644 index 0000000..9a71880 --- /dev/null +++ b/e3-order-web/src/main/java/guo/ping/e3mall/order/controller/OrderController.java @@ -0,0 +1,69 @@ +package guo.ping.e3mall.order.controller; + +import com.alibaba.dubbo.config.annotation.Reference; +import guo.ping.e3mall.cart.service.CartService; +import guo.ping.e3mall.common.pojo.E3Result; +import guo.ping.e3mall.order.pojo.OrderInfo; +import guo.ping.e3mall.order.service.OrderService; +import basepro.manager.pojo.TbItem; +import basepro.manager.pojo.TbUser; +import org.joda.time.DateTime; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +import javax.servlet.http.HttpServletRequest; +import java.util.List; + +/** + * 订单管理Controller + */ +@Controller +@RequestMapping("/order") +public class OrderController { + + @Reference + private CartService cartService; + @Reference + private OrderService orderService; + + /** + * 跳转订单确认页面 + * @param request + * @return + */ + @RequestMapping("/order-cart.html") + public String showOrderCart(HttpServletRequest request) { + TbUser user = (TbUser) request.getAttribute("user"); + List cartList = cartService.getCartList(5L); + request.setAttribute("cartList", cartList); + return "order-cart"; + } + + @PostMapping("/create.html") + public String createOrder(OrderInfo orderInfo, HttpServletRequest request) { + // 1、接收表单提交的数据OrderInfo。 + // 2、补全用户信息。 + TbUser user = (TbUser) request.getAttribute("user"); + orderInfo.setUserId(user.getId()); + orderInfo.setBuyerNick(user.getUsername()); + // 3、调用Service创建订单。 + E3Result result = orderService.createOrder(orderInfo); + if (result.getStatus() == 200) { + // 清空购物车 + cartService.clearCartList(user.getId()); + } + //取订单号 + String orderId = result.getData().toString(); + // a)需要Service返回订单号 + request.setAttribute("orderId", orderId); + request.setAttribute("payment", orderInfo.getPayment()); + // b)当前日期加三天。 + DateTime dateTime = new DateTime(); + dateTime = dateTime.plusDays(3); + request.setAttribute("date", dateTime.toString("yyyy-MM-dd")); + // 4、返回逻辑视图展示成功页面 + return "success"; + } + +} diff --git a/e3-order-web/src/main/java/guo/ping/e3mall/order/interceptor/LoginInterceptor.java b/e3-order-web/src/main/java/guo/ping/e3mall/order/interceptor/LoginInterceptor.java new file mode 100644 index 0000000..e21f749 --- /dev/null +++ b/e3-order-web/src/main/java/guo/ping/e3mall/order/interceptor/LoginInterceptor.java @@ -0,0 +1,59 @@ +package guo.ping.e3mall.order.interceptor; + +import com.alibaba.dubbo.config.annotation.Reference; +import guo.ping.e3mall.cart.service.CartService; +import guo.ping.e3mall.common.pojo.E3Result; +import guo.ping.e3mall.common.utils.CookieUtils; +import guo.ping.e3mall.common.utils.JsonUtils; +import basepro.manager.pojo.TbItem; +import basepro.manager.pojo.TbUser; +import guo.ping.e3mall.sso.service.UserService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import org.springframework.web.servlet.HandlerInterceptor; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * 自定义登录拦截器 + */ +@Component +public class LoginInterceptor implements HandlerInterceptor { + + @Reference + private UserService userService; + @Reference + private CartService cartService; + @Value("${SSO_SERVICE_URL}") + private String SSO_SERVICE_URL; + + @Override + public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { + // 1、从Cookie中取出token + String e3_token = CookieUtils.getCookieValue(request, "E3_TOKEN"); + // 2、没有token,直接跳转登录 + if (StringUtils.isBlank(e3_token)) { + response.sendRedirect(SSO_SERVICE_URL + "/page/login?redirect=" + request.getRequestURL()); + return false; + } + // 3、取到token,调用sso服务取出user信息 + E3Result e3Result = userService.getUserByToken(e3_token); + // 4、没有用户信息跳转登录 + if (e3Result.getStatus() != 200) { + response.sendRedirect(SSO_SERVICE_URL + "/page/login?redirect=" + request.getRequestURL()); + return false; + } + // 5、存在用户信息,则保存至request中 + TbUser user = (TbUser) e3Result.getData(); + request.setAttribute("user", user); + // 6、判断Cookie中是否含有购物车商品,有则合并 + String jsonCartList = CookieUtils.getCookieValue(request, "E3_CART", true); + if (StringUtils.isNotBlank(jsonCartList)) { + // 合并 + cartService.mergeCart(user.getId(), JsonUtils.jsonToList(jsonCartList, TbItem.class)); + } + return true; + } +} diff --git a/e3-order-web/src/main/resources/application.yaml b/e3-order-web/src/main/resources/application.yaml new file mode 100644 index 0000000..79aa9fa --- /dev/null +++ b/e3-order-web/src/main/resources/application.yaml @@ -0,0 +1,9 @@ +#tomcat conf +server: + port: 8087 +#dubbo conf +dubbo: + application: + name: e3-order-web + registry: + address: zookeeper://192.168.163.132:2181 \ No newline at end of file diff --git a/e3-order-web/src/main/resources/conf/conf.properties b/e3-order-web/src/main/resources/conf/conf.properties new file mode 100644 index 0000000..0eadade --- /dev/null +++ b/e3-order-web/src/main/resources/conf/conf.properties @@ -0,0 +1 @@ +SSO_SERVICE_URL=http://localhost:8085 \ No newline at end of file diff --git a/e3-order-web/src/main/resources/static/css/head.css b/e3-order-web/src/main/resources/static/css/head.css new file mode 100644 index 0000000..01a3eb8 --- /dev/null +++ b/e3-order-web/src/main/resources/static/css/head.css @@ -0,0 +1,601 @@ +body{text-algin:center;margin:0px;font-size:12px; font-family:Arial, Helvetica, sans-serif;padding:0; color:#565656;} +.padbody{text-algin:center;margin:0px;font-size:12px; font-family:Arial, Helvetica, sans-serif; background:url(../images/bg.jpg) repeat-x top #fff;padding:0px 0px 0px 0px; color:#6b6b6b;} +h1, h2, h3, h4, h5, h6, p, a, em, font, img, strong, b,dl, dt, dd,form, label,ol,ul,li,legend,span,input{margin:0;padding:0;} +ul,li,ol{list-style:none;} +p{margin:0px; padding:0px;word-break: break-all; } +img{border:0px;} +a{color:#565656;text-decoration:none;} +a:hover{color:#0a6737;border:none;*vertical-align:baseline;} +.clear{clear:both;padding:0px;font-size:0px;margin:0px;height:0px;display:block;border:none;overflow:hidden;} +.clear1{clear:both;height:5px;font-size:0px;margin:0px;padding:0px;display:block;border:none; overflow:hidden;} +.clear2{clear:both;height:10px;font-size:0px;margin:0px;padding:0px;display:block;border:none; overflow:hidden;} +.clearfix{zoom:1;} +.clearfix:after{content: "."; display: block; height:0; clear: both; visibility:hidden;} +input{margin:0;padding:0; vertical-align:middle; _vertical-align:baseline;border:0} +.fl{float:left} +.fr{float:right;} +input.submit1{font-size:12px;background-color:#6c9c0a;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 4px 0px 4px;height:22px;line-height:22px;cursor:pointer; vertical-align:middle; vertical-align:baseline\9;} +input.submit1:hover{background:url(../images/productinfo.png) repeat-x 0 -124px;} +input.submit2{font-size:8px;background:url(../images/btn_bg.jpg) repeat-x bottom;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;height:12px; line-height:8px;cursor:pointer;width:12px; vertical-align:middle; *font-size:12px;} +a.submit2{font-size:12px;background:url(../images/btn_bg.jpg) repeat-x bottom;color:#fff;border:none;margin:1px 2px 0px 2px;padding:0px 0px 0px 0px;height:12px; line-height:12px;cursor:pointer;width:10px; vertical-align:middle; font-size:12px; display:block; float:left; text-align:center; text-decoration:none; overflow:hidden;} +a.submit2:hover{color:#fff; text-decoration:none;} +input.submit3{font-size:12px;background:#aaaaaa;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 2px 0px 2px;height:22px;line-height:22px;cursor:pointer;vertical-align:middle; _vertical-align:top;} +.box{width:1000px; margin:auto;} +.box2{margin:auto;} +.hide{display:none;} +em{font-style:normal;} +input{outline:none;} +/*顶部浮动*/ +.topMenu{width:100%;height:33px;text-align:center;position:relative;top:0;z-index:101;padding:0px;background:#f7f7f7;border-bottom:1px solid #eeeeee;} +.topMenu a{color:#969696;} +.topMenu a:hover{color:#669900;} +.pW{width:1000px;margin:auto;} +.topTh li{float:left;position:relative;line-height:33px;} +.topTh .d2{padding:0 10px 0 28px;} +/*首页城市选择遮罩层*/ +.indexshadow{font-size:14px;width:580px;background-color:#fff;border:5px #767574 solid;position:absolute;top:0;left:0;display:none;z-index:99999;} +#screen{width:100%;height:100%;position:absolute;top:0;left:0;display:none;z-index:9999;background-color:#666;opacity:0.7;filter:alpha(opacity=70);-moz-opacity:0.7;} +.indexshadow .city_top{height:50px; padding-left:10px;border-bottom:1px solid #DCDCDC; line-height:50px;} +.indexshadow .city_top span{ float:left; font-size:12px; color:#000;} +.indexshadow .city_top .taddress{ +padding:0 10px 0 10px; +height:26px; +line-height:26px; +background-image: -moz-linear-gradient(top, #65BC02, #6DC403); /*火狐*/ +background: -o-linear-gradient(top, #65BC02 0%,#6DC403 100%);/*Opera*/ +background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #65BC02), color-stop(1,#6DC403)); /*Chrome*/ +filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#65BC02', endColorstr='#6DC403', GradientType='0'); /*IE*/ +background: -ms-linear-gradient(top,#65BC02 0%,#6DC403 100%); /*IE10以上*/ +border-radius:2px; +font-size:14px; +font-weight:bold; +text-align:center; +margin:10px 0 0 0; +} +.indexshadow .city_top .taddress a{color:#FFF; } +.indexshadow .city_middle{margin:0px 0px 5px 0px;padding-left:10px;} +.indexshadow .city_middle ul li{width:45px; height:40px; line-height:40px; float:left; text-align:center;} +.indexshadow .city_middle ul li a{ color:#0099FF;} +.indexshadow .city_bottom{margin:5px 0px 0px 0px; padding-bottom:10px;} +.indexshadow .city_bottom .quyu{ float:left; text-align:center; height:35px; line-height:35px; width:95px; border-top:1px solid #f5f5f5;border-right:1px solid #f5f5f5; color:#969696;} +.indexshadow .city_bottom ul{ width:100%;*width:480px;border-top:1px solid #f5f5f5;} +.indexshadow .city_bottom ul li{ color:#333333; float:left; height:35px; width:50px; text-align:center; height:35px; line-height:35px; cursor:pointer;} +.indexshadow .city_bottom .huadong .on{background:url(../images/foot/icity_bg.png) center bottom no-repeat; color:#FFF;z-index:2; position:relative; bottom:-1px;} +.indexshadow .city_bottom .htcity{margin:0 0 0 95px; width:480px; overflow:hidden; z-index:1; position:relative;} +.indexshadow .city_bottom .htcity dl{text-align:center; width:100%; float:left;background:#f9f9f9;border-top:1px solid #69af05;} +.indexshadow .city_bottom .htcity dl dd a{ padding-left:2px; text-align:center; width:65px; height:25px; line-height:25px; overflow:hidden; float:left;text-decoration:none; color:#333333; display:block; font-size:12px;} +.indexshadow .city_bottom .htcity dl dd a:hover{ color:#669900;text-decoration:none;} +.indexshadow .city_bottom .htcity dl dd a.city-long{padding-left:2px; text-align:center; width:132px; height:25px; line-height:25px; overflow:hidden; float:left;text-decoration:none; color:#333333; display:block;} +.indexshadow .city_bottom .htcity dl dd a.city-long:hover{ color:#669900;text-decoration:none;} +/*顶部城市选择*/ +.topTh .d6 p{width:72px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .pshort{width:50px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .pmiddle{width:60px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .city_title{ margin:0 0 0 8px; *margin:0 0 0 -10px; width:48px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 .city_title1{ margin:0 0 0 5px; *margin:0 0 0 -10px; width:30px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 .city_title2{ margin:0 0 0 5px; *margin:0 0 0 -10px; width:40px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 b{background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;position:absolute;top:15px;right:5px;} +.topTh .d6.hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .d6 .blank,.topTh .d6 .outline{width:72px;} +.topTh .blank1,.topTh .outline1{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank1{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:50px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .outline1{z-index:1;left:6px;width:50px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .blank2,.topTh .outline2{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank2{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:60px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .outline2{z-index:1;left:6px;width:60px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .d6 .dd{display:none; width:438px;border:1px solid #DCDCDC; text-align:left; margin:0;} +.topTh .d6.hover .blank{top:6px;height:22px;z-index:-1; margin:0;} +.topTh .d6.hover .outline{z-index:1;top:25px; left:1px;} +.topTh .d6.hover .blank1{top:6px;height:22px;z-index:-1; margin:0; display:block;} +.topTh .d6.hover .outline1{z-index:1;top:25px; left:1px;display:block;} +.topTh .d6.hover .blank2{top:6px;height:22px;z-index:-1; margin:0; display:block;} +.topTh .d6.hover .outline2{z-index:1;top:25px; left:1px;display:block;} +.topTh .d6 .city_top{ margin:5px 10px 5px 10px;height:30px; border-bottom:1px solid #DCDCDC; line-height:30px;} +.topTh .d6 .city_top span{ float:left; color:#969696;} +.topTh .d6 .city_top .off{ height:25px; float:right;background: url(../images/index_icon_new.png) -245px -33px no-repeat;width:18px; height:18px; margin:8px 0 0 0; cursor:pointer;} +.topTh .d6 .city_middle{margin:0px 10px 5px 10px;} +.topTh .d6 .city_middle ul li{width:38px;} +.topTh .d6 .city_middle ul li a{ color:#0099FF;} +.topTh .d6 .city_bottom{margin:5px 10px 15px 10px; color:#969696;} +.topTh .d6 .city_bottom .quyu{ float:left; height:25px; line-height:25px; color:#333333;} +.topTh .d6 .city_bottom ul{ float:left; width:360px; *width:380px; display:inline;} +.topTh .d6 .city_bottom ul li{ width:40px; text-align:center; height:25px; line-height:22px; cursor:pointer; color:#333333;} +.topTh .d6 .city_bottom .huadong .on{background:url(../images/foot/city_bg.png) center bottom no-repeat; color:#FFF;} +.topTh .d6 .city_bottom .htcity dl{ text-align:center; float:left; width:425px;background:#F5F5F5; border-top:1px solid #669900; margin-top:-1px; } +.topTh .d6 .city_bottom .htcity dl dd a{ display:block; padding-left:10px; width:50px;line-height:25px; height:25px; float:left; text-align:center; overflow:hidden; color:#333333;} +.topTh .d6 .city_bottom .htcity dl dd a:hover{color:#669900;} +.topTh .d6 .city_bottom .htcity dl dd a.city-long{display:block; padding-left:10px; width:110px;line-height:25px; height:25px; float:left; text-align:center; overflow:hidden;} +.topTh .d3,.topTh .d4{width:30px;height:30px;} +.topTh .d1 b{background:url(../images/header.png) no-repeat;width:12px;height:12px;position:absolute;top:10px;left:10px;} +.topTh .d1.hover b{background:url(../images/header.png) no-repeat -73px -154px;} +.topTh .d2 s{width:0px;height:18px;position:absolute;top:8px;left:0;overflow:hidden;} +.topTh .d2 q,.topTh .d3 q,.topTh .d4 q{height:16px;position:absolute;top:9px; quotes:none;} +.topTh .d2 q{background:url(../images/header.png) no-repeat -73px -122px;width:10px;left:10px;transition:all 0.2s ease 0s;} +.topTh .d2.hover q{background:url(../images/header.png) no-repeat -73px -138px;} +.topTh .d2 .dd{display:none;top:32px;width:230px;left:-50px;padding:15px 0 0 0;} +.topTh .d2 .dd .sf-client{margin-bottom:10px;margin-left:15px;position:relative;text-align:left;} +.topTh .d2 .dd .client-img{width:73px;height:74px;overflow:hidden;background:url(../images/header.png) no-repeat 0 -93px;display:block;} +.topTh .d2 .dd i{position:absolute;width:50px;height:29px;left:80px;top:5px;background:url(../images/header.png) no-repeat -73px -93px;display:block;} +.topTh .d2 .dd .client-txt{position:absolute;left:95px;top:34px;} +.topTh .d2 .dd .client-txt em{display:block;line-height:20px;} +.topTh .d2 .dd .client-txt strong{color:#76ac25;line-height:20px;} +.topTh .d2 .dd .client-promo{height:30px;background:url(../images/indexImg20130307.png) no-repeat -182px -210px #fcfbe4;text-align:center;color:#fa6400;font-size:14px;font-weight:bold;line-height:30px;} +.topTh .d2 .dd .client-promo a:link,.topTh .d2 .dd .client-promo a:visited{color:#fa6400;} +.topTh .d2 .dd .app-btn{font-size:0;height:29px;margin:0 0 10px 15px;} +.topTh .d2 .dd .app-apple{float:left;display:block;width:96px;height:29px;background:url(../images/header.png) no-repeat 0 -167px;margin-right:5px;_display:inline;} +.topTh .d2 .dd .app-android{float:left;display:block;width:96px;height:29px;background:url(../images/header.png) no-repeat 0 -196px;} +.topTh .d3 q{background:url(../images/header.png) no-repeat -55px 0;width:19px;left:12px;cursor:pointer;quotes:none;} +.topTh .d4 q{background:url(../images/header.png) no-repeat -74px 0;width:17px;left:8px; quotes:none;} +.topTh .d4 .dd{display:none;left:-50px;top:32px;} +.topTh .d4 .dd .sf_wx_t{ width:136px; height:22px; line-height:22px; color:#515151;} +.topTh .d4 .dd .sf_wx{display:block;width:136px;height:110px;background:url(../images/weixin.png) no-repeat top center #FFFFFF;} +.topTh .login{color:#999999;padding:0 10px;} +.topTh .login a:link,.topTh .login a:visited{color:#969696;} +.topTh .login a:hover{color:#669900;} +.topTh .logininfo{color:#666666;} +.topTh .myOrder{padding:0 10px;} +.topTh .menus{padding:0 10px 0 10px;width:60px;cursor:default;margin:6px 0 0 0; line-height:22px;} +.topMenu .fr b{position:absolute;right:5px;top:8px;background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;transition:transform .2s ease-in 0s;-webkit-transition:-webkit-transform .2s ease-in 0s;overflow:hidden;} +.topTh .allCat{padding:0 15px;cursor:default;*margin:0; margin:6px 0 0 0;line-height:22px;} +.topTh .allCat .site{color:#969696;} +.topTh .allCat s{position:absolute;right:0px;top:8px;background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;transition:transform .2s ease-in 0s;-webkit-transition:-webkit-transform .2s ease-in 0s;overflow:hidden;} +.topTh .blank,.topTh .dd,.topTh .outline{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank{margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:78px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .menus .blank{_margin-top:-6px;_height:37px;} +.topTh .menus .dd{margin-left:5px;_margin-left:0px;line-height:22px;left:0;width:78px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;top:28px;} +.topTh .menus.hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .outline{z-index:1;left:6px;width:78px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .allCat .blank,.topTh .allCat .outline{width:81px;_width:86px;} +.topTh .allCat .blank{_margin-top:-6px;_height:37px;} +.topTh .allCat .dd{top:28px;width:815px;right:0;margin-right:-10px;left:auto;padding-top:10px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.allCat dl{float:left;width:200px;padding:15px 19px 0 20px;text-align:left;margin-bottom:10px;} +.allCat dl dt{font-weight:bold;margin-bottom:5px;font-size:16px;font-family:Microsoft Yahei; } +.allCat dl dd{line-height:20px;height:100px;overflow:hidden;} +.allCat dl dd a{ display:block;width:65px; float:left; line-height:30px; color:#666666;} +.allCat dl dd p{ width:100%;float:left;} +.allCat dl .dh1{ color:#669900;} +.allCat dl .dh2{color:#FA6400;} +.allCat dl .dh3{color:#646464;} +.allCat .line{background:url(../images/foot/line.jpg) center repeat-y; height:90px;width:5px; margin:20px 0 0 0;} +.allCat dl .fore1{} +.topTh .allCat.hover s{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .hover .t{color:#669900;} +.topTh .hover .blank,.topTh .hover .dd,.topTh .hover .outline{display:block;} +.topMenu .fr.hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.tShow .corner{display:none;width:8px;height:15px;position: absolute;top:25px;left:8px;z-index:2;} +.tShow .corner .aBg,.tShow .corner .aCt{display: block;font-size: 0;height: 0;line-height: 0;overflow: hidden;width: 0;} +.tShow .aBg{border-left: 8px dashed rgba(0, 0, 0, 0);border-left: 8px dashed white\0;border-bottom: 8px solid #dadada;border-right: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed white\0;position: relative;border-top:0 none;} +.tShow .aCt{border-left: 8px dashed rgba(0, 0, 0, 0);border-left: 8px dashed white\0;border-bottom: 8px solid #ffffff;border-right: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed white\0;position: relative;border-top:0 none;margin:-7px 0 0 0px;} +:root .tShow .aBg{border-left: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed rgba(0, 0, 0, 0);} +:root .tShow .aCt{border-left: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed rgba(0, 0, 0, 0);} +*+html .tShow .aBg{border-left: 8px dashed white;border-right: 8px dashed white;} +*+html .tShow .aCt{border-left: 8px dashed white;border-right: 8px dashed white;} +*html .tShow .aBg{border-left: 8px dashed white;border-right: 8px dashed white;} +*html .tShow .aCt{border-left: 8px dashed white;border-right: 8px dashed white;} +.topTh .tShow.hover .corner{display:block;} +.topTh .d2 .corner{left:45px;} +#qiyeLogin{display:none;} + +#header{padding:0;height:104px;width:1000px;margin:0 auto;} +.header_inner{width:1000px;margin:auto; position:relative;z-index:31;} +.header_inner .logo{width:240px;margin:0px;float:left;padding:5px 0px 0px 0px;position:relative;} +.header_inner .logo a.logoleft{display:block;position:absolute;left:0px;width:197px;padding:0px 0px 0px 0px;background:url(../images/logo66.png?v=1.5) 0px 0px no-repeat;_background:url(../images/indexImg20130307.jpg?v=1.1) -33px 0px no-repeat;height:66px;} +.header_inner .logo a.logoright{display:block;position:absolute;width:116px;right:0px;height:66px;background:url(../images/indexImg20130307.png?v=1.5) -160px 0px no-repeat;_background:url(../images/indexImg20130307.jpg?v=1.1) -160px 0px no-repeat;} +.header_inner .logo .logoright_best{margin-top:12px;} +.header_inner .logo div.logo-text{position:absolute;top:73px;left:0;color:#000;font-size:14px; font-family:Microsoft YaHei; clear:both;letter-spacing:1px; text-align:center;width:240px;} +.header_inner .logo div.logo-text font{font-family:Microsoft YaHei;font-size:14px; font-weight:bold;} +.header_inner .search{position:absolute;width:415px;margin:0px; padding:0px;right:245px;top:28px;} +.header_inner .search input.text{border:1px solid #669900;width:330px; height:32px; line-height:32px;vertical-align:middle; float:left;padding:0px 0px 0px 4px;} +.header_inner .search input.submit{margin:0px;height:34px;width:78px;cursor:pointer;float:left;vertical-align:middle;border:0;background:url(../images/header.png) no-repeat -107px -179px; color:#FFF;} +.search_hot{clear:both;text-align:left;padding:4px 0px 0px 0px;} +.search_hot a{margin:0px 8px 0px 0px; color:#979797;} +.search_hot a:hover{color:#669900;} +/*顶部购物车*/ +.shopingcar{width:146px;padding-left:48px;position:absolute;top:28px;right:0px;height:33px;border:1px solid #efefef;line-height:33px;font-size:12px;} +.shopingcar a:hover{color:#669900;} +.shopingcar s{background:url(../images/header.png) no-repeat -54px -16px;width:23px;height:21px;left:17px;position:absolute;top:4px;} +.shopingcar b#cartNum{position:absolute;top:-1px;left:154px;width:40px;height:34px;text-align:center;line-height:34px;background-color:#fa9600;color:white;font-size:16px;font-weight:600;} +.shopingcar ul li.nmlist {border: 0 none;} +.shopingcar ul li.nmline {border-bottom: 1px dashed #CCCCCC;height: 0;line-height: 0;margin: 0;overflow: hidden;padding: 0;} +.shopingcar ul li.nmtop {background-color: #F2F6ED;border-bottom: 1px solid #CCCCCC;height: 26px;line-height: 26px;margin: 0;overflow: hidden;padding: 0;} +.nmtitle {color: #1B6146;float: left;} +.nmtotal {float: right;} +.nmtotal font {color: #EA5404;font-size: 14px;font-weight: bold;} +.nmtotal a:link {color:#999999;} +#topCart.hover .blank,#topCart.hover #cart_lists,#topCart.hover .outline{display:block;position:absolute;border:1px solid #efefef;background-color:white;} +#topCart.hover .blank{top:-1px;height:33px;z-index:-1;left:-1px;width:194px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #efefef;} +#topCart.hover .outline{z-index:1;left:0;width:194px;height:8px;top:33px;border:0 none;} +#topCart.hover .t{color:#666666;} +#topCart .setCart{background:url(../images/header.png) no-repeat -102px -235px; margin:2px 0 0 0;} +#cart_lists{display:none;width:360px;right:-1px;_right:-2px;-moz-box-shadow:0 0 5px #efefef;-webkit-box-shadow:0 0 5px #efefef;box-shadow:0 0 5px #dadada;top:34px;} +#cart_lists .btn{display:none;} +.floatcar{padding:10px;width:340px;font-size:12px;font-weight:normal;line-height:20px;} +.floatcar .nopro{ width:240px; height:42px; margin:0 0 0 85px; background:url(../images/header.png) no-repeat -99px -123px;} +.floatcar .nopro p{ padding-left:50px;} +.floatcar .nopro p span{ color:#969696;} +.floatcar .nopro p span .no_dl{ color:#669900;} +.floatcar .title{color:#6c6c6c;border-bottom:1px solid #1b6146;height:24px;} +.floatcar .total p{width:170px;float:left;} +#listCartNum{color:#ea5404;font-size:14px;font-weight:bold;} +.floatcar .total p font{color:#ea5404;font-size:18px;font-weight:bold; font-family:Arial, Helvetica, sans-serif;} +.floatcar ul{margin:0px;padding:0px;display:block;position:relative;max-height:195px;_height:201px;overflow:auto;} +.floatcar ul li{margin:0px; padding:12px 0px 12px 0px;height:40px;position:relative; border-bottom:1px dashed #ccc; line-height:18px;color:#565656;} +.floatcar ul li:hover{ background:#f5f5f5;} +.floatcar ul li .l{position:absolute;width:45px;height:45px;} +.floatcar ul li .l img{width:40px;height:40px;vertical-align:middle;border:1px solid #ccc;} +.floatcar ul li .c{position:absolute;width:200px;height:36px;left:48px;top:14px; overflow:hidden;} +.floatcar ul li .c a{color:#565656; text-decoration:none; display:block; height:18px; overflow:hidden;} +.floatcar ul li .c a:hover{color:#669900; text-decoration:none;} +.floatcar ul li .c b{color:#cecece; font-weight:normal;} +.floatcar ul li .r{position:absolute; text-align:right;width:80px;height:36px;right:0px;} +.floatcar ul li .r font{color:#f05404;font-size:14px;font-weight:bold;} +.floatcar ul li .r a{clear:both;color:#999999; text-decoration:none} +.floatcar ul li .r a:hover{ text-decoration:underline} + +/*----页头---*/ +.mainNav{width:100%;height:39px;} +.navmenu{margin:0px auto;color:#303437;padding:0;width:1000px;clear:both;} +.navmenu .categories{float:left;width:200px;background:#76ac25;height:39px;text-align:left;position:relative;z-index:31} +.navmenu .categories .dt{height:39px;overflow:hidden; background:url(../images/cate_bg.jpg);} +.navmenu .categories a.topall{height:40px;line-height:40px;display:block;margin:0px; padding:0px;color:#fff;font-size:15px; font-family:Microsoft YaHei; font-weight:bold;width:200px; text-align:center; text-decoration:none;} +.navmenu .categories b{position:absolute;top:18px;right:35px;width:11px;height:7px;background:url(../images/header.png) no-repeat -55px -43px;overflow:hidden;} +.navmenu .categories.hover b{top:38px;margin:0 25px;border-top:1px solid #91d42b;height:0px;line-height:0;width:150px;overflow:hidden;background:0 none;right:auto;} +.menu1{width:800px;float:right;position:relative;z-index:30} +.menu1 ul{width:800px;overflow:hidden;height:37px; line-height:37px;border-bottom:2px solid #679800;} +.menu1 li{float:left;text-align:center;color:#303437;} +.menu1 li a{font-size:14px; text-align:center;text-decoration:none;display:block;height:40px;width:95px;font-family:Microsoft YaHei;color:#333;font-weight:700;} +.menu1 li a:hover{font-size:14px;color:#669900;text-decoration:none} +.menu1 li a.btndown{color:#669900;} +.menu1 .minisite{float:right;} +.menu1 .minisite1{ border-right:1px solid #DCDCDC; width:1px; height:14px; line-height:14px; margin:12px 0 0 0;} +.menu1 .minisite a{text-align:center;width:70px;font-size:12px; display:block;} +.menu1 .minisite a:hover{font-size:12px;} +.catTag{background-color:#fa9600;color:white;position:absolute;z-index:999;height:16px;line-height:16px;padding:0 2px;top:-8px;} +.catTag b{width:0;height:0;line-height:0;font-size:0;border-left:2px solid #fa9600;border-top:2px solid #fa9600;border-right:2px dashed white;border-bottom:2px dashed white;position:absolute;left:4px;top:16px;} +#catTag_1{left:175px;} +#catTag_2{left:275px;} +#catTag_3{left:375px;} +#catTag_4{left:475px;} +/*公共头部品类菜单显示*/ +#public_cate .dd{display:none;} +#public_cate.hover .dd{display:block;} +/*---------品类菜单 ----------*/ +#allSort{margin:0;z-index:998;padding:0;width:200px;height:480px;position:absolute;background-color:#76ac25;} +#booksort{padding-top:8px;padding-left:15px;} +#booksort .item{height:58px;} +#booksort .item .i-master{display:block;height:54px;padding-left:15px;font-family:Microsoft YaHei;} +#booksort .item .i-master a{color:white; margin-left:2px;} +#booksort .item .i-master a:hover{color:#fa9600;} +#booksort .item h3{font-weight:normal;font-size:14px;padding-top:5px;line-height:22px;} +#booksort .item .subCat{font-size:12px;overflow:hidden;line-height:20px;height:20px;} +#booksort .item .subCat a{ color:#ddeac8;} +#booksort .item .subCat li{float:left;margin-right:8px;_display:inline;} +#booksort .item .i-cm{position:absolute;top:0;left:200px;width:560px;height:480px;background:#ffffff;z-index:999;display:none;} +#booksort .item .i-master s{position:absolute;width:11px;height:54px;background-color:white;left:190px;z-index:1000;display:none;margin-top:-47px;} +#booksort .item .i-master h3 .fresh{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px 5px; margin-left:-20px;float :left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .drinks{ width:14px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -46px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .food{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -104px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .pastry{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -157px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .oil{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -265px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .baby{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -319px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .health{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -373px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .tea{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -212px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .tools{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -428px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-cm{display:block;} +#booksort .item.hover .i-master{background-color:white;color:#76ac25;margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3{ margin-left:10px;} +#booksort .item.hover .i-master .subCat{margin-left:10px;} +#booksort .item.hover .i-master a{color:#76ac25;text-decoration:none;} +#booksort .item.hover .i-master a:hover{text-decoration:underline;} +#booksort .item.hover .i-master s{display:block;} +#booksort .item.hover .i-master h3 .fresh{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 5px; margin-left:-20px;float :left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .drinks{ width:14px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -46px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .food{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -104px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .pastry{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -157px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .oil{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -265px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .baby{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -319px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .health{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -373px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .tea{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -212px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .tools{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -428px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +/*2015/12/8分类图标修改 Start*/ +#booksort .item .i-master .dev .fresh{background:url(../images/left_lm_m_a.png) no-repeat 0 5px;}/*肉类海鲜*/ +#booksort .item .i-master .dev .baby{background:url(../images/left_lm_m_a.png) no-repeat 0 -324px;}/*熟食蛋奶*/ +#booksort .item .i-master .dev .pastry{background:url(../images/left_lm_m_a.png) no-repeat 0 -159px;}/*水果蔬菜*/ +#booksort .item .i-master .dev .drinks{background:url(../images/left_lm_m_a.png) no-repeat 0 -47px;}/*酒水饮料*/ +#booksort .item .i-master .dev .food{background:url(../images/left_lm_m_a.png) no-repeat 0 -106px;}/*休闲食品*/ +#booksort .item .i-master .dev .tea{background:url(../images/left_lm_m_a.png) no-repeat 0 -213px;}/*冲调茶饮*/ +#booksort .item .i-master .dev .oil{background:url(../images/left_lm_m_a.png) no-repeat 0 -270px;}/*粮油副食*/ +#booksort .item .i-master .dev .health{background:url(../images/left_lm_m_a.png) no-repeat 0 -378px;}/*南北干货*/ +#booksort .item.hover .i-master .dev .fresh{background:url(../images/left_lm_m.png) no-repeat 0 5px;}/*肉类海鲜*/ +#booksort .item.hover .i-master .dev .baby{background:url(../images/left_lm_m.png) no-repeat 0 -324px;}/*熟食蛋奶*/ +#booksort .item.hover .i-master .dev .pastry{background:url(../images/left_lm_m.png) no-repeat 0 -159px;}/*水果蔬菜*/ +#booksort .item.hover .i-master .dev .drinks{background:url(../images/left_lm_m.png) no-repeat 0 -47px;}/*酒水饮料*/ +#booksort .item.hover .i-master .dev .food{background:url(../images/left_lm_m.png) no-repeat 0 -106px;}/*休闲食品*/ +#booksort .item.hover .i-master .dev .tea{background:url(../images/left_lm_m.png) no-repeat 0 -213px;}/*冲调茶饮*/ +#booksort .item.hover .i-master .dev .oil{background:url(../images/left_lm_m.png) no-repeat 0 -270px;}/*粮油副食*/ +#booksort .item.hover .i-master .dev .health{background:url(../images/left_lm_m.png) no-repeat 0 -378px;}/*南北干货*/ +/*2015/12/8分类图标修改 End*/ +#booksort .i-cm .i-left{float:left;width:542px;} +#booksort .i-cm .i-right{float:right;width:205px;height:506px;} +#booksort .cat-sort{width:542px;height:246px;padding:8px 0 24px 10px;} +#booksort .cat-sort dl{overflow:hidden;zoom:1;font-family:Microsoft YaHei;padding:1px 0 0 0;} +#booksort .cat-sort dt{width:80px;padding-right:10px;float:left;text-align:right;height:18px;line-height:18px;margin:4px 0px;color:#76ac25;} +#booksort .cat-sort dt a{color:#76ac25;} +#booksort .cat-sort dt a:hover{ text-decoration:underline;} +#booksort .cat-sort dd{overflow:hidden;zoom:1;} +#booksort .cat-sort dd a{float:left;white-space:nowrap;display:block;text-decoration:none;font-size:12px;height:18px;line-height:18px;margin:4px 0px;text-align:left;padding:0px 6px;border-left:1px solid #ccc; color:#666;} +#booksort .cat-sort dd a:hover{text-decoration:none;color:#76ac25;} +#booksort .i-left .i-img img{width:560px;height:200px;} +#booksort .i-right .i-channel{height:54px;text-align:center;background-color:#f7f6f5;padding:16px 10px;font-family:Microsoft YaHei;} +#booksort .i-right .i-channel dt{color:#363636;font-size:16px;line-height:54px;margin-bottom:4px;} +#booksort .i-right .i-channel dt a:hover{ color:#669900;} +#booksort .i-right .i-channel em{ width:20px; height:20px;background:url(../images/index_icon_new.png) no-repeat -245px -55px; margin:18px 0 0 10px; *margin:0 0 0 10px; overflow:hidden; position:absolute;} +#booksort .i-right .i-channel em a{ display:block; cursor:pointer;width:20px; height:20px;} +#booksort .i-right .i-active{height:106px;padding:12px;font-family:Microsoft YaHei;} +#booksort .i-right .i-active dt{color:#76ac25;line-height:20px;margin-bottom:10px;font-weight:bold;} +#booksort .i-right .i-active dd a{display:block;line-height:24px;height:24px;overflow:hidden;} +#booksort .i-right .i-active dd a:hover{color:#669900;} +#booksort .i-right .i-brand{border-top:1px solid #e5e5e5;padding:10px;} +#booksort .i-right .i-brand dt{overflow:hidden;zoom:1;margin-bottom:10px;} +#booksort .i-right .i-brand .fl{color:#76ac25;font-family:Microsoft YaHei;font-weight:bold;} +#booksort .i-right .i-brand .fr{padding-right:5px;color:#666666;} +#booksort .i-right .i-brand .fr a{color:#666666;} +#booksort .i-right .i-brand .fr a:hover{ color:#669900;} +#booksort .i-right .i-brand dd{width:177px;margin:0 auto;overflow:hidden;zoom:1;border-top:1px solid #f2f2f2;border-left:1px solid #f2f2f2;} +#booksort .i-right .i-brand dd a{float:left;width:87px;height:56px;text-align:center;border-right:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;overflow:hidden;} +#booksort .i-right .i-brand img{width:56px;height:56px;} +#booksort .item .i-close{width:25px;height:25px;position:absolute;top:6px;right:6px;background:url(../images/index_icon_new.png) no-repeat -245px -1px;cursor:pointer;} +a.submit5{ margin:10px 0 0 0; display:block;font-size:14px;color:#fff;height:28px;line-height:28px;cursor:pointer;vertical-align:middle;vertical-align:baseline\9;text-decoration:none; width:110px; text-align:center; background:url(../images/productinfo.png) no-repeat -182px -234px;} +a.submit5:hover{color:#fff;background:url(../images/productinfo.png) no-repeat -182px -262px;} +.startitle{width:60px;float:left;height:22px;} +.starouter{background:url(../images/star0.jpg) no-repeat top left;width:64px;float:left;height:12px;} +.starinner{background:url(../images/star5.jpg) no-repeat top left;height:12px;} +.starnumber{width:40px;float:left; position:absolute;} +/*页脚*/ +.pageFooter{ width:1000px;margin:0 auto;} +.pageFooter .middle{ float:left; width:240px; height:145px; margin:20px 0px 0px 0px; background:url(/images/logo.jpg) no-repeat left top;} +.pageFooter .middle ul{ padding-top:85px;} +.pageFooter .middle .kefu{ font-size:20px; color:#646464; font-weight:bold; padding:6px 0;} +.pageFooter .left{float:left;margin:35px 0 0 0;height:145px;} +.pageFooter .left ul{margin:0px;padding:0px 0px 0px 0px;float:left;} +.pageFooter .left ul li{font-size:14px;color:#666666;font-family:Microsoft YaHei;font-weight:bold;} +.pageFooter .left .f_ios li{ width:80px;text-align:center;margin:0 50px 8px 0;*margin-right:25px;line-height:24px;} +.pageFooter .left .f_ios span{display:block;width:80px;height:80px;background:url(/images/foot_bottom.png) no-repeat 0px 0px;margin:auto} +.pageFooter .left .f_wx li{ width:80px;text-align:center; line-height:24px;margin:0 0 8px 0;} +.pageFooter .left .f_wx span{display:block;width:80px;height:80px;background:url(/images/foot_bottom.png) no-repeat -83px 0px;margin:auto} +.pageFooter .right{float:left;margin:35px 0 0 0;width:500px;} +.pageFooter .right ul{float:left;margin:0px 10px 0px 0px;padding:0px 0px 0px 0px;width:110px;} +.pageFooter .right ul.sj{display:none;} +.pageFooter .right ul li{text-align:left;font-family:Microsoft YaHei;height:24px;line-height:24px;} +.pageFooter .right ul li a{color:#707070;display:block;padding:0px 0px 0px 0px;} +.pageFooter .right ul li.title{color:#707070;font-weight:bold;font-size:14px; } +#footer{margin:5px auto 0 auto;padding:0;line-height:18px;color:#969696;width:100%;} +#footer a{color:#646464; text-decoration:none;} +#footer a:hover{ color:#669900; text-decoration:none;} +#footer .f_ios a:hover{color:#646464; text-decoration:none;} +#footer a.beian{color:#969696; text-decoration:none;} +#footer a.beian:hover{ color:#669900; text-decoration:none;} +#footer .siteinfo span{ padding-left:13px;} +#footer .footer_zd{width:100%; border-bottom:1px solid #E0E0E0;} +#footer .footer_zd1{width:100%; border-bottom:1px solid #E0E0E0; margin:20px 0 0 0;} +#footer .foot{ width:100%; height:285px;} +#footer .bottom{ width:1000px; height:50px; margin:0px auto; border-top:1px solid #E0E0E0; padding-top:15px;} +#footer .bottom_kx{ float:left; position:absolute; padding-top:6px;} +#footer .bottom_sm{ position:absolute; padding:6px 0 0 90px; float:left} +#footer .help{background:url(/images/helpbg.jpg) repeat-x top left #e6e6e6;height:177px; } +#footer .help ul{width:720px;display:block; margin:8px 0px 0px 70px;#margin:8px 0px 0px 70px;_margin:8px 0px 0px 40px; padding:0px;float:left;} +#footer .help ul li{float:left;width:180px;list-style:none; text-align:left; background:url(/images/footer_line.jpg) no-repeat 75% top;} +#footer .help ul li h3{padding:0px 0px 4px 0px; margin:0px;font-size:14px;color:#7a6b56; display:block; font-weight:bold;} +#footer .help ul li img{ margin:0px 0px 0px 12px;} +#footer .help ul li a{color:#6a6a6a;float:left;width:100px; height:18px; line-height:18px;display:block; text-decoration:none; background:url(../images/help_contenticon.gif) no-repeat 0% 50%; text-align:left; padding:2px 0px 2px 18px;font-size:13px;} +#footer .help ul li a:hover{ text-decoration:underline} +#footer .help .tel{float:right;width:195px; border-left:0px solid #ccc;} +#footer .service{background:url(../images/servicebg.jpg) repeat-y;} +#footer .siteinfo{ float:left; padding-left:182px;} +/*弹窗*/ +.window{width:350px; border:3px solid #e6e6e6; position:absolute; margin-left:-150px; margin-top:-150px; top:50%; left:50%; background:#fff;} +.window .content{ padding:20px 12px 12px 12px; text-align:center; line-height:24px; font-size:14px;} +.window .titlehead{background-color:#f5f5f5;height:31px;line-height:31px;border:0 none;} +.window h3{width:150px; float:left;margin:0px; padding:0px 0px 0px 16px;font-size:14px; color:#565656;font-family:微软雅黑; } +.window h3 img{border:0px; padding:0px; margin:0px;} +.carwindow{width:340px; height:90px; border:1px solid #176246; position:absolute; top:200px; left:0; background:#fff;z-index:999;} +.carwindow .content{padding:12px 12px 12px 20px; text-align:center; line-height:22px; height:67px; overflow:hidden;} +.carwindow .content1{padding:5px; text-align:left; line-height:20px; border-top:#999 1px dashed; color:#804F21;} +.carwindow .content img{float:left; margin:14px 0px 0px 0px;} +.carwindow .content ul{float:left;width:260px; } +.carwindow .content ul li{text-align:left; padding:0px 0px 0px 20px;color:#804F21;} +.carwindow .content ul li a{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:75px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left;} +.carwindow .content ul li a:hover{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:75px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left; text-decoration:none;} +.carwindow .content ul li span a{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left;} +.carwindow .content ul li span a:hover{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left; text-decoration:none;} +.carwindow .content ul li .pclose{ background:none;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;margin: 0 12px 0 0; color:#804F21; display:block; float:left; text-decoration:underline;} +.carwindow .content ul li .pclose:hover{ background:none;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;margin: 0 12px 0 0; color:#804F21; display:block; float:left; text-decoration:underline;} +.carwindow .content ul li span{color:red;} +.carwindow .content ul li .submit1{ list-style-type:none; border-style:none;width:65px; text-align:center; height:22px; line-height:18px; margin:0; padding:0 0 2px 0; border:0;border: 1px solid #926E3E; overflow:hidden; margin-top:-1px;} +.carwindow .content1 ul{width:320px;} +.carwindow .content1 li{float:left; width:78px; text-align:center; color:#804F21; overflow:hidden; padding:0 1px; clear:none;} +.carwindow .content1 li a{border:0;color:#804F21;} +.carwindow .content1 li h3{font-size:12px; font-weight:normal; line-height:20px; height:20px; width:80px;color:#804F21; overflow:hidden;} + +.sd_window{ padding:6px; background:rgba(162,162,162,0.8); *+background:#a2a2a2;} +.sd_window .content{ background:#fff; padding:0 12px 12px 12px;} +.sd_window .dig_content{ padding:20px;} +.sd_window .dig_content .sd_img{ width:122px; min-height:150px; float:left; background:url(../images/sd_icon.jpg) left top no-repeat; padding-right:25px;} +.sd_window .popup_message{ text-align:left; overflow:hidden; zoom:1; color:#646464;} +.sd_window .popup_message .sd_word{ line-height:30px; font-size:14px;} +.sd_window .popup_message .sd_word1{ line-height:24px; font-size:12px;} +.sd_window .popup_message .sd_tel{ padding-top:32px; font-size:12px;} +.sd_window .titlehead{ height:45px; line-height:45px; background:#fafafa; border-bottom:1px solid #e1e1e1;} +.sd_window .titlehead h3{ font-size:16px; color:#646464; font-weight:normal;} +.sd_window .sd_close{ cursor:pointer; display:inline-block; float:right; background: url(../images/sd_close.jpg) left top no-repeat; width:17px; height:20px; position:relative; right:20px; top:13px; } +.sd_window #popup_panel{margin-top:15px; height:26px; text-align:center; } +.sd_window .content .sd_btn, .sd_window .content .sd_btn1{ cursor:pointer; padding:5px 15px; *+padding:5px 5px 2px; text-align:center; outline:none; border-radius:3px; margin-right:6px;} +.sd_window .content .sd_btn{ color:#fff; background:#69af05; border:1px solid #69af05;} +.sd_window .content .sd_btn:hover{ background:#7ac50f; border:1px solid #7ac50f;} +.sd_window .content .sd_btn1{ color:#646464; background:#fff; border:1px solid #dcdcdc; } +.sd_window .content .sd_btn1:hover{ color:#69af05; border:1px solid #dcdcdc;} +.sd_window .content .sd_floatleft{ float:left;} +/*加入购物车new*/ +.carwindownew{width:340px; border:1px solid #176246; position:absolute; top:200px; left:0; background:#fff;z-index:999;} +.carwindownew .content{padding:12px 12px 12px 20px; text-align:center; line-height:22px; height:67px; overflow:hidden;} +.carwindownew .content1{padding:5px; text-align:left; line-height:20px; border-top:#999 1px dashed;} +.carwindownew .content img{float:left; margin:14px 0px 0px 0px;} +.carwindownew .content ul{float:left;width:260px; } +.carwindownew .content ul li{text-align:left; padding:0px 0px 0px 20px;} +.carwindownew .content ul li a{ background: url(../images/btn_bg.jpg) repeat-x bottom #058a5f;width:75px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #01533c;margin: 0 12px 0 0; color:#ffffff; display:block; float:left;} +.carwindownew .content ul li a:hover{ background: url(../images/btn_bg.jpg) repeat-x bottom #058a5f;width:75px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #058a5f;margin: 0 12px 0 0; color:#ffffff; display:block; float:left; text-decoration:none;} +.carwindownew .content ul li span a{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left;} +.carwindownew .content ul li span a:hover{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left; text-decoration:none;} +.carwindownew .content ul li .pclose{ background:none;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;margin: 0 12px 0 0; color:#804F21; display:block; float:left; text-decoration:underline;} +.carwindownew .content ul li .pclose:hover{ background:none;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;margin: 0 12px 0 0; color:#804F21; display:block; float:left; text-decoration:underline;} +.carwindownew .content ul li span{color:red;} +.carwindownew .content ul li .submit1{ list-style-type:none; border-style:none;width:65px; text-align:center; height:22px; line-height:18px; margin:0; padding:0 0 2px 0; border:0;border: 1px solid #926E3E; overflow:hidden; margin-top:-1px;} +.carwindownew .content1 ul{width:320px;} +.carwindownew .content1 li{float:left; width:78px; text-align:center; color:#ea5404; overflow:hidden; padding:0 1px; clear:none;} +.carwindownew .content1 li a{border:0;} +.carwindownew .content1 li h3{font-size:12px; font-weight:normal; line-height:20px; height:20px; width:80px;color:#804F21; overflow:hidden;} +/*分页*/ +.page{text-align:center;padding:12px 12px 12px 12px;margin:0px;clear:both;} +.page A {border-right:#176246 1px solid; padding-right: 5px; border-top: #176246 1px solid;padding-left: 5px; padding-bottom: 2px; margin: 2px; border-left: #176246 1px solid; color: #025e42; PADDING-TOP: 2px; BORDER-BOTTOM: #176246 1px solid; TEXT-DECORATION: none;} +.page A:hover{BORDER-RIGHT: #999 1px solid; BORDER-TOP: #999 1px solid; BORDER-LEFT: #999 1px solid; COLOR: #4a2f24; BORDER-BOTTOM: #999 1px solid} +.page A:active{BORDER-RIGHT: #4a2f24 1px solid; BORDER-TOP: #4a2f24 1px solid; BORDER-LEFT: #4a2f24 1px solid; COLOR: #4a2f24; BORDER-BOTTOM: #4a2f24 1px solid} +.page .current{PADDING-RIGHT: 5px;PADDING-LEFT: 5px; FONT-WEIGHT: bold; PADDING-BOTTOM: 2px; MARGIN: 2px; COLOR: #fff; PADDING-TOP: 2px; BACKGROUND:url(../images/btn_bg.jpg) repeat-x bottom #087d56;border:1px solid #176246;} +.page .disabled{BORDER-RIGHT: #dadada 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #dadada 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 2px; MARGIN: 2px; BORDER-LEFT: #dadada 1px solid; COLOR: #ddd; PADDING-TOP: 2px; BORDER-BOTTOM: #dadada 1px solid} +/*订单成功*/ +.newbox{border:1px solid #dadada; background-color:#FFF;zoom:1;} +.newthead{height:34px;line-height:34px; background:#f5f5f5;} +.newthead h3{font-size:14px;font-weight:bold;color:#565656;padding:0 10px;} +.newcont{text-align:center;padding:50px 10px 10px 10px;} +.newtxt1{font-size:18px; font-family:"微软雅黑";color:#6e9b0c;height:39px;line-height:39px;font-weight:bold;text-align:left;text-align:center;} +.new_yes{ background:url(../images/dengluzhuceform.gif) no-repeat 0 -53px;padding:5px 0 12px 54px;} +.new_wrong{background:url(../images/dengluzhuceform.gif) no-repeat 5px -95px;padding:6px 0 4px 54px;} +.newtxt2{font-size:14px;color:#666666;padding:30px 0 0 0;} +.newnomail{margin:25px;color:#666666;} +.newfc{color:#316ACA;} +.newfc a{color:#316ACA;text-decoration:underline;} +.newfc a:hover{color:#316ACA;} +.new10s{font-size:14px;color:#999999;font-family:"宋体";font-weight:normal;} +.newgo{padding:40px 100px;text-align:center;margin:25px;} +.newtxt4{color:#996633;font-size:14px;} +.newlink{padding:30px 10px 0 10px;font-size:14px;} +.newtxt5{color:#666666;padding:30px 0 0 0;} +.newred{color:#fb8e19;} +.newtbl{padding:0px;margin:0 100px 30px 100px;} +.newdingdan th{height:30px;color:#666666;font-size:12px;font-weight:normal;background-color:#f5f5f5;} +.newdingdan td{border-bottom:1px solid #eeeeee;height:30px;font-size:12px;text-align:center;color:#565656} +.newcont2{text-align:center;padding:10px 10px 0 10px;margin:0 0 40px 0;} +.payment td{ padding:6px;} +.alipayAd{border:1px solid #fa6400;background-color:white;height:18px;line-height:18px;position:absolute;top:-11px;left:6px;padding-left:25px;padding-right:5px;display:none;color:#ea5404;} +.alipayAd span{position:absolute;left:0;height:18px;padding:0 4px;background-color:#fa6400;color:#ffffff;} +/*付款成功*/ +.newtxt6{color:#666666;padding:30px 0 0 0;} +.newtxt7{padding:10px 10px 10px 25px;font-size:14px;color:#176246;font-weight:bold;border-top:1px solid #cccccc;} +/*提交支付*/ +.submitbox{width:920px;border:1px solid #eeeeee; padding:40px;margin:0 auto;} +.submitbox ul{margin:0;padding:0;} +.submitbox ul li{list-style:none; padding:12px; text-align:center} +.submitbox .titlehead3{padding:20px; margin:20px;text-align: center;} +#main{width:1000px;margin:0 auto;} +.mailDY{margin-right:6px; padding:8px 0px 0px 0px;} +.mailDYtit{overflow:hidden;zoom:1;} +.mailDYtit h3{font-size:12px;float:left;color:#565656;} +.mailDYtit span{float:right;color:#999999; padding:0px 20px 0px 0px} +.mailDYtit span a:link{color:#999999;font-size:12px;} +.mailDYtit span a:visited{color:#999999;} +.mailDYitem{zoom:1;} +.mailDYitem span{float:left;} +.mailDYitem .i{width:100px;height:20px;line-height:20px;padding:0 2px;border:1px solid #cccccc;margin-right:2px;display:inline;} +.mailDYitem .btn{background:url(../images/footer_ico.jpg) no-repeat -146px -64px;height:22px;width:50px;border:0;display:block;} +.mailDYitem .s{height:22px;border:1px solid #cccccc;margin-right:3px;display:inline;} +em {font-style: normal;} +#store-selector .close ,#store-selector_sfv .close,#store-selector1 .close {background:url(../images/sf-stock.png) no-repeat 0 -70px;display: none;height: 17px;left: 345px;position: absolute;top: 35px;width: 17px;z-index: 2;} +#store-selector .tips{line-height:24px;color:red;padding:0 3px 0 0;} +#store-selector.hover .content, #store-selector.hover .close,#store-selector_sfv.hover .content, #store-selector_sfv.hover .close,#store-selector1.hover .content,#store-selector1.hover .close {display: block;} +#store-selector.hover .close ,#store-selector_sfv.hover .close,#store-selector1.hover .close{cursor: pointer;} +#store-selector .content ,#store-selector_sfv .content,#store-selector1 .content{background: none repeat scroll 0 0 #FFFFFF;border: 1px solid #CECBCE;box-shadow: 0 0 5px #DDDDDD;display: none;left: -45px;padding: 15px;position: absolute;top: 25px;width: 390px;} +#store-selector .juli1{left:-250px;} +#store-selector .juli2{left:140px;} +.m, .mt, .mc{overflow: hidden;} +.mt{cursor: default;} +#store-selector,#store-selector_sfv,#store-selector1 {float: left;height: 26px;margin-right: 6px;position: relative;z-index: 91;} +#store-selector_sfv{z-index: 90;} +#store-selector.hover .text ,#store-selector_sfv.hover .text,#store-selector1.hover .text {border-bottom: 0 none;height: 25px;z-index: 1;width:auto;} +#store-selector .text ,#store-selector_sfv .text,#store-selector1 .text {background:#FFFFFF;border: 1px solid #CECBCE;float: left;height: 23px;line-height: 23px;overflow: hidden;padding: 0 20px 0 4px;position: relative;top: 0;font-size:12px; font-weight:normal;width:auto;} +#store-selector .text b ,#store-selector_sfv .text b,#store-selector1 .text b {background:url(../images/indexImg20130307.png?v=1.2) no-repeat -401px -2px;display: block;height: 24px;overflow: hidden;position: absolute;right: 0;top: 0;width: 17px;} +#store-selector .area-list li ,#store-selector_sfv .area-list li ,#store-selector1 .area-list li{clear: none;padding: 2px 0 2px 15px; font-size:12px;} +#store-selector .tab li ,#store-selector_sfv .tab li,#store-selector1 .tab li {clear: none;float: left;padding: 0;} +.SF-stock {position: relative;font-size:12px} +.SF-stock .tab {border-bottom: 1px solid #176246;float: left;height: 25px;overflow: visible;width: 100%;_overflow:hidden;} +.SF-stock .tab a{ color:#9e9e9e;border-top:1px solid #DDDDDD;border-left:1px solid #DDDDDD;border-right:1px solid #DDDDDD;cursor: pointer;float: left;height: 23px;line-height: 23px;margin-right: 3px;padding: 0 21px 1px 11px;position: relative;text-align: center;} +*html .SF-stock .tab a{position:static;} +.SF-stock .tab a{text-decoration:none;font-size:12px; font-weight:normal;} +.SF-stock .tab a:hover{color: #176246;} +.SF-stock .tab a.hover {background-color: #FFFFFF;border-top:1px solid #176246;border-left:1px solid #176246;border-right:1px solid #176246;color: #176246;height: 25px;line-height: 22px;padding: 0 20px 0 10px;text-decoration: none;} +.SF-stock .tab a i{background-image: url(../images/sf-stock.png);background-repeat: no-repeat;} +.SF-stock .tab a i{background-position: 0 -35px;display: block;height: 5px;overflow: hidden;position: absolute;right: 4px;top: 10px;width: 7px;} +.SF-stock .tab a:hover i {background-position: 0 -28px;right: 4px;top: 10px;} +.area-list {padding-top: 5px;} +.area-list li {clear: none;float: left;padding: 2px 0 2px 15px;width: 80px;} +.area-list li a {float: left;padding: 2px 4px;text-decoration:none;font-size:12px; font-weight:normal; color:#565656;} +.area-list li a:hover {background-color: #176246;color: #FFFFFF;} +.area-list .longer-area {width: 370px;} +.area-list .long-area {width: 170px;} +.sfregionTop{width:400px;margin:60px 10px 0px 40px;} +.sfregionTxt{line-height:26px;font-size:14px} +.sfregionBuy{margin:40px 10px 0px 180px;} +#store-selector1{height:24px;margin-right:3px;} +#store-selector1 .text{height: 20px;line-height: 20px;} +#store-selector1 .area-list{padding:5px 0 0 0;} +#store-selector1 .area-list li{line-height:20px;height:20px;padding:2px 0;width:60px;overflow:hidden;} +#store-selector1.hover .content{width:300px;} +#store-selector1 .close{left:255px;} +#store-selector1 .SF-stock ul.tab{padding:0;} +/*更改地址前价格变化*/ +.cartAddrPrice{position:absolute;height:32px;width:182px;right:30px;top:5px;_right:40px;} +.cartAddrPrice .pTxt{position:absolute;background-color:#fcf8ef;border:1px solid #f3e1b9;height:23px;line-height:23px;padding:1px 5px;width:170px;top:15px;;right:0;color:red;} +.cartAddrPrice b{position:absolute;background:url(../images/cartbg.gif) no-repeat -140px -200px;width:10px;height:5px;top:11px;right:15px;} +/*page404*/ +.error_cont{position:relative; padding:0px 0px 20px 0px;} +.error_box{background:#fff;padding:12px;text-align:left;height:180px;width:900px; padding:20px;margin:20px 0px 0px 40px; line-height:40px; font-family:"微软雅黑"} +.error_tj{background:#fff;padding:12px;text-align:left;width:900px; padding:20px; border:1px solid #eee;margin:20px 0px 0px 40px; line-height:22px; font-family:"微软雅黑"} +.error_tj .title{border-bottom:1px solid #eee;margin:auto; line-height:20px; font-family:"微软雅黑"; font-weight:bold;height:22px;font-size:14px} +.error_tj .title span{border-bottom:2px solid #1b6147;height:22px; display:block;width:150px;} +.error_box h2{font-size:35px;color:#7c7c7c; padding:50px 0px 0px 0px;margin:0px;} +.error_box a{font-size:25px;color:#0000cc;text-decoration:underline} +.error_box a:hover{ text-decoration:none} +.error_box p{font-size:22px;} +#totalSecond{font-size:30px;font-weight:bold;color:red;} +.error_box img{float:left;margin-right:20px;} +.left-arrow,.fl-pic,.right-arrow{float:left;display:inline;margin:10px 0px 0px 0px;} +.left-arrow,.right-arrow{} +.left-arrow{background:url(/images/404_03.jpg) no-repeat top left;margin-left:15px;margin-top:90px;} +.right-arrow{background:url(/images/404_05.jpg) no-repeat top left;margin-right:0;margin-top:90px;} +.fl-pic{overflow: hidden;width:800px;height:250px;white-space:nowrap;} +.fl-pic ul{width:3500px;} +.fl-pic ul li{float:left;display:inline;margin:0px 12px 0px 0px;width:800px;height:220px;} +.fl-pic ul li .pic-box{float:left;display:inline;margin:0px 8px 0px 0px;width:150px;height:220px;text-align:center;} +.left-arrow a,.right-arrow a{width:15px;height:23px;display:block;text-indent:-9999px;} +.friend-Link{position:relative; margin:0px; width:900px;height:280px;} +.tj_title{font-size:12px; width: 150px;height:28px; overflow:hidden} +.tj_title a{font-size:12px;color:#606060;} +.tj_price{color: #ea5404;font-family:"微软雅黑";font-size: 16px;line-height: 20px;margin: auto;padding: 0px;text-align: left;width: 150px;height:22px;} +.tj_price font{color: #999;font-family:"微软雅黑";font-size: 12px; text-decoration: line-through; padding:0px 0px 0px 6px;} +.tj_shop_btn{text-align:left;width:150px;margin:auto;height:20px; } +.tj_shop_btn span{float:left;padding-right:4px;} +.error_tj{height:290px;} + +.pages {margin:12px;text-align:right;font-size:14px;padding:0 0 10px 0} +.pages a {border:1px solid #dadada;color: #6b6b6b;margin: 2px;padding:3px 6px;text-decoration: none;} +.pages .pagedot{font-family:Arial;border:1px solid #dadada;margin: 2px;padding:3px 6px;} +.pages .disabled {border:1px solid #dadada;color: #DDDDDD;margin: 2px;padding:3px 6px;} +.pages .prev{position:relative;padding-left:20px;} +.pages .next{position:relative;padding-right:20px;} +.pages .prev .prevarr {border-width:5px;border-color:#FFFFFF #ff0000 #FFFFFF #FFFFFF;border-style:dashed solid dashed dashed;height:0;width:0;font-size:0;overflow:hidden;position:absolute;left:4px;top:6px;} +*html .pages .prev .prevarr{top:7px;} +.pages .next .nextarr {border-width:5px;border-color:#FFFFFF #FFFFFF #FFFFFF #ff0000;border-style:dashed dashed dashed solid;height:0;width:0;font-size:0;overflow:hidden;position:absolute;right:4px;top:6px;} +*html .pages .next .nextarr{left:58px;top:7px;} +.pages .disabled .prevarr{border-color:#FFFFFF #dadada #FFFFFF #FFFFFF;} +.pages .disabled .nextarr{border-color:#FFFFFF #FFFFFF #FFFFFF #dadada;} +.pages a:hover {color: #176246;text-decoration: none;} +.pages a:active {border: 1px solid #4A2F24;color: #4A2F24;text-decoration: none;} +.pages .current {color: #6b6b6b;font-weight: bold;margin: 2px;padding:3px 7px;} diff --git a/e3-order-web/src/main/resources/static/css/jquery.alerts.css b/e3-order-web/src/main/resources/static/css/jquery.alerts.css new file mode 100644 index 0000000..e064f3f --- /dev/null +++ b/e3-order-web/src/main/resources/static/css/jquery.alerts.css @@ -0,0 +1,43 @@ +@charset "utf-8"; +#popup_container { + font-family: Arial, sans-serif; + font-size: 12px; + min-width: 300px; /* Dialog will be no smaller than this */ + max-width: 600px; /* Dialog will wrap after this width */ + background: #FFF; + border:3px solid #E6E6E6; + color: #000; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; +} +*html #popup_container {width:304px;} +#popup_content { + padding: 1em 1.75em; + margin: 0em; +} + +#popup_content.alert { +} + +#popup_content.confirm { +} + +#popup_content.prompt { +} + +#popup_message { + color: #6B6B6B; + margin: 0; + padding: 0; + text-align:center +} + +#popup_panel { + text-align: center; + margin: 1em 0em 0em 0em; +} + +#popup_prompt { + margin: .5em 0em; +} \ No newline at end of file diff --git a/e3-order-web/src/main/resources/static/css/newpay.css b/e3-order-web/src/main/resources/static/css/newpay.css new file mode 100644 index 0000000..126a6a4 --- /dev/null +++ b/e3-order-web/src/main/resources/static/css/newpay.css @@ -0,0 +1,133 @@ +body{text-algin:center;margin:0px;font-size:12px; font-family:Arial, Helvetica, sans-serif;padding:0; background:#f5f5f5;} +/*--logocss--*/ +.floatleft{ float:left;} +.clearfix{zoom:1;} +.clearfix:after{content: "."; display: block; height:0; clear: both; visibility:hidden;} +.payclear{ height:0px; clear:both; overflow:hidden;} +.logoPay{ height:78px; border-bottom:1px solid #dcdcdc; background:#fff;} +.logoPayBox{ width:1000px; margin:0 auto; height:73px;} +.logoPayBox img{ padding-top:3px;} +.pay_main{ background:#f5f5f5; font-family:"microsoft yahei"; min-height:500px;} +.pay_main .pay_newbox{ width:960px; min-height:102px; margin:0 auto; padding:0 20px; color:#323232;} +.pay_main .pay_left{ float:left; width:700px;} +.pay_main .pay_left span{ display:block;} +.pay_main .pay_word1{ font-size:16px; height:31px; line-height:31px; padding-top:20px;} +.pay_main .pay_word1 .payOkicon,.pay_main .pay_word1 .payOkicon1{ display:inline-block; position:relative; top:9px; top:0px\9; margin-right:6px; float:left\9; background:url(/images/pay/icon.png) left top no-repeat; } +.pay_main .pay_word1 .payOkicon{ width:31px; height:31px;} +.pay_main .pay_word1 .payOkicon1{ width:30px; height:30px; background-position:-59px -28px;} +.pay_main .oay_btns{ margin:30px; height:32px; font-size:14px;} +.oay_btns .pay_btn, .oay_btns .pay_btn1{ margin-left:10px; height:18px; line-height:18px; padding:6px 10px; display:inline-block; border-radius:3px; } +.oay_btns .pay_btn{ background:#fa9600; border:1px solid #fa9600; color:#fff;} +.oay_btns .pay_btn:hover{ background:#fa6400; border:1px solid #fa6400;} +.oay_btns .pay_btn1{ background:#fff; border:1px solid #e6e6e6; color:#646464;} +.oay_btns .pay_btn1:hover{ background:#fff; border:1px solid #e6e6e6; color:#669900} +.pay_main .pay_word2{ font-size:12px; height:18px; line-height:18px; padding:15px 0 0 40px;} +.pay_main .pay_word2 em{ color:#fa6400;} +.pay_main .pay_Rmoney{ width:210px; height:30px; line-height:30px; float:right; text-align:right; font-size:16px; padding-top:50px; overflow:hidden;} +.pay_main .pay_Rmoney .pay_price{ color:#fa6400; font-size:20px;} +.pay_main .pay_ment{ width:980px; padding:20px 10px; margin:0 auto; background:#fff url(/images/pay/pay_line.jpg) top left repeat-x;} +.pay_main .pay_name{ height:18px; line-height:18px; font-size:16px; padding:0 10px;} +.pay_main .pay_name .pay_lj{ color:#969696; font-size:12px; text-decoration:none; padding-left:20px;} +.pay_main .pay_name .pay_lj i{ margin-left:20px; background:url(/images/pay/icon.png) left top no-repeat; background-position:-32px 0; width:18px; height:18px; display:inline-block; float:left\9; position:relative; top:1px; margin-right:3px;} +.pay_main .pay_name1{ padding:0 10px;} +.pay_name1 .pay_wxTitle{ height:24px; line-height:24px; font-size:16px; border-bottom:1px dashed #dcdcdc; padding:0 0 10px 10px; color:#333;} +.pay_name1 .pay_wxTitle .wxIcon{ background:url(/images/pay/wx-icon.jpg) left top no-repeat; width:28px; height:23px; display:inline-block; position:relative; top:4px; margin-right:8px;} +.pay_wxCon{ color:#333;} +.pay_wxCon li.li-1, .pay_wxCon li.li-2, .pay_wxCon li.li-3{ float:left;} +.pay_wxCon li.li-1{ width:390px;} +.pay_wxCon li.li-2{ width:260px; height:420px;} +.pay_img_wrapper{ position:relative; display:block; height:260;} +.pay_wxCon li.li-2 img, .pay_wxCon li.li-2 img{ border:none;} +.pay_wxCon li.li-2 .wx-a{ width:260px; height:260px; margin-top:30px;} +.pay_wxCon li.li-2 .wx-b{ width:260px; height:80px; margin-top:10px;} +.pay_wxCon li.li-2 .wx-phone{ display:none; opacity:0; position:absolute; top:60px; left:30px; width:201px; margin-left:-101px; height:290px;} +.pay_wxCon li.li-2 img, .pay_wxCon li.li-3 img{ border:0px;} +.pay_wxCon li span{ display:block;} +.pay_wxCon .wx_price{ font-size:72px; color:#ea5404; padding-top:8px; font-family:'microsoft yahei';} +.pay_wxCon .wx_price em{ font-size:36px;} +.pay_wxCon .wx_style{ padding-left:10px; line-height:20px; font-size:12px;} + +.pay_main .pay_ment_0{ min-height:55px; border-bottom:1px dotted #dcdcdc; padding:20px 10px 0 10px;} +.pay_main .pay_ment_0 li{ height:48px; float:left; padding:0 8px 10px 0; list-style:none;} +.pay_main .pay_ment_0 li a{ display:inline-block;} +.pay_main .pay_ment_0 li .border{ border:1px solid #e6e6e6;padding:1px;} +.pay_main .pay_ment_0 li .borderOn{ border:2px solid #69af05;padding:0px;} +.pay_main .pay_ment_0 li.pay_posit{ position:relative;} +.pay_main .pay_ment_0 li.li_h{ height:39px;} +.pay_main .tips_w0{ width:58px;} +.pay_main .tips_w1{ min-width:132px;} +.pay_main .pay_tips1, .pay_main .pay_tips2, .pay_main .pay_tips3{ position:absolute; right:11px; width:19px; height:18px; background:url(/images/pay/icon.png) left top no-repeat; background-position:-50px 0;} +.pay_main .pay_tips1{bottom:22px;} +.pay_main .pay_tips2{bottom:3px;} +.pay_main .pay_tips3{bottom:16px;} +.pay_main .pay_tips{ position:absolute;margin-top:-20px;height:18px; line-height:18px; border:1px solid #fa6400;} +.pay_main .pay_tips span{ display:inline-block; float:left\9;} +.pay_main .pay_tips .tip_l{ width:20px; height:18px; background:#fa6400; text-align:center; color:#fff;} +.pay_main .pay_tips .tip_r{ padding-left:5px; color:#fa6400;} +.pay_main .pay_more a{ padding-left:20px; height:36px; line-height:36px; color:#669900; font-size:12px; text-align:center; text-decoration:none;} +.pay_main .pay_more:hover{ text-decoration:underline;} +.pay_more .pay_moreIcon, .pay_proMore .pay_moreIcon{ width:13px; height:10px; background:url(/images/pay/icon.png) left top no-repeat; display:inline-block; position:relative; top:2px; right:-2px;} +.pay_proMore .pay_moreIcon{ background-position: -45px -19px;} +.pay_more .pay_moreIcon, .pay_proMore:hover .pay_moreIcon{ background-position:-32px -19px;} +.pay_main .pay_btn{ text-align:center;} +.pay_main .pay_btn a{ display:inline-block; width:190px; height:55px; line-height:55px; margin:20px 0; background:#fa6400; text-align:center; color:#fff; font-size:22px; border-radius:2px;} +.pay_main .pay_btn a:hover{ background:#ea5404;} +.pay_main .hide{ display:none;} +.pay_main .pay_m1{ margin-top:20px;} +.pay_main .pay_m2{ margin-top:19px;} +.pay_orderList{ padding:0 46px 20px 46px; border-bottom:1px dotted #dcdcdc;} +.pay_orderWord{ display:block; height:20px; line-height:20px; padding:7px 0; font-size:12px; color:#333;} + +table { border-collapse:collapse; border-spacing:0; } +.pay_table{ table-layout:word-wrap:break-word; word-break:break-all; color:#333;} +.pay_table td{ border:1px solid #e6e6e6;} +.pay_table .pay_trTop td{ height:38px; line-height:38px; text-align:center; font-size:14px; background:#f9f9f9;} +.pay_table .pay_trWord td.padd0{ padding:10px;} +.pay_table .pay_trWord td.padd0 .padd0Box{ position:relative;} +.pay_table .pay_trWord td.padd1{ padding:10px 10px 10px 20px; vertical-align:top;} +.pay_table .pay_trWord td.padd1 div.lineH0{ padding-top:50px;} +.pay_table .pay_trWord td.padd1 div.lineH1{ padding-top:30px;} +.pay_table .subOrder{ display:block; position:relative; left:0; top:-10px; width:64px; height:20px; line-height:20px; text-align:center; padding:0 4px; background:url(/images/pay/pay_smOrderBg.jpg); font-size:12px; color:#fff; overflow:hidden;} +.pay_product .pay_proL{ width:75%; float:left; min-height:60px; line-height:58px;} +.pay_proL a{ display:block; width:58px; height:58px; border:1px solid #fff; margin:10px; float:left;} +.pay_proL a:hover{ border:1px solid #dcdcdc;} +.pay_proL img{ overflow:hidden; border:none;} +.pay_product .pay_proR{ width:25%; *+position:absolute; *+top:0; *+right:0px; float:right; vertical-align:top; padding-top:30px; color:#969696; text-align:right; } +.pay_table .pay_proMore{ position:absolute; bottom:20px; right:10px; height:18px; line-height:18px; font-size:12px; color:#333;} +.pay_table .pay_proMore:hover{ color:#669900;} +.pay_links{ padding:20px 10px 20px 56px; height:22px; line-height:22px;} +.pay_links a{ display:inline-block; line-height:22px; padding-right:14px; color:#669900; text-decoration:none;} +.pay_links a:hover{ text-decoration:underline;} +.pay_ment_color{ color:#ea5404;} + +.pay_ordWordBox{ width:1000px; height:82px; margin:0 auto;} +.pay_ordWord{ width:940px; padding:10px 0; border-top:1px dotted #b0b0b0; margin-left:60px; color:#333;} +.pay_ordWord span{ display:block; height:18px; line-height:18px;} +.pay_ordWord span label, .pay_ordWord span em{ line-height:30px;} +.pay_ordWord span em{ margin-left:10px; color:#fa6400; font-size:12px;} +.pay_ordWord .pay_oW1{ padding-bottom:8px;} +.pay_ordWord .pay_oW1 em{ color:#669900;} +.pay_ordWord .pay_inp_time{ width:204px; height:18px; line-height:18px; border:1px solid #ddd; padding:5px 10px; margin:0 10px;} +.pay_ordWord .pay_ordBtn{ cursor:pointer; line-height:18px; padding:5px 10px; border-radius:2px; border:none; background:#6bc30d; color:#fff;} +.pay_ordWord .pay_ordBtn:hover{ background:#69af05;} + +/*---付款弹层---*/ +.window_bg{ width: 100%; height: 100%; position: absolute; z-index: 99997; left:0; top:0; background: #646464; opacity: 0.5; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);} +.oDialog{ border:1px solid #ddd; position: fixed; z-index:99998; background:#fff; color:#646464; } +.order_bg{ background:url(/images/pay/icon.png) left top no-repeat;} +.oDig_w{ background:#fff; width:420px; min-height:156px; } +.ui-dig-close2{ float:right; display:inline-block;} +.ui-dig-close2{ width:27px; height:27px; background-position:0 -31px; margin: 10px 10px 0 0;} +.ui-dig-close2:hover{ background-position:-26px -31px;} +.ui-dig-size{ font-size:16px; padding:0 30px; color:#646464;} +.ui-dig-p{ text-align:left; padding:15px 30px;} +.ui-dig-con{ padding:15px; text-align:center;} +.ui-dig-btn{ text-align:center; padding:5px;} +.ui-dig-btn .ui-m{ margin-right:10px;} +.ui-dig-btn .oBtn, .ui-dig-btn .oBtn1{ display:inline-block; cursor:pointer; border:none; outline:none; outline-style:none; bblr:expression(this.onFocus=this.blur()); padding:0 15px; text-align:center; } +.ui-dig-btn .oBtn{ border:1px solid #e6e6e6; border-radius:2px; height:24px; line-height:24px; background:#fff; color:#646464;} +.ui-dig-btn .oBtn:hover{ color:#669900; } +.ui-dig-btn .oBtn1{ border-radius:2px; height:26px; line-height:26px; background:#6bc30d; color:#fff;} +.ui-dig-btn .oBtn1:hover{ color:#fff; background:#6aaf04;} +.ui-dig-p0{ text-align:left; padding:10px 30px 30px;} +.paytips{ background:url(/images/paytips.png) left top no-repeat; width:144px; height:22px; padding-top:14px; position:absolute; bottom:-16px; left:-8px; color:#fff; text-align:center;} \ No newline at end of file diff --git a/e3-order-web/src/main/resources/static/css/order.css b/e3-order-web/src/main/resources/static/css/order.css new file mode 100644 index 0000000..6ec1247 --- /dev/null +++ b/e3-order-web/src/main/resources/static/css/order.css @@ -0,0 +1,331 @@ +.hide{display:none;} +.label{ color: #666666;float: left;height: 26px;line-height: 26px;margin-right: 5px;_display:inline;width:85px;text-align:right;} +.label b{line-height:26px;font-weight:normal;margin-right:5px;font-family:宋体;color:#ff4800;font-size:12px;} +.text{border: 1px solid #CCCCCC;font-family: Arial,"宋体",sans-serif;height: 16px;padding: 4px 3px;width: 138px;font-size:12px;} +.inputTips{color:#c2c2c2;} +.btnConfirm{float:left;background-color:#6e9b0c;color: #FFFFFF;cursor: pointer;font-size: 12px;margin-right:8px;padding:8px 20px;} +input.btnSave{background-color:#6E9B0C;color: #FFFFFF;cursor: pointer;font-size: 12px;margin: 0;padding:0px 8px;font-size:12px;height:26px;line-height:26px;} +.orderMain{width:1000px;margin:0 auto;} +.orderHd{color:#565656;font-size:16px;margin:0;overflow:hidden;padding:0 0 0 15px;border: 1px solid #dddddd;height: 34px;line-height: 34px;background-color:#eeeeee;} +.orderM_HdTips{ display:inline-block; background:url(../images/ddhd_icon.png) left center no-repeat; color:#636363; font-size:12px; margin-left:30px; padding-left:19px;} +.orderTbody{padding:10px 20px 0 20px;border:1px solid #dddddd;border-top:0 none;zoom:1;} +.orderTitle{color:#565656;line-height:26px;font-size:14px;} +.cfmPrev{padding:5px 0 15px 0;} +.cfmPrev .orderTip{color:#b0b0b0;} +.backToCart{float:right;line-height:26px;color:#629201;} +.backToCart a:link,.backToCart a:visited{color:#629201;} +.stepCurr{border:3px solid #6c9c0a;} +.orderShow,.orderCurr{padding:10px 20px;color:#666666;} +.orderCurr .payment{ border-bottom:1px dashed #ddd; height:30px; line-height:30px;} +.shipment .ct{padding:10px 0; border-bottom:1px dashed #ddd;} +.payment .cm{padding-top:5px;} +.shipment .cm,.shipment .shipWay{padding-top:10px;*padding-top:5px;} +.payment .ct{ height:30px; line-height:30px; border-bottom:1px dashed #ddd;} +.shipment .shipPrice{margin-bottom:5px;} +.shipment .shipPrice span{font-size:14px;font-weight:bold;color:#f14f4f;font-family:宋体;} +.shipment .shipTxt{color:#bab9b9;} +.shipment .shipChai{padding:5px 0 5px 0;} +.shipCurr{margin-top:15px;} +.shipCurr .sOrders{margin-bottom:0;line-height:22px;} +.shipChai .sct,.shipChai .scm{padding:0;margin-bottom:10px;} +.shipChai .scm span{margin-left:10px;} +.sOrders{margin-bottom:10px;position:relative;} +.sOrders .scon{ float:left; display:block; border-bottom:1px dashed #ddd; line-height:22px; width:904px; padding:0 0 10px 10px;*padding:0 0 5px 10px; overflow:hidden;} +.sOrders .tLabel{float:left;line-height:26px;} +.sOrders .tSelect{float:left;background: url(../images/dateimg.gif) no-repeat 202px 3px;border: 1px solid #CCCCCC;height: 20px;line-height: 20px; overflow: hidden;padding: 2px 30px 2px 10px;width: 190px;cursor:pointer;} +.sOrders .tOrder{color:#2a791c;cursor:default; height:30px; line-height:30px;} +.addrAlter{font-size:12px;color:#5a8c35;font-weight:normal;cursor:pointer;} +.addrAlter:hover{text-decoration:underline;} +.orderTip{font-size:12px;color:#fb8e19;font-weight:normal;} +.orderTip2{font-size:12px;color:#b0b0b0;font-weight:normal;} +.addrItem{overflow:hidden;zoom:1;} +.addrItem a.deladdr{display:none;} +.addrItem .addrs{height:28px;line-height:28px;margin-bottom:5px;} +.addrItem .curr{background-color:#fff3e8;} +.addrItem .curr a.deladdr{display:block;} +.addrItem .i,.addrItem .l,.addrItem a{float:left;margin-right:8px;_display:inline;} +.addrItem .i{margin-top:8px;margin-left:5px;} +.addrItem .deladdr{color:#5A8C35;margin-left:10px;} +.addrItem .changecity{color:#ff0000;} +.addrItem .addrTip{color:#fb8e19;padding-left:25px;margin-bottom:5px;} +.addrItem .addrTip a:link,.addrItem .addrTip a:visited{color:#fb8e19;} +.addrShow{overflow:hidden;zoom:1;margin:0 0 0 2px;} +*html .addrShow{margin:0 0 0 8px;} +.addrShow .open,.addrShow .close{position:relative;padding:0 0 0 25px;line-height:30px;height:30px;display:block;float:left;cursor:pointer;color:#5A8C35;} +.addrShow b{position:absolute;width:18px;height:18px;overflow:hidden;left:0;top:5px;} +.addrShow .open b{background:url(../images/ordericons.png) no-repeat;} +.addrShow .close b{background:url(../images/ordericons.png) no-repeat -18px 0;} +.orderForm input{float:left;} +.orderForm select{height: 22px;margin: 2px 5px 0 0;} +.orderForm .formList{overflow:hidden;zoom:1;padding:5px 0;} +.orderForm .field{float: left;height: 26px;line-height: 26px;} +.orderForm .fullAddress span{float:left;} +.orderForm .fullAddress input{width:308px;} +.orderForm .fmError{color:#FB8E19;float: left;height: 26px;line-height: 26px;padding-left: 6px;} +.couponForm input{float:left;} +.couponForm select{height: 22px;margin: 2px 5px 0 0;} +.couponForm .formList{overflow:hidden;zoom:1;padding:5px 0;} +.couponForm .field{float: left;height: 26px;line-height: 26px;} +.couponForm .fullAddress span{float:left;} +.couponForm .fullAddress input{width:308px;} +.couponForm .fmError{color:#FB8E19;float: left;height: 26px;line-height: 26px;padding-left: 6px;} +.phone span{float:left;padding-left:5px;} +.phone .text{width:152px;} +.orderBtn{margin:10px 0 0 0;overflow:hidden;zoom:1;} +.addrSave{margin:5px;} +.addrToCurr{padding:5px 16px;line-height:26px;color:#555555;} +.orderShiping li,.orderPay li,.orderCurr li{line-height:26px;} +.orderShiping .label,.orderCurr li .label{float:left;width:85px;text-align:right;margin-right:5px;_display:inline;} +.orderPay label{margin-left:20px;} +.orderPay a:link,.orderPay a:visited{margin-left:20px;color:#5A8C35;text-decoration:none;} +.shipZt{padding-top:10px;} +.shipZtCont .sct,.shipZtCont .scm{overflow:hidden;zoom:1;} +.shipZtCont .tArea,.shipZtCont .cArea{float:left;width:215px;overflow:hidden;border-right:1px solid #efefef;} +.shipZtCont .tInfo,.shipZtCont .cInfo{float:left;width:698px;overflow:hidden;} +.shipZtCont .tArea,.shipZtCont .tInfo{height:30px;line-height:30px;background-color:#eeeeee;text-align:center;} +.shipZtCont .cArea,.shipZtCont .cInfo{text-align:center;border-bottom:1px solid #efefef;line-height:22px;height:22px;} +.shipZtCont .cInfo{text-align:left;padding:0 0 0 50px;width:648px;} +.showMore{font-size: 0;height: 0;margin-bottom: 34px;_margin-bottom:0;overflow: visible;position: relative;text-align: center;} +.showMore .showExtra{border:1px solid #dbdbdb;border-top:0 none;cursor: pointer;display: inline-block;font-size: 12px;height: 24px;margin-top: -1px;position: relative;text-align: right;background-color:white;*display:inline;+zoom:1;} +.showMore .showExtra div {height: 24px;line-height: 24px;padding: 0 25px 0 10px;position: relative;_display:inline;_zoom:1;color:#6c9c0a;} +.showMore .showExtra div b{display:block;position:absolute;top:10px;right:10px;overflow:hidden;background:url(../images/productList.png) no-repeat 0 -14px;width:9px;height:5px;} +.showMore .close div b{background:url(../images/productList.png) no-repeat -9px -14px;} +.shipProduct{position:absolute;width:310px;border:1px solid #dadada;background-color:white;z-index:5;} +.spItem{padding:10px;} +.spItem .sct,.goodsItem{overflow:hidden;_zoom:1;} +.spGoods,.spQuantity{float:left;text-align:center;height:25px;line-height:25px;background-color:#eeeeee;overflow:hidden;} +.spGoods,.goodsItem .pName{width:75%;} +.spQuantity,.goodsItem .pNum{width:24%;} +.goodsItem .pName,.goodsItem .pNum{float:left;border-bottom:1px solid #f2f2f2;height:27px;line-height:27px;overflow:hidden;} +.goodsItem .pNum{text-align:center;} +.package .pName,.package .pNum{border-bottom:1px dashed #cdcdcd;background-color:#fcfcfc;} +.spArror{position: absolute;top:-8px;width: 8px;left:30px;} +.spArror .aBg,.spArror .aCt {display: block;font-size: 0;height: 0;line-height: 0;overflow: hidden;width: 0;} +.spArror .aBg{border-right: 7px dashed rgba(0, 0, 0, 0);border-right: 7px dashed white\0;border-bottom: 7px solid #999999;border-left: 7px dashed rgba(0, 0, 0, 0);border-left: 7px dashed white\0;position: relative;border-top:0 none;} +.spArror .aCt{border-right: 7px dashed rgba(0, 0, 0, 0);border-right: 7px dashed white\0;border-bottom: 7px solid #FFFFFF;border-left: 7px dashed rgba(0, 0, 0, 0);border-left: 7px dashed white\0;position: relative;border-top:0 none;margin:-6px 0 0 0px} +:root .spArror .aBg{border-right: 7px dashed rgba(0, 0, 0, 0);border-left: 7px dashed rgba(0, 0, 0, 0);} +:root .spArror .aCt{border-right: 7px dashed rgba(0, 0, 0, 0);border-left: 7px dashed rgba(0, 0, 0, 0);} +*+html .spArror .aBg{border-right: 7px dashed white;border-left: 7px dashed white;} +*+html .spArror .aCt{border-right: 7px dashed white;border-left: 7px dashed white;} +*html .spArror .aBg{border-right: 7px dashed white;border-left: 7px dashed white;} +*html .spArror .aCt{border-right: 7px dashed white;border-left: 7px dashed white;} +.fapiao{line-height:30px;text-align: left; } +.fapiao input,.invNeed input,.orderPay input{margin:0 8px 0 0;} +.invNeed,.invCont{overflow:hidden;zoom:1;padding:5px 0;} +.invNeed span,.invType span,.invCont span{float:left;margin-right:10px;_display:inline;} +.invType{overflow:hidden;zoom:1;padding:5px 0;} +.invTip{color:#EA5405;} +.invBody{overflow:hidden;zoom:1;} +.invItem{margin-left:20px;} +.invTop{overflow:hidden;zoom:1;} +.invTop span{float:left;margin-right:10px;_display:inline;} +.invTop .btnSave{margin:0;} +.invBtn{display:block; text-decoration:underline;} +.inv_memory{background-color: #FCF8EF;border: 1px solid #F4E1BA;margin: 10px 10px 5px 20px;padding: 5px;width: 650px;} +.invList{overflow:hidden;zoom:1;} +.invMsg{overflow:hidden;zoom:1;line-height:30px;} +.invMsg div {display: inline;float: left;margin-right: 20px;} +.orderItem{padding-bottom:10px;} +.orderNum{font-size:14px;font-weight:bold;line-height:30px;padding:5px 0 0 15px;} +.orderTbl{padding:0 0 0 15px;} +.orderThead{width:968px;overflow:hidden;zoom:1;} +.tCol{float:left;height:34px;line-height:34px;background-color:#eeeeee;color:#666666;text-align:center;} +.pGoods{width:258px;padding:0 0 0 40px;} +.pPrice{width:105px;} +.pPromotion{width:90px;} +.pIntegral{width:80px} +.pQuantity{width:90px;} +.pInventory{width:90px;} +.pWeight{width:100px;} +.pSubtotal{width:110px;} +.orderPInfo{zoom:1;padding:4px 0;line-height:20px;border-bottom:1px solid #f2f2f2;} +.pItem{float:left;text-align:center;line-height:20px;} +.orderPInfo .pGoods{text-align:left;} +.nmPiece td{text-align:center;} +.nmPiece td.pGoods{text-align:left;} +.groupBuy,.groupBuy dt,.groupBuy dd{padding:0;margin:0;} +.zengp{color:#629201;font-weight:bold;} +.orderWeight{text-align:right;width:200px;} +.dateShow{padding:5px 0 10px 0;overflow:hidden;zoom:1;} +.dateShow strong{padding-left:15px;float:left;} +.dateSelect{float:left;position:relative;} +.order_xj{ text-align:right; color:#000;} +.order_xj span{ display:inline-block;} +.order_xj .sp1{ width:200px;} +.order_xj .sp2{ width:100px; color:red; text-align:center;} + + + +/*重新选择配送时间*/ +.datechange{width:237px;position:absolute;z-index:5;background-color:#FFF;left:433px;_left:auto;margin-top:-170px;border:1px solid #c1dcf2;padding:5px;} +.dateTop{overflow:hidden;zoom:1;} +.dateTop h3{float:left;} +.datetbl{border-top:1px solid #c1dcf2;border-left:1px solid #c1dcf2;} +.datetbl div{width:58px;height:40px;border-bottom:1px solid #c1dcf2;} +.datetbl .w{float:left;text-align:center;line-height:18px;color:#333;width:58px;border-right:1px solid #c1dcf2;} +.datetbl .dateTh .w{background-color:#eaf3fe;height:35px;padding:5px 0;border-bottom:1px solid #c1dcf2;} +.datetbl .dateTh,.datetbl .dateTbody{overflow:hidden;zoom:1;} +.datetbl td{padding:3px;} +.datetbl .cur{background-color:#e47911;color:#FFF;line-height:40px;} +.datetbl .disable{background-color:#eeeeee;} +.datetbl .available{cursor:pointer;line-height:40px;} +.datetbl .available:hover{border:2px solid #e47911;width:54px;height:37px;overflow:hidden;line-height:37px;} +.datebox{text-align:center;font-weight:bold;color:#000;padding:0;line-height:20px;} +.dateclose{float:right;width:40px;height:20px;line-height:20px;margin:0px 0 5px 0;display:inline;cursor:pointer;text-align:center;color:#FFF;color:#000;border:1px solid #f0f0f0;background-color:#eeeeee;overflow:hidden;} +.dateother{background:url(../images/dateimg.gif) no-repeat right center;padding:5px 30px 0 0;text-decoration:underline;color:#3366CC;font-weight:bold;font-size:14px;font-size:14px;} +/*优惠券添加*/ +.coupon_list{margin:10px 0;} +.tbl_list{} +.tbl_list td{border-bottom:1px solid #dadada; background:#fff;padding:4px;line-height:18px;} +.tbl_list td span{color: #EA5405;} +.couponList{height:28px;border-bottom:2px solid #6E9B0C;overflow:hidden;zoom:1;line-height:28px;} +ul.couponTab{float:left;overflow:hidden;zoom:1;width:250px;} +ul.couponTab li{clear:none;float:left;padding:0;height:28px;line-height:28px;width:110px;text-align:center;background-color:#ffffff;border:1px solid #dadada;border-bottom:0 none;color:#555555;cursor:pointer;margin-right:10px;_display:inline;} +ul.couponTab li.on{background-color:#6E9B0C;border:1px solid #6E9B0C;border-bottom:0 none;color:white;} +.couponList span.couponUsed{color:#48a500;background:url(../images/ordericons.gif) no-repeat;padding:0 0 2px 23px;} +a.couponCL{color:#0f83d8;text-decoration:none;margin-left:10px;} +a.couponCL:hover{color:#0f83d8;} +.coupon_desc{position:relative;} +.brandshow{position:absolute;width:330px;border:1px solid #dadada;background-color:#FFF;margin-left:-240px;_margin-left:-280px;z-index:99;padding:15px 0 0 0;overflow:hidden;} +a.bClose{background-color:#1b6147;width:15px;height:15px;display:block;position:absolute;right:5px;top:5px;color:#FFF;cursor:pointer;text-align:center;line-height:15px;} +a.bClose:hover{color:#FFF;text-decoration:none;} +.linkshow{display:block;height:20px;} +.brandlist{overflow:hidden;zoom:1;padding:5px;margin:0;} +.brandlist dt{float:left;color:#565656;font-weight:bold;text-align:right;width:95px;} +.brandlist dd{overflow:hidden;zoom:1;text-align:left;margin:0;} +.brandlist dd div{float:left;margin-right:8px;white-space:nowrap;text-align:left;} +.couponDel{width:13px;height:13px;background:url(../images/ordericons.png) no-repeat -102px -2px;display:block;} +.orderSeparate{padding:5px 16px;} +.orderSeparate h3{font-size:12px;line-height:30px;} +.orderSeparate div{padding:5px 20px;} +.promoList{width:630px;} +.promoItem{margin-bottom:10px;} +.order-info{width:500px;position:absolute;right:0;line-height:24px;} +*html .order-info{right:20px;} +.priceitem{text-align:left;} +.dmTip{display:block;width:17px;height:17px;background:url(../images/ordericons.png) no-repeat -36px 0;position:absolute;top:6px;left:106px;} +.commPage {background-color: #ffffff;border: 1px solid #dadada;left: -25px;position: absolute;width: 385px;z-index: 5;top:24px;line-height: 20px;display: none;} +.commPage .dd {text-indent: 25px;margin-bottom: 10px;} +.promoItem .yeTip {background: rgba(0, 0, 0, 0) url("../images/ordericons.png") no-repeat scroll -36px 0;cursor: pointer;display: block;float: left;height: 17px;margin-left: 5px;position: relative;width: 17px;} +*html .dmTip{top:-3px;left:90px;} +.dmCont{position:absolute;top:35px;left:75px; background-color: #FFFFFF;border: 1px solid #DADADA;width: 310px;z-index:5;} +*+html .dmCont{top:40px;} +*html .dmCont{left:-605px;top:40px;zoom:1;} +.dmItem{padding:10px;} +.dmItem .dt{margin-bottom:10px;} +.dmLink{text-align:right;color:#6E9B0C;} +.dmLink a:link,.dmLink a:visited{text-align:right;color:#6E9B0C;} +.priceitem dl,.priceitem dd,.priceitem dt{margin:0;padding:0;} +.priceitem dl{width:300px;} +.priceitem dd {overflow:hidden;zoom:1;} +.priceitem dd div{float:left;width:180px;text-align:right;} +.priceitem dd .priceArea{display:block;overflow:hidden;zoom:1;text-align:right;font-family:微软雅黑;} +.priceitem strong{color:#EA5405} +.orderAccount{color:#666666;line-height:26px;padding:10px 10px 0 0;float:right;} +.orderAccount .t{font-size:14px;font-weight:bold;} +.orderAccount .p{font-size:20px;color:#e33d3f;font-family:微软雅黑;} +.orderAccount .y{font-size:14px;font-weight:bold;} +.ordercoupon{text-align:right;color:#EA5405} +.orderCoupon{overflow:hidden;zoom:1;} +.sfbtn{color:#666666;cursor:pointer;line-height:30px;position:relative;padding:0 0 0 20px;overflow:hidden;} +.sfbtn b{position:absolute;left:0;top:7px;overflow: hidden;width: 12px;width:16px;height:16px;background:url(../images/ordericons.png) -53px 0;} +*html .sfbtn b{top:-2px;left:-20px;} +.sfbtn b.open{background:url(../images/ordericons.png) -53px 0;} +.sfbtn b.close{background:url(../images/ordericons.png) -69px 0;} +.sfbtn_in{padding:10px 20px 10px;background-color:#f7f7f7;} +.sfbtn_in p{line-height:30px;} +h4.t{line-height:26px;font-size:12px;} +.red{color:#EA5405;} +.orderSubmit{float:right;} +.submitBtn{background-color:#6E9B0C;color: #FFFFFF;cursor: pointer;font-size: 16px;font-weight: bold;height: 40px;text-align: center;width: 150px;} +.submitDisable{border:1px solid #dddddd;background-color:white;color:#cfcfcf;height: 40px;text-align: center;width: 150px;font-size: 16px;cursor:not-allowed;} +.paySay{color:#6B6B6B;margin-left:20px;} +.payment2{border-bottom:1px solid #F4E1BA;padding: 0px 0px 0px 80px;} +.onError{padding:0;margin-left:5px;font-size:13px;color:#FB8E19;} +.onSuccess{background:url(../images/yzicon.gif) no-repeat 0 -59px;padding:0 0 0 16px;margin-left:5px;font-size:13px;} +.tbl_cart tbody tr td {border-bottom: 1px solid #EBF7EF;padding: 20px 0;text-align: center;} +.orderTFoot{border-left:1px solid #dddddd;border-right:1px solid #dddddd;border-bottom:1px solid #dddddd;} +.orderTFoot .ct{text-align:right;padding:78px 10px 5px 10px;color:#fb8e19;line-height:18px; } +.orderTFoot .ct a:link,.orderTFoot .ct a:visited{color:#4c9810;} +.submitOrder{padding:10px;background-color:#fafafa;} +.orderLetKnow{padding:5px 0;position:relative;} +.gTip{display:block;width:17px;height:17px;background:url(../images/ordericons.png) no-repeat -36px 0;position:absolute;top:4px;left:116px;cursor:pointer;} +*+html .gTip{top:0px;} +*html .gTip{top:0px;} +.gCont{position:absolute;top:25px;left:86px; background-color: #FFFFFF;border: 1px solid #DADADA;width: 220px;z-index:5;zoom:1;font-size:12px;font-weight:normal;line-height:18px;} +.pShowOrNot{padding:5px 0;} +.pShowOrNot span{margin-right:50px;} +.pShowOrNot .ct{font-weight:bold;} +.cdzhigong{overflow:hidden;zoom:1;} +.cdzhigong .zhigong{float:left;margin-right:10px;_display:inline;} +.cdzhigong .shippingTime{overflow:hidden;zoom:1;} +.shippingTime .ct{padding:0;float:left;} +.shippingTime .cm{padding:0;overflow:hidden;zoom:1;} +.shippingTime .cm span{display:block;padding:0 0 5px 0;} +.shippingTime .cm .i{margin-right:5px;} +.bankers{width:440px;left: 240px;position:absolute;top: -1px;} +.showbanker{background-color: #FFFFFF;border: 1px solid #DDDDDD;height: 180px;left: 0;overflow-x: hidden;overflow-y: auto;padding: 5px;position: absolute;z-index: 4;width:440px;} +.showbanker img{width:100px;height:30px;} +.showbanker td{padding:3px;} +.giverCard{width:608px;} +.giverInput{background:0 none;padding:5px;position:relative;} +.inputArea{width:612px;height:100px;border:1px solid #eeeeee;resize:none;font-size:12px;padding:2px 5px;line-height:18px;color:#666666;} +.giverTip{color:#fa9600;float:right;} +.giverShow{color:#4c9810;margin-left:10px;cursor:default;} +.inputArea.inputTips{color:#c2c2c2;} +.giverItem{display:none;position:absolute;border:1px solid #999999;padding:15px;width:300px;top:0;left:150px;background-color:white;line-height:24px;} +.new-color{ color:#ff3d3d;} +.new-pwd-link{ color:#669900; text-decoration:none;} +.new-pwd-link:hover{ color:#669900; text-decoration:underline;} +.payment-new0 label, .payment-new0 .payment_pwdLink{ display:inline-block; line-height:24px;} +.payment-new0 .payment_pwd{ width:147px; height:24px; line-height:24px; border-left:2px solid #dcdcdc; border-top:2px solid #dcdcdc; border-right:1px solid #dcdcdc; border-bottom:1px solid #dcdcdc; padding:0 5px; margin-right:10px;} +.payment-new0 .payment_pwdLink{ color:#969696; text-decoration:none;} +.payment-new0 .payment_pwdLink{ color:#969696; text-decoration:underline;} +.mini-charge{overflow:hidden;zoom:1;padding-right:10px;} +.mini-charge span{float:right;color:#ff3d3d;height:20px;border:1px solid #fa9600;line-height:20px;padding:0 5px;} +.floatleft {float: left; } +.order_xj{ text-align:right; color:#000;} +.order_xj span{ display:inline-block;} +.order_xj .sp1{ width:200px;} +.order_xj .sp2{ width:100px; color:red; text-align:center;} + + + +.mask_box {width:425px;height:350px;background:#fff;position: fixed;left: 50%;top:50%;margin-left: -212px;margin-top: -175px;z-index: 1002;} +#mask_con {position: absolute; top: 0px; filter: alpha(opacity=50); background-color: #777;z-index: 1000; left: 0px;opacity:0.5; -moz-opacity:0.5;} +.mask_box .mask_close{width: 20px;height: 20px;position: absolute;right: 20px;top:20px;cursor: pointer;} +.mask_box p{text-align: center;color: #000;font-weight: bold;font-size: 16px;} +.mask_box .mask_go_define{width: 100%;height: 35px;line-height: 35px;margin:0 auto;background: #69af05;color: #fff;display: block;text-align: center; margin-top: 30px;} +.message_div {width:100%;margin-top: 30px;} +.message_div input{width:60%;} +.message_div a {position:absolute;width:40%;height:37px;text-align: center;background-color:#69af05;color:#fff;right:-1px;top:0px; line-height: 37px;} +.message_div a.time_clock{background-color: #969696;} +.mask_box_con {width:320px;margin:0 auto;margin-top: 70px;} +.mask_box_con input {border:1px solid #dcdcdc;height:35px;text-indent: 20px;} +.mask_box_con input.phone_div_phone{margin-top: 30px;width:100%;} +.mask_box_con .warn_text {color:#fb8e19;font-size: 12px;text-align: left;text-indent: 20px;font-weight: normal;margin-top: 5px;position:absolute;} +.promoItem .yeTip-1 {background: rgba(0, 0, 0, 0) url("../images/ordericons.png") no-repeat scroll -36px 0;cursor: pointer;display: block;float: left;height: 17px;margin-left: 5px;position: relative;width: 17px;} +.commPage-1 {background-color: #ffffff;border: 1px solid #dadada;left: -25px;position: absolute;width: 385px;z-index: 5;top:24px;line-height: 20px;display: none;} +.promoItem_deductible{display:block;margin-bottom: 10px;} +.promoItem_nondeductible{display:none;margin-bottom: 10px;} +.usecard_num_total {color:#ff0000;margin-left: 5px;margin-right: 5px;width: 57px;display:inline-block;height:22px;line-height: 22px;overflow:hidden;vertical-align:middle;} +.promoItem_deductible input {display:inline-block;width:50px;height:20px;border:1px solid #dcdcdc;text-align: center;color:#969696;margin:0 5px;} +.promoItem_deductible .warning {display:inline-block;margin-left: 20px;color:#fb8e19;} +.mask_box_con input.inp {color: #ccc;} + +.payment-new0 {margin:10px 0;} +.youxuan .usecard_price_total_1{max-width: 56px;overflow: hidden; display: inline-block;height: 14px; vertical-align: middle;line-height: 14px;} +.message_div a.mask_go_default{background:#666;cursor:default;pointer-events:none;} +.mask_box a.mask_go_default {background:#666;cursor:default;pointer-events:none;} +.mask_box a.mask_go_on {background:#69af05;cursor:default;pointer-events:none;} + +.mask_box p.mask_sure_tip{color:#fb8e19;font-size: 12px;text-align: left;text-indent: 20px;font-weight: normal;margin-top: 5px;} + +/*优先国际样式*/ +.yxgj_addrTips{ padding:5px 90px; color:#FB8E19; position:relative;} +.yxgj_addrIdTips{ position:absolute; left:280px; top:17px; padding:12px; width:252px; min-height:90px; background:#fff; color:#454240; border:1px solid #dcdcdc;} +.yxgj_addrIdTips .content{ line-height:18px; padding-bottom:12px; } +.yxgj_addrIdTips .btn{ display:block; margin:0 auto; width:90px; height:22px; line-height:22px; background:#6d9c0b; color:#fff; text-align:center;} +.yxgj_tipsTitle{ color:#FB8E19; padding:10px 0;} +.htsy{ height:30px; line-height:30px; font-size:12px; text-align:right; padding-right:10px; color:#fb8e19; background:#eeeeee;} +.htInvoice{ line-height: 36px; padding-left: 20px; display:block;} \ No newline at end of file diff --git a/e3-order-web/src/main/resources/static/images/99bill.gif b/e3-order-web/src/main/resources/static/images/99bill.gif new file mode 100644 index 0000000..79954d3 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/99bill.gif differ diff --git a/e3-order-web/src/main/resources/static/images/alipay.gif b/e3-order-web/src/main/resources/static/images/alipay.gif new file mode 100644 index 0000000..cef1fcc Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/alipay.gif differ diff --git a/e3-order-web/src/main/resources/static/images/bjnc_logo.gif b/e3-order-web/src/main/resources/static/images/bjnc_logo.gif new file mode 100644 index 0000000..0ddad7b Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/bjnc_logo.gif differ diff --git a/e3-order-web/src/main/resources/static/images/bottom_sm.png b/e3-order-web/src/main/resources/static/images/bottom_sm.png new file mode 100644 index 0000000..58f5a5f Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/bottom_sm.png differ diff --git a/e3-order-web/src/main/resources/static/images/cart_icon.gif b/e3-order-web/src/main/resources/static/images/cart_icon.gif new file mode 100644 index 0000000..344ae28 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/cart_icon.gif differ diff --git a/e3-order-web/src/main/resources/static/images/cart_icon2.gif b/e3-order-web/src/main/resources/static/images/cart_icon2.gif new file mode 100644 index 0000000..30c3952 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/cart_icon2.gif differ diff --git a/e3-order-web/src/main/resources/static/images/cartbg.gif b/e3-order-web/src/main/resources/static/images/cartbg.gif new file mode 100644 index 0000000..1b127be Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/cartbg.gif differ diff --git a/e3-order-web/src/main/resources/static/images/foot/logo.jpg b/e3-order-web/src/main/resources/static/images/foot/logo.jpg new file mode 100644 index 0000000..7b6fadc Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/foot/logo.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/foot_bottom.png b/e3-order-web/src/main/resources/static/images/foot_bottom.png new file mode 100644 index 0000000..51e2ca2 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/foot_bottom.png differ diff --git a/e3-order-web/src/main/resources/static/images/getfavbg.gif b/e3-order-web/src/main/resources/static/images/getfavbg.gif new file mode 100644 index 0000000..88c5ee3 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/getfavbg.gif differ diff --git a/e3-order-web/src/main/resources/static/images/header.png b/e3-order-web/src/main/resources/static/images/header.png new file mode 100644 index 0000000..05c5e6b Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/header.png differ diff --git a/e3-order-web/src/main/resources/static/images/hftx_k_logo.gif b/e3-order-web/src/main/resources/static/images/hftx_k_logo.gif new file mode 100644 index 0000000..228d7ed Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/hftx_k_logo.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r1_c1.gif b/e3-order-web/src/main/resources/static/images/iconyin_r1_c1.gif new file mode 100644 index 0000000..cf99b53 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r1_c1.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r1_c3.gif b/e3-order-web/src/main/resources/static/images/iconyin_r1_c3.gif new file mode 100644 index 0000000..d32dba5 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r1_c3.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r1_c5.gif b/e3-order-web/src/main/resources/static/images/iconyin_r1_c5.gif new file mode 100644 index 0000000..5bfa4e9 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r1_c5.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r1_c7.gif b/e3-order-web/src/main/resources/static/images/iconyin_r1_c7.gif new file mode 100644 index 0000000..116bc41 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r1_c7.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r3_c1.gif b/e3-order-web/src/main/resources/static/images/iconyin_r3_c1.gif new file mode 100644 index 0000000..0433f28 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r3_c1.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r3_c3.gif b/e3-order-web/src/main/resources/static/images/iconyin_r3_c3.gif new file mode 100644 index 0000000..dce5ac9 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r3_c3.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r3_c5.gif b/e3-order-web/src/main/resources/static/images/iconyin_r3_c5.gif new file mode 100644 index 0000000..abce1ae Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r3_c5.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r3_c7.gif b/e3-order-web/src/main/resources/static/images/iconyin_r3_c7.gif new file mode 100644 index 0000000..020cb69 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r3_c7.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r5_c1.gif b/e3-order-web/src/main/resources/static/images/iconyin_r5_c1.gif new file mode 100644 index 0000000..6228b35 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r5_c1.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r5_c3.gif b/e3-order-web/src/main/resources/static/images/iconyin_r5_c3.gif new file mode 100644 index 0000000..9d3086d Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r5_c3.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r5_c5.gif b/e3-order-web/src/main/resources/static/images/iconyin_r5_c5.gif new file mode 100644 index 0000000..ca45119 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r5_c5.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r5_c7.gif b/e3-order-web/src/main/resources/static/images/iconyin_r5_c7.gif new file mode 100644 index 0000000..d205bfe Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r5_c7.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r7_c3.gif b/e3-order-web/src/main/resources/static/images/iconyin_r7_c3.gif new file mode 100644 index 0000000..41b7637 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r7_c3.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r7_c5.gif b/e3-order-web/src/main/resources/static/images/iconyin_r7_c5.gif new file mode 100644 index 0000000..79b3460 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r7_c5.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r9_c1.gif b/e3-order-web/src/main/resources/static/images/iconyin_r9_c1.gif new file mode 100644 index 0000000..88d3e32 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r9_c1.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconyin_r9_c5.gif b/e3-order-web/src/main/resources/static/images/iconyin_r9_c5.gif new file mode 100644 index 0000000..055e370 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconyin_r9_c5.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconzf_r1_c3.gif b/e3-order-web/src/main/resources/static/images/iconzf_r1_c3.gif new file mode 100644 index 0000000..cbf0b91 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconzf_r1_c3.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconzf_r1_c5.gif b/e3-order-web/src/main/resources/static/images/iconzf_r1_c5.gif new file mode 100644 index 0000000..7c10659 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconzf_r1_c5.gif differ diff --git a/e3-order-web/src/main/resources/static/images/iconzf_r3_c1.gif b/e3-order-web/src/main/resources/static/images/iconzf_r3_c1.gif new file mode 100644 index 0000000..2347714 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/iconzf_r3_c1.gif differ diff --git a/e3-order-web/src/main/resources/static/images/indexImg20130307.png b/e3-order-web/src/main/resources/static/images/indexImg20130307.png new file mode 100644 index 0000000..9eebc18 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/indexImg20130307.png differ diff --git a/e3-order-web/src/main/resources/static/images/kxicon.jpg b/e3-order-web/src/main/resources/static/images/kxicon.jpg new file mode 100644 index 0000000..2f62e37 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/kxicon.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/logo.jpg b/e3-order-web/src/main/resources/static/images/logo.jpg new file mode 100644 index 0000000..7b6fadc Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/logo.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/logo66.png b/e3-order-web/src/main/resources/static/images/logo66.png new file mode 100644 index 0000000..3f18410 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/logo66.png differ diff --git a/e3-order-web/src/main/resources/static/images/logo_word.jpg b/e3-order-web/src/main/resources/static/images/logo_word.jpg new file mode 100644 index 0000000..013f245 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/logo_word.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/ordericons.png b/e3-order-web/src/main/resources/static/images/ordericons.png new file mode 100644 index 0000000..5ff5304 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/ordericons.png differ diff --git a/e3-order-web/src/main/resources/static/images/pay/icon.png b/e3-order-web/src/main/resources/static/images/pay/icon.png new file mode 100644 index 0000000..e72e8b5 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/icon.png differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay0.jpg b/e3-order-web/src/main/resources/static/images/pay/pay0.jpg new file mode 100644 index 0000000..cea8db1 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay0.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay1.jpg b/e3-order-web/src/main/resources/static/images/pay/pay1.jpg new file mode 100644 index 0000000..8baaafc Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay1.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay10.jpg b/e3-order-web/src/main/resources/static/images/pay/pay10.jpg new file mode 100644 index 0000000..cb61a27 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay10.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay11.jpg b/e3-order-web/src/main/resources/static/images/pay/pay11.jpg new file mode 100644 index 0000000..1bdf4ef Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay11.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay12.jpg b/e3-order-web/src/main/resources/static/images/pay/pay12.jpg new file mode 100644 index 0000000..7b3a9f4 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay12.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay13.jpg b/e3-order-web/src/main/resources/static/images/pay/pay13.jpg new file mode 100644 index 0000000..7f2055a Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay13.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay14.jpg b/e3-order-web/src/main/resources/static/images/pay/pay14.jpg new file mode 100644 index 0000000..ee92cc4 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay14.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay15.jpg b/e3-order-web/src/main/resources/static/images/pay/pay15.jpg new file mode 100644 index 0000000..0acb6e6 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay15.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay16.jpg b/e3-order-web/src/main/resources/static/images/pay/pay16.jpg new file mode 100644 index 0000000..9a91a09 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay16.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay17.jpg b/e3-order-web/src/main/resources/static/images/pay/pay17.jpg new file mode 100644 index 0000000..fdf2a0e Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay17.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay18.jpg b/e3-order-web/src/main/resources/static/images/pay/pay18.jpg new file mode 100644 index 0000000..5dd912c Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay18.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay19.jpg b/e3-order-web/src/main/resources/static/images/pay/pay19.jpg new file mode 100644 index 0000000..bbbaec8 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay19.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay2.jpg b/e3-order-web/src/main/resources/static/images/pay/pay2.jpg new file mode 100644 index 0000000..c6890cb Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay2.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay20.jpg b/e3-order-web/src/main/resources/static/images/pay/pay20.jpg new file mode 100644 index 0000000..e5d030c Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay20.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay21.jpg b/e3-order-web/src/main/resources/static/images/pay/pay21.jpg new file mode 100644 index 0000000..79cdf1e Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay21.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay22.jpg b/e3-order-web/src/main/resources/static/images/pay/pay22.jpg new file mode 100644 index 0000000..b2e7a21 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay22.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay23.jpg b/e3-order-web/src/main/resources/static/images/pay/pay23.jpg new file mode 100644 index 0000000..8ca8fb7 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay23.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay4.jpg b/e3-order-web/src/main/resources/static/images/pay/pay4.jpg new file mode 100644 index 0000000..72e29b9 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay4.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay8.jpg b/e3-order-web/src/main/resources/static/images/pay/pay8.jpg new file mode 100644 index 0000000..2de06b1 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay8.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay9.jpg b/e3-order-web/src/main/resources/static/images/pay/pay9.jpg new file mode 100644 index 0000000..5f8c145 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay9.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/pay/pay_line.jpg b/e3-order-web/src/main/resources/static/images/pay/pay_line.jpg new file mode 100644 index 0000000..6eb4239 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/pay/pay_line.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/productinfo.png b/e3-order-web/src/main/resources/static/images/productinfo.png new file mode 100644 index 0000000..8c3ade6 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/productinfo.png differ diff --git a/e3-order-web/src/main/resources/static/images/saomazhifu.gif b/e3-order-web/src/main/resources/static/images/saomazhifu.gif new file mode 100644 index 0000000..5e82074 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/saomazhifu.gif differ diff --git a/e3-order-web/src/main/resources/static/images/sd_close.jpg b/e3-order-web/src/main/resources/static/images/sd_close.jpg new file mode 100644 index 0000000..4e3b442 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/sd_close.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/sf-stock.png b/e3-order-web/src/main/resources/static/images/sf-stock.png new file mode 100644 index 0000000..950da8f Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/sf-stock.png differ diff --git a/e3-order-web/src/main/resources/static/images/sfpay.gif b/e3-order-web/src/main/resources/static/images/sfpay.gif new file mode 100644 index 0000000..a44d70f Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/sfpay.gif differ diff --git a/e3-order-web/src/main/resources/static/images/step_01.jpg b/e3-order-web/src/main/resources/static/images/step_01.jpg new file mode 100644 index 0000000..2f8fc1c Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/step_01.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/step_02.jpg b/e3-order-web/src/main/resources/static/images/step_02.jpg new file mode 100644 index 0000000..615922e Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/step_02.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/thumb_1800220027_0_1.jpg b/e3-order-web/src/main/resources/static/images/thumb_1800220027_0_1.jpg new file mode 100644 index 0000000..9491802 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/thumb_1800220027_0_1.jpg differ diff --git a/e3-order-web/src/main/resources/static/images/yikatong.gif b/e3-order-web/src/main/resources/static/images/yikatong.gif new file mode 100644 index 0000000..bd1d081 Binary files /dev/null and b/e3-order-web/src/main/resources/static/images/yikatong.gif differ diff --git a/e3-order-web/src/main/resources/static/js/cart.js b/e3-order-web/src/main/resources/static/js/cart.js new file mode 100644 index 0000000..6f6aca4 --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/cart.js @@ -0,0 +1,1178 @@ +var hostUrl = document.location.host; +var urlArr = hostUrl.split('.'); +var domain = urlArr[1]+'.'+urlArr[2]; +var SF_STATIC_URL = 'http://i.'+domain; +var cartHostUrl = 'http://cart.'+domain; +var wwwHostUrl = 'http://www.'+domain; +var pp = new Array();//用于存放购物车中状态不适合的商品 + +$(document).ready(function(){ + $(".cartAddrPrice").slideDown(300,function(){setTimeout(function(){$(".cartAddrPrice").slideUp(300)},4000)}); +}) + +//过滤删除某一员组数据 +function remove(arrPerson,objPropery,objValue) +{ + return $.grep(arrPerson, function(cur,i){ + return cur[objPropery]!=objValue; + }); +} +/** + 获取加价购中的赠品列表 + @param int aid 活动id + @param int money 满money元 + @param int addid 加价购阶梯活动id + */ +function getAddBuyZp(aid,money,addid){ + /* + if($('#diaoajax'+aid+addid).length > 0){ + alert('1'); + $('.w').hide();//先隐藏所有 + $('#addProduct_'+aid+'_'+addid).show();//打开指定的 + //看看是否已经有用户选择的赠品 + if($('.ajaxchecked'+aid+addid).length > 0){ + $('.ajaxchecked'+aid+addid).each(function(){ + $('#jjg_check_'+aid+'_'+addid+'_'+$(this).val()).attr("checked",true);//被选中的框置为选中状态 + + checkNum(aid,addid,$(this).val()); + }) + } + }else{*/ + //alert('2'); + $.ajax({ + url : cartHostUrl+'/cart/getAddBuyZp', + type : 'POST', + data : {activeid:aid,price:money,addid:addid}, + dataType : 'json', + success: function(data){ + if(data.error == 1){ + $('#addProduct_'+aid+'_'+addid).html(data.data).show(); + //看看是否已经有用户选择的赠品 + if($('.ajaxchecked'+aid+addid).length > 0){ + $('.ajaxchecked'+aid+addid).each(function(){ + $('#jjg_check_'+aid+'_'+addid+'_'+$(this).val()).attr("checked",true);//被选中的框置为选中状态 + $('#jjg_amount_'+aid+'_'+addid+'_'+$(this).val()).val($(this).attr('id'));// + checkNum(aid,addid,$(this).val()); + }) + } + }else{ + jAlert(data.info); + } + } + }); + //} +} + + +//加价购 +function addBuy(act_id,add_id){ + var result = new Array(); + var data = new Array(); + $("#addProduct_"+act_id+"_"+add_id).find("input[name='jjg_check_'"+act_id+"_"+add_id+"]:checked").each(function(){ + result.push($(this).val()); + }); + var current_total_num = 0; + for(var i in result){ + var pid = result[i]; + var current_number = $("#jjg_amount_"+act_id+"_"+add_id+"_"+pid).val(); + if(current_number<1){ + jAlert("您领取的换购品数量最小为1"); + return; + } + + var everyorder_number = $("#everyorder_number_"+act_id+"_"+add_id+"_"+pid).val(); + var amount = pid+"_"+current_number; + current_total_num += current_number*1; + current_number = parseInt(current_number); + everyorder_number = parseInt(everyorder_number); + if(current_number>everyorder_number && everyorder_number>0){ + jAlert("您领取的换购品超过每单最大"+everyorder_number+"件限制"); + return; + } + data.push(amount); + } + var total_num = $("#total_"+act_id+"_"+add_id).val(); + if(total_num0){ + $('.ljhg'+act_id).html('立即换购');//初使化所有阶梯活动内容 + $('#change'+act_id+msg.info.addid).html('重新换购');//对用户被选中的那一阶梯活动内容改值 + } + $('.jjg_check'+act_id).attr("checked",false);//将所有适合的阶梯活动中的商品前的多选框改为没被选中状态 + if($('#diaoajax'+act_id+add_id).length > 0){ + $('#diaoajax'+act_id+add_id).remove(); + } + + }else{ + jAlert(msg.info); + } + } + }); + } +} + +//删除加价购商品 +function delAddBuy(act_id,add_id,pid){ + $.ajax({ + url : cartHostUrl+'/cart/delAddBuy/', + type : 'POST', + data : {activeid : act_id,add_id : add_id,pid : pid}, + dataType: 'json', + success: function(msg){ + if(msg.error==1){ + $('#tr'+act_id+'_'+add_id+'_'+pid).remove(); + chmodeNum(msg.info.cart); + if($('.ljhg'+act_id).length>0){ + $('.ljhg'+act_id).html('立即换购');//初使化所有阶梯活动内容 + if(msg.info.addid > 0){ + $('#change'+act_id+msg.info.addid).html('重新换购');//对用户被选中的那一阶梯活动内容改值 + } + } + $('.jjg_check'+act_id).attr("checked",false);//将所有适合的阶梯活动中的商品前的多选框改为没被选中状态 + if($('#diaoajax'+act_id+add_id).length > 0){ + $('#diaoajax'+act_id+add_id).remove(); + } + }else{ + jAlert(msg.info); + } + } + }); + +} + +//修改页面上的统计信息 +function chmodeNum(array){ + $.each(array,function(key,val){ + if($('#'+key).length>0){ + $('#'+key).html(val); + } + }) +} + +//加号触发的事件 +function jiaNum(obj,aid,addid,pid){ + var jiaobj = $('#jjg_amount_'+aid+'_'+addid+'_'+pid); + var num = jiaobj.val()*1; + jiaobj.val(++num); + if(!checkNum(aid,addid,pid)){ + $('#jjg_check_'+aid+'_'+addid+'_'+pid).attr("checked",true); + jiaobj.val(--num); + } +} + +//减号触发的事件 +function jianNum(obj,aid,addid,pid){ + var jianobj = $('#jjg_amount_'+aid+'_'+addid+'_'+pid); + var num = jianobj.val()*1; + if(--num <= 0){ + return; + } + jianobj.val(num); + var total_num = num = 0; + var total = $("#total_"+aid+"_"+addid).val()*1; + $("#table_"+aid+"_"+addid).find('input[type=checkbox]:checked').each(function(){ + var this_apid = $(this).attr("apid"); + num = $("#jjg_amount_"+this_apid).val()*1; + total_num += num; + }); + var hava_num = total-total_num; + $("#add_id_"+aid+"_"+addid).html('换购品领取:(共可领取'+total+'件,已经选取了'+total_num+'件,还有'+hava_num+'件可领)'); +} + +/** + 被选中时的验证,验证每日件数,每单件数,活动中的总数量及组合件数 + @param obj obj 被选的多选择框 + @param int addid 活动中的阶梯id + @param int pid 商品id + */ +function checkNum(aid,addid,pid){ + var id = aid+'_'+addid+'_'+pid; + obj = '#jjg_check_'+id; + if($(obj).attr("checked")){ + var max_buynumber = $('#max_buynumber_'+id).val()*1; + var everyday_number = $('#everyday_number_'+id).val()*1; + var everyorder_number = $('#everyorder_number_'+id).val()*1; + var all_limit = $('#all_limit_'+id).val()*1; + var day_limit = $('#day_limit_'+id).val()*1; + var amount_num = $('#jjg_amount_'+id).val()*1; + + //每单数量校验 + if(amount_num>everyorder_number && everyorder_number>0){ + jAlert('此换购品每单最多可领取'+everyorder_number+'件'); + $(obj).attr("checked",false); + return false; + } + //每日数量校验 + if(amount_num>day_limit && day_limit>=0 && everyday_number>0){ + jAlert('此换购品每日最多可领取'+day_limit+'件'); + $(obj).attr("checked",false); + return false; + } + //活动时间内总数校验 + if(amount_num>all_limit && all_limit>=0 && max_buynumber>0){ + jAlert('此换购品数量超过总数量限制'); + $(obj).attr("checked",false); + return false; + } + } + /* + $("#table_"+aid+'_'+addid).find('input[type=checkbox]:checked').each(function(){ + var this_apid = $(this).attr("apid"); + num = $("#jjg_amount_"+this_apid).val()*1; + total_num += num; + }); + */ + + var total_num = num = 0; + var total = $("#total_"+aid+'_'+addid).val()*1; + $("#table_"+aid+'_'+addid).find('input[type=checkbox]:checked').each(function(){ + var this_apid = $(this).attr("apid"); + num = $("#jjg_amount_"+this_apid).val()*1; + total_num += num; + }); + + if(total>=total_num){ + var hava_num = total-total_num; + $("#add_id_"+aid+'_'+addid).html('换购品领取:(共可领取'+total+'件,已经选取了'+total_num+'件,还有'+hava_num+'件可领)'); + return true; + }else{ + jAlert('您选取的换购品总件数不能超过'+total+'件'); + $(obj).attr("checked",false); + return false; + } +} + +//点击选择框的事件 +function changeCart(obj){ + var checked = ''; + if($(obj).attr('checked')){ + checked = 'checked'; + } + var type = $(obj).attr('class'); + if(type=='haitao'){ + var ht='_ht'; + }else{ + var ht=''; + } + //$('#'+$(obj).val()).parent().parent().html('正在加载.....'); + //return; + $.ajax({ + url : cartHostUrl+'/cart/changeCart/', + type : 'POST', + beforeSend: function(){ + var temp = $(obj).val().split("-"); + $('#'+temp[0]+'load'+ht).html('').show(); + $('#'+temp[0]+ht).hide(); + }, + data : {val : $(obj).val(),checked : checked}, + dataType: 'json', + success: function(msg){ + //$('.currcart').each(function(){ + // $(this).removeClass("currcart"); + //}) + if(msg.error==1){ + // if($('#'+msg.info.type).length > 0){ + // $('#'+msg.info.type).html(msg.data); + // } + if (msg.info.type.length > 0) { + for(var t in msg.data){ + if($('#'+t).length > 0){ + if (msg.data[t] == 'none') { + $('#'+t).remove(); + } else { + $('#'+t).html(msg.data[t]); + } + } else { + if (msg.data[t] != 'none') { + var loadDiv = $(""); + $("#all_"+type+" > div.cartOrderTotal").before(loadDiv); + $("#all_"+type+" > div.cartOrderTotal").before("
        "+msg.data[t]+"
        "); + } + } + } + } + chmodeNum(msg.info.cart); + changeCheckboxStats(); + //getCartList();//更新右上角的购物列表 + }else{ + jAlert(msg.info); + //$(obj).attr('checked',false); + } + //$('#'+$(obj).val()).addClass('currcart'); + }, + complete: function(){ + var temp = $(obj).val().split("-"); + $('#'+temp[0]+'load'+ht).html('').hide(); + $('#'+temp[0]+ht).show(); + } + + }); +} + +//改变全选框 +function changeCheckboxStats(){ + if($("#Zpu").length>0){ + if($("input[type='checkbox'][class='putong']:not(:checked)").length <= 0){ + $("#Zpu").attr("checked",true); + }else{ + $("#Zpu").attr("checked",false); + } + if($("input[type='checkbox'][class='putong']").length <= 0){ + //$('#all_putong').remove(); + //top.location.reload(); + top.location.href = cartHostUrl+'/cart/index/'; + } + } + if($("#Zsfv").length>0){ + if($("input[type='checkbox'][class='zhicai']:not(:checked)").length <= 0){ + $("#Zsfv").attr("checked",true); + }else{ + $("#Zsfv").attr("checked",false); + } + if($("input[type='checkbox'][class='zhicai']").length <= 0){ + //$("#all_zhicai").remove(); + //top.location.reload(); + top.location.href = cartHostUrl+'/cart/index/'; + } + } + if($("#Zht").length>0){ + if($("input[type='checkbox'][class='haitao']:not(:checked)").length <= 0){ + $("#Zht").attr("checked",true); + }else{ + $("#Zht").attr("checked",false); + } + if($("input[type='checkbox'][class='haitao']").length <= 0){ + //$('#all_putong').remove(); + //top.location.reload(); + top.location.href = cartHostUrl+'/cart/index/'; + } + } + if($("input[type='checkbox'][name='cart_list']").length <= 0){ + top.location.href = cartHostUrl+'/cart/index/'; + } + //if($("#Zsfv").length<=0){ + //top.location.href = cartHostUrl+'/cart/index/'; + //} + //alert($("input[name^='cart_list']:not(:checked)").length); + + if($("input[name^='cart_list']:not(:checked)").length <= 0){ + $("#Zall").attr("checked",true); + }else{ + $("#Zall").attr("checked",false); + } +} + +function changNum(num,value,isHt){ + //var type = $(obj).parent().parent().parent().find("input[type='checkbox']").attr('class'); + //alert(type); + var selceobj = $("input[type='checkbox'][name='cart_list'][value='"+value+"']:not(:checked)"); + if(selceobj.length > 0){ + selceobj.attr("checked",true); + changeCart(selceobj); + return; + } + var count = 0; + var jianobj = $('#amount'+value); + var n = jianobj.val()*1; + if(num == 1){//jian + if(--n <= 0){ + return; + } + //jianobj.val(--n); + count = -1; + } + if(num == 2){ + //jianobj.val(++n); + count = 1; + } + changeCartNum(value,count,isHt); +} + +function changCount(value,obj,isHt){ + //var type = $(obj).parent().parent().parent().find("input[type='checkbox']").attr('class'); + //alert(type); + var selceobj = $("input[type='checkbox'][name='cart_list'][value='"+value+"']:not(:checked)"); + if(selceobj.length > 0){ + selceobj.attr("checked",true); + changeCart(selceobj); + return; + } + $count = 0; + $oldnum = $('#amounts'+value).val()*1; + $num = $(obj).val()*1; + if(!checkRate($oldnum)){ + jAlert('非法操作!'); + return; + } + if(!checkRate($num)){ + jAlert('您输入的数量格式有误!'); + $(obj).val($oldnum); + return; + } + if($num > 1000){ + $(obj).val($oldnum); + jAlert('对不起购买上限不能大于1000!!'); + return; + } + $count = $num - $oldnum; + changeCartNum(value,$count,isHt); +} + +//点击商品数量 +function changeCartNum(value,count,isHt,bs){ + if(isHt==1){ + var type='haitao'; + var ht='_ht'; + }else{ + var type='putong'; + var ht=''; + } + if (typeof(bs) == "undefined") { + bs = 1; + } + var hasDiv = new Array(); + $("#all_"+type).children().each(function(k, v){ + var divId = $(v).attr('id'); + if (divId != '' && divId.indexOf('load') < 0) { + hasDiv.push(divId) + } + }); + bs = count>0 ? bs : 0;//加做验证,减不做 + $.ajax({ + url : cartHostUrl+'/cart/changeCartNum/', + beforeSend: function(){ + var temp = value.split("-"); + $('#'+temp[0]+'load'+ht).html('').show(); + $('#'+temp[0]+ht).hide(); + //$('#'+value).html('').show(); + }, + type : 'POST', + data : {val:value, num:count, mes:bs, hasdiv:hasDiv, is_ht:isHt}, + dataType: 'json', + success: function(msg){ + //$('.currcart').each(function(){ + // $(this).removeClass("currcart"); + //}) + if(msg.error==1){ + if (msg.data == 'reload') { + location.reload(); + } + if (msg.info.type.length > 0) { + for(var t in msg.data){ + if($('#'+t+ht).length > 0){ + $('#'+t+ht).remove(); + } + if($('#'+t+"load"+ht).length > 0){ + $('#'+t+"load"+ht).remove(); + } + if (msg.data[t] != 'none') { + var loadDiv = $(""); + $("#all_"+type).prepend(loadDiv); + $("#all_"+type).prepend("
        "+msg.data[t]+"
        "); + } + } + } + chmodeNum(msg.info.cart); + getCartList();//更新右上角的购物列表 + }else if(msg.error==2){ + jConfirm(msg.info, '提示消息', function(r){ + if(r){ + changeCartNum(value,count,type,0); + }else{ + $('#amount'+value).val($('#amounts'+value).val()*1); + } + }) + }else{ + jAlert(msg.info); + $('#amount'+value).val($('#amounts'+value).val()*1); + //var n = $('#amount'+value).val()*1; + //$('#amount'+value).val(--n); + } + //$('#'+value).addClass('currcart'); + }, + complete: function(){ + var temp = value.split("-");; + $('#'+temp[0]+'load'+ht).html('').hide(); + $('#'+temp[0]+ht).show(); + } + }); +} + + +/*购物车删除单个商品 + @param string value 活动类型-活动id-商品id 这三者组合 + */ +function cartDel(value){ + jConfirm("确定删除此商品?", '提示消息', function(r){ + if (r){ + yibo('delete',value,1); + $.ajax({ + url : cartHostUrl+'/cart/delCartProduct/', + type : 'POST', + //dataType: 'json', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + async: false, + data : {val : new Array(value)}, + success: function(msg){ + if(msg.error==1){ + if(msg.info.is_ht==true){ + var ht = '_ht'; + }else{ + var ht = ''; + } + if($('#'+msg.info.type+ht).length > 0){ + $('#'+msg.info.type+ht).html(msg.data); + chmodeNum(msg.info.cart); + } + getCartList();//更新右上角的购物列表 + changeCheckboxStats(); + }else{ + jAlert(msg.info); + } + } + }); + }else{ + return false; + } + } + ); +} + +//删除多个选择商品 +function cartDelMore(){ + jConfirm("确定删除选中的商品?", '提示消息', function(r){ + if (r){ + var result = new Array(); + $("input[name='cart_list']:checked").each(function(){ + result.push($(this).val()); + }); + var ids = result.join(","); + yibo('delete',ids,1); + $.ajax({ + url : cartHostUrl+'/cart/delCartProduct/', + type : 'GET', + data : {val : result}, + dataType: 'jsonp', + jsonp:"callback", + success: function(msg){ + if(msg.error==1){ + //top.location.reload(); + top.location.href = cartHostUrl+'/cart/index/'; + }else{ + jAlert(msg.info); + } + } + }); + }else{ + return false; + } + }); +} + +/** + * 清空购物车 + */ +function delAll(huid) +{ + jConfirm("确定清空购物车中的全部商品?", '提示消息', function(r){ + if(r){ + yibo('delete','',1); + $.ajax({ + url : cartHostUrl+'/cart/delAll/', + type : 'POST', + data : {userid:huid}, + dataType: 'json', + success: function(msg){ + if(msg.error==1){ + //top.location.reload(); + top.location.href = cartHostUrl+'/cart/index/'; + }else{ + jAlert(msg.info); + } + } + }); + } else { + jAlert(msg.info); + } + }); +} + +//最上部全选 +function Zall(obj){ + var checked = ''; + $("input[name^='cart_list']").attr('checked',$(obj).attr('checked')) + if($(obj).attr('checked')){ + checked = 'checked'; + } + selectAll(checked,0); +} + +//普通商品全选 +function PutongAll(obj){ + var checked = ''; + $(".putong").attr('checked',$(obj).attr('checked')); + if($(obj).attr('checked')){ + checked = 'checked'; + } + selectAll(checked,1); +} +//直采商品全选 +function SfvAll(obj){ + var checked = ''; + $(".zhicai").attr('checked',$(obj).attr('checked')); + if($(obj).attr('checked')){ + checked = 'checked'; + } + selectAll(checked,2); +} +//海淘商品全选 +function HaitaoAll(obj){ + var checked = ''; + $(".haitao").attr('checked',$(obj).attr('checked')); + if($(obj).attr('checked')){ + checked = 'checked'; + } + selectAll(checked,3); +} +/*function HaitaoAll(obj){ + var checked = ''; + $(".haitao").find('input').each(function(){ + $(this).attr('checked',$(obj).attr('checked')); + }) + if($(obj).attr('checked')){ + checked = 'checked'; + } + selectAll(checked,3); +}*/ + +/*处理全选的方法 + @parma string checked 是否被选中的值 + @parma string type 针对购物车中哪些数据操作(0,全部;1,普通;2,直采) + */ +function selectAll(checked,type){ + $.ajax({ + url : cartHostUrl+'/cart/selectAll/', + type : 'POST', + data : {checked:checked,type:type}, + dataType: 'json', + success: function(msg){ + if(msg.error==1){ + //top.location.reload(); + top.location.href = cartHostUrl+'/cart/index/'; + }else{ + jAlert(msg.info); + } + } + }); +} + + +//定义切换地址后要执行的方法 +function cartList(){ + //top.location.href = '/cart/index/area/1'; + top.location.href = cartHostUrl+'/cart/index/'; +} + + +//获取购物车商品数据与页面 + +function getCartNum(){ + $.ajax({ + url : cartHostUrl+'/cart/countNum/', + type : 'POST', + data : {}, + dataType: 'json', + success: function(msg){ + if(msg.error==1){ + $('#cartNum').html(msg.data); + }else{ + jAlert(msg.info); + } + } + }); +} + +function getCartList(){ + $.ajax({ + url : cartHostUrl+'/cart/headerCart/', + type : 'POST', + //dataType: 'json', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {}, + success: function(msg){ + if(msg.error==1){ + //$('#cat13').html(msg.data); + $('#cartNum').html(msg.info.num); + $('#cart_lists').html(msg.data); + if($('#showcart').length > 0){ + $('#showcart').html('购物车共计'+msg.info.num+'件商品,合计 '+msg.info.price+'元'); + } + }else{ + jAlert(msg.info); + } + } + }); +} + +/* + 购买了还购买了 + */ +function buyelse(pid){ + $.ajax({ + url : wwwHostUrl+'/product/alsoBuy', + type : 'GET', + dataType: 'html', + data : {pid:pid}, + success: function(htmlcode){ + //alsoBuy = htmlcode; + if($('#elsebuy').length > 0){ + $('#elsebuy').html(htmlcode); + } + } + }) +} + +//商品和礼包加入购物车 +//@param product_id 商品id +//@param cart_type 购物类型 0 普通商品 +//@param opencity_id 站点id +//@param flag 提示方式 0本页提示 1跳转购物车 +function cartAdd(product_id,cart_type,opencity_id, flag){ + var cartNum = $("#cartNum").html(); + var alsoBuy = ''; + if (3==flag){ + addPresale(product_id); + }else{ + //购买了还购买了 + //$.get(wwwHostUrl+'/product/alsoBuy',{pid:product_id},function(htmlcode){ + //alsoBuy = htmlcode; + //}) + + + var web_url = cartHostUrl+'/cart/addCart/'; + var number = 1; + if($("#number").length!=0){ + number = $("#number").val(); + } + if(number > 1000){ + //This.val(trCart.find("#amounts").val()); + jAlert('对不起购买上限不能大于1000!!'); + return; + } + if(!checkRate(number)){ + jAlert('您输入的数量格式有误!!'); + return false; + } + + $.ajax({ + url : web_url, + type : 'POST', + //dataType: 'json', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {product_id:product_id,number:number,opencity_id:opencity_id,cart_type:cart_type}, + success: function(msg){ + if(msg.error==1){//成功 + //jAlert(msg.succes); + if (0==flag) + { + var cartDiv = '
        '; + cartDiv+= '
        X 关闭
        '; + cartDiv += '
        还购买了正在加载中...
        '; + cartDiv += '
        '; + $(cartDiv).appendTo("#fatherson"); + $("#fatherson").show(); + buyelse(product_id); + getCartList(); + car_ie6hack(); + }else if(2==flag){ + url = cartHostUrl+'/cart/index/'; + if(/MSIE (\d+\.\d+);/.test(navigator.userAgent) || /MSIE(\d+\.\d+);/.test(navigator.userAgent)){ + var referLink = document.createElement('a'); + referLink.href = url; + document.body.appendChild(referLink); + referLink.click(); + }else{ + location.href = url; + } + } else if(4==flag){ + return msg; + } + + yibo('cart',product_id,number); + }else{ + jAlert(msg.info); + } + } + }); + } +} + + +function cartJump() +{ + if($("input[name='cart_list'][class='putong']:checked").length==0){ + jAlert("请至少选择一个商品"); + return; + } + //$('.js2').attr('disabled',true); + $('.jiesuan.youxuan').attr('disabled',true); + $('.jiesuan.youxuan').val('正在提交...'); + if(pp.length>0){ + var cartids = new Array(); + $.each(pp,function(k,v){ + $('#'+v.id).css({ color: "#ff0011", background: "#F5F5DC" }); + cartids.push(v.cartid); + }) + var cids = cartids.join(","); + jConfirm("购物车中存在无法购买的商品不能直接去结算,是否需要系统自动为您取消选择所有无法购买的商品?", '提示消息', function(r){ + if (r){ + $.ajax({ + url : cartHostUrl+'/cart/goOutSys/', + type : 'POST', + data : {cartids:cids}, + dataType: 'json', + success: function(msg){ + if(msg.error==1){ + top.location.href = cartHostUrl+'/cart/index/'; + } + } + }); + }else{ + //$('.js2').attr('disabled',false); + $('.jiesuan.youxuan').attr('disabled',false); + $('.jiesuan.youxuan').val('去结算'); + } + }); + + }else{ + if($("input[class='putong']:checked").length!=0 && $("input[class='zhicai']:checked").length!=0){ + href_url = cartHostUrl+'/cart/select/'; + }else if($("input[class='putong']:checked").length!=0 && $("input[class='zhicai']:checked").length==0){ + href_url = cartHostUrl+'/order/index/'; + }else if($("input[class='putong']:checked").length==0 && $("input[class='zhicai']:checked").length!=0){ + href_url = wwwHostUrl+'/sfvOrder/index/'; + } + //SF.Widget.tbOpen('正在加载...', '正在加载...', 'scrolling=no'); + $.ajax({ + url : cartHostUrl+'/cart/doSubmit/', + type : 'POST', + dataType: 'json', + data : {gourl:href_url}, + success: function(msg){ + if(msg.error==1){ + top.location.href = href_url; + }else{ + if(msg.data == 'login'){ + SF.Widget.login(href_url); + }else{ + jAlert(msg.info); + } + //$('.js2').attr('disabled',false); + $('.jiesuan.youxuan').attr('disabled',false); + $('.jiesuan.youxuan').val('去结算'); + } + } + }); + } +} + +function cartJumpHt(){ + if($("input[name='cart_list'][class='haitao']:checked").length==0){ + jAlert("请至少选择一个优选国际商品"); + return; + } + //$('.js2').attr('disabled',true); + $('.jiesuan.haitao').attr('disabled',true); + $('.jiesuan.haitao').val('正在提交...'); + if(pp.length>0){ + var cartids = new Array(); + $.each(pp,function(k,v){ + $('#'+v.id).css({ color: "#ff0011", background: "#F5F5DC" }); + cartids.push(v.cartid); + }) + var cids = cartids.join(","); + jConfirm("购物车中存在无法购买的商品不能直接去结算,是否需要系统自动为您取消选择所有无法购买的商品?", '提示消息', function(r){ + if (r){ + $.ajax({ + url : cartHostUrl+'/cart/goOutSys/', + type : 'POST', + data : {cartids:cids}, + dataType: 'json', + success: function(msg){ + if(msg.error==1){ + top.location.href = cartHostUrl+'/cart/index/'; + } + } + }); + }else{ + //$('.js2').attr('disabled',false); + $('.jiesuan.haitao').attr('disabled',false); + $('.jiesuan.haitao').val('去结算'); + } + }); + + }else{ + href_url = cartHostUrl+'/orderHt/index/'; + //SF.Widget.tbOpen('正在加载...', '正在加载...', 'scrolling=no'); + $.ajax({ + url : cartHostUrl+'/orderHt/doSubmit/', + type : 'POST', + dataType: 'json', + data : {gourl:href_url}, + success: function(msg){ + if(msg.error==1){ + top.location.href = href_url; + }else{ + if(msg.data == 'login'){ + SF.Widget.login(href_url); + }else{ + jAlert(msg.info); + } + //$('.js2').attr('disabled',false); + $('.jiesuan.haitao').attr('disabled',false); + $('.jiesuan.haitao').val('去优选国际结算'); + } + } + }); + } +} + +function gosubmit(){ + var href_url = '' + var value = $("input[name='select_order']:checked").val(); + if(value == 1){ + href_url = cartHostUrl+'/order/index/'; + }else if(value == 2){ + href_url = wwwHostUrl+'/sfvOrder/index/'; + } + $.ajax({ + url : cartHostUrl+'/cart/doSubmit/', + type : 'POST', + dataType: 'json', + data : {gourl:href_url}, + success: function(msg){ + if(msg.error==1){ + top.location.href = href_url; + }else{ + if(msg.data == 'login'){ + SF.Widget.login(href_url); + }else{ + jAlert(msg.info); + } + } + } + }); +} + +function gosubmitHt(){ + var href_url = '' + var value = $("input[name='select_order']:checked").val(); + href_url = cartHostUrl+'/orderHt/index/'; + $.ajax({ + url : cartHostUrl+'/orderHt/doSubmit/', + type : 'POST', + dataType: 'json', + data : {gourl:href_url}, + success: function(msg){ + if(msg.error==1){ + top.location.href = href_url; + }else{ + if(msg.data == 'login'){ + SF.Widget.login(href_url); + }else{ + jAlert(msg.info); + } + } + } + }); +} + +//添加收藏 +function favC(id){ + $.post(cartHostUrl+"/favorites/create/product_id/"+ id +"/",{ispresale:0},function(str){ + str = eval('('+str+')'); + if(str.status == 2){ + SF.Widget.login(cartHostUrl+'/cart/index/'); + return; + //document.location.href = "https://passport.d.com?returnUrl=" + document.location.href; + }else if(str.status == 1){ + $("#getfavok"+id).slideDown(300,function(){setTimeout(function(){$("#getfavok"+id).slideUp(300)},2000)}); + // jAlert('该商品收藏成功'); + }else{ + jAlert('添加收藏失败:您已经收藏该商品!'); + } + }); +} + +//添加收藏 n元m件商品 +function favNM(id){ + $.post(cartHostUrl+"/favorites/create/product_id/"+ id +"/",{ispresale:0},function(str){ + str = eval('('+str+')'); + if(str.status == 2){ + SF.Widget.login(cartHostUrl+'/cart/index/'); + return; + //document.location.href = "https://passport.d.com?returnUrl=" + document.location.href; + }else if(str.status == 1){ + $("#getfavoknm"+id).slideDown(300,function(){setTimeout(function(){$("#getfavoknm"+id).slideUp(300)},2000)}); + // jAlert('该商品收藏成功'); + }else{ + jAlert('添加收藏失败:您已经收藏该商品!'); + } + }); +} + +//添加收藏 时令优选 +function favC_sfv(id){ + $.post(cartHostUrl+"/favorites/create/product_id/"+ id +"/",{is_sfv:1},function(str){ + str = eval('('+str+')'); + if(str.status == 2){ + SF.Widget.login(cartHostUrl+'/cart/index/'); + return; + //document.location.href = "https://passport.d.com?returnUrl=" + document.location.href; + }else if(str.status == 1){ + $("#getsfvfavok"+id).slideDown(300,function(){setTimeout(function(){$("#getsfvfavok"+id).slideUp(300)},2000)}); + // jAlert('该商品收藏成功'); + }else{ + jAlert('添加收藏失败:您已经收藏该商品!'); + } + }); +} + +function yibo(type,product_id,product_num){ + //return; + var del = 0; + //var _adwq = new Array(); + if(type=='delete'){ + del = 1; + } + _adwq.push([ '_setDataType', + type + ]); + $.ajax({ + url : cartHostUrl+'/ajax/getproduct/', + type : 'GET', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {product_id : product_id,opencity_id : 1,del : del,t:Math.random()}, + async: false, + success: function(msg){ + var json = msg; + _adwq.push([ '_setCustomer', + json.userid //1234567是一个例子,请换成当前登陆用户ID或用户名 + ]); + // 下面代码是商品组代码,根据订单中包括多少种商品来部署,每种商品部署一组 + //商品组一组开始 + var webtrekk = new Object(); + webtrekk.product = new Array(); + webtrekk.productCategory1 = new Array(); + webtrekk.productCategory2 = new Array(); + webtrekk.productCategory3 = new Array(); + webtrekk.productQuantity = new Array(); + webtrekk.productCost = new Array(); + if(json.info){ + $.each(json.info, function(i,val){ + if(val){ + var b = eval('('+val+')'); + _adwq.push(['_setItem', + b.product_sn, // 09890是一个例子,请填入商品编号 - 必填项 + b.product_name, // 电视是一个例子,请填入商品名称 - 必填项 + b.product_price, // 12.00是一个例子,请填入商品金额 - 必填项 + product_num, // 1是一个例子,请填入商品数量 - 必填项 + b.category_id, // A123是一个例子,请填入商品分类编号 - 必填项 + b.category_name // 家电是一个例子,请填入商品分类名称 - 必填项 + ]); + } + webtrekk.product.push(b.product_sn); + webtrekk.productCategory1.push(b.category_one); + webtrekk.productCategory2.push(b.category_two); + webtrekk.productCategory3.push(b.category_id); + webtrekk.productQuantity.push(product_num); + webtrekk.productCost.push(b.product_price*product_num); + }); + + webtrekkSend(webtrekk); + } + + //商品组一组结束 + + + } + }); + // 下面是提交订单代码,此段代码必须放在以上代码后面 - 必填项 + _adwq.push([ '_trackTrans' ]); +} + +function webtrekkSend(webtrekk){ + var pageConfig = { + linkTrack :"link", + heatmap :"1" + }; + var wt = new webtrekkV3(pageConfig); + wt.sendinfo({ + contentId:"WEB:购物车:加入购物车", + contentGroup:{ + 1 :"WEB:购物车",2 :"加入购物车",3 :"加入购物车" + }, + // 以下代码用来记录添加购物车时的商品信息 + product:webtrekk.product.join(";"), // 请填写商品 ID + productCategory:{ + 1 :webtrekk.productCategory1.join(";"), // 请填写商品一级类别名称 + 2 :webtrekk.productCategory2.join(";"), // 请填写商品二级类别名称 + 3 :webtrekk.productCategory3.join(";") // 请填写商品三级类别名称 + }, + productQuantity:webtrekk.productQuantity.join(";"), // 请填写用户加入购物车时的商品数量 + productCost:webtrekk.productCost.join(";"), // 请填写用户加入购物车时的商品总价值(单价×数量) + productStatus:"add", // 固定值,请勿修改 + customEcommerceParameter:{ + 2 :"加入购物车" // 固定值,请勿修改 + } + }); +} + +//carwindow遮罩 +function car_ie6hack(){ + if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) { + var iframehide=''; + $(iframehide).appendTo("#fatherson"); + } +} + +//判断正整数 +function checkRate(input) +{ + var re = /^[0-9]*[1-9][0-9]*$/; + if (!re.test(input)) + { + return false; + } else { + return true; + } +} + +//关闭carwindow +function car_close(){ + $("#carwindow").remove(); + $("#fatherson").hide(); + if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) { + $("#car_iframe").remove(); + } +} diff --git a/e3-order-web/src/main/resources/static/js/common.js b/e3-order-web/src/main/resources/static/js/common.js new file mode 100644 index 0000000..9f7dcfb --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/common.js @@ -0,0 +1,529 @@ +(function(window) { + var document = window.document, + alert = window.alert, + confirm = window.confirm + $ = window.jQuery; + var SF = { + Config: {}, + Widget: {}, + App: {}, + Static: {} + }; + var hostUrl = document.location.host; + var urlArr = hostUrl.split('.'); + var domain = urlArr[1]+'.'+urlArr[2]; + var PASSPORT_URL = 'http://passport.'+domain; + var SF_STATIC_BASE_URL = 'http://i.'+domain+'/com'; + var SF_WWW_HTML_URL = 'http://www.'+domain+'/html'; + + SF.loadJs = function(sid, callback, dequeue) { + SF.loadJs.loaded = SF.loadJs.loaded || {}; + SF.loadJs.packages = SF.loadJs.packages || { + 'jquery.thickbox': { + 'js': [SF_STATIC_BASE_URL + '/js/jquery/jquery.thickbox.js'], + 'check': function() { + return !!window.tb_show; + } + }, + 'jquery.select': { + 'js': [SF_STATIC_BASE_URL + '/js/jquery/jquery.select.js?v=20130811'], + 'check': function() { + return !!$.fn.relateSelect; + } + }, + 'data.city': { + 'js': [SF_STATIC_BASE_URL + '/js/data/region_data.js'], + 'depends': ['jquery.select'], + 'check': function() { + return !!window.REGION_DATA; + } + }, + 'data.city_new': { + 'js': [SF_WWW_HTML_URL + '/js/region_data_new.js'], + 'depends': ['jquery.select'], + 'check': function() { + return !!window.REGION_DATA; + } + }, + 'data.category': { + 'js': ['/cate/category/'], + 'depends': ['jquery.select'], + 'check': function() { + return !!window.CATEGORY; + } + } + }; + + if (!dequeue) { + $(window).queue('loadJs', function() { + SF.loadJs(sid, callback, true); + }); + $(window).queue('loadJsDone', function(){ + $(window).dequeue('loadJs'); + }); + if ($(window).queue('loadJsDone').length == 1) { + $(window).dequeue('loadJs'); + } + return; + } + + function collect(sid) { + var jsCollect =[], packages = SF.loadJs.packages[sid], i, l; + if (packages) { + if (packages.depends) { + l = packages.depends.length; + for (i = 0; i < l; i++) { + jsCollect = jsCollect.concat(collect(packages.depends[i])); + } + } + if ($.isFunction(packages.check) && !packages.check()) { + jsCollect = jsCollect.concat(packages.js); + } + } + return jsCollect; + } + + function load(url) { + return jQuery.ajax({ + crossDomain: true, + cache: true, + type: "GET", + url: url, + dataType: "script", + async: false, + scriptCharset: "UTF-8" + }); + } + + var js = collect(sid), deferreds = [], l = js.length, i; + for (i = 0; i < l; i++) { + deferreds.push(load(js[i])); + } + $.when.apply($, deferreds).then(function() { + $(window).dequeue('loadJsDone'); + $.isFunction(callback) && callback.call(document); + }, function() { + $(window).dequeue('loadJsDone'); + }) + }; + + SF.t = function(code) { + if (window.MSG && window.MSG[code]) { + return window.MSG[code]; + } + return code; + }; + + SF.Widget = { + // 下拉菜单显隐 + pop: function(s) { + if ($(s).data('SF_BIND_POP')) { + return; + } + var $c = $(s), + setting = $c.data('pop') || {}; + $c.bind({ + mouseover: function(e) { + if (setting.pop) { + $(setting.pop, $c).show(); + } + if (setting.icon && setting.iconClass) { + $(setting.icon, $c).addClass(setting.iconClass); + } + }, + mouseout: function(e) { + if (setting.pop) { + $(setting.pop, $c).hide(); + } + if (setting.icon && setting.iconClass) { + $(setting.icon, $c).removeClass(setting.iconClass); + } + } + + }); + $c.data('SF_BIND_POP', true); + $c.triggerHandler('mouseover'); + return; + }, + + // 打开 thickbox 遮罩层 + tbOpen: function(caption, url, imageGroup) { + function show() { + window.tb_show(caption, url, imageGroup); + } + SF.loadJs('jquery.thickbox', show); + }, + // 关闭 thickbox 遮罩层 + tbClose: function() { + window.tb_remove(); + }, + // 用户登陆层 + login: function(backurl, reload) { + var url; + var backurlArr + backurl = (typeof(backurl) === 'undefined' || !backurl) ? window.location.href : backurl; + //过滤回调地址锚点 + backurlArr = backurl.split('#'); + $.ajax({ + type: 'GET', + async: false, + dataType: "jsonp", + jsonp:"callback", + url: 'http://www.'+domain+"/ajaxSetCity/getCasLoginUrl/", + success: function(str){ + if(1==str.status){ + backurl =PASSPORT_URL+'/?returnUrl='+backurlArr[0]; + reload = (typeof(reload) === 'undefined') ? ($.param({service : backurl})) : ($.param({service : backurl, reload: Number(reload)})); + url = str.casDomain+'/cas/login?loginpage=popup&'+reload+'&TB_iframe&height=478&width=390'; + }else{ + reload = (typeof(reload) === 'undefined') ? ($.param({returnUrl : backurlArr[0]})) : ($.param({returnUrl : backurlArr[0], reload: Number(reload)})); + url = PASSPORT_URL+'/login/ajax/?' + reload + '&TB_iframe&height=435&width=346'; + } + //url = PASSPORT_URL+'/login/ajax/?' + reload + '&TB_iframe&height=435&width=346'; + SF.Widget.tbOpen('您还未登录', url, 'scrolling=no'); + } + }); + }, + // 分类联动 + category: function(s, options) { + function relateSelect() { + var defaults = { + data: window.CATEGORY + }; + $(s).relateSelect($.extend(defaults, options || {})); + } + SF.loadJs('data.category', relateSelect); + }, + // 省市联动 + city: function(s, options) { + function relateSelect() { + var defaults = { + data: window.REGION_DATA + }; + $(s).relateSelect($.extend(defaults, options || {})); + } + SF.loadJs('data.city', relateSelect); + }, + + // 省市联动new + city_new: function(s, options) { + function relateSelect() { + var defaults = { + data: window.REGION_DATA + }; + $(s).relateSelect($.extend(defaults, options || {})); + } + SF.loadJs('data.city_new', relateSelect); + }, + //添加class + addClass:function(s,onClass){ + $(s).hover(function(){ + $(this).addClass(onClass); + },function(){ + $(this).removeClass(onClass); + }); + }, + //搜索框默认值 + tipTxt: function(name){ + $(name).each(function(){ + var oldVal = $(this).val(); + $(this).css({"color":"#888"}) + .focus(function(){ + if($(this).val()!=oldVal){$(this).css({"color":"#000"})}else{$(this).val("").css({"color":"#888"})} + }) + .blur(function(){ + if($(this).val()==""){$(this).val(oldVal).css({"color":"#888"})} + }) + .keydown(function(){ + $(this).css({"color":"#000"}) + }) + }) + }, + // 标签切换 + tabs: function(s, e) { + e = e || "mouseover"; + $(function() { + $(s).bind(e, function(e) { + if (e.target === this){ + var tabs = $(this).parent().parent().children("li"); + var panels = $(this).parent().parent().parent().children(".SF-tabs-box"); + var index = $.inArray(this, $(this).parent().parent().find("a")); + if (panels.eq(index)[0]) { + tabs.removeClass("SF-tabs-hover"); + tabs.eq(index).addClass("SF-tabs-hover"); + panels.addClass("SF-tabs-hide"); + panels.eq(index).removeClass("SF-tabs-hide"); + } + } + }); + }); + }, + Subtr:function(arg1,arg2){ + var r1,r2,m,n; + try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0} + try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0} + m=Math.pow(10,Math.max(r1,r2)); + n=(r1>=r2)?r1:r2; + return ((arg1*m-arg2*m)/m).toFixed(n); + }, + Add:function(arg1,arg2){ + var r1,r2,m; + try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0} + try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0} + m=Math.pow(10,Math.max(r1,r2)) + return (arg1*m+arg2*m)/m + }, + Acc:function(arg1,arg2){ + var t1=0,t2=0,r1,r2; + try{t1=arg1.toString().split(".")[1].length}catch(e){} + try{t2=arg2.toString().split(".")[1].length}catch(e){} + with(Math){ + r1=Number(arg1.toString().replace(".","")) + r2=Number(arg2.toString().replace(".","")) + return (r1/r2)*pow(10,t2-t1); + } + }, + Mul:function(arg1,arg2) + { + var m=0,s1=arg1.toString(),s2=arg2.toString(); + try{m+=s1.split(".")[1].length}catch(e){} + try{m+=s2.split(".")[1].length}catch(e){} + return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m) + }, + //日期选择器 + datepicker: function(o) { + $(o).datepicker({ + dateFormat: 'yy-mm-dd', + monthNames: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'], + dayNamesMin: ['日','一','二','三','四','五','六'] + }); + }, + strCount:function(str){ + var byteLen = 0; + var strLen = str.length; + if(strLen){ + for(var i = 0; i < strLen; i++){ + if(str.charCodeAt(i)>255) + byteLen += 1; + else + byteLen += 0.5; //0.5不存在精度问题 + } + } + return byteLen; + }, + refreshOrder:function(order_id, html){ + $('#order_' + order_id).replaceWith(html); + var location = window.location.href; + if (location.match(/order\/list/g)){ + // todo nothing + }else{ + window.location.reload(); + } + }, + checkTextarea:function(chkname,titname,maxnum){ + $(chkname).keyup(function(){ + var flTxt = Math.floor(maxnum-SF.Widget.txtLength(chkname)); + $(titname).html("您还可以输入"+flTxt+"个字"); + if(flTxt < 0){ + $(titname).html("
        您输入的字数已超出范围,不可以再输入
        "); + } + }) + }, + txtLength:function(chkname){ + var getTextarea = $(chkname).val(); + var firstLength = 0; + for(var i=0;i20) { + return 0; + }; + if (pwd.length >= 6 && pwd.length <= 7) { + return 10; + }; + if (pwd.length >= 8) { + return 25; + }; + return 0; +}; +var pwdTotal = function(pwd) { + if (!pwd || pwd == 'undefined') { + return - 1; + }; + if(lenpoints(pwd)==0){ + return 0; + } + var digit01 = /^[0-9]+$/; + var digit10 = /[0-9]+/; + var digit02 = /^[a-z]+$/; + var digit20 = /[a-z]+/; + var digit03 = /^[A-Z]+$/; + var digit30 = /[A-Z]+/; + var digitStr = /[a-zA-Z]/; + var digitOther = /[_]+/; + var safeStr =/^[0-9a-zA-z_]+$/; + var totalPoints =0; + if(!safeStr.test(pwd)){ + return -1; + } + + if (digit20.test(pwd) && digit30.test(pwd)) { + totalPoints += 20; + }; + var pwd_num = 0; + var t_num = 0; + var pwd_mi=0; + var pwd_max=0; + for (var i = 0; i <= pwd.length; i++) { + if (digit01.test(pwd.substr(i, 1))) { + pwd_num++; + } + if (digitOther.test(pwd.substr(i, 1))) { + t_num++; + } + if (digit02.test(pwd.substr(i, 1))) { + pwd_mi ++; + } + if (digit03.test(pwd.substr(i, 1))) { + pwd_max ++; + } + }; + if(pwd_mi&&!pwd_max){ + totalPoints += 10; + } + if(!pwd_mi&&pwd_max){ + totalPoints += 10; + } + if (pwd_num >= 1 && pwd_num < 3) { + totalPoints += 10; + }; + if (pwd_num >= 3) { + totalPoints += 20; + }; + if (t_num == 1) { + totalPoints += 10; + }; + if (t_num > 1) { + totalPoints += 25; + }; + if (digit20.test(pwd) && digit30.test(pwd) && digit10.test(pwd) && digitOther.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 20; + } + if (digitStr.test(pwd) && digit10.test(pwd) && digitOther.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 3; + }; + if (digitStr.test(pwd) && digit10.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 2; + }; + if(totalPoints==0){ + return -1; + } + totalPoints+=lenpoints(pwd); + return totalPoints; +} +var doGetCoupon = function(id, key){ + $.ajax({ + url: '/CouponDraw/draw/', + data: {cid:id, key:key}, + type : 'POST', + dataType: 'json', + success: function(resp) { + if (resp) { + if (resp.flag == 1) { + $.alerts.okButton = '查看优惠券'; + $.alerts.alert(resp.msg,'提示',function(){ + location.href = resp.url; + }); + } else if (resp.flag == 2) { + $.alerts.alert(resp.msg, '提示'); + } else if (resp.flag == 3) { + SF.Widget.login(window.location.href); + } else if (resp.flag == 0) { + $.alerts.alert(resp.msg, '错误'); + } + } else { + $.alerts.alert('优惠券异常', '错误'); + } + }, + error: function() { + $.alerts.alert('优惠券异常', '错误'); + } + }); +}; + diff --git a/e3-order-web/src/main/resources/static/js/cookie.js b/e3-order-web/src/main/resources/static/js/cookie.js new file mode 100644 index 0000000..f2cbeee --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/cookie.js @@ -0,0 +1,293 @@ +function getCookie (name) { + var arg = name + "="; + var alen = arg.length; + var clen = document.cookie.length; + var i = 0; + while (i < clen) { + var j = i + alen; + if (document.cookie.substring(i, j) == arg) return getCookieVal (j); + i = document.cookie.indexOf(" ", i) + 1; + if (i == 0) break; + } + return null; +} + +function setCookie(name, value, expires, path, domain, secure) +{ + var today = new Date(); + var expiry = new Date(today.getTime() + 100000 * 24 * 60 * 60 * 1000); + if(expires==''||expires==null) + { + expires=expiry; + } + var curCookie = name + "=" + escape(value) + + ((expires) ? "; expires=" + expires.toGMTString() : "") + + ((path) ? "; path=" + path : "") + + ((domain) ? "; domain=" + domain : "") + + ((secure) ? "; secure" : ""); + document.cookie = curCookie; + +} + +function delCookie(name) { + expdate = new Date(); + expdate.setTime(expdate.getTime() - (86400 * 1000 * 1)); + setCookie(name, "", "", "/", "", ""); +} + + +var expdate= new Date(); + +function getCookieVal (offset) { + var endstr = document.cookie.indexOf (";", offset); + if (endstr == -1) endstr = document.cookie.length; + return unescape(document.cookie.substring(offset, endstr)); +} +$.fn.dropdown = function(b, c) { + if (this.length) { + "function" == typeof b && (c = b, b = {}); + var d = $.extend({ + event: "mouseover", + current: "hover", + delay: 0 + }, b || {}), + e = "mouseover" == d.event ? "mouseout" : "mouseleave"; + $.each(this, function() { + var b = null, + f = null, + g = !1; + $(this).bind(d.event, function() { + if (g) clearTimeout(f); + else { + var e = $(this); + b = setTimeout(function() { + e.addClass(d.current), g = !0, c && c(e) + }, d.delay) + } + }).bind(e, function() { + if (g) { + var c = $(this); + f = setTimeout(function() { + c.removeClass(d.current), g = !1 + }, d.delay) + } else clearTimeout(b) + }) + }) + } +}; +var dhlist = 1; +$(function(){ + getAllCity(); + $("#public_cate").live("mouseenter",function(){ + var dhDivObj = $("#allSort"); + if(dhlist==1){ + $.get("/html/web/_public/_ajaxStaticMenu.html?v20140430",{},function(data) { + dhDivObj.html(data); + dhlist = 2; + }); + } + $("#public_cate").addClass("hover"); + $("#booksort").find(".item").removeClass("hover"); + }); + $("#public_cate").live("mouseleave",function(){ + $("#public_cate").removeClass("hover"); + $("#booksort").find(".item").removeClass("hover"); + }); + + + $(".topMenu .menus").dropdown({ + delay: 50 + }), $(".allCat").dropdown({ + delay: 50 + }, function() { + }), $("#topCart").dropdown({ + delay: 50 + }, function() { + $("#cat_form13").show(); + $("#cat_form13 li").length && $("#topCart").find("s").addClass("setCart"); + }), $(".topMenu .tShow").dropdown({ + delay: 50 + }); + if($(".topMenu .d2 .dd").length){ + $(".topMenu .d2 .dd").append(''); + } + if($(".f_ios").length){ + $(".f_ios").find("li:first").html('手机客户端'); + } + var win_all = $("#header").width(); + var ZnowTime = new Date().getTime(); + //移动广告语 + if (ZnowTime >=1420992000000 && ZnowTime<=1423583999000){ + $("#phone_time").html("客户端首单签收后
        返满200减20元券") + $(".client-promo a").html('App首单签收后 返20元满减券'); + } + //右侧浮动 + if(ZnowTime >= 1414771200000 && ZnowTime<=1416239999000){ + $('.index_rfloat').html('
        关闭
        '); + $('.index_rfloat').show(); + } + $('.app-android').attr('href','http://android.e3mall.cn/sfandroid'); + //右侧广告位关闭 + if ($(".index_rfloat").length){$(".J_rclose").click(function(){$(".index_rfloat").hide();});} + //隐藏会员俱乐部入口 + //$(".allCat").find("dl").eq(2).find("dd a").last().hide(); + //$("#login").after("
      • 员工福利
      • "); +}); + +$("#booksort .item").live("mouseenter",function(){ + $(this).addClass("hover"); +}); +$("#booksort .item").live("mouseleave",function(){ + $(this).removeClass("hover"); +}); + +function isOnline(wwwurl,homeurl,passporturl){ + $.getJSON( wwwurl+"/ajax/isOnline/?callback=?", function( data ) { + if (data.welcome){ + passporturl = passporturl.replace('https', 'http'); + $('#login').html(' '+data.welcome+' [退出]'); + }else{ + //var nickName = decodeURI(getCookie('_nickName')); + var nickName = decodeURI(decodeURI(escape(getCookie('_nickName')))); + nickName = nickName?nickName:'嘿'; + nickName = 'false'==nickName?'嘿':nickName; + nickName = 'null'==nickName?'嘿':nickName; + var welComeMsg = ''; + if('嘿' == nickName){ + welComeMsg = nickName+',欢迎来宜立方商城!'; + }else{ + welComeMsg = nickName+',欢迎您!'; + } + $('#login').html(welComeMsg+'请登录 | 免费注册'); + } + if(data.qqcb){ + $('#qqcb').html(data.qqcb); + } + }); +} + +function setCity(wwwUrl,provinceId,cityId,countyId){ + var provinceId = provinceId?provinceId:2; + var cityId = cityId?cityId:52; + var countyId = countyId?countyId:500; + var townid = 0; + var today = new Date(); + var expiry = new Date(today.getTime() + 3600 * 24 * 30 * 3 * 1000); + var domain = window.location.host; + domain = domain.substring(domain.indexOf('.')); + setCookie('provinceid',provinceId,expiry,'/',domain); + setCookie('cityid',cityId,expiry,'/',domain); + setCookie('areaid',countyId,expiry,'/',domain); + setCookie('townid',townid,expiry,'/',domain); + window.location.reload(); +// $.ajax({ +// url : wwwUrl+'/AjaxSetCity/Changecity/', +// dataType: "jsonp", +// jsonp:"callback", +// data : {provinceid:provinceId,cityid:cityId,areaid:countyId}, +// success: function(str){ +// window.location.reload(); +// } +// }); +} + +function getAllCity(){ + var saveUrl = location.href.split('/')[2].split('.'); + var preDomain = saveUrl[0]; + saveUrl[0] = 'www'; + saveUrl = saveUrl.join('.'); + $.ajax({ + url : 'http://'+saveUrl+'/AjaxSetCity/GetChangeCity/', + dataType: "jsonp", + jsonp:"callback", + data : {}, + success: function(str){ + if(str.shadowData){ + $("#shadowAllCity").html(str.shadowData); + //显示城市浮层 + if('www' == preDomain && $("#shadowAllCity").length>0){ + showShadow(); + } + } + var cityNameHtml = '

        '+str.cityName+'

        '; + if(2==str.cityName.length){ + cityNameHtml = '

        '+str.cityName+'

        '; + } + if(3==str.cityName.length){ + cityNameHtml = '

        '+str.cityName+'

        '; + } + if(3

        '; + } + cityNameHtml = cityNameHtml+ '
        '+str.headData+'
        '; + $("#currentCityName").html(cityNameHtml); + } + }); +} + +function showShadow(){ + var h = $(document).height(); + $('#screen').css({ 'height': h }); + $('#screen').show(); + $('.indexshadow').center(); + $('.indexshadow').show(); +} + +//取URLs +function GetRequests() { + var url = location.search; //获取url中"?"符后的字串 + var theRequest = new Object(); + if (url.indexOf("?") != -1) { + var str = url.substr(1); + if (str.indexOf("&") != -1) { + strs = str.split("&"); + for (var i = 0; i < strs.length; i++) { + theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); + } + } else { + theRequest[str.split("=")[0]] = unescape(str.split("=")[1]); + } + } + return theRequest; +} +//如果是IPAD APP清除 头底部 +$(document).ready(function(){ + //var browser = navigator.userAgent.toLowerCase(); + //alert(browser); + //if(browser.indexOf('ipod')!=-1){ + var request = GetRequests(); + if(getCookie('device') == 3 || request.device == 3){ + if(getCookie('device') != 3){ + var today = new Date(); + var expires = new Date(today.getTime() + 24 * 60 * 60 * 1000); + setCookie('device',3,expires,'/'); + } + $('.topMenu').remove(); + $('#header').remove(); + $('.mainNav').remove(); + $('#footer').remove(); + $(".side-wrap").remove(); + //$("#side_app").remove(); + $(".p-btn").remove(); + + var fenlei = /(http:\/\/www\.t\.com)?\/fresh\/(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)\.html/g; + var pinpai = /\/pinpai\/(\d+)-(\d+)\.html/g; + var guanjianzi = /(http:\/\/www\.t\.com)?\/productlist\/search\?inputBox=(\d+)\&keyword=([0-9a-zA-Z%])?(#.+)?/g; + var xiangqing = /(http:\/\/www\.t\.com)?\/html\/products\/(\d+)\/(\d+)\.html(#.+)?/g; + + $("a").each(function(){ + //console.log($(this).attr('href')); + //替换分类 http://www.bbest.com/fresh/64-0-0-0-0-2-0-0-0-0-0.html + $(this).attr('href', $(this).attr('href').replace(fenlei,"sfbesttoresource://resourceType=3&resourceCommonID=$2")); + //替换品牌 /pinpai/322-2491.html + $(this).attr('href', $(this).attr('href').replace(pinpai,"sfbesttoresource://resourceType=4&resourceCommonID=$2")); + //替换关键字 /productlist/search?inputBox=0&keyword=%E9%98%BF%E5%85%8B%E8%8B%8F%E8%8B%B9%E6%9E%9C http://www.bbest.com/productlist/search?inputBox=1&keyword=%E9%98%BF%E5%85%8B%E8%8B%8F%E8%8B%B9%E6%9E%9C#trackref=sfbest_Uhead_Uhead_head_Keywords1 + $(this).attr('href', $(this).attr('href').replace(guanjianzi,"sfbesttoresource://resourceType=2&resourceCommonID=$3")); + //替换详情页 http://www.bbest.com/html/products/57/1800056021.html#trackref=sfbest_channel_fresh_floor1_item6 /html/products/9/1800008834.html + $(this).attr('href', $(this).attr('href').replace(xiangqing,"sfbest://$3.html")); + }) + + + } + //} +}); diff --git a/e3-order-web/src/main/resources/static/js/e3mall.js b/e3-order-web/src/main/resources/static/js/e3mall.js new file mode 100644 index 0000000..adef768 --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/e3mall.js @@ -0,0 +1,25 @@ +var E3MALL = { + checkLogin : function(){ + var _ticket = $.cookie("E3_TOKEN"); + if(!_ticket){ + return ; + } + $.ajax({ + url : "http://localhost:8085/user/token/" + _ticket, + dataType : "jsonp", + type : "GET", + success : function(data){ + if(data.status == 200){ + var username = data.data.username; + var html = username + ",欢迎来到宜立方购物网![退出]"; + $("#loginbar").html(html); + } + } + }); + } +} + +$(function(){ + // 查看是否已经登录,如果已经登录查询登录信息 + E3MALL.checkLogin(); +}); \ No newline at end of file diff --git a/e3-order-web/src/main/resources/static/js/jquery-1.5.1.min.js b/e3-order-web/src/main/resources/static/js/jquery-1.5.1.min.js new file mode 100644 index 0000000..6437874 --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/jquery-1.5.1.min.js @@ -0,0 +1,16 @@ +/*! + * jQuery JavaScript Library v1.5.1 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Wed Feb 23 13:55:29 2011 -0500 + */ +(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="
        a";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
        ",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
        t
        ";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

        ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="
        ";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/",""],legend:[1,"
        ","
        "],thead:[1,"","
        "],tr:[2,"","
        "],td:[3,"","
        "],col:[2,"","
        "],area:[1,"",""],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div
        ","
        "]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^&]*/,bD=/(^|\-)([a-z])/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("
        ").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e.crossDomain||(q=bF.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b
        ";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window); \ No newline at end of file diff --git a/e3-order-web/src/main/resources/static/js/jquery.alerts.js b/e3-order-web/src/main/resources/static/js/jquery.alerts.js new file mode 100644 index 0000000..8f8a57d --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/jquery.alerts.js @@ -0,0 +1,441 @@ +// jQuery Alert Dialogs Plugin +// +// Version 1.1 +// +// Cory S.N. LaViska +// A Beautiful Site (http://abeautifulsite.net/) +// 14 May 2009 +// +// Visit http://abeautifulsite.net/notebook/87 for more information +// +// Usage: +// jAlert( message, [title, callback] ) +// jConfirm( message, [title, callback] ) +// jPrompt( message, [value, title, callback] ) +// +// History: +// +// 1.00 - Released (29 December 2008) +// +// 1.01 - Fixed bug where unbinding would destroy all resize events +// +// License: +// +// This plugin is dual-licensed under the GNU General Public License and the MIT License and +// is copyright 2008 A Beautiful Site, LLC. +// +(function($) { + /* + * 遮罩层 + */ + var Shade=new function() + { + var handle={}; + var shade; + handle.show=function(func) + { + if(!shade) + { + shade=document.createElement('div'); + shade.style.display = 'none'; + shade.style.zIndex = 99997; + shade.style.filter = 'alpha(opacity = 20)'; + shade.style.left = 0; + shade.style.width = '100%'; + shade.style.position = 'absolute'; + shade.style.top = 0; + shade.style.backgroundColor = '#989898'; + shade.style.opacity = .2; + document.body.appendChild(shade); + } + with((document.compatMode=='CSS1Compat')?document.documentElement:document.body) + { + var ch=clientHeight,sh=scrollHeight; + shade.style.height=(sh>ch?sh:ch)+'px'; + + var cw = clientWidth,sw = scrollWidth, ow=offsetWidth; + var width = cw > sw ? cw : sw; + width = width > ow ? width : ow; + + shade.style.width=width+'px'; + shade.style.display='block'; + } + + if(func){ + func(); + } + }; + handle.hide=function(func){ + shade.style.display='none'; + if(func){ + func(); + } + }; + + return handle; + } + + $.alerts = { + + // These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time + + verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels + horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/ + repositionOnResize: true, // re-centers the dialog on window resize + overlayOpacity: .01, // transparency level of overlay + overlayColor: '#89652b', // base color of overlay + draggable: true, // make the dialogs draggable (requires UI Draggables plugin) + okButton: ' 确定 ', // text for the OK button + cancelButton: ' 取消 ', // text for the Cancel button + dialogClass: null, // if specified, this class will be applied to all dialogs + + // Public methods + + alert: function(message, title, callback) { + if( title == null ) title = '提示信息'; + $.alerts._show(title, message, null, 'alert', function(result) { + if( callback ) callback(result); + }); + }, + + confirm: function(message, title, callback) { + if( title == null ) title = '确认信息'; + $.alerts._show(title, message, null, 'confirm', function(result) { + if( callback ) callback(result); + }); + }, + + prompt: function(message, value, title, callback) { + if( title == null ) title = '输入信息'; + $.alerts._show(title, message, value, 'prompt', function(result) { + if( callback ) callback(result); + }); + }, + + // Private methods + + _show: function(title, msg, value, type, callback) { + Shade.show(); + $.alerts._hide(); + $.alerts._overlay('show'); + + $("BODY").append( + ''); + + if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass); + + // IE6 Fix + var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed'; + + $("#popup_container").css({ + position: pos, + zIndex: 100000, + padding: 0, + margin: 0 + }); + + if ($.browser.msie && $.browser.version < 7) { + $ie6Fix = $('').css({ + position: "absolute", + zIndex: 99999 + }).insertBefore("#popup_container") + } + + $("#popup_title").text(title); + $("#popup_content").addClass(type); + $("#popup_message").text(msg); + $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '
        ') ); + + $("#popup_container").css({ + minWidth: $("#popup_container").outerWidth(), + maxWidth: $("#popup_container").outerWidth() + }); + + $.alerts._reposition(); + $.alerts._maintainPosition(true); + + switch( type ) { + case 'alert': + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + callback(true); + }); + $("#popup_ok").focus().keypress( function(e) { + if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click'); + }); + break; + case 'confirm': + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(false); + }); + $("#popup_ok").focus(); + $("#popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + break; + case 'prompt': + $("#popup_message").append('
        ').after(''); + $("#popup_prompt").width( $("#popup_message").width() ); + $("#popup_ok").click( function() { + var val = $("#popup_prompt").val(); + $.alerts._hide(); + Shade.hide(); + if( callback ) callback( val ); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback( null ); + }); + $("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + if( value ) $("#popup_prompt").val(value); + $("#popup_prompt").focus().select(); + break; + } + + // Make draggable + if( $.alerts.draggable ) { + try { + $("#popup_container").draggable({ handle: $("#popup_title") }); + $("#popup_title").css({ cursor: 'move' }); + } catch(e) { /* requires jQuery UI draggables */ } + } + }, + + + _showNew: function(showX, showP, width_m, title, msg, value, type, callback) { + Shade.show(); + $.alerts._hide(); + $.alerts._overlay('show'); + + if(showX==1){ + titlehead = '
        '; + }else{ + titlehead = '
        '; + } + + if(width_m == null){ + width_m = $("#popup_container").outerWidth(); + } + + if(showP==1){ + sd_img = '
        '; + }else{ + sd_img = ''; + } + + $("BODY").append( + ''); + + if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass); + + // IE6 Fix + var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed'; + + $("#popup_container").css({ + position: pos, + zIndex: 100000, + margin: 0 + }); + + if ($.browser.msie && $.browser.version < 7) { + $ie6Fix = $('').css({ + position: "absolute", + zIndex: 99999 + }).insertBefore("#popup_container") + } + + $("#popup_title").text(title); + $("#popup_content").addClass(type); + /*if(msg!=null){ + $("#popup_message").text(msg); + }*/ + $("#popup_message").text(msg); + $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '
        ') ); + + $("#popup_container").css({ + minWidth: width_m, + maxWidth: width_m + }); + + $.alerts._reposition(); + $.alerts._maintainPosition(true); + + switch( type ) { + case 'alert': + $("#titlehead_x").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_ok").focus().keypress( function(e) { + if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click'); + }); + break; + case 'confirm': + $("#titlehead_x").click( function() { + $.alerts._hide(); + Shade.hide(); + top.location.reload(); + }); + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + top.location.reload(); + }); + $("#popup_ok").focus(); + $("#popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + break; + } + + // Make draggable + if( $.alerts.draggable ) { + try { + $("#popup_container").draggable({ handle: $("#popup_title") }); + $("#popup_title").css({ cursor: 'move' }); + } catch(e) { /* requires jQuery UI draggables */ } + } + }, + + _hide: function() { + if ($.browser.msie && $.browser.version < 7) { + $("#shadow").remove(); + } + $("#popup_container").remove(); + $.alerts._overlay('hide'); + $.alerts._maintainPosition(false); + }, + + _overlay: function(status) { + switch( status ) { + case 'show': + $.alerts._overlay('hide'); + $("BODY").append(''); + $("#popup_overlay").css({ + position: 'absolute', + zIndex: 99998, + top: '0px', + left: '0px', + width: '100%', + height: $(document).height(), + background: $.alerts.overlayColor, + opacity: $.alerts.overlayOpacity + }); + break; + case 'hide': + $("#popup_overlay").remove(); + break; + } + }, + + _reposition: function() { + var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset; + var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset; + var height = $("#popup_container").outerHeight(true); + var width = $("#popup_container").outerWidth(true); + if( top < 0 ) top = 0; + if( left < 0 ) left = 0; + + // IE6 fix + if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop(); + + $("#popup_container").css({ + top: top + 'px', + left: left + 'px' + }); + $("#popup_overlay").height( $(document).height() ); + $("#shadow").css({ + top: top + 'px', + left: left + 'px', + height: height + 34 + 'px', + width: width + 'px' + }); + }, + + _maintainPosition: function(status) { + if( $.alerts.repositionOnResize ) { + switch(status) { + case true: + $(window).bind('resize', $.alerts._reposition); + break; + case false: + $(window).unbind('resize', $.alerts._reposition); + break; + } + } + } + + } + + // Shortuct functions + jAlert = function(message, title, callback) { + $.alerts.alert(message, title, callback); + } + + jConfirm = function(message, title, callback) { + $.alerts.confirm(message, title, callback); + }; + + jPrompt = function(message, value, title, callback) { + $.alerts.prompt(message, value, title, callback); + }; + + jAlertNew = function(showX, showP, width, message, title, callback) { + if( title == null ) title = '提示信息'; + $.alerts._showNew(showX, showP, width, title, message, null, 'alert', function(result) { + if( callback ) callback(result); + }); + } + + jConfirmNew = function(showX, showP, width, message, title, callback) { + if( title == null ) title = '提示信息'; + $.alerts._showNew(showX, showP, width, title, message, null, 'confirm', function(result) { + if( callback ) callback(result); + }); + }; + +})(jQuery); \ No newline at end of file diff --git a/e3-order-web/src/main/resources/static/js/jquery.cookie.js b/e3-order-web/src/main/resources/static/js/jquery.cookie.js new file mode 100644 index 0000000..c7f3a59 --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/jquery.cookie.js @@ -0,0 +1,117 @@ +/*! + * jQuery Cookie Plugin v1.4.1 + * https://github.com/carhartl/jquery-cookie + * + * Copyright 2013 Klaus Hartl + * Released under the MIT license + */ +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD + define(['jquery'], factory); + } else if (typeof exports === 'object') { + // CommonJS + factory(require('jquery')); + } else { + // Browser globals + factory(jQuery); + } +}(function ($) { + + var pluses = /\+/g; + + function encode(s) { + return config.raw ? s : encodeURIComponent(s); + } + + function decode(s) { + return config.raw ? s : decodeURIComponent(s); + } + + function stringifyCookieValue(value) { + return encode(config.json ? JSON.stringify(value) : String(value)); + } + + function parseCookieValue(s) { + if (s.indexOf('"') === 0) { + // This is a quoted cookie as according to RFC2068, unescape... + s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); + } + + try { + // Replace server-side written pluses with spaces. + // If we can't decode the cookie, ignore it, it's unusable. + // If we can't parse the cookie, ignore it, it's unusable. + s = decodeURIComponent(s.replace(pluses, ' ')); + return config.json ? JSON.parse(s) : s; + } catch(e) {} + } + + function read(s, converter) { + var value = config.raw ? s : parseCookieValue(s); + return $.isFunction(converter) ? converter(value) : value; + } + + var config = $.cookie = function (key, value, options) { + + // Write + + if (value !== undefined && !$.isFunction(value)) { + options = $.extend({}, config.defaults, options); + + if (typeof options.expires === 'number') { + var days = options.expires, t = options.expires = new Date(); + t.setTime(+t + days * 864e+5); + } + + return (document.cookie = [ + encode(key), '=', stringifyCookieValue(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '' + ].join('')); + } + + // Read + + var result = key ? undefined : {}; + + // To prevent the for loop in the first place assign an empty array + // in case there are no cookies at all. Also prevents odd result when + // calling $.cookie(). + var cookies = document.cookie ? document.cookie.split('; ') : []; + + for (var i = 0, l = cookies.length; i < l; i++) { + var parts = cookies[i].split('='); + var name = decode(parts.shift()); + var cookie = parts.join('='); + + if (key && key === name) { + // If second argument (value) is a function it's a converter... + result = read(cookie, value); + break; + } + + // Prevent storing a cookie that we couldn't decode. + if (!key && (cookie = read(cookie)) !== undefined) { + result[name] = cookie; + } + } + + return result; + }; + + config.defaults = {}; + + $.removeCookie = function (key, options) { + if ($.cookie(key) === undefined) { + return false; + } + + // Must not alter options, thus extending a fresh object... + $.cookie(key, '', $.extend({}, options, { expires: -1 })); + return !$.cookie(key); + }; + +})); diff --git a/e3-order-web/src/main/resources/static/js/jquery.region.js b/e3-order-web/src/main/resources/static/js/jquery.region.js new file mode 100644 index 0000000..46112f4 --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/jquery.region.js @@ -0,0 +1,94 @@ +/* + * 地区联动菜单 + * + * @author: zhangliping + * + * 使用方法: + * $.region({param:value}); + * 参数说明: + * province: 初始化省,默认空 + * city: 初始化市,默认空 + * county: 初始化区县,默认空 + * returnProvince: 需要返回的省的表单名称,默认是province + * returnCity: 需要返回的市的表单名称,默认是city + * returnCounty: 需要返回的区县的表单名称,默认是conunty + * container: 要插入的容器ID,默认是region + * serverUrl: 服务器端的URL地址,默认是 /region/getRegion + */ +(function($){ + var region = { + version: '1.0.0', + defaults : { + 'province' : '', + 'city' : '', + 'county' : '', + 'returnProvince' : 'province', + 'returnCity' : 'city', + 'returnCounty' : 'county', + 'container' : 'region', + 'serverUrl' : '/region/dynamicRegion', + 'beforeClose' : null + }, + settings : {} + }; + + $.extend({ + region: function(options){ + + region.settings = $.extend({},region.defaults,options); + + var html = ''+ + ''+ + ''; + $('#'+region.settings.container).html(html); + + $('#region_province').change(function(){ + $.post( + region.settings.serverUrl, + {parent_id:$(this).val()}, + function(data){ + jQuery('#region_city').html(''); + jQuery('#region_city').append(''); + jQuery('#region_city').append(data); + + if(region.settings.city != ''){ + $('#region_city').val(region.settings.city); + $('#region_city').change(); + } + } + ); + }); + $('#region_city').change(function(){ + $.post( + region.settings.serverUrl, + {parent_id:$(this).val()}, + function(data){ + jQuery('#region_county').html(''); + jQuery('#region_county').append(''); + jQuery('#region_county').append(data); + + if(region.settings.county != ''){ + $('#region_county').val(region.settings.county); + } + } + ); + }); + + //获取省 + $.post( + region.settings.serverUrl, + {parent_id:1}, + function(data){ + jQuery('#region_province').html(''); + jQuery('#region_province').append(''); + jQuery('#region_province').append(data); + + if(region.settings.province != ''){ + $('#region_province').val(region.settings.province); + $('#region_province').change(); + } + } + ); + } + }); +})(jQuery); \ No newline at end of file diff --git a/e3-order-web/src/main/resources/static/js/order.js b/e3-order-web/src/main/resources/static/js/order.js new file mode 100644 index 0000000..ccd0589 --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/order.js @@ -0,0 +1,3201 @@ +var hostUrl = document.location.host; +var urlArr = hostUrl.split('.'); +var domain = urlArr[1]+'.'+urlArr[2]; +var SF_STATIC_BASE_URL='http://i.'+domain+'/com'; +var SF_STATIC_HTML_URL='http://i.'+domain+'/html'; +var SF_PASSPORT_URL = 'http://passport.'+domain; +var SF_HOME_URL = 'http://home.'+domain; +var SF_WWW_URL = 'http://www.'+domain; +var SF_COUPON_ERR_NUM = 0; //优惠券输入错误次数,超过三次显示验证码 +$(function(){ + + setCurr(); + hoverCurr('addresslist'); + hoverCurr('giveraddresslist'); + hoverCurr('inv_List'); + + if ($(".orderAddrList .addrItem").length > 5){ + var t = $(".orderAddrList .addrItem:gt(4)"); + t.addClass("hide"); + $("#addresslist").find(".addrShow").html('更多').removeClass("hide"); + 0 !==$(".pages").length && $(".pages").hide(); + show_hide(t,$("#addresslist")); + + } + $(".orderForm .text").focus(function(){ + var txt_value = $(this).val(),keywordVal = $(this).attr("def"); + if(txt_value==keywordVal){ + $(this).val(""); + $(this).removeClass("inputTips"); + } + }); + + $(".orderForm .text").each(function(){ + var txt_value = $(this).val(),keywordVal = $(this).attr("def"); + if(txt_value==''){ + $(this).val(keywordVal); + $(this).addClass("inputTips"); + } + }); + + $(".orderForm .text").blur(function(){ + var txt_value = $(this).val(),keywordVal = $(this).attr("def"); + if(txt_value==""){ + $(this).val(keywordVal); + $(this).addClass("inputTips"); + //$(this).parent().parent().find(".fmError").removeClass("hide"); + }else{ + $(this).parent().parent().find(".fmError").addClass("hide"); + } + }) + + $("#addrForm select").live("click",function(){ + $(this).removeClass("inputTips"); + }); + + $("#addrGiverForm select").live("click",function(){ + $(this).removeClass("inputTips"); + }); + + //确认收货地址 + $("#addrConfirm").click(function(){ + if($(this).hasClass('yhmStop')) return false; + var flag = true; + var edit_addr_id = $("#edit_addr_id").val(); + var addr_id = $("#addr_id").val(); + var isReload = false; + if(edit_addr_id || addr_id==''){ + var flag = saveAddr(); + isReload = true; + if(!flag){ + return flag; + } + } + if(addr_id){ + if(!check_address()){ + return false; + } + //去服务端验证地址 + var web_url = '/ajax/confirmAddr/'; + var time = (new Date()).valueOf(); + $.ajax({ + type: "POST", + url: web_url+'?'+time, + data: 'GusersAddr[addr_id]='+addr_id+'&GusersAddr[receiver_name]='+$('#consignee').val()+'&GusersAddr[province]='+$('#region_province').find('option:selected').val()+'&GusersAddr[city]='+$('#region_city').find('option:selected').val()+'&GusersAddr[district]='+$('#region_county').find('option:selected').val()+'&GusersAddr[area]='+$('#region_area').find('option:selected').val()+'&GusersAddr[addr]='+$("#address").val()+'&GusersAddr[mobile]='+$('#mobile').val()+'&GusersAddr[tel]='+$('#tel').val(), + dataType:"text", + async: false, + success: function(msg){ + var msg = eval('('+msg+')'); + if(msg.status != 0) { + flag = false; + return flag; + } else if (msg.address != null) { + var divOrderCurr = $('#userAddress'); + var divAddressList = $('#addresslist'); + var divUserAddrId = $('#userAddrId'); + var divPayDataId = $('#payDataId'); + var liAddr = divOrderCurr.find('li'); + var mobile = ''; + if (msg.address.mobile != 'undefined ') { mobile = msg.address.mobile; } + if (mobile == '' && msg.address.tel) { mobile = msg.address.tel; } + var addrStr = msg.address.receiver_name+'    '+mobile+"    "+msg.address.city_name+"  "+msg.address.district_name+"  "+msg.address.area_name+" "+msg.address.addr; + liAddr.html(addrStr); + divOrderCurr.show(); + divAddressList.hide(); + divUserAddrId.removeClass('stepCurr'); + divUserAddrId.find('.addrAlter').show(); + divPayDataId.addClass('stepCurr'); + divPayDataId.find('h3.orderTitle').html('支付及配送方式:[修改]由于您更改了收货地址,请重新确认配送方式'); + divPayDataId.find('div.orderCurr').hide(); + divPayDataId.find('div.orderShow').show(); + divPayDataId.find('div.orderItem').show(); + hideShowEditHref(); + } else { + isReload = true; + } + }, + error: function(msg){ + jAlert('网络异常,收货地址保存失败.'); + location.reload(); + } + }); + if(!flag){ + return flag; + } + } + if (isReload) {location.reload();} + }); + giverCard(); + hideShowEditHref(); +}); +function giverCard(){ + var inputExp = "例:\n尊敬的王先生:\n我在这里祝您工作作顺利,身体健康!\n您的朋友:李响"; + var inputArea = $(".inputArea"); + inputArea.val(inputExp); + inputArea.addClass("inputTips"); + inputArea.live("focus", function () { + if (inputArea.val() == inputExp) { + inputArea.removeClass("inputTips"); + inputArea.val(""); + } + }); + inputArea.live("blur", function () { + if (inputArea.val() == "") { + inputArea.val(inputExp); + inputArea.addClass("inputTips"); + } + }); + $(".giverShow").live("mouseenter",function(){$(".giverItem").html(inputArea.val().replace(/\n/gi,"
        ")).show();}).live("mouseleave",function(){$(".giverItem").hide();}) +} +function hoverCurr(t){ + $("#"+t+" .addrs").each(function(){ + var This = $(this); + This.hover(function(){ + if(!This.find(".i").attr("checked")){ + timeout = setTimeout(function() { + This.addClass("curr"); + }, 150); + } + },function(){ + if(!This.find(".i").attr("checked")){ + clearTimeout(timeout); + This.removeClass("curr"); + } + }); + }); +} + +function setCurr(){ + $(".orderAddr .addrs").each(function(){ + var This = $(this); + This.find(".i").each(function() { + var That = $(this); + $(this).bind("change", function() { + That.attr("checked", ''); + $(".orderAddr .addrs").removeClass("curr"); + $(this).attr("checked", "checked"); + This.addClass("curr"); + }); + }); + }); + $("#giveraddresslist .addrs").each(function(){ + var This = $(this); + This.find(".i").each(function() { + var That = $(this); + $(this).bind("change", function() { + That.attr("checked", ''); + $("#giveraddresslist .addrs").removeClass("curr"); + $(this).attr("checked", "checked"); + This.addClass("curr"); + }); + }); + }); + $("#inv_List .addrs").each(function(){ + var This = $(this); + This.find(".i").each(function() { + var That = $(this); + $(this).bind("change", function() { + That.attr("checked", ''); + $("#inv_List .addrs").removeClass("curr"); + $(this).attr("checked", "checked"); + This.addClass("curr"); + }); + }); + }); + +} + +function show_hide(t,This){ + This.find(".addrShow").click(function() { + if(t.is(":hidden")){ + t.removeClass("hide"); + $(this).html('收起'); + 0 !==$(".pages").length && $(".pages").show(); + }else{ + t.addClass("hide"); + $(this).html('更多'); + 0 !==$(".pages").length && $(".pages").hide(); + } + }) +} + +function check_address(){ + //testzip = /^[0-9]{6,6}$/.test($('#zipcode').val()); + testmobile = /^1\d{10}$/.test($.trim($('#mobile').val())); + testtel = /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/ .test($.trim($("#tel").val())); + //testemail = /^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/.test($.trim($("#email").val())); + + var consignee = $.trim($("#consignee").val()); + var city_id = $("#region_city").val(); + var area_id = $("#region_county").val(); + var town_id = '0'; + if($("#region_area").length > 0 && $('#area').css('display') != 'none'){ + var town_id = $("#region_area").val(); + } + var addr = $.trim($("#address").val()); + var mobile = $.trim($("#mobile").val()); + var tel = $.trim($("#tel").val()); + if(!mobile && tel){ + mobile = tel; + } + + if(consignee=='' || consignee==$('#consignee').attr("def")){ + $('#consignee').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('收货人姓名不能为空'); + return false; + }else if(city_id==0){ + $('#region_province').parent().parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请选择收货人城市'); + return false; + }else if(area_id==0){ + $('#region_province').parent().parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请选择收货人区县'); + return false; + }else if($("#region_area").length > 0 && $('#area').css('display') != 'none' && town_id==0){ + $('#region_province').parent().parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请选择收人货街道/镇'); + return false; + }else if(addr.length<5 || addr.length>40 || !isNaN(addr) || addr==$('#address').attr("def")){ + $('#address').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写收货人详细地址,限5-40个字,不能全部为数字'); + return false; + }else if(mobile==''){ + $('#mobile').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写收货人联系电话'); + return false; + } + + if($.trim($('#mobile').val()) !=''){ + if(!testmobile || $.trim($('#mobile').val()) == $('#mobile').attr("def")){ + $('#mobile').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写正确的手机号'); + return false; + } + }else{ + if($.trim($('#tel').val()) !=''){ + if($.trim($('#tel').val()) == $('#tel').attr("def")){ + $('#mobile').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写正确的座机号!'); + return false; + } + } + } + if($.trim($('#tel').val()) !='' && $.trim($('#tel').val()) != $('#tel').attr("def")){ + if(!testtel){ + $('#mobile').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写正确的座机号'); + return false; + } + } + + if(addr.indexOf("&")>0 || addr.indexOf("#")>0){ + jAlert('详细收货人地址不能包含&#'); + return false; + } + return true; + +} + +//收货地址分页方法 +function arrComm(page){ + page += 1; + $.get("/ajax/addrdata/page/"+page,null,function(data){ + $('#addresslist .orderAddr').html(data); + var t = $(".orderAddr .addrs:gt(4):not(:last)"); + show_hide(t,$(".orderAddr")); + setCurr(); + hoverCurr('addresslist'); + },"html"); + + +} +//删除收货地址 +function delAddr(addr_id){ + jConfirm('您确定要删除该地址吗?', '消息确认', function(t) { + if(t){ + $.get("/ajax/delAddr/addr_id/"+addr_id,null,function(data){ + if(data==1){ + jAlert("删除成功"); + arrComm(0); + setCurr(); + hoverCurr('addresslist'); + + $("#addr_id").val(''); + if(!$("#edit_addr_id").val()){ + $("#addrForm input").each(function(){$(this).val($(this).attr("def"))}); + } + } + },"html"); + } + }); +} +//修改收货地址 +function editAddr(addr_id){ + $("input[name='useraddr']:[value="+addr_id+"]").change(); + $("#addrForm").show(); + $("#edit_addr_id").val(addr_id); + ///$("#addrForm input").each(function(){$(this).val($(this).attr("def"))}); + $("#addrForm input").removeClass("inputTips"); + $("#addrForm select").removeClass("inputTips"); +} + +//选择市 +$("#region_city").live('change',function(){ + if($(this).find("option:selected").val() == 0){ + $("#shi").html(''); + } else { + $("#shi").html($(this).find("option:selected").html()); + } +}); +//选择县 +$("#region_county").live('change',function(){ + if($(this).find("option:selected").val()==0){ + $("#xian").html(''); + } else { + $("#xian").html($(this).find("option:selected").html()); + } +}); +//选择区域 +$("#region_area").live('change',function(){ + if($(this).find("option:selected").val()==0){ + $("#areasp").html(''); + } else { + $("#areasp").html($(this).find("option:selected").html()); + } +}); + +//选择地址 +$("input[name=useraddr]").live('change',function(){ + $("input[name=useraddr2]").attr("checked",''); + var addr_id = $(this).val(); + $("#addrForm").hide(); + //$("#addr_id").val(addr_id); + $("#edit_addr_id").val(''); + + var web_url = "/order/changeArea"; + $('#addrConfirm').css({'background-color':'#CCC','color':'#EEE','cursor':''}).addClass('yhmStop').text('地址切换中........'); + $.post(web_url,{addr_id:addr_id},function(msg){ + var msg = eval('('+msg+')'); + if(msg.tel == '-' || msg.tel == '--'){ + msg.tel = ''; + } + if(msg.succes==1){ + $("#addr_id").val(msg.addr_id); + $("#consignee").val(msg.receiver_name); + $("#address").val(msg.addr); + $("#mobile").val(msg.mobile); + $("#tel").val(msg.tel); + //$("#email").val(msg.email); + $("#region_county").val(); + + $("#region_province option[value="+msg.province+"]").attr('selected',true); + $("#region_province").change(); + $("#region_city option[value="+msg.city+"]").attr('selected',true); + $("#region_city").change(); + $("#region_county option[value="+msg.district+"]").attr('selected',true); + $("#region_county").change(); + $("#region_area option[value="+msg.area+"]").attr('selected',true); + $("#region_area").change(); + $("#xian").html($("#region_county").find("option:selected").text()); + //$("#region_area").html(msg.option); + $("#areasp").html($("#region_area").find("option:selected").text()); + + $("#addresslist .orderAddrList").find(".addrTip").addClass("hide"); + $('#addrConfirm').css({'background-color':'#6e9b0c','color':'#FFF','cursor':'pointer'}).removeClass('yhmStop').text('保存收货人信息'); + if(msg.status==1){ + $("input[name='useraddr']:[value="+addr_id+"]").parent().next().removeClass("hide").find("a").html(msg.info); + }else if(msg.status==2){ + $("input[name='useraddr']:[value="+addr_id+"]").parent().next().removeClass("hide").html(""+msg.info+""); + } + + if(msg.unDeliverableProduct){ + + for(var i in msg.unDeliverableProduct){ + $("div[pid="+msg.unDeliverableProduct[i]+"]").html("无法送达"); + } + }else if(msg.outOfStockProduct){ + for(var i in msg.outOfStockProduct){ + $("div[pid="+msg.outOfStockProduct[i]+"]").html("缺货"); + } + }else if(msg.offTheShelfProduct){ + for(var i in msg.offTheShelfProduct){ + $("div[pid="+msg.offTheShelfProduct[i]+"]").html("售完"); + } + }else if(msg.preSalefProduct){ + for(var i in msg.preSalefProduct){ + $("div[pid="+msg.preSalefProduct[i]+"]").html("预售"); + } + } + + } else { + jAlert(msg.data); + } + }); +}); +function useNewAddr(){ + $("#addr_id").val(''); + $("#addrForm").show(); + $("input[name=useraddr]").attr("checked",''); + if(!$("#edit_addr_id").val()){ + $("#addrForm input").addClass("inputTips"); + //$("#addrForm select").addClass("inputTips"); + $("#addrForm input").each(function(){$(this).val($(this).attr("def"))}); + } + //$("#addrForm select").each(function(){$(this).val('')}); +} + +//选择收货地址后执行自动保存 +function autoSaveAddr() { + if ($("#addr_id").val()) { + $("#addrConfirm").click(); + } else { + setTimeout(function(){ + autoSaveAddr(); + }, 500); + } +} + +//保存收货地址 +function saveAddr(){ + clearTips(); + var addr_id = $("#addr_id").val(); + var flag = true; + if(!check_address()){ + return false; + } + var web_url = '/ajax/addAddr/'; + $.ajax({ + type: "POST", + url: web_url, + data: 'GusersAddr[addr_id]='+addr_id+'&GusersAddr[receiver_name]='+$('#consignee').val()+'&GusersAddr[province]='+$('#region_province').find('option:selected').val()+'&GusersAddr[city]='+$('#region_city').find('option:selected').val()+'&GusersAddr[district]='+$('#region_county').find('option:selected').val()+'&GusersAddr[area]='+$('#region_area').find('option:selected').val()+'&GusersAddr[addr]='+$("#address").val()+'&GusersAddr[mobile]='+$('#mobile').val()+'&GusersAddr[tel]='+$('#tel').val()+'&add_from=2', + dataType:"text", + async: false, + success: function(msg){ + var msg = eval('('+msg+')'); + if(msg.status == 0) { + //arrComm(0); + } else { + if (msg.addr_id) { + $("input[name='useraddr']:[value="+msg.addr_id+"]").change(); + autoSaveAddr(); + } else { + jAlert(msg.info); + } + flag = false; + return flag; + } + }, + error: function(msg){ + jAlert('网络异常,收货地址保存失败.'); + } + }); + return flag; +} + +$(function(){ + $(".bankers a").hover(function(){$(".showbanker").removeClass("hide")},function(){$(".showbanker").addClass("hide")}) + $(".spItem").each(function(){ + var goodsItem = $(this).find(".goodsItem").length; + if(goodsItem > 3){$(this).css({"height":"100px","overflow-x":"hidden","overflow-y":"auto"})} + }) +/*支付及配送方式*/ +$(".tSelect").click(function(){ + var $this = $(this), +$date = $(".datechange"), +left = $this.offset().left, +top = $this.offset().top; +$date.show(); +$date.css({top:top + 45 , left:left + 237}); +}) +if ($(".shipZt").find(".cList").length > 4){ + var tt = $(".shipZt").find(".cList:gt(3)"); + tt.addClass("hide"); + $(".showMore").html('
        展开查看更多
        ').removeClass("hide"); + $(".showMore").toggle(function() { + tt.removeClass("hide"); + $(this).html('
        收起
        '); + }, function() { + tt.addClass("hide"); + $(this).html('
        展开查看更多
        '); + }) +} +if($(".tOrder").length > 0){ + $(".tOrder").each(function(){ + var id = $(this).attr("na"); + $(this).hover(function(){ + var pleft = $(this).offset().left-25,ptop = $(this).offset().top + 20; + $("#"+id).css({"left":pleft,"top":ptop}).show(); + },function(){ + $("#"+id).hide(); + }); + }) + $(".shipProduct").each(function(){ + $(this).hover(function(){ + $(this).show(); + },function(){ + $(this).hide(); + }); + }) +} + +//选择支付方式 +$("input[name='payment']").change(function(){ + var pay_id = $(this).val(); + if(pay_id==1){ + setDisplay('payImg','pay_z'); + } else if(pay_id==2 || pay_id==5) { + //setDisplay('pay_z','payImg'); + } else { + $('#payImg').css({'display':'none'});//在线支付图片 + $('#pay_z').css({'display':'none'});//货到付款 + } +}); +//确认支付方式 +$("#payConfirm").click(function(){ + $("#giverAddrId").show(); + $(this).parent().parent().parent().prev().find(".addrAlter").show(); + $(this).parent().parent().parent().prev().find(".orderTip").hide(); + $(this).parent().parent().parent().parent().removeClass("stepCurr"); + var payment = $("input[name=payment]:checked").val(); + if(payment == 1){ + var str = '在线支付'; + }else if(payment == 2 || payment == 5){ + var str = '货到付款'; + $("#giverConfirm2").click(); + $("#giverAddrId").hide(); + }else if(payment == 3){ + var str = '银行转账'; + }else if(payment == 4){ + var str = '支票支付'; + } + $(this).parent().parent().hide(); + $(this).parent().parent().parent().find(".orderCurr").show(); + //setCookie('payid',payment,'',"/order/"); + $("#payshow").html(str); + + var pay_id = $("input[name='payment']:checked").val(); + $("#pay_id").val(pay_id); + + if($("#ylorder1").css("display")=='block'){ + $("#ylsorder1").removeClass('hide'); + $("#ylsorder2").addClass('hide'); + }else{ + + $("#ylsorder2").removeClass('hide'); + $("#ylsorder1").addClass('hide'); + //$("#ylorder").html($("#ylorder2").html()); + } + + var together = $("input[name='together']:checked").val(); + var sendtime = $("input[name='sendtime']:checked").val(); + if($("input[name='sendtime']:checked").parent().text()){ + $(".shippingTime .cmshow").html($("input[name='sendtime']:checked").parent().text()); + }else{ + $(".shippingTime .cmshow").html($("input[name='sendtime']").parent().text()); + } + var customer_time = $("#shipping_time_"+$('#best_time1').val()).attr("shipping_time_attr"); + var web_url = '/ajax/confirmPay/'; + $.ajax({ + type: "POST", + url: web_url, + data: 'pay[payid]='+pay_id+'&pay[together]='+together+'&pay[best_date]='+$('#best_date1').val()+'&pay[best_time]='+$('#best_time1').val()+'&pay[customer_time]='+customer_time+'&pay[sendtime]='+sendtime, + dataType:"text", + async: false, + success: function(msg){ + /* + var msg = eval('('+msg+')'); + if(msg.error==1){ + $("#userInvoiceId").addClass("stepCurr").find(".orderItem").removeClass("hide"); + $("#userInvoiceId").find(".orderTitle").removeClass("cfmPrev"); + $("#userInvoiceId").find(".orderTip").html(''); + if($("input[name=invoice]").length>0){ + $("#shipping").addClass("hide"); + } + }*/ + }, + error: function(msg){ + jAlert('网络异常,支付方式保存失败.'); + } + }); + confirmCheck(); +}); +//发票显示条数 +if ($(".orderInv .addrItem").length > 4){ + var tInv = $(".orderInv .addrItem:gt(2):not(:last)"); + tInv.addClass("hide"); + $(".orderInv").find(".addrShow").html('更多').removeClass("hide"); + show_hide(tInv,$(".orderInv")); + +} +//寄货人显示条数 +if ($(".giverAddr .addrItem").length > 5){ + var tGiver = $(".giverAddr .addrItem:gt(4)"); + tGiver.addClass("hide"); + $(".giverorderAddr").find(".addrShow").html('更多').removeClass("hide"); + show_hide(tGiver,$(".giverorderAddr")); + +} + +//是否需要发票 +$("input[name='fapiao']").change(function(){ + var pay_id = $(this).val(); + if(pay_id==1){ + //setCookie('fapiao',1); + $('#shipping').removeClass('hide'); + } else { + $('#shipping').addClass('hide'); + $('.invMsg').css({'display':'none'}); + //setCookie('fapiao',2); + } +}); + +$("#shipping").css({ + // 'display': 'none' +}); +$("#invMsg").css({ + // 'display': 'none' +}); +$("#Invoice_inv_type_0").hide(); +$("#Invoice_inv_type_0").next().hide(); + +//选择发票类型 +$("input[name='Invoice[inv_type]']").change(function() { + //使用新发票 + //$("input[name=invoice]").attr("checked",''); + //$("input[name=invoice2]").change().click(); + //选择增值税发票 + if ($(this).val() == 2) { + $("#inv").css({ + 'display': 'block' + }); + $("#inv_button").css({ + "display": "block" + }); + $("#invMsg").css({ + 'display': 'block' + }); + setDisplay('inv_type_two', 'inv_type_one') + } + //普通 + else if ($(this).val() == 1) { + $("#inv").css({ + 'display': 'block' + }); + $("#inv_button").css({ + "display": "block" + }); + $("#invMsg").css({ + 'display': 'block' + }); + setDisplay('inv_type_one', 'inv_type_two') + } else { + $("#inv").css({ + 'display': 'none' + }); + $("#inv_type_one").css({ + 'display': 'none' + }); + $("#inv_type_two").css({ + 'display': 'none' + }); + $("#invMsg").css({ + 'display': 'none' + }); + } +}); + +//发票选择个人 公司 +$("input[name='Invoice[inv_title]']").change(function() { + //公司 + if ($(this).val() == 1) { + $("#company").css({ + 'display': 'block' + }); + $("#invmemory").css({ + 'display': 'block' + }); + } else { + $("#company").css({ + 'display': 'none' + }); + $("#invmemory").css({ + 'display': 'none' + }); + } +}); + +//地址修改 支付方式修改 +$(".addrAlter").live("click",function(){ + if($(".orderCurr:hidden").length>0 && $(".orderCurr:hidden").parent().parent().css("display")!='none'){ + jAlert("请先保存其它未保存的模块"); + return false; + } + if($(this).parent().parent().attr("id")=='giverAddrId'){ + if($("#chaidanorder1").css("display")=='block'){ + var T = $("#chaidanorder1"); + }else{ + var T = $("#chaidanorder2"); + } + + var order = T.find("input[name='ecards']:[value='1']").parent().parent().prev().find("input[name='order_numbers']"); + var order_str = ''; + var i=0; + order.each(function () { + i++; + if(i>3){ + return; + } + order_str += $(this).val() + " "; + }); + //jAlert(order_str); + $("#ordernumbers").html($.trim(order_str)+'的包裹将携带电子贺卡信息,扫描包裹二维码即可看到'); + } + $(this).hide(); + $(this).parent().parent().find(".orderCurr").hide(); + $(this).parent().parent().find(".orderShow").show(); + $(this).parent().parent().addClass("stepCurr"); + confirmCheck(); +}); + +//选择常用单位名称 +$('a.invBtn').toggle(function(){ + $(this).next('.inv_memory').show(); +},function(){ + $(this).next('.inv_memory').hide(); +}); + +//选择常用发票 +$("input[name=invoice]").live('change',function(){ + $("#edit_invoice_id").val(''); + $("#shipping").addClass("hide"); + $("input[name=invoice2]").attr("checked",""); + var invoice_id=$(this).val(); + $.post('/order/getInvoice',{"id":invoice_id},function(msg){ + var msg = eval('('+msg+')'); + $("input[name='Invoice[inv_type]']:[value="+msg.invoice_type+"]").change(); + if(msg.invoice_type == 2){ + $("#Invoice_inv_type_2").click(); + $("#inv_type_two").find("input[name='Invoice[company]']").val(msg.company); + $("input[name='Invoice[taxpayer_sn]']").val(msg.taxpayer_sn); + $("input[name='Invoice[com_address]']").val(msg.com_address); + $("input[name='Invoice[com_phone]']").val(msg.com_phone); + $("input[name='Invoice[com_bank]']").val(msg.com_bank); + $("input[name='Invoice[bank_account]']").val(msg.bank_account); + }else{ + $("#Invoice_inv_type_1").click(); + if(msg.company){ + $("#inv_type_one").find("input[name='Invoice[company]']").val(msg.company); + $("#Invoice_inv_title_0").change(); + $("#Invoice_inv_title_0").click(); + //$("#inv_type_one").find("input[name='Invoice[company]']").show(); + }else{ + //$("#inv_type_one").find("input[name='Invoice[company]']").hide(); + $("#Invoice_inv_title_1").change(); + $("#Invoice_inv_title_1").click(); + } + $("input[name='Invoice[inv_content]']:[value="+msg.invoice_content+"]").change(); + $("input[name='Invoice[inv_content]']:[value="+msg.invoice_content+"]").click(); + + } + $("#shipping input[type='text']").each(function(){ + if($(this).val() == $(this).attr("def")){ + $(this).addClass("inputTips"); + } + }); + + }); +}); + + +//确认发票信息 +$("input[name='invoice_button']").click(function(){ + if($("input[name='invoice2']:checked").length==0){ + if($("input[name='invoice']:checked").length==0){ + jAlert("请选择发票信息"); + return false; + } + } + if(!checkInv()) return false; + + var p_inv_title = ""; + var p_inv_type = ""; + var p_inv_content = ""; + if($("#Invoice_inv_type_1").attr("checked")){ + p_inv_type += "普通发票"; + if($("#Invoice_inv_title_0").attr("checked")){ + var company = $.trim($("input[id='Invoice[company]']").val()); + if(company){ + p_inv_title += company; + }else{ + jAlert("请填写单位名称"); + //$('#invoice_need').css({'display':'block'}); + $('#shipping').css({'display':'block'}); + return false; + } + + }else{ + p_inv_title += "个人"; + } + var content_id = $("input[name='Invoice[inv_content]']:checked").attr("id"); + if(!content_id){ + jAlert("请选择发票内容"); + ///$('#invoice_need').css({'display':'block'}); + $('#shipping').css({'display':'block'}); + return false; + } + p_inv_content += $("label[for='"+content_id+"']").html(); + }else{ + p_inv_type += "增值税专用发票"; + + var company = $.trim($("#zz_company").val()); + + if(company){ + p_inv_title += company; + }else{ + jAlert("请填写单位名称"); + //$('#invoice_need').css({'display':'block'}); + $('#shipping').css({'display':'block'}); + return false; + } + p_inv_content += '明细'; + + } + + saveInvoice(); + + $('#p_inv_title').html(p_inv_title); + $('#p_inv_type').html(p_inv_type); + $('#p_inv_content').html(p_inv_content); +}); + +//暂不需要发票 +$("input[name='invoice_button2']").click(function(){ + $("input[name='invoice2']").attr("checked",''); + $("input[name='fapiao']:[value=2]").change().click(); + //if(!checkInv()) return false; + $("#invoice_edit").show(); + $("#invoice_edit").parent().parent().removeClass('stepCurr'); + $('#invoice_need').parent().css({'display':'none'}); + var p_inv_title = ""; + var p_inv_type = "暂不需要发票"; + var p_inv_content = ""; + $('.invMsg').css({'display':'block'}); + $('#p_inv_title').html(p_inv_title); + $('#p_inv_type').html(p_inv_type); + $('#p_inv_content').html(p_inv_content); + $.ajax({ + type: "POST", + url: '/ajax/noInvoice/', + data: '', + dataType:"text", + async: false, + success: function(msg){ + var msg = eval('('+msg+')'); + + $("#userInvoiceId").find(".orderTitle").removeClass("cfmPrev").html('发票信息:[修改]'); + /* + $("#giverAddrId").find(".orderItem").removeClass("hide"); + $("#giverAddrId").find(".orderTitle").removeClass("cfmPrev"); + $("#giverAddrId").find(".orderTip").html(''); + + if(msg.giver!=1 && msg.need!=2){ + $("#giverAddrId").addClass("stepCurr"); + }else{ + $("#giverAddrId .orderTitle").html('寄货信息:[修改]'); + }*/ + + confirmCheck(); + + }, + error: function(msg){ + } + }); +}); + + + +}); + +//修改常用发票 +function editInvoice(id){ + $("input[name='invoice']:[value="+id+"]").change(); + $("input[name='invoice']:[value="+id+"]").attr("checked","checked"); + $("#edit_invoice_id").val(id); + $("#shipping").removeClass("hide"); + $("#shipping input[type='text']").removeClass("inputTips"); +} + +function useNewInvoice(){ + //$("#edit_invoice_id").val(''); + //$("#addrForm").show(); + $("#shipping").removeClass("hide"); + $("input[name=invoice]").attr("checked",''); + if(!$("#edit_invoice_id").val()){ + $("#shipping input[type='text']").addClass("inputTips"); + $("#shipping input[type='text']").each(function(){$(this).val($(this).attr("def"))}); + } + //$("#addrForm select").each(function(){$(this).val('')}); +} +//按钮保存发票信息 +function saveInvoice(){ + var web_url = '/order/saveInvoice/'; + var flag = true; + if(!checkInv()) return false; + var id = $("input[name='invoice']:checked").val(); + var edit_invoice_id = $("#edit_invoice_id").val(); + if($("input[name='Invoice[inv_type]']:checked").val() == 1){ + var inv_type = $("input[name='Invoice[inv_type]']:checked").val(); + var inv_title = $("input[name='Invoice[inv_title]']:checked").val(); + var company = $.trim(inv_title==1 ? $("#company").find("input[name='Invoice[company]']").val() : ''); + var inv_content = $("input[name='Invoice[inv_content]']:checked").val(); + //if($("input[name='Invoice[inv_title]']:checked").val() == 1){ + + $.ajax({ + type: "POST", + url: web_url, + data: 'Invoice[id]='+id+'&Invoice[edit_invoice_id]='+edit_invoice_id+'&Invoice[inv_type]='+inv_type+'&Invoice[inv_title]='+inv_title+'&Invoice[company]='+company+'&Invoice[inv_content]='+inv_content, + dataType:"text", + async: false, + success: function(msg){ + var msg = eval('('+msg+')'); + if(msg.success==1){ + if(msg.data!='confirm'){ + $('#inv_List').html(msg.data); + if ($(".orderInv .addrItem").length > 4){ + var tInv = $(".orderInv .addrItem:gt(2):not(:last)"); + tInv.addClass("hide"); + $(".orderInv").find(".addrShow").html('更多').removeClass("hide"); + show_hide(tInv,$(".orderInv")); + + } + setCurr(); + hoverCurr('inv_List'); + }else{ + $("input[name='invoice']:[value="+msg.id+"]").change(); + $("input[name='invoice']:[value="+msg.id+"]").attr("checked","checked"); + } + + $("#userInvoiceId").find(".orderTitle").removeClass("cfmPrev").html('发票信息:[修改]'); + /* + $("#giverAddrId").find(".orderItem").removeClass("hide"); + $("#giverAddrId").find(".orderTitle").removeClass("cfmPrev"); + $("#giverAddrId").find(".orderTip").html(''); + if(msg.giver!=1 && msg.need!=2){ + $("#giverAddrId").addClass("stepCurr"); + }else{ + $("#giverAddrId .orderTitle").html('寄货信息:[修改]'); + } + */ + + $("#invoice_edit").show(); + $("#shipping").addClass('hide'); + $("#invoice_edit").parent().parent().removeClass('stepCurr'); + $('#invoice_need').parent().css({'display':'none'}); + $('.invMsg').css({'display':'block'}); + confirmCheck(); + }else{ + if(msg.data== 'nocompany'){ + jAlert('您输入的信息可能含有部分不当词汇,请修改后重新提交,如有疑问请联系客服'); + flag = false; + return false; + }else if(msg.data !=''){ + jAlert(msg.data); + //invoice_edit(); + flag=false; + }else{ + flag = false; + jAlert('发票填写的信息未保存成功,请稍后重试'); + } + } + }, + error: function(msg){ + flag = false; + jAlert('发票信息保存失败!!'); + } + + }); + + //} + + } else if($("input[name='Invoice[inv_type]']:checked").val() == 2){ + var inv_type = $("input[name='Invoice[inv_type]']:checked").val(); + var company = $.trim($("#inv_type_two").find("input[name='Invoice[company]']").val()); + var taxpayer_sn= $("input[name='Invoice[taxpayer_sn]']").val(); + var com_address= $("input[name='Invoice[com_address]']").val(); + var com_phone= $("input[name='Invoice[com_phone]']").val(); + var com_bank= $("input[name='Invoice[com_bank]']").val(); + var bank_account= $("input[name='Invoice[bank_account]']").val(); + var inv_content = $("input[name='mingxi']:checked").val(); + $("#company").find("input[name='Invoice[company]']").val(company); + testtel = /^\d{7,}$/.test(com_phone); + account = /^\d{12,}$/.test(bank_account); + + var inv_id=$("input[name='invoice2']:checked").val();//发票id + $.ajax({ + type: "POST", + url: web_url, + data: 'Invoice[id]='+id+'&Invoice[edit_invoice_id]='+edit_invoice_id+'&Invoice[inv_type]='+inv_type+'&Invoice[company]='+company+'&Invoice[inv_content]='+inv_content+'&Invoice[taxpayer_sn]='+taxpayer_sn+'&Invoice[com_address]='+com_address+'&Invoice[com_phone]='+com_phone+'&Invoice[com_bank]='+com_bank+'&Invoice[bank_account]='+bank_account, + dataType:"text", + async: false, + success: function(msg){ + var msg = eval('('+msg+')'); + if(msg.success==1){ + if(msg.data!='confirm'){ + $('#inv_List').html(msg.data); + if ($(".orderInv .addrItem").length > 4){ + var tInv = $(".orderInv .addrItem:gt(2):not(:last)"); + tInv.addClass("hide"); + $(".orderInv").find(".addrShow").html('更多').removeClass("hide"); + show_hide(tInv,$(".orderInv")); + + } + setCurr(); + hoverCurr('inv_List'); + }else{ + $("input[name='invoice']:[value="+msg.id+"]").change(); + $("input[name='invoice']:[value="+msg.id+"]").attr("checked","checked"); + } + + $("#userInvoiceId").find(".orderTitle").removeClass("cfmPrev").html('发票信息:[修改]'); + /* + $("#giverAddrId").find(".orderItem").removeClass("hide"); + $("#giverAddrId").find(".orderTitle").removeClass("cfmPrev"); + $("#giverAddrId").find(".orderTip").html(''); + + if(msg.giver!=1 && msg.need!=2){ + $("#giverAddrId").addClass("stepCurr"); + }else{ + $("#giverAddrId .orderTitle").html('寄货信息:[修改]'); + } + */ + + $("#invoice_edit").show(); + $("#shipping").addClass('hide'); + $("#invoice_edit").parent().parent().removeClass('stepCurr'); + $('#invoice_need').parent().css({'display':'none'}); + $('.invMsg').css({'display':'block'}); + confirmCheck(); + }else{ + if(msg.data== 'nocompany'){ + jAlert('您输入的信息可能含有部分不当词汇,请修改后重新提交,如有疑问请联系客服'); + flag = false; + return false; + }else if(msg.data !=''){ + jAlert(msg.data); + //invoice_edit(); + flag=false; + }else{ + flag = false; + jAlert('发票填写的信息未保存成功,请稍后重试'); + } + } + }, + error: function(msg){ + flag = false; + jAlert('发票信息保存失败!!'); + } + }); + }else{ + flag = false; + jAlert('请选择发票类型'); + } + return flag; + +} + +//修改发票信息 +function invoice_edit(){ + if($(".orderCurr:hidden").length>0 && $(".orderCurr:hidden").parent().parent().css("display")!='none'){ + //jAlert("请先保存其它未保存的模块"); + return; + } + //$("#invoice_edit").hide(); + $(".orderInv").removeClass('hide'); + var invoice_need = $("input[name='fapiao']:last").attr("checked"); + if(invoice_need){ + // $('.invMsg').css({'display':'none'}); + $("input[name='fapiao']:first").attr("checked","checked"); + + }else{ + /// $('.invMsg').css({'display':'block'}); + //$("input[name='fapiao']:last").attr("checked","true"); + } + //$('#invoice_need').css({'display':'block'}); + //$('#shipping').css({'display':'block'}); + $('#inv_List').css({'display':'block'}); + confirmCheck(); +} + +//删除发票地址 +function delInvoice(id,inv_type){ + jConfirm('您确定要删除该发票信息吗?', '消息确认', function(t) { + if (t){ + $.post('/order/delInvoice/', {"id":id,"inv_type":inv_type}, function(data){ + if(data!=0){ + $("input[name='invoice']:[value="+id+"]").parent().parent().remove(); + if(inv_type==1){ + $("#company").find("input[name='Invoice[company]']").val(''); + } + if($('#inv_List').find("input[name='invoice']").length<3){ + $('#inv_List').find(".addrShow").addClass('hide'); + } + if($('#inv_List').find("input[name='invoice']").length==0){ + $('#inv_List').html('
        '); + } + + }else{ + jAlert('删除失败', '提示消息',function(e){ + if(e){ + return; + } + }); + } + }); + }else{ + return false; + } + }); +} + + +//检查发票信息 +function checkInv(){ + clearTips(); + var flag = true; + //var invoiceCompany = new Array('北京宜立方电子商务有限公司', '宜立方电子商务', '宜立方电子商务有限公司', '宜立方商城', '北京宜立方电商有限公司'); + if($("input[name='Invoice[inv_type]']:checked").val() == 1){ + var inv_type = $("input[name='Invoice[inv_type]']:checked").val(); + var inv_title = $("input[name='Invoice[inv_title]']:checked").val(); + var company = inv_title==1 ? $.trim($("#company").find("input[name='Invoice[company]']").val()) : ''; + var inv_content = $("input[name='Invoice[inv_content]']:checked").val(); + if(!inv_content){ + jAlert('请选择发票内容'); + return false; + } + var inv_id=$("input[name='invoice']:checked").val();//发票id + if($("input[name='Invoice[inv_title]']:checked").val() == 1){ + if(company == '' || company==$("input[name='Invoice[company]']").attr('def')){ + //jAlert('请填写单位名称'); + $("#company .fmError").removeClass('hide'); + return false; + }else if(company.length>25){ + $("#company .fmError").removeClass('hide').html('单位名称最多为25个汉字'); + //jAlert('单位名称最多为25个汉字'); + return false; + }else{ + $("#inv_type_two").find("input[name='Invoice[company]']").val(company); + } + + } + + } else if($("input[name='Invoice[inv_type]']:checked").val() == 2){ + + var inv_type = $("input[name='Invoice[inv_type]']:checked").val(); + var company = $.trim($("#inv_type_two").find("input[name='Invoice[company]']").val()); + var taxpayer_sn= $.trim($("input[name='Invoice[taxpayer_sn]']").val()); + var com_address= $.trim($("input[name='Invoice[com_address]']").val()); + var com_phone= $.trim($("input[name='Invoice[com_phone]']").val()); + var com_bank= $.trim($("input[name='Invoice[com_bank]']").val()); + var bank_account= $.trim($("input[name='Invoice[bank_account]']").val()); + var inv_content = $("input[name='mingxi']:checked").val(); + $("#company").find("input[name='Invoice[company]']").val(company); + testtel = /^\d{7,}$/.test(com_phone); + account = /^\d{12,}$/.test(bank_account); + + var inv_id=$("input[name='invoice2']:checked").val();//发票id + + if(company == '' || company ==$("#zz_company").attr('def')){ + $('#zz_company').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写单位名称'); + return false; + }else if(company.length>25){ + $('#zz_company').parent().parent().find(".fmError").removeClass("hide").html('单位名称最多为25个汉字'); + //jAlert('单位名称最多为25个汉字'); + return false; + }else if(taxpayer_sn == ''){ + $("input[name='Invoice[taxpayer_sn]']").parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写纳税人识别号'); + return false; + }else if(com_address == ''){ + $("input[name='Invoice[com_address]']").parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写公司地址'); + return false; + }else if(!testtel){ + $("input[name='Invoice[com_phone]']").parent().parent().find(".fmError").removeClass("hide").html('请您填写正确的注册电话'); + //jAlert('请填写正确的联系电话'); + return false; + }else if(com_bank == ''){ + $("input[name='Invoice[com_bank]']").parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写开户银行'); + return false; + }else if(!account){ + $("input[name='Invoice[bank_account]']").parent().parent().find(".fmError").removeClass("hide").html('请您填写正确的银行卡号'); + //jAlert('请填写正确的银行卡号'); + return false; + } + + } + return flag; +} + +//检测发票 +function isInvoice(price){ + if(price == 0){ + if($("#Invoice_inv_type_1").attr('checked') == true || $("#Invoice_inv_type_2").attr('checked') == true) + { + jAlert('您使用优选卡或优惠券支付了全部金额,不能再为您开具发票,请知晓'); + $("input[name='invoice_button2']").click(); + } + } +} + +//选择配送日期与时间 +function dateclose(){ + $(".datechange").hide(); +} + +function besttime(){ + if ($(".datechange").is(":visible")) { + $(".datechange").hide(); + }else { + $(".datechange").show(); + } + return false; +} + +$(function(){ + $(".datetbl .available").click(function(){ + $(".datetbl .available").removeClass("cur"); + $(this).addClass("cur"); + //jAlert($(this).attr("date_id")); + var date = $(this).attr("date_id"); + var time = $(this).attr("time_id"); + $("#best_date1").val(date); + $("#best_time1").val(time); + var d = new Date(date * 1000); + //var commonTime = unixTimestamp.toDateString(); + //var d = new Date(commonTime); + var week = { + "0" : "\u65e5", + "1" : "\u4e00", + "2" : "\u4e8c", + "3" : "\u4e09", + "4" : "\u56db", + "5" : "\u4e94", + "6" : "\u516d" + }; + + var customer_time = $("#shipping_time_"+time).attr("shipping_time_attr"); + var str = ''; + if($("#chaidanorder2 div").length>0){ + str = ''; + } + //str +=""+(d.getMonth()+1)+"月"+d.getDate()+"日,星期"+week[d.getDay()]+","+customer_time+"送达"; + str +=""+(d.getMonth()+1)+"月"+d.getDate()+"日,星期"+week[d.getDay()]+","+customer_time; + //var str_show = "商品预计于"+d.getFullYear()+"年"+(d.getMonth()+1)+"月"+d.getDate()+"日,星期"+week[d.getDay()]+","+customer_time+"送达"; + var str_show = d.getFullYear()+"年"+(d.getMonth()+1)+"月"+d.getDate()+"日,星期"+week[d.getDay()]+","+customer_time; + var input_time_show = "预计"+d.getFullYear()+"年"+(d.getMonth()+1)+"月"+d.getDate()+"日,星期"+week[d.getDay()]+","+customer_time+"送达" + $(".tSelect").html(str); + $(".customer_time_show").html(str_show); + $(".input_time_show").val(input_time_show); + $(".tSelect").show(); + $(".datechange").hide(); + + }); + + //拆单控制 + $("#together1").click(function(){ + $("#chaidanorder2").hide(); + //$(".dateShow").hide(); + $("#chaidanorder1").show(); + $("#ylorder2").addClass('hide'); + $("#ylorder1").removeClass('hide'); + $("#zhigong1").removeClass('hide'); + $(".merchant1").removeClass('hide'); + $("#payDataId .orderCurr .zhigong").html($("#zhigong1").html()); + $("#zhigong2").addClass('hide'); + $(".merchant2").addClass('hide'); + $("#best_date1").val(''); + dateclose(); + $(".dateTbody").find(".available").removeClass("cur"); + }); + + $("#together2").click(function(){ + $("#ylorder1").addClass('hide'); + $("#ylorder2").removeClass('hide'); + $("#zhigong1").addClass('hide'); + $(".merchant1").addClass('hide'); + $("#zhigong2").removeClass('hide'); + $(".merchant2").removeClass('hide'); + $("#payDataId .orderCurr .zhigong").html($("#zhigong2").html()); + $("#chaidanorder1").hide(); + $("#chaidanorder2").show(); + $("#customer_time").html('选择配送日期与时间'); + $("#customer_time").show(); + //$(".dateShow").show(); + $(".dateSelect").show(); + }); + +}); +//寄货信息 +$(function(){ + //确认寄货地址 + $("#giverConfirm").click(function(){ + if($("input[name='nogiver']:checked").length==0){ + if($("input[name='giveraddr']:checked").length==0 && $("input[name='giveraddr2']:checked").length==0){ + jAlert("请选择寄件人信息或选择不需要寄件人信息"); + return false; + } + } + var flag = true; + var edit_addr_id = $("#edit_giver_addr_id").val(); + var addr_id = $("#giver_addr_id").val(); + var nogiver = $("input[name=nogiver]").attr('checked'); + if((edit_addr_id || addr_id=='') && nogiver===false){ + var flag = saveGiverAddr(); + if(!flag){ + return flag; + } + } + var is_list = $("input[name='is_list']:checked").val(); + if(addr_id || nogiver){ + if(!nogiver){ + if(!check_giver_address()){ + return false; + } + var no_giver = 0; + }else{ + var no_giver = 1; + } + //去服务端验证地址 + var web_url = '/ajax/confirmGiverAddr/'; + $.ajax({ + type: "POST", + url: web_url, + data: 'giverOrder[no_giver]='+no_giver+'&giverOrder[is_list]='+is_list+'&giverOrder[addr_id]='+addr_id+'&giverOrder[giver_name]='+$('#giver_consignee').val()+'&giverOrder[province]='+$('#giver_region_province').find('option:selected').val()+'&giverOrder[city]='+$('#giver_region_city').find('option:selected').val()+'&giverOrder[district]='+$('#giver_region_county').find('option:selected').val()+'&giverOrder[area]='+$('#giver_region_area').find('option:selected').val()+'&giverOrder[addr]='+$("#giver_address").val()+'&giverOrder[mobile]='+$('#giver_mobile').val(), + dataType:"text", + async: false, + success: function(msg){ + var msg = eval('('+msg+')'); + if(msg.status != 0) { + jAlert(msg.info); + flag = false; + return flag; + } + if(msg.no_giver==1){ + $("input[name='need_giver']").val(''); + var tips = "
      • 购物清单显示金额
      • "; + if(msg.is_list !=1){ + var tips = "
      • 购物清单不显示金额
      • "; + } + $("#giverAddrId .orderItem").find("ul").html(tips); + } + $("input[name='giveraddr2']").attr("checked",''); + $("#addrGiverForm").hide(); + }, + error: function(msg){ + jAlert('网络异常,寄货地址保存失败.'); + } + }); + if(!flag){ + return flag; + } + } + + var consignee = $.trim($("#giver_consignee").val()); + var city_id = $("#giver_region_city").val(); + var city = $("#giver_region_city").find("option[value="+city_id+"]").text(); + var area_id = $("#giver_region_county").val(); + var area = $("#giver_region_county").find("option[value="+area_id+"]").text(); + var town_id = '0'; + var town = ''; + if($("#giver_region_area").length > 0 && $('#giver_region_area').css('display') != 'none'){ + var town_id = $("#giver_region_area").val(); + var town = $("#giver_region_area").find("option[value="+town_id+"]").text(); + } + var addr = $.trim($("#giver_address").val()); + var mobile = $.trim($("#giver_mobile").val()); + var is_show = '不显示'; + if(is_list==1){ + is_show = '显示'; + } + + $(this).parent().parent().parent().parent().find(".addrAlter").show(); + $(this).parent().parent().parent().find(".orderCurr").show(); + $(this).parent().parent().parent().find(".orderShow").hide(); + if(!nogiver){ + var str = '
        • 寄件人信息:'+consignee+' '+mobile+' '+city+' '+area+' '+town+' '+addr+'
        • '; + str += '
        • 购物清单'+is_show+'金额
        '; + $(this).parent().parent().parent().find(".orderCurr").html(str); + $("input[name='need_giver']").val('1'); + } + + $(this).parent().parent().parent().parent().removeClass("stepCurr"); + var tip = $("#card_service").val(); + var tiphelp = '    
        '; + $(this).parent().parent().parent().parent().find(".orderTitle").removeClass("cfmPrev").html(tip+':'+tiphelp+' [修改]'); + $(".gTip").hover(function(){$(".gCont").show()},function(){$(".gCont").hide();}) + confirmCheck(); + + }); + + $("#giverConfirm2").click(function(){ + var web_url = '/ajax/confirm2GiverAddr/'; + $.ajax({ + type: "POST", + url: web_url, + data: '', + dataType:"text", + async: false, + success: function(msg){ + }, + error: function(msg){ + jAlert('网络异常,寄货地址保存失败.'); + } + }); + + $(this).parent().parent().parent().find(".addrAlter").show(); + $(this).parent().parent().parent().find(".orderCurr").show(); + $(this).parent().parent().parent().find(".orderShow").hide(); + var str = '
        • 暂不需要设置寄货信息
        '; + $(this).parent().parent().parent().find(".orderCurr").html(str); + $(this).parent().parent().parent().parent().removeClass("stepCurr"); + var tip = $("#card_service").val(); + var tiphelp = '    '; + $(this).parent().parent().parent().parent().find(".orderTitle").removeClass("cfmPrev").html(tip +':'+ tiphelp + ' [修改]'); + $(".gTip").hover(function(){$(".gCont").show()},function(){$(".gCont").hide();}) + $("input[name='is_list'][value='1']").change().click(); + $("input[name='need_giver']").val('2'); + confirmCheck(); + + }); + +}); + +function check_giver_address(){ + testmobile = /^1\d{10}$/.test($.trim($('#giver_mobile').val())); + var consignee = $.trim($("#giver_consignee").val()); + var city_id = $("#giver_region_city").val(); + var area_id = $("#giver_region_county").val(); + var town_id = '0'; + if($("#giver_region_area").length > 0 && $('#giver_region_area').css('display') != 'none'){ + var town_id = $("#giver_region_area").val(); + } + var addr = $.trim($("#giver_address").val()); + var mobile = $.trim($("#giver_mobile").val()); + + if(consignee=='' || consignee==$('#giver_consignee').attr("def")){ + $('#giver_consignee').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('收货人姓名不能为空'); + return false; + }else if(city_id==0){ + $('#giver_region_province').parent().parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请选择收货人城市'); + return false; + }else if(area_id==0){ + $('#giver_region_province').parent().parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请选择收货人区县'); + return false; + }else if($("#giver_region_area").length > 0 && $('#giver_region_area').css('display') != 'none' && town_id==0){ + $('#giver_region_province').parent().parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请选择收人货街道/镇'); + return false; + }else if(addr.length<5 || addr.length>40 || !isNaN(addr) || addr==$('#address').attr("def")){ + $('#giver_address').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写收货人详细地址,限5-40个字,不能全部为数字'); + return false; + }else if(mobile==''){ + $('#giver_mobile').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写收货人联系电话'); + return false; + } + + if($.trim($('#giver_mobile').val()) !=''){ + if(!testmobile || $.trim($('#giver_mobile').val()) == $('#giver_mobile').attr("def")){ + $('#giver_mobile').parent().parent().find(".fmError").removeClass("hide"); + //jAlert('请填写正确的手机号'); + return false; + } + } + + + if(addr.indexOf("&")>0 || addr.indexOf("#")>0){ + jAlert('详细寄货人地址不能包含&#等特殊字符'); + return false; + } + return true; + +} + +//收货地址分页方法 +function arrGiverComm(page){ + page += 1; + $.get("/ajax/giveraddrdata/page/"+page,null,function(data){ + $('#giveraddresslist .giverorderAddr').html(data); + //var t = $(".giverorderAddr .addrs:gt(4):not(:last)"); + //show_hide(t,$(".giverorderAddr")); + + if ($(".giverAddr .addrItem").length > 5){ + var tGiver = $(".giverAddr .addrItem:gt(4)"); + tGiver.addClass("hide"); + $(".giverorderAddr").find(".addrShow").html('更多').removeClass("hide"); + show_hide(tGiver,$(".giverorderAddr")); + + } + + setCurr(); + hoverCurr('giveraddresslist'); + },"html"); + + +} +//删除收货地址 +function delGiverAddr(addr_id){ + jConfirm('您确定要删除该地址吗?', '消息确认', function(t) { + if(t){ + $.get("/ajax/delGiverAddr/addr_id/"+addr_id,null,function(data){ + if(data==1){ + jAlert("删除成功"); + arrGiverComm(0); + setCurr(); + hoverCurr('giveraddresslist'); + } + },"html"); + } + }); +} +//修改收货地址 +function editGiverAddr(addr_id){ + $("input[name='giveraddr']:[value="+addr_id+"]").change(); + $("#addrGiverForm").show(); + $("#edit_giver_addr_id").val(addr_id); + ///$("#addrGiverForm input").each(function(){$(this).val($(this).attr("def"))}); + $("#addrGiverForm input").removeClass("inputTips"); + $("#addrGiverForm select").removeClass("inputTips"); + //$("#addrGiverForm select").each(function(){$(this).removeClass("inputTips");}); +} + +//选择市 +$("#giver_region_city").live('change',function(){ + if($(this).find("option:selected").val() == 0){ + $("#giver_shi").html(''); + } else { + $("#giver_shi").html($(this).find("option:selected").html()); + } +}); +//选择县 +$("#giver_region_county").live('change',function(){ + if($(this).find("option:selected").val()==0){ + $("#giver_xian").html(''); + } else { + $("#giver_xian").html($(this).find("option:selected").html()); + } +}); +//选择区域 +$("#giver_region_area").live('change',function(){ + if($(this).find("option:selected").val()==0){ + $("#giver_areasp").html(''); + } else { + $("#giver_areasp").html($(this).find("option:selected").html()); + } +}); + +//选择地址 +$("input[name=giveraddr]").live('change',function(){ + $("input[name=giveraddr2]").attr("checked",''); + $("input[name=nogiver]").attr("checked",''); + var addr_id = $(this).val(); + $("#addrGiverForm").hide(); + //$("#addr_id").val(addr_id); + $("#edit_giver_addr_id").val(''); + + var web_url = "/order/selectGiver"; + $.post(web_url,{addr_id:addr_id},function(msg){ + var msg = eval('('+msg+')'); + if(msg.tel == '-' || msg.tel == '--'){ + msg.tel = ''; + } + if(msg.succes==1){ + $("#giver_addr_id").val(msg.addr_id); + $("#giver_consignee").val(msg.giver_name); + $("#giver_address").val(msg.addr); + $("#giver_mobile").val(msg.mobile); + $("#giver_region_county").val(); + + $("#giver_region_province option[value="+msg.province+"]").attr('selected',true); + $("#giver_region_province").change(); + $("#giver_region_city option[value="+msg.city+"]").attr('selected',true); + $("#giver_region_city").change(); + $("#giver_region_county option[value="+msg.district+"]").attr('selected',true); + $("#giver_region_county").change(); + $("#giver_region_area option[value="+msg.area+"]").attr('selected',true); + $("#giver_region_area").change(); + $("#giver_xian").html($("#giver_region_county").find("option:selected").text()); + //$("#giver_region_area").html(msg.option); + $("#giver_areasp").html($("#giver_region_area").find("option:selected").text()); + + //location.href="/order/index/"; + //top.location.reload(); + + } else { + jAlert(msg.data); + } + }); +}); + +//保存收货地址 +function saveGiverAddr(){ + clearTips(); + var addr_id = $("#giver_addr_id").val(); + var is_list = $("input[name='is_list']:checked").val(); + var flag = true; + if(!check_giver_address()){ + return false; + } + var web_url = '/ajax/addGiverAddr/'; + $.ajax({ + type: "POST", + url: web_url, + data: 'giverOrder[is_list]='+is_list+'&giverOrder[addr_id]='+addr_id+'&giverOrder[giver_name]='+$('#giver_consignee').val()+'&giverOrder[province]='+$('#giver_region_province').find('option:selected').val()+'&giverOrder[city]='+$('#giver_region_city').find('option:selected').val()+'&giverOrder[district]='+$('#giver_region_county').find('option:selected').val()+'&giverOrder[area]='+$('#giver_region_area').find('option:selected').val()+'&giverOrder[addr]='+$("#giver_address").val()+'&giverOrder[mobile]='+$('#giver_mobile').val()+'&giverOrder[add_from]=1', + dataType:"text", + async: false, + success: function(msg){ + var msg = eval('('+msg+')'); + if(msg.status == 0) { + arrGiverComm(0); + if(msg.addr_id){ + $("#giver_addr_id").val(msg.addr_id); + } + } else { + jAlert(msg.info); + flag = false; + return flag; + } + $("input[name='nogiver']").attr("checked",''); + $("input[name='giveraddr2']").attr("checked",''); + $("#addrGiverForm").hide(); + }, + error: function(msg){ + jAlert('网络异常,寄货地址保存失败.'); + } + }); + return flag; +} +//不需要填写寄件人 +function noGiverAddr(){ + $("#giver_addr_id").val(''); + $("#addrGiverForm").hide(); + $("input[name=giveraddr]").attr("checked",''); + $("input[name=giveraddr2]").attr("checked",''); + if(!$("#edit_giver_addr_id").val()){ + $("#addrGiverForm input").addClass("inputTips"); + //$("#addrGiverForm select").addClass("inputTips"); + $("#addrGiverForm input").each(function(){$(this).val($(this).attr("def"))}); + } + $("#addrGiverForm select").each(function(){$(this).val('')}); +} +//使用新寄货人地址 +function useNewGiverAddr(){ + $("#giver_addr_id").val(''); + $("#addrGiverForm").show(); + $("input[name=giveraddr]").attr("checked",''); + $("input[name=nogiver]").attr("checked",''); + if(!$("#edit_giver_addr_id").val()){ + $("#addrGiverForm input").addClass("inputTips"); + $("#addrGiverForm select").addClass("inputTips"); + $("#addrGiverForm input").each(function(){$(this).val($(this).attr("def"))}); + } + $("#addrGiverForm select").each(function(){$(this).val('')}); + $("#giver_shi").html(''); + $("#giver_xian").html(''); + $("#giver_areasp").html(''); +} + +//公共函数 +function setDisplay(name, none_name) { + $("#" + name).css({ + "display": "block" + }); + $("#" + none_name).css({ + "display": "none" + }); +} + +//优选单优惠 +function addDM(){ + //jAlert(best_time); + var web_url = "/order/searchDM"; + var dm = $.trim($("#dm0").val()); + var dm_tips = $("#dm-tips"); + dm_tips.html(''); + if(dm.length==6){ + // dm += "000000"; + } + var is_manjian = $("#is_manjian").html(); + if(dm == ''){ + dm_tips.html('请输入优选单编码'); + return; + } + var dmcodes = $("#dms").html(); + var dm_head = dm.substring(0,6); + if(dmcodes.indexOf(dm_head)>=0){ + dm_tips.html('您已使用过此优选单,不用重复使用'); + return; + } + if(dmcodes){ + dm_tips.html('您已使用过优选单,无需重复使用'); + $("#dm0").val(''); + return; + } + //var dms = dmcodes + dm; + var dms = dmcodes; + var together = 2; + if($("input[name=together]").attr('checked')==true){ + together = 1; + } + if($("#together1").val()==undefined){ + together = 0; + } + + $.post(web_url,{dm:dm,dmcodes:dms,together:together},function(msg){ + var json = eval('('+msg+')'); + if(msg==1){ + dm_tips.html('您输入的优选单不存在'); + return; + } + if(msg==2){ + dm_tips.html('此优选单已使用过'); + return; + } + if(msg==3){ + dm_tips.html('优选单已过期'); + return; + } + if(msg==4){ + dm_tips.html('优选单已使用!!'); + return; + } + if(msg==5){ + dm_tips.html('您输入的优选单不存在'); + $("#dm0").val(''); + return; + } + if(msg==6){ + dm_tips.html('订单金额不满足优惠券使用条件'); + return; + } + + if(json.dm_price==0){ + dm_tips.html('用户您好,您购买优选单的促销商品已经是最低价,将不再享有折扣优惠'); + } + initialPayments(); + $("#dm_p").html(json.dm_price); + + $("#dm_redue_money").html(json.reducemoney-json.dm_price); + + $("#yingProce").html(json.total); + + if(json.is_manjian == 'usertype'){ + if(json.discount){ + //$("#discount").html("   -已减:"+json.discount+"元"); + }else{ + $("#discount").hide(); + } + } + + if(json.is_manjian != 'usertype'){ + if(json.discount){ + $("#discount").html(json.discount); + $("#discount").parent().parent().show(); + }else{ + $("#discount").parent().parent().hide(); + } + } + if(json.shipping_fee){ + $("#shopping_price").html(json.shipping_fee); + //$(".shipPrice span").html(json.shipping_fee+"元"); + $("#shopping_price").parent().parent().show(); + }else{ + //$(".shipPrice span").html("免运费"); + $("#shopping_price").parent().parent().hide(); + } + //重新计算优选卡可用余额 + if ($("#jcard_price").length == 0) { + if (json.jcard_price > 0) { + $('#card_price_append').html(',商家商品不可使用优选卡支付,本次可使用元'); + $("input[name=card_price_box]").attr("disabled", ""); + $("#jcard_price_max").html(json.jcard_price); + $("#jcard_price_bak").html(json.jcard_price); + } + } + var jcard_price = $("#jcard_price").html(); + if (jcard_price > json.jcard_price) { + $("#jcard_price").html(json.jcard_price); + $("#jcard_price_max").html(json.jcard_price); + $("#jcard_price_bak").html(json.jcard_price); + } + + var sf_points_price = yuan2fen($("#sf_points_price").html()); + var user_points_price = yuan2fen($("#user_points_price").html()); + var card_price = yuan2fen($("#card_price").html()); + var coupon = yuan2fen($("#coupon").html()); + var shopping_price = yuan2fen($("#shopping_price").html()); + if(sf_points_price || user_points_price || card_price || coupon){ + var t= fen2yuan(sf_points_price + user_points_price + card_price + coupon); + $("#countPrice").html(json.count_price-t); + //$("#countPrice").html(yuan2fen(fen2yuan(json.count_price-t))); + }else{ + $("#countPrice").html(json.count_price); + } + //$("#countPrice").html(json.count_price-json.dm_price); + countPirce(); + + /*if(balance>(yuan2fen(json.count_price)-card_price-coupon) && balance>0){ + $("#balance").html(fen2yuan(yuan2fen(json.count_price)-card_price-coupon)); + }*/ + + //$("#producthtml").html(json.info); + + if($.trim(json.order_coupon)!=''){ + $("#ordercoupon").html('您已获得:'+json.order_coupon); + $("#ordercoupon1").show(); + $("#ordercoupon").show(); + } + //$("#prodcut_html").hide(); + //$("#prodcut_html1").show(); + + //优惠券回显 123456789 1598746464 564646546546 + $("#dmcode").show(); + + if(dmcodes != ''){ + dmcodes += " "; + } + $("#dms").html(dmcodes + dm); + $("#dm").val(dm); + $("#dmcodes").val(dmcodes + dm); + $("#dm0").val(''); + $("#dm_p").parent().parent().show(); + }); +} + +function initialPayments(){ + if ($('.couponCL').length) { + $('.couponCL').trigger('click'); + } + if (true == $('input=[name=card_price_box]').attr('checked')) { + $('input=[name=card_price_box]').click().change(); + } + /*if (true == $('input=[name=user_balance_box]').attr('checked')) { + $('input=[name=user_balance_box]').click().change(); + }*/ +} + +$(function(){ + //使用优惠券 + $("#getcoupon").click(function(){ + if($(this).next(".sfbtn_in").is(":visible")){ + + }else{ + if($("#coupon_table1 input[name='user_coupon']:checked").length==0){ + // getCoupon(); + } + } + }); + //使用优选单 优惠券 优选卡 + $(".sfbtn").each(function(){ + $(this).click(function(){ + if($(this).next(".sfbtn_in").is(":visible")){ + $(this).next(".sfbtn_in").hide(); + $(this).find("b").removeClass("close").addClass("open"); + }else{ + $(this).next(".sfbtn_in").show(); + $(this).find("b").removeClass("open").addClass("close"); + } + }); + }); + $(".dmTip").hover(function(){$(".dmCont").show()},function(){$(".dmCont").hide();}) + $(".dmCont").hover(function(){$(".dmCont").show();},function(){$(".dmCont").hide();}) + $(".gTip").hover(function(){$(".gCont").show()},function(){$(".gCont").hide();}) + $(".gCont").hover(function(){$(".gCont").show();},function(){$(".gCont").hide();}) + $(".yeTip").hover(function(){ + $(".commPage").toggle(); + }) +}) +//切换可用与不可用优惠券 +function coupon_tab(n){ + if(n==1){ + $("#coupon_div1").show(); + $("#coupon_tab1").addClass("on"); + $("#coupon_div2").hide(); + $("#coupon_tab2").removeClass("on"); + }else{ + $("#coupon_div2").show(); + $("#coupon_tab2").addClass("on"); + $("#coupon_div1").hide(); + $("#coupon_tab1").removeClass("on"); + } + if($("#coupon_table1 input").length <4){ + $("#coupon_div1").height(""); + } + if($("#coupon_table2 input").length <4){ + $("#coupon_div2").height(""); + } + +} +//获取优惠券列表 +function getCoupon(){ + var web_url = '/order/getCoupon/'; + var dm = $("#dm").val(); + var dmcodes = $("#dmcodes").val(); + $.ajax({ + type: "POST", + url: web_url, + data: 'dm='+dm+'&dmcodes='+dmcodes+'&v='+Math.random(), + dataType:"text", + async: false, + success: function(data){ + var msg = eval('('+data+')'); + //jAlert(data); + $("#mycoupons").html(msg); + } + }); +} + +//优惠券使用详情查看 +function brandshow(obj){ + This=$(obj); + if(This.next().is(":visible")){ + This.next().hide(); + }else{ + $(".brandshow").hide(); + This.next().show(); + var coupon_id = This.attr('couponid'); + var id = This.attr('cp_id'); + getCouponDesc(coupon_id,id); + } +} +function closeBrand(obj){ + $(".brandshow").hide(); +} +function getCouponDesc(coupon_id,id){ + var web_url = '/order/getCouponDesc/'; + $.ajax({ + type: "POST", + url: web_url, + data: 'coupon_id='+coupon_id+'&v='+Math.random(), + dataType:"text", + async: false, + success: function(data){ + var msg = eval('('+data+')'); + $("#coupondesc"+id).html(msg); + } + }); +} + +//取消使用优惠券 +function cancelCoupon(value){ + var check = $("input[value='"+value+"']:checked"); + if(check){ + $("input[value='"+value+"']").attr("checked",""); + var coupon = yuan2fen($("#coupon").html()); + var total = yuan2fen($("#countPrice").html())+coupon; + $("#coupon").html("0").parent().parent().hide(); + $("#coupon_used").html(""); + $("#countPrice").html(fen2yuan(total)); + $("#jcard_price").html($("#jcard_price_bak").html()); + countPirce(); + } + +} + +//选中优惠劵 +function couponChange(obj){ + This = $(obj); + var order_min = yuan2fen(This.attr('order_min')); + var order_max = yuan2fen(This.attr('order_max')); + var yingProce = yuan2fen($("#yingProce").text()); + var user_coupon = This.attr('price'); + var coupon_type = This.attr('coupon_type'); + var coupon_sn = This.val(); + var cou_sn = $("input[name='user_coupon']:checked").val();//记录上一次使用的优惠券号 + $('#coupon_msg').hide(); + if(order_min <= yingProce){ + //if(((order_min <= yingProce) && (yingProce <= order_max)) || ((order_min <= yingProce) && (order_max == -1))){ + var shipping_money = $("#shopping_price").html(); + var coupon_money = $("#coupon").html(); + var sf_points_money = $("#sf_points_price").html(); + var user_points_money = $("#user_points_price").html(); + var card_money = $("#card_price").html(); + var dm = $("#dm").val(); + var dmcodes = $("#dmcodes").val(); + var tips = ""; + $.ajax({ + type: "POST", + url: '/order/getCount/', + data: 'coupon_sn='+coupon_sn+'&coupon_type='+coupon_type+'&user_coupon='+user_coupon+'&coupon_money='+coupon_money+'&shipping_money='+shipping_money+'&sf_points_money='+sf_points_money+'&user_points_money='+user_points_money+'&card_money='+card_money+'&dm='+dm+'&dmcodes='+dmcodes, + dataType:"text", + async: false, + success: function(msg){ + + var json = eval('('+msg+')'); + //jAlert(json.coupon); + if(json.coupon.status>0){ + //jAlert(json.coupon.tips); 直接在这提示会导致ie下出现两次请求 + tips = json.coupon.tips; + This.attr("checked",""); + coupon_tab(2); + This.parent().parent().find("td:last").removeClass("hide"); + var coupon_tr = ""+This.parent().parent().html()+""; + $(coupon_tr).appendTo("#coupon_table2",null); + if($("#nocoupon2").html()){ + $("#nocoupon2").remove(); + } + This.parent().parent().remove(); + $("#coupon_table2").find("tr:last").find("td:first").html(''); + }else{ + This.attr("checked","checked"); + coupon_tab(1); + var coupon_used_info = '您已经使用了优惠券'+fen2yuan(json.coupon.value)+'元  取消使用'; + $("#coupon_used").html(coupon_used_info); + if($("#nocoupon1").html()){ + $("#nocoupon1").remove(); + } + var card_remain = fen2yuan(yuan2fen($('#jcard_price_total').html()));//fen2yuan(json.coupon.count - json.coupon.coupon_value - json.coupon.couponCardnegativemoney); + var jcard_price = parseFloat($('#jcard_price_max').html()); + if (card_remain < 0 ) { + card_remain = 0; + } + if (json.coupon.couponCardnegativemoney) { + if (jcard_price > (fen2yuan(json.coupon.coupon_value - json.coupon.couponCardnegativemoney))) { + jcard_price = yuan2fen(jcard_price) - (json.coupon.coupon_value - json.coupon.couponCardnegativemoney); + jcard_price = fen2yuan(jcard_price); + } else { + jcard_price = 0; + } + } else { + if (jcard_price > fen2yuan(json.coupon.coupon_value)) { + jcard_price = yuan2fen(jcard_price) - json.coupon.coupon_value; + jcard_price = fen2yuan(jcard_price); + } else { + jcard_price = 0; + } + } + if (card_remain > jcard_price) { + $('#jcard_price').html(jcard_price); + } else { + $('#jcard_price').html(card_remain); + } + if (card_remain == 0 && !$(".payment-new0").hasClass("hide")) { + $("input[name=pay_pwd]").val(''); + $(".payment-new0").addClass("hide"); + $("input[name=card_price_box]").attr('checked',''); + } + //jAlert('发票开具的金额不包括优惠券支付部分,请知晓'); + } + $("#priceitems").html(json.info); + var total_price = json.count_price > 0 ? json.count_price :0; + $("#countPrice").html(total_price); + $("#allPrice").html(total_price); + if($.trim(json.fav)!=''){ + $("#ordercoupon1").show(); + $("#ordercoupon").html("您已获得:"+json.fav); + }else{ + $("#ordercoupon1").hide(); + } + countPirce(); + + }, + error: function(msg){ + // jAlert('网络错误,支付方式保存失败.'); + } + }); + + if(tips){ + jAlert(tips); + } + + } else { + var msg = '您的优惠券已经绑定到您的账户中,消费额满N'+fen2yuan(order_min)+'元时可以使用'; + This.attr("checked",""); + coupon_tab(2); + + This.parent().parent().find("td:last").removeClass("hide"); + var coupon_tr = ""+This.parent().parent().html()+""; + $(coupon_tr).appendTo("#coupon_table2",null); + if($("#nocoupon2").html()){ + $("#nocoupon2").remove(); + } + This.parent().parent().remove(); + $("#coupon_table2").find("tr:last").find("td:first").html(''); + + $("#coupon").html('0'); + countPirce(); + //$("#countPrice").html(fen2yuan(total)); + //jAlert(msg); + return false; + } +} + + //用于优惠劵相关操作 + var COUPON = {}; + + //设置高度 + //paramId 对象ID + COUPON.height = function (){ + var obj1 = $("#coupon_div1"); + var length1 = obj1.find('tr').length; + if(length1 > 4){ + obj1.css({"height":"133px","overflow-y":"auto"}); + } else { + obj1.css({"overflow-y":"visible"}); + } + + var obj2 = $("#coupon_div2"); + var length2 = obj2.find('tr').length; + if(length2 > 4){ + obj2.css({"height":"133px","overflow-y":"auto"}); + } else { + obj2.css({"overflow-y":"visible"}); + } + }; + + //失去焦点时触发检测优惠劵格式 + //paramId 对象ID + COUPON.find = function (paramId){ + var obj = $("#"+paramId); + var re = /\w{4}$/; + if(!re.test(obj.val()) && obj.val().length > 0) + { + $('#coupon_msg').html('请输入正确的优惠券编码'); + $('#coupon_msg').show(); + } else { + $('#coupon_msg').html(''); + $('#coupon_msg').hide(); + } + }; + //粘贴过来时自动分成四个填写进去 + function autoInputCoupon(coupon_str){ + var length = coupon_str.length; + if(length>4){ + var re = /\w{4,5}-\w{4,5}-\w{4,5}-\w{4,5}$/; + if(re.test(coupon_str)){ + var str= new Array(); + str = coupon_str.split("-"); + $("#coupon1").val(str[0]); + $("#coupon2").val(str[1]); + $("#coupon3").val(str[2]); + $("#coupon4").val(str[3]); + }else{ + $('#coupon_msg').html('请输入正确的优惠券编码'); + $('#coupon_msg').show(); + return false; + } + }else if(length==4){ + if($("#coupon1").val().length<4){ + $("#coupon1").focus(); + }else if($("#coupon2").val().length<4){ + $("#coupon2").focus(); + }else if($("#coupon3").val().length<4){ + $("#coupon3").focus(); + }else if($("#coupon4").val().length<4){ + $("#coupon4").focus(); + }else{ + $("#coupon_code").focus(); + } + } + + } + + //检测验证码 + COUPON.code = function (){ + var url = '/ajax/code/'; + var coupon_code = $("#coupon_code").val(); + if(coupon_code.length > 0){ + $.post(url, {auth_code:coupon_code}, function(data){ + if(data==1){ + var okMsg = "输入正确."; + $('#coupon_msg').html(okMsg); + $('#coupon_msg').show(); + }else{ + var errorMsg = "请输入正确的验证码"; + $('#coupon_msg').html(errorMsg); + $('#coupon_msg').show(); + } + }); + } + }; + + function showCouponCodeImg() { + if (SF_COUPON_ERR_NUM >= 3) { + $(".coupon-code-img").show(); + } + } + + //获取优惠劵信息 + COUPON.save = function (){ + var url = "/order/searchCoupon"; + var coupon_sn = $.trim($("#coupon1").val())+"-"+$.trim($("#coupon2").val())+"-"+$.trim($("#coupon3").val())+"-"+$.trim($("#coupon4").val()); + var coupon_code = $("#coupon_code").val(); + $('#coupon_msg').show(); + if($.trim($("#coupon1").val()).length!=4){ + var errorMsg = "请输入正确的优惠券编码"; + $('#coupon_msg').html(errorMsg); + $("#coupon1").focus(); + SF_COUPON_ERR_NUM++; + showCouponCodeImg(); + return false; + } + if($.trim($("#coupon2").val()).length!=4){ + var errorMsg = "请输入正确的优惠券编码"; + $('#coupon_msg').html(errorMsg); + $("#coupon2").focus(); + SF_COUPON_ERR_NUM++; + showCouponCodeImg(); + return false; + } + if($.trim($("#coupon3").val()).length!=4){ + var errorMsg = "请输入正确的优惠券编码"; + $('#coupon_msg').html(errorMsg); + $("#coupon3").focus(); + SF_COUPON_ERR_NUM++; + showCouponCodeImg(); + return false; + } + if($.trim($("#coupon4").val()).length!=4){ + var errorMsg = "请输入正确的优惠券编码"; + $('#coupon_msg').html(errorMsg); + $("#coupon4").focus(); + SF_COUPON_ERR_NUM++; + showCouponCodeImg(); + return false; + } + var code_url = '/ajax/code/'; + var coupon_code = $("#coupon_code").val(); + var re = false; + if (SF_COUPON_ERR_NUM >= 3) { + if($.trim(coupon_code) == ''){ + var errorMsg = "请输入正确的验证码"; + $('#coupon_msg').html(errorMsg); + SF_COUPON_ERR_NUM++; + return false; + } + $.ajax({ + type:'POST', + url:code_url, + data:{auth_code: coupon_code}, + async:false,//设置同步 + success:function(da){ + //jAlert(da); + if(da !=1){ + re = true; + } + + } + }); + + if(re){ + var errorMsg = "请输入正确的验证码"; + $('#coupon_msg').html(errorMsg); + return false; + } + } + $("#coupon1").val(''); + $("#coupon2").val(''); + $("#coupon3").val(''); + $("#coupon4").val(''); + $("#coupon_code").val(''); + $("#coupon_code_img").click(); + if($("#coupon_table1 input").length>0){ + var is_cou = false; + $("#coupon_table1 input").each(function(){ + if($(this).val()==coupon_sn){ + is_cou = true; + couponChange(this); + return; + } + }); + if(is_cou == true){ + //jAlert('此券已存在!!'); + return; + } + } + + if($("#coupon_table2 input").length>0){ + var is_cou = false; + $("#coupon_table2 input").each(function(){ + if($(this).val()==coupon_sn){ + is_cou = true; + couponChange(this); + return; + } + }); + if(is_cou == true){ + //jAlert('此券已存在!!'); + return; + } + } + $.ajax({ + type:'POST', + url:url, + data:{coupon: coupon_sn}, + async:false,//设置同步 + success:function(msg){ + try { + if(msg==1){ + throw new Error('优惠券不存在'); + } + if(msg==2){ + throw new Error('还未到优惠券的使用时间,请后续再使用'); + } + if(msg==3){ + throw new Error('优惠券已过期!'); + } + if(msg==4){ + throw new Error('优惠券已使用!'); + } + if(msg==5){ + throw new Error('很抱歉,您的会员等级暂时无法享受该优惠'); + } + if(msg==6){ + //throw new Error('订单金额不满足优惠券使用条件!'); + } + var json = eval('('+msg+')'); + if (json.type==7) { + throw new Error(json.msg); + } + + var ra = ''; + var tr = ''; + tr+= ''+ra+''; + tr+= ''+fen2yuan(json.coupon_value)+'元 ('+json.use_start_time+'至'+json.use_end_time+')'; + tr+= '最低消费额:'+json.order_min+'元'; + tr+= '查看详情>>'; + tr+= ''; + $(tr).appendTo("#coupon_table1",null); + //检测优惠劵是否需要滚动条 + COUPON.height(); + //清空内容 + //$("#coupon_sn").val(''); + $("#coupon1").val(''); + $("#coupon2").val(''); + $("#coupon3").val(''); + $("#coupon4").val(''); + $("#coupon_code").val(''); + $("#coupon_code_img").attr('src' , $("#coupon_code_img").attr('src')+'?new=' + Math.random()); + // couponChange($(tr).find("input")); + // $("#coupon_table").find("input:last").click(); + $("#coupon_table1").find("input:last").change(); + //$("#coupon_table").find("input:last").attr("checked",true); + $('#coupon_msg').hide(); + } catch (e) { + var errorMsg = ""+e.message+""; + $('#coupon_msg').html(errorMsg); + SF_COUPON_ERR_NUM++; + showCouponCodeImg(); + return false; + } + } + }); + }; + + //元转换成分 + function yuan2fen(num){ + var num = new Number(num * 100); + num = parseInt(num.toFixed(2)); + return num; + } + + //分转换成元 + function fen2yuan(num){ + return num = parseFloat(num / 100); + } + $(function(){ + //选择使用优选卡支付 + $("input[name=card_price_box]").change(function(){ + + if($("input[name=card_price_box]").attr('checked')==true){ + //中广核白名单 + $.ajax({ + type: "POST", + url: '/order/checkWhitelistByOrder/', + data: {'checkWhitelist':checkWhitelist}, + dataType:"json", + async: false, + success: function(msg){ + if(msg.code==0){ + //$(this).unbind("change"); + $("input[name=card_price_box]").attr('checked',''); + jAlert(msg.data); + return false; + } + } + }); + } + + if($("#jcard_price").html()==0){ + $("input[name=card_price_box]").attr('checked',''); + return false; + } + if($("#jcard_price").html()>0 && $("#jcard_price").parent().find(".new-color").length>0){ + $("input[name=card_price_box]").attr('checked',''); + jAlert('为了保障您的账户财产安全,请先开启支付密码再使用优选卡'); + return false; + } + if($("input[name=card_price_box]").attr('checked')==true){ + //如果优选卡的钱够全额支付,需要取消余额支付和取消开发票 + var countPrice = $("#countPrice").html(); + var jcard_price = yuan2fen($("#jcard_price").html()); + var sf_points_price = yuan2fen($("#sf_points_price").html()); + var user_points_price = yuan2fen($("#user_points_price").html()); + var points_price = sf_points_price+user_points_price; + if(countPrice==0 && jcard_price>=points_price){ + $("input[name=points_price_box]").attr('checked',''); + isInvoice(0); + }else if(jcard_price>0){ + jAlert('发票开具的金额不包括优选卡支付部分,请知晓'); + } + + } + countPirce(); + }); + + //选择积分支付 + $("input[name=points_price_box]").change(function(){ + checkPriceBox(); + }); + + $('#sf_points_money').focus(function(){ + $(this).css("color","#000"); + $(this).val(''); + }) + $('#user_points_money').focus(function(){ + $(this).css("color","#000"); + $(this).val(''); + }) + var checkPointMoney = /^\d+(\.\d{2})?$/; + //验证输入的速运积分抵扣的金额 + $('#sf_points_money').blur(function(){ + $(this).css("color","#969696"); + var points_money_check = yuan2fen($("#points_money_check").html()); + var user_points_money = yuan2fen($("#user_points_money").val()); + var sf_points_money_check = points_money_check-user_points_money; + var sf_price_total = yuan2fen($('#sf_price_total').html()); + sf_points_money_check = sf_points_money_check>sf_price_total?sf_price_total:sf_points_money_check; + if(checkPointMoney.test(yuan2fen($(this).val())) === false || yuan2fen($(this).val())<0){ + $('#sf_points_money_check').parent().hide(); + $(this).focus(); + }else if(yuan2fen($(this).val())>sf_points_money_check){ + $('#sf_points_money_check').html(fen2yuan(sf_points_money_check)); + $('#sf_points_money_check').parent().show(); + $(this).focus(); + }else{ + $('#sf_points_money_check').parent().hide(); + countPirce(); + } + }) + //验证输入的优选积分抵扣的金额 + $('#user_points_money').blur(function(){ + $(this).css("color","#969696"); + var points_money_check = yuan2fen($("#points_money_check").html()); + var sf_points_money = yuan2fen($("#sf_points_money").val()); + var user_points_money_check = points_money_check-sf_points_money; + var user_price_total = yuan2fen($('#user_price_total').html()); + user_points_money_check = user_points_money_check>user_price_total?user_price_total:user_points_money_check; + if(checkPointMoney.test(yuan2fen($(this).val())) === false || yuan2fen($(this).val())<0){ + $('#user_points_money_check').parent().hide(); + $(this).focus(); + }else if(yuan2fen($(this).val())>user_points_money_check){ + $('#user_points_money_check').html(fen2yuan(user_points_money_check)); + $('#user_points_money_check').parent().show(); + $(this).focus(); + }else{ + $('#user_points_money_check').parent().hide(); + countPirce(); + } + }) + + //验证用户手机号 + $('#mobile_valid_mobile').blur(function(){ + checkUserMobile(); + if(checkM==1){ + $('#mobile_valid_get').removeClass('mask_go_on'); + }else{ + $('#mobile_valid_get').addClass('mask_go_on'); + } + }) + + //发送验证码 + $('#mobile_valid_get').click(function(){ + var mobile = $('#mobile_valid_mobile').val(); + //先校验手机号 + checkUserMobile(); + if(checkM == 0){ + return false; + } + //发送验证码 + $.post('/ajax/sendSmsCode/', {'mobile':mobile}, function(data){ + if(data==0){ //已发送 + countDown(10); + $('#mobile_valid_get').hide(); + $('#mobile_valid_time').show(); + }else{ //发送失败 + var errorMsg = "验证码输入不正确."; + $('#code_error').html(errorMsg); + } + }); + }) + + //验证验证码 + $('#mobile_valid_code').blur(function(){ + checkSmsCode(); + if(checkS==1){ + $('#mobile_valid_submit').removeClass('mask_go_default'); + }else{ + $('#mobile_valid_submit').addClass('mask_go_default'); + } + }) + + //绑定用户手机号 + $('#mobile_valid_submit').click(function(){ + var mobile = $('#mobile_valid_mobile').val(); + checkUserMobile(); + checkSmsCode(); + if(checkM == 1 && checkS == 1){ + + //if(checkSmsCode() == true){ + /*$.post('/ajax/bindUserMobile/', {'mobile':mobile}, function(data){ + if(data==0){ //绑定成功 + $("#mask_con").hide(); + $(".mask_box").hide(); + }else{ //绑定失败 + + } + });*/ + $.ajax({ + url:'/ajax/bindUserMobile/', + data:{'mobile':mobile}, + type:'post', + async:false, + success : function(data) { + if(data==0){ //绑定成功 + $("#mask_con").hide(); + $(".mask_box").hide(); + $("input[name=points_price_box]").attr('checked',true); + checkPriceBox(); + }else{ //绑定失败 + $("#mobile_valid_check_submit").show(); + } + } + }); + //} + } + return false; + }) + }) + +//倒计时 +var dowmTimer = null; +function countDown(cd){ + dowmTimer = setInterval("showTime()",1000); +} +function showTime(){ + var sec = parseInt($('#mobile_valid_time_box').html()); + if(sec>0){ + sec--; + $('#mobile_valid_time_box').html(sec); + }else{ + $('#mobile_valid_get').show(); + $('#mobile_valid_time').hide(); + $('#mobile_valid_time_box').html(120); + clearInterval(dowmTimer); + } +} +var checkM = 0; +var checkS = 0; +//校验手机号 +function checkUserMobile(){ + var mobile = $('#mobile_valid_mobile').val(); + var mCheck = /^(13|14|15|17|18)[0-9]{9}$/; + checkM = 0; + if(mobile==''){ + $('#mobile_valid_check_mobile').html('手机号码不能为空'); + $('#mobile_valid_check_mobile').show(); + }else if(mCheck.test(mobile)==false){ + $('#mobile_valid_check_mobile').html('手机号码输入错误,请重新输入'); + $('#mobile_valid_check_mobile').show(); + }else{ + $('#mobile_valid_check_mobile').hide(); + checkM = 1; + } +} +//校验验证码 +function checkSmsCode(){ + var mobile = $('#mobile_valid_mobile').val(); + var code = $('#mobile_valid_code').val(); + checkS = 0; + if(mobile==''){ + $('#mobile_valid_check_code').html('短信验证码不能为空'); + $('#mobile_valid_check_code').show(); + }else{ + $.ajax({ + url:'/ajax/checkSmsCode/', + data:{'mobile':mobile,'code':code}, + async:false, + type:'post', + success : function(data){ + if(data==0){ //校验成功 + $('#mobile_valid_check_code').hide(); + checkS = 1; + }else{ //校验失败 + $('#mobile_valid_check_code').html('短信验证码输入错误,请重新输入'); + $('#mobile_valid_check_code').show(); + } + } + }); + } + /*$.post('/ajax/checkSmsCode/', {'mobile':mobile,'code':code}, function(data){ + if(data==0){ //校验成功 + $('#mobile_valid_check_code').hide(); + return true; + }else{ //校验失败 + $('#mobile_valid_check_code').show(); + return false; + } + });*/ +} + + //选择积分支付 + function checkPriceBox(){ + if($("input[name=points_price_box]").is(':checked')==true){ + //检测是否验证过手机 + $.ajax({ + url:'/ajax/checkUserMobileValid/', + //data:{'mobile':mobile}, + type:'post', + async:false, + success : function(data){ + if(data==0){ + showMask(); + placeholder(".phone_div_phone"); + placeholder(".message_div_input"); + $("input[name=points_price_box]").attr('checked',''); + $('#mobile_valid_check_mobile').hide(); + $('#mobile_valid_check_code').hide(); + }else{ + setPointMoney(); + $('#points_money_check').parent().show(); + } + } + }); + } + countPirce(); + /*if($("#user_points_money").html()>0 && $("#user_points_money").parent().find(".new-color").length>0){ + $("input[name=points_price_box]").attr('checked',''); + jAlert('为了保障您的账户财产安全,请先开启支付密码再使用余额支付'); + return false; + }*/ + } + + //计算应付价钱 + function countPirce(){ + //var product_price = $("#product_price").html(); + var countPrice = yuan2fen($("#countPrice").html()) + yuan2fen($("#card_price").html()) + yuan2fen($("#sf_points_price").html()) + yuan2fen($("#user_points_price").html()); + var jcard_price = yuan2fen($("#jcard_price").html()); + //var sf_price_total = yuan2fen($("#sf_price_total").html()); + //var user_price_total = yuan2fen($("#user_price_total").html()); + var sf_points_money = yuan2fen($("#sf_points_money").val()); + + var user_points_money = yuan2fen($("#user_points_money").val()); + var points_money_total = yuan2fen($('#points_money_total').html()); //用户积分余额 + var points_money_check = yuan2fen($('#points_money_check').html()); //当前可用的积分可抵用金额 + var jcard_price_total = yuan2fen($("#jcard_price_total").html()); + if (jcard_price_total > jcard_price) { + $('#card_price_append').show(); + } else { + $('#card_price_append').hide(); + } + if($("input[name=card_price_box]").attr('checked')==true){ + var use_card_price = countPrice > jcard_price ? jcard_price:countPrice; + countPrice -= use_card_price; + $("#card_price").html(fen2yuan(use_card_price)); + $("#card_price").parent().parent().show(); + if(use_card_price==0){ + $("#card_price").parent().parent().hide(); + } + }else{ + $("#card_price").html(0); + $("#card_price").parent().parent().hide(); + } + if($("input[name=points_price_box]").attr('checked')==true){ + //设置积分最高可抵用金额 + points_money_check = countPrice>points_money_total?points_money_total:countPrice; + $("#points_money_check").html(fen2yuan(points_money_check)); + + if(points_money_check==0){ + resetPoint(); + }else{ + + //先计算速运积分 + var sf_points_price = countPrice > sf_points_money ? sf_points_money:countPrice; + countPrice -= sf_points_price; + $("#sf_points_money").val(fen2yuan(sf_points_price)); + $("#sf_points_price").html(fen2yuan(sf_points_price)); + $("#sf_points_price").parent().parent().show(); + if(sf_points_price==0){ + $("#sf_points_price").parent().parent().hide(); + } + //再计算优选积分 + var user_points_price = countPrice > user_points_money ? user_points_money:countPrice; + countPrice -= user_points_price; + $("#user_points_money").val(fen2yuan(user_points_price)); + $("#user_points_price").html(fen2yuan(user_points_price)); + $("#user_points_price").parent().parent().show(); + if(user_points_price==0){ + $("#user_points_price").parent().parent().hide(); + } + + } + }else{ + resetPoint(); + } + + if($("input[name=card_price_box]").attr('checked')==true){ + $(".payment-new0").removeClass("hide"); + }else{ + $("input[name=pay_pwd]").val(''); + $(".payment-new0").addClass("hide"); + } + + countPrice = parseInt(countPrice) > 0 ? countPrice : 0; + + $("#countPrice").html(fen2yuan(countPrice)); + $("#allPrice").html(fen2yuan(countPrice)); + } + +//初始化积分支付状态 +function resetPoint(){ + $("input[name=points_price_box]").attr('checked', false); + $('#points_money_check').parent().hide(); + $('#sf_points_money').attr("disabled", true); + $('#user_points_money').attr("disabled", true); + $("#sf_points_money").val(''); + $("#user_points_money").val(''); + $("#sf_points_price").html(0); + $("#sf_points_price").parent().parent().hide(); + $("#user_points_price").html(0); + $("#user_points_price").parent().parent().hide(); +} + +//勾选后设置积分支付最大金额,本次可用金额 +function setPointMoney(){ + var countPrice = yuan2fen($("#countPrice").html()); //剩余可用金额 + var pointsMoneyTotal = yuan2fen($("#points_money_total").html()); //总余额 + var pointsMoneyCheck = countPrice>pointsMoneyTotal?pointsMoneyTotal:countPrice; //当前可用余额 + $("#points_money_check").html(fen2yuan(pointsMoneyCheck)); + + var sfPriceTotal = yuan2fen($("#sf_price_total").html()); //速运余额 + var sfPriceMoneyCheck = sfPriceTotal>pointsMoneyCheck?pointsMoneyCheck:sfPriceTotal; //当前可用速运余额 + //$("#sf_points_money_check").html(fen2yuan(sfPriceMoneyCheck)); + $("#sf_points_money").val(fen2yuan(sfPriceMoneyCheck)); + + pointsMoneyCheck -= sfPriceMoneyCheck; //去掉速运余额后的剩余可用余额 + + var userPriceTotal = yuan2fen($("#user_price_total").html()); //优选余额 + var userPointsMoneyCheck = userPriceTotal>pointsMoneyCheck?pointsMoneyCheck:userPriceTotal; //当前可用速运余额 + //$("#user_points_money_check").html(fen2yuan(userPointsMoneyCheck)); + $("#user_points_money").val(fen2yuan(userPointsMoneyCheck)); + + $('#sf_points_money').attr("disabled", false); + $('#user_points_money').attr("disabled", false); +} + + $(function(){ + $('form :input').blur(function(){ + var val = $.trim(this.value); + //验证优选卡账号 88110 00000 00116 6 + if( $(this).is('#CardNo') ){ + if( val=="" ){ + var errorMsg = "优选卡卡号不能为空."; + $('#e_code').html(errorMsg); + }else if( val.length != 16 ){ + var errorMsg = "优选卡账号格式不正确."; + $('#e_code').html(errorMsg); + }else{ + $('#e_code').html(''); + } + } + + //验证优选卡密码 + if( $(this).is('#CardCode') ){ + if( this.value=="" ){ + var errorMsg = "优选卡密码不能为空."; + $('#e_pass').html(errorMsg); + }else{ + $('#e_pass').html(''); + } + } + + //优选卡验证码验证 + if( $(this).is('#verification_code') ){ + var verification_code = $.trim($('#verification_code').val()); + if( verification_code.length!=0 && verification_code.length!=6){ + var errorMsg = "优选卡验证码格式错误."; + $('#e_vcode').html(errorMsg); + }else{ + $('#e_vcode').html(''); + } + } + + //验证码验证 + if( $(this).is('#auth_code') ){ + if( this.value=="" ){ + var errorMsg = "验证码不能为空."; + $('#code_error').html(errorMsg); + }else{ + auth_code = $("#auth_code").val(); + $.post('/ajax/code/', {auth_code:auth_code}, function(data){ + if(data==1){ + var okMsg = "输入正确."; + $('#code_error').html(okMsg); + }else{ + var errorMsg = "验证码输入不正确."; + $('#code_error').html(errorMsg); + } + }); + } + } + + }); + + $("#pSubmit").click(function(){ + $("#activate input").trigger('blur'); + var numError = $('#activate .onError').length; + if(numError){ + return false; + } + + number = $('#CardNo').val(); + code = $('#CardCode').val(); + auth_code = $('#auth_code').val(); + verification_code = $('#verification_code').val(); + + $.post('/ajax/doBind/', {"code":code, "number":number, "auth_code":auth_code, "verification_code":verification_code}, function(data){ + if(data=='-1'){ + jAlert('为了您的账户安全请先绑定手机后再激活优选卡','提示消息',function(e){ + if(e){ + _avFailTip(); + } + }); + }else if(data=='2'){ + jAlert('优选卡不存在或已被使用!','提示消息',function(e){ + if(e){ + _avFailTip(); + } + }); + }else if(data=='-2'){ + jAlert('为了保障您的账户财产安全,请先开启支付密码再使用优选卡','提示消息',function(e){ + if(e){ + _avFailTip(); + } + }); + } + if(data=='3'){ + jConfirm('绑定后其他账号将无法使用,是否绑定', '温馨提示',function(e){ + if(e){ + $.post('/ajax/bindCard/', {"code":code, "number":number, "auth_code":auth_code, "verification_code":verification_code}, function(ok){ + if(ok=='4'){ + jAlert('恭喜你,激活成功!', '温馨提示',function(e){ + location.reload(); + /*if(e){ + $.post('/ajax/cardBalance/', {"code":code}, function(b){ + if(b) { + c = parseFloat($("#jcard_price_max").html()); //可用优选卡支付的最大金额 + if(c>b) + $("#jcard_price").html(b); + else + $("#jcard_price").html(c); //可用优选卡支付的实际金额 + $("#jcard_price_total").html(b); //优选卡余额 + $("input[name=card_price_box]").attr("disabled",""); + if($("#card_price_append").css("display")=='none'){ + $("#card_price_append").css("display","block"); + } + if($("input[name=card_price_box]").attr("checked")==false){ + $("input[name=card_price_box]").click().change(); + $("#activate").parent().parent().find(".sfbtn").click(); + $("#activate input[class=text]").val(''); + }else{ + countPirce(); + } + //_activate('none'); + } + }); + }*/ + }); + } + if(ok=='-1'){ + jAlert('为了您的账户安全请先绑定手机后再激活优选卡','提示消息',function(e){ + if(e){ + _avFailTip(); + } + }); + } + if(ok=='5'){ + jAlert('您输入的优选卡信息错误或优选卡已被冻结,请稍后重试', '温馨提示',function(e){ + if(e){ + _avFailTip(); + } + }); + + } + + if(ok=='6'){ + jAlert('您输入的优选卡信息错误或优选卡已被冻结,请稍后重试', '温馨提示',function(e){ + if(e){ + _avFailTip(); + } + }); + } + if(ok=='-2'){ + jAlert('为了保障您的账户财产安全,请先开启支付密码再使用优选卡', '温馨提示',function(e){ + if(e){ + _avFailTip(); + } + }); + } + }); + }else{ + return false ; + } + }); + + } + + }); + return false; + + }); + + }) + //优选卡激活失败提示 + function _avFailTip(){ + $("#auth_code_img").attr("src", SF_WWW_URL+"/validate/?new="+Math.random()) ; + $('#code_error').html("验证码输入不正确."); + } + + function vcodeshow(){ + var sn = $('#CardNo').val(); + var str2_2 = sn.substr(2,2); + var str4_6 = sn.substr(4,6); + if ($.trim(sn)){ + if ('11'==str2_2 || ('00'==str2_2 && parseInt(str4_6)<120816)){ + $('#vcode').css('display', 'none'); + }else{ + $('#vcode').css('display', 'block'); + } + } + } + function clearTips(){ + $("input").each(function(){ + $(this).removeClass("inputTips"); + if($(this).val() == $(this).attr("def")){ + $(this).val(''); + } + }); + } + + function confirmCheck(){ + $("#orderSaveTip").removeClass("hide").html(''); + $(".orderSubmit").html(''); + if($("#userAddrId .orderCurr").css("display")=='none'){ + $("#orderSaveTip").removeClass("hide").html('请先保存收货人信息,再提交订单。'); + $(".orderSubmit").html(''); + }else if($("#payDataId .orderCurr").css("display")=='none'){ + $("#orderSaveTip").removeClass("hide").html('请先保存支付及配送方式,再提交订单。'); + $(".orderSubmit").html(''); + }else if($("#userInvoiceId .orderCurr").css("display")=='none'){ + $("#orderSaveTip").removeClass("hide").html('请先保存发票信息,再提交订单。'); + $(".orderSubmit").html(''); + }else if($("#giverAddrId .orderCurr").css("display")=='none'){ + $("#orderSaveTip").removeClass("hide").html('请先保存寄货信息,再提交订单。'); + $(".orderSubmit").html(''); + } + hideShowEditHref(); + } + //提交订单 + function orderSave(){ + clearTips(); + if($("#addresslist").is(":visible")){ + //$("#addrSave").click(); + //$("#addrConfirm").click(); + jAlert("请先确认收货地址"); + return; + } + + if($("#yingProce").html() < 0){ + //jAlert('尊敬的顾客,您的商品总金额小于10元,请再选择其它商品后继续购物。'); + $(".mini-charge").removeClass("hide"); + return; + } + + if(yuan2fen($("#countPrice").text()) >= 2000000 && $("input[name='payment']:checked").val() == 2){ + jAlert('很抱歉,订单应付总额超过2万元时不支持货到付款,请您选择其他支付方式'); + $("#paymentid").click(); + location.href="./#pay_ment"; + return; + } + + //校验输入的积分 + if($("input[name=points_price_box]").attr('checked')==true){ + /*if($.trim($("input[name=pay_pwd]").val())==''){ + jAlert('请输入支付密码'); + return false; + }*/ + if($('#sf_points_money_check').parent().css('display')!='none' || $('#user_points_money_check').parent().css('display')!='none'){ + jAlert('积分金额输入有误'); + return false; + } + } + + //if(!savePay()) return false; + if($("input[name='fapiao']:checked").val() == 1){ + if($('#Invoice_inv_type_0').attr('checked') != true){ + if(!checkInv()) return false; + }else{ + jAlert('请选择需要的发票类型'); + return false; + } + } + + $(".inputArea").focus(); + if($(".inputArea").val()){ + if($(".inputArea").val().length >140){ + jAlert("字数不能超过140"); + return false; + } + } + + //支付密码 + if($("input[name=card_price_box]").attr('checked')==true){ + //$(".payment-new0").removeClass("hide"); + if($.trim($("input[name=pay_pwd]").val())==''){ + jAlert('请输入支付密码'); + return false; + } + }else{ + $("input[name=pay_pwd]").val(''); + } + + var best_date = $("#best_date1").val(); + var best_time = $("#best_time1").val(); + if(best_time && !$(".dateSelect").is(":hidden")){ + if(!best_date){ + // jAlert('请选择订单的配送日期与时间'); + // return false; + } + } + + //检查支付密码 + if($("input[name=pay_pwd]").val()){ + var sp_status = 1; + var info = ''; + $.ajax({ + type: "POST", + url: "/order/checkPayPwd", + data: 'pay_pwd='+$("input[name=pay_pwd]").val(), + dataType:"text", + async: false, + success: function(da){ + var msg = eval('('+da+')'); + if(msg.status==-1){ + sp_status = 0; + info = msg.msg; + } + } + }); + + if(sp_status==0){ + jAlert(info); + return false; + } + } + + //检查赠品库存 + + var web_url = '/order/checkGift/?ock='+$('#order_cache_key').val(); + var dm = $("#dm").val(); + $.ajax({ + type: "POST", + url: web_url, + data: 'dm='+dm, + dataType:"text", + async: false, + success: function(data){ + var msg = eval('('+data+')'); + if(msg.status == 1){ + //jAlert(msg.info); + jConfirm(msg.info, '提示消息', function(r){ + if(r){ + var stop_url = '/order/stopActive/'; + $.ajax({ + type: "POST", + url: stop_url, + data: 'act='+msg.act, + dataType:"text", + async: false, + success: function(da){ + + }}); + + $("#save").attr('disabled',true); + $("#save").val('正在提交中...'); + $("#save").addClass('submitting'); + $("#order-create").submit(); + return true; + } else { + return false; + } + }); + }else if(msg.status == 2){//礼品袋缺货 由用户决定是否放弃礼品袋继续购买 + jConfirm(msg.info, '提示消息', function(r){ + if(r){ + $("#save").attr('disabled',true); + $("#save").val('正在提交中...'); + $("#save").addClass('submitting'); + $("#order-create").submit(); + } + }); + }else{ + $("#save").attr('disabled',true); + $("#save").val('正在提交中...'); + $("#save").addClass('submitting'); + $("#order-create").submit(); + } + + } + }); + + //jAlert("dd"); + //return false; + + + } + + //控制显示/隐藏每个模块的编辑功能链接 + function hideShowEditHref() { + if($(".orderCurr:hidden").length > 0 && $(".orderCurr:hidden").parent().parent().css("display") != 'none'){ + $(".addrAlter").each(function(){ + var $this = $(this); + if ($this.css('display') != 'none') { + $this.addClass("orderTip2") + .removeClass('addrAlter') + .html("如修改,请先保存" + $(".orderCurr:hidden").parent().parent().find(".orderTitle").html().split(":")[0]); + } + }); + } else { + $(".orderTip2").each(function(){ + $(this).addClass("addrAlter") + .removeClass('orderTip2') + .html('[修改]'); + }); + } + } diff --git a/e3-order-web/src/main/resources/static/js/shadow.js b/e3-order-web/src/main/resources/static/js/shadow.js new file mode 100644 index 0000000..b621a16 --- /dev/null +++ b/e3-order-web/src/main/resources/static/js/shadow.js @@ -0,0 +1,30 @@ +jQuery.fn.center = function(loaded) { + var obj = this; + body_width = parseInt($(window).width()); + body_height = parseInt($(window).height()); + block_width = parseInt(obj.width()); + block_height = parseInt(obj.height()); + + left_position = parseInt((body_width/2) - (block_width/2) + $(window).scrollLeft()); + if (body_width + + \ No newline at end of file diff --git a/e3-order-web/src/main/resources/templates/commons/header.html b/e3-order-web/src/main/resources/templates/commons/header.html new file mode 100644 index 0000000..57ebeda --- /dev/null +++ b/e3-order-web/src/main/resources/templates/commons/header.html @@ -0,0 +1,17 @@ + +
        + +
        + + +
        + \ No newline at end of file diff --git a/e3-order-web/src/main/resources/templates/commons/shortcut.html b/e3-order-web/src/main/resources/templates/commons/shortcut.html new file mode 100644 index 0000000..65fc106 --- /dev/null +++ b/e3-order-web/src/main/resources/templates/commons/shortcut.html @@ -0,0 +1,144 @@ + +
        +
        + + + +
        + + +
        + \ No newline at end of file diff --git a/e3-order-web/src/main/resources/templates/order-cart.html b/e3-order-web/src/main/resources/templates/order-cart.html new file mode 100644 index 0000000..57fa59b --- /dev/null +++ b/e3-order-web/src/main/resources/templates/order-cart.html @@ -0,0 +1,188 @@ + + + + + + + + + + + 订单结算页 -宜立方商城 + + + + + + + + + + + + + + +
        +
        +
        + + + +
        + + + + + + +
        + + + + + + +
        +

        填写并核对订单信息

        +
        +

        收货人信息:[修改]

        +
        +
        +
          +
        • 入云龙    15800888888    北京市  昌平区  北七家镇 + 修正大厦 +
        • +
        +
        +
        +
        +
        +

        支付及配送方式: + [修改] +

        +
        +
        +
        在线支付
        +
        +
        +
        + 订单1 +
        +
        + 宜立方速运负责配送。
        商品下单后尽快为您发货 +
        +
        + +
        +
        + +
        +
        +
        +
        + +
        + +

        发票信息:[修改]

        +
        +
        +
        暂不需要发票
        +
        +
        +
        +
        +
        +
        + +

        商品信息:

        + +
        +
        + +
        +
        +
        + 商品下单后尽快为您发货 +
        +
        +
        +
        商品图片
        +
        商品名称
        +
        单价
        +
        返现
        +
        库存状态
        +
        数量
        +
        重量(含包装)
        +
        小计
        +
        +
        +
        + + + +
        + +
        ¥[[${cart.price / 100 }]]
        +
        ¥0
        +
        现货
        +
        [[${cart.num}]]
        +
        0.72kg
        +
        ¥[[${cart.price / 100 * cart.num}]]
        + +
        +
        + 运费小计: ¥10 +
        +
        +
        +
        +
        +
        +
        + +
        +
        +
        商品总重量:0.72kg(含包装)
        +
        +
        +
        +
        1 件商品,总商品金额:
        + ¥[[${#aggregates.sum(cartList.![price * num]) / 100}]] +
        +
        +
        运费金额:
        + ¥10 +
        +
        +
        应付总额:
        + ¥[[${#aggregates.sum(cartList.![price * num]) / 100 + 10}]] +
        +
        +
        +
        +
        +
        +
        +
        +
        +
        + +
        +
        + 应付总额: + ¥ + [[${#aggregates.sum(cartList.![price * num]) / 100 + 10}]] +
        + +
        +
        +
        + +
        + + \ No newline at end of file diff --git a/e3-order-web/src/main/resources/templates/success.html b/e3-order-web/src/main/resources/templates/success.html new file mode 100644 index 0000000..15aca7d --- /dev/null +++ b/e3-order-web/src/main/resources/templates/success.html @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + 订单成功页面 - 宜立方商城 + + + +
        + +
        +
        +
        +
        +
        +
        + + 订单提交成功,请您及时付款,以便尽快为您发货~ + + 请您在提交订单后 4小时 内完成支付,超时订单会自动取消。 订单号:[[${orderId}]] +
        + 应付金额 : ¥ [[${payment}]] +
        +
        +
        支付平台 + 了解银行限额 +
        +
        + +
        +
        支付网银
        + + +
        +
        +
        + + + \ No newline at end of file diff --git a/e3-order/e3-order-interface/pom.xml b/e3-order/e3-order-interface/pom.xml new file mode 100644 index 0000000..c3afe5b --- /dev/null +++ b/e3-order/e3-order-interface/pom.xml @@ -0,0 +1,23 @@ + + + + e3-order + guo.ping.e3mall + 1.0-SNAPSHOT + + 4.0.0 + + e3-order-interface + jar + + + + guo.ping.e3mall + e3-manager-pojo + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/e3-order/e3-order-interface/src/main/java/guo/ping/e3mall/order/pojo/OrderInfo.java b/e3-order/e3-order-interface/src/main/java/guo/ping/e3mall/order/pojo/OrderInfo.java new file mode 100644 index 0000000..3751f23 --- /dev/null +++ b/e3-order/e3-order-interface/src/main/java/guo/ping/e3mall/order/pojo/OrderInfo.java @@ -0,0 +1,26 @@ +package guo.ping.e3mall.order.pojo; + +import basepro.manager.pojo.TbOrder; +import basepro.manager.pojo.TbOrderItem; +import basepro.manager.pojo.TbOrderShipping; + +import java.io.Serializable; +import java.util.List; + +public class OrderInfo extends TbOrder implements Serializable { + private List orderItems; + private TbOrderShipping orderShipping; + public List getOrderItems() { + return orderItems; + } + public void setOrderItems(List orderItems) { + this.orderItems = orderItems; + } + public TbOrderShipping getOrderShipping() { + return orderShipping; + } + public void setOrderShipping(TbOrderShipping orderShipping) { + this.orderShipping = orderShipping; + } + +} diff --git a/e3-order/e3-order-interface/src/main/java/guo/ping/e3mall/order/service/OrderService.java b/e3-order/e3-order-interface/src/main/java/guo/ping/e3mall/order/service/OrderService.java new file mode 100644 index 0000000..ccdf92f --- /dev/null +++ b/e3-order/e3-order-interface/src/main/java/guo/ping/e3mall/order/service/OrderService.java @@ -0,0 +1,8 @@ +package guo.ping.e3mall.order.service; + +import guo.ping.e3mall.common.pojo.E3Result; +import guo.ping.e3mall.order.pojo.OrderInfo; + +public interface OrderService { + E3Result createOrder(OrderInfo orderInfo); +} diff --git a/e3-order/e3-order-service/pom.xml b/e3-order/e3-order-service/pom.xml new file mode 100644 index 0000000..d55a3ca --- /dev/null +++ b/e3-order/e3-order-service/pom.xml @@ -0,0 +1,59 @@ + + + + e3-order + guo.ping.e3mall + 1.0-SNAPSHOT + + 4.0.0 + + e3-order-service + jar + + + + guo.ping.e3mall + e3-manager-dao + 1.0-SNAPSHOT + + + guo.ping.e3mall + e3-order-interface + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-data-redis + + + org.springframework.boot + spring-boot-starter-test + test + + + + com.alibaba.boot + dubbo-spring-boot-starter + + + + com.github.sgroschupf + zkclient + + + log4j + log4j + + + + + + \ No newline at end of file diff --git a/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/OrderServiceApplicationStarter.java b/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/OrderServiceApplicationStarter.java new file mode 100644 index 0000000..31e0340 --- /dev/null +++ b/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/OrderServiceApplicationStarter.java @@ -0,0 +1,21 @@ +package guo.ping.e3mall.order; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.WebApplicationType; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; + +import java.util.concurrent.CountDownLatch; + +@MapperScan(value = "guo.ping.e3mall.manager.mapper") +@SpringBootApplication +public class OrderServiceApplicationStarter { + public static void main(String[] args) throws InterruptedException { + new SpringApplicationBuilder() + .sources(OrderServiceApplicationStarter.class) + .web(WebApplicationType.NONE) + .run(args); + CountDownLatch countDownLatch = new CountDownLatch(1); + countDownLatch.await(); + } +} diff --git a/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/config/MyRedisConfig.java b/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/config/MyRedisConfig.java new file mode 100644 index 0000000..4ee13f3 --- /dev/null +++ b/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/config/MyRedisConfig.java @@ -0,0 +1,28 @@ +package guo.ping.e3mall.order.config; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer; +import org.springframework.data.redis.serializer.StringRedisSerializer; + +@Configuration +public class MyRedisConfig { + + /** + * 通用的 RedisTemplate + * @param lettuceConnectionFactory + * @return + */ + @Bean + public RedisTemplate redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) { + RedisTemplate template = new RedisTemplate<>(); + template.setConnectionFactory(lettuceConnectionFactory); + template.setKeySerializer(new StringRedisSerializer()); + template.setValueSerializer(new GenericJackson2JsonRedisSerializer()); + template.setHashKeySerializer(template.getKeySerializer()); + template.setHashValueSerializer(template.getValueSerializer()); + return template; + } +} diff --git a/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/config/MySettingFileConfig.java b/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/config/MySettingFileConfig.java new file mode 100644 index 0000000..94c54c4 --- /dev/null +++ b/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/config/MySettingFileConfig.java @@ -0,0 +1,10 @@ +package guo.ping.e3mall.order.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; + +@Configuration +@PropertySource("classpath:conf/conf.properties") +public class MySettingFileConfig { + +} diff --git a/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/service/impl/OrderServiceImpl.java b/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/service/impl/OrderServiceImpl.java new file mode 100644 index 0000000..c05400a --- /dev/null +++ b/e3-order/e3-order-service/src/main/java/guo/ping/e3mall/order/service/impl/OrderServiceImpl.java @@ -0,0 +1,75 @@ +package guo.ping.e3mall.order.service.impl; + +import com.alibaba.dubbo.config.annotation.Service; +import guo.ping.e3mall.common.pojo.E3Result; +import guo.ping.e3mall.manager.mapper.TbOrderItemMapper; +import guo.ping.e3mall.manager.mapper.TbOrderMapper; +import guo.ping.e3mall.manager.mapper.TbOrderShippingMapper; +import guo.ping.e3mall.order.pojo.OrderInfo; +import guo.ping.e3mall.order.service.OrderService; +import basepro.manager.pojo.TbOrderItem; +import basepro.manager.pojo.TbOrderShipping; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.data.redis.core.RedisTemplate; + +import java.util.Date; +import java.util.List; + +@Service +public class OrderServiceImpl implements OrderService { + + @Autowired + private TbOrderMapper orderMapper; + @Autowired + private TbOrderItemMapper orderItemMapper; + @Autowired + private TbOrderShippingMapper orderShippingMapper; + @Autowired + private RedisTemplate redisTemplate; + + @Value("${ORDER_GEN_KEY}") + private String ORDER_GEN_KEY; + @Value("${ORDER_ID_BEGIN}") + private Integer ORDER_ID_BEGIN; + @Value("${ORDER_ITEM_ID_GEN_KEY}") + private String ORDER_ITEM_ID_GEN_KEY; + + @Override + public E3Result createOrder(OrderInfo orderInfo) { + // 1、接收表单的数据 + // 2、生成订单id + if (!redisTemplate.hasKey(ORDER_GEN_KEY)) { + //设置初始值 + redisTemplate.opsForValue().set(ORDER_GEN_KEY, ORDER_ID_BEGIN); + } + String orderId = redisTemplate.opsForValue().increment(ORDER_GEN_KEY, 1L).toString(); + orderInfo.setOrderId(orderId); + orderInfo.setPostFee("0"); + //1、未付款,2、已付款,3、未发货,4、已发货,5、交易成功,6、交易关闭 + orderInfo.setStatus(1); + Date date = new Date(); + orderInfo.setCreateTime(date); + orderInfo.setUpdateTime(date); + // 3、向订单表插入数据。 + orderMapper.insert(orderInfo); + // 4、向订单明细表插入数据 + List orderItems = orderInfo.getOrderItems(); + for (TbOrderItem tbOrderItem : orderItems) { + //生成明细id + Long orderItemId = redisTemplate.opsForValue().increment(ORDER_ITEM_ID_GEN_KEY, 1L); + tbOrderItem.setId(orderItemId.toString()); + tbOrderItem.setOrderId(orderId); + //插入数据 + orderItemMapper.insert(tbOrderItem); + } + // 5、向订单物流表插入数据。 + TbOrderShipping orderShipping = orderInfo.getOrderShipping(); + orderShipping.setOrderId(orderId); + orderShipping.setCreated(date); + orderShipping.setUpdated(date); + orderShippingMapper.insert(orderShipping); + // 6、返回e3Result。 + return E3Result.ok(orderId); + } +} \ No newline at end of file diff --git a/e3-order/e3-order-service/src/main/resources/application.yaml b/e3-order/e3-order-service/src/main/resources/application.yaml new file mode 100644 index 0000000..49a89af --- /dev/null +++ b/e3-order/e3-order-service/src/main/resources/application.yaml @@ -0,0 +1,26 @@ +mybatis: + config-location: classpath:mybatis/SqlMapConfig.xml + mapper-locations: classpath:mybatis/mapper/*.xml + +spring: + datasource: + username: root + password: 123456 + url: jdbc:mysql://192.168.163.132:3307/e3mall + driver-class-name: com.mysql.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + redis: + timeout: 5000 +# redis-single + host: 192.168.163.132 + port: 6380 + +dubbo: + application: + name: e3-order + registry: + address: zookeeper://192.168.163.132:2181 + scan: + basePackages: guo.ping.e3mall.order.service + protocol: + port: 20885 \ No newline at end of file diff --git a/e3-order/e3-order-service/src/main/resources/conf/conf.properties b/e3-order/e3-order-service/src/main/resources/conf/conf.properties new file mode 100644 index 0000000..ff0d10f --- /dev/null +++ b/e3-order/e3-order-service/src/main/resources/conf/conf.properties @@ -0,0 +1,3 @@ +ORDER_GEN_KEY=ORDER_ID_GEN +ORDER_ID_BEGIN=10000 +ORDER_ITEM_ID_GEN_KEY=ORDER_ITEM_ID_GEN \ No newline at end of file diff --git a/e3-order/e3-order-service/src/main/resources/mybatis/SqlMapConfig.xml b/e3-order/e3-order-service/src/main/resources/mybatis/SqlMapConfig.xml new file mode 100644 index 0000000..d6375a4 --- /dev/null +++ b/e3-order/e3-order-service/src/main/resources/mybatis/SqlMapConfig.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/e3-order/pom.xml b/e3-order/pom.xml new file mode 100644 index 0000000..8744d8d --- /dev/null +++ b/e3-order/pom.xml @@ -0,0 +1,28 @@ + + + + e3-parent + guo.ping.e3mall + 1.0-SNAPSHOT + ../e3-parent/pom.xml + + 4.0.0 + + e3-order + pom + + e3-order-interface + e3-order-service + + + + + guo.ping.e3mall + e3-common + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/e3-portal-web/pom.xml b/e3-portal-web/pom.xml new file mode 100644 index 0000000..f826186 --- /dev/null +++ b/e3-portal-web/pom.xml @@ -0,0 +1,74 @@ + + + + e3-parent + guo.ping.e3mall + 1.0-SNAPSHOT + ../e3-parent/pom.xml + + 4.0.0 + + e3-portal-web + jar + + e3-portal-web + + + UTF-8 + 1.7 + 1.7 + + + + + guo.ping.e3mall + e3-content-interface + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + com.alibaba.boot + dubbo-spring-boot-starter + + + + com.github.sgroschupf + zkclient + + + log4j + log4j + + + + + + + e3-portal-web + + + org.springframework.boot + spring-boot-maven-plugin + + + + + \ No newline at end of file diff --git a/e3-portal-web/src/main/java/guo/ping/e3mall/portal/PortalWebApplicationStarter.java b/e3-portal-web/src/main/java/guo/ping/e3mall/portal/PortalWebApplicationStarter.java new file mode 100644 index 0000000..fae575a --- /dev/null +++ b/e3-portal-web/src/main/java/guo/ping/e3mall/portal/PortalWebApplicationStarter.java @@ -0,0 +1,11 @@ +package guo.ping.e3mall.portal; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class PortalWebApplicationStarter { + public static void main(String[] args) { + SpringApplication.run(PortalWebApplicationStarter.class, args); + } +} diff --git a/e3-portal-web/src/main/java/guo/ping/e3mall/portal/config/MySettingFileConfig.java b/e3-portal-web/src/main/java/guo/ping/e3mall/portal/config/MySettingFileConfig.java new file mode 100644 index 0000000..02261ea --- /dev/null +++ b/e3-portal-web/src/main/java/guo/ping/e3mall/portal/config/MySettingFileConfig.java @@ -0,0 +1,10 @@ +package guo.ping.e3mall.portal.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; + +@Configuration +@PropertySource("classpath:conf/conf.properties") +public class MySettingFileConfig { + +} diff --git a/e3-portal-web/src/main/java/guo/ping/e3mall/portal/controller/IndexController.java b/e3-portal-web/src/main/java/guo/ping/e3mall/portal/controller/IndexController.java new file mode 100644 index 0000000..e75d0c7 --- /dev/null +++ b/e3-portal-web/src/main/java/guo/ping/e3mall/portal/controller/IndexController.java @@ -0,0 +1,29 @@ +package guo.ping.e3mall.portal.controller; + +import com.alibaba.dubbo.config.annotation.Reference; +import guo.ping.e3mall.content.service.ContentService; +import basepro.manager.pojo.TbContent; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; + +import java.util.List; + +@Controller +public class IndexController { + + @Value("${CONTENT_BANNER_ID}") + private Long CONTENT_BANNER_ID; + + @Reference + private ContentService contentService; + + @RequestMapping({"/index", "/", "index.html"}) + public String showIndex(Model model) { + List contentList = contentService.getContentList(CONTENT_BANNER_ID); + model.addAttribute("ad1List", contentList); + return "index"; + } + +} diff --git a/e3-portal-web/src/main/resources/application.yaml b/e3-portal-web/src/main/resources/application.yaml new file mode 100644 index 0000000..57c1f54 --- /dev/null +++ b/e3-portal-web/src/main/resources/application.yaml @@ -0,0 +1,9 @@ +#tomcat conf +server: + port: 8082 +#dubbo conf +dubbo: + application: + name: e3-port-web + registry: + address: zookeeper://192.168.163.132:2181 \ No newline at end of file diff --git a/e3-portal-web/src/main/resources/conf/conf.properties b/e3-portal-web/src/main/resources/conf/conf.properties new file mode 100644 index 0000000..52a49c8 --- /dev/null +++ b/e3-portal-web/src/main/resources/conf/conf.properties @@ -0,0 +1 @@ +CONTENT_BANNER_ID=89 \ No newline at end of file diff --git a/e3-portal-web/src/main/resources/static/css/base_w1200.css b/e3-portal-web/src/main/resources/static/css/base_w1200.css new file mode 100644 index 0000000..4ca256c --- /dev/null +++ b/e3-portal-web/src/main/resources/static/css/base_w1200.css @@ -0,0 +1,511 @@ +html {_background-image: url(about:blank);_background-attachment: fixed;} +body {color:#666666;font: 12px/150% Arial,Verdana,"宋体";margin: 0;padding:0;} +body {min-width:1200px;} +h1, h2, h3, h4, h5, h6, p, a, em, font, img, strong, b,dl, dt, dd,form, label,ol,ul,li,legend,span,input{margin:0;padding:0;} +ol,ul{list-style:none;} +img{border:0;} +a{text-decoration:none;color:#666666;} +a:hover{text-decoration:none;} +a.red{color:#FA6400;} +.clr{clear:both;display:block;font-size:0;height:0;line-height:0;overflow: hidden;padding:0px;margin:0px;} +.clear{clear:both;padding:0px;font-size:0px;margin:0px;height:0px;line-height:0;overflow:hidden;display:block;} +.clear1{clear:both;height:5px;font-size:0px;margin:0px;padding:0px;line-height:0;overflow:hidden;display:block;} +.clear2{clear:both;height:10px;font-size:0px;margin:0px;padding:0px;line-height:0;overflow:hidden;display:block;} +.fl{float:left;} +.fr{float:right;} +.hide{display:none;} +em{font-style:normal;} +input{outline:none;} + +/*顶部浮动*/ +.topMenu{width:100%;height:33px;text-align:center;position:relative;z-index:101;padding:0px;background:#f7f7f7;border-bottom:1px solid #eeeeee;} +.topMenu a{color:#969696;} +.topMenu a:hover{color:#669900;} +.pW{width:1200px;margin:auto;} +.topTh li{float:left;position:relative;line-height:33px;} +.topTh .d2{padding:0 10px 0 28px;} +/*首页城市选择遮罩层*/ +.indexshadow{font-size:14px;width:580px;background-color:#fff;border:5px #767574 solid;position:absolute;top:0;left:0;display:none;z-index:99999;} +#screen{width:100%;height:100%;position:absolute;top:0;left:0;display:none;z-index:9999;background-color:#666;opacity:0.7;filter:alpha(opacity=70);-moz-opacity:0.7;} +.indexshadow .city_top{height:50px; padding-left:10px;border-bottom:1px solid #DCDCDC; line-height:50px;} +.indexshadow .city_top span{ float:left; font-size:12px; color:#000;} +.indexshadow .city_top .taddress{ +padding:0 10px 0 10px; +height:26px; +line-height:26px; +background-image: -moz-linear-gradient(top, #65BC02, #6DC403); /*火狐*/ +background: -o-linear-gradient(top, #65BC02 0%,#6DC403 100%);/*Opera*/ +background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #65BC02), color-stop(1,#6DC403)); /*Chrome*/ +filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#65BC02', endColorstr='#6DC403', GradientType='0'); /*IE*/ +background: -ms-linear-gradient(top,#65BC02 0%,#6DC403 100%); /*IE10以上*/ +border-radius:2px; +font-size:14px; +font-weight:bold; +text-align:center; +margin:10px 0 0 0; +} +.indexshadow .city_top .taddress a{color:#FFF; } +.indexshadow .city_middle{margin:0px 0px 5px 0px;padding-left:10px;} +.indexshadow .city_middle ul li{width:45px; height:40px; line-height:40px; float:left; text-align:center;} +.indexshadow .city_middle ul li a{ color:#0099FF;} +.indexshadow .city_bottom{margin:5px 0px 0px 0px; padding-bottom:10px;} +.indexshadow .city_bottom .quyu{ float:left; text-align:center; height:35px; line-height:35px; width:95px; border-top:1px solid #f5f5f5;border-right:1px solid #f5f5f5; color:#969696;} +.indexshadow .city_bottom ul{ width:100%;*width:480px;border-top:1px solid #f5f5f5;} +.indexshadow .city_bottom ul li{ color:#333333; float:left; height:35px; width:50px; text-align:center; height:35px; line-height:35px; cursor:pointer;} +.indexshadow .city_bottom .huadong .on{background:url(../images/foot/icity_bg.png) center bottom no-repeat; color:#FFF;z-index:2; position:relative; bottom:-1px;} +.indexshadow .city_bottom .htcity{margin:0 0 0 95px; width:480px; overflow:hidden; z-index:1; position:relative;} +.indexshadow .city_bottom .htcity dl{text-align:center; width:100%; float:left;background:#f9f9f9;border-top:1px solid #69af05;} +.indexshadow .city_bottom .htcity dl dd a{ padding-left:2px; text-align:center; width:65px; height:25px; line-height:25px; overflow:hidden; float:left;text-decoration:none; color:#333333; display:block; font-size:12px;} +.indexshadow .city_bottom .htcity dl dd a:hover{ color:#669900;text-decoration:none;} +.indexshadow .city_bottom .htcity dl dd a.city-long{padding-left:2px; text-align:center; width:132px; height:25px; line-height:25px; overflow:hidden; float:left;text-decoration:none; color:#333333; display:block;} +.indexshadow .city_bottom .htcity dl dd a.city-long:hover{ color:#669900;text-decoration:none;} +/*顶部城市选择*/ +.topTh .d6 p{width:72px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .pshort{width:50px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .pmiddle{width:60px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .city_title{ margin:0 0 0 8px; *margin:0 0 0 -10px; width:48px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 .city_title1{ margin:0 0 0 5px; *margin:0 0 0 -10px; width:30px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 .city_title2{ margin:0 0 0 5px; *margin:0 0 0 -10px; width:40px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 b{background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;position:absolute;top:15px;right:5px;} +.topTh .d6.hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .d6 .blank,.topTh .d6 .outline{width:72px;} + +.topTh .blank1,.topTh .outline1{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank1{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:50px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .outline1{z-index:1;left:6px;width:50px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .blank2,.topTh .outline2{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank2{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:60px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .outline2{z-index:1;left:6px;width:60px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .d6 .dd{display:none; width:438px;border:1px solid #DCDCDC; text-align:left; margin:0;} +.topTh .d6.hover .blank{top:6px;height:22px;z-index:-1; margin:0;} +.topTh .d6.hover .outline{z-index:1;top:25px; left:1px;} +.topTh .d6.hover .blank1{top:6px;height:22px;z-index:-1; margin:0; display:block;} +.topTh .d6.hover .outline1{z-index:1;top:25px; left:1px;display:block;} +.topTh .d6.hover .blank2{top:6px;height:22px;z-index:-1; margin:0; display:block;} +.topTh .d6.hover .outline2{z-index:1;top:25px; left:1px;display:block;} +.topTh .d6 .city_top{ margin:5px 10px 5px 10px;height:30px; border-bottom:1px solid #DCDCDC; line-height:30px;} +.topTh .d6 .city_top span{ float:left; color:#969696;} +.topTh .d6 .city_top .off{ height:25px; float:right;background: url(../images/index_icon_new.png) -245px -33px no-repeat;width:18px; height:18px; margin:5px 0 0 0; cursor:pointer;} +.topTh .d6 .city_middle{margin:0px 10px 5px 10px;} +.topTh .d6 .city_middle ul li{width:38px;} +.topTh .d6 .city_middle ul li a{ color:#0099FF;} +.topTh .d6 .city_bottom{margin:5px 10px 15px 10px; color:#969696;} +.topTh .d6 .city_bottom .quyu{ float:left; height:25px; line-height:25px; color:#969696;} +.topTh .d6 .city_bottom ul{ float:left; width:360px; *width:380px; display:inline;} +.topTh .d6 .city_bottom ul li{ width:40px; text-align:center; height:25px; line-height:22px; cursor:pointer; color:#333333;} +.topTh .d6 .city_bottom .huadong .on{background:url(../images/foot/city_bg.png) center bottom no-repeat; color:#FFF;} +.topTh .d6 .city_bottom .htcity dl{ text-align:center; float:left; width:425px;background:#F5F5F5; border-top:1px solid #669900; margin-top:-1px; } +.topTh .d6 .city_bottom .htcity dl dd a{ display:block; padding-left:10px; width:50px;line-height:25px; height:25px; float:left; text-align:center; overflow:hidden; color:#333333;} +.topTh .d6 .city_bottom .htcity dl dd a:hover{color:#669900;} +.topTh .d6 .city_bottom .htcity dl dd a.city-long{display:block; padding-left:10px; width:110px;line-height:25px; height:25px; float:left; text-align:center; overflow:hidden;} +.topTh .d3,.topTh .d4{width:30px;height:30px;} +.topTh .d1 { color:#969696;} +.topTh .d2 q,.topTh .d3 q,.topTh .d4 q{height:16px;position:absolute;top:9px;quotes:none;} +.topTh .d2 q{background:url(../images/header.png) no-repeat -73px -122px;width:10px;left:10px;transition:all 0.2s ease 0s;} +.topTh .d2.hover q{background:url(../images/header.png) no-repeat -73px -138px;} +.topTh .d2 .dd{display:none;top:32px;width:230px;left:-50px;padding:15px 0 0 0;} +.topTh .d2 .dd .sf-client{margin-bottom:10px;margin-left:15px;position:relative;text-align:left;} +.topTh .d2 .dd .client-img{width:73px;height:74px;overflow:hidden;background:url(../images/header.png) no-repeat 0 -93px;display:block;} +.topTh .d2 .dd i{position:absolute;width:50px;height:29px;left:80px;top:5px;background:url(../images/header.png) no-repeat -73px -93px;display:block;} +.topTh .d2 .dd .client-txt{position:absolute;left:95px;top:34px;} +.topTh .d2 .dd .client-txt em{display:block;line-height:20px;} +.topTh .d2 .dd .client-txt strong{color:#76ac25;line-height:20px;} +.topTh .d2 .dd .client-promo{height:30px;background:url(../images/indexImg20130307.png?v=1.4) no-repeat -182px -210px #fcfbe4;text-align:center;color:#fa6400;font-size:14px;font-weight:bold;line-height:30px;} +.topTh .d2 .dd .client-promo a:link,.topTh .d2 .dd .client-promo a:visited{color:#fa6400;} +.topTh .d2 .dd .app-btn{font-size:0;height:29px;margin:0 0 10px 15px;} +.topTh .d2 .dd .app-apple{float:left;display:block;width:96px;height:29px;background:url(../images/header.png) no-repeat 0 -167px;margin-right:5px;_display:inline;} +.topTh .d2 .dd .app-android{float:left;display:block;width:96px;height:29px;background:url(../images/header.png) no-repeat 0 -196px;} +.topTh .d3 q{background:url(../images/header.png) no-repeat -55px 0;width:19px;left:12px;cursor:pointer;quotes:none;} +.topTh .d4 q{background:url(../images/header.png) no-repeat -74px 0;width:17px;left:8px; quotes:none;} +.topTh .d4 .dd{display:none;left:-50px;top:32px;} +.topTh .d4 .dd .sf_wx_t{ width:136px; height:20px; line-height:22px; color:#515151;} +.topTh .d4 .dd .sf_wx{display:block;width:136px;height:110px;background:url(../images/weixin.png) no-repeat top center #FFFFFF;} +.topTh .login{color:#999999;padding:0 10px;} +.topTh .login a:link,.topTh .login a:visited{color:#969696;} +.topTh .login a:hover{color:#669900;} +.topTh .logininfo{color:#666666;} +.topTh .myOrder{padding:0 10px;} +.topTh .menus{padding:0 10px 0 10px;width:60px;cursor:default; margin:6px 0 0 0; line-height:22px; } +.topMenu .fr b{position:absolute;right:5px;top:8px;background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;transition:transform .2s ease-in 0s;-webkit-transition:-webkit-transform .2s ease-in 0s;overflow:hidden;} +.topTh .allCat{padding:0 15px;cursor:default;*margin:0; margin:6px 0 0 0;line-height:22px;} +.topTh .allCat .site{color:#969696;} +.topTh .allCat s{position:absolute;right:0;top:8px;background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;transition:transform .2s ease-in 0s;-webkit-transition:-webkit-transform .2s ease-in 0s;overflow:hidden;} +.topTh .blank,.topTh .dd,.topTh .outline{display:none;position:absolute;border:1px solid #dadada;background-color:white;z-index:1000} +.topTh .blank{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:78px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .menus .blank{_margin-top:-6px;_height:37px;} +.topTh .menus .dd{ margin-left:5px;_margin-left:0px;line-height:22px;left:0;width:78px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;top:28px;} +.topTh .outline{z-index:1;left:6px;width:78px;height:8px;top:22px;border:0 none;overflow:hidden;} +.topTh .allCat .blank,.topTh .allCat .outline{width:81px;_width:86px;} +.topTh .allCat .blank{_margin-top:-6px;_height:37px;} +.topTh .allCat .dd{top:28px;width:815px;right:0; margin-right:-10px;left:auto;padding-top:10px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.allCat dl{float:left;width:200px;padding:15px 19px 0 20px;text-align:left;margin-bottom:10px;} +.allCat dl dt{font-weight:bold;margin-bottom:5px;font-size:16px;font-family:Microsoft Yahei; } +.allCat dl dd{line-height:20px;height:100px;overflow:hidden;} +.allCat dl dd a{ display:block;width:65px; float:left; line-height:30px; color:#666666;} +.allCat dl dd p{ width:100%;float:left;} +.allCat dl .dh1{ color:#669900;} +.allCat dl .dh2{color:#FA6400;} +.allCat dl .dh3{color:#646464;} +.allCat .line{background:url(../images/foot/line.jpg) center repeat-y; height:90px;width:5px; margin:20px 0 0 0;} +.allCat dl .fore1{height:auto;} +.topTh .allCat.hover s{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .hover .t{color:#669900;} +.topTh .hover .blank,.topTh .hover .dd,.topTh .hover .outline{display:block;} +.topMenu .fr .hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.tShow .corner{display:none;width:8px;height:15px;position: absolute;top:25px;left:8px;z-index:2;} +.tShow .corner .aBg,.tShow .corner .aCt{display: block;font-size: 0;height: 0;line-height: 0;overflow: hidden;width: 0;} +.tShow .aBg{border-left: 8px dashed rgba(0, 0, 0, 0);border-left: 8px dashed white\0;border-bottom: 8px solid #dadada;border-right: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed white\0;position: relative;border-top:0 none;} +.tShow .aCt{border-left: 8px dashed rgba(0, 0, 0, 0);border-left: 8px dashed white\0;border-bottom: 8px solid #ffffff;border-right: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed white\0;position: relative;border-top:0 none;margin:-7px 0 0 0px;} +:root .tShow .aBg{border-left: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed rgba(0, 0, 0, 0);} +:root .tShow .aCt{border-left: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed rgba(0, 0, 0, 0);} +*+html .tShow .aBg{border-left: 8px dashed white;border-right: 8px dashed white;} +*+html .tShow .aCt{border-left: 8px dashed white;border-right: 8px dashed white;} +*html .tShow .aBg{border-left: 8px dashed white;border-right: 8px dashed white;} +*html .tShow .aCt{border-left: 8px dashed white;border-right: 8px dashed white;} +.topTh .tShow.hover .corner{display:block;} +.topTh .d2 .corner{left:45px;} + +#header{padding:0;height:104px;width:1200px;margin:0 auto;} +.header_inner{width:1200px;margin:auto; position:relative;z-index:31;} +.header_inner .logo{width:240px;margin:0px;float:left;padding:5px 0px 0px 0px;position:relative;} +.header_inner .logo a.logoleft{display:block;position:absolute;left:0px;width:197px;padding:0px 0px 0px 0px;background:url(../images/logo66.png) 0px 0px no-repeat;_background:url(../images/indexImg20130307.jpg?v=1.1) -33px 0px no-repeat;height:66px;} +.header_inner .logo a.logoright{display:block;position:absolute;width:116px;right:0px;height:66px;background:url(../images/indexImg20130307.png?v=1.5) -160px 0px no-repeat;_background:url(../images/indexImg20130307.jpg?v=1.1) -160px 0px no-repeat;} +.header_inner .logo .logoright_best{margin-top:12px;} +.header_inner .logo div.logo-text{position:absolute;top:73px;left:0;color:#000;font-size:14px; font-family:Microsoft YaHei; clear:both;letter-spacing:1px; text-align:center;width:244px;} +.header_inner .logo div.logo-text font{font-family:Microsoft YaHei;font-size:14px; font-weight:bold;} +.header_inner .search{position:absolute;width:514px;margin:0px; padding:0px;right:248px;top:28px;} +.header_inner .search input.text{border:1px solid #669900;width:425px; height:34px; line-height:34px \9; padding:0 0 0 4px; vertical-align:middle; float:left;} +.header_inner .search input.submit{margin:0px;height:36px;width:80px;cursor:pointer;float:left;vertical-align:middle;border:0;background:url(../images/header.png) no-repeat -99px -179px; color:#FFF;} +.search_hot{clear:both;text-align:left;padding:4px 0px 0px 0px;} +.search_hot a{margin:0px 8px 0px 0px; color:#979797;} +.search_hot a:hover{color:#669900;} + +/*顶部购物车*/ +.shopingcar{width:146px;padding-left:48px;position:absolute;top:28px;right:0px;height:33px;border:1px solid #efefef;line-height:33px;font-size:12px;} +.shopingcar a:hover{color:#669900;} +.shopingcar s{background:url(../images/header.png) no-repeat -54px -16px;width:23px;height:21px;left:17px;position:absolute;top:4px;} +.shopingcar b#cartNum{position:absolute;top:-1px;left:154px;width:40px;height:34px;text-align:center;line-height:34px;background-color:#fa9600;color:white;font-size:16px;font-weight:600;} +.shopingcar ul li.nmlist {border: 0 none;} +.shopingcar ul li.nmline {border-bottom: 1px dashed #CCCCCC;height: 0;line-height: 0;margin: 0;overflow: hidden;padding: 0;} +.shopingcar ul li.nmtop {background-color: #F2F6ED;border-bottom: 1px solid #CCCCCC;height: 26px;line-height: 26px;margin: 0;overflow: hidden;padding: 0;} +.nmtitle {color: #1B6146;float: left;} +.nmtotal {float: right;} +.nmtotal font {color: #EA5404;font-size: 14px;font-weight: bold;} +.nmtotal a:link {color:#999999;} +#topCart.hover .blank,#topCart.hover #cart_lists,#topCart.hover .outline{display:block;position:absolute;border:1px solid #efefef;background-color:white;} +#topCart.hover .blank{top:-1px;height:33px;z-index:-1;left:-1px;width:194px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #efefef;} +#topCart.hover .outline{z-index:1;left:0;width:154px;height:8px;top:28px;border:0 none;} +#topCart.hover .t{color:#666666;} +#topCart .setCart{background:url(../images/header.png) no-repeat -102px -235px; margin:2px 0 0 0;} +#cart_lists{display:none;width:360px;right:-1px;_right:-2px;-moz-box-shadow:0 0 5px #efefef;-webkit-box-shadow:0 0 5px #efefef;box-shadow:0 0 5px #dadada;top:34px;} +#cart_lists .btn{display:none;} +.floatcar{padding:10px;width:340px;font-size:12px;font-weight:normal;line-height:20px;} +.floatcar1{padding:10px 0;} +.floatcar .nopro{ width:240px; height:42px; margin:0 0 0 85px; background:url(../images/header.png) no-repeat -99px -123px;} +.floatcar .nopro p{ padding-left:50px;} +.floatcar .nopro p span{ color:#969696;} +.floatcar .nopro p span .no_dl{ color:#669900;} +.floatcar .title{color:#6c6c6c;border-bottom:1px solid #1b6146;height:24px;} +.floatcar .total p{width:170px;float:left;} +#listCartNum{color:#ea5404;font-size:14px;font-weight:bold;} +.floatcar .total p font{color:#ea5404;font-size:18px;font-weight:bold; font-family:Arial, Helvetica, sans-serif;} +.floatcar ul{margin:0px;padding:0px;display:block;position:relative;max-height:195px;_height:201px;overflow:auto;} +.floatcar ul li{margin:0px; padding:12px 0px 12px 0px;height:40px;position:relative; border-bottom:1px dashed #ccc; line-height:18px;color:#565656;} +.floatcar ul li:hover{ background:#f5f5f5;} +.floatcar ul li .l{position:absolute;width:45px;height:45px;} +.floatcar ul li .l img{width:40px;height:40px;vertical-align:middle;border:1px solid #ccc;} +.floatcar ul li .c{position:absolute;width:200px;height:36px;left:48px;top:14px; overflow:hidden;} +.floatcar ul li .c a{color:#565656; text-decoration:none;} +.floatcar ul li .c a:hover{color:#669900; text-decoration:none;} +.floatcar ul li .r{position:absolute; text-align:right;width:80px;height:36px;right:0px;} +.floatcar ul li .r font{color:#f05404;font-size:14px;font-weight:bold;} +.floatcar ul li .r a{clear:both;color:#999999; text-decoration:none} +.floatcar ul li .r a:hover{ text-decoration:underline} +/*----页头---*/ +.mainNav{width:100%;height:32px;border-bottom:2px solid #679800;_overflow:hidden;} +.navmenu{margin:0px auto;color:#303437;padding:0;width:1200px;clear:both;} +.navmenu .categories{float:left;width:200px;background:#76ac25;height:34px;text-align:left;position:relative;z-index:100} +.navmenu .categories .dt{height:34px;overflow:hidden; background:url(../images/cate_bg.jpg);} +.navmenu .categories a.topall{height:32px;line-height:32px;display:block;margin:0px; padding:0px;color:#fff;font-size:14px; font-family:Microsoft YaHei; font-weight:bold;width:200px; text-align:center; text-decoration:none;} +.navmenu .categories.hover b{ position:absolute;top:32px;border-top:2px solid #659900;height:0px;line-height:0;width:100%;overflow:hidden;background:0 none;right:auto;} +.menu1{width:1000px;float:right;position:relative;z-index:30} +.menu1 ul{width:1000px;overflow:hidden;height:32px; line-height:32px;} +.menu1 li{float:left;text-align:center;color:#303437;} +.menu1 li a{ padding:0 24px; font-size:14px; text-align:center;text-decoration:none;display:block;height:32px;font-family:Microsoft YaHei;color:#333;font-weight:700;} +.menu1 li a:hover{font-size:14px;color:#669900;text-decoration:none} +.menu1 li a.btndown{color:#669900;} +.menu1 .minisite{float:left;font-family:Microsoft YaHei;} +.menu1 .minisite1{border-left:1px solid #DCDCDC; height:14px; line-height:14px; margin:8px 0 0 0;} +.menu1 .minisite a{text-align:right; color:#333;font-size:12px;padding:0 17px;} +.menu1 .minisite a:hover{color:#669900;font-size:12px;} +.menu1 .ad{float:right; width:196px; height:32px; overflow:hidden;} +.menu1 .ad a{ padding:0;} +.menu1 .ad img{ width:196px; height:32px;} +.catTag{background-color:#fa9600;color:white;position:absolute;z-index:999;height:16px;line-height:16px;padding:0 2px;top:-6px;} +.catTag b{width:0;height:0;line-height:0;font-size:0;border-left:2px solid #fa9600;border-top:2px solid #fa9600;border-right:2px dashed white;border-bottom:2px dashed white;position:absolute;left:4px;top:16px;} +#catTag_1{left:155px;} +#catTag_2{left:260px;} +#catTag_3{left:365px;} +#catTag_4{left:472px;} +/*公共头部品类菜单显示*/ +#public_cate .dd{display:none;} +#public_cate.hover .dd{display:block;} +/*---------品类菜单 ----------*/ +#allSort{margin:0;z-index:998;padding:0;width:200px;height:480px;position:absolute;background-color:#76ac25;} +#booksort{padding-top:8px;padding-left:15px;} +#booksort .item{height:58px;} +#booksort .item .i-master{display:block;height:54px;padding-left:15px;font-family:Microsoft YaHei;} +#booksort .item .i-master a{color:white; margin-left:2px;} +#booksort .item .i-master a:hover{color:#fa9600;} +#booksort .item h3{font-weight:normal;font-size:14px;padding-top:5px;line-height:22px;} +#booksort .item .subCat{font-size:12px;overflow:hidden;line-height:20px;height:20px;} +#booksort .item .subCat a{ color:#ddeac8;} +#booksort .item .subCat li{float:left;margin-right:8px;_display:inline;} +#booksort .item .i-cm{position:absolute;top:0;left:200px;width:560px;height:480px;background:#ffffff;z-index:999;filter:alpha(opacity=98);opacity:0.98;display:none;} +#booksort .item .i-master s{position:absolute;width:11px;height:54px;background-color:white;left:190px;z-index:1000;display:none;margin-top:-47px;} +#booksort .item .i-master h3 .fresh{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px 5px; margin-left:-20px;float :left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .drinks{ width:14px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -46px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .food{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -104px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .pastry{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -157px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .oil{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -265px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .baby{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -319px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .health{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -373px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .tea{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -212px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .tools{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -428px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-cm{display:block;} +#booksort .item.hover .i-master{background-color:white;color:#76ac25;margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3{ margin-left:10px;} +#booksort .item.hover .i-master .subCat{margin-left:10px;} +#booksort .item.hover .i-master a{color:#76ac25;text-decoration:none;} +#booksort .item.hover .i-master a:hover{text-decoration:underline;} +#booksort .item.hover .i-master s{display:block;} +#booksort .item.hover .i-master h3 .fresh{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 5px; margin-left:-20px;float :left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .drinks{ width:14px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -46px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .food{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -104px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .pastry{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -157px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .oil{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -265px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .baby{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -319px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .health{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -373px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .tea{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -212px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .tools{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -428px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +/*2015/12/8分类图标修改 Start*/ +#booksort .item .i-master .dev .fresh{background:url(../images/left_lm_m_a.png) no-repeat 0 5px;}/*肉类海鲜*/ +#booksort .item .i-master .dev .baby{background:url(../images/left_lm_m_a.png) no-repeat 0 -324px;}/*熟食蛋奶*/ +#booksort .item .i-master .dev .pastry{background:url(../images/left_lm_m_a.png) no-repeat 0 -159px;}/*水果蔬菜*/ +#booksort .item .i-master .dev .drinks{background:url(../images/left_lm_m_a.png) no-repeat 0 -47px;}/*酒水饮料*/ +#booksort .item .i-master .dev .food{background:url(../images/left_lm_m_a.png) no-repeat 0 -106px;}/*休闲食品*/ +#booksort .item .i-master .dev .tea{background:url(../images/left_lm_m_a.png) no-repeat 0 -213px;}/*冲调茶饮*/ +#booksort .item .i-master .dev .oil{background:url(../images/left_lm_m_a.png) no-repeat 0 -270px;}/*粮油副食*/ +#booksort .item .i-master .dev .health{background:url(../images/left_lm_m_a.png) no-repeat 0 -378px;}/*南北干货*/ +#booksort .item.hover .i-master .dev .fresh{background:url(../images/left_lm_m.png) no-repeat 0 5px;}/*肉类海鲜*/ +#booksort .item.hover .i-master .dev .baby{background:url(../images/left_lm_m.png) no-repeat 0 -324px;}/*熟食蛋奶*/ +#booksort .item.hover .i-master .dev .pastry{background:url(../images/left_lm_m.png) no-repeat 0 -159px;}/*水果蔬菜*/ +#booksort .item.hover .i-master .dev .drinks{background:url(../images/left_lm_m.png) no-repeat 0 -47px;}/*酒水饮料*/ +#booksort .item.hover .i-master .dev .food{background:url(../images/left_lm_m.png) no-repeat 0 -106px;}/*休闲食品*/ +#booksort .item.hover .i-master .dev .tea{background:url(../images/left_lm_m.png) no-repeat 0 -213px;}/*冲调茶饮*/ +#booksort .item.hover .i-master .dev .oil{background:url(../images/left_lm_m.png) no-repeat 0 -270px;}/*粮油副食*/ +#booksort .item.hover .i-master .dev .health{background:url(../images/left_lm_m.png) no-repeat 0 -378px;}/*南北干货*/ +/*2015/12/8分类图标修改 End*/ +#booksort .i-cm .i-left{float:left;width:542px;} +#booksort .i-cm .i-right{float:right;width:205px;height:506px;} +#booksort .cat-sort{width:542px;height:248px;padding:8px 0 24px 10px;} +#booksort .cat-sort dl{overflow:hidden;zoom:1;font-family:Microsoft YaHei;padding:1px 0 0 0;} +#booksort .cat-sort dt{width:80px;padding-right:10px;float:left;text-align:right;height:18px;line-height:18px;margin:4px 0px;color:#76ac25;} +#booksort .cat-sort dt a{color:#76ac25;} +#booksort .cat-sort dt a:hover{ text-decoration:underline;} +#booksort .cat-sort dd{overflow:hidden;zoom:1;} +#booksort .cat-sort dd a{float:left;white-space:nowrap;display:block;text-decoration:none;font-size:12px;height:18px;line-height:18px;margin:4px 0px;text-align:left;padding:0px 6px;border-left:1px solid #ccc; color:#666;} +#booksort .cat-sort dd a:hover{text-decoration:none;color:#76ac25;} +#booksort .i-left .i-img img{width:560px;height:200px;} +#booksort .i-right .i-channel{height:54px;text-align:center;background-color:#f7f6f5;padding:16px 10px;font-family:Microsoft YaHei;} +#booksort .i-right .i-channel dt{color:#363636;font-size:16px;line-height:54px;margin-bottom:4px;} +#booksort .i-right .i-channel dt a:hover{ color:#669900;} +#booksort .i-right .i-channel em{ width:20px; height:20px;background:url(../images/index_icon_new.png) no-repeat -245px -55px; margin:18px 0 0 10px; *margin:0 0 0 10px; overflow:hidden; position:absolute;} +#booksort .i-right .i-channel em a{ display:block; cursor:pointer;width:20px; height:20px;} +#booksort .i-right .i-active{height:106px;padding:12px;font-family:Microsoft YaHei;} +#booksort .i-right .i-active dt{color:#76ac25;line-height:20px;margin-bottom:10px;font-weight:bold;} +#booksort .i-right .i-active dd a{display:block;line-height:24px;height:24px;overflow:hidden;} +#booksort .i-right .i-active dd a:hover{color:#669900;} +#booksort .i-right .i-brand{border-top:1px solid #e5e5e5;padding:10px;} +#booksort .i-right .i-brand dt{overflow:hidden;zoom:1;margin-bottom:10px;} +#booksort .i-right .i-brand .fl{color:#76ac25;font-family:Microsoft YaHei;font-weight:bold;} +#booksort .i-right .i-brand .fr{padding-right:5px;color:#666666;} +#booksort .i-right .i-brand .fr a{color:#666666;} +#booksort .i-right .i-brand .fr a:hover{ color:#669900;} +#booksort .i-right .i-brand dd{width:177px;margin:0 auto;overflow:hidden;zoom:1;border-top:1px solid #f2f2f2;border-left:1px solid #f2f2f2;} +#booksort .i-right .i-brand dd a{float:left;width:87px;height:56px;text-align:center;border-right:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;overflow:hidden;} +#booksort .i-right .i-brand img{width:56px;height:56px;} +#booksort .item .i-close{width:25px;height:25px;position:absolute;top:6px;right:6px;background:url(../images/index_icon_new.png) no-repeat -245px -1px;cursor:pointer;} +a.submit5{ margin:10px 0 0 0; display:block;font-size:14px;color:#fff;height:28px;line-height:28px;cursor:pointer;vertical-align:middle;vertical-align:baseline\9;text-decoration:none; width:110px; text-align:center; background:url(../images/productinfo.png) no-repeat -182px -234px;} +a.submit5:hover{color:#fff;background:url(../images/productinfo.png) no-repeat -182px -262px;} +/*--------页脚----------*/ +.pageFooter{ width:1200px;margin:0 auto;} +.pageFooter .middle{ float:left; width:290px; height:145px; margin:20px 0px 0px 10px; background:url(../images/foot/logo.jpg) no-repeat left top;} +.pageFooter .middle ul{ padding:85px 0 0 0;} +.pageFooter .middle .kefu{ font-size:20px; color:#646464; font-weight:bold; padding:6px 0;} +.pageFooter .left{float:left;margin:35px 0 0 0;width:235px;height:145px;} +.pageFooter .left ul{margin:0px;padding:0px 0px 0px 0px;float:left;} +.pageFooter .left ul li{font-size:14px;color:#666666;font-family:Microsoft YaHei;font-weight:bold;} +.pageFooter .left ul li.fWeibo{height:40px;line-height:40px;} +.pageFooter .left ul li.fWeibo span{display:block;width:29px;height:29px;float:left;background:url(../images/indexImg20130307.png?v=1.4) no-repeat -322px -70px;_background:url(../images/indexImg20130307.jpg) no-repeat -322px -70px;margin-right:4px;} +.pageFooter .left ul li.fWeibo font{float:left;font-size:14px;font-weight:bold;padding:0px 16px 0px 0px;} +.pageFooter .left ul li.fWeibo a{display:block;width:130px;height:36px;float:left;background:url(../images/footer_ico.jpg) no-repeat -7px -52px;} +.pageFooter .left ul li.fTel{height:36px;line-height:36px;} +.pageFooter .left ul li.fTel span{display:block;width:29px;height:29px;float:left;background:url(../images/indexImg20130307.png?v=1.4) no-repeat -358px -70px;_background:url(../images/indexImg20130307.jpg) no-repeat -358px -70px;margin-right:4px;} +.pageFooter .left ul li.fTel font{font-size:20px;padding:0px 0px 0px 10px;} +.pageFooter .left ul li.fNum{font-size:22px;color:#565656;font-weight:bold;} +.pageFooter .left .f_ios li{ width:80px;text-align:center;margin:0 50px 8px 0;*margin-right:25px; line-height:24px;} +.pageFooter .left .f_ios span{display:block;width:80px;height:80px;background:url(../images/foot_bottom.png) no-repeat 0px 0px;margin:auto;} +.pageFooter .left .f_wx li{ width:80px;text-align:center; margin:0 0 8px 0;line-height:24px;} +.pageFooter .left .f_wx span{display:block;width:80px;height:80px;background:url(../images/foot_bottom.png) no-repeat -83px 0px;margin:auto} +.pageFooter .left .f_icon{width:80px;} +.pageFooter .left .f_icon span{display:block;width:45px;height:45px;background:url(../images/footer_ico.jpg) no-repeat;margin:auto} +.pageFooter .left .f_icon span.a{background-position:-146px -5px;} +.pageFooter .left .f_icon span.b{background-position:-198px -5px;} +.pageFooter .left .f_icon span.c{background-position:-246px -5px;} +.pageFooter .left .f_tel{width:230px;text-align:left;font-size:12px;font-weight:normal;} +.pageFooter .right{float:left;margin:35px 0 0 0;width:645px;} +.pageFooter .right ul{float:left;margin:0px 8px 0px 0px;padding:0px 0px 0px 0px;width:120px;} +.pageFooter .right ul li{text-align:left;font-family:Microsoft YaHei;height:24px;line-height:24px;color:#646464;} +.pageFooter .right ul li a{color:#707070;display:block;padding:0px 0px 0px 0px;} +.pageFooter .right ul li.title{color:#707070;font-weight:bold;font-size:14px; } +.pageFooter .right ul li.title span{background:url(../images/footer_ico.jpg) no-repeat;display:block;height:26px;width:26px;float:left;margin:0px 9px 0px 0px} +.pageFooter .right ul li.title .style_a{background-position:-7px -5px;} +.pageFooter .right ul li.title .style_b{background-position:-39px -5px;} +.pageFooter .right ul li.title .style_c{background-position:-74px -5px;} +.pageFooter .right ul li.title .style_d{background-position:-109px -5px;} +.pageFooter .pic{height:44px;width:1200px;background:#ededed;text-align:center;padding:6px 0px 0px 0px;margin:0px 0px 0px 0px;clear:both;} +.pageFooter .pic span{display:block;height:40px;width:750px;background:url(../images/footer_ico.jpg) no-repeat -0px -120px;margin:auto;} +#footer{line-height:18px;color:#969696;width:100%; overflow:hidden;} +#footer a{color:#646464; text-decoration:none;} +#footer a:hover{ color:#669900; text-decoration:none;} +#footer .f_ios a:hover{color:#646464; text-decoration:none;} +#footer a.beian{color:#969696; text-decoration:none;} +#footer a.beian:hover{ color:#669900; text-decoration:none;} +#footer .footer_zd1{width:100%; border-bottom:1px solid #E0E0E0; margin:20px 0 0 0;} +#footer .footer_zd{height:120px;background:#F5F5F5;width:100%; margin:10px 0 0 0;} +#footer .footer_zd ul{ width:1200px; margin:0px auto;} +#footer .footer_zd ul li{width:300px;height:120px;float:left;} +#footer .footer_zd ul li a{ width:200px; cursor:pointer;display:block; height:60px;bblr:expression(this.onFocus=this.blur());outline-style:none; margin:30px 0 0 50px;} +#footer .quanqiu{background:url(../images/foot/qq.jpg) no-repeat center center;} +#footer .chandi{background:url(../images/foot/cd.jpg) no-repeat center center;} +#footer .qcll{background:url(../images/foot/qc.jpg) no-repeat center center;} +#footer .sfzd{background:url(../images/foot/sf.jpg) no-repeat center center;} +#footer .foot{ width:100%; height:285px;} +#footer .bottom{ width:1180px; height:50px; margin:0px auto; border-top:1px solid #E0E0E0; padding-top:15px;} +#footer .bottom_kx{ float:left; position:absolute; padding-top:6px;} +#footer .bottom_sm{ position:absolute; padding:6px 0 0 90px; float:left} +#footer .help{background:url(../images/helpbg.jpg) repeat-x top left #e6e6e6;height:177px;}#footer .help ul{width:720px;display:block;margin:8px 0px 0px 70px;#margin:8px 0px 0px 70px;_margin:8px 0px 0px 40px;padding:0px;float:left;}#footer .help ul li{float:left;width:180px;list-style:none;text-align:left;background:url(../images/footer_line.jpg) no-repeat 75% top;}#footer .help ul li h3{padding:0px 0px 4px 0px;margin:0px;font-size:14px;color:#7a6b56;display:block;font-weight:bold;}#footer .help ul li img{margin:0px 0px 0px 12px;}#footer .help ul li a{color:#6a6a6a;float:left;width:100px;height:18px;line-height:18px;display:block;text-decoration:none;background:url(../images/help_contenticon.gif) no-repeat 0% 50%;text-align:left;padding:2px 0px 2px 18px;font-size:13px;}#footer .help ul li a:hover{text-decoration:underline}#footer .help .tel{float:right;width:195px;border-left:0px solid #ccc;}#footer .service{background:url(../images/servicebg.jpg) repeat-y;}#footer .siteinfo{float:left; padding-left:182px;}#footer .siteinfo span{padding-left:13px;}/*邮件订阅*/.mailDY{width:302px;margin:0px auto;padding:15px 0 0 0;*padding:0;}.mailDYtit{overflow:hidden;zoom:1;}.mailDYtit h3{font-size:12px;float:left;color:#565656;}.mailDYtit span{float:right;color:#999999;padding:0px 20px 0px 0px}.mailDYtit span a:link{color:#999999;font-size:12px;}.mailDYtit span a:visited{color:#999999;}.mailDYtit span a:hover{color:#669900;}.mailDYitem{zoom:1;}.mailDYitem span{float:left;}.mailDYitem .ftitle{width:60px;}.mailDYitem .i{width:130px;height:22px;line-height:22px;padding:0 2px;border:1px solid #cccccc;margin-right:2px;display:inline; color:#969696;}.mailDYitem .input_on{width:140px;height:20px;line-height:20px;padding:0 2px;border:1px solid #669900;margin-right:2px;display:inline;}.on_changes{width:196px; position:absolute;border:1px solid #E8E8E8; display:none;background:#FFF; z-index:999; }.on_changes li{ height:22px; padding:0 0 0 5px;}.on_changes li.active{ background:#F9F9F9;}.mailDY a.dy{color:#656565; text-decoration:none; line-height:25px;}a.dy:visited{color:#656565; text-decoration:none;}.mailDY a.dy:hover{color:#669900; text-decoration:none;}.ydy{ border:1px solid #6AAF04; height:20px; width:191px; color:#6AAF04; position:absolute; padding:0 0px 0 5px;}.emailerr{width:191px;border:1px solid #FB9502; background:#FFEEE7; height:20px; color:#FA6501;position: absolute; padding:0 0px 0 5px;}.mailDYitem .btn{background:url(../images/foot_bottom.png) no-repeat -118px -106px;height:24px;width:44px;border:0;display:block;}.mailDYitem .s{height:22px;border:1px solid #cccccc;margin-right:3px;display:inline;}#store-selector,#store-selector_sfv,#store-selector1{float:left;height:26px;position:relative;z-index:91;}#store-selector.hover .text,#store-selector_sfv.hover .text,#store-selector1.hover .text{border-bottom:0 none;height:25px;z-index:1;}#store-selector .text,#store-selector_sfv .text,#store-selector1 .text{background:#FFFFFF;border:1px solid #CECBCE;float:left;height:22px;line-height:22px;overflow:hidden;padding:0 20px 0 4px;*margin-top:1px;position:relative;top:0;font-size:12px;font-weight:normal;}#store-selector .text b,#store-selector_sfv .text b,#store-selector1 .text b{background:url(../images/indexImg20130307.png?v=1.4) no-repeat -386px -2px;display:block;height:24px;overflow:hidden;position:absolute;right:0;top:0;width:17px;}#store-selector .area-list li,#store-selector_sfv .area-list li,#store-selector1 .area-list li{clear:none;padding:2px 0 2px 15px;font-size:12px;}#store-selector .tab li,#store-selector_sfv .tab li,#store-selector1 .tab li{clear:none;float:left;padding:0;}.SF-stock{position:relative;font-size:12px}.SF-stock .tab{border-bottom:2px solid #dadada;float:left;height:25px;overflow:visible;width:100%;_overflow:hidden;}.SF-stock .tab a{border-top:1px solid #DDDDDD;border-left:1px solid #DDDDDD;border-right:1px solid #DDDDDD;color:#CCCCCC;cursor:pointer;float:left;height:23px;line-height:23px;margin-right:3px;padding:0 21px 1px 11px;position:relative;text-align:center;}*html .SF-stock .tab a{position:static;}.SF-stock .tab a{color:#a6a6a6;text-decoration:none;font-size:12px;font-weight:normal;}.SF-stock .tab a:hover{color:#669900;}.SF-stock .tab a.hover{background-color:#FFFFFF;border-top:2px solid #dadada;border-left:2px solid #dadada;border-right:2px solid #dadada;color:#669900;height:25px;line-height:22px;padding:0 20px 0 10px;text-decoration:none;}.SF-stock .tab a i{background-image:url(../images/sf-stock.png);background-repeat:no-repeat;}.SF-stock .tab a i{background-position:0 -35px;display:block;height:5px;overflow:hidden;position:absolute;right:4px;top:10px;width:7px;}.SF-stock .tab a:hover i{background-position:0 -28px;right:4px;top:10px;}.area-list{padding-top:5px;}.area-list li{clear:none;float:left;padding:2px 0 2px 15px;width:80px;}.area-list li a{float:left;padding:2px 4px;text-decoration:none;font-size:12px;font-weight:normal;}.area-list li a:hover{background-color:#669600;color:#FFFFFF;}.area-list .longer-area{width:370px;}.area-list .long-area{width:170px;}.sfregionTop{width:400px;margin:60px 10px 0px 40px;}.sfregionTxt{line-height:26px;font-size:14px}.sfregionBuy{margin:40px 10px 0px 180px;}#store-selector .close,#store-selector_sfv .close,#store-selector1 .close{background:url(../images/index_icon_new.png) no-repeat -245px -33px;display:none;height:18px;left:345px; top:40px;position:absolute;width:18px;z-index:2;}#store-selector .tips{line-height:24px;color:red;padding:0 3px 0 0;}#store-selector.hover .content,#store-selector.hover .close,#store-selector_sfv.hover .content,#store-selector_sfv.hover .close,#store-selector1.hover .content,#store-selector1.hover .close{display:block;}#store-selector.hover .close,#store-selector_sfv.hover .close,#store-selector1.hover .close{cursor:pointer;}#store-selector .content,#store-selector_sfv .content,#store-selector1 .content{background:none repeat scroll 0 0 #FFFFFF;border:1px solid #CECBCE;box-shadow:0 0 5px #DDDDDD;display:none;left:-45px;padding:15px;position:absolute;top:25px;width:390px;}#store-selector .juli1{left:-250px;}#store-selector .juli2{left:140px;}.m,.mt,.mc{overflow:hidden;}.mt{cursor:default;}#store-selector1{height:24px;margin-right:3px;}#store-selector1 .text{height:22px;line-height:22px; overflow:hidden;}#store-selector1 .area-list{padding:5px 0 0 0;}#store-selector1 .area-list li{line-height:20px;height:20px;padding:2px 0;width:60px;overflow:hidden;}#store-selector1 .close{left:100px;}#store-selector1 .SF-stock ul.tab{padding:0;}#store-selector1.hover .content{width:300px;}#store-selector1 .content{left:-205px}input.submit1{font-size:12px;background-color:#6c9c0a;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 4px 0px 4px;height:22px;line-height:22px;cursor:pointer;vertical-align:middle;vertical-align:baseline\9;}input.submit1:hover{background:url(../images/productinfo.png) repeat-x 0 -124px;}.window{width:350px;border:3px solid #e6e6e6;position:absolute;margin-left:-150px;margin-top:-150px;top:50%;left:50%;background:#fff;}.window .content{padding:20px 12px 12px 12px;text-align:center;line-height:24px;font-size:14px;}.window .titlehead{background-color:#f5f5f5;height:31px;line-height:31px;border:0 none;}.window h3{width:150px;float:left;margin:0px;padding:0px 0px 0px 16px;font-size:14px;color:#565656;font-family:微软雅黑;}.window h3 img{border:0px;padding:0px;margin:0px;}.ac_results{padding:0px;border:1px solid #dadada;background-color:white;overflow:hidden;z-index:102;}.ac_results ul{width:100%;list-style-position:outside;list-style:none;padding:0;margin:0;}.ac_results li{margin:0px;padding:2px 5px;cursor:pointer;display:block;/*if width will be 100% horizontal scrollbar will apearwhen scroll mode will be used*//*width:100%;*/font:menu;font-family:arial,tahoma,宋体;font-size:12px;/*it is very important,if line-height not setted or settedin relative units scroll will be broken in firefox*/line-height:18px;overflow:hidden;}.ac_loading{background:#fff;}.ac_odd{/*background-color:#eee*/;}.jq_auto_complete_key{float:left;}.jq_auto_complete_results{float:right;color:#646464;}.jq_auto_complete_category_tip{padding-left:2em;color:#777;width:200px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}.jq_auto_complete_category_tip b{color:#669900}.ac_over{background-color:#f9f9f9;color:#646464;}.ac_over .jq_auto_complete_results,.ac_over .jq_auto_complete_category_tip{color:#646464;}/*彩贝合作帐号工具条*/.cb_bar{border:1px solid #aaa;height:24px;line-height:24px;width:1178px;margin:auto;padding:0px 10px 0px 10px}.cb_bar .l{display:block;float:left;width:700px;}.cb_bar .r{display:block;float:right;width:200px;color:#4c4747;text-align:right;}.cb_bar .alink{border-left:1px solid #add9fb;padding:0px 0px 0px 6px;color:#0066cc;}.cb_bar .l a{padding:0px;color:#0066cc;}.otherType{display:block;padding:5px;border-top:1px solid #f0f0f0;color:#ADADAD;}.otherType span{color:#adadad;}.inv_note{text-align:left;color:#ea5404;padding:0 0 3px 16px;line-height:20px;}.jq_auto_complete_key strong{font-weight:normal;} +.pages {margin:12px;text-align: right;font-size:14px;padding:0 0 10px 0} +.pages a {border:1px solid #dadada;color: #6b6b6b;margin: 2px;padding:3px 6px;text-decoration: none;} +.pages a:hover{border:1px solid #669900;color:#669900;} +.pages .pagedot{font-family:Arial;margin: 2px;padding:4px 6px;background-color:#f5f5f5;} +.pages .disabled {border:1px solid #dadada;color: #DDDDDD;margin: 2px;padding:3px 6px;} +.pages .prev{position:relative;padding-left:20px;} +.pages .next{position:relative;padding-right:20px;} +.pages .prev .prevarr {border-width:5px;border-color:#FFFFFF #ff0000 #FFFFFF #FFFFFF;border-style:dashed solid dashed dashed;height:0;width:0;font-size:0;overflow:hidden;position:absolute;left:4px;top:6px;} +*html .pages .prev .prevarr{top:7px;} +.pages .next .nextarr {border-width:5px;border-color:#FFFFFF #FFFFFF #FFFFFF #ff0000;border-style:dashed dashed dashed solid;height:0;width:0;font-size:0;overflow:hidden;position:absolute;right:4px;top:6px;} +*html .pages .next .nextarr{left:58px;top:7px;} +.pages .disabled .prevarr{border-color:#FFFFFF #dadada #FFFFFF #FFFFFF;} +.pages .disabled .nextarr{border-color:#FFFFFF #FFFFFF #FFFFFF #dadada;} +.pages a:hover {color: #176246;text-decoration: none;} +.pages a:active {border: 1px solid #4A2F24;color: #4A2F24;text-decoration: none;} +.pages .current {color: #ea5404;font-weight: bold;margin: 2px;padding:3px 6px;border:1px solid #ea5404;} +span.icon-cx {display: block;height: 46px;position: absolute;right: 5px;top: 5px;width: 46px;z-index: 90;} +.commAddr{padding:0 0 10px 0;overflow:hidden;zoom:1;} +.commAddr .ct{border-bottom:1px solid #196247;color:black;height:23px;margin-bottom:7px;} +.commAddr li{float:left;width:170px;height:20px;overflow:hidden;margin-right:10px;_display:inline;} +.backToTop{ background: url(../images/btntop.gif) no-repeat left top #FFFFFF;bottom: 10px;color: #FFFFFF;cursor: pointer;display: none;font-size: 12px;height: 55px;opacity: 0.8;padding: 0;position: fixed;right: 10px;width: 50px;} +.breadcrumb{overflow:hidden;} +.breadcrumb strong{font-family:Microsoft YaHei;font-size:16px;padding:0 7px 0 10px;} +.breadcrumb span{font-family:"宋体"} + +.side-wrap{position:fixed;bottom:20px;left:50%;margin-left:610px;z-index:999;} +* html .side-wrap{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0 +20)));} +.side-wrap .side-c{width:44px;height:44px;position:relative;margin-top:6px;} +.side-wrap .s-cart-smnum{position: absolute; top: -5px; right: 7px; width: 18px; text-align: center; color: #FA9600; border: 1px solid #dedede; height: 18px; line-height: 18px; border-radius: 10px; background-color: white;} +.side-wrap .s-cart-num{position: absolute; top: -5px; right: -9px; width: 34px; text-align: center; color: #FA9600; border: 1px solid #dedede; height: 18px; line-height: 18px; border-radius: 10px; background-color: white; overflow:hidden;} +.side-wrap .s-cart-add{background-color:#FA9600;color:white;border:1px solid #FA9600;} +.side-wrap .s-cart{background:url(../images/productList.png) no-repeat 0 -45px;width:42px;height:42px;display:block;border:1px solid #dadada;} +.side-wrap .s-guang{background:url(../images/productList.png) no-repeat -42px -82px;width:42px;height:42px;display:block;border:1px solid #dadada;} +.side-wrap .s-app{background:url(../images/productList.png) no-repeat -42px -40px;width:42px;height:42px;display:block;border:1px solid #dadada;text-indent:-9999px;overflow:hidden;} +.side-wrap .s-back{background:url(../images/productList.png) no-repeat -84px -142px;width:42px;height:42px;display:block;border:1px solid #dadada;} +.side-wrap .s-top{width:42px;height:42px;display:none;background:url(../images/productList.png) no-repeat 0 -82px;border:1px solid #dadada;} +.side-wrap a.s-cart:hover{background:url(../images/productList.png) no-repeat 0 -147px;} +.side-wrap a.s-guang:hover{background:url(../images/productList.png) no-repeat -42px -184px;} +.side-wrap a.s-app:hover{background:url(../images/productList.png) no-repeat -42px -142px;} +.side-wrap a.s-back:hover{background:url(../images/productList.png) no-repeat -84px -184px;} +.side-wrap a.s-top:hover{background:url(../images/productList.png) no-repeat 0 -184px;} +.side_pos{right:10px;left:auto;margin-left:0;} +.side_pos .s-guang,.side_pos .s-cart,.side_pos .s-app,.side_pos .s-top{filter:alpha(opacity=80);opacity:0.8;} +.listpic-mini{position:absolute;width:60px;height:60px;border:1px solid #dadada;overflow:hidden;z-index:98;} +.listpic-mini img{width:60px;height:60px;} +.cart-shopping,.history,.appDown{position:absolute;right:44px;bottom:0px;width:372px;overflow:hidden;} +.cart-list,.his-list,.appItem{position:relative;bottom:0;border:1px solid #dadada;width:360px;background-color:white;} +.cart-list .floatcar,.his-list .floatcar{position:static;border:0 none;box-shadow:none;background-color:white;} +.cart-list .floatcar .btnhover,.his-list .floatcar .btnhover{top:-29px} +.cart-list .btn{display:none;} +.cart-list .cart-num{height:48px;text-align:center;color:#000000;display:none;} +.cart-list .cart-num-icon{background:url(../images/productList.png) no-repeat -88px -39px;height:18px;padding:0 0 0 25px;display:inline-block;margin-top:20px;} +.cart-list #add-num{color:#EA5404} +.cart-wrap .cart-arr{right:-8px;position:absolute;margin-left:-1px;bottom:160px;background:url(../images/productList.png) no-repeat -88px -88px;width:8px;height:15px;} +.guang .cart-num{text-align:center;color:#000000;padding:10px;border-bottom:1px solid #1B6146;} +.guang .cart-arr{right:-8px;position:absolute;margin-left:-1px;bottom:110px;background:url(../images/productList.png) no-repeat -88px -88px;width:8px;height:15px;} +.guang .floatcar ul,.cart-wrap .floatcar ul{max-height:260px;} +.guang .floatcar ul li .r a:link,.guang .floatcar ul li .r a:visited{color:#547e01;} +.floatcar ul li .c a{height:18px;overflow:hidden;display:block;} +.floatcar ul li .c b{font-weight:normal;color:#cecece} +#list_cart .title{color:#666666;} +.p-list .list-all .title-c,.l-buy .title-c,.p-guess .title-c,.fl-pic .title-c{height:40px;line-height:20px;overflow:hidden;} +.cx_icon{position:absolute;top:5px;} +#list_cart ul li.nmtop{background-color: #F2F6ED;border-bottom: 1px solid #CCCCCC;height: 26px;line-height: 26px;margin: 0;overflow: hidden;padding: 0;} +#list_cart ul li.nmlist{border: 0 none;} +#list_cart ul li.nmline{ border-bottom: 1px dashed #CCCCCC;height: 0;line-height: 0;margin: 0;overflow: hidden;padding: 0;} +.appDown .cart-arr{right:-8px;position:absolute;margin-left:-1px;bottom:63px;background:url(../images/productList.png) no-repeat -88px -88px;width:8px;height:15px;} +.appItem{padding:20px 0 0 0;} +.appItem .sf-client{margin-bottom:10px;margin-left:50px;position:relative;text-align:left;} +.appItem .client-img{width:115px;height:116px;overflow:hidden;background:url(../images/indexImg20130307.png?v=1.4) no-repeat 0 -210px;display:block;} +.appItem i{position:absolute;width:50px;height:29px;left:135px;top:20px;background:url(../images/header.png) no-repeat -73px -93px;display:block;} +.appItem .client-txt{position:absolute;left:145px;top:54px;} +.appItem .client-txt em{display:block;line-height:20px;} +.appItem .client-txt strong{color:#76ac25;line-height:20px;} +.appItem .client-promo{height:30px;background:url(../images/indexImg20130307.png?v=1.4) no-repeat -116px -210px #fcfbe4;text-align:center;color:#fa6400;font-size:14px;font-weight:bold;line-height:30px;} +.appItem .client-promo a:link,.appItem .client-promo a:visited{color:#fa6400;} +/*----浮动条--------*/ +.floatBar{height:43px;position:fixed;width:100%;top:0; /*z-index:9999;*/ background:#fff;filter:alpha(opacity=97);-moz-opacity:0.97;-khtml-opacity: 0.97;opacity: 0.97;box-shadow:0px 1px 5px #ccc;left:0; border-bottom:1px solid #eee;} +/**html .floatBar{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}*/ +.floatBar .pW{ height:43px;} +.floatBar .logo{float:left; width:165px;height:43px;padding-left:10px} +.floatBar .logo span{background:url(../images/header.png) no-repeat 0px -50px ;width:91px;height:43px; display:block;} +.floatBar .search{float:left;background:url;width:245px;height:35px; padding-top:8px;} +.floatBar .search input.inputSearch{width:190px;height:24px; line-height:24px; font-size:12px; border:1px solid #76ac25; color:#b3b3b3; padding:0px 4px 0px 4px;vertical-align:middle;display:block;float:left;} +.floatBar .search input.inputSBtn{width:40px;height:26px; line-height:26px; font-size:12px; border:none; color:#fff; padding:0px ; background:#669900; vertical-align:middle;background:url(../images/header.png) no-repeat -92px -50px #669900 ; cursor:pointer; display:block;float:left;} +.floatBar .nav{float:left; background:url;height:33px; padding:10px 0px 0px 60px;} +.floatBar .nav a{display:block;float:left;width:60px;height:21px; line-height:21px;float:left; color:#606060;font-size:12px; text-align:center;margin-right:15px;_display:inline;} +.floatBar .nav a:hover{color:#669900; text-decoration:none} +.floatBar .nav a.active{ background-color:#76ac25;border-radius:2px;color:#fff;} +.floatBar .fr{padding-top:3px;} +.floatBar .menus,.floatBar .allCat{ z-index:1;} +.index_promo{display:none;position:absolute;width:140px;height:75px;left:260px;top:15px;overflow:hidden;} +.index_topad{position:absolute;width:140px;height:75px;left:270px;top:15px; overflow:hidden;} +.index_topad img{width:140px;height:75px;} +/*----btn style---*/ +.submit-btn, .submit-btn1{ border:none; margin:0 5px; cursor:pointer; text-align:center; } +.submit-btn{ width:63px; height:24px; line-height:24px; background:#669900; color:#fff;} +.submit-btn:hover{ background:#69af05; color:#fff;} +.submit-btn1{width:61px; height:22px; line-height:22px; border:1px solid #dcdcdc; color:#646464;} +.submit-btn1:hover{ color:#669900;} + +/*邮箱验证*/ +#mailBox{background:#fff;border:1px solid #e8e8e8;position:absolute;z-index:999;display:none; width:188px; margin-top:1px;} +#mailBox p{width:100%;margin:0;padding:0 0 0 5px;height:22px;line-height:22px;clear:both;font-size:12px;color:#666666;cursor:default;} +#mailBox ul{padding:0;margin:0;} +#mailBox li{font-size:12px;height:22px;line-height:22px;color:#666666;cursor:pointer;overflow:hidden;padding:0 0 0 5px;} +#mailBox .cmail{color:#666666;background:#f9f9f9;} +img.lazy,img.lazy_load{background:url(../images/g_loading.png) no-repeat 50% 50%;} +/*优选国际css*/ +.yxgj_icon{ width:60px; height:18px; line-height:18px; display:inline-block; background:#38b48b; border-radius:3px; font-size:12px; text-align:center; color:#fff; } +.yxgj_m0{ margin-left:12px;} +.yxgj_m1{ margin-left:5px;} +.yxgj_tipsTitle{ color:#FB8E19; padding:10px 0;} diff --git a/e3-portal-web/src/main/resources/static/css/index.css b/e3-portal-web/src/main/resources/static/css/index.css new file mode 100644 index 0000000..f6943b0 --- /dev/null +++ b/e3-portal-web/src/main/resources/static/css/index.css @@ -0,0 +1,559 @@ +.indexW{width:1200px;margin:0 auto;} +.mt1{margin-top:35px;line-height:0;} +.mt2{margin-top:30px;} +.mt3{margin-top:20px;} +.mt4{margin-top:30px; line-height:0;} +.mt4 img{width:1200px; height:100px;} +.full_ad{ text-align:right;} +.full_ad img{ width:1190px; height:100px;} +.ie6{_overflow:hidden;} +.toppromo{margin:0 auto;position:relative;text-align:center;} +.topclose{position:absolute;top:5px;left:50%;margin-left:575px;width:25px;height:16px;background:url(../images/topclose.png) no-repeat center center;cursor:pointer;text-indent:-9999px;} +.toppromo .banner{width:100%;height:80px;} +.toppromo .banner a{width:1200px;height:80px;display:block;text-indent:-9999px;margin:0 auto;} +.toppromo .topshow{width:100%;height:450px;} +.toppromo .topshow a{width:1200px;height:450px;display:block;text-indent:-9999px;margin:0 auto;} +.toppromo .q_ticket{width:100%;height:80px; display:none;} +.toppromo .q_ticket a{width:1200px;height:80px; line-height:80px; display:block; margin:0 auto; color:#FFF; font-size:36px; font-weight:bold;} +.toppromo .q_ticket a span{ float:left; margin-left:725px; font-family:Arial, Helvetica, sans-serif;} +.toppromo .q_ticket em{ float:left;letter-spacing:18px; margin-left:10px;} +.toppromo .q_ticket .mark{width:14px; float:left; margin-left:-8px; *margin-left:9px;} +/*首屏焦点图*/ +.slide_show{width:100%;height:480px;position:relative;z-index:29;} +.slide_wrap{height:480px; width:1000px;position:relative;overflow:hidden;z-index:30; margin-left:200px;} +.slide_show ol{height:480px;position:absolute;left:0;top:0;} +.slide_show ol li{float:left;width:1000px;height:480px;} +.slide_show ol .cur{position:relative;} +.slide_show ol li .fore_pic{float:left;width:1000px;height:480px;display:block;} +.slide_show ol li .fore_pic img{width:1000px;height:480px;} +.slide_show ul{position:absolute;z-index:99;left:50%;margin-left:-130px;bottom:10px;} +.slide_show ul li{height:25px;width:25px;float:left;cursor:pointer;margin-right:10px;_display:inline;background-color:#646464;text-align:center;line-height:25px;border-radius:50px;color:white; font-size:14px;filter:alpha(opacity=80);-moz-opacity:0.8;opacity:0.8;} +.slide_show ul li.cur{background-color:#fa9600;cursor:default;} +.slide_show a.show_next,.slide_show a.show_pre{width:39px;height:50px;display:block;position:absolute;top:207px;display:none; z-index:32;} +.slide_show a.show_next{left:50%; margin-left:301px;} +.slide_show a.show_pre{left:50%; margin-left:-401px;} +.slide_show a.show_next s{background:url(../images/indexsprite.png) no-repeat -40px -256px;width:39px;height:50px;display:block;cursor:pointer;filter:alpha(opacity=60);opacity:0.6;} +.slide_show a.show_pre s{background:url(../images/indexsprite.png) no-repeat 0px -256px;width:39px;height:50px;display:block;cursor:pointer;filter:alpha(opacity=60);opacity:0.6;} +.slide_show a.show_next:hover s,.slide_show a.show_pre:hover s{filter:alpha(opacity=80);opacity:0.8;-moz-opacity:0.8;} +.none{display:none;} +.indexbg{width:100%;height:480px; position: absolute; z-index:0; top:0;} +.indexbg dl{ position:absolute; top:0; left:0;height:480px;overflow:hidden;} +.indexbg dd{height:480px;float:left;} +.rSide{width:260px; position:absolute; top:0; margin-left:940px;z-index:999;} +.rSide .a-img{ position: relative; display:block;} +.rSide a{display:block;float:left} +.rSide .r-img1{width:260px;height:185px;margin-top:15px;} +.rSide .r-img1 img{width:260px;height:185px;} +.rSide .r-img2,.rSide .r-img3{width:260px;height:130px;margin-top:1px;} +.rSide .r-img2 img,.rSide .r-img3 img{width:260px;height:130px;} +.rSide .rmask{ cursor:pointer; position:absolute;left:0;top:0; background-color:#F0F0F0;width:100%;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);} +.rSide .r-img1 .rmask{ height:185px;} +.rSide .r-img2 .rmask,.rSide .r-img3 .rmask{ height:130px;} +.hover .rmask{background:#646464;-moz-opacity:.1;opacity:.1;filter:alpha(opacity=10);cursor:pointer;} +.hover .layer .rmask{ -moz-opacity:0;opacity:0;filter:alpha(opacity=0);} +/*口碑甄选*/ +.bestbuy{ float:right; width:1190px;} +.bestbuy .b_left{ width:945px;float:left; overflow:hidden; display:block;} +.bestbuy h2{ color:#333333; font-weight:normal; font-size:18px; font-family:Microsoft YaHei; padding:0 0 12px 3px;} +.bestbuy h2 span{ margin:0 0 0 15px; overflow:hidden; background:url(../images/index_icon_new.png) no-repeat -29px -333px; height:14px; width:118px; display:inline-block; } +.bestbuy .bbig{ border-left:1px solid #e8e8e8; float:left; display:block; width:944px;} +.bestbuy .bbig li{ position:relative; height:258px; float:left;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8; width:25%; overflow:hidden} +.bestbuy .bbig li img{ width:235px; height:258px; border-right:1px solid #e8e8e8;} +.bestbuy .bsmall{border-left:1px solid #e8e8e8; border-bottom:1px solid #e8e8e8; float:left; width:944px;} +.bestbuy .bsmall li{position:relative;height:200px; float:left; overflow:hidden; width:25%;} +.bestbuy .bsmall li img{ width:235px; height:200px; border-right:1px solid #e8e8e8;} +.bestbuy .bprice{position:absolute; top:70px; color:#FF4700; left:20px; font: bold 16px/18px Microsoft YaHei;} +.bestbuy .bprice span{ font-size:12px;} +.bbtn{position:absolute;width:160px;height:24px; border-radius:2px;background:#76ac25;filter:alpha(opacity=95);-moz-opacity:0.95;opacity:0.95;top:260px;cursor:pointer; margin-left:38px; left:0;} +.bbtn a{ width:60px; margin:0 auto;height:24px;display:block;background:url(../images/indexsprite.png) no-repeat -66px -177px;line-height:24px;font-family:Microsoft YaHei;font-size:12px;color:#fff;text-decoration:none; padding-left:20px;} +.bbtn a:hover{text-decoration:none;} +.rSide1{margin-top:26px;float:right; border:1px solid #E8E8E8;width:222px;height:459px;_height:459px;*margin-top:36px;_margin-top:39px; overflow:hidden;} +.rImg2{height:300px;width:222px; text-align:center;overflow:hidden;} +.rImg2 img{height:300px;width:220px;} +.sfNews{ margin:0 auto; width:202px; overflow:hidden;} +.rTitle{border-bottom:1px dotted #DBDBDB;overflow:hidden;padding:15px 0 10px 0; line-height:14px; overflow:hidden; height:14px;} +.rTitle h2{padding:0;} +.sfNews h2{ color:#323232;font-size:14px;font-family:Microsoft YaHei;float:left; font-weight:normal;} +.sfNews .more{float:right;display:block;padding-top:2px;} +.sfNews a.more{color:#969696;text-decoration:none;} +.sfNews a.more:hover{color:#669900;} +.sfNews a:hover{color:#669900;} +.sfNews a.red:hover{ color:#fa6400; text-decoration:underline;} +.sfNews li{line-height:26px;height:26px;overflow:hidden;} +.sfNews ul{ margin:8px auto; height:104px;overflow:hidden;} +/*限时抢购*/ +.timedbuy{background:#FFECBF;height:330px; width:945px; float:right;} +.timedbuy .cir{ position:absolute; width:11px; height:11px;background:url(../images/index_icon_new.png) no-repeat -140px -206px;} +.timedbuy .ttop{ font-size:24px; font-family:Microsoft YaHei; color:#FA6400; height:28px; line-height:28px; padding:18px 0 18px 20px;} +.timedbuy .ttop span{float:left;background:url(../images/index_icon_new.png) no-repeat -1px -314px; margin:-5px 0 0 10px; width:19px; height:37px;} +.timedbuy .ttop p{ float:left;margin:0 0 0 10px; padding:0;} +.timedbuy .ttop .t_jd{ margin-top:-2px; width:111px; height:28px; background:url(../images/index_icon_new.png) no-repeat -204px -319px;} +.timedbuy .ttop .ttl{ font-size:12px; color:#565656; padding:0 10px 0 10px;} +.timedbuy .ttop .tt2{ font-size:12px; color:#565656; padding:0 0px 0 0px;} +.timedbuy .ttop .xiaqi{margin-top:-2px; width:111px; height:28px; background:url(../images/index_icon_new.png) no-repeat -205px -289px;} +.timedbuy .ttop .tright{ float:right; width:100px; height:28px; text-align:center; font-size:16px; color:#666666; font-weight:bold; vertical-align:text-top; margin-right:10px; cursor:pointer;} +.timedbuy .ttop .tright a{ margin-top:-6px;display:block;width:100px;background:url(../images/indexsprite.png) -90px -296px no-repeat;} +.timedbuy .ttop .tright a:hover{color:#669900;display:block;width:100px;background:url(../images/indexsprite.png) -90px -239px no-repeat;} +.timedbuy .ttop .tright1{margin-top:-6px; float:right; width:100px; text-align:center; font-size:16px; font-weight:bold; cursor:pointer;} +.timedbuy .ttop .tright1 a{color:#fa6400; display:block; text-decoration:none;width:100px; background:url(../images/indexsprite.png) -165px -270px no-repeat;} +.timedbuy .ttop .tright1 a:hover{color:#669900; text-decoration:none;background:url(../images/indexsprite.png) -165px -209px no-repeat;} +.timedbuy .ttop dd{ font-weight:bold; font-family:"宋体"; display:block; font-size:20px;color: #FFF; float:left; text-align:center;width:20px; height:28px;background:url(../images/indexsprite.png) no-repeat -83px -77px; margin:0 2px 0 0;} +.timedbuy .ttop .no{color:#555555; background:#FFECBF;font-weight:bold;font-size:18px; font-family:"宋体"; margin:0; width:16px;} +.timedbuy .tcenter{ background:#FFF;} +.tbList{ margin:0 20px 0 20px;} +.tbList li{ width:150px; padding:15px; border-right:1px solid #FFECBF;float:left;background:#FFF; position:relative; overflow:hidden;} +.tbList li img{ width:150px; height:150px; margin-bottom:20px;} +.tbList .title{height:36px;line-height:18px;overflow:hidden;} +.tbList .title-a,.tbList .title-b,.tbList .title-b1{height:18px;line-height:18px;overflow:hidden;} +.tbList .title-b{color:#ea5404;} +.tbList .title-b1{color:#6b6b6b;} +.title-d{text-align:center;color:#ea5404; height:45px; overflow:hidden;} +.tbList .price{margin-top:5px;line-height:22px;height:22px;overflow:hidden;} +.price b{font-size:14px;font-family:Microsoft YaHei;color:#ea5404;width:55px;float:left; overflow:hidden;} +.price b em{ font-size:14px;} +.price font{overflow:hidden;text-decoration:line-through;font-size:12px; margin-left:5px;_margin-left:3px;float:left;width:50px;} +.tbList .price span{text-align:center; font-family:Microsoft YaHei; font-size:12px; float:right; background:#fa6400; padding:0 10px; border-radius:2px; margin:0 2px 0 0;} +.tbList .price span a{ color:#FFF;} +.tbover .price span{text-align:center; font-family:Microsoft YaHei; font-size:12px; float:right; background:#CBCBCB; padding:0 10px; border-radius:2px; _position:relative; margin:0 2px 0 0; height:22px; color:#FFF; line-height:22px; overflow:hidden;} +.tbList .price .yulan{text-align:center; font-family:Microsoft YaHei; font-size:12px; background:#75AB25; padding:0 10px 0 10px; border-radius:2px;height:22px;} +.tbList .price font,.tbover .price font{ width:35px;} +.tbover .title-a,.tbover .title-a a,.tbover .title-b,.tbover .price,.tbover .price b{color:#cccccc;} +.tbover img{filter:gray; -moz-opacity:0.1;opacity:0.1;} +.tbover .yover{ top:70px; left:25px; z-index:5; position: absolute; width:132px; height:54px; background:url(../images/index_new.png) no-repeat;} +.tbover .price .yulan{text-align:center; font-family:Microsoft YaHei; font-size:12px; background:#75AB25; padding:0 10px 0 10px; border-radius:2px;height:22px;} +/*限时抢购右侧广告位*/ +.rSide2{float:right;width:222px;height:330px;margin-left:24px; overflow:hidden;} +.rSide2 img{ width:222px; height:330px; } +/*精品生鲜*/ +.fresh_float{overflow:hidden; z-index:10; position:absolute; margin:45px 0 0 1200px; width:50px; height:168px; background:url(../images/index_icon_new.png) no-repeat -72px -121px;*position:relative;*margin:-425px 0 0 1200px;} +.fresh_float span{width:15px; height:15px; margin:135px 0 0 8px; background:url(../images/index_icon_new.png) no-repeat -27px -315px; display:block;} +a.fresh_f{cursor:pointer;} +a.fresh_f:hover span{filter:alpha(opacity=80);-moz-opacity:0.8;opacity:0.8;} +.category{float:left;width:250px; overflow:hidden;} +.sfRight{float:left;width:950px;position:relative; border-top:1px solid #adcd7c;} +.category .cir{ position:absolute; width:11px; height:11px;background:url(../images/index_icon_new.png) no-repeat -140px -68px;} +.category .mTitle li{height:50px; line-height:50px;} +.category .mTitle li:hover{ background:#83B933; color:#FFF;} +.category .mTitle li:hover .cir{background:url(../images/index_icon_new.png) no-repeat -170px -68px;} +.category .mTitle{ width:240px; height:50px; background:#76AC25; float:right;color:#FFF;} +.category .mTitle a{color:#FFF;} +.category .mTitle h2{ font-weight:normal; font-size:16px;/* margin:17px 0 0 0;*/ } +.gBtn{position:absolute;width:160px;height:24px;border-radius:2px;background:#76ac25;filter:alpha(opacity=95);-moz-opacity:0.95;opacity:0.95;top:261px;cursor:pointer;z-index:4;} +.gBtn a{ margin:0 auto;width:60px;height:24px;display:block;background:url(../images/indexsprite.png) no-repeat -66px -177px;line-height:24px;font-family:Microsoft YaHei;font-size:12px;color:#fff;text-decoration:none;padding-left:20px;} +.gBtn a:hover{text-decoration:none;} +.outBtn{position:absolute;width:160px;height:24px;border-radius:2px;background:#969696;filter:alpha(opacity=95);-moz-opacity:0.95;opacity:0.95;top:261px;cursor:pointer;z-index:4;} +.outBtn a{ padding:0;background:none; text-align:center; width:100%;} +.fresh h2 em{ background:url(../images/index_icon_new.png) no-repeat -97px -295px; width:15px; height:16px; float:left; margin:16px 8px 0 75px;} +.lCont{ width:250px; height:420px; overflow:hidden;} +.lCont img{ width:250px; height:420px;} +.sfRight .subCont{ padding:7px 10px 9px 10px; width:710px; border-bottom:1px solid #F4F4F4;float:left;} +.pList{zoom:1;} +.pList li{width:160px;padding:8px;float:left;position:relative;z-index:1;} +.pImg{margin-bottom:10px;width:160px;height:160px;overflow:hidden;position:relative;} +.pImg img{width:160px;height:160px;position:absolute;} +.pList .title{height:36px;line-height:18px;overflow:hidden;} +.pList .title-a,.pList .title-b,.pList .title-b1{height:18px;line-height:18px;overflow:hidden;} +.pList .title-b{color:#ea5404;} +.pList .title-b1{color:#6b6b6b;} +.pList .price{line-height:18px;height:18px;overflow:hidden;zoom:1; margin-top:4px;} +.pList .price b{font-size:16px;font-family:Microsoft YaHei;color:#ea5404;width:70px;float:left;} +.pList .price font{overflow:hidden;font-family:Microsoft YaHei;text-decoration:line-through;font-size:12px; margin-left:20px;_margin-left:10px;float:left;} +.sfRight .redge{ width:220px; height:469px; float:left; background:#f4f4f4;overflow:hidden;} +.sfRight .rHot{ margin:25px 0 0 15px; height:189px; overflow:hidden;} +.sfRight .rHot li a{ color:#333333;height:55px; width:55px; display:block;font-size:12px; overflow:hidden;} +.sfRight .rHot li a:hover{ color:#FFF;} +.sfRight .rHot li{ margin:4px; _margin:3px; width:55px; height:55px; background:url(../images/index_icon_new.png) no-repeat; text-align:center; line-height:55px; float:left;} +.sfRight .rHot li:hover{background:url(../images/index_icon_new.png) no-repeat 0 -61px;} +.sfRight .rimg{ margin-top:25px;} +.sfRight .rimg img{ width:220px; height:230px;} +.sfRight .rimg .rbutton{ margin:-166px 0 0 15px; background:url(../images/index_icon_new.png) no-repeat -204px 0px; width:25px; height:25px; position:relative;} +.sfRight .rimg .rbutton.hover{ background:url(../images/index_icon_new.png) no-repeat -204px -33px; } +.sfRight .rimg .rbutton a{width:25px; height:25px; display:block;} +.sfRight .rimg .rbutton a:hover{ background:url(../images/index_icon_new.png) no-repeat -204px -33px; } +/*休闲食品*/ +.food .mTitle{ background:#ff6c00;} +.food .cir{background:url(../images/index_icon_new.png) no-repeat -140px -88px;} +.food .mTitle li:hover{background:#FF872D;} +.food .mTitle li:hover .cir{background:url(../images/index_icon_new.png) no-repeat -170px -88px;} +.food h2 em{ background:url(../images/index_icon_new.png) no-repeat -70px -296px; width:15px; height:16px; float:left; margin:17px 8px 0 75px;} +.food .sfRight{ border-top:1px solid #ffa766;} +.food .sfRight .rHot li:hover{background:url(../images/index_icon_new.png) no-repeat 0 -121px;} +.food .sfRight .rbutton a:hover{ background:url(../images/index_icon_new.png) no-repeat -204px -66px; } +.food .sfRight .rbutton.hover{ background:url(../images/index_icon_new.png) no-repeat -204px -66px; } +/*酒水饮料*/ +.drinks .mTitle{ background:#d12e49;} +.drinks .cir{background:url(../images/index_icon_new.png) no-repeat -140px -109px;} +.drinks .mTitle li:hover{background:#DD415B;} +.drinks .mTitle li:hover .cir{background:url(../images/index_icon_new.png) no-repeat -170px -109px;} +.drinks h2 em{ background:url(../images/index_icon_new.png) no-repeat -126px -295px; width:14px; height:16px; float:left; margin:16px 8px 0 75px;} +.drinks .sfRight{ border-top:1px solid #e38292;} +.drinks .sfRight .rHot li:hover{background:url(../images/index_icon_new.png) no-repeat 0 -181px;} +.drinks .sfRight .rbutton a:hover{ background:url(../images/index_icon_new.png) no-repeat -204px -99px; } +.drinks .sfRight .rbutton.hover{ background:url(../images/index_icon_new.png) no-repeat -204px -99px; } +/*零食糕点*/ +.snack .mTitle{ background:#f08c18;} +.snack .cir{background:url(../images/index_icon_new.png) no-repeat -140px -132px;} +.snack .mTitle li:hover{background:#EFA517;} +.snack .mTitle li:hover .cir{background:url(../images/index_icon_new.png) no-repeat -170px -132px;} +.snack h2 em{ background:url(../images/index_icon_new.png) no-repeat -154px -294px; width:14px; height:16px; float:left; margin:16px 8px 0 75px;} +.snack .sfRight{ border-top:1px solid #f6ba74;} +.snack .sfRight .rHot li:hover{background:url(../images/index_icon_new.png) no-repeat 0 -241px;} +.snack .sfRight .rbutton a:hover{ background:url(../images/index_icon_new.png) no-repeat -204px -132px; } +.snack .sfRight .rbutton.hover{ background:url(../images/index_icon_new.png) no-repeat -204px -132px; } +/*冲调副食*/ +.tea .mTitle{ background:#78b270;} +.tea .cir{background:url(../images/index_icon_new.png) no-repeat -140px -153px;} +.tea .mTitle li:hover{background:#83B77B;} +.tea .mTitle li:hover .cir{background:url(../images/index_icon_new.png) no-repeat -170px -153px;} +.tea h2 em{ background:url(../images/index_icon_new.png) no-repeat -179px -293px; width:14px; height:16px; float:left; margin:16px 8px 0 75px;} +.tea .sfRight{ border-top:1px solid #aed1a9;} +.tea .sfRight .rHot li:hover{background:url(../images/index_icon_new.png) no-repeat -65px 0;} +.tea .sfRight .rbutton a:hover{ background:url(../images/index_icon_new.png) no-repeat -204px -166px; } +.tea .sfRight .rbutton.hover{ background:url(../images/index_icon_new.png) no-repeat -204px -166px; } +/*母婴保健*/ +.baby .mTitle{ background:#fa648c;} +.baby .cir{background:url(../images/index_icon_new.png) no-repeat -140px -172px;} +.baby .mTitle li:hover{background:#FB7B9D;} +.baby .mTitle li:hover .cir{background:url(../images/index_icon_new.png) no-repeat -170px -172px;} +.baby h2 em{ background:url(../images/index_icon_new.png) no-repeat -178px -317px; width:15px; height:16px; float:left; margin:16px 8px 0 75px;} +.baby .sfRight{ border-top:1px solid #fca2ba;} +.baby .sfRight .rHot li:hover{background:url(../images/index_icon_new.png) no-repeat -65px -61px;} +.baby .sfRight .rbutton a:hover{ background:url(../images/index_icon_new.png) no-repeat -204px -199px; } +.baby .sfRight .rbutton.hover{ background:url(../images/index_icon_new.png) no-repeat -204px -199px; } +/*美食用品*/ +.tools .mTitle{ background:#ad96d9;} +.tools .cir{background:url(../images/index_icon_new.png) no-repeat -140px -190px;} +.tools .mTitle li:hover{background:#B59FDF;} +.tools .mTitle li:hover .cir{background:url(../images/index_icon_new.png) no-repeat -170px -190px;} +.tools h2 em{ background:url(../images/index_icon_new.png) no-repeat -178px -263px; width:15px; height:18px; float:left; margin:14px 8px 0 75px;} +.tools .sfRight{ border-top:1px solid #cec0e8;} +.tools .sfRight .rHot li:hover{background:url(../images/index_icon_new.png) no-repeat -133px 0;} +.tools .sfRight .rbutton a:hover{ background:url(../images/index_icon_new.png) no-repeat -204px -232px; } +.tools .sfRight .rbutton.hover{ background:url(../images/index_icon_new.png) no-repeat -204px -232px; } +/*购物车弹框*/ +.gWindow{ + border:2px solid #176246; + display:block; + position:absolute; + width:195px; + height:90px; + top:230px; + left:-30px; + z-index:999; + background:url(../images/indexsprite.png) no-repeat 8px -66px #fff; + padding:15px 5px 0px 75px; + line-height:18px; + color:#0e6248; + font-family:Microsoft YaHei; +} +.gWindow div{ + margin-top:5px; +} +.gWindow font{ + color:#ea5404; + font-weight:bold; + font-size:12px; +} +.gWindow .gButton1,.gWindow .gButton2{ + width:80px; + height:24px; + text-indent:-9999px; + display:block; + float:left; + margin-right:5px; +} +.gWindow .gButton1{ + background:url(../images/indexsprite.png) no-repeat 0 -18px; +} +.gWindow .gButton2{ + background:url(../images/indexsprite.png) no-repeat 0 -42px; +} +.gClose{ + display:block; + position:absolute; + width:18px; + height:18px; + background:#896938; + top:5px; + right:5px; + cursor:pointer; + text-indent:-9999px; + background:url(../images/indexsprite.png) no-repeat 0 0; +} +.caption{ + font-size:16px; + font-family:Microsoft YaHei; + font-weight:bold; + height:25px; + line-height:25px; + padding:15px 0 10px 0; + border-bottom:1px solid #E8E8E8; + color:#323232; +} +.caption p{ + background:url(../images/foot/zhiwei_bg.jpg) no-repeat center left; + padding:0 0 0 15px; + width:385px; +} +/*优选知味*/ +.zhiwei{ + width:400px; + float:left; + border-bottom:1px solid #f0f0f0; + margin:0 20px 0 0; + height:200px; + overflow:hidden; +} +.zhiwei .slide{ + width:170px; + position:relative; + height:120px; + overflow:hidden; + float:left; + margin-top:20px; +} +.zhiwei .slide ul{ + height:110px; + position:absolute; +} +.zhiwei .slide ul li{ + height:110px; + width:170px; + float:left; +} +.zhiwei .slide img{ + height:100px; + width:170px; +} +.zhiwei .slideControls{ + width:60px; + position:absolute; + top:10px; + z-index:99; + right:1px; +} +.zhiwei .slideControls span{ + height:4px; + width:15px; + float:left; + cursor:pointer; + background:#dcdcdc; + text-indent:-9999px; +} +.zhiwei .slideControls span.cur{ + background:#7ABD54; + width:15px; +} +.zhiwei .slide a.btn_next,.zhiwei .slide a.btn_prev{ + width:40px; + height:50px; + display:block; + position:absolute; + top:45px; + display:none; +} +.zhiwei .slide a.btn_next{ + right:0; +} +.zhiwei .slide a.btn_prev{ + left:0; +} +.zhiwei .slide a.btn_next s{ + background:url(../images/indeximgnew.png) no-repeat -16px 10px; + width:38px; + height:50px; + display:block; + cursor:pointer +} +.zhiwei .slide a.btn_prev s{ + background:url(../images/indeximgnew.png) no-repeat 8px 10px; + width:38px; + height:50px; + display:block; + cursor:pointer +} +.zhiwei .info{ + float:left; + margin: 20px 0 0 10px; + line-height:20px; +} +.zhiwei .info a{ + color:#646464; +} +.zhiwei .info a:hover{ + color:#669900; +} +.zhiwei .info p{ + background: url("../images/foot/dian.jpg") no-repeat scroll left center rgba(0, 0, 0, 0); + height: 20px; + overflow: hidden; + padding-left: 10px; + width: 205px; + line-height:20px; +} +/*晒单*/ +.share{ + width:420px; + float:left; + border-bottom:1px solid #f0f0f0; + margin:0 20px 0 0; + height:200px; + overflow:hidden; +} +.share li{ height:58px; overflow:hidden; border-bottom:1px dotted #e8e8e8; margin-bottom:6px; vertical-align:middle;} +.share .share_c{ + height:50px; + overflow:hidden; +} +.share .share_c img{ + width:50px; + height:50px; +} +.share .share_c .l{ + float:left; +} +.share .share_c .r{ + float:right; + width:370px; + overflow:hidden; +} +.share .share_c .r .s_title{ overflow:hidden; white-space: nowrap; text-overflow: ellipsis;} +.share .share_c .r p{ + padding-left:20px; + overflow:hidden; + height:22px; + line-height:22px; +} +.share .share_c a{ + color:#FA9600; +} +.share .share_c a:hover{ + text-decoration:underline; +} +.share a.s_content{ + color:#646464; +} +.share a.s_content:hover{ + color:#646464; +} +.scrollbox{ + margin:20px 0 0 0; + position:relative; + height:122px; + overflow:hidden; +} +.scrollbox ul{ + position:absolute; + left:0px; + top:0px; +} +/*发现优品*/ +.ucaption{ + font-size:16px; + font-family:Microsoft YaHei; + font-weight:bold; + margin:0 auto; + width:300px; + height:25px; + line-height:25px; + padding:14px 0 10px 0; + border-bottom:1px solid #E8E8E8; +} +.ucaption p{ + background:url(../images/foot/youpin.jpg) no-repeat center left; + padding:0 0 0 24px; + float:left; + color:#323232; +} +.ucaption a{ + width:60px; + height:29px; + display:block; + background:url(../images/foot_bottom.png) no-repeat -3px -97px; +} +.ucaption h2{ + float:right; + display:block; +} +.ucaption a:hover{ + width:60px; + height:29px; + display:block; + background:url(../images/foot_bottom.png) no-repeat -3px -123px; +} +.youpin{ + border:1px solid #E8E8E8; + float:right; + height:199px; + width:337px; +} +.youpin h2{ + cursor:pointer; +} +.youpin .ushadow{ + position:relative; + display:none; + margin:-70px 0 0 0px; + height:70px; + width:70px; + background:#f99804; + filter:alpha(opacity=95); + -moz-opacity:0.95; + opacity:0.95; + overflow:hidden; +} +.youpin .ushadow .us_content{ + width:60px; + height:55px; + color:#FFF; + padding:10px 5px 0 5px; +} +.us_content .us_title{ + font-size:12px; + font-weight:normal; + height:35px; + overflow:hidden; +} +.us_content .us_title a{ + color:#FFF; +} +.us_content .us_foot{ + background:url(../images/foot/zan.png) no-repeat left center; + padding-left:15px; +} +.us_content .us_foot a{ + color:#FFF; +} +.youpin .upic{ + margin:20px auto; + width:300px; +} +.youpin .upic img{ + width:70px; + height:70px; +} +.youpin .upic span{ + float:left; + width:70px; + text-align:center; + display:none; + margin:0 5px 0 0; +} +.zhiwei .tit{ + color:#ea5404; + height:20px; + line-height:20px; + overflow:hidden; + margin-top:8px; +} +.zhiwei .tit a:link,.zhiwei .tit a:visited,.zhiwei .tit a:hover{ + color:#ea5404; +} +/*浮动*/ +.index_rfloat{display:none;width:120px;height:236px;text-align:center;position:fixed;bottom:224px;left:50%;margin-left:610px;z-index:999;overflow:hidden;} +* html .index_rfloat{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0 +324)));} +.index_side{right:10px;left:auto;margin-left:0;} +.J_rclose{position:absolute;width:15px;height:20px;top:0px;right:0;cursor:pointer;background:url(../images/topclose.png) no-repeat left top;text-indent:-9999px;} +/*5周年庆*/ +.thefifthyear {position: relative; z-index:-1;} +.thefifthyear .mc{height:573px;left:0;overflow:hidden;position: absolute;top:0;width:100%; background: url(../images/thefifthyear.png) center top no-repeat;text-indent: -9999px;} \ No newline at end of file diff --git a/e3-portal-web/src/main/resources/static/images/bottom_sm.png b/e3-portal-web/src/main/resources/static/images/bottom_sm.png new file mode 100644 index 0000000..58f5a5f Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/bottom_sm.png differ diff --git a/e3-portal-web/src/main/resources/static/images/cate_bg.jpg b/e3-portal-web/src/main/resources/static/images/cate_bg.jpg new file mode 100644 index 0000000..61094da Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/cate_bg.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/foot/cd.jpg b/e3-portal-web/src/main/resources/static/images/foot/cd.jpg new file mode 100644 index 0000000..e8df0d3 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/foot/cd.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/foot/logo.jpg b/e3-portal-web/src/main/resources/static/images/foot/logo.jpg new file mode 100644 index 0000000..7b6fadc Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/foot/logo.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/foot/qc.jpg b/e3-portal-web/src/main/resources/static/images/foot/qc.jpg new file mode 100644 index 0000000..4b46003 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/foot/qc.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/foot/qq.jpg b/e3-portal-web/src/main/resources/static/images/foot/qq.jpg new file mode 100644 index 0000000..fc758ef Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/foot/qq.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/foot/sf.jpg b/e3-portal-web/src/main/resources/static/images/foot/sf.jpg new file mode 100644 index 0000000..30fa773 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/foot/sf.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/foot_bottom.png b/e3-portal-web/src/main/resources/static/images/foot_bottom.png new file mode 100644 index 0000000..51e2ca2 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/foot_bottom.png differ diff --git a/e3-portal-web/src/main/resources/static/images/g_loading.png b/e3-portal-web/src/main/resources/static/images/g_loading.png new file mode 100644 index 0000000..6cf5ab3 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/g_loading.png differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/160x160-1.jpg b/e3-portal-web/src/main/resources/static/images/goods/160x160-1.jpg new file mode 100644 index 0000000..ee90f7e Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/160x160-1.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/160x160-2.jpg b/e3-portal-web/src/main/resources/static/images/goods/160x160-2.jpg new file mode 100644 index 0000000..6f05d7e Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/160x160-2.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/160x160-3.jpg b/e3-portal-web/src/main/resources/static/images/goods/160x160-3.jpg new file mode 100644 index 0000000..af9297b Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/160x160-3.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/160x160-4.jpg b/e3-portal-web/src/main/resources/static/images/goods/160x160-4.jpg new file mode 100644 index 0000000..8b52821 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/160x160-4.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/160x160-5.jpg b/e3-portal-web/src/main/resources/static/images/goods/160x160-5.jpg new file mode 100644 index 0000000..e724733 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/160x160-5.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/160x160-6.jpg b/e3-portal-web/src/main/resources/static/images/goods/160x160-6.jpg new file mode 100644 index 0000000..ce3a134 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/160x160-6.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/160x160-7.jpg b/e3-portal-web/src/main/resources/static/images/goods/160x160-7.jpg new file mode 100644 index 0000000..e59a9da Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/160x160-7.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/160x160-8.jpg b/e3-portal-web/src/main/resources/static/images/goods/160x160-8.jpg new file mode 100644 index 0000000..280a39d Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/160x160-8.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/26336113289bf7273823080488a9d200.jpg b/e3-portal-web/src/main/resources/static/images/goods/26336113289bf7273823080488a9d200.jpg new file mode 100644 index 0000000..10dae6a Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/26336113289bf7273823080488a9d200.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/751d2091c008c2a49c1934545730f041.jpg b/e3-portal-web/src/main/resources/static/images/goods/751d2091c008c2a49c1934545730f041.jpg new file mode 100644 index 0000000..9619f34 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/751d2091c008c2a49c1934545730f041.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg b/e3-portal-web/src/main/resources/static/images/goods/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg new file mode 100644 index 0000000..bcf774f Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/8f42d6d2deead3da7d50c8a702a3c939.jpg b/e3-portal-web/src/main/resources/static/images/goods/8f42d6d2deead3da7d50c8a702a3c939.jpg new file mode 100644 index 0000000..cf73514 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/8f42d6d2deead3da7d50c8a702a3c939.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/goods/c11e0d59289782b09ea1cbcb98070017.jpg b/e3-portal-web/src/main/resources/static/images/goods/c11e0d59289782b09ea1cbcb98070017.jpg new file mode 100644 index 0000000..2f1e1a1 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/goods/c11e0d59289782b09ea1cbcb98070017.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/header.png b/e3-portal-web/src/main/resources/static/images/header.png new file mode 100644 index 0000000..05c5e6b Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/header.png differ diff --git a/e3-portal-web/src/main/resources/static/images/html/042cc65a4fb9899878f2f37235ca1793.jpg b/e3-portal-web/src/main/resources/static/images/html/042cc65a4fb9899878f2f37235ca1793.jpg new file mode 100644 index 0000000..de839c8 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/042cc65a4fb9899878f2f37235ca1793.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1463455028.jpg b/e3-portal-web/src/main/resources/static/images/html/1463455028.jpg new file mode 100644 index 0000000..3ba94e1 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1463455028.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1463456854.jpg b/e3-portal-web/src/main/resources/static/images/html/1463456854.jpg new file mode 100644 index 0000000..3d3b515 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1463456854.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1468837571.jpg b/e3-portal-web/src/main/resources/static/images/html/1468837571.jpg new file mode 100644 index 0000000..b6aacc3 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1468837571.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1471311388.jpg b/e3-portal-web/src/main/resources/static/images/html/1471311388.jpg new file mode 100644 index 0000000..70cbbf6 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1471311388.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1471311447.jpg b/e3-portal-web/src/main/resources/static/images/html/1471311447.jpg new file mode 100644 index 0000000..d1b951e Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1471311447.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1472521203.jpg b/e3-portal-web/src/main/resources/static/images/html/1472521203.jpg new file mode 100644 index 0000000..165360c Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1472521203.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1472521236.jpg b/e3-portal-web/src/main/resources/static/images/html/1472521236.jpg new file mode 100644 index 0000000..3dd56ef Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1472521236.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1472521250.jpg b/e3-portal-web/src/main/resources/static/images/html/1472521250.jpg new file mode 100644 index 0000000..1ccf1cc Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1472521250.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/1748dcf682d7f595012e4309695d71d9.jpg b/e3-portal-web/src/main/resources/static/images/html/1748dcf682d7f595012e4309695d71d9.jpg new file mode 100644 index 0000000..38e85e3 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/1748dcf682d7f595012e4309695d71d9.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/20160829181637762.gif b/e3-portal-web/src/main/resources/static/images/html/20160829181637762.gif new file mode 100644 index 0000000..ed8b0ad Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/20160829181637762.gif differ diff --git a/e3-portal-web/src/main/resources/static/images/html/26336113289bf7273823080488a9d200.jpg b/e3-portal-web/src/main/resources/static/images/html/26336113289bf7273823080488a9d200.jpg new file mode 100644 index 0000000..10dae6a Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/26336113289bf7273823080488a9d200.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/2a3ba6ffb33d8fca0dc848f94e3d99d8.jpg b/e3-portal-web/src/main/resources/static/images/html/2a3ba6ffb33d8fca0dc848f94e3d99d8.jpg new file mode 100644 index 0000000..926efe8 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/2a3ba6ffb33d8fca0dc848f94e3d99d8.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/49111b8189bf71370cdb145f8fdb1195.jpg b/e3-portal-web/src/main/resources/static/images/html/49111b8189bf71370cdb145f8fdb1195.jpg new file mode 100644 index 0000000..710251e Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/49111b8189bf71370cdb145f8fdb1195.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/4dd7317569a06a451c1fe7762d6bf928.jpg b/e3-portal-web/src/main/resources/static/images/html/4dd7317569a06a451c1fe7762d6bf928.jpg new file mode 100644 index 0000000..5c7c527 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/4dd7317569a06a451c1fe7762d6bf928.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/516e4d058d1d65a3506e179642297b2d.jpg b/e3-portal-web/src/main/resources/static/images/html/516e4d058d1d65a3506e179642297b2d.jpg new file mode 100644 index 0000000..fbf133b Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/516e4d058d1d65a3506e179642297b2d.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/51e357022c1f826f13211222831a4b13.jpg b/e3-portal-web/src/main/resources/static/images/html/51e357022c1f826f13211222831a4b13.jpg new file mode 100644 index 0000000..8f0ba9c Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/51e357022c1f826f13211222831a4b13.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/600c425e04b41f49e451d2fdbafb6e45.jpg b/e3-portal-web/src/main/resources/static/images/html/600c425e04b41f49e451d2fdbafb6e45.jpg new file mode 100644 index 0000000..ac79bf1 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/600c425e04b41f49e451d2fdbafb6e45.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/751d2091c008c2a49c1934545730f041.jpg b/e3-portal-web/src/main/resources/static/images/html/751d2091c008c2a49c1934545730f041.jpg new file mode 100644 index 0000000..9619f34 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/751d2091c008c2a49c1934545730f041.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/757e35fab995b43c23b4396dc3ba4269.jpg b/e3-portal-web/src/main/resources/static/images/html/757e35fab995b43c23b4396dc3ba4269.jpg new file mode 100644 index 0000000..7ad2f65 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/757e35fab995b43c23b4396dc3ba4269.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/7a80fda907bf5107f6967add2a304a51.jpg b/e3-portal-web/src/main/resources/static/images/html/7a80fda907bf5107f6967add2a304a51.jpg new file mode 100644 index 0000000..7d9d2fd Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/7a80fda907bf5107f6967add2a304a51.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg b/e3-portal-web/src/main/resources/static/images/html/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg new file mode 100644 index 0000000..bcf774f Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/838abc2055e36f423701de255bbc9914.jpg b/e3-portal-web/src/main/resources/static/images/html/838abc2055e36f423701de255bbc9914.jpg new file mode 100644 index 0000000..8463f8c Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/838abc2055e36f423701de255bbc9914.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/8f42d6d2deead3da7d50c8a702a3c939.jpg b/e3-portal-web/src/main/resources/static/images/html/8f42d6d2deead3da7d50c8a702a3c939.jpg new file mode 100644 index 0000000..cf73514 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/8f42d6d2deead3da7d50c8a702a3c939.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/95256f5b2857ec28914f631532508d76.jpg b/e3-portal-web/src/main/resources/static/images/html/95256f5b2857ec28914f631532508d76.jpg new file mode 100644 index 0000000..9664657 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/95256f5b2857ec28914f631532508d76.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/aa472cb9f9624d22d1fcfd1c4dffbe42.jpg b/e3-portal-web/src/main/resources/static/images/html/aa472cb9f9624d22d1fcfd1c4dffbe42.jpg new file mode 100644 index 0000000..3166d0e Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/aa472cb9f9624d22d1fcfd1c4dffbe42.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/c11e0d59289782b09ea1cbcb98070017.jpg b/e3-portal-web/src/main/resources/static/images/html/c11e0d59289782b09ea1cbcb98070017.jpg new file mode 100644 index 0000000..2f1e1a1 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/c11e0d59289782b09ea1cbcb98070017.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/c3449a684bebe21f5b6c6c79e46791ff.jpg b/e3-portal-web/src/main/resources/static/images/html/c3449a684bebe21f5b6c6c79e46791ff.jpg new file mode 100644 index 0000000..eeb0134 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/c3449a684bebe21f5b6c6c79e46791ff.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/cf33d7d36f1128577782ded21fe812a9.jpg b/e3-portal-web/src/main/resources/static/images/html/cf33d7d36f1128577782ded21fe812a9.jpg new file mode 100644 index 0000000..5eec842 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/cf33d7d36f1128577782ded21fe812a9.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/ddf3f66b114f3a3bfbbe0b47693cdbf0.jpg b/e3-portal-web/src/main/resources/static/images/html/ddf3f66b114f3a3bfbbe0b47693cdbf0.jpg new file mode 100644 index 0000000..029725a Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/ddf3f66b114f3a3bfbbe0b47693cdbf0.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/de66a063548629c8d4e639523d8c9c6e.jpg b/e3-portal-web/src/main/resources/static/images/html/de66a063548629c8d4e639523d8c9c6e.jpg new file mode 100644 index 0000000..01fcacc Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/de66a063548629c8d4e639523d8c9c6e.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/e886f76e03f7a3596033eb34ca362339.jpg b/e3-portal-web/src/main/resources/static/images/html/e886f76e03f7a3596033eb34ca362339.jpg new file mode 100644 index 0000000..74b6a4c Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/e886f76e03f7a3596033eb34ca362339.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/html/logo_word.jpg b/e3-portal-web/src/main/resources/static/images/html/logo_word.jpg new file mode 100644 index 0000000..013f245 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/html/logo_word.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/indexImg20130307.png b/e3-portal-web/src/main/resources/static/images/indexImg20130307.png new file mode 100644 index 0000000..9eebc18 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/indexImg20130307.png differ diff --git a/e3-portal-web/src/main/resources/static/images/index_icon_new.png b/e3-portal-web/src/main/resources/static/images/index_icon_new.png new file mode 100644 index 0000000..2c35aee Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/index_icon_new.png differ diff --git a/e3-portal-web/src/main/resources/static/images/indexsprite.png b/e3-portal-web/src/main/resources/static/images/indexsprite.png new file mode 100644 index 0000000..9cd103a Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/indexsprite.png differ diff --git a/e3-portal-web/src/main/resources/static/images/kxicon.jpg b/e3-portal-web/src/main/resources/static/images/kxicon.jpg new file mode 100644 index 0000000..2f62e37 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/kxicon.jpg differ diff --git a/e3-portal-web/src/main/resources/static/images/left_lm_m.png b/e3-portal-web/src/main/resources/static/images/left_lm_m.png new file mode 100644 index 0000000..4de5c9c Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/left_lm_m.png differ diff --git a/e3-portal-web/src/main/resources/static/images/left_lm_m_a.png b/e3-portal-web/src/main/resources/static/images/left_lm_m_a.png new file mode 100644 index 0000000..ee52848 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/left_lm_m_a.png differ diff --git a/e3-portal-web/src/main/resources/static/images/logo66.png b/e3-portal-web/src/main/resources/static/images/logo66.png new file mode 100644 index 0000000..3f18410 Binary files /dev/null and b/e3-portal-web/src/main/resources/static/images/logo66.png differ diff --git a/e3-portal-web/src/main/resources/static/js/e3mall.js b/e3-portal-web/src/main/resources/static/js/e3mall.js new file mode 100644 index 0000000..adef768 --- /dev/null +++ b/e3-portal-web/src/main/resources/static/js/e3mall.js @@ -0,0 +1,25 @@ +var E3MALL = { + checkLogin : function(){ + var _ticket = $.cookie("E3_TOKEN"); + if(!_ticket){ + return ; + } + $.ajax({ + url : "http://localhost:8085/user/token/" + _ticket, + dataType : "jsonp", + type : "GET", + success : function(data){ + if(data.status == 200){ + var username = data.data.username; + var html = username + ",欢迎来到宜立方购物网![退出]"; + $("#loginbar").html(html); + } + } + }); + } +} + +$(function(){ + // 查看是否已经登录,如果已经登录查询登录信息 + E3MALL.checkLogin(); +}); \ No newline at end of file diff --git a/e3-portal-web/src/main/resources/static/js/global_index.js b/e3-portal-web/src/main/resources/static/js/global_index.js new file mode 100644 index 0000000..cf712ed --- /dev/null +++ b/e3-portal-web/src/main/resources/static/js/global_index.js @@ -0,0 +1,2743 @@ +function showShadow(){ + var h = $(document).height(); + $('#screen').css({ 'height': h }); + $('#screen').show(); + $('.indexshadow').center(); + $('.indexshadow').fadeIn(); +} +var COMSTATIC = {}; +//邮箱正则校验 +COMSTATIC.mail_preg = function(mail) { + var mail_preg = /^\w+([-+.\']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; + var string = $.trim(mail); + if (mail_preg.test(string)) { + return true; + } + return false; +} +$("div.item").live("mouseover",function(){ + $(this).addClass("hover"); +}); +$("div.item").live("mouseleave",function(){ + $(this).removeClass("hover"); +}); + + +(function($){ + $.fn.lazyload=function(options){ + var settings = { + threshold:0, + failurelimit:0, + event:"scroll", + effect:"show", + container:window + }; + if(options){ + $.extend(settings,options); + } + var elements=this; + + if("scroll"==settings.event){ + $(settings.container).bind("scroll", function(event){ + var counter=0; + elements.each(function(){ + if($.abovethetop(this,settings)||$.leftofbegin(this,settings)) + {}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){ + $(this).trigger("appear"); + }else{ + if(counter++ > settings.failurelimit){ + return false; + } + } + }); + var temp = $.grep(elements,function(element){ + return !element.loaded; + }); + elements = $(temp); + }); + } + + this.each(function(){ + + var self=this; + + if(undefined==$(self).attr("data")){ + $(self).attr("data", $(self).attr("src")); + }if("scroll" != settings.event||undefined == $(self).attr("src")||"" == $(self).attr("src")||settings.placeholder == $(self).attr("src")||($.abovethetop(self,settings)||$.leftofbegin(self,settings)||$.belowthefold(self,settings)||$.rightoffold(self,settings))){ + if(settings.placeholder){ + $(self).attr("src", settings.placeholder);}else{//$(self).removeAttr("src"); + } + self.loaded=false; + }else{ + self.loaded=true; + } + + $(self).one("appear", function(){ + if(!this.loaded || 1 == 1){ + $("").bind("load", function(){ + $(self).hide().attr("src", $(self).attr("data"))[settings.effect](settings.effectspeed); + self.loaded=true; + }).attr("src", $(self).attr("data")); + }; + }); + + if("scroll"!=settings.event){ + $(self).bind(settings.event, function(event){ + if(!self.loaded){ + $(self).trigger("appear"); + } + } + + );} + }); + + $(settings.container).trigger(settings.event); + return this; + }; + + $.belowthefold=function(element,settings){ + if(settings.container === undefined || settings.container === window){ + var fold = $(window).height() + $(window).scrollTop(); + }else{ + var fold = $(settings.container).offset().top + $(settings.container).height(); + } + return fold <= $(element).offset().top - settings.threshold; + }; + + $.rightoffold=function(element,settings){ + if(settings.container === undefined || settings.container === window){ + var fold = $(window).width() + $(window).scrollLeft(); + }else{ + var fold = $(settings.container).offset().left + $(settings.container).width(); + } + return fold <= $(element).offset().left - settings.threshold; + }; + + $.abovethetop=function(element,settings){ + if(settings.container === undefined || settings.container === window){ + var fold = $(window).scrollTop(); + }else{ + var fold = $(settings.container).offset().top; + } + return fold >= $(element).offset().top + settings.threshold + $(element).height(); + }; + + $.leftofbegin=function(element,settings){ + if(settings.container === undefined || settings.container === window){ + var fold = $(window).scrollLeft(); + }else{ + var fold = $(settings.container).offset().left; + } + return fold >= $(element).offset().left + settings.threshold + $(element).width(); + }; + + $.extend( + $.expr[':'], + { + "below-the-fold" : "$.belowthefold(a, {threshold : 0, container: window})", + "above-the-fold" : "!$.belowthefold(a, {threshold : 0, container: window})", + "right-of-fold" : "$.rightoffold(a, {threshold : 0, container: window})", + "left-of-fold" : "!$.rightoffold(a, {threshold : 0, container: window})" + } + ); + +})(jQuery); + + +function getCookie (name) { + var arg = name + "="; + var alen = arg.length; + var clen = document.cookie.length; + var i = 0; + while (i < clen) { + var j = i + alen; + if (document.cookie.substring(i, j) == arg) return getCookieVal (j); + i = document.cookie.indexOf(" ", i) + 1; + if (i == 0) break; + } + return null; +} +function setCookie(name, value, expires, path, domain, secure) +{ + var today = new Date(); + var expiry = new Date(today.getTime() + 100000 * 24 * 60 * 60 * 1000); + if(expires==''||expires==null) + { + expires=expiry; + } + var curCookie = name + "=" + escape(value) + + ((expires) ? "; expires=" + expires.toGMTString() : "") + + ((path) ? "; path=" + path : "") + + ((domain) ? "; domain=" + domain : "") + + ((secure) ? "; secure" : ""); + document.cookie = curCookie; +} + +(function($){ + $.fn.sfHover = function(options){ + var defaults = { + hoverDuring: 200, + outDuring: 200, + hoverEvent: function(){}, + outEvent: function(){} + }; + var s = $.extend(defaults,options || {}); + var h, o, that = this; + return $(this).each(function(){ + $(this).hover(function(){ + clearTimeout(o); + h = setTimeout(function(){s.hoverEvent.apply(that)}, s.hoverDuring); + },function(){ + clearTimeout(h); + o = setTimeout(function(){s.outEvent.apply(that)}, s.outDuring); + }); + }); + }; + + function sf_a(obj,f,c,u) { + $(obj).addClass("curr").siblings().removeClass("curr"); + var i=$(f).index($(f+".curr")); + var w = u.find(".slideArror").width(); + var $left = i * w + "px"; + c.eq(i).show().siblings().hide(); + u.find(".slideArror").animate({"left":$left},300); + + } + var fp=".panel .subTab li"; + $(fp).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".panel .mList .sfList"), + t=$(".panel"); + sf_a(This,fp,c,t); + i = $(this).index(); + if(i == 4 && !c.eq(i).attr('isGet')){ + c.eq(i).html("loading...."); + $.post("/product/like",{},function(str){ + c.eq(i).html(str); + c.eq(i).attr('isGet',1) + }); + }else{ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); + var fc=".countDown .subTab li"; + $(fc).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".countDown .mList .sfList"), + t=$(".countDown"); + sf_a(This,fc,c,t); + + } + }); + }); + var ff=".fresh .floorTab li"; + $(ff).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".fresh .subCont > div"), + t=$(".fresh"); + sf_a(This,ff,c,t); + i = $(this).index(); + if(i>0){ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); + var fdr=".drinks .floorTab li"; + $(fdr).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".drinks .subCont > div"), + t=$(".drinks"); + sf_a(This,fdr,c,t); + i = $(this).index(); + if(i>0){ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); + var fd=".food .floorTab li"; + $(fd).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".food .subCont > div"), + t=$(".food"); + sf_a(This,fd,c,t); + i = $(this).index(); + if(i>0){ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); + var fo=".oil .floorTab li"; + $(fo).each(function(){ + hoverDuring: 300, + $(this).sfHover({ + hoverEvent: function(){ + var This =$(this), + c=$(".oil .subCont > div"), + t=$(".oil"); + sf_a(This,fo,c,t); + i = $(this).index(); + if(i>0){ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); + var ft=".tea .floorTab li"; + $(ft).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".tea .subCont > div"), + t=$(".tea"); + sf_a(This,ft,c,t); + i = $(this).index(); + if(i>0){ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); + var fb=".baby .floorTab li"; + $(fb).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".baby .subCont > div"), + t=$(".baby"); + sf_a(This,fb,c,t); + i = $(this).index(); + if(i>0){ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); + var fh=".health .floorTab li"; + $(fh).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".health .subCont > div"), + t=$(".health"); + sf_a(This,fh,c,t); + i = $(this).index(); + if(i>0){ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); + var fts=".tools .floorTab li"; + $(fts).each(function(){ + $(this).sfHover({ + hoverDuring: 300, + hoverEvent: function(){ + var This =$(this), + c=$(".tools .subCont > div"), + t=$(".tools"); + sf_a(This,fts,c,t); + i = $(this).index(); + if(i>0){ + c.eq(i).find("img.lazy_load").trigger("sporty"); + } + } + }); + }); +})(jQuery); +$(function(){ + + $(".pList li").each(function(){ + $(this).sfHover({ + hoverEvent: function(){ + if ($(this).find(".gWindow").length > 0){ + $(this).find(".gBtn").hide(); + }else{ + $(this).find(".gBtn").show(); + $(this).find(".gBtn").animate({top:"136px"},200); + } + }, + outEvent: function(){ + $(this).find(".gBtn").animate({top:"161px"},300); + } + }); + }); + + $(".sfList li").each(function(){ + $(this).sfHover({ + hoverEvent: function(){ + if ($(this).find(".gWindow").length > 0){ + $(this).find(".gBtn").hide(); + }else{ + $(this).find(".gBtn").show(); + $(this).find(".gBtn").animate({top:"150px"},200); + } + }, + outEvent: function(){ + $(this).find(".gBtn").animate({top:"184px"},300); + } + }); + }); + + $(".rHot dd").live("mouseenter",function(){ + if ($(this).find(".gWindow").length > 0){ + $(this).find(".hBtn").hide(); + }else{ + $(this).find(".hBtn").show(); + } + $(this).find("a.pname").addClass("ddHover"); + }); + $(".rHot dd").live("mouseleave",function(){ + $(this).find(".hBtn").hide(); + $(this).find("a.pname").removeClass("ddHover"); + }); + + SFbest.Slide.init(); + $(".ajaxdata_index li").live("mouseenter",function(){ + if ($(this).find(".gWindow").length > 0){ + $(this).find(".gBtn").hide(); + }else{ + $(this).find(".gBtn").show(); + $(this).find(".gBtn").animate({top:"150px"},200); + } + }); + $(".ajaxdata_index li").live("mouseleave",function(){ + $(this).find(".gBtn").animate({top:"184px"},300); + }); +}) + +var SFbest = {}; +(function (d) { + SFbest.Slide = new function () { + this.init = function () { + Q(); + S(); + T(); + }; + function Q() { + var f = $("#lunbo_1"); + var li = $("ul>li", "#slide_show"); + if (f.length > 0 && li.length > 1) { + setTimeout(function () { + $("#lunboNum").show(); + m("#slide_show"); + var liwidth=0; + $("#lunboNum").find("li").each(function(){ + liwidth+=$(this).outerWidth(true); + }) + $("#lunboNum").css({"margin-left":-(liwidth-10)/2-30}); + }, 1000) + } + + /*e(); + function e() { + var p = p || {}; + p.u_hover = function (r) { + var q = $(r); + q.hover(function () { + $(this).removeClass("hovers").siblings().addClass("hovers") + }, function () { + $(this).siblings().removeClass("hovers") + }) + }; + p.initFun = function () { + p.u_hover("#index_slide .mini_pic a") + }; + p.initFun() + }*/ + function m(q) { + p(); + function p() { + var t = $("ol", "#slide_show").width(), + k = $(window).width(), + B = $("#slide_show>ul>li"), + A = $("#index_slide>ol"), + D = $("#index_slide>ol>li"), + F = $("#indexbg>dl"),// + x = D.length, + z; + //alert(k); + var r = D.first(); + D.last().clone().prependTo(A); + A.width(t * (x + 2) + 100).css("left", "-" + t + "px"); + $("#slide_show").hover(function () { + $(this).children("a").show(); + clearInterval(z) + }, function () { + $(this).children("a").hide(); + clearInterval(z); + z = setInterval(function () { + s(y()) + }, 5000) + }).trigger("mouseout"); + B.hover(function () { + var E = B.index(this); + $(this).addClass("cur").siblings().removeClass("cur"); + $("ol", "#index_slide").stop(true).animate({ + left : "-" + (E + 1) * t + "px" + }, 360); + $("dl", "#indexbg").stop(true).animate({ + left : "-" + E * k + "px" + }, 0);//New + }); + $(".show_next,.show_pre", "#slide_show").click(function () { + var E = y(); + if ($("ol", "#index_slide").is(":animated")) { + return + } + if ($(this).hasClass("show_pre")) { + //alert(x); + $("dl", "#indexbg").animate({ + left : "-=" +E*k + "px" + }, 360,function () { + if (E-1 == 0) { + $("dl", "#indexbg").css("left", "-" + 0 + "px"); + } + else if (E-1 > 0) { + $("dl", "#indexbg").css("left", "-" + (E-1) * k + "px"); + }else{ + $("dl", "#indexbg").css("left", "-" + k * (x-1) + "px"); + } + } + )//new + $("ol", "#index_slide").animate({ + left : "+=" + t + "px" + }, 360, function () { + if (E > 0) { + B.eq(E - 1).addClass("cur").siblings().removeClass("cur"); + } else { + if (E == 0) { + $("ol", "#index_slide").css("left", "-" + t * (x) + "px"); + B.eq(-1).addClass("cur").siblings().removeClass("cur"); + } + } + }) + } else { + s(E) + } + return false + }); + function s(E) { + if (E == x - 1) { + r.addClass("cur").css("left", t * x) + } + $("dl", "#indexbg").stop(true, true).animate({ + left : "-=" + k + "px" + }, 360) + $("ol", "#index_slide").stop(true, true).animate({ + left : "-=" + t + "px" + }, 360, function () { + if (E < x - 1) { + B.eq(E + 1).addClass("cur").siblings().removeClass("cur"); + } else { + if (E == x - 1) { + r.removeClass("cur").css("left", -t); + $("dl", "#indexbg").css("left", "-" + 0 + "px");//New + $("ol", "#index_slide").css("left", "-" + t + "px"); + B.eq(0).addClass("cur").siblings().removeClass("cur") + } + } + }) + } + function y() { + return $("ul>li", "#slide_show").index($("ul>li.cur", "#slide_show")) + } + + } + } + } + function S() { + $(".slide").each(function() { + var f = $(this); + var w = f.width(); + var l = f.find("ul li").length; + var i = 0; + var b = "
        "; + if (l > 1) { + var b = "
        "; + for (var i = 0; i < l; i++) { + b += "" + (i + 1) + ""; + } + b += "
        "; + f.append(b); + f.hover(function(){f.children("a").show();},function(){f.children("a").hide();}); + } + f.find(".slideControls span").removeClass("cur").eq(0).addClass("cur"); + f.find(".slideControls span").mouseenter(function() { + i = f.find(".slideControls span").index(this); + if (i == l) {g();i = 0;} else {h();} + }); + f.find("ul").css("width", w * (l + 1)); + f.find(".btn_next").click(function(){ + i = f.find(".slideControls span.cur").index(); + i++; + if (i == l) {g();} else {h();} + }); + f.find(".btn_prev").click(function(){ + i = f.find(".slideControls span.cur").index(); + if (i == 0) { + f.find("ul").prepend(f.find("ul li:last").clone()); + f.find("ul").css("left",-w); + f.find("ul").stop(true, false).animate({"left": 0}, 360, function() { + f.find("ul").css("left", -(l-1)*w); + f.find("ul li:first").remove(); + }); + f.find(".slideControls span").removeClass("cur").eq(l-1).addClass("cur"); + } else {i--;h();} + }); + function g(){ + f.find("ul").append(f.find("ul li:first").clone()); + var nowLeft = -l * w; + f.find("ul").stop(true, false).animate({"left": nowLeft}, 360, function() { + f.find("ul").css("left", "0"); + f.find("ul li:last").remove(); + }); + f.find(".slideControls span").removeClass("cur").eq(0).addClass("cur"); + } + function h(){ + n(); + f.find(".slideControls span").removeClass("cur").eq(i).addClass("cur"); + } + function n(){ + var nowLeft = -i * w; + f.find("ul").stop(true, false).animate({"left": nowLeft}, 360); + } + }) + } + function T(){ + var i=0; + var li = $(".lpscroll li"); + var n=li.length-1; + var speed = 300; + if(n > 0){ + li.not(":first").css({left:"218px"}); + li.eq(n).css({left:"-218px"}); + $(".lpleftbtn").show(); + $(".lprightbtn").show(); + } + $(".lpleftbtn").click(function(){ + if (!li.is(":animated")) { + if (i>=n){ + i=0;li.eq(n).animate({left:"-218px"},speed); + li.eq(i).animate({left:"0px"},speed); + }else{ + i++; + li.eq(i-1).animate({left:"-218px"},speed); + li.eq(i).animate({left:"0px"},speed); + } + li.not("eq(i)").css({left:"218px"}); + $("i").text(i+1); + } + }); + $(".lprightbtn").click(function(){ + if (!li.is(":animated")) { + if (i<=0){ + i=n; + li.eq(0).animate({left:"218px"},speed); + li.eq(n).animate({left:"0px"},speed); + }else{ + i--; + li.eq(i+1).animate({left:"218px"},speed); + li.eq(i).animate({left:"0px"},speed); + } + li.not("eq(i)").css({left:"-218px"}); + $("i").text(i+1); + } + }); + } + }; +})(jQuery); + +(function($) { + /* + * jAlert使用遮罩层 + */ + var Shade=new function() + { + var handle={}; + var shade; + handle.show=function(func) + { + if(!shade) + { + shade=document.createElement('div'); + shade.style.display = 'none'; + shade.style.zIndex = 99997; + shade.style.filter = 'alpha(opacity = 20)'; + shade.style.left = 0; + shade.style.width = '100%'; + shade.style.position = 'absolute'; + shade.style.top = 0; + shade.style.backgroundColor = '#000000'; + shade.style.opacity = .2; + document.body.appendChild(shade); + } + with((document.compatMode=='CSS1Compat')?document.documentElement:document.body) + { + var ch=clientHeight,sh=scrollHeight; + shade.style.height=(sh>ch?sh:ch)+'px'; + + var cw = clientWidth,sw = scrollWidth, ow=offsetWidth; + var width = cw > sw ? cw : sw; + width = width > ow ? width : ow; + + shade.style.width=width+'px'; + shade.style.display='block'; + } + + if(func){ + func(); + } + }; + handle.hide=function(func){ + shade.style.display='none'; + if(func){ + func(); + } + }; + + return handle; + } + + $.alerts = { + + // These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time + + verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels + horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/ + repositionOnResize: true, // re-centers the dialog on window resize + overlayOpacity: .01, // transparency level of overlay + overlayColor: '#89652b', // base color of overlay + draggable: true, // make the dialogs draggable (requires UI Draggables plugin) + okButton: ' 确定 ', // text for the OK button + cancelButton: ' 取消 ', // text for the Cancel button + dialogClass: null, // if specified, this class will be applied to all dialogs + + // Public methods + + alert: function(message, title, callback) { + if( title == null ) title = '提示信息'; + $.alerts._show(title, message, null, 'alert', function(result) { + if( callback ) callback(result); + }); + }, + + + confirm: function(message, title, callback) { + if( title == null ) title = '确认信息'; + $.alerts._show(title, message, null, 'confirm', function(result) { + if( callback ) callback(result); + }); + }, + + prompt: function(message, value, title, callback) { + if( title == null ) title = '输入信息'; + $.alerts._show(title, message, value, 'prompt', function(result) { + if( callback ) callback(result); + }); + }, + + // Private methods + + _show: function(title, msg, value, type, callback) { + Shade.show(); + $.alerts._hide(); + $.alerts._overlay('show'); + + $("BODY").append( + ''); + + if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass); + + // IE6 Fix + var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed'; + + $("#popup_container").css({ + position: pos, + zIndex: 100000, + padding: 0, + margin: 0 + }); + + if ($.browser.msie && $.browser.version < 7) { + $ie6Fix = $('').css({ + position: "absolute", + zIndex: 99999 + }).insertBefore("#popup_container") + } + + $("#popup_title").text(title); + $("#popup_content").addClass(type); + $("#popup_message").text(msg); + $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '
        ') ); + + $("#popup_container").css({ + minWidth: $("#popup_container").outerWidth(), + maxWidth: $("#popup_container").outerWidth() + }); + + $.alerts._reposition(); + $.alerts._maintainPosition(true); + + switch( type ) { + case 'alert': + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + callback(true); + }); + $("#popup_ok").focus().keypress( function(e) { + if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click'); + }); + break; + case 'confirm': + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(false); + }); + $("#popup_ok").focus(); + $("#popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + break; + case 'prompt': + $("#popup_message").append('
        ').after(''); + $("#popup_prompt").width( $("#popup_message").width() ); + $("#popup_ok").click( function() { + var val = $("#popup_prompt").val(); + $.alerts._hide(); + Shade.hide(); + if( callback ) callback( val ); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback( null ); + }); + $("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + if( value ) $("#popup_prompt").val(value); + $("#popup_prompt").focus().select(); + break; + } + + // Make draggable + if( $.alerts.draggable ) { + try { + $("#popup_container").draggable({ handle: $("#popup_title") }); + $("#popup_title").css({ cursor: 'move' }); + } catch(e) { /* requires jQuery UI draggables */ } + } + }, + + _hide: function() { + if ($.browser.msie && $.browser.version < 7) { + $("#shadow").remove(); + } + $("#popup_container").remove(); + $.alerts._overlay('hide'); + $.alerts._maintainPosition(false); + }, + + _overlay: function(status) { + switch( status ) { + case 'show': + $.alerts._overlay('hide'); + $("BODY").append(''); + $("#popup_overlay").css({ + position: 'absolute', + zIndex: 99998, + top: '0px', + left: '0px', + width: '100%', + height: $(document).height(), + background: $.alerts.overlayColor, + opacity: $.alerts.overlayOpacity + }); + break; + case 'hide': + $("#popup_overlay").remove(); + break; + } + }, + + _reposition: function() { + var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset; + var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset; + var height = $("#popup_container").outerHeight(true); + var width = $("#popup_container").outerWidth(true); + if( top < 0 ) top = 0; + if( left < 0 ) left = 0; + + // IE6 fix + if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop(); + + $("#popup_container").css({ + top: top + 'px', + left: left + 'px' + }); + $("#popup_overlay").height( $(document).height() ); + $("#shadow").css({ + top: top + 'px', + left: left + 'px', + height: height + 34 + 'px', + width: width + 'px' + }); + }, + + _maintainPosition: function(status) { + if( $.alerts.repositionOnResize ) { + switch(status) { + case true: + $(window).bind('resize', $.alerts._reposition); + break; + case false: + $(window).unbind('resize', $.alerts._reposition); + break; + } + } + } + + } + + // Shortuct functions + jAlert = function(message, title, callback) { + $.alerts.alert(message, title, callback); + } + + jConfirm = function(message, title, callback) { + $.alerts.confirm(message, title, callback); + }; + + jPrompt = function(message, value, title, callback) { + $.alerts.prompt(message, value, title, callback); + }; + +})(jQuery); +//autocomplete start +(function($) { + $.fn.extend({ + autocomplete: function(urlOrData, options) { + var isUrl = typeof urlOrData == "string"; + options = $.extend({}, $.Autocompleter.defaults, { + url: isUrl ? urlOrData : null, + data: isUrl ? null : urlOrData, + delay: isUrl ? $.Autocompleter.defaults.delay : 10, + max: options && !options.scroll ? 10 : 150 + }, options); + + // if highlight is set to false, replace it with a do-nothing function + options.highlight = options.highlight || function(value) { return value; }; + + // if the formatMatch option is not specified, then use formatItem for backwards compatibility + options.formatMatch = options.formatMatch || options.formatItem; + + return this.each(function() { + new $.Autocompleter(this, options); + }); + }, + result: function(handler) { + return this.bind("result", handler); + }, + search: function(handler) { + return this.trigger("search", [handler]); + }, + flushCache: function() { + return this.trigger("flushCache"); + }, + setOptions: function(options){ + return this.trigger("setOptions", [options]); + }, + unautocomplete: function() { + return this.trigger("unautocomplete"); + } +}); + +$.Autocompleter = function(input, options) { + + var KEY = { + UP: 38, + DOWN: 40, + DEL: 46, + TAB: 9, + RETURN: 13, + ESC: 27, + COMMA: 188, + PAGEUP: 33, + PAGEDOWN: 34, + BACKSPACE: 8 + }; + + // Create $ object for input element + var $input = $(input).attr("autocomplete", "off").addClass(options.inputClass); + + var timeout; + var previousValue = ""; + var cache = $.Autocompleter.Cache(options); + var hasFocus = 0; + var lastKeyPressCode; + var config = { + mouseDownOnSelect: false + }; + var select = $.Autocompleter.Select(options, input, selectCurrent, config); + + var blockSubmit; + + // prevent form submit in opera when selecting with return key + $.browser.opera && $(input.form).bind("submit.autocomplete", function() { + if (blockSubmit) { + blockSubmit = false; + return false; + } + }); + + // only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all + $input.bind(($.browser.opera ? "keypress" : "keydown") + ".autocomplete", function(event) { + // a keypress means the input has focus + // avoids issue where input had focus before the autocomplete was applied + hasFocus = 1; + // track last key pressed + lastKeyPressCode = event.keyCode; + switch(event.keyCode) { + + case KEY.UP: + event.preventDefault(); + if ( select.visible() ) { + select.prev(); + } else { + onChange(0, true); + } + break; + + case KEY.DOWN: + event.preventDefault(); + if ( select.visible() ) { + select.next(); + } else { + onChange(0, true); + } + break; + + case KEY.PAGEUP: + event.preventDefault(); + if ( select.visible() ) { + select.pageUp(); + } else { + onChange(0, true); + } + break; + + case KEY.PAGEDOWN: + event.preventDefault(); + if ( select.visible() ) { + select.pageDown(); + } else { + onChange(0, true); + } + break; + + // matches also semicolon + case options.multiple && $.trim(options.multipleSeparator) == "," && KEY.COMMA: + case KEY.TAB: + case KEY.RETURN: + if( selectCurrent() ) { + // stop default to prevent a form submit, Opera needs special handling + event.preventDefault(); + blockSubmit = true; + if(options.searchAction) options.searchAction(); + return false; + } + break; + + case KEY.ESC: + select.hide(); + break; + + default: + clearTimeout(timeout); + timeout = setTimeout(onChange, options.delay); + break; + } + }).focus(function(){ + // track whether the field has focus, we shouldn't process any + // results if the field no longer has focus + hasFocus++; + }).blur(function() { + hasFocus = 0; + if (!config.mouseDownOnSelect) { + hideResults(); + } + }).click(function() { + // show select when clicking in a focused field + if ( hasFocus++ > 1 && !select.visible() ) { + onChange(0, true); + } + }).bind("search", function() { + // TODO why not just specifying both arguments? + var fn = (arguments.length > 1) ? arguments[1] : null; + function findValueCallback(q, data) { + var result; + if( data && data.length ) { + for (var i=0; i < data.length; i++) { + if( data[i].result.toLowerCase() == q.toLowerCase() ) { + result = data[i]; + break; + } + } + } + if( typeof fn == "function" ) fn(result); + else $input.trigger("result", result && [result.data, result.value]); + } + $.each(trimWords($input.val()), function(i, value) { + request(value, findValueCallback, findValueCallback); + }); + }).bind("flushCache", function() { + cache.flush(); + }).bind("setOptions", function() { + $.extend(options, arguments[1]); + // if we've updated the data, repopulate + if ( "data" in arguments[1] ) + cache.populate(); + }).bind("unautocomplete", function() { + select.unbind(); + $input.unbind(); + $(input.form).unbind(".autocomplete"); + }).bind("input",function(){ //修复firefox下中文输入法首次收入不提示的bug + hasFocus = 1; + clearTimeout(timeout); + timeout = setTimeout(onChange, options.delay); + }); + + + function selectCurrent() { + var selected = select.selected(); + if( !selected ) + return false; + + var v = selected.result; + previousValue = v; + + if ( options.multiple ) { + var words = trimWords($input.val()); + if ( words.length > 1 ) { + var seperator = options.multipleSeparator.length; + var cursorAt = $(input).selection().start; + var wordAt, progress = 0; + $.each(words, function(i, word) { + progress += word.length; + if (cursorAt <= progress) { + wordAt = i; + return false; + } + progress += seperator; + }); + words[wordAt] = v; + // TODO this should set the cursor to the right position, but it gets overriden somewhere + //$.Autocompleter.Selection(input, progress + seperator, progress + seperator); + v = words.join( options.multipleSeparator ); + } + v += options.multipleSeparator; + } + + $input.val(v); + hideResultsNow(); + $input.trigger("result", [selected.data, selected.value]); + return true; + } + + function onChange(crap, skipPrevCheck) { + if( lastKeyPressCode == KEY.DEL ) { + select.hide(); + return; + } + + var currentValue = $input.val(); + + if ( !skipPrevCheck && currentValue == previousValue ) + return; + + previousValue = currentValue; + + currentValue = lastWord(currentValue); + if ( currentValue.length >= options.minChars) { + $input.addClass(options.loadingClass); + if (!options.matchCase) + currentValue = currentValue.toLowerCase(); + request(currentValue, receiveData, hideResultsNow); + } else { + stopLoading(); + select.hide(); + } + }; + + function trimWords(value) { + if (!value) + return [""]; + if (!options.multiple) + return [$.trim(value)]; + return $.map(value.split(options.multipleSeparator), function(word) { + return $.trim(value).length ? $.trim(word) : null; + }); + } + + function lastWord(value) { + if ( !options.multiple ) + return value; + var words = trimWords(value); + if (words.length == 1) + return words[0]; + var cursorAt = $(input).selection().start; + if (cursorAt == value.length) { + words = trimWords(value); + } else { + words = trimWords(value.replace(value.substring(cursorAt), "")); + } + return words[words.length - 1]; + } + + // fills in the input box w/the first match (assumed to be the best match) + // q: the term entered + // sValue: the first matching result + function autoFill(q, sValue){ + // autofill in the complete box w/the first match as long as the user hasn't entered in more data + // if the last user key pressed was backspace, don't autofill + if( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) { + // fill in the value (keep the case the user has typed) + $input.val($input.val() + sValue.substring(lastWord(previousValue).length)); + // select the portion of the value not typed by the user (so the next character will erase) + $(input).selection(previousValue.length, previousValue.length + sValue.length); + } + }; + + function hideResults() { + clearTimeout(timeout); + timeout = setTimeout(hideResultsNow, 200); + }; + + function hideResultsNow() { + var wasVisible = select.visible(); + select.hide(); + clearTimeout(timeout); + stopLoading(); + if (options.mustMatch) { + // call search and run callback + $input.search( + function (result){ + // if no value found, clear the input box + if( !result ) { + if (options.multiple) { + var words = trimWords($input.val()).slice(0, -1); + $input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : "") ); + } + else { + $input.val( "" ); + $input.trigger("result", null); + } + } + } + ); + } + }; + + function receiveData(q, data) { + if ( data && data.length && hasFocus ) { + stopLoading(); + select.display(data, q); + autoFill(q, data[0].value); + select.show(); + } else { + hideResultsNow(); + } + }; + + function request(term, success, failure) { + if (!options.matchCase) + term = term.toLowerCase(); + var data = cache.load(term); + // recieve the cached data + if (data && data.length) { + success(term, data); + // if an AJAX url has been supplied, try loading the data now + } else if( (typeof options.url == "string") && (options.url.length > 0) ){ + + var extraParams = { + timestamp: +new Date() + }; + $.each(options.extraParams, function(key, param) { + extraParams[key] = typeof param == "function" ? param() : param; + }); + + $.ajax({ + // try to leverage ajaxQueue plugin to abort previous requests + mode: "abort", + // limit abortion to this input + port: "autocomplete" + input.name, + dataType: options.dataType, + url: options.url, + data: $.extend({ + q: lastWord(term), + limit: options.max + }, extraParams), + success: function(data) { + var parsed = options.parse && options.parse(data) || parse(data); + cache.add(term, parsed); + success(term, parsed); + } + }); + } else { + // if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match + select.emptyList(); + failure(term); + } + }; + + function parse(data) { + var parsed = []; + var rows = data.split("\n"); + for (var i=0; i < rows.length; i++) { + var row = $.trim(rows[i]); + if (row) { + row = row.split("|"); + parsed[parsed.length] = { + data: row, + value: row[0], + result: options.formatResult && options.formatResult(row, row[0]) || row[0] + }; + } + } + return parsed; + }; + + function stopLoading() { + $input.removeClass(options.loadingClass); + }; + +}; + +$.Autocompleter.defaults = { + inputClass: "ac_input", + resultsClass: "ac_results", + loadingClass: "ac_loading", + minChars: 1, + delay: 400, + matchCase: false, + matchSubset: true, + matchContains: false, + cacheLength: 10, + max: 100, + mustMatch: false, + extraParams: {}, + selectFirst: true, + formatItem: function(row) { return row[0]; }, + formatMatch: null, + autoFill: false, + width: 0, + multiple: false, + multipleSeparator: ", ", + highlight: function(value, term) { + return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "$1"); + }, + scroll: true, + scrollHeight: 180 + // selectItem: function(activeItem) {}, + //, searchAction: function() {}, +}; + +$.Autocompleter.Cache = function(options) { + + var data = {}; + var length = 0; + + function matchSubset(s, sub) { + if (!options.matchCase) + s = s.toLowerCase(); + var i = s.indexOf(sub); + if (options.matchContains == "word"){ + i = s.toLowerCase().search("\\b" + sub.toLowerCase()); + } + if (i == -1) return false; + return i == 0 || options.matchContains; + }; + + function add(q, value) { + if (length > options.cacheLength){ + flush(); + } + if (!data[q]){ + length++; + } + data[q] = value; + } + + function populate(){ + if( !options.data ) return false; + // track the matches + var stMatchSets = {}, + nullData = 0; + + // no url was specified, we need to adjust the cache length to make sure it fits the local data store + if( !options.url ) options.cacheLength = 1; + + // track all options for minChars = 0 + stMatchSets[""] = []; + + // loop through the array and create a lookup structure + for ( var i = 0, ol = options.data.length; i < ol; i++ ) { + var rawValue = options.data[i]; + // if rawValue is a string, make an array otherwise just reference the array + rawValue = (typeof rawValue == "string") ? [rawValue] : rawValue; + + var value = options.formatMatch(rawValue, i+1, options.data.length); + if ( value === false ) + continue; + + var firstChar = value.charAt(0).toLowerCase(); + // if no lookup array for this character exists, look it up now + if( !stMatchSets[firstChar] ) + stMatchSets[firstChar] = []; + + // if the match is a string + var row = { + value: value, + data: rawValue, + result: options.formatResult && options.formatResult(rawValue) || value + }; + + // push the current match into the set list + stMatchSets[firstChar].push(row); + + // keep track of minChars zero items + if ( nullData++ < options.max ) { + stMatchSets[""].push(row); + } + }; + + // add the data items to the cache + $.each(stMatchSets, function(i, value) { + // increase the cache size + options.cacheLength++; + // add to the cache + add(i, value); + }); + } + + // populate any existing data + setTimeout(populate, 25); + + function flush(){ + data = {}; + length = 0; + } + + return { + flush: flush, + add: add, + populate: populate, + load: function(q) { + if (!options.cacheLength || !length) + return null; + /* + * if dealing w/local data and matchContains than we must make sure + * to loop through all the data collections looking for matches + */ + if( !options.url && options.matchContains ){ + // track all matches + var csub = []; + // loop through all the data grids for matches + for( var k in data ){ + // don't search through the stMatchSets[""] (minChars: 0) cache + // this prevents duplicates + if( k.length > 0 ){ + var c = data[k]; + $.each(c, function(i, x) { + // if we've got a match, add it to the array + if (matchSubset(x.value, q)) { + csub.push(x); + } + }); + } + } + return csub; + } else + // if the exact item exists, use it + if (data[q]){ + return data[q]; + } else + if (options.matchSubset) { + for (var i = q.length - 1; i >= options.minChars; i--) { + var c = data[q.substr(0, i)]; + if (c) { + var csub = []; + $.each(c, function(i, x) { + if (matchSubset(x.value, q)) { + csub[csub.length] = x; + } + }); + return csub; + } + } + } + return null; + } + }; +}; + +$.Autocompleter.Select = function (options, input, select, config) { + var CLASSES = { + ACTIVE: "ac_over" + }; + + var listItems, + active = -1, + data, + term = "", + needsInit = true, + element, + list; + + // Create results + function init() { + if (!needsInit) + return; + element = $("
        ") + .hide() + .addClass(options.resultsClass) + .css("position", "absolute") + .appendTo(document.body); + + list = $("
          ").appendTo(element).mouseover( function(event) { + if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') { + active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event)); + $(target(event)).addClass(CLASSES.ACTIVE); + } + }).click(function(event) { + $(target(event)).addClass(CLASSES.ACTIVE); + select(); + // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus + input.focus(); + if(options.searchAction) options.searchAction(); + return false; + }).mousedown(function() { + config.mouseDownOnSelect = true; + }).mouseup(function() { + config.mouseDownOnSelect = false; + }); + + if( options.width > 0 ) + element.css("width", options.width); + + needsInit = false; + } + + function target(event) { + var element = event.target; + while(element && element.tagName != "LI") + element = element.parentNode; + // more fun with IE, sometimes event.target is empty, just ignore it then + if(!element) + return []; + return element; + } + + function moveSelect(step) { + listItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE); + movePosition(step); + var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE); + if(options.selectItem) options.selectItem(activeItem); + if(options.scroll) { + var offset = 0; + listItems.slice(0, active).each(function() { + offset += this.offsetHeight; + }); + if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) { + list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight()); + } else if(offset < list.scrollTop()) { + list.scrollTop(offset); + } + } + }; + + function movePosition(step) { + active += step; + if (active < 0) { + active = listItems.size() - 1; + } else if (active >= listItems.size()) { + active = 0; + } + } + + function limitNumberOfItems(available) { + return options.max && options.max < available + ? options.max + : available; + } + + function fillList() { + list.empty(); + var max = limitNumberOfItems(data.length); + for (var i=0; i < max; i++) { + if (!data[i]) + continue; + var formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term); + if ( !formatted ) + continue; + var li = $("
        • ").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? "ac_even" : "ac_odd").appendTo(list)[0]; + $.data(li, "ac_data", data[i]); + } + listItems = list.find("li"); + if (options.addArticleCountItem) options.addArticleCountItem(element); + if ( options.selectFirst ) { + listItems.slice(0, 1).addClass(CLASSES.ACTIVE); + active = 0; + } + // apply bgiframe if available + if ( $.fn.bgiframe ) { + list.bgiframe(); + } + } + + return { + display: function(d, q) { + init(); + data = d; + term = q; + fillList(); + }, + next: function() { + moveSelect(1); + }, + prev: function() { + moveSelect(-1); + }, + pageUp: function() { + if (active != 0 && active - 8 < 0) { + moveSelect( -active ); + } else { + moveSelect(-8); + } + }, + pageDown: function() { + if (active != listItems.size() - 1 && active + 8 > listItems.size()) { + moveSelect( listItems.size() - 1 - active ); + } else { + moveSelect(8); + } + }, + hide: function() { + element && element.hide(); + listItems && listItems.removeClass(CLASSES.ACTIVE); + active = -1; + }, + visible : function() { + return element && element.is(":visible"); + }, + current: function() { + return this.visible() && (listItems.filter("." + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]); + }, + show: function() { + var offset = $(input).offset(); + element.css({ + width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(), + top: offset.top + input.offsetHeight, + left: offset.left + }).show(); + if(options.scroll) { + list.scrollTop(0); + list.css({ + maxHeight: options.scrollHeight, + overflow: 'auto' + }); + + if($.browser.msie && typeof document.body.style.maxHeight === "undefined") { + var listHeight = 0; + listItems.each(function() { + listHeight += this.offsetHeight; + }); + var scrollbarsVisible = listHeight > options.scrollHeight; + list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight ); + if (!scrollbarsVisible) { + // IE doesn't recalculate width when scrollbar disappears + listItems.width( list.width() - parseInt(listItems.css("padding-left")) - parseInt(listItems.css("padding-right")) ); + } + } + + } + }, + selected: function() { + var selected = listItems && listItems.filter("." + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE); + return selected && selected.length && $.data(selected[0], "ac_data"); + }, + emptyList: function (){ + list && list.empty(); + }, + unbind: function() { + element && element.remove(); + } + }; +}; + +$.fn.selection = function(start, end) { + if (start !== undefined) { + return this.each(function() { + if( this.createTextRange ){ + var selRange = this.createTextRange(); + if (end === undefined || start == end) { + selRange.move("character", start); + selRange.select(); + } else { + selRange.collapse(true); + selRange.moveStart("character", start); + selRange.moveEnd("character", end); + selRange.select(); + } + } else if( this.setSelectionRange ){ + this.setSelectionRange(start, end); + } else if( this.selectionStart ){ + this.selectionStart = start; + this.selectionEnd = end; + } + }); + } + var field = this[0]; + if ( field.createTextRange ) { + var range = document.selection.createRange(), + orig = field.value, + teststring = "<->", + textLength = range.text.length; + range.text = teststring; + var caretAt = field.value.indexOf(teststring); + field.value = orig; + this.selection(caretAt, caretAt + textLength); + return { + start: caretAt, + end: caretAt + textLength + }; + } else if( field.selectionStart !== undefined ){ + return { + start: field.selectionStart, + end: field.selectionEnd + }; + } +}; +})(jQuery); +//autocomplete stop + +var bd_cpro_rtid="n16znH6"; +var oldstr = ''; + +try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}; +function AddFavorite(url,title){ + if(url==""){ + url = ""; + } + if(title==""){ + title = "宜立方商城"; + } + try{ + window.external.addFavorite(url, title); + }catch (e){ + try{ + window.sidebar.addPanel(title, url, ""); + }catch (e){ + alert("您的浏览器不支持该操作!请您使用菜单栏或Ctrl+D收藏本站。"); + } + } +} + +function checkWord(len,fromName){ + var str=$('.keyword','#'+fromName).val(); + var showstr = ''; + if(str == oldstr) + { + return false; + } + myLen=0; + i=0; + for(;(i0&&str.charCodeAt(i)<128){ + myLen++; + } + else{ + myLen+=2; + } + if(myLen-len <= 0) + { + showstr += str.substr(i,1); + }else{} + } + oldstr = showstr; + $('.keyword','#'+fromName).val(showstr); +} + +function search_keys(formName){ + checkWord(60,formName); + $('#'+formName).submit(); +} + +function getAllPrice(id, css_id){ + var p_ids = ''; + var e_ids = ''; + $("."+id).each( + function (){ + var goodsId = $(this).attr('goods'); + var eid = $(this).attr('eid'); + if(p_ids){ + p_ids = p_ids + ',' + goodsId; + }else{ + p_ids = goodsId; + } + if(e_ids){ + e_ids = e_ids + ',' + eid; + }else{ + e_ids = eid; + } + } + ); + p_ids = p_ids.replace(/,undefined/g,''); + e_ids = e_ids.replace(/,undefined/g,''); + if(p_ids && e_ids){ + $.post("/product/getAllPrice/",{pids:p_ids,eids:e_ids},function(str){ + if(str){ + for(var i=0;i'+ str[i]['sfprice']); + }else{ + $("#"+css_id+e_id).html('¥'+ str[i]['sfprice'] +''); + } + }else{ + if(css_id == 'priceK_'){ + $("#"+css_id+e_id).html(''+ str[i]['price']); + }else{ + $("#"+css_id+e_id).html('¥'+ str[i]['price'] + ''); + } + } + //if($.trim(str[i].tag_img) != '' && (css_id == 'priceL_')){ + // $("#"+css_id+e_id).parent().append(''); + //} + if ( typeof(str[i].presell) !== 'undefined'){ + if(css_id == 'priceK_'){ + $("#"+css_id+e_id).html(''+ str[i].presell.price); + }else{ + $("#"+css_id+e_id).html('¥'+ str[i].presell.price + ''); + } + $("#cx_"+e_id).find(".gBtn").remove(); + } + } + } + },"json"); + } +} + +function getIndexSale(){ + var categoryIds = ''; + $(".indexSale").each( + function (){ + var posId = $(this).attr('sid'); + if(posId){ + categoryIds = categoryIds + ',' + posId; + }else{ + categoryIds = posId; + } + } + ); + if(!categoryIds){ + return categoryIds; + } + categoryIds = categoryIds.replace(/,undefined/g,''); + if(categoryIds){ + $.ajax({ + type: 'POST', + async: false, + dataType: 'json', + url: "/ajax/indexSale/categoryIds/"+categoryIds+"/", + success: function(str){ + if(str){ + $(".indexSale").each( + function (){ + var posId = $(this).attr('sid'); + if(str[posId].indexOf("href") > 0){ + $(this).html(str[posId]); + } + } + ); + } + } + }); + } +} + +function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. +{ + var arVersion = navigator.appVersion.split("MSIE") + var version = parseFloat(arVersion[1]) + if ((version == 6) && (document.body.filters)) + { + for(var j=0; j" + img.outerHTML = strNewHTML + j = j-1 + } + } + } +} +if (window.addEventListener) { + window.addEventListener('DOMContentLoaded', correctPNG, false); //firefox + window.addEventListener('load', correctPNG, false); +} else if (window.attachEvent) { + window.attachEvent('onload', correctPNG); //IE +} + + +$(document).ready(function(){ + var nowTime = new Date().getTime(); + //返回顶部 + if($(".s-top").length > 0){ + $(".s-top").click(function() { + $("html, body").scrollTop(0); + }); + var bToTop = function() { + var st = $(document).scrollTop(); + (st > 0) ? $(".s-top").css("display","block") : $(".s-top").css("display","none"); + }; + $(window).bind("scroll", bToTop); + bToTop(); + } + //滚屏BANNER + if ( $(".topshow").length && !getCookie('is_first')){ + var today = new Date(); + //setCookie('is_first',1,new Date(today.getTime() + 3 * 60 * 60 * 1000)); + $(".banner").hide(); + $(".topclose").hide(); + $(".topshow").slideDown(500,function(){setTimeout(function(){$(".topshow").slideUp(500);$(".banner").slideDown(500);$(".topclose").show();},5000);}); + $(".topclose").click(function(){$(".topclose").hide();$(".banner").slideUp(500)}); + } + //顶部倒计时关闭 + $("#ticket_close").click(function(){$("#ticket_close").hide();$(".q_ticket").slideUp(500)}); +}); + +//服务器时间判断是否执行 +function timeFun(){ + //倒计时 + if(nowtimes >= 1414944000000 && nowtimes<=1415203199000){ + $(".q_ticket").css("background","url(http://p.e3mall.cn/gold/images/20141105/20141105153125147.jpg) no-repeat center"); + $(".q_ticket a").attr('href','http://www.e3mall.cn/html/activity/1414059663.html'); + $(".q_ticket").show(); + ssytimechange(1415203199000); + }else if(nowtimes >= 1415462400000 && nowtimes<=1415807999000){ + $(".q_ticket").css("background","url(http://p.e3mall.cn/gold/images/20141110/20141110183526651.jpg) no-repeat center"); + $(".q_ticket a").attr('href','http://www.e3mall.cn/html/activity/1414059592.html'); + $(".q_ticket").show(); + ssytimechange(1415807999000); + } + + //LOGO右 + if(nowtimes >= 1442246400000 && nowtimes<=1443456000000){ + $('.index_promo').html(''); + $('.index_promo').show(); + }else if(nowtimes >= 1421337600000 && nowtimes<=1421596799000){ + $('.index_promo').html(''); + $('.index_promo').show(); + }else if(nowtimes >=1421596800000 && nowtimes<=1421942399000){ + $('.index_promo').html(''); + $('.index_promo').show(); + }else if(nowtimes >=1421942400000 && nowtimes<=1422287999000){ + $('.index_promo').html(''); + $('.index_promo').show(); + }else if(nowtimes >=1422374400000 && nowtimes<=1422547199000){ + $('.index_promo').html(''); + $('.index_promo').show(); + }else if(nowtimes >=1422547200000 && nowtimes<=1423929599000){ + $('.index_promo').html(''); + $('.index_promo').show(); + }else if(nowtimes >=1430755200000 && nowtimes<=1433087999000){ + $('.index_promo').html(''); + $('.index_promo').show(); + } + + //移动广告语 + if (nowtimes>=1420992000000 && nowtimes<=1423583999000){ + $(".client-promo a").html('App首单签收后 返20元满减券'); + } + + //右侧浮动 + if(nowtimes >=1421337600000 && nowtimes<=1439568000000){ + $('.index_rfloat').html('
          关闭
          '); + $('.index_rfloat').show(); + }else if(nowtimes >=1429200000000 && nowtimes<=1430064000000){ + $('.index_rfloat').html('
          关闭
          '); + $('.index_rfloat').show(); + } + //右侧广告位关闭 + if ($(".index_rfloat").length){$(".J_rclose").click(function(){$(".index_rfloat").hide();});} +} + +function isOnline(home_url,passport_url){ + //login welcome + $.getJSON( "/ajax/isOnline/?callback=?", function( data ) { + if (data.welcome){ + passport_url = passport_url.replace('https', 'http'); + $('#login').html(' '+data.welcome+' [退出]'); + }else{ + var nickName = decodeURI(getCookie('_nickName')); + nickName = nickName?nickName:'嘿'; + nickName = 'false'==nickName?'嘿':nickName; + nickName = 'null'==nickName?'嘿':nickName; + var welComeMsg = ''; + if('嘿' == nickName){ + welComeMsg = nickName+',欢迎来宜立方商城!'; + }else{ + welComeMsg = nickName+',欢迎您!'; + } + $('#login').html(welComeMsg+'请登录  免费注册'); + } + if(data.qqcb){ + $('#login').html(' '+data.welcome+' [退出]'); + $('#qqcb').html(data.qqcb); + } + }); +} + +// JavaScript Document 首页使用 +var nowtimes; +var nextUpTimes; + +//获取服务器时间 +function givetime(){ + var now = ""; + nowtimess = new Date(nowtimes); + temph = nowtimess.getHours() + temps = nowtimess.getSeconds(); + tempi = nowtimess.getMinutes(); + if((temps<1 && tempi<1) || nowtimes>nextUpTimes){ + qiangGouIndex(); + }else{ + nowtimes = Number(nowtimes) + 1000; //当前时间) + window.setTimeout("givetime()",1000) + } +} + + + + + //时间修改 +function timechange(id,endtimes){ + var theDays = Number(endtimes+'000'); + var seconds = (theDays - nowtimes)/1000; + var minutes = Math.floor(seconds/60); + var hours = Math.floor(minutes/60); + var days = Math.floor(hours/24); + var CDay= days; + var CHour= hours % 24; + var CMinute= minutes % 60; + var CSecond= seconds % 60; + var CHour=CHour+CDay*24; + if(CMinute < 10) { + CMinute = "0" + CMinute; + } + if(CHour < 10) { + CHour = "0" + CHour; + } + if(CSecond<10) { + CSecond = "0" + CSecond; + } + var CHour1 = CHour.toString().substr(1,1);; + var CHour1 = CHour.toString().substr(0,1); + var CHour2 = CHour.toString().substr(1,1); + var CMinut1 = CMinute.toString().substr(0,1); + var CMinut2 = CMinute.toString().substr(1,1); + var CSecond1 = CSecond.toString().substr(0,1); + var CSecond2 = CSecond.toString().substr(1,1); + //显示倒计时 + $("#"+id+'Hour1').html(CHour1); + $("#"+id+'Hour2').html(CHour2); + $("#"+id+'Min1').html(CMinut1); + $("#"+id+'Min2').html(CMinut2); + $("#"+id+'Sencond1').html(CSecond1); + $("#"+id+'Sencond2').html(CSecond2); + if(CHour=='00' && CMinute=='00' && CSecond=='00') { + //重新获取 + }else{ + window.setTimeout("timechange('"+id+"',"+endtimes+")",1000); + } +} + + +//双十一活动倒计时 +function ssytimechange(endtime){ + var theDays = Number(endtime); + var seconds = (theDays - nowtimes)/1000; + var minutes = Math.floor(seconds/60); + var hours = Math.floor(minutes/60); + var days = Math.floor(hours/24); + var CDay= days; + var CHour= hours % 24; + var CMinute= minutes % 60; + var CSecond= seconds % 60; + var CHour=CHour+CDay*24; + if(CMinute < 10) { + CMinute = "0" + CMinute; + } + if(CHour < 10) { + CHour = "0" + CHour; + } + if(CSecond<10) { + CSecond = "0" + CSecond; + } + //显示倒计时 + //$("#ssyDay").html(CDay); + $("#ssyHour").html(CHour); + $("#ssyMin").html(CMinute); + $("#ssySencond").html(CSecond); + if(CHour=='00' && CMinute=='00' && CSecond=='00') { + //重新获取 + $(".q_ticket").hide(); + }else{ + window.setTimeout('ssytimechange('+endtime+')',1000) + } +} + +/** + * 抢购 + */ +function qiangGouIndex(){ + $.post("/ajax/GetQingIndex",null,function(str){ + nowtimes = Number(str.nowtimes+'000'); + nextUpTimes = Number(str.nextUpTimes + '000'); + //进行时没有预告有情况 不显示进行时 + if((str.nowList.length<1 && str.nextList.length>0)){ + $("#timed_pre").hide(); + $("#nowCon").hide(); + $("#t_next").hide(); + $("#nextCon").show(); + $("#timed_next").show(); + $("#t_pre").hide(); + $("#t_next").show(); + }else{ + $nowCon = ""; + for(i=0;i<5;i++){ + temp = str.nowList[i]; + var trackref = '#trackref=sfbest_hp_hp_Flash_1-' + (i + 1); + if(temp){ + styleId = temp.aid; + if(temp.isStork){ + $nowCon += "
        • "; + $nowCon += '
          '+temp.title+'
          '; + $nowCon += ''; + $nowCon += '
          ¥'+temp.qgprice+'抢购
          '; + }else{ + $nowCon += '
        • '+temp.title+'
          '; + $nowCon += ''; + $nowCon += '
          ¥'+temp.qgprice+'抢购
          '; + } + $nowCon += '
        • '; + $nowCon += ''; + }else{ + $nowCon += '
        • '; + $nowCon += '
          '; + $nowCon += '
          敬请期待
          '; + $nowCon += '
        • '; + } + } + $("#nowCon").html($nowCon); + } + + //如果预告没有隐藏预告 + if(str.nextList.length<1){ + $("#nextTitle").hide(); + $("#nextCon").hide(); + $("#t_next").hide(); + }else{ + $nextCon = ""; + + for(i=0;i<5;i++){ + temp = str.nextList[i]; + var trackref = '#trackref=sfbest_hp_hp_Flash_2-' + (i + 1); + if(temp){ + styleId = temp.aid; + $nextCon += "
        • "; + $nextCon += '
          '+temp.title+'
          '; + $nextCon += ''; + $nextCon += '
          ¥'+temp.qgprice+'看看
          '; + $nextCon += '
        • '; + $nextCon += ''; + }else{ + $nextCon += '
        • '; + $nextCon += '
          '; + $nextCon += '
          敬请期待
          '; + $nextCon += '
        • '; + } + } + $("#nextCon").html($nextCon); + } + timeFun(); + },"json"); +} + +function getWordAll(isproduct,wwwurl){ + if(isproduct>0){ + var searchUrl = wwwurl + "/productlist/search?inputBox=1&keyword="; + var Url = '/ajax/getWordAll/'; + }else{ + var searchUrl = wwwurl + "/article/search?keyword="; + var Url = '/ajax/getWordAll/type/1'; + } + $.ajax({ + url: Url, + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + success: function(data){ + if(data.hotWords){temp = data.hotWords; hot = '';} + temp = temp.split(","); + for(var i=0; i" + temp[i] + ""; + } + var keywordVal = data.keyWords; + $('.keyword').val(keywordVal); + $('.search_hot').html(hot); + $(".keyword").click(function(){ + var txt_value = $(this).val(); + if(txt_value==keywordVal){ + $(this).val(""); + } + }); + $(".keyword").blur(function(){ + var txt_value = $(this).val(); + if(txt_value==""){ + $(this).val(keywordVal); + } + }) + } + }); +} + +function search() { + $("#searchForm").submit(); +} +function getkeyword(isproduct,wwwurl,formName){ + if(isproduct>0){ + var url = '/productlist/keysearch'; + var str = '相关文章'; + var searchUrl = '/article/search'; + var typestr = '商品'; + var company1 = '件'; + var company2 = '篇'; + }else{ + var url = '/article/keysearch'; + var str = '相关商品'; + var searchUrl = '/productlist/search'; + var typestr = '文章'; + var company1 = '篇'; + var company2 = '件'; + } + var $input = $("input:text[name='keyword']","#"+formName); + var $articleCount = $("
          ").hide(); + $input.select().autocomplete(url, { + delay: 50, + cacheLength: 0, + dataType: "jsonp", + max: 100, + selectFirst: false, + formatItem: function(row) { // 解析数据 + var type = row[0]; + var item = "", label = null; + if(type == 1 && row.length > 1) { // 搜索商品不带统计数据 + label = row[1]; + item += '
          ' + label + '
          '; + } else if(type == 2 && row.length > 2) { // 搜索商品带统计数据 + label = row[1]; + var count = results = parseInt(row[2]); + if(count == 0) { + item += '
          ' + label + '
          没有找到相关'+ typestr +'
          '; + } else { + item += '
          ' + label + '
          约' + count + ''+ company1 +'
          '; + } + } else if(type == 3 && row.length > 2) { // 提示某类别下搜索 + //alert(row[4]) + label = row[1], categoryId = row[2]; categoryName = row[3]; categoryTwoId=row[4]; categoryTwoName = row[5]; count = parseInt(row[6]); + categoryId = categoryTwoId?categoryTwoId:categoryId; + item += '' + categoryName+'>'+ categoryTwoName + '分类中搜索
          约' + count + company1 + '
          '; + } else if(type == 4 && row.length > 2) { // 相关文章总数统计 + var searchkeyword = row[1]; var searchkeywordcount = row[2]; + $articleCount.html("" + searchkeyword + + " "+ str +"约 " + searchkeywordcount + " "+ company2 +"").show() + .mouseover(function(event) { + $("li.ac_over").removeClass("ac_over"); + }); + } + return item; + }, + formatResult: function(row) { + return row[1]; + }, + scroll: false, + selectItem: function(activeItem) { + var $key = $(".jq_auto_complete_key", activeItem); + if($key.length) {$input.val($key.text());} + + var $categoryId = $(".jq_auto_complete_categoryId", activeItem).val(); + var $inputCategoryId = $("input[name='categoryId']"); + if($categoryId){ + $inputCategoryId.val($categoryId); + } else { + $inputCategoryId.val(0); + } + }, + searchAction: function(){ + $("#"+formName).submit(); + }, + addArticleCountItem: function(parentElement) { + $articleCount.appendTo(parentElement); + } + }).result(function(event, data, formatted){ + //如选择后给其他控件赋值,触发别的事件等等 + if(data[0] == 3){ + $categoryId = $(".jq_auto_complete_categoryId").val(); + $inputCategoryId = $("input[name='categoryId']"); + $inputCategoryId.val($categoryId); + } + }); +} + + + +/*** + describe edm相关js + Author zyf + Date 2013-09-22 +***/ +$(document).ready(function(){ + $("#store-selector1").mouseover(function(){$(this).addClass("hover");}); + $("#store-selector1").hover(function(){$("#store-selector1").removeClass("hover");}); + $("#footermail").bind("focus",function(){ + $("#emailMsg").hide(); + if($(this).val()=='请填写邮箱订阅促销'){ + $(this).val(''); + return; + } + }); + $("#footermail").bind("blur",function(){ + if($(this).val()==''){ + $(this).val('请填写邮箱订阅促销'); + return; + } + }); + $("#emailval").bind("focus",function(){ + if($(this).val()=='请输入邮箱地址'){ + $(this).val(''); + } + }); +}) +var ckboxlist = function(obj){ + var objName= document.getElementsByName(obj); + var targetStr = ii =-1; + for (i=0; i 0){ + var floatBar=function(){ + var floatBarTop = $(document).scrollTop(),startTop=$(".navmenu").offset().top; + (floatBarTop > startTop) ? $(".floatBar").removeClass("hide") : $(".floatBar").addClass("hide"); + (floatBarTop > startTop) ? $(".flads").removeClass("hide") : $(".flads").addClass("hide"); + }; + $(window).bind("scroll", floatBar); + floatBar(); +} +0 !== $(".rTopImg").length && imgAnimate(".rTopImg"); +var index_win_w = $(window).width(); +if (index_win_w <= 1440) {$(".index_rfloat").addClass("index_side");} +else {$(".index_rfloat").removeClass("index_side");} +$(window).resize(function() { + var index_win_width = $(window).width(); + if (index_win_width <= 1440) {$(".index_rfloat").addClass("index_side");} + else {$(".index_rfloat").removeClass("index_side");} +}); +}) + +/*城市选择 start +date:2014-7-15 +*/ +$(document).ready(function(){ + $(".city_bottom .huadong").each(function(j){ + $(this).click(function(){ + $(".city_bottom .htcity").hide(); + $(".city_bottom .htcity").eq(j).show(); + $(this).addClass("huadong").siblings().removeClass("huadong"); + }) + }); + $(".huadong li").each(function(i){ + $(this).click(function(){ + var city_selected=$(this).text(); + if(city_selected=='北京' || city_selected=='天津' || city_selected=='上海' || city_selected=='重庆'){ + $(this).siblings().removeClass("on"); + $(".htcity dl").hide(); + } + else{ + $(this).addClass("on").siblings().removeClass("on"); + $(".htcity dl").eq(i).toggle().siblings().hide(); + if($(".htcity dl").eq(i).css("display")=="none"){ + $(this).removeClass("on"); + } + } + + }) + }); + //关闭 + $(".off").click(function() { + $(".d6").mouseout(); + }) +}); +/*城市选择 end */ +/*获取热门晒单*/ +function getHotSun(){ + $.ajax({ + type: 'get', + async: false, + dataType: 'jsonp', + url: "/ajax/GetHotSun/", + success: function(data){ + $('#toplist').html(data.data); + } + }); +} + +function getFindGoods(){ + $.ajax({ + type: 'get', + async: false, + dataType: 'jsonp', + url: "/ajax/GetFindGoods/", + success: function(data){ + //alert(data.data); + //$('#findGoods').html('111111111111'); + $('#findGoods').html(data.data); + } + }); +} + +function setCity(wwwUrl,provinceId,cityId,countyId){ + var provinceId = provinceId?provinceId:2; + var cityId = cityId?cityId:52; + var countyId = countyId?countyId:500; + var townid = 0; + var today = new Date(); + var expiry = new Date(today.getTime() + 3600 * 24 * 30 * 3 * 1000); + var domain = window.location.host; + domain = domain.substring(domain.indexOf('.')); + setCookie('provinceid',provinceId,expiry,'/',domain); + setCookie('cityid',cityId,expiry,'/',domain); + setCookie('areaid',countyId,expiry,'/',domain); + setCookie('townid',townid,expiry,'/',domain); + window.location.reload(); +// $.ajax({ +// url : wwwUrl+'/AjaxSetCity/Changecity/', +// dataType: "jsonp", +// jsonp:"callback", +// data : {provinceid:provinceId,cityid:cityId,areaid:countyId}, +// success: function(str){ +// window.location.reload(); +// } +// }); +} + +//index page set cookie for webapp +(function($, window){ + var + url = window.location.href, + queryKey = function(key, url) { + var query = url.indexOf('?') > -1 ? url.split('?')[1] : url; + if (!query) return ''; + var queryr = query.split('&'); + while(true) { + var k = queryr.pop(); + if (!k) { + break; + } + var q = k.split('='); + if (q[0] && q[1] && q[0] == key) { + return q[1]; + } + } + return ''; + }, + cookieKey = 'uc', + cookieVal = queryKey(cookieKey, url); + + if (cookieVal == '1') { + var curCookie = cookieKey + "=" + window.encodeURIComponent(cookieVal) + + "; path=/"; + window.document.cookie = curCookie; + } + +})($, window); + +//获取屏幕宽度 +$(window).load(function(){ + var sw = $(window).width(); + $("#indexbg dd").css({width:sw}); +}) +//图片高亮显示 +$(function(){ + $(".a-img").mouseover(function(){ + $(this).addClass("layer").parent().addClass("hover"); + }).mouseout(function(){ + $(this).removeClass("layer").parent().removeClass("hover"); + }); +}) + //口碑甄选 + $(function(){ + $(".bbig li").each(function(){ + $(this).sfHover({ + hoverEvent: function(){ + if ($(this).find(".gWindow").length > 0){ + $(this).find(".gBtn").hide(); + }else{ + $(this).find(".gBtn").show(); + $(this).find(".gBtn").animate({top:"225px"},200); + } + }, + outEvent: function(){ + $(this).find(".gBtn").animate({top:"260px"},300); + } + }); + }); + + $(".bsmall li").each(function(){ + $(this).sfHover({ + hoverEvent: function(){ + if ($(this).find(".gWindow").length > 0){ + $(this).find(".gBtn").hide(); + }else{ + $(this).find(".gBtn").show(); + $(this).find(".gBtn").animate({top:"168px"},200); + } + }, + outEvent: function(){ + $(this).find(".gBtn").animate({top:"210px"},300); + } + }); + }); + }) +//右边楼层图片 +$(function(){ + $(".rimg").mouseover(function(){ + $(this).find(".rbutton").addClass("hover"); + }).mouseout(function(){ + $(this).find(".rbutton").removeClass("hover"); + }); +}) diff --git a/e3-portal-web/src/main/resources/static/js/jquery-1.4.2.min.js b/e3-portal-web/src/main/resources/static/js/jquery-1.4.2.min.js new file mode 100644 index 0000000..7c24308 --- /dev/null +++ b/e3-portal-web/src/main/resources/static/js/jquery-1.4.2.min.js @@ -0,0 +1,154 @@ +/*! + * jQuery JavaScript Library v1.4.2 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Sat Feb 13 22:33:48 2010 -0500 + */ +(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, +Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& +(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, +a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== +"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, +function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
          a"; +var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, +parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= +false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= +s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, +applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; +else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, +a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== +w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, +cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= +c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); +a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, +function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); +k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), +C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= +e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& +f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; +if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", +e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, +"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, +d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, +e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); +t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| +g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, +CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, +g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, +text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, +setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= +h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== +"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, +h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& +q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; +if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

          ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); +(function(){var g=s.createElement("div");g.innerHTML="
          ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: +function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= +{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== +"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", +d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? +a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== +1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
          ","
          "],thead:[1,"","
          "],tr:[2,"","
          "],td:[3,"","
          "],col:[2,"","
          "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
          ","
          "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, +""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); +return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", +""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= +c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? +c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= +function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= +Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, +"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= +a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= +a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== +"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
          ").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, +serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), +function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, +global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& +e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? +"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== +false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= +false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", +c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| +d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); +g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== +1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== +"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; +if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== +"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| +c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; +this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= +this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, +e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
          "; +a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); +c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, +d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- +f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": +"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in +e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); diff --git a/e3-portal-web/src/main/resources/static/js/jquery.cookie.js b/e3-portal-web/src/main/resources/static/js/jquery.cookie.js new file mode 100644 index 0000000..c7f3a59 --- /dev/null +++ b/e3-portal-web/src/main/resources/static/js/jquery.cookie.js @@ -0,0 +1,117 @@ +/*! + * jQuery Cookie Plugin v1.4.1 + * https://github.com/carhartl/jquery-cookie + * + * Copyright 2013 Klaus Hartl + * Released under the MIT license + */ +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD + define(['jquery'], factory); + } else if (typeof exports === 'object') { + // CommonJS + factory(require('jquery')); + } else { + // Browser globals + factory(jQuery); + } +}(function ($) { + + var pluses = /\+/g; + + function encode(s) { + return config.raw ? s : encodeURIComponent(s); + } + + function decode(s) { + return config.raw ? s : decodeURIComponent(s); + } + + function stringifyCookieValue(value) { + return encode(config.json ? JSON.stringify(value) : String(value)); + } + + function parseCookieValue(s) { + if (s.indexOf('"') === 0) { + // This is a quoted cookie as according to RFC2068, unescape... + s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); + } + + try { + // Replace server-side written pluses with spaces. + // If we can't decode the cookie, ignore it, it's unusable. + // If we can't parse the cookie, ignore it, it's unusable. + s = decodeURIComponent(s.replace(pluses, ' ')); + return config.json ? JSON.parse(s) : s; + } catch(e) {} + } + + function read(s, converter) { + var value = config.raw ? s : parseCookieValue(s); + return $.isFunction(converter) ? converter(value) : value; + } + + var config = $.cookie = function (key, value, options) { + + // Write + + if (value !== undefined && !$.isFunction(value)) { + options = $.extend({}, config.defaults, options); + + if (typeof options.expires === 'number') { + var days = options.expires, t = options.expires = new Date(); + t.setTime(+t + days * 864e+5); + } + + return (document.cookie = [ + encode(key), '=', stringifyCookieValue(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '' + ].join('')); + } + + // Read + + var result = key ? undefined : {}; + + // To prevent the for loop in the first place assign an empty array + // in case there are no cookies at all. Also prevents odd result when + // calling $.cookie(). + var cookies = document.cookie ? document.cookie.split('; ') : []; + + for (var i = 0, l = cookies.length; i < l; i++) { + var parts = cookies[i].split('='); + var name = decode(parts.shift()); + var cookie = parts.join('='); + + if (key && key === name) { + // If second argument (value) is a function it's a converter... + result = read(cookie, value); + break; + } + + // Prevent storing a cookie that we couldn't decode. + if (!key && (cookie = read(cookie)) !== undefined) { + result[name] = cookie; + } + } + + return result; + }; + + config.defaults = {}; + + $.removeCookie = function (key, options) { + if ($.cookie(key) === undefined) { + return false; + } + + // Must not alter options, thus extending a fresh object... + $.cookie(key, '', $.extend({}, options, { expires: -1 })); + return !$.cookie(key); + }; + +})); diff --git a/e3-portal-web/src/main/resources/templates/commons/footer.html b/e3-portal-web/src/main/resources/templates/commons/footer.html new file mode 100644 index 0000000..9a52995 --- /dev/null +++ b/e3-portal-web/src/main/resources/templates/commons/footer.html @@ -0,0 +1,106 @@ + + \ No newline at end of file diff --git a/e3-portal-web/src/main/resources/templates/commons/header.html b/e3-portal-web/src/main/resources/templates/commons/header.html new file mode 100644 index 0000000..f18c1b9 --- /dev/null +++ b/e3-portal-web/src/main/resources/templates/commons/header.html @@ -0,0 +1,61 @@ + +
          + +
          + + +
          \ No newline at end of file diff --git a/e3-portal-web/src/main/resources/templates/commons/mainmenu.html b/e3-portal-web/src/main/resources/templates/commons/mainmenu.html new file mode 100644 index 0000000..6c72906 --- /dev/null +++ b/e3-portal-web/src/main/resources/templates/commons/mainmenu.html @@ -0,0 +1,1049 @@ + + + \ No newline at end of file diff --git a/e3-portal-web/src/main/resources/templates/commons/shortcut.html b/e3-portal-web/src/main/resources/templates/commons/shortcut.html new file mode 100644 index 0000000..214faad --- /dev/null +++ b/e3-portal-web/src/main/resources/templates/commons/shortcut.html @@ -0,0 +1,143 @@ + +
          +
          + + + +
          + + +
          \ No newline at end of file diff --git a/e3-portal-web/src/main/resources/templates/index.html b/e3-portal-web/src/main/resources/templates/index.html new file mode 100644 index 0000000..9e5ebc0 --- /dev/null +++ b/e3-portal-web/src/main/resources/templates/index.html @@ -0,0 +1,530 @@ + + + + + + + 宜立方商城-宜立方旗下全球美食优选网购商城-进口食品、母婴、营养保健品、生鲜、粮油、酒水饮料、休闲食品-宜立方商城e3mall.cn + + + + + + + + + + + + +
          + +
          + +
          +
          +
          +
            +
          1. + + + +
          2. +
          +
          + +
          +
            +
          • +
          • +
          +
          +
          +
          +
          +
          +
          +
          +
          +
          +
          +
          +
          +
          + + +
          +
          +
          +

          优选必买

          + + +
          + + +
          +
          +
          + +
          8.30-9.5 +
          +
          +
          + + +
          +
          +
          + +
          + +
          + + +
          + + + +
          + + + \ No newline at end of file diff --git a/e3-search-web/pom.xml b/e3-search-web/pom.xml new file mode 100644 index 0000000..6044b4d --- /dev/null +++ b/e3-search-web/pom.xml @@ -0,0 +1,78 @@ + + + + e3-parent + guo.ping.e3mall + 1.0-SNAPSHOT + ../e3-parent/pom.xml + + 4.0.0 + + e3-search-web + jar + + + UTF-8 + 1.7 + 1.7 + + + + + guo.ping.e3mall + e3-common + 1.0-SNAPSHOT + + + guo.ping.e3mall + e3-search-interface + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + com.alibaba.boot + dubbo-spring-boot-starter + + + + com.github.sgroschupf + zkclient + + + log4j + log4j + + + + + + + e3-search-web + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + \ No newline at end of file diff --git a/e3-search-web/src/main/java/guo/ping/e3mall/search/SearchWebApplicationStarter.java b/e3-search-web/src/main/java/guo/ping/e3mall/search/SearchWebApplicationStarter.java new file mode 100644 index 0000000..e2fae77 --- /dev/null +++ b/e3-search-web/src/main/java/guo/ping/e3mall/search/SearchWebApplicationStarter.java @@ -0,0 +1,11 @@ +package guo.ping.e3mall.search; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SearchWebApplicationStarter { + public static void main(String[] args) { + SpringApplication.run(SearchWebApplicationStarter.class, args); + } +} diff --git a/e3-search-web/src/main/java/guo/ping/e3mall/search/config/MySettingFileConfig.java b/e3-search-web/src/main/java/guo/ping/e3mall/search/config/MySettingFileConfig.java new file mode 100644 index 0000000..659e212 --- /dev/null +++ b/e3-search-web/src/main/java/guo/ping/e3mall/search/config/MySettingFileConfig.java @@ -0,0 +1,10 @@ +package guo.ping.e3mall.search.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; + +@Configuration +@PropertySource("classpath:conf/conf.properties") +public class MySettingFileConfig { + +} diff --git a/e3-search-web/src/main/java/guo/ping/e3mall/search/controller/SearchController.java b/e3-search-web/src/main/java/guo/ping/e3mall/search/controller/SearchController.java new file mode 100644 index 0000000..4640552 --- /dev/null +++ b/e3-search-web/src/main/java/guo/ping/e3mall/search/controller/SearchController.java @@ -0,0 +1,33 @@ +package guo.ping.e3mall.search.controller; + +import com.alibaba.dubbo.config.annotation.Reference; +import guo.ping.e3mall.common.pojo.SearchResult; +import guo.ping.e3mall.search.service.SearchService; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; + +@Controller +public class SearchController { + + @Reference + private SearchService searchService; + @Value("${PAGE_ROWS}") + private Integer PAGE_ROWS; + + @RequestMapping("/search.html") + public String search(String keyword, @RequestParam(defaultValue = "1") Integer page, Model model) throws Exception { + //调用Service查询商品信息 + SearchResult result = searchService.search(keyword, page, PAGE_ROWS); + //把结果传递给jsp页面 + model.addAttribute("query", keyword); + model.addAttribute("totalPages", result.getTotalPages()); + model.addAttribute("recourdCount", result.getRecourdCount()); + model.addAttribute("page", page); + model.addAttribute("itemList", result.getItemList()); + //返回逻辑视图 + return "search"; + } +} diff --git a/e3-search-web/src/main/java/guo/ping/e3mall/search/exception/GlobalExceptionHandler.java b/e3-search-web/src/main/java/guo/ping/e3mall/search/exception/GlobalExceptionHandler.java new file mode 100644 index 0000000..ee11c7c --- /dev/null +++ b/e3-search-web/src/main/java/guo/ping/e3mall/search/exception/GlobalExceptionHandler.java @@ -0,0 +1,35 @@ +package guo.ping.e3mall.search.exception; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; + +/** + * 全局异常处理类 + */ +@ControllerAdvice +public class GlobalExceptionHandler { + + public static final String DEFAULT_ERROR_VIEW = "error/exception"; + private static final Logger logger = LoggerFactory.getLogger(GlobalExceptionHandler.class); + + @ExceptionHandler(Exception.class) + public ModelAndView defaultErrorHandler(HttpServletRequest req, Exception e) throws Exception { + + // 打印控制台 + e.printStackTrace(); + + // 保存至log + logger.error("e3-search系统发生错误", e); + + ModelAndView modelAndView = new ModelAndView(); + modelAndView.addObject("exception", e); + modelAndView.addObject("url", req.getRequestURL()); + modelAndView.setViewName(DEFAULT_ERROR_VIEW); + return modelAndView; + } +} diff --git a/e3-search-web/src/main/resources/application.yaml b/e3-search-web/src/main/resources/application.yaml new file mode 100644 index 0000000..b7079ec --- /dev/null +++ b/e3-search-web/src/main/resources/application.yaml @@ -0,0 +1,9 @@ +#tomcat conf +server: + port: 8083 +#dubbo conf +dubbo: + application: + name: e3-search-web + registry: + address: zookeeper://192.168.163.132:2181 \ No newline at end of file diff --git a/e3-search-web/src/main/resources/conf/conf.properties b/e3-search-web/src/main/resources/conf/conf.properties new file mode 100644 index 0000000..203ad46 --- /dev/null +++ b/e3-search-web/src/main/resources/conf/conf.properties @@ -0,0 +1 @@ +PAGE_ROWS=60 \ No newline at end of file diff --git a/e3-search-web/src/main/resources/static/css/all.css b/e3-search-web/src/main/resources/static/css/all.css new file mode 100644 index 0000000..f3ddaca --- /dev/null +++ b/e3-search-web/src/main/resources/static/css/all.css @@ -0,0 +1,3075 @@ +body{text-algin:center;margin:0px;font-size:12px; font-family:Arial, Helvetica, sans-serif;color:#646464;padding:0;} +.padbody{text-algin:center;margin:0px;font-size:12px; font-family:Arial, Helvetica, sans-serif; background:url(../images/bg.jpg) repeat-x top #fff;padding:0px 0px 0px 0px; color:#666666;} +.loginbody{padding:0px 0px 0px 0px;} +h1, h2, h3, h4, h5, h6, p, a, em, font, img, strong, b,dl, dt, dd,form, label,ol,ul,li,legend,span,input{margin:0;padding:0;} +ul,li,ol{list-style:none;} +p{margin:0px; padding:0px;color:#6b6b6b;word-break: break-all; } +img{border:0px;} +a{color:#666666;text-decoration:none;} +a:hover{color:#0a6737;text-decoration:none;border:none;*vertical-align:baseline;} +.box{width:1000px; margin:auto;} +.yupbody{background:url(../images/yupbg.jpg) repeat-x top #ebebeb;} +input{outline:none} +em{font-style:normal;} +/*顶部浮动*/ +.topMenu{width:100%;height:33px;text-align:center;position:relative;top:0;z-index:101;padding:0px;background:#f7f7f7;border-bottom:1px solid #eeeeee;} +.topMenu a{color:#969696;} +.topMenu a:hover{color:#669900;} +.pW{width:1000px;margin:auto;} +.topTh li{float:left;position:relative;line-height:33px;} +.topTh .d2{padding:0 10px 0 28px;} +/*首页城市选择遮罩层*/ +.indexshadow{font-size:14px;width:580px;background-color:#fff;border:5px #767574 solid;position:absolute;top:0;left:0;display:none;z-index:99999;} +#screen{width:100%;height:100%;position:absolute;top:0;left:0;display:none;z-index:9999;background-color:#666;opacity:0.7;filter:alpha(opacity=70);-moz-opacity:0.7;} +.indexshadow .city_top{height:50px; padding-left:10px;border-bottom:1px solid #DCDCDC; line-height:50px;} +.indexshadow .city_top span{ float:left; font-size:12px; color:#000;} +.indexshadow .city_top .taddress{ +padding:0 10px 0 10px; +height:26px; +line-height:26px; +background-image: -moz-linear-gradient(top, #65BC02, #6DC403); /*火狐*/ +background: -o-linear-gradient(top, #65BC02 0%,#6DC403 100%);/*Opera*/ +background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #65BC02), color-stop(1,#6DC403)); /*Chrome*/ +filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#65BC02', endColorstr='#6DC403', GradientType='0'); /*IE*/ +background: -ms-linear-gradient(top,#65BC02 0%,#6DC403 100%); /*IE10以上*/ +border-radius:2px; +font-size:14px; +font-weight:bold; +text-align:center; +margin:10px 0 0 0; +} +.indexshadow .city_top .taddress a{color:#FFF; } +.indexshadow .city_middle{margin:0px 0px 5px 0px;padding-left:10px;} +.indexshadow .city_middle ul li{width:45px; height:40px; line-height:40px; float:left; text-align:center;} +.indexshadow .city_middle ul li a{ color:#0099FF;} +.indexshadow .city_bottom{margin:5px 0px 0px 0px; padding-bottom:10px;} +.indexshadow .city_bottom .quyu{ float:left; text-align:center; height:35px; line-height:35px; width:95px; border-top:1px solid #f5f5f5;border-right:1px solid #f5f5f5; color:#969696;} +.indexshadow .city_bottom ul{ width:100%;*width:480px;border-top:1px solid #f5f5f5;} +.indexshadow .city_bottom ul li{ color:#333333; float:left; height:35px; width:50px; text-align:center; height:35px; line-height:35px; cursor:pointer;} +.indexshadow .city_bottom .huadong .on{background:url(../images/foot/icity_bg.png) center bottom no-repeat; color:#FFF;z-index:2; position:relative; bottom:-1px;} +.indexshadow .city_bottom .htcity{margin:0 0 0 95px; width:480px; overflow:hidden; z-index:1; position:relative;} +.indexshadow .city_bottom .htcity dl{text-align:center; width:100%; float:left;background:#f9f9f9;border-top:1px solid #69af05;} +.indexshadow .city_bottom .htcity dl dd a{ padding-left:2px; text-align:center; width:65px; height:25px; line-height:25px; overflow:hidden; float:left;text-decoration:none; color:#333333; display:block; font-size:12px;} +.indexshadow .city_bottom .htcity dl dd a:hover{ color:#669900;text-decoration:none;} +.indexshadow .city_bottom .htcity dl dd a.city-long{padding-left:2px; text-align:center; width:132px; height:25px; line-height:25px; overflow:hidden; float:left;text-decoration:none; color:#333333; display:block;} +.indexshadow .city_bottom .htcity dl dd a.city-long:hover{ color:#669900;text-decoration:none;} +/*顶部城市选择*/ +.topTh .d6 p{width:72px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .pshort{width:50px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .pmiddle{width:60px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .city_title{ margin:0 0 0 8px; *margin:0 0 0 -10px; width:48px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 .city_title1{ margin:0 0 0 5px; *margin:0 0 0 -10px; width:30px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 .city_title2{ margin:0 0 0 5px; *margin:0 0 0 -10px; width:40px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 b{background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;position:absolute;top:15px;right:5px;} +.topTh .d6.hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .d6 .blank,.topTh .d6 .outline{width:72px;} +.topTh .blank1,.topTh .outline1{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank1{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:50px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .outline1{z-index:1;left:6px;width:50px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .blank2,.topTh .outline2{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank2{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:60px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .outline2{z-index:1;left:6px;width:60px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .d6 .dd{display:none; width:438px;border:1px solid #DCDCDC; text-align:left; margin:0;} +.topTh .d6.hover .blank{top:6px;height:22px;z-index:-1; margin:0;} +.topTh .d6.hover .outline{z-index:1;top:25px; left:1px;} +.topTh .d6.hover .blank1{top:6px;height:22px;z-index:-1; margin:0; display:block;} +.topTh .d6.hover .outline1{z-index:1;top:25px; left:1px;display:block;} +.topTh .d6.hover .blank2{top:6px;height:22px;z-index:-1; margin:0; display:block;} +.topTh .d6.hover .outline2{z-index:1;top:25px; left:1px;display:block;} +.topTh .d6 .city_top{ margin:5px 10px 5px 10px;height:30px; border-bottom:1px solid #DCDCDC; line-height:30px;} +.topTh .d6 .city_top span{ float:left; color:#969696;} +.topTh .d6 .city_top .off{ height:25px; float:right;background: url(../images/index_icon_new.png) -245px -33px no-repeat;width:18px; height:18px; margin:8px 0 0 0; cursor:pointer;} +.topTh .d6 .city_middle{margin:0px 10px 5px 10px;} +.topTh .d6 .city_middle ul li{width:38px;} +.topTh .d6 .city_middle ul li a{ color:#0099FF;} +.topTh .d6 .city_bottom{margin:5px 10px 15px 10px; color:#969696;} +.topTh .d6 .city_bottom .quyu{ float:left; height:25px; line-height:25px; color:#969696;} +.topTh .d6 .city_bottom ul{ float:left; width:360px; *width:380px; display:inline;} +.topTh .d6 .city_bottom ul li{ width:40px; text-align:center; height:25px; line-height:22px; cursor:pointer; color:#333333;} +.topTh .d6 .city_bottom .huadong .on{background:url(../images/foot/city_bg.png) center bottom no-repeat; color:#FFF;} +.topTh .d6 .city_bottom .htcity dl{ text-align:center; float:left; width:425px;background:#F5F5F5; border-top:1px solid #669900; margin-top:-1px; } +.topTh .d6 .city_bottom .htcity dl dd a{ display:block; padding-left:10px; width:50px;line-height:25px; height:25px; float:left; text-align:center; overflow:hidden; color:#333333;} +.topTh .d6 .city_bottom .htcity dl dd a:hover{color:#669900;} +.topTh .d6 .city_bottom .htcity dl dd a.city-long{display:block; padding-left:10px; width:110px;line-height:25px; height:25px; float:left; text-align:center; overflow:hidden;} +.topTh .d3,.topTh .d4{width:30px;height:30px;} +.topTh .d1{ color:#969696;} +.topTh .d2 s{width:0px;height:18px;position:absolute;top:8px;left:0;overflow:hidden;} +.topTh .d2 q,.topTh .d3 q,.topTh .d4 q{height:16px;position:absolute;top:9px; quotes:none;} +.topTh .d2 q{background:url(../images/header.png) no-repeat -73px -122px;width:10px;left:10px;transition:all 0.2s ease 0s;} +.topTh .d2.hover q{background:url(../images/header.png) no-repeat -73px -138px;} +.topTh .d2 .dd{display:none;top:32px;width:230px;left:-50px;padding:15px 0 0 0;} +.topTh .d2 .dd .sf-client{margin-bottom:10px;margin-left:15px;position:relative;text-align:left;} +.topTh .d2 .dd .client-img{width:73px;height:74px;overflow:hidden;background:url(../images/header.png) no-repeat 0 -93px;display:block;} +.topTh .d2 .dd i{position:absolute;width:50px;height:29px;left:80px;top:5px;background:url(../images/header.png) no-repeat -73px -93px;display:block;} +.topTh .d2 .dd .client-txt{position:absolute;left:95px;top:34px;} +.topTh .d2 .dd .client-txt em{display:block;line-height:20px;} +.topTh .d2 .dd .client-txt strong{color:#76ac25;line-height:20px;} +.topTh .d2 .dd .client-promo{height:30px;background:url(../images/indexImg20130307.png) no-repeat -182px -210px #fcfbe4;text-align:center;color:#fa6400;font-size:14px;font-weight:bold;line-height:30px;} +.topTh .d2 .dd .client-promo a:link,.topTh .d2 .dd .client-promo a:visited{color:#fa6400;} +.topTh .d2 .dd .app-btn{font-size:0;height:29px;margin:0 0 10px 15px;} +.topTh .d2 .dd .app-apple{float:left;display:block;width:96px;height:29px;background:url(../images/header.png) no-repeat 0 -167px;margin-right:5px;_display:inline;} +.topTh .d2 .dd .app-android{float:left;display:block;width:96px;height:29px;background:url(../images/header.png) no-repeat 0 -196px;} +.topTh .d3 q{background:url(../images/header.png) no-repeat -55px 0;width:19px;left:12px;cursor:pointer;quotes:none;} +.topTh .d4 q{background:url(../images/header.png) no-repeat -74px 0;width:17px;left:8px; quotes:none;} +.topTh .d4 .dd{display:none;left:-50px;top:32px;} +.topTh .d4 .dd .sf_wx_t{ width:136px; height:22px; line-height:22px; color:#515151;} +.topTh .d4 .dd .sf_wx{display:block;width:136px;height:110px;background:url(../images/weixin.png) no-repeat top center #FFFFFF;} +.topTh .login{color:#999999;padding:0 10px;} +.topTh .login a:link,.topTh .login a:visited{color:#969696;} +.topTh .login a:hover{color:#669900;} +.topTh .logininfo{color:#666666;} +.topTh .myOrder{padding:0 10px;} +.topTh .menus{padding:0 10px 0 10px;width:60px;cursor:default;margin:6px 0 0 0; line-height:22px;} +.topMenu .fr b{position:absolute;right:5px;top:8px;background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;transition:transform .2s ease-in 0s;-webkit-transition:-webkit-transform .2s ease-in 0s;overflow:hidden;} +.topTh .allCat{padding:0 15px;cursor:default;*margin:0; margin:6px 0 0 0;line-height:22px;} +.topTh .allCat .site{color:#969696;} +.topTh .allCat a.t{ color:#969696;} +.topTh .allCat s{position:absolute;right:0px;top:8px;background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;transition:transform .2s ease-in 0s;-webkit-transition:-webkit-transform .2s ease-in 0s;overflow:hidden;} +.topTh .blank,.topTh .dd,.topTh .outline{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank{margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:78px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .menus .blank{_margin-top:-6px;_height:37px;} +.topTh .menus .dd{margin-left:5px;_margin-left:0px;line-height:22px;left:0;width:78px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;top:28px;} +.topTh .menus.hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .outline{z-index:1;left:6px;width:78px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .allCat .blank,.topTh .allCat .outline{width:81px;_width:86px;} +.topTh .allCat .blank{_margin-top:-6px;_height:37px;} +.topTh .allCat .dd{top:28px;width:815px;margin-right:-10px;right:0;left:auto;padding-top:10px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.allCat dl{float:left;width:200px;padding:15px 19px 0 20px;text-align:left;margin-bottom:10px;} +.allCat dl dt{font-weight:bold;margin-bottom:5px;font-size:16px;font-family:Microsoft Yahei; } +.allCat dl dd{line-height:20px;height:100px;overflow:hidden;} +.allCat dl dd a{ display:block;width:65px; float:left; line-height:30px; color:#666666;} +.allCat dl dd p{ width:100%;float:left;} +.allCat dl .dh1{ color:#669900;} +.allCat dl .dh2{color:#FA6400;} +.allCat dl .dh3{color:#646464;} +.allCat .line{background:url(../images/foot/line.jpg) center repeat-y; height:90px;width:5px; margin:20px 0 0 0;} +.allCat dl .fore1{} +.topTh .allCat.hover s{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .hover .t{color:#669900;} +.topTh .hover .blank,.topTh .hover .dd,.topTh .hover .outline{display:block;} +.topMenu .fr.hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.tShow .corner{display:none;width:8px;height:15px;position: absolute;top:25px;left:8px;z-index:2;} +.tShow .corner .aBg,.tShow .corner .aCt{display: block;font-size: 0;height: 0;line-height: 0;overflow: hidden;width: 0;} +.tShow .aBg{border-left: 8px dashed rgba(0, 0, 0, 0);border-left: 8px dashed white\0;border-bottom: 8px solid #dadada;border-right: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed white\0;position: relative;border-top:0 none;} +.tShow .aCt{border-left: 8px dashed rgba(0, 0, 0, 0);border-left: 8px dashed white\0;border-bottom: 8px solid #ffffff;border-right: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed white\0;position: relative;border-top:0 none;margin:-7px 0 0 0px;} +:root .tShow .aBg{border-left: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed rgba(0, 0, 0, 0);} +:root .tShow .aCt{border-left: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed rgba(0, 0, 0, 0);} +*+html .tShow .aBg{border-left: 8px dashed white;border-right: 8px dashed white;} +*+html .tShow .aCt{border-left: 8px dashed white;border-right: 8px dashed white;} +*html .tShow .aBg{border-left: 8px dashed white;border-right: 8px dashed white;} +*html .tShow .aCt{border-left: 8px dashed white;border-right: 8px dashed white;} +.topTh .tShow.hover .corner{display:block;} +.topTh .d2 .corner{left:45px;} +#qiyeLogin{display:none;} + +#header{padding:0;height:104px;width:1000px;margin:0 auto;} +.header_inner{width:1000px;margin:auto; position:relative;z-index:31;} +.header_inner .logo{width:240px;margin:0px;float:left;padding:5px 0px 0px 0px;position:relative;} +.header_inner .logo a.logoleft{display:block;position:absolute;left:0px;width:124px;padding:0px 0px 0px 0px;background:url(../images/indexImg20130307.png?v=1.1) -33px 0px no-repeat;_background:url(../images/indexImg20130307.jpg?v=1.1) -33px 0px no-repeat;height:66px;} +.header_inner .logo a.logoright{display:block;position:absolute;width:116px;right:0px;height:66px;background:url(../images/indexImg20130307.png?v=1.1) -160px 0px no-repeat;_background:url(../images/indexImg20130307.jpg?v=1.1) -160px 0px no-repeat;} +.header_inner .logo .logoright_best{margin-top:12px;} +.header_inner .logo div.logo-text{position:absolute;top:73px;left:0;color:#000;font-size:14px; font-family:Microsoft YaHei; clear:both;letter-spacing:1px; text-align:center;width:240px;} +.header_inner .logo div.logo-text font{font-family:Microsoft YaHei;font-size:14px; font-weight:bold;} +.header_inner .search{position:absolute;width:415px;margin:0px; padding:0px;right:245px;top:28px;} +.header_inner .search input.text{border:1px solid #669900;width:330px; height:32px; line-height:32px;vertical-align:middle; float:left;padding:0px 0px 0px 4px;} +.header_inner .search input.submit{margin:0px;height:34px;width:78px;cursor:pointer;float:left;vertical-align:middle;border:0;background:url(../images/header.png) no-repeat -107px -179px; color:#FFF;} +.search_hot{clear:both;text-align:left;padding:4px 0px 0px 0px;} +.search_hot a{margin:0px 8px 0px 0px; color:#979797;} +.search_hot a:hover{color:#669900;} + +/*顶部购物车*/ +.shopingcar{width:146px;padding-left:48px;position:absolute;top:28px;right:0px;height:33px;border:1px solid #efefef;line-height:33px;font-size:12px;} +.shopingcar a:hover{color:#669900;} +.shopingcar s{background:url(../images/header.png) no-repeat -54px -16px;width:23px;height:21px;left:17px;position:absolute;top:4px;} +.shopingcar b#cartNum{position:absolute;top:-1px;left:154px;width:40px;height:34px;text-align:center;line-height:34px;background-color:#fa9600;color:white;font-size:16px;font-weight:600;} +.shopingcar ul li.nmlist {border: 0 none;} +.shopingcar ul li.nmline {border-bottom: 1px dashed #CCCCCC;height: 0;line-height: 0;margin: 0;overflow: hidden;padding: 0;} +.shopingcar ul li.nmtop {background-color: #F2F6ED;border-bottom: 1px solid #CCCCCC;height: 26px;line-height: 26px;margin: 0;overflow: hidden;padding: 0;} +.nmtitle {color: #1B6146;float: left;} +.nmtotal {float: right;} +.nmtotal font {color: #EA5404;font-size: 14px;font-weight: bold;} +.nmtotal a:link {color:#999999;} +#topCart.hover .blank,#topCart.hover #cart_lists,#topCart.hover .outline{display:block;position:absolute;border:1px solid #efefef;background-color:white;} +#topCart.hover .blank{top:-1px;height:33px;z-index:-1;left:-1px;width:194px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #efefef;} +#topCart.hover .outline{z-index:1;left:0;width:194px;height:8px;top:33px;border:0 none;} +#topCart.hover .t{color:#666666;} +#topCart .setCart{background:url(../images/header.png) no-repeat -102px -235px; margin:2px 0 0 0;} +#cart_lists{display:none;width:360px;right:-1px;_right:-2px;-moz-box-shadow:0 0 5px #efefef;-webkit-box-shadow:0 0 5px #efefef;box-shadow:0 0 5px #dadada;top:34px;} +#cart_lists .btn{display:none;} +.floatcar{padding:10px;width:340px;font-size:12px;font-weight:normal;line-height:20px;} +.floatcar .nopro{ width:240px; height:42px; margin:0 0 0 85px; background:url(../images/header.png) no-repeat -99px -123px;} +.floatcar .nopro p{ padding-left:50px;} +.floatcar .nopro p span{ color:#969696;} +.floatcar .nopro p span .no_dl{ color:#669900;} +.floatcar .title{color:#6c6c6c;border-bottom:1px solid #1b6146;height:24px;} +.floatcar .total p{width:170px;float:left;} +#listCartNum{color:#ea5404;font-size:14px;font-weight:bold;} +.floatcar .total p font{color:#ea5404;font-size:18px;font-weight:bold; font-family:Arial, Helvetica, sans-serif;} +.floatcar ul{margin:0px;padding:0px;display:block;position:relative;max-height:195px;_height:201px;overflow:auto;} +.floatcar ul li{margin:0px; padding:12px 0px 12px 0px;height:40px;position:relative; border-bottom:1px dashed #ccc; line-height:18px;color:#565656;} +.floatcar ul li:hover{ background:#f5f5f5;} +.floatcar ul li .l{position:absolute;width:45px;height:45px;} +.floatcar ul li .l img{width:40px;height:40px;vertical-align:middle;border:1px solid #ccc;} +.floatcar ul li .c{position:absolute;width:200px;height:36px;left:48px;top:14px; overflow:hidden;} +.floatcar ul li .c a{color:#565656; text-decoration:none; display:block; height:18px; overflow:hidden;} +.floatcar ul li .c a:hover{color:#669900; text-decoration:none;} +.floatcar ul li .c b{color:#cecece; font-weight:normal;} +.floatcar ul li .r{position:absolute; text-align:right;width:80px;height:36px;right:0px;} +.floatcar ul li .r font{color:#f05404;font-size:14px;font-weight:bold;} +.floatcar ul li .r a{clear:both;color:#999999; text-decoration:none} +.floatcar ul li .r a:hover{ text-decoration:underline} + +/*----页头---*/ +.mainNav{width:100%;height:40px;margin-bottom:5px;} +.navmenu{margin:0px auto;color:#303437;padding:0;width:1000px;clear:both;} +.navmenu .categories{float:left;width:200px;background:#76ac25;height:39px;text-align:left;position:relative;z-index:31} +.navmenu .categories .dt{height:39px;overflow:hidden; background:url(../images/cate_bg.jpg);} +.navmenu .categories a.topall{height:40px;line-height:40px;display:block;margin:0px; padding:0px;color:#fff;font-size:15px; font-family:Microsoft YaHei; font-weight:bold;width:200px; text-align:center; text-decoration:none;} +.navmenu .categories b{position:absolute;top:18px;right:35px;width:11px;height:7px;background:url(../images/header.png) no-repeat -55px -43px;overflow:hidden;} +.navmenu .categories.hover b{top:38px;margin:0 25px;border-top:1px solid #91d42b;height:0px;line-height:0;width:150px;overflow:hidden;background:0 none;right:auto;} +.menu1{width:800px;float:right;position:relative;z-index:30} +.menu1 ul{width:800px;overflow:hidden;height:37px; line-height:37px;border-bottom:2px solid #679800;} +.menu1 li{float:left;text-align:center;color:#303437;} +.menu1 li a{font-size:14px; text-align:center;text-decoration:none;display:block;height:40px;width:95px;font-family:Microsoft YaHei;color:#333;font-weight:700;} +.menu1 li a:hover{font-size:14px;color:#669900;text-decoration:none} +.menu1 li a.btndown{color:#669900;} +.menu1 .minisite{float:right;} +.menu1 .minisite1{ width:1px; height:14px; line-height:14px; margin:12px 0 0 0;} +.menu1 .minisite a{text-align:center;width:70px;font-size:12px; display:block;} +.menu1 .minisite a:hover{font-size:12px;} +.catTag{background-color:#fa9600;color:white;position:absolute;z-index:999;height:16px;line-height:16px;padding:0 2px;top:-8px;} +.catTag b{width:0;height:0;line-height:0;font-size:0;border-left:2px solid #fa9600;border-top:2px solid #fa9600;border-right:2px dashed white;border-bottom:2px dashed white;position:absolute;left:4px;top:16px;} +#catTag_1{left:175px;} +#catTag_2{left:275px;} +#catTag_3{left:375px;} +#catTag_4{left:475px;} +/*公共头部品类菜单显示*/ +#public_cate .dd{display:none;} +#public_cate.hover .dd{display:block;} +/*---------品类菜单 ----------*/ +/*---------品类菜单 ----------*/ +#allSort{margin:0;z-index:998;padding:0;width:200px;height:480px;position:absolute;background-color:#76ac25;} +#booksort{padding-top:8px;padding-left:15px;} +#booksort .item{height:58px;} +#booksort .item .i-master{display:block;height:54px;padding-left:15px;font-family:Microsoft YaHei;} +#booksort .item .i-master a{color:white; margin-left:2px;} +#booksort .item .i-master a:hover{color:#fa9600;} +#booksort .item h3{font-weight:normal;font-size:14px;padding-top:5px;line-height:22px;} +#booksort .item .subCat{font-size:12px;overflow:hidden;line-height:20px;height:20px;} +#booksort .item .subCat a{ color:#ddeac8;} +#booksort .item .subCat li{float:left;margin-right:8px;_display:inline;} +#booksort .item .i-cm{position:absolute;top:0;left:200px;width:560px;height:480px;background:#ffffff;z-index:999;display:none;} +#booksort .item .i-master s{position:absolute;width:11px;height:54px;background-color:white;left:190px;z-index:1000;display:none;margin-top:-47px;} +#booksort .item .i-master h3 .fresh{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px 5px; margin-left:-20px;float :left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .drinks{ width:14px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -46px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .food{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -104px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .pastry{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -157px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .oil{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -265px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .baby{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -319px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .health{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -373px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .tea{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -212px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .tools{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -428px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-cm{display:block;} +#booksort .item.hover .i-master{background-color:white;color:#76ac25;margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3{ margin-left:10px;} +#booksort .item.hover .i-master .subCat{margin-left:10px;} +#booksort .item.hover .i-master a{color:#76ac25;text-decoration:none;} +#booksort .item.hover .i-master a:hover{text-decoration:underline;} +#booksort .item.hover .i-master s{display:block;} +#booksort .item.hover .i-master h3 .fresh{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 5px; margin-left:-20px;float :left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .drinks{ width:14px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -46px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .food{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -104px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .pastry{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -157px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .oil{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -265px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .baby{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -319px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .health{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -373px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .tea{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -212px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .tools{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -428px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +/*2015/12/8分类图标修改 Start*/ +#booksort .item .i-master .dev .fresh{background:url(../images/left_lm_m_a.png) no-repeat 0 5px;}/*肉类海鲜*/ +#booksort .item .i-master .dev .baby{background:url(../images/left_lm_m_a.png) no-repeat 0 -324px;}/*熟食蛋奶*/ +#booksort .item .i-master .dev .pastry{background:url(../images/left_lm_m_a.png) no-repeat 0 -159px;}/*水果蔬菜*/ +#booksort .item .i-master .dev .drinks{background:url(../images/left_lm_m_a.png) no-repeat 0 -47px;}/*酒水饮料*/ +#booksort .item .i-master .dev .food{background:url(../images/left_lm_m_a.png) no-repeat 0 -106px;}/*休闲食品*/ +#booksort .item .i-master .dev .tea{background:url(../images/left_lm_m_a.png) no-repeat 0 -213px;}/*冲调茶饮*/ +#booksort .item .i-master .dev .oil{background:url(../images/left_lm_m_a.png) no-repeat 0 -270px;}/*粮油副食*/ +#booksort .item .i-master .dev .health{background:url(../images/left_lm_m_a.png) no-repeat 0 -378px;}/*南北干货*/ +#booksort .item.hover .i-master .dev .fresh{background:url(../images/left_lm_m.png) no-repeat 0 5px;}/*肉类海鲜*/ +#booksort .item.hover .i-master .dev .baby{background:url(../images/left_lm_m.png) no-repeat 0 -324px;}/*熟食蛋奶*/ +#booksort .item.hover .i-master .dev .pastry{background:url(../images/left_lm_m.png) no-repeat 0 -159px;}/*水果蔬菜*/ +#booksort .item.hover .i-master .dev .drinks{background:url(../images/left_lm_m.png) no-repeat 0 -47px;}/*酒水饮料*/ +#booksort .item.hover .i-master .dev .food{background:url(../images/left_lm_m.png) no-repeat 0 -106px;}/*休闲食品*/ +#booksort .item.hover .i-master .dev .tea{background:url(../images/left_lm_m.png) no-repeat 0 -213px;}/*冲调茶饮*/ +#booksort .item.hover .i-master .dev .oil{background:url(../images/left_lm_m.png) no-repeat 0 -270px;}/*粮油副食*/ +#booksort .item.hover .i-master .dev .health{background:url(../images/left_lm_m.png) no-repeat 0 -378px;}/*南北干货*/ +/*2015/12/8分类图标修改 End*/ +#booksort .i-cm .i-left{float:left;width:542px;} +#booksort .i-cm .i-right{float:right;width:205px;height:506px;} +#booksort .cat-sort{width:542px;height:246px;padding:8px 0 24px 10px;} +#booksort .cat-sort dl{overflow:hidden;zoom:1;font-family:Microsoft YaHei;padding:1px 0 0 0;} +#booksort .cat-sort dt{width:80px;padding-right:10px;float:left;text-align:right;height:18px;line-height:18px;margin:4px 0px;color:#76ac25;} +#booksort .cat-sort dt a{color:#76ac25;} +#booksort .cat-sort dt a:hover{ text-decoration:underline;} +#booksort .cat-sort dd{overflow:hidden;zoom:1;} +#booksort .cat-sort dd a{float:left;white-space:nowrap;display:block;text-decoration:none;font-size:12px;height:18px;line-height:18px;margin:4px 0px;text-align:left;padding:0px 6px;border-left:1px solid #ccc; color:#666;} +#booksort .cat-sort dd a:hover{text-decoration:none;color:#76ac25;} +#booksort .i-left .i-img img{width:560px;height:200px;} +#booksort .i-right .i-channel{height:54px;text-align:center;background-color:#f7f6f5;padding:16px 10px;font-family:Microsoft YaHei;} +#booksort .i-right .i-channel dt{color:#363636;font-size:16px;line-height:54px;margin-bottom:4px;} +#booksort .i-right .i-channel dt a:hover{ color:#669900;} +#booksort .i-right .i-channel em{ width:20px; height:20px;background:url(../images/index_icon_new.png) no-repeat -245px -55px; margin:18px 0 0 10px; *margin:0 0 0 10px; overflow:hidden; position:absolute;} +#booksort .i-right .i-channel em a{ display:block; cursor:pointer;width:20px; height:20px;} +#booksort .i-right .i-active{height:106px;padding:12px;font-family:Microsoft YaHei;} +#booksort .i-right .i-active dt{color:#76ac25;line-height:20px;margin-bottom:10px;font-weight:bold;} +#booksort .i-right .i-active dd a{display:block;line-height:24px;height:24px;overflow:hidden;} +#booksort .i-right .i-active dd a:hover{color:#669900;} +#booksort .i-right .i-brand{border-top:1px solid #e5e5e5;padding:10px;} +#booksort .i-right .i-brand dt{overflow:hidden;zoom:1;margin-bottom:10px;} +#booksort .i-right .i-brand .fl{color:#76ac25;font-family:Microsoft YaHei;font-weight:bold;} +#booksort .i-right .i-brand .fr{padding-right:5px;color:#666666;} +#booksort .i-right .i-brand .fr a{color:#666666;} +#booksort .i-right .i-brand .fr a:hover{ color:#669900;} +#booksort .i-right .i-brand dd{width:177px;margin:0 auto;overflow:hidden;zoom:1;border-top:1px solid #f2f2f2;border-left:1px solid #f2f2f2;} +#booksort .i-right .i-brand dd a{float:left;width:87px;height:56px;text-align:center;border-right:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;overflow:hidden;} +#booksort .i-right .i-brand img{width:56px;height:56px;} +#booksort .item .i-close{width:25px;height:25px;position:absolute;top:6px;right:6px;background:url(../images/index_icon_new.png) no-repeat -245px -1px;cursor:pointer;} +a.submit5{ margin:10px 0 0 0; display:block;font-size:14px;color:#fff;height:28px;line-height:28px;cursor:pointer;vertical-align:middle;vertical-align:baseline\9;text-decoration:none; width:110px; text-align:center; background:url(../images/productinfo.png) no-repeat -182px -234px;} +a.submit5:hover{color:#fff;background:url(../images/productinfo.png) no-repeat -182px -262px;} + +.startitle{width:60px;float:left;height:22px;} +.starouter{background:url(../images/star0.jpg) no-repeat top left;width:64px;float:left;height:12px;} +.starinner{background:url(../images/star5.jpg) no-repeat top left;height:12px;} +.starnumber{width:40px;float:left; position:absolute;} + +/*-----------焦点图-----------*/ +.hotpic{ width:635px; height:342px; position:relative; overflow:hidden; padding:0px;margin:0px 0px 0px 4px;} +.num{ position:absolute;right:6px; top:310px; z-index:10;} +.num a{ width:20px; height:20px; line-height:20px;display:inline-block; text-align:center; margin:0px 4px 0px 0px; cursor:pointer; text-decoration:none; color:#977037; font-weight:bold; border:1px solid #fff; background:#fcf9f4;font-size:14px;} +.num a.cur{ background:#977037;color:#fff;} +.demo ul{ position:relative;z-index:5;} +.demo ul li{ position:absolute;display:none;} + +.indexRecommend{position:relative ;height:277px} +.indexRecommend .left{position:absolute;width:155px;left:0px} +.indexRecommend .left img{width:155px;margin-bottom:10px;} +.indexRecommend .pic img.style01{height:277px} +.indexRecommend .pic img.style02{height:134px} + +.indexRecommend .qg{} +.indexRecommend .qg .qg-title{background:#a71000;height:26px;color:#fff;padding:10px 0px 0px 10px} +.indexRecommend .qg .qg-title span{background:url(../images/indexImg20130307.png?v=1.3) no-repeat -259px -77px;height:16px;width:16px;display:block;float:left;margin-right:3px;} +.indexRecommend .qg .qg-centent{border:1px solid #d5cfc5;border-bottom:#a71000 solid 8px;} +.indexRecommend .qg .qg-centent .title{padding:5px 5px 4px 5px;width:143px;height:30px; overflow:hidden; text-align:center} +.indexRecommend .qg .qg-centent .img{text-align:center;height:155px;_height:158px;margin:0px; padding:0px; position:relative} +.indexRecommend .qg .qg-centent .img img{width:150px;height:150px;margin:0px; padding:0px;} +.indexRecommend .qg .qg-centent .img span{width:59px;height:60px;margin:0px; padding:0px; position:absolute; background:url(../images/xianshi.gif) no-repeat 0px 0px;top:4;right:4px; } +.indexRecommend .qg .qg-centent .sf{ text-decoration:line-through; font-family:"微软雅黑"; text-align:center; background:#f8f8f8;height:18px; line-height:18px;} +.indexRecommend .qg .qg-centent .price{background:#f8f8f8; color:#53322f; font-size:12px; font-weight:bold; text-align:center;height:20px; line-height:20px;} +.indexRecommend .qg .qg-centent .price font{color:#c74133;font-size:14px;} + +.indexRecommend .center{position:absolute;width:635px;left:165px} +.indexRecommend .center .indexTab{position:relative;width:635px;height:276px;} +.indexRecommend .center .indexTab .btnBox{position:relative;background:#ececec;border-bottom:2px solid #7f4f21;height:33px;overflow:hidden;} +.indexRecommend .center .indexTab .btnBox a{cursor:pointer; text-decoration:none;} +.indexRecommend .center .indexTab .btnBox a.btn{display:block;height:33px;width:159px;float:left; font-family:"微软雅黑";font-size:14px; font-weight:bold; text-align:center; line-height:33px;color:#7c7c7c;} +.indexRecommend .center .indexTab .btnBox a.btnbg{background-color:#f4f4f4} +.indexRecommend .center .indexTab .btnBox a.active{display:block;height:33px;width:158px;float:left; font-family:"微软雅黑";font-size:14px; font-weight:bold; text-align:center; line-height:33px;color:#fff; background:#977037;} +.indexRecommend .center .indexTab .content{border:1px solid #eee;border-top:none;width:633px;height:241px;display:none;} +.indexRecommend .right{position:absolute;width:190px;right:0px} +.indexRecommend .right img{width:190px;margin-bottom:10px;} + +.clearfix:after{content: "."; display: block; height:0; clear: both; visibility:hidden;} +.clearfix{zoom:1;} +.clearfix div{width:80px;float:left;} +.wrapper {width:635px; margin:0 auto; float:left;} +.shuoming {margin-top:20px; border:1px solid #ccc; padding-bottom:10px;} +.shuoming dt {height:30px; line-height:30px; font-weight:bold; text-indent:10px;} +.shuoming dd {line-height:20px; padding:5px 20px;} +#focus {overflow:hidden;position:relative;padding:0px;float:left;} +#focus ul {position:absolute;} +#focus ul li {float:left;overflow:hidden; position:relative; background:#000;} +#focus ul li div {position:absolute; overflow:hidden;} +#focus .btnBg {position:absolute; } +#focus .btn {position:absolute; text-align:right;} +#focus .btn span {display:inline-block; _display:inline; _zoom:1; width:14px; height:14px; _font-size:0; margin-left:8px; cursor:pointer; background:#fff;} +#focus .btn span.on {background:#fff;} + +.focus {width:635px; height:342px; overflow:hidden; position:relative;} +.focus ul {height:380px; position:absolute;} +.focus ul li {float:left; width:635px; height:342px;overflow:hidden; position:relative; background:#000;} +.focus ul li div {position:absolute; overflow:hidden;} +.focus .btnBg {position:absolute; width:635px; height:20px; left:0; bottom:0; background:#000; display:none;} +.focus .btn {position:absolute; width:625px; height:23px; padding:0px 8px 0px 10px; right:0; bottom:6px; text-align:right;} +.focus .btn span {display:inline-block; _display:inline; _zoom:1; width:25px; height:24px; line-height:24px; text-align:center;margin-left:5px; cursor:pointer; background:#fff;} +.focus .btn span.on {background:#fff;} +.focus .preNext {width:45px; height:100px; position:absolute; top:120px; background:url(../images/sprite.png) no-repeat 0 0; cursor:pointer;} +.focus .pre {left:0;} +.focus .next {right:0; background-position:right top;} + +.indexhotpic{width:635px;height:342px;float:left; padding:0px 0px 0px 5px} +.indexhotpic ul{height:380px; } +.indexhotpic ul li {width:635px; height:344px; } +.indexhotpic .btnBg {width:635px; height:20px; left:0; bottom:0;} + +.flhotpic{width:635px;height:342px;left:0px; float:left;} +.flhotpic ul{height:380px; } +.flhotpic ul li {width:635px; height:344px; } +.flhotpic .btnBg {width:635px; height:20px; left:0; bottom:0;} +.flhotpic .btn {width:614px; height:10px; padding:0px 14px 14px 0px; right:0; bottom:0;} + +.yuphotpic{width:718px;height:342px;left:0px} +.yuphotpic ul{height:380px; } +.yuphotpic ul li {width:718px; height:344px; } +.yuphotpic .btnBg {width:718px; height:20px; left:0; bottom:0;} +.yuphotpic .btn {width:614px; height:10px; padding:0px 14px 14px 0px; right:0; bottom:0;} + +/*---------主体----------*/ +.catformdown {position:absolute;border:2px solid #b0844c;width:631px;height:343px;z-index:6000;left:50%;margin-left:-335px;background:url(../images/menu_rightbg.jpg) repeat-x top #f7f4eb;filter:alpha(opacity=95);opacity:0.95;} + +/*---------筛选条件----------*/ +.screening{padding:0px 0px 0px 0px; clear:both; border:1px solid #dadada;} +.screening div{clear:both;border-bottom:1px dashed #dadada;width:100%;margin-bottom:-1px;} +.screening strong{display:block;width:85px;color:#176246;text-align:right;float:left;padding:5px 0px 2px 2px;margin:2px 0px 2px 2px;line-height:20px; } +.screening ul{padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;float:left; width:740px;} +.screening ul li{list-style:none; padding:6px 6px 6px 0px;line-height:20px;overflow:auto;zoom:1;} +.screening ul li a{margin:0px 4px 0px 4px;} +.screening p{ clear:both; margin:0px; padding:0px; border:0px;} +.screeninglink{display:block;width:170px;float:left;height:20px;overflow:hidden;white-space: nowrap;} +.screening ul li a.link{display:block;float:left;height:20px;overflow:hidden;white-space: nowrap;margin:0 12px 0 4px;color:#565656;} +.screeningw{background:url(../images/screening_bg.jpg) repeat-x top; padding:0px 0px 0px 0px; clear:both;} +.screeningw div{clear:both;border-bottom:1px dashed #cfab6f;width:100%;} +.screeningw strong{display:block;width:85px;color:#804f21;text-align:right;float:left;padding:5px 0px 2px 2px;margin:2px 0px 0px 2px;line-height:18px; } +.screeningw ul{padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;float:left; width:620px;} +.screeningw ul li{list-style:none; padding:4px 6px 4px 0px;#padding:6px 6px 4px 0px;_padding:6px 6px 4px 0px;color:#176246; line-height:18px;} +.screeningw ul li a{margin:0px 4px 0px 4px;white-space:nowrap;} +.screeningw p{ clear:both; margin:0px; padding:0px; border:0px;} +.screeningclose{} +.screeningclose a{ border:1px solid #565656; background:#fff; height:10px; padding:0px 2px 0px 2px; line-height:22px;} +.screeningclose a:hover{ border:1px solid #cfab6f; background:#fff;height:10px; text-decoration:none} + +.screening2{background:url(../images/screening_bg.jpg) repeat-x top; padding:0px 0px 0px 0px; clear:both; border:1px solid #988e75; height:124px;overflow:hidden;} +*html .screening2{height:121px;} +.screening2 ul{padding:0px 0px 0px 0px; margin:0px 12px 0px 10px;} +.screening2 ul li{list-style:none; padding:6px;color:#176246; line-height:24px;} +.screening2 ul li strong{display:block; width:70px; color:#804f21;text-align:justify;text-justify:distribute-all-lines; float:left; } +.screening2 ul li a{margin:0px 4px 0px 4px;white-space:nowrap} + +.screening3{background:url(../images/screening_bg.jpg) repeat-x top; padding:0px 0px 0px 0px; clear:both; border:1px solid #988e75} +.screening3 ul{padding:0px 0px 0px 0px; margin:0px 12px 0px 10px;} +.screening3 ul li{list-style:none; padding:6px;color:#176246; line-height:24px;} +.screening3 ul li strong{display:block; width:70px; color:#804f21;text-align:justify;text-justify:distribute-all-lines; float:left; } +.screening3 ul li a{margin:0px 4px 0px 4px;white-space:nowrap} + +.qb_title{ height:26px; text-align:center; line-height:26px;} +.qb_title a{font-size:14px; font-weight:bold; color:#fff; text-decoration:none} +.qb_title a:hover{font-size:14px; font-weight:bold; color:#fff; text-decoration:underline} + +/*menu new end*/ + +#main{width:1000px;margin:auto; padding:0px 0px 0px 0px;background:#fff;height:100%;} + +.newmessage{width:190px;margin:0px;padding:0px 0px 0px 0px;vertical-align:top; float:right;font-size:12px;} +.newmessage .title{padding:0px 8px 0px 8px;background:#f3f3f3;border:1px solid #eee;border-bottom:none;height:35px; line-height:35px;} +.newmessage .title font{font-size:14px;color:#804f21; font-family:"微软雅黑"; font-weight:bold;float:left;width:100px;} +.newmessage .title a{color:#999999;width:60px;display:block;float:right; text-align:right;} +.newmessage ul{border:1px solid #eee;border-top:none;padding:4px 8px 7px 8px;_padding:4px 8px 6px 8px;height:117px;overflow:hidden;} +.newmessage ul li{height:20px;line-height:20px;list-style:none;padding-left:12px; background:url(../images/ico04.gif) no-repeat 0px 8px ; overflow:hidden;} +.newmessage ul li a{color:#565656;text-decoration:none} +.newmessage ul li a:hover{color:#565656;border:none;text-decoration:underline; *vertical-align:baseline;} +.newmessage ul li a.red{color:red;} + +.newmessage .pic{height:167px;padding:0px; margin:0px; text-align:center; background:#977037;} +.newmessage .pic .title{border:0 none;padding:0px;margin:0px;height:36px; background:url(../images/indexImg20130307.png?v=1.3) no-repeat 10px -70px #977037;_background:url(../images/indexImg20130307.jpg?v=1.2) no-repeat 10px -70px #977037;} +.newmessage .pic img{width:180px;height:126px; margin:auto} + + + + +/*首页品类推荐*/ +.goodsH01{height:508px;} +.goodsH02{height:278px;} + +.indexGoods{position:relative;} +.indexGoods .left{position:absolute;left:0px;width:155px} +.indexGoods .left img{width:155px;} +.indexGoods .left .pic img.style01{height:220px;margin-bottom:10px;} +.indexGoods .left .pic img.style02{height:105px;margin-bottom:10px;} + + +.indexGoods .left .hotDiscuss{width:153px;height:276px;border:1px solid #eee;padding:0px;} +.indexGoods .left .hotDiscuss .title{border-bottom:2px solid #805022;padding:0px 0px 0px 8px;height:34px; line-height:34px;font-size:14px; font-weight:bold} +.indexGoods .left .hotDiscuss ul{ position:relative;height:240px;overflow:auto;overflow-x:none;} +.indexGoods .left .hotDiscuss ul li{position:relative;height:52px;clear:both;padding:8px 2px 8px 6px;border-bottom:1px dashed #eee;} +.indexGoods .left .hotDiscuss ul li img{width:50px;height:50px;border:1px solid #eee;float:left;} +.indexGoods .left .hotDiscuss ul li a{display:block;width:70px;height:48px;float:left;overflow:hidden;padding:4px 0px 0px 4px;color:#565656; line-height:16px;} + +.indexGoods .left .tab{width:133px;height:256px;border:1px solid #eee;padding:10px;} +.indexGoods .left .tab .btnBox{position:relative;height:25px;width:133px} +.indexGoods .left .tab .btnBox a{cursor:pointer;text-decoration:none;} +.indexGoods .left .tab .btnBox a.btn{float:left;display:block;border-bottom:2px solid #d5d5d5;height:25px;line-height:25px;width:66px; text-align:center; color:#555555;} +.indexGoods .left .tab .btnBox a.active{float:left;display:block;border-bottom:2px solid #805022;height:25px;line-height:25px;width:66px;text-align:center; font-weight:bold;} +.indexGoods .left .tab .content{display:none;} +.indexGoods .left .tab .content ul.logo_list{ background:url(../images/tab_bg.gif) no-repeat -1px 5px;height:216px;} +.indexGoods .left .tab .content ul{position:relative;display:none;} +.indexGoods .left .tab .content ul li{width:66px;height:60px;float:left; text-align:center;padding:6px 0px 6px 0px; text-align:center; line-height:60px;text-align: center;} +.indexGoods .left .tab .content ul li img{width:60px;height:60px;} +.indexGoods .left .tab .content ul li a{text-decoration:none;cursor:pointer;} +.indexGoods .left .tab .content div.menu{position:absolute;width:130px;text-align:center;top:252px;_top:259px;left:12px;font-size:20px;_font-size:9px;height:16px;line-height:16px; background:#fff} +.indexGoods .left .tab .content div.menu a{cursor:pointer} +.indexGoods .left .tab .content div.menu a.button{padding:0px 2px 0px 2px;color:#adadad; text-decoration:none} +.indexGoods .left .tab .content div.menu a.active{padding:0px 2px 0px 2px; color:#814e1f} +.indexGoods .left .tab .content ol{padding:6px 0px 0px 0px;margin:0px;height:224px;} +.indexGoods .left .tab .content ol li{position:relative;width:133px;clear:both;padding:0px 0px 0px 0px;margin:0px;cursor:pointer} +.indexGoods .left .tab .content ol li a{text-decoration:none;cursor:pointer} +.indexGoods .left .tab .content ol li p{float:left;padding:0px;margin:0px;width:110px;overflow:hidden;height:24px;#height:22px;_height:22px;line-height:22px; text-decoration:none;} +.indexGoods .left .tab .content ol li p:hover{text-decoration:underline;} +.indexGoods .left .tab .content ol li span{display:block;padding-left:4px;width:10px;height:14px;line-height:14px;float:left;background:#824f22;color:#fff;font-size:10px;margin:3px 4px 0px 0px} +.indexGoods .left .tab .content ol li div{height:56px;padding:4px 0px 0px 0px;display:none; clear:both;cursor:pointer;} +.indexGoods .left .tab .content ol li div img{float:left;width:50px;height:50px;border:1px solid #d5d5d5; vertical-align:middle;} +.indexGoods .left .tab .content ol li div font{float:left;display:block;width:76px;height:50px; line-height:50px;color:#cb080c;font-size:12px; font-weight:bold; text-align:center;} +.indexGoods .right{position:absolute;right:0px;width:833px;} +.indexGoods .right .goodslist{position:relative;border:1px solid #eee; border-top:none} +.indexGoods .right .height01{height:507px;} +.indexGoods .right .height02{height:277px;} +.indexGoods .right .goodslist .l{position:absolute;left:0px;width:636px;} + +.indexGoods .right .goodslist .l .goods,.indexRecommend .center .indexTab .content .goods{margin:0px;padding:0px} +.indexGoods .right .goodslist .l .goods li,.indexRecommend .center .indexTab .content .goods li{list-style:none;display:block;width:150px; height:228px;padding:8px 0px 0px 8px;float:left;position:relative;} +.indexRecommend .center .indexTab .content .goods li{padding:8px 0px 8px 6px;} +.indexGoods .right .goodslist .l .goods li img,.indexRecommend .center .indexTab .content .goods li img{width:150px;height:150px;} +.indexGoods .right .goodslist .l .goods li a,.indexRecommend .center .indexTab .content .goods li a{z-index:98; text-decoration:none} + +.indexGoods .right .goodslist .l .goods li div.gWindow,.indexRecommend .center .indexTab .content .goods li div.gWindow{border:2px solid #7f4f21;display:block; position:absolute;width:190px;height:90px; top:224px;left:-40px;z-index:999;background:url(../images/duihao.jpg) no-repeat 15px 30px #fff;padding:15px 0px 0px 60px;line-height:18px;color:#545454;} + +.indexGoods .right .goodslist .l .goods li div.gWindow font,.indexRecommend .center .indexTab .content .goods li div.gWindow font{font-size:14px; color:#c40a15;} +.indexGoods .right .goodslist .l .goods li div.gWindow div,.indexRecommend .center .indexTab .content .goods li div.gWindow div{padding:0px;height:24px;line-height:24px;} +.indexGoods .right .goodslist .l .goods li div.gWindow a,.indexRecommend .center .indexTab .content .goods li div.gWindow a{margin:0px 6px 0px 0px;} + +.indexGoods .right .goodslist .l .goods li div.gWindow a.gClose,.indexRecommend .center .indexTab .content .goods li div.gWindow a.gClose{display:block; position:absolute;width:15px;height:15px; background:#896938;top:3px;right:3px; color:#fff; text-align:center; line-height:15px; cursor:pointer; text-decoration:none;} + + +.indexGoods .right .goodslist .l .goods li span.gBtn,.indexRecommend .center .indexTab .content .goods li span.gBtn{position:absolute;display:none;width:27px;height:24px;background:url(../images/indexImg20130307.png?v=1.3) no-repeat -287px -73px;right:0px;top:198px;} +.indexGoods .right .goodslist .l .goods li span.cx,.indexRecommend .center .indexTab .content .goods li span.cx{position:absolute;display:block;width:52px;height:49px;z-index:90;right:2px;top:10px;} + + +.icon-cx{position:absolute;display:block;width:55px;height:58px;z-index:90;right:8px;top:8px;} + + +.indexGoods .right .goodslist .l .goods li span.cx img,.indexRecommend .center .indexTab .content .goods li span.cx img{width:52px;height:49px;} +.indexGoods .right .goodslist .l .goods li .title,.indexRecommend .center .indexTab .content .goods li .title{border:0px; background:#fff;height:40px;padding:0px 4px 0px 4px; overflow:hidden;color:#565656; text-align:left;line-height:20px; word-break:break-all; cursor:pointer; text-decoration:none} +.indexGoods .right .goodslist .l .goods li .title-a,.indexRecommend .center .indexTab .content .goods li .title-a{border:0px; background:#fff;height:20px;padding:0px 4px 0px 4px; overflow:hidden;color:#565656; text-align:left;line-height:20px; word-break:break-all; cursor:pointer; text-decoration:none} +.indexGoods .right .goodslist .l .goods li .title-a:hover,.indexRecommend .center .indexTab .content .goods li .title-a:hover{text-decoration:underline;} +.indexGoods .right .goodslist .l .goods li .title-b,.indexRecommend .center .indexTab .content .goods li .title-b{border:0px; background:#fff;height:20px;padding:0px 4px 0px 4px; overflow:hidden;color:#ea5404; text-align:left;line-height:20px; word-break:break-all; cursor:pointer; text-decoration:none} +.indexGoods .right .goodslist .l .goods li .title:hover,.indexRecommend .center .indexTab .content .goods li .title:hover{ text-decoration:underline;} +.indexGoods .right .goodslist .l .goods li .price,.indexRecommend .center .indexTab .content .goods li .price{color:#ea5404; text-align:left;line-height:20px;font-size:16px; font-family:"微软雅黑"; padding:2px 0px 0px 0px;} +.indexGoods .right .goodslist .l .goods li .price font,.indexRecommend .center .indexTab .content .goods li .price font{color:#999999;font-size:12px; text-decoration:line-through; padding:2px 0px 0px 6px;} + + +.indexGoods .right .goodslist .r{position:absolute;right:8px;top:45px;width:184px;z-index:-1} +.indexGoods .right .goodslist .pic img.style01,.indexGoods .right .goodslist .pic img.style11,.indexGoods .right .goodslist .pic img.stylebig21,.indexGoods .right .goodslist .pic img.stylebig22,.indexGoods .right .goodslist .pic img.style33,.indexGoods .right .goodslist .pic img.style41{width:184px;height:220px;margin-bottom:10px;} +.indexGoods .right .goodslist .pic img.style02,.indexGoods .right .goodslist .pic img.style31,.indexGoods .right .goodslist .pic img.style32,.indexGoods .right .goodslist .pic img.style42,.indexGoods .right .goodslist .pic img.style43,.indexGoods .right .goodslist .pic img.style51,.indexGoods .right .goodslist .pic img.style52,.indexGoods .right .goodslist .pic img.style53,.indexGoods .right .goodslist .pic img.style54,.indexGoods .right .goodslist .pic img.style21,.indexGoods .right .goodslist .pic img.style22{width:184px;height:105px;margin-bottom:10px;} +.indexGoods .right .goodslist .pic img.style91{width:184px;height:450px;margin-bottom:10px;} + +.indexGoods .left .pic img.style11{height:220px;margin-bottom:10px;} + + +.indexGoods .left .pic img.style21,.indexGoods .left .pic img.style22{height:105px;margin-bottom:10px;} +.indexGoods .right .goodslist .title,.indexGoods .right .textlist .title{background:#f4f4f4;height:35px;border-bottom:2px solid #7f4f21;position:relative;} +.indexGoods .right .goodslist .title font,.indexGoods .right .textlist font{font-size:18px;left:12px;top:5px;font-weight:bold;color:#7f4f21;font-family:"微软雅黑";position:absolute} +.indexGoods .right .goodslist .title .more{position:absolute;right:0px;display:block;width:60px;line-height:20px;height:20px;background:url(../images/indexImg20130307.png?v=1.3) no-repeat -396px -33px; padding:0px 0px 0px 20px;top:8px;border-top:1px solid #eee;} +.indexGoods .right .goodslist .title .link,.indexGoods .right .textlist .title .link{position:absolute;right:100px;width:500px; text-align:right;top:10px;} +.indexGoods .right .goodslist .title .link a,.indexGoods .right .textlist .title .link a{padding:0px 6px 0px 6px;border-right:1px solid #565656;color:#565656;} + +.indexGoods .right .textlist{position:relative;border:1px solid #eee; border-top:none} +.indexGoods .right .textlist .l{position:absolute;left:0px;width:636px;} +.indexGoods .right .textlist .l .zwbox{position:relative;height:240px;} +.indexGoods .right .textlist .l .zwbox div{float:left;width:298px;height:240px;padding:10px;line-height:20px;overflow:hidden;} +.indexGoods .right .textlist .l .zwbox div img{width:303px;height:128px;} +.indexGoods .right .textlist .l .zwbox div h1{font-size:12px; color:#565656;padding:8px 0px 2px 0px;} +.indexGoods .right .textlist .l .zwbox div p{font-size:12px; color:#565656;padding:0px; line-height:22px;width:303;height:70px; overflow:hidden;} +.indexGoods .right .textlist .r{position:absolute;right:0px;top:37px;width:184px;height:240px;border-left:1px solid #eee;} + + +.indexArticle{background:url(../images/screening_bg.jpg) repeat-x;_background:url(../images/screening_bg.jpg) 0px -20px repeat-x;} +.indexArticle .t{height:30px;line-height:30px;padding-left:14px; color:#824f20;font-weight:bold;} +.indexArticle ul{} +.indexArticle ul li{ padding:0px 0px 0px 24px;height:20px; line-height:20px; background:url(../images/indexImg20130307.png?v=1.3) no-repeat -390px -53px;_background:url(../images/indexImg20130307.jpg?v=1.2) no-repeat -390px -53px ; overflow:hidden;} +.indexArticle ul li a{color:#565656} + + +/*--------TAB标签----------*/ +.tabmenu {background:#d6ac70;border:1px solid #988e75;border-bottom:none;height:23px;} +.tabmenu ul {margin:0px auto; padding:0px; list-style:none; text-align:center;width:65px;} +.tabmenu li {display:inline; line-height:23px;} +.tabmenu li a {color:#805020; text-decoration:none; font-weight:bold; line-height:23px; height:23px; display:block;width:65px; float:left;} +.tabmenu li a.tabactive {color:#805020; background:url(../images/tabmenu_btnbg.gif) repeat-y top ; font-weight:bold; position:relative; } +#tabcontent1,#tabcontent2{} +#tabcontent1 ul,#tabcontent2 ul{} +#tabcontent1 ul li,#tabcontent2 ul li{} +#tabcontent1 ul li a,#tabcontent2 ul li a{text-decoration:none;} +#tabcontent1 ul li a:hover,#tabcontent2 ul li a:hover{text-decoration:underline;} + +.tab_s1{border:1px solid #988e75;border-top:none; text-align:center;padding:6px 0px; font-size:12px; margin-bottom:5px; background:url(../images/tabmenu_contentbg.gif) repeat-x top #edd9b6; color:#956942;height:128px;} +.tab_s1 ul li{text-align:left;background:url(../images/tabmenu_contenticon.gif) no-repeat 2% 50% ; padding:0px 0px 0px 18px;width:165px; height:18px;} +.tab_s1 ul li a{text-align:left; padding:0px;width:165px;overflow:hidden; height:18px;display:block;line-height:18px;} + + + +/*--------分类TAB探索标签----------*/ +.a-tab_s2{border:1px solid #988e75;border-top:none; text-align:center;padding:6px 0px; font-size:12px; margin-bottom:5px; background:url(../images/tabmenu_contentbg.gif) repeat-x top #edd9b6; color:#956942;} +.a-tab_s2 ul li,.tab_s2 ul li{text-align:left;background:url(../images/tabmenu_contenticon.gif) no-repeat 2% 50% ; padding:0px 0px 1px 18px;width:165px; overflow:hidden } + +.a-tabsosuo{height:35px; line-height:35px; background:#f5f5f5;border:1px solid #dadada;} +.a-tabsosuo strong{display:block; float:left;width:70px;text-align:right;} +.a-tabsosuo ul {margin:0px 0px 0px 8px; padding:0px 0px 0px 0px; list-style:none; text-align:center;} +.a-tabsosuo li {display:inline;line-height:25px;} +.a-tabsosuo li a{color:#666666;text-decoration:none;font-weight:bold;line-height:25px;height:25px;float:left;width:70px;background:#fff; margin:0px 0px 0px 4px;border:1px solid #dadada;} +.a-tabsosuo li a:hover{color:#09432e;} +.a-tabsosuo li a.tabactive{color:#fff; background:#176246;font-weight:bold; float:left;width:70px;border:1px solid #176246;} +.a-tabsosuo span{float:left;width:70px; float:right; text-align:right;line-height:25px; display:block;} +.a-tabsosuo span option{line-height:25px;font-size:12px;} +.a-tabsosuo span select{line-height:25px;font-size:12px;} + +.a-tabs1{border-bottom:0px solid #e2e2e2; padding:12px; height:20px; line-height:20px;} +.a-tabs1 a{display:block; text-align:center; float:left; height:20px;line-height:20px; text-decoration:none; white-space: nowrap; margin:0px 12px 0px 0px} +.a-tabs1 a:hover{display:block; text-align:center; float:left; height:20px; text-decoration:underline;} +.a-tabs1 a img{margin:0px 2px 0px 0px;vertical-align:middle;padding:0px;} + + +/*--------TAB探索标签----------*/ +.tab_s2{border-top:none; text-align:center;padding:6px 0px; font-size:12px; margin-bottom:5px; background:url(../images/tabmenu_contentbg.gif) repeat-x top #edd9b6; color:#956942;} +.tab_s2 ul li,.tab_s2 ul li{text-align:left;background:url(../images/tabmenu_contenticon.gif) no-repeat 2% 50% ; padding:0px 0px 1px 18px;width:165px; overflow:hidden } + +.tabsosuo{border-bottom:2px solid #aaaaaa;height:25px; line-height:25px;} +.tabsosuo strong{display:block; float:left;width:70px;text-align:right;} +.tabsosuo ul {margin:0px 0px 0px 25px; padding:0px 0px 0px 0px; list-style:none; text-align:center;} +.tabsosuo li {display:inline;line-height:25px;} +.tabsosuo li a{color:#565656;text-decoration:none;font-weight:bold;line-height:22px;height:27px;float:left;width:120px;margin:0px 0px 0px 4px;font-size:15px; font-family:"微软雅黑"; font-weight:bold;} +.tabsosuo li a:hover{color:#176246;} +.tabsosuo li a.tabactive{color:#176246; background:url(../images/tab_btn_bg.jpg) no-repeat bottom left;font-weight:bold; float:left;width:120px;} +.tabsosuo span{float:left;width:110px; float:right; text-align:right;line-height:25px; display:block;} +.tabsosuo span option{line-height:25px;font-size:12px;} +.tabsosuo span select{line-height:25px;font-size:12px;} + +.tabs1{border-bottom:0px solid #e2e2e2; padding:12px; height:20px; line-height:20px;} +.tabs1 a{display:block; text-align:center; float:left; height:20px;line-height:20px; text-decoration:none; white-space: nowrap; margin:0px 12px 0px 0px} +.tabs1 a:hover{display:block; text-align:center; float:left; height:20px; text-decoration:underline;} +.tabs1 a img{margin:0px 2px 0px 0px;vertical-align:middle;padding:0px;} + +.s9{} +.s9 ul{} +.s9 ul li{background:url(); padding:0px; margin:0px;} + +/*--------页脚----------*/ +.pageFooter{ width:1000px;margin:0 auto;} +.pageFooter .middle{ float:left; width:240px; height:145px; margin:20px 0px 0px 0px; background:url(../images/foot/logo.jpg) no-repeat left top;} +.pageFooter .middle ul{ padding-top:85px;} +.pageFooter .middle .kefu{ font-size:20px; color:#646464; font-weight:bold; padding:6px 0;} +.pageFooter .left{float:left;margin:35px 0 0 0;height:145px;} +.pageFooter .left ul{margin:0px;padding:0px 0px 0px 0px;float:left;} +.pageFooter .left ul li{font-size:14px;color:#666666;font-family:Microsoft YaHei;font-weight:bold;} +.pageFooter .left .f_ios li{ width:80px;text-align:center;margin:0 50px 8px 0;*margin-right:25px;line-height:24px;} +.pageFooter .left .f_ios span{display:block;width:80px;height:80px;background:url(../images/foot_bottom.png) no-repeat 0px 0px;margin:auto} +.pageFooter .left .f_wx li{ width:80px;text-align:center; line-height:24px;margin:0 0 8px 0;} +.pageFooter .left .f_wx span{display:block;width:80px;height:80px;background:url(../images/foot_bottom.png) no-repeat -83px 0px;margin:auto} +.pageFooter .right{float:left;margin:35px 0 0 0;width:500px;} +.pageFooter .right ul{float:left;margin:0px 10px 0px 0px;padding:0px 0px 0px 0px;width:110px;} +.pageFooter .right ul.sj{display:none;} +.pageFooter .right ul li{text-align:left;font-family:Microsoft YaHei;height:24px;line-height:24px;} +.pageFooter .right ul li a{color:#707070;display:block;padding:0px 0px 0px 0px;} +.pageFooter .right ul li.title{color:#707070;font-weight:bold;font-size:14px; } +#footer{margin:5px auto 0 auto;padding:0;line-height:18px;color:#969696;width:100%;} +#footer a{color:#646464; text-decoration:none;} +#footer a:hover{ color:#669900; text-decoration:none;} +#footer .f_ios a:hover{color:#646464; text-decoration:none;} +#footer a.beian{color:#969696; text-decoration:none;} +#footer a.beian:hover{ color:#669900; text-decoration:none;} +#footer .siteinfo span{ padding-left:13px;} +#footer .footer_zd{width:100%; border-bottom:1px solid #E0E0E0;} +#footer .footer_zd1{width:100%; border-bottom:1px solid #E0E0E0; margin:20px 0 0 0;} +#footer .foot{ width:100%; height:285px;} +#footer .bottom{ width:1000px; height:50px; margin:0px auto; border-top:1px solid #E0E0E0; padding-top:15px;} +#footer .bottom_kx{ float:left; position:absolute; padding-top:6px;} +#footer .bottom_sm{ position:absolute; padding:6px 0 0 90px; float:left} +#footer .help{background:url(../images/helpbg.jpg) repeat-x top left #e6e6e6;height:177px; } +#footer .help ul{width:720px;display:block; margin:8px 0px 0px 70px;#margin:8px 0px 0px 70px;_margin:8px 0px 0px 40px; padding:0px;float:left;} +#footer .help ul li{float:left;width:180px;list-style:none; text-align:left; background:url(../images/footer_line.jpg) no-repeat 75% top;} +#footer .help ul li h3{padding:0px 0px 4px 0px; margin:0px;font-size:14px;color:#7a6b56; display:block; font-weight:bold;} +#footer .help ul li img{ margin:0px 0px 0px 12px;} +#footer .help ul li a{color:#6a6a6a;float:left;width:100px; height:18px; line-height:18px;display:block; text-decoration:none; background:url(../images/help_contenticon.gif) no-repeat 0% 50%; text-align:left; padding:2px 0px 2px 18px;font-size:13px;} +#footer .help ul li a:hover{ text-decoration:underline} +#footer .help .tel{float:right;width:195px; border-left:0px solid #ccc;} +#footer .service{background:url(../images/servicebg.jpg) repeat-y;} +#footer .siteinfo{ float:left; padding-left:182px;} + +/*--------全部公用---------*/ +.ms_titlehead{background:url(../images/mstitle_bg.jpg) repeat-y left top #d6ac72;height:28px; line-height:28px; border:1px solid #ece0d0;border-bottom:none; } +.ms_titlehead h2{width:150px; float:left;margin:0px; padding:0px; overflow:hidden;height:28px; font-family:微软雅黑; } +.ms_titlehead h2 img{border:0px; padding:0px; margin:0px;} +.ms_titlehead .linkandmore{width:490px;float:right; padding:0px 0px 0px 0px;} +.ms_titlehead .linkandmore ul{width:380px;float:left; padding:0px; margin:0px; } +.ms_titlehead .linkandmore ul li{list-style:none; overflow:hidden; text-align:right;height:28px; } +.ms_titlehead .linkandmore ul li a{color:#835025; padding:0px 8px 0px 8px;border-right:1px solid #aa8662; display:block; text-align:center; text-decoration:none;float:right; height:14px;line-height:14px;margin:10px 0px 0px 0px;} +.ms_titlehead .linkandmore ul li a:hover{text-decoration:underline;} +.ms_titlehead .linkandmore span{float:right; display:block;width:50px;} +.ms_titlehead .linkandmore span a{color:#835025; text-decoration:none} +.mscontent_box{background:url(../images/mscbg.jpg) repeat-x bottom #fff; padding:12px; border:1px solid #ece0d0;border-top:none;} +.s23{padding:0px; margin:0px 0px 0px 0px;} +.s23 li{width:485px;float:left; margin:0px 0px 0px 0px; padding:0px; list-style:none;} +.s23 li img{float:left;height:180px;width:180px; overflow:hidden;} +.s23 li div{float:left; margin:0px;padding:12px 0px 12px 22px; line-height:22px;height:152px; overflow:hidden;width:260px;} +.s23 li div h4{text-indent:0px; font-size:14px; height:28px; line-height:28px; overflow:hidden} +.s23 li div a{text-indent:26px;display:block;} +.mplist{} +.mplist li{width:160px; float:left;text-align:center;} +.mplist li .pic{padding:4px 4px 8px 4px;} +.mplist li p{overflow:hidden; height:30px; text-align:center; line-height:15px;} +.mplist li a{font-weight:bold; font-size:13px; padding:0px 0px 0px 0px;overflow:hidden;} + + +.s24{padding:0px; margin:0px 0px 0px 0px; width:1000px;} +.s24 div{width:330px;float:left; margin:0px 3px 0px 0px; padding:0px; list-style:none; background:url(../images/mstitlelinkbg.jpg) repeat-x bottom;} +.s24 div img{width:330px;margin:0px; padding:0px; background:url(../images/mstitlelinkbg.jpg) repeat-x bottom;height:80px;} +.s24 div ul{border:1px solid #ece0d2;border-top:0px;padding:18px;} +.s24 div ul li{width:290px;overflow:hidden; height:26px;line-height:26px;} +.s24 div ul li a{ font-size:12px; font-weight:bold; color:#926a2d;} + +.titlehead{height:34px; line-height:34px;border-bottom:2px solid #81A84A;} +.titlehead h2{width:150px; float:left;margin:0px; padding:0px; overflow:hidden;height:34px; font-family:微软雅黑; } +.titlehead h2 img{border:0px; padding:0px; margin:0px;} +.titlehead h3{width:180px; float:left;margin:0px; padding:0px 0px 0px 16px;font-size:14px; color:#669900;font-family:微软雅黑; height:34px; overflow:hidden;} +.titlehead h3 img{border:0px; padding:0px; margin:0px;} +.titlehead h4{width:156px;float:left;margin:0px; padding:0px 0px 0px 0px;font-size:14px; font-weight:bold; color:#fff; text-align:center; font-family:"微软雅黑"} +.titlehead h4 img{border:0px; padding:0px; margin:0px;} +.titlehead .linkandmore{width:490px;float:right; padding:0px 0px 0px 0px;} +.titlehead .linkandmore ul{width:380px;float:left; padding:0px; margin:0px; } +.titlehead .linkandmore ul li{list-style:none; overflow:hidden; text-align:right;height:30px; } +.titlehead .linkandmore ul li a{color:#81a84a; padding:0px 8px 0px 8px;border-right:1px solid #aa8662; display:block; text-align:center; text-decoration:none;float:right; height:14px;line-height:14px;margin:10px 0px 0px 0px;} +.titlehead .linkandmore ul li a:hover{text-decoration:underline;} +.titlehead .linkandmore span{float:right; display:block;width:70px; line-height:35px;} +.titlehead .linkandmore span a{color:#81a84a; text-decoration:none; font-family:"微软雅黑"; line-height:40px;} + +.flhead{background:#f4f4f4; height:120px;} +.flhead ul{ padding:20px 0px 0px 0px;} +.flhead ul li{width:166px; text-align:center; float:left; list-style:none;} + +/*新增*/ +.flhead ul li{width: 125px;} +.flhead ul li a {display: inline-block;width: 120px;height: 96px;position: relative;} +.flhead ul li a img {width: 120px;} +.flhead_hover {position: absolute;width: 117px;height: 25px;background:#91c33c;bottom: 2px;left: 2px;line-height: 25px;cursor: pointer;} +.flhead_hover span {text-align: center;color: #fff;font-weight: bold;} +.flhead ul li a:hover .flhead_hover{background:#84a650;} +/*新增*/ +/*新增*/ +.flbox{border:1px solid #81a84a;width:490px;float:left; margin:5px 3px 0px 3px;} +.flbox ul{padding:5px;margin:0px 0px 0px 0px;} +.flbox h2{padding:0px; background:url(../images/fltitlebg.jpg) repeat-y top left;margin:0px; height:30px; font-size:0px;} +.flbox ul li{text-align:left; float:left; list-style:none; border-bottom:1px dashed #ccc; clear:both; padding:0px 5px 5px 0px;width:470px;margin:0px 0px 5px 0px; line-height:20px; } +.flbox ul li a{margin:4px; text-decoration:none} +.flbox ul li a:hover{margin:4px; text-decoration:underline} +.fltitie1,.fltitie2,.fltitie3,.fltitie4,.fltitie5,.fltitie6,.fltitie7,.fltitie8,.fltitie9,.fltitie10,.fltitie389,.fltitie452,.fltitie6178,.fltitie6179,.fltitie6180,.fltitie6181,.fltitie6182,.fltitie6183,.fltitie6184,.fltitie6185,.fltitie6186,.fltitie6187,.fltitie6188,.fltitie6189{ background:url(../images/fltitle.jpg?v=1312) #81a84a no-repeat ;height:35px;line-height:35px;font-size:15px;font-family:微软雅黑;color:#fff;padding:0 0 0 46px;} +.fltitie1 a,.fltitie2 a,.fltitie3 a,.fltitie4 a,.fltitie5 a,.fltitie6 a,.fltitie7 a,.fltitie8 a,.fltitie9 a,.fltitie10 a,.fltitie389 a,.fltitie452 a,.fltitie6178 a,.fltitie6179 a,.fltitie6180 a.fltitie6181 a,.fltitie6182 a,.fltitie6183 a,.fltitie6184 a,.fltitie6185 a,.fltitie6186 a,.fltitie6187 a,.fltitie6188 a,.fltitie6189 a{ color:#fff;} +.fltitie1{ background-position:0 -209px;}/*母婴*/ +.fltitie2{ background-position:0 -248px;}/*保健*/ +.fltitie3{ background-position:0 -140px;}/*粮油*/ +.fltitie4{ background-position:0 -36px;}/*酒水*/ +.fltitie5{ background-position:0 -177px;}/*茶饮*/ +.fltitie6{ background-position:0 -72px;}/*休闲*/ +.fltitie7{ background-position:0 -104px;}/*饼干*/ +.fltitie8{ background-position:0 0;}/*生鲜*/ +.fltitie9{ background-position:0 -282px;}/*用品*/ +.fltitie10{ background-position:0 -270px;}/*地图*/ +.fltitie389{ background-position:0 -345px;}/*礼品*/ +.fltitie452{ background-position:0 -310px;}/*时令优选*/ +.fltitie6178{ background-position:0 -376px;}/*母婴*/ +.fltitie6179{ background-position:0 -410px;}/*手机*/ +.fltitie6180{ background-position:0 -442px;}/*家用电器*/ +.fltitie6181{ background-position:0 -442px;}/*电脑办公*/ +.fltitie6183{ background-position:0 -502px;}/*珠宝*/ +.fltitie6184{ background-position:0 -567px;}/*服装鞋帽*/ +.fltitie6185{ background-position:0 -597px;}/*家居日用*/ +.fltitie6187{ background-position:0 -597px;}/*美容护肤*/ +.fltitie6188{ background-position:0 -567px;}/*礼品箱包*/ +.fltitie6189{ background-position:0 -535px;}/*运动户外*/ +.fltitie6182{ background-position:0 30px;}/*便民服务*/ +.fltitie6186{ background-position:0 30px;}/*汽车用品*/ +.flbox_s1{border:1px solid #81a84a; margin:5px 3px 0px 3px;} +.flbox_s1 ul{padding:5px;margin:0px 0px 0px 0px; height:100%;} +.flbox_s1 h2{padding:0px; background:url(../images/fltitlebg.jpg) repeat-y top left #d6ac72;margin:0px; height:30px; font-size:0px;} +.flbox_s1 ul li{text-align:left; float:left; list-style:none; border-bottom:1px dashed #ccc; clear:both; padding:0px 5px 5px 0px;width:970px;margin:0px 0px 5px 0px; line-height:20px; } +.flbox_s1 ul li a{margin:4px; text-decoration:none; display:block;width:110px; overflow:hidden;float:left;} +.flbox_s1 ul li a:hover{margin:4px; text-decoration:underline} +.flbox_s1 strong{margin:4px; clear:both; float:left; display:block;width:100%;} + +.flbox_cat{border:1px solid #81a84a;margin:5px 3px 0px 3px;} +.flbox_cat ul{padding:5px;margin:0px 0px 0px 0px;} +.flbox_cat h2{padding:0px; background:url(../images/fltitlebg.jpg) repeat-y top left #d6ac72;margin:0px; height:30px; font-size:0px;} +.flbox_cat ul li{text-align:left;list-style:none; border-bottom:1px dashed #ccc; clear:both; padding:5px 5px 5px 0px;margin:0px 0px 5px 0px; line-height:20px; } +.flbox_cat ul li a{margin:4px; text-decoration:none} +.flbox_cat ul li a:hover{margin:4px; text-decoration:underline} + +.fllogobox{margin:0px} +.fllogobox ul{padding:0px;margin:0px;} +.fllogobox h2{padding:0px; background:url(../images/fltitlebg.jpg) repeat-y top left #d6ac72;margin:0px; height:30px; font-size:0px;} +.fllogobox ul li{float:left; list-style:none; padding:0px;width:90px;margin:8px 10px 16px 10px;height:100px;} +.fllogobox ul li img{width:60px; height:60px;} +.fllogobox ul li a.brand_pic{ padding:1px; display:block;width:60px;height:60px;margin:0 auto;} +.fllogobox ul li a.brand_pic:hover{border:1px solid red; padding:0px;width:60px;height:60px;} +.fllogobox ul li a.brand_ch,.fllogobox ul li a.brand_en{text-align:center;line-height:18px;height:18px;overflow:hidden;display:block;} +.fllogobox ul li a.brand_ch{ color:#565656;} +.fllogobox ul li a.brand_en{ color:#989898;} + + +.flimgbox{border:1px solid #81a84a;width:490px;float:left; margin:5px 3px 0px 3px;} +.flimgbox ul{padding:5px;margin:0px 0px 0px 0px;} +.flimgbox ul li{text-align:left; float:left; list-style:none; border-bottom:1px dashed #ccc; clear:both; padding:0px 5px 5px 0px;width:470px;margin:0px 0px 5px 0px; line-height:20px; } +.flimgbox ul li img{width:60px; height:60px;} +.flimgbox ul li a{margin:4px; text-decoration:none} +.flimgbox ul li a:hover{margin:4px; text-decoration:underline} + + +.fl2{width:158px;margin:0px;overflow:hidden;} +.fl2 strong{clear:both;width:158px;} +.fl2 ul {margin:6px; padding:0px;} +.fl2 ul li{margin:0px 0px 6px 0px; padding:4px 0px 4px 0px;width:100%;border:0px;} +.fl2 ul li a{margin:0px 8px 0px 0px; padding:0px;display:block;float:left;white-space:nowrap;font-size:12px;} +.fl2 ul li a:hover{margin:0px 8px 0px 0px; padding:0px;} +.fl2 ul li strong{ clear:both;display:block; padding:0px 0px 4px 0px; color:#1b6147;height:20px;font-size:14px;} +.fl2 ul li strong a{ font-size:14px;} + +.fl3{width:158px;margin:0px;overflow:hidden;} +.fl3 strong{ clear:both;width:158px;} +.fl3 h2{ clear:both} +.fl3 ul {margin:6px; padding:0px;} +.fl3 ul li{margin:0px 0px 6px 0px; padding:4px 0px 4px 0px;width:100%;border:0px;} +.fl3 ul li a{margin:0px 4px 0px 0px; padding:0px;display:block; float:left;white-space:nowrap;} +.fl3 ul li a:hover{margin:0px 4px 0px 0px; padding:0px;} +.fl3 ul li strong{ clear:both;display:block; padding:0px 0px 4px 0px; font-size:14px; font-weight:bold; color:#565656} + +.loginl{width:618px; height:352px; clear:both} +.loginr{width:375px; background:#fff;} +.loginr .title{background:url(../images/logintitlebg.jpg) repeat-y top; height:40px; line-height:40px; font-size:14px; padding:0px; margin:0px; font-weight:bold; color:#176246} +.loginr .title img{float:left;} +.loginr .content{border:1px solid #cfab6f;background:url(../images/logincontentbg.jpg) repeat-x top;} +.loginr .content ul{margin:11px 16px 0px 16px; border-bottom:1px solid #e1c9a5; padding:0px 0px 6px 0px;} +.loginr .content ul li{list-style:none; text-align:left; padding:4px 0px 3px 0px;color:#176246;} +.loginr .content ul li a{ vertical-align:middle; text-decoration:none} +.loginr .content .sidebarA{ float:left;width:25%;text-align:right; font-size:13px;height:22px; line-height:22px;} +.loginr .content .sidebarB{ float:left;width:65%; text-align:left;height:22px;} +.loginr .content .sidebarB input{width:140px; border:1px solid #e1c9a5; height:18px; line-height:18px;} +.loginr .content .imglink img{border:1px solid #cba24d;} +.loginr .content .imglink img:hover{border:1px solid #ecc980;} +.loginr .content .botton{text-align:center; clear:both} +.loginr .content .check{clear:both; padding:0 0 0 153px;*padding:0 0 0 169px; _margin-top:3px;} +.loginr .content .check input{_margin-top:-3px;} + + +.cbox3{} +.cbox4{width:196px; float:right} +.title3{background:#ddc297;height:35px;text-align:center;color:#814e23; font-weight:bold} +.content4{background:#efebe2;} + +input.submit1{font-size:12px;background-color:#6c9c0a;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 4px 0px 4px;height:22px;line-height:22px;cursor:pointer; vertical-align:middle; vertical-align:baseline\9;} +input.submit1:hover{background:url(../images/productinfo.png) repeat-x 0 -124px;} +input.submit2{font-size:8px;background:url(../images/btn_bg.jpg) repeat-x bottom;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;height:12px; line-height:8px;cursor:pointer;width:12px; vertical-align:middle; *font-size:12px;} +a.submit2{font-size:12px;background:url(../images/btn_bg.jpg) repeat-x bottom;color:#fff;border:none;margin:1px 2px 0px 2px;padding:0px 0px 0px 0px;height:12px; line-height:12px;cursor:pointer;width:10px; vertical-align:middle; font-size:12px; display:block; float:left; text-align:center; text-decoration:none; overflow:hidden;} +a.submit2:hover{color:#fff; text-decoration:none;} +input.submit3{font-size:12px;background:#aaaaaa;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 2px 0px 2px;height:22px;line-height:22px;cursor:pointer;vertical-align:middle; _vertical-align:top;} + + +input.text{font-size:12px;border:1px solid #dadada;margin:0px;padding:0px 0px 0px 4px;height:20px;line-height:20px;} +select.select{ display:block; font-size:12px; float:left; border:1px solid #926e3e;height:22px;line-height:22px;} +select.select option{font-size:12px; display:block;} +.cn_box li input.text{width:30px; text-align:center; padding:0;} + + +.title2{background:url(../images/titlebg2.jpg) repeat-y left top;height:22px;line-height:23px;text-align:center; color:#176246; font-weight:bold;overflow:hidden;} +.title3{background:url(../images/wnewtitlebg.jpg) repeat-y left top;height:28px;line-height:28px;text-align:left;color:#176246;font-weight:bold;overflow:hidden;font-size:14px;padding:0px 0px 0px 12px;} +.content2{border:1px solid #988e75;border-top:none; text-align:center;padding:6px 0px; font-size:12px; background:url(../images/tabmenu_contentbg.gif) repeat-x top #edd9b6; color:#956942;} +.content2 ul{} +.content2 ul li{text-align:left;background:url(../images/tabmenu_contenticon.gif) no-repeat 4px 4px; padding:0px 5px 1px 20px;overflow:hidden;list-style:none;} +.content2 ul li a{text-decoration:none;} +.content2 ul li a:hover{text-decoration:underline;} +.c2_li1 li{height:18px; line-height:18px;} +.c2_li2{height:197px;} +.c2_li2 li{height:18px;line-height:18px;} +.c2_li3{height:176px;} +.c2_li3 li{height:18px;line-height:18px;} + + +.content3{border:1px solid #988e75;border-top:none; text-align:center;padding:6px 0px; font-size:12px; background:url(../images/tabmenu_contentbg.gif) repeat-x top #edd9b6; color:#956942;} +.content3 ul{} +.content3 ul li{text-align:left;padding:0px 5px 1px 18px;overflow:hidden; list-style:none; } +.content3 ul li a{text-decoration:none;} +.content3 ul li a:hover{text-decoration:underline;} +.c3_li1 {height:134px;} +.c3_li1 ul{} +.c3_li1 li{height:22px;line-height:22px;} + +.c3_li2 {height:230px;} +.c3_li2 ul{} +.c3_li2 li{height:22px; overflow:hidden; line-height:22px; width:90%;} + +.pbox{clear:both; margin:0px 0px 0px 0px; background:#fff; padding:0px;} +.pbox .sidebarA{margin:0px 0px 0px 0px;float:left;width:160px;position:relative;} +.pbox .sidebarA .titlehead{background:#81a84a;height:34px; text-align:center;} +.logolist{background:#fff;border-top:none;} +.logolist ul{height:320px; padding:8px 0px 0px 0px;} +.logolist ul li{float:left; width:78px; text-align:center; list-style:none} +.logolist ul li img{width:60px;height:60px;} + +.toplogo ul li{float:left; width:88px; text-align:center; list-style:none;border:1px solid #eeeeee; background:#fff; margin:0px 2px 2px 2px;height:60px;} +.toplogo ul li img{width:60px;height:60px;} +.toplogo{background:#f5f5f5;height:338px; padding:4px 2px 0px 4px;} +.toplogo img{} + + + +.pbox .sidebarB{float:right;width:835px;display:inline;overflow:hidden;} +.plist{padding:0px; height:100%;} +.plist ul li{width:150px;margin:0px 3.5px 0px 3.5px;_display:inline;float:left;list-style:none;height:215px;} +.plist ul li .pic{} +.plist ul li .pic a{padding:1px; display:block;width:150px;margin:0 auto;height:150px;} +.plist ul li .pic a:hover{padding:0px;border:1px solid #dadada;height:150px;} +.plist ul li .isp{} +.plist ul li p{text-align:center; color:#6b6b6b;margin:0px; overflow:hidden;height:30px; line-height:15px;padding:6px 12px 0px 12px;} +.plist ul li p a{display:block; clear:both; color:#565656; text-decoration:none;} +.plist ul li div {text-align:center; color:#999999;} +.plist ul li div span{color:#ea5404;font-size:12px; font-family:Arial; } +.s1 ul{height:219px;float:left;width:632px; padding:8px 0px 0px 0px; } +.s1 ul li{position:relative;} +.s1 ul li span{top:4px;right:4px;} +.s1 ul li p{padding:0px;text-align:left;width:150px;line-height:18px;} +.s1 ul li p.title-a{height:36px;} +.s1 ul li p.title-b{height:18px;} +.s1 ul li p.title-c{height:18px;color:red;} +.s1 ul li p a{margin:auto; padding:0px;} +.s1 ul li .price{color:#ea5404; text-align:left;line-height:20px;font-size:16px; font-family:"微软雅黑"; padding:4px 0px 4px 0px;width:150px;margin:auto} +.s1 ul li .price font{color:#565656;font-size:12px; text-decoration:line-through; padding:0px 0px 0px 6px;} + + + + + + + +.s2 ul{height:656px;float:left;width:632px;background:url(../images/plistbg.gif) repeat-x top #fff; padding:8px 0px 0px 0px;} +.s3 p{height:214px;float:left;width:632px;background:url(../images/plistbg.gif) repeat-x top #fff;padding:8px 0px 0px 0px; } +.s4 ul{height:656px;float:left;width:632px;background:url(../images/plistbg.gif) repeat-x top #fff; padding:8px 0px 0px 0px;} +.s5 ul{float:left;width:714px;background:url(../images/plistbg.gif) repeat-x top #fff; padding:8px 0px 0px 0px} +.s5 ul li{margin:0px;padding:6px 14px 0px 14px;} +.s8{padding:12px;} +.s8 img{ float:left; border:1px solid #ece0d2;} +.s8 h3{ float:right; text-align:left;width:456px;padding:12px 12px 0px 12px; overflow:hidden; height:22px; line-height:22px;} +.s8 p{ float:right; text-align:left; width:456px; padding:12px; text-indent:24px; line-height:20px;overflow:hidden; height:146px; } +.s6 ul{float:left;width:714px;background:url(../images/plistbg.gif) repeat-x top #fff; padding:8px 0px 0px 0px} +.s6 ul li{margin:0px;padding:6px 14px 0px 14px;} +.s7 {background:#efebe2;} +.s7 ul{padding:12px;background:#efebe2;} +.s7 ul li{ list-style:none; line-height:18px; padding:2px 0px 2px 0px;} +.s7 ul li input{ vertical-align:middle} +.s7 ul li p{padding:12px 0px 0px 0px;border:0px;text-indent:0px} +.s7 p{padding:12px;text-indent:24px} +.s7 h3{padding:12px 12px 0px 12px;margin:0px;font-size:14px;} +.s10{padding:12px;border:1px solid #eeeeee;} +.s10 ul{} +.s10 ul li{width:260px;height:120px; } +.s10 ul li img{float:left;height:120px;width:120px;} +.s10 ul li span{ padding:0px 0px 12px 0px; display:block} +.s10 ul li p{padding:20px 0px 0px 0px; float:left; overflow:hidden;width:120px; text-align:left;} +.s10 ul li div{float:left;} + +.s11 {padding:0px;} +.s11 ul{padding:12px 0px 0px 0px; margin:0px;} +.s11 ul li{width:200px; height:240px;margin:6px 3px 0px 3px; padding:0px; position:relative} +.s11 ul li img{} +.s11 ul li span{top:1px;} +.s11 ul li p{padding:0px;text-align:left;width:150px; margin:0px auto;line-height:18px;} +.s11 ul li p.title-a{height:36px;} +.s11 ul li p.title-b{height:18px;} +.s11 ul li p.title-c{height:18px;color:red;} +.s11 ul li p a{margin:auto; padding:0px;} +.s11 ul li .price{color:#ea5404; text-align:left;line-height:20px;font-size:16px; font-family:"微软雅黑"; padding:4px 0px 4px 0px;width:150px;margin:auto} +.s11 ul li .price font{color:#565656;font-size:12px; text-decoration:line-through; padding:0px 0px 0px 6px;} + + +.s12{padding:0px; margin:12px 0px 0px 0px;height:120px;} +.s12 li{width:340px;height:120px;float:left; margin:0px 0px 0px 12px; padding:0px; list-style:none} +.s12 li img{float:left;height:120px;width:120px;} +.s12 li div{float:left; margin:0px;padding:12px; text-indent:26px; line-height:18px;height:99px; overflow:hidden;width:190px;} +.s12 li div h4{text-indent:0px; font-size:14px; height:22px; line-height:22px; overflow:hidden} +.s13{border:1px solid #f7eada;width:314px;float:left;padding:12px 12px 12px 12px; margin:12px 0px 12px 12px; background:#fffaf0;} +.s13 li{margin:0px 0px 0px 0px; list-style:none; background:url(../images/tabmenu_contenticon.gif) 2px 3px no-repeat; padding:0px 0px 0px 16px; overflow:hidden; height:16px; line-height:16px} +.s13 li span{padding:0px 0px 12px 0px; display:block} +.s14 {padding:0px; border:1px solid #dadada;} +.s14 ul{padding:3px 0px 0px 3px; margin:0px;} +.s14 ul li{height:240px;margin:0px;padding:0px; text-align:center} +.s14 ul li img{} +.s14 ul li span{ padding:0px 0px 12px 0px; display:block} +.s14 ul li p{padding:0px 0px 0px 0px; } +.s15 ul{float:left;background:url(../images/plistbg.gif) repeat-x top #fff; padding:12px} +.s15 ul li{margin:0px;padding:6px 6px 0px 6px;} +.s16{padding:0px; margin:12px 0px 0px 0px;height:220px;} +.s16 li{height:120px;float:left; margin:0px 0px 0px 12px; padding:0px; list-style:none} +.s16 li img{float:left;height:200px;width:240px;} +.s16 li div{float:left; margin:0px;padding:12px;line-height:20px;height:94px; overflow:hidden; width:400px;} +.s16 li div h4{text-indent:0px; font-size:14px;padding:0px 0px 4px 0px;} +.s16 li div a{padding:0 0 0 26px;} +.s17{padding:0px; margin:0px 0px 0px 0px;height:290px;} +.s17 li{width:340px;height:120px;float:left; margin:12px 0px 0px 12px; padding:0px 0px 12px 0px; list-style:none;overflow:hidden;} +.s17 li img{float:left;height:120px;width:120px;} +.s17 li div{float:left; margin:0px;padding:12px;line-height:20px;height:94px; overflow:hidden;width:190px;} +.s17 li div h4{text-indent:0px; font-size:14px;padding:0px 0px 4px 0px;} +.s17 li div a{padding:0 0 0 26px;} +.s18{padding:0px; margin:0px 0px 0px 0px;} +.s18 li{width:340px;height:120px;float:left; margin:12px 0px 0px 12px; padding:0px 0px 12px 0px; list-style:none;overflow:hidden;} +.s18 li img{float:left;height:120px;width:120px;} +.s18 li div{float:left; margin:0px;padding:12px; line-height:18px;height:94px; overflow:hidden;width:190px;} +.s18 li div h4{text-indent:0px; font-size:14px;} +.s18 li div a{padding:0 0 0 26px;} +.s19{padding:0px; margin:0px;} +.s19 li{height:120px;margin:0px; padding:5px; list-style:none;overflow:hidden;} +.s19 li img{float:left;height:120px;width:120px;} +.s19 li div{float:left; margin:0px;padding:12px; line-height:18px;height:94px; overflow:hidden;width:116px;} +.s19 li div h4{text-indent:0px; font-size:14px;height:18px;overflow:hidden;} +.s19 li div a{padding:0 0 0 26px;} +.s20{padding:12px;} +.s20{padding:0px; margin:12px 0px 0px 0px;} +.s20 li{display:block;margin:0px; padding:0px;float:left;height:100px;width:200px;} +.s20 li img{} +.s20 li span{ padding:0px 0px 12px 0px; display:block} +.s20 li p{padding:0px 0px 0px 0px; } +.s21 {padding:12px;} +.s21{padding:0px; margin:12px 0px 0px 0px;} +.s21 li{ display:block;margin:0px; padding:0px;float:left;height:100px;width:200px;} +.s21 li img{} +.s21 li span{ padding:0px 0px 12px 0px; display:block} +.s21 li p{padding:0px 0px 0px 0px;} +.s22 {padding:0px;} +.s22 ul{padding:0px; margin:0px;} +.s22 ul li{width:182px; height:240px;margin:6px 3px 0px 3px; padding:0px;} +.s22 ul li img{} +.s22 ul li span{ padding:0px 0px 12px 0px; display:block} +.s22 ul li p{padding:0px 0px 0px 0px; text-align: center} +.s22 ul li p a{margin:auto} +.s26{padding:0px; margin:0px;} +.s26 ul{ margin:10px 0 0 0;} +.s26 li{ width:275px;overflow:hidden; text-align:center; padding:10px 0;} +.s26 li img{height:210px;width:210px;} +.s26 li h4{font-size:14px; width:210px; margin:0 0 0 32px; text-align:left;line-height:24px;height:24px; overflow:hidden;} +.s26 li .p-btn{float:left;} +.s26 li .p-btn a{background:url("../images/productList.png") #669900 no-repeat -130px -162px;border-radius:2px;color: #ffffff;cursor: pointer;display: block;height:24px;line-height:24px;padding:0 5px 0 25px;width:63px;} +.s26 li .p-btn a:hover{background:url("../images/productList.png") #69af05 no-repeat -130px -162px;} +.s26 .pItemsPrice{ width:210px;margin:5px 0 0 32px; overflow:hidden;} +.s26 .priceBox {float:left;width:117px;overflow: hidden;font-family:Microsoft YaHei;font-size:20px;color:#699701;text-align:left;line-height:22px;} + +.ggList{border:1px solid #d8d8d8; padding:10px;} +.ggList .title{border-bottom:1px solid #d5d5d5;height:25px;padding:0px 0px 0px 0px} +.ggList .title font{font-size:14px; font-weight:bold; color:#565656; border-bottom:2px solid #176246; display:block;width:120px;height:25px;} +.ggList ul{ padding:12px 0px 0px 0px} +.ggList ul li{height:23px; line-height:23px; padding:0px 0px 0px 20px; background:url(../images/ic1o04.gif) no-repeat 10px 10px; position:relative; clear:both} +.ggList ul li a{color:#565656;width:650px;overflow:hidden;height:23px;float:left;} +.ggList ul li span{ color:#565656; width:90px;float:right;} + + + + +.eggwindow{position:absolute; top:50%; left:50%;width:550px;height:400px;margin-top:-300px;margin-left:-275px;display:none;z-index:9999} + + +.choose{width:275px;height:125px;} +.choose img{ margin:0px 4px 0px 0px;} + +.tlistA{float:left;width:716px;padding:0px;} +.tlistB{float:right;width:275px;} + +.jkys_box{width:718px} + +.productsbox{} +.productsbox h4{font-size:14px; padding-bottom:4px;} +.p1{} +.p2{ height:650px;} +.padding{padding:12px;} +#clickTop{font-size:0px;} +#promotion{font-size:0px;} +.subproductsbox{ font-size:12px;width:158px;border:1px solid #81A84A;} + +.yupsub{width:275px;} +.yup_r{width:718px;} + +.contentbox{} +.c1{border:1px solid #eeeeee; padding:24px;font-size:14px;} +.c1 h2{font-size:16px;text-align:center;border-bottom:1px solid #eee; padding:6px;height:22px; line-height:22px; font-family:"微软雅黑"} +.c1 p{text-indent:26px;padding:5px;line-height:20px;} +.c1 img{margin:5px;} +.c2{border:1px solid #eeeeee; padding:24px;font-size:14px;} +.c2 h2{font-size:16px; text-align:center; border-bottom:1px solid #eee; padding:6px;height:22px; line-height:22px; font-family:"微软雅黑"} +.c2 p{text-indent:26px;padding:5px;line-height:20px;} +.c2 img{margin:5px;} +.contentbox .sidebarA{margin:0px;float:left;} +.contentbox .sidebarB{margin:0px;float:right;} + +.toplist{} +.toplist h2{background:url(../images/titlebg1.jpg) repeat-x top; color:#5f4c3e; font-size:14px; display:block; height:30px; line-height:30px; padding:0px 0px 0px 10px;margin:0px;} +.toplist ol{margin:0px; padding:6px 0px 6px 0px;height:180px; background:#efebe2;} +.toplist ol li{float:left;overflow:hidden;margin:0px; padding:0px 0px 0px 0px;list-style:none; clear:both; height:18px; line-height:18px; width:190px;} +.toplist ol li a{color:#8e6b2b; text-decoration:none; padding:0px 0px 0px 6px;} +.toplist ol li a:hover{text-decoration:underline;} +.toplist ol span{font-size:10px;font-weight:normal;color:#fff;padding:0px 0px 0px 2px;margin:0px;height:18px;width:18px;background:url(../images/toplistolbg.gif) no-repeat 0% 50%;display:block; float:left; text-align:left} +.t1{width:195px;} +.t2 ol{height:110px;} +.t2 ol li{width:95%;overflow:hidden} + +.list{border:1px solid #dddddd; background:#f5f5f5;} +.list thead{} +.list thead th{background:#81a84a; font-size:12px; text-align:center; padding:6px; color:#fff;} +.list tbody{background:#f5f5f5;} +.list tbody tr{} +.list tbody tr td{text-align:center; padding:6px; border-bottom:1px solid #dddddd;border-left:none;} +.list tbody tr td span{color:red;clear:both;display:block} +.list tfoot tr{} +.list tfoot tr td{padding:6px; text-align:right} +.list tfoot tr td span{color:#ea5405;} + +.listtop{background:#f5f5f5; padding:8px; margin:0px;} +.listtop ul{ margin:0px; padding:0px;} +.listtop ul li{padding:4px 0px 4px 0px;} +.listtop ul li strong{ width:100px; display:block; text-align:right; float:left;} +.listtop textarea{vertical-align:top;resize:none;} +.listtop span{color:#ea5404} + +.list1{width:100%;} + +.helpbox{ padding:24px; font-size:14px; line-height:22px;} +.helpbox img{margin:20px 0px 20px 0px;padding:0px;} + +.regbox{background:url(../images/logincontentbg.jpg) repeat-x top #fefbf6; padding:0px 0px 12px 0px} +.regbox ul{margin:0px;padding:0px; } +.regbox ul li{list-style:none;text-align:left;padding:8px 0px 8px 0px;color:#176246;} +.regbox ul li a{ vertical-align:middle; text-decoration:none} +.regbox .sidebarA{ float:left;width:40%;text-align:right; font-size:13px;height:22px; line-height:22px; } +.regbox .sidebarB{ float:left;width:19%; text-align:left;height:22px; } +.regbox .sidebarB input{border:1px solid #E1C9A5;height:18px; line-height:18px;width:180px;} +.regbox .sidebarB img{ vertical-align:middle} +.regbox .sidebarB2{ float:left;width:28%; text-align:left;height:22px;margin:0px 0px 0px 5px;display:inline;overflow:hidden; } +.regbox .sidebarB2 input{border:1px solid #e1c9a5; height:18px; line-height:18px;width:180px; vertical-align:middle;} +.regbox .sidebarB2 img{ vertical-align:middle} +.regbox .reg_msg{ float:left;width:30%; text-align:left;height:22px; } +.regbox .imglink img{border:1px solid #cba24d;} +.regbox .imglink img:hover{border:1px solid #ecc980;} +.regbox .botton{text-align:center; clear:both} +.regbox .agreement{display:block; border:1px solid #eee; width:700px; height:80px; overflow:auto; margin:auto; padding:12px; background:#fff; line-height:20px;} +.regbox .agreement p{padding:8px 0px 0px 0px;text-indent:24px;} +.regbox .agreement h4{text-align:center} + +.cpjs_list{clear:both;border-top:1px solid #f1f1f1;margin:0px; padding:0px; height:100%;} +.cpjs_list li{color:#6b6b6b; float:left; width:404px; padding:0px;border-bottom:1px solid #f1f1f1;height:22px; line-height:22px;border-right:1px solid #f1f1f1; } +.cpjs_list li strong{ font-weight:normal; width:100px; text-align:right; display:block; float:left; background:#f1f1f1;height:22px; line-height:22px; padding:0px 6px 0px 0px; margin:0px 6px 0px 0px;} + +.cpjs_titlelist{clear:both;} +.cpjs_titlelist li{color:#6b6b6b; padding:4px 0px 4px 0px;} +.cpjs_titlelist li span{ font-weight:normal; width:100px; text-align:right; display:block; float:left; } + +.buylistnumber{ border-top:1px solid #eee; border-left:1px solid #eee; border-right:1px solid #eee;} +.buylistnumber li{ background:#fff; border-bottom:1px solid #eeeeee;} + +/*--------表单---------*/ +.list3{} +.list3 ul{padding:12px;width:80%; margin:auto;} +.list3 ul li{list-style:none; text-align:center;padding:6px 0px 6px 0px;margin:0px;} +.list3 ul.border{border-top:1px solid #efe8de; vertical-align:middle;} +.list3 .sidebarA{ float:left;width:25%;text-align:right;height:22px; line-height:22px;} +.list3 .sidebarB{ float:left;width:72%; text-align:left;height:22px;line-height:22px;} +.list3 .sidebarC{ float:left;width:38%; text-align:right;height:22px;} + +/*----用户评论滚动---*/ +#tqq{OVERFLOW: hidden;POSITION: relative;height:365px;} +.recommend{} + +.recommend ul{padding:8px 0px 0px 0px;border:1px sollid #dadada;border-top:none;} +.recommend ul li{list-style-type:none; padding:5px 3px 5px 3px;height:60px;overflow:hidden} +.recommend ul li img{clear:both;float:left;} +.recommend ul li a{text-decoration:none;} +.recommend ul li h3{float:right; width:80px;font-size:12px;font-weight:normal;height:20px; line-height:20px; padding:0px; margin:0px;overflow:hidden;} +.recommend ul li p{ float:right; width:80px;height:32px; overflow:hidden; line-height:16px;} + +.recommend1{height:auto; padding:0px 0px 0px 0px;} +.recommend1 ul{ padding:0px; margin:0px;} +.recommend1 ul li {text-align:left;} +.recommend1 ul li h3{margin:10px 0px 0px 0px;float:left; height:20px; overflow:hidden} +.recommend1 ul li img{width:60px; height:60px;margin-right:4px;} +.recommend1 ul li strong{ float:left; color:#565656;} +.recommend1 ul li strong a{ float:left; color:#ea5404;} + + +.recommend2{padding:0px 0px 0px 0px;} +.recommend2 ul{ padding:0px; margin:0px;} +.recommend2 ul li {text-align:left;} +.recommend2 ul li h3{margin:10px 0px 0px 0px;float:left;} +.recommend2 ul li img{width:60px; height:60px;} +.recommend2 ul li strong{ float:left; color:#176246;} + +.tjcx{height:370px} +.tjcx ul{padding:8px 0px 0px 0px;} + +.clear{clear:both;padding:0px;font-size:0px;margin:0px;height:0px;border:none;overflow:hidden;} +.clear1{clear:both;height:5px;font-size:0px;margin:0px;padding:0px;border:none; overflow:hidden;} +.clear2{clear:both;height:10px;font-size:0px;margin:0px;padding:0px;border:none; overflow:hidden;} +.floatright{float:right;} +.floatleft{float:left;} + +/*----翻页页码---*/ +.page{text-align:center;padding:12px 12px 12px 12px;margin:0px;clear:both;} +.page A {border-right:#176246 1px solid; padding-right: 5px; border-top: #176246 1px solid;padding-left: 5px; padding-bottom: 2px; margin: 2px; border-left: #176246 1px solid; color: #025e42; PADDING-TOP: 2px; BORDER-BOTTOM: #176246 1px solid; TEXT-DECORATION: none;} +.page A:hover{BORDER-RIGHT: #999 1px solid; BORDER-TOP: #999 1px solid; BORDER-LEFT: #999 1px solid; COLOR: #4a2f24; BORDER-BOTTOM: #999 1px solid} +.page A:active{BORDER-RIGHT: #4a2f24 1px solid; BORDER-TOP: #4a2f24 1px solid; BORDER-LEFT: #4a2f24 1px solid; COLOR: #4a2f24; BORDER-BOTTOM: #4a2f24 1px solid} +.page .current{PADDING-RIGHT: 5px;PADDING-LEFT: 5px; FONT-WEIGHT: bold; PADDING-BOTTOM: 2px; MARGIN: 2px; COLOR: #fff; PADDING-TOP: 2px; BACKGROUND:url(../images/btn_bg.jpg) repeat-x bottom #087d56;border:1px solid #176246;} +.page .disabled{BORDER-RIGHT: #dadada 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #dadada 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 2px; MARGIN: 2px; BORDER-LEFT: #dadada 1px solid; COLOR: #ddd; PADDING-TOP: 2px; BORDER-BOTTOM: #dadada 1px solid} +.plistpage{text-align:center;padding:12px 12px 12px 12px;margin:0px; padding:12px; clear:both} + +/*----用户中心菜单---*/ +ul#menu, ul#menu ul {list-style-type:none;margin:0px;padding:0px;width: 100%;} +ul#menu a {display: block; text-decoration: none; } +ul#menu li {margin-top: 0px;} +ul#menu li a {background:#f1f1f1;color:#646464;padding: 0.5em;font-size:14px;font-weight:bold;} +ul#menu li a:hover {} +ul#menu li ul li a{background:#f9f9f9;color:#646464;padding-left:20px;font-size:12px;font-weight:normal;} +ul#menu li ul li a:hover {color:#669900;} +ul#menu li ul li.btndown {background:#69af05;border:0px;padding-left:20px; color:#fff; font-weight:bold; height:30px; line-height:30px;} +.code {border:1px solid #ccc; list-style-type: decimal-leading-zero; padding: 5px; margin: 0; } +.code code { display: block; padding: 3px; margin-bottom: 0; } +.code li { background: #ddd; border: 1px solid #ccc; margin: 0 0 2px 2.2em; } +.indent1 { padding-left: 1em; } +.indent2 { padding-left: 2em; } + +/*----用户中心状态浮层---*/ +.state{} +.state a{border:2px solid #f0dbb0; text-decoration:none; background:#fff; padding:0px 2px 0px 2px; height:16px;} +.state p{ border:2px solid #f0dbb0; background:#fff; padding:12px; text-align:left; position:absolute;width:300px; margin:0px 0px 0px -100px;#margin:18px 0px 0px -180px;_margin:18px 0px 0px -180px;} + +/*----用户中心状态浮层---*/ +.linknav{clear:both} +.linknav a{margin:0px 6px 0px 6px;} + +/*--------商品信息页------*/ +.cp_box{} +.cp_box h1{border-bottom:1px dashed #b2b2b2; font-size:14px; line-height:22px; padding:0px 0px 6px 0px; text-align:center; clear:both; color:#333333} +.cp_box h1 span{font-size:14px; line-height:22px; padding:0px 0px 6px 0px; color:#ea5404} +.cp_l{width:344px;float:left;padding-left:12px;} +.cp_l li{clear:both;} + +.lltitle{text-align:center; color:#804f21;font-size:14px; clear:both;height:20px;} +.cp_pic img{width:330px;height:330px;margin:0px; padding:0px;} +.cp_pic_s{padding:21px 0px 0px 0px;#padding:0px 0px 0px 0px;_padding:0px 0px 0px 0px; height:62px;} +.cp_pic_s img{border:1px solid #d8d8d8;width:60px;height:60px;float:left;margin:0px 2px 0px 2px;} +.cp_pic_s img:hover{border:1px solid #c79f61;} +.cp_fx{font-size:14px;text-align:left;height:28px;padding-top:22px;} +.cp_fx img{ vertical-align:middle} +.cp_r{width:434px;float:right; padding-right:12px;position:relative;z-index:2;} +.cp_r ul{} +.cp_r ul li{ padding:6px; color:#333333;clear:both;} +/*.cp_r ul li .carwindownew{margin-left:-100px;}*/ +font.li_text3{color:#EA5404;} +font.li_text5{color:#5a5a5a; text-decoration: line-through; font-family: "微软雅黑"; vertical-align: middle;} +font.li_text4{color:#EA5404; font-size:22px; font-family:"微软雅黑"} +ul.cn_box{border:1px solid #d7d7d7;background:#f5f5f5; padding:6px 12px 0px 12px;} +li.btn1 a{border:1px solid #c0bebf;background:#fbf5ed;cursor:pointer;padding:4px;text-decoration:none;color:#313131; background:#fff;margin:0px; white-space: nowrap;float:left;} +li.btn1 a:hover{border:1px solid #5b5b5b;background:#fff;color:#313131; } +li.btn2 a{color:#0041c1; text-decoration:underline} +li.btn2 a:hover{color:#0041c1; text-decoration:none} +li.btn3 a{text-decoration:none; border:0px; margin:0px 0px 0px 10px} +ul.yh_box{border:1px solid #d7d7d7;padding:12px; margin-top:12px; background:#fbf5ed; } +ul.yh_box li{background:url(../images/d_ico.gif) no-repeat 0% 50%; padding:4px 0px 4px 8px} +ul.yh_box li a{cursor:pointer;text-decoration:none} + +.cpjs_box{clear:both;padding:12px;clear:both;} +.cpjs_box h1{ font-size:14px;background:#efefef; font-weight:bold; padding:6px 6px 0px 6px; border:0px;} +.cpjs_box p,.ps_box p{ font-size:14px;line-height:24px; } +.cpjs_box p img{margin:12px 12px 0px 0px} +.cp_qianggou{color:#999999;margin-left:10px;} +.cp_qiangtime{color:#565656;font-size:16px;} + +/*--商品信息--*/ +.product_info{font-size:14px;line-height:22px;clear:both;} +.product_info h2{padding:0px;height:40px;margin:12px 0px 12px 0px; clear:both;text-indent:0px;} +.product_info span{display:block;width:350px; text-align:center; float:left;} + +.pl_box{padding:12px;background:#f5f5f5; border-top:2px solid #176246} +.pl_box ul{border-top:1px solid #d7d7d7; border-right:1px solid #efe4ce;margin:0px 0px 0px 0px;background:#fff;} +.pl_box ul li{border-bottom:0px solid #d7d7d7; border-left:1px solid #d7d7d7;} + +.zx ul {} +.zx ul li{ padding:12px;border-bottom:1px solid #eeeeee;} +.zx ul li p span{} +.zx ul li p {background:#fff;padding:4px 4px 0px 4px;color:#8a8a8a;} +.zx ul li p strong{padding:0x;color:#176246;} +.pl_box .n{line-height:22px;margin:12px 0px 0px 0px; height:22px;} +.pl_box .n a{line-height:22px;} +.pl_box .n p{float:left; text-align:left; padding:0px;} +.pl_box .n img{ vertical-align:middle} +.pl_box .n span{float:right;text-align:right; padding:0px; display:block; color:#8a8a8a} + +.pl_box ul li .u{clear:both;background:#fff;color:#8b8b8b; padding:4px 12px 0px 24px; height:20px; line-height:20px;overflow:hidden;zoom:1;} +.pl_box ul li .u span{float:left;text-align:left;} +.pl_box ul li .u p{width:200px;float:right; text-align:right;color:#8b8b8b;} +.pl_box ul li .q,.pl_box ul li .a{clear:both;background:#f9f9f9; padding:3px 12px 3px 0px; color:#6b6b6b;overflow:hidden;zoom:1;} +.pl_box ul li .a{color:#824f22;} +.pl_box ul li .q span,.pl_box ul li .a span{float:left; line-height:22px;text-align:right;padding:0 0 0 24px;width:60px;} +.pl_box ul li .q p,.pl_box ul li .a p{overflow:hidden;zoom:1;line-height:22px;text-align:left;} +.pl_box ul li .a p{color:#824f22;} + +.plpage{height:20px;padding-top:8px;line-height:20px;} +.plpage .page{ clear:none;text-align:right;line-height:20px;} +.page .disabled {color:#999;} +.plpage .page p{float:left;} +.plpage .page span {float:right; } +.plpage .page a{float:left;padding:0 3px;color:#4A2F24;border:1px solid #ccc;} +.page .current,.page .disabled{line-height:18px;} +.plpage p{float:left;width:300px; line-height:20px;height:20px;} +.plpage img{ vertical-align:middle} +.plpage span{ float:right;} + + +.menu_bg1{height:39px;width:181px;} + +.shopcarbtn{text-align:center; padding:60px 0px 0px 0px;height:150px; border-left:1px solid #eee; display:block;width:140px; line-height:20px; float:right;} +.shopcarbtn span{ clear:both; display:block} +.shopcarand{width:10px; line-height:150px;font-size:20px;} + +img.pic_btn{width:12px; height:62px; border:none;cursor:pointer} +img.pic_btn:hover{width:12px; height:62px; border:none} + +.cx_icon{position:relative;width:28px;height:21px;margin:-140px 0px 0px 0px;float:right; padding:0px; top:0px;right:0px;} + +/*--------美食地图---------*/ +.msnews_box{border:1px solid #eae0d6;border-top:none; padding:0px; background-color:#f7e9cc;} +.msnews_title{padding:0px 0px 12px 0px;clear:both;margin:0px 0px 0px 0px;border-bottom:1px solid #e1c9a5;border-top:1px solid #fff; } +.msnews_title img{width:273px;height:110px;float:left;margin:0px 0px 0px 0px; overflow:hidden;} +.msnews_title ul{padding:0px;margin:0px} +.msnews_title ul li{font-size:13px; overflow:hidden; width:240px;height:26px; line-height:26px; margin:6px 0px 0px 8px;float:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} +.msnews_title ul li a{font-weight:bold;} +.msnews_title ul li a:hover{color:#f37520;} +.msnews_box{height:313px;overflow:hidden;} +.mappic{text-align:center;} +.msnews_title2{padding:0px 0px 12px 0px;clear:both;margin:0px; } +.msnews_title2 img{width:180px;height:180px;margin:20px 0 5px 0; overflow:hidden;} +.msnews_title2 ul.mapt1{border-bottom:1px solid #E1C9A5;padding:0 0 8px 10px;margin:0;} +.msnews_title2 ul.mapt2{border-top:1px solid #FFFFFF;padding:10px 0 0 10px;margin:0;} +.msnews_title2 ul li{font-size:13px; overflow:hidden; width:240px;height:24px; line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;} +.msnews_title2 ul.mapt1 li{text-align:center;} +.msnews_title2 ul li a{font-weight:bold;} +.msnews_title2 ul li a:hover{color:#f37520;} + + +/*--------红酒---------*/ +.wnews_box{border:1px solid #eae0d6;border-top:none; padding:14px 5px 8px 5px; background:url(../images/wnewcbg.jpg) repeat-x bottom;} +.wnews_title{padding:0px;clear:both;margin:8px 0px 8px 0px;} +.wnews_title img{width:90px;height:90px;float:left;margin:0px 0px 0px 0px;} +.wnews_title ul{padding:0px 0px 0px 4px;margin:0px 0px 0px 0px;} +.wnews_title ul li{font-size:13px; overflow:hidden; height:22px; line-height:22px;margin:0px 0px 0px 0px; background:url(../images/wnewslistimg.jpg) no-repeat 0% 6px; padding:0px 0px 0px 16px; width:236px;text-overflow:ellipsis; white-space:nowrap; +} +.wnews_title ul li a{} +.wnews_title ul li a:hover{color:#e2862f;} +.wtoplistbox{border:1px solid #ebd3d1;background:url(../images/wnewcbg.jpg) repeat-x bottom;} +.wtoplistbox ul{ margin:0px; padding:0px;} +.wtoplistbox ul li{border-bottom:1px dashed #ccc;width:96%;margin:auto;height:72px; padding:4px 0px 0px 0px;} +.wtoplistbox ul li img{float:left;width:60px; height:60px} +.wtoplistbox ul li h3{font-size:12px; display:block;height:42px;line-height:42px;padding:0px 0px 0px 5px; font-size:13px; font-weight:normal; overflow:hidden;} +.wtoplistbox ul li strong{ padding:0px 0px 0px 5px; font-size:13px;color:red;} + + +.wcxlist{border-bottom:1px dashed #ead2d0;padding:6px 0px 0px 6px;} +.wcxlist img{float:left;margin-bottom:5px;#margin-bottom:0px;_margin-bottom:0px;} +.wcxlist ul{padding:6px 6px 6px 6px;float:right;width:190px;} +.wcxlist ul li a{font-size:13px;} +.wcxlist ul li{ height:22px; line-height:22px} +.wcxlist ul li span{color:#cc2222; font-weight:bold;} +.wtitle{ background:url(../images/wtitlebg.jpg) repeat-y left #e6b9c0;border:1px solid #ebd3d1; border-bottom:none; } +.wcontentpic{} +.wcontentpic span{width:5px;float:left; display:block;} +.wcontentpic img{float:left;} +.wcontenttext{padding:12px 12px 0px 12px; border:1px solid #ebd3d1;border-top:none;background:url(../images/wnewcbg.jpg) repeat-x bottom;} +.s25{padding:0px; margin:0px 0px 0px 0px;} +.s25 ul{padding:0px; margin:16px 0px 0px 0px;} +.s25 li{width:340px;float:left; margin:0px 0px 12px 0px; padding:0px; list-style:none;} +.s25 li img{float:left;height:130px;width:130px;} +.s25 li div{float:left; margin:0px;padding:16px 0px 0px 12px;line-height:22px;height:120px; overflow:hidden;width:180px} +.s25 li div a{clear:both; width:180px;display:block; overflow:hidden;height:20px; line-height:20px;text-overflow:ellipsis; white-space:nowrap;} +.s25 li div h4{text-indent:0px; font-size:13px; height:28px; line-height:28px; overflow:hidden} + + + +/*--------分享---------*/ +.ckepop{height:23px; line-height:23px; padding:6px 0px 0px 12px;} +.ckepop span{float:left;font-weight:bold; font-size:12px;} +.ckepop a{height:23px; width:22px; display:block;float:left; margin:0px 4px 0px 0px;} +.ckepop a.qzone{background:url(../images/fxicon.jpg) no-repeat 0px -0px;} +.ckepop a.tsina{background:url(../images/fxicon.jpg) no-repeat -22px -0px; } +.ckepop a.renren{background:url(../images/fxicon.jpg) no-repeat -44px -0px; } +.ckepop a.kaixin001{background:url(../images/fxicon.jpg) no-repeat -66px -0px;} + +/*----广告---*/ +.banner1 img{border:1px solid #eeeeee;margin:0px 0px 5px 0px;#margin:0px 0px 0px 0px;_margin:0px 0px 0px 0px;padding:0px;} +.banner1 a{margin:0px;padding:0px;} +.banner2{width:190px;float:right; padding:5px 4px 0px 0px;} +.banner2 img{border:1px solid #ece0d2;margin-bottom:5px;#margin-bottom:0px;_margin-bottom:0px;} +.banner4{width:160px;padding:5px 0px 0px 0px;} +.banner4 img{clear:both; border:1px solid #eeeeee; margin-bottom:0px;} +.banner5{width:190px;float:right; padding:5px 5px 0px 0px; } +.banner5 img{clear:both; border:1px solid #eeeeee;margin-bottom:5px;} +.banner6{padding:5px 5px 0px 0px; } +.banner6 img{clear:both; border:1px solid #eeeeee; margin-bottom:5px;} +.banner8{padding:0px; } +.banner8 img{margin:0px;padding:0px;float:left;width:315px;height:222px;} +.banner9{height:90px;font-sizd:0px;clear:both;margin:0px;padding:5px 0px;} +.banner9 img{height:90px;margin:0px;padding:0px;width:1000px;} +.banner10{font-sizd:0px;clear:both;margin:0px;padding:0px;} +.banner10 img{width:275px;} +.banner8 img.indexjk{padding:0 2px 0 0;background-color:#f6dfbd} + +/*----站内信息---*/ +.znxx{text-align:left;padding:26px;} +.znxx ul{ margin:0px; padding:0px;width:100%} +.znxx ul li{margin:0px 0px 6px 0px; line-height:30px; text-align:left; clear:both} +.znxx ul li h4{text-align:left} +.znxx ul li p{ text-align:left; text-indent:16px;} +.pborder{border-bottom:1px solid #F4E1BA;} + +/*----弹窗---*/ +.window{width:350px; border:3px solid #e6e6e6; position:absolute; margin-left:-150px; margin-top:-150px; top:50%; left:50%; background:#fff;} +.window .content{ padding:20px 12px 12px 12px; text-align:center; line-height:24px; font-size:14px;} +.window .titlehead{background-color:#f5f5f5;height:31px;line-height:31px;border:0 none;} +.window h3{width:150px; float:left;margin:0px; padding:0px 0px 0px 16px;font-size:14px; color:#565656;font-family:微软雅黑; } +.window h3 img{border:0px; padding:0px; margin:0px;} + + +.carwindow{width:340px; height:90px; border:1px solid #176246; position:absolute; top:200px; left:0; background:#fff;z-index:999;} +.carwindow .content{padding:12px 12px 12px 20px; text-align:center; line-height:22px; height:67px; overflow:hidden;} +.carwindow .content1{padding:5px; text-align:left; line-height:20px; border-top:#999 1px dashed; color:#804F21;} +.carwindow .content img{float:left; margin:14px 0px 0px 0px;} +.carwindow .content ul{float:left;width:260px; } +.carwindow .content ul li{text-align:left; padding:0px 0px 0px 20px;color:#804F21;} +.carwindow .content ul li a{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:75px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left;} +.carwindow .content ul li a:hover{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:75px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left; text-decoration:none;} +.carwindow .content ul li span a{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left;} +.carwindow .content ul li span a:hover{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left; text-decoration:none;} +.carwindow .content ul li .pclose{ background:none;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;margin: 0 12px 0 0; color:#804F21; display:block; float:left; text-decoration:underline;} +.carwindow .content ul li .pclose:hover{ background:none;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;margin: 0 12px 0 0; color:#804F21; display:block; float:left; text-decoration:underline;} +.carwindow .content ul li span{color:red;} +.carwindow .content ul li .submit1{ list-style-type:none; border-style:none;width:65px; text-align:center; height:22px; line-height:18px; margin:0; padding:0 0 2px 0; border:0;border: 1px solid #926E3E; overflow:hidden; margin-top:-1px;} +.carwindow .content1 ul{width:320px;} +.carwindow .content1 li{float:left; width:78px; text-align:center; color:#804F21; overflow:hidden; padding:0 1px; clear:none;} +.carwindow .content1 li a{border:0;color:#804F21;} +.carwindow .content1 li h3{font-size:12px; font-weight:normal; line-height:20px; height:20px; width:80px;color:#804F21; overflow:hidden;} +/*加入购物车new*/ +.carwindownew{width:340px; border:1px solid #176246; position:absolute; top:200px; left:0; background:#fff;z-index:999;} +.carwindownew .content{padding:12px 12px 12px 20px; text-align:center; line-height:22px; height:67px; overflow:hidden;} +.carwindownew .content1{padding:5px; text-align:left; line-height:20px; border-top:#999 1px dashed;} +.carwindownew .content img{float:left; margin:14px 0px 0px 0px;} +.carwindownew .content ul{float:left;width:260px; } +.carwindownew .content ul li{text-align:left; padding:0px 0px 0px 20px;} +.carwindownew .content ul li a{ background: url(../images/btn_bg.jpg) repeat-x bottom #058a5f;width:75px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #01533c;margin: 0 12px 0 0; color:#ffffff; display:block; float:left;} +.carwindownew .content ul li a:hover{ background: url(../images/btn_bg.jpg) repeat-x bottom #058a5f;width:75px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #058a5f;margin: 0 12px 0 0; color:#ffffff; display:block; float:left; text-decoration:none;} +.carwindownew .content ul li span a{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left;} +.carwindownew .content ul li span a:hover{ background: url(../images/shopingcar_btnbg.gif) repeat-x scroll center top #8A683C;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;border: 1px solid #926E3E;margin: 0 12px 0 0; color:#ffffff; display:block; float:left; text-decoration:none;} +.carwindownew .content ul li .pclose{ background:none;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;margin: 0 12px 0 0; color:#804F21; display:block; float:left; text-decoration:underline;} +.carwindownew .content ul li .pclose:hover{ background:none;width:95px; text-align:center; height:20px; line-height:20px; padding:0; border:0;margin: 0 12px 0 0; color:#804F21; display:block; float:left; text-decoration:underline;} +.carwindownew .content ul li span{color:red;} +.carwindownew .content ul li .submit1{ list-style-type:none; border-style:none;width:65px; text-align:center; height:22px; line-height:18px; margin:0; padding:0 0 2px 0; border:0;border: 1px solid #926E3E; overflow:hidden; margin-top:-1px;} +.carwindownew .content1 ul{width:320px;} +.carwindownew .content1 li{float:left; width:78px; text-align:center; color:#ea5404; overflow:hidden; padding:0 1px; clear:none;} +.carwindownew .content1 li a{border:0;} +.carwindownew .content1 li h3{font-size:12px; font-weight:normal; line-height:20px; height:20px; width:80px;color:#804F21; overflow:hidden;} +/*----购买咨询回复---*/ +.gmhf{width:700px;height:40px;background:#fef9f3;border-width:1px;border-color:#cdae76;border-style:solid;margin:0px;padding:8px;float:left;text-align:left;font-Size:12px;} + +/*---- 我的购物车增减按钮 ---*/ + +/*-- 提交支付 --*/ +.submitbox{border:1px solid #eeeeee; padding:40px;} +.submitbox ul{margin:0px 0px 0px 0px;} +.submitbox ul li{ list-style:none; padding:12px; text-align:center} +.submitbox .titlehead2{border:0px solid #cfaa6f; background:#fff; padding:8px; margin:0px;text-align: center;} +.submitbox .listtop2{border:0px solid #cfaa6f; background:#fff; padding:8px; margin:0px;text-align: center;} + + +.cordbox{border:1px solid #dadada; background:#f5f5f5;width:500px;float:left;padding:5px; text-align:left} +.cordbox img{ vertical-align:middle;} +.cordbox textarea{ vertical-align:middle;} + +/*-- 提交订单 --*/ +.sidebarC .productsbox .titlehead2{border:0px solid #cfaa6f; background:#fff; padding:8px; margin:20px;text-align: center;} +.sidebarC .productsbox .listtop2{border:0px solid #cfaa6f; background:#fff; padding:8px; margin:20px;text-align: center;} +.listtop2 ul{padding:8px 3px 3px 200px; margin:3px 3px 3px 2px;text-align: center;} +.listtop2 ul li{float: left;width: auto;margin: 2px;height: auto;padding: 2px;width:105px; list-style:none;text-align: center;} +.listtop2 span{color:#ea5404} +.listtop2 a{ text-decoration:underline} +.list1{width:100%;} +.list1 td{ line-height:18px;} + +/*-- 线上支付 --*/ +.sidebarC .productsbox .titlehead3{border:0px solid #cfaa6f; background:#fff; padding:20px; margin:20px;} +.sidebarC .productsbox .listtop3{border:0px solid #cfaa6f; background:#fff; padding:20px; margin:20px;} +.listtop3 ul{padding:8px 3px 3px 200px; margin:3px 3px 3px 2px;} +.listtop3 ul li{float: left;width: auto;margin: 2px;height: auto;padding: 2px;width:105px; list-style:none;text-align: center;} +.listtop3 span{color:red} +.yinhang{width:100%;height:24px;text-align:left;border:1px solid #dadada; background:#f5f5f5;padding:6px 0px 0px 2px;} +.sidebarC .productsbox .listtop3 .yinhang span{color:#000000} + +.znxx .listtop4{width:100%;height:700PX;style:1px solid #cfaa6f;border :1px solid #F3E6D5;padding:0px;margin:0px;line-height: 25px;background-color: #FBF4EC;border-top:1px solid #efe8de;} +.listtop4 ul{padding:8px 3px 3px 200px; margin:3px 3px 3px 2px;} +.listtop4 ul li{float: left;width: auto;margin: 2px;height: auto;padding: 2px;width:105px; list-style:none;text-align: center;} +.listtop4 ul .border{border-top:1px solid #efe8de;} +.listtop4 span{color:red} +.listtop4 input{border:1px solid #cfaa6f;color:red} +.tiandan{width:100%;height:24px;text-align:left;border:1px solid #cfaa6f; background:#FFF0D2;padding:6px 0px 0px 2px;} +.listtop4 span{color:#000000} +.payment td{ padding:6px;} +.alipayAd{border:1px solid #fa6400;background-color:white;height:18px;line-height:18px;position:absolute;top:-11px;left:6px;padding-left:25px;padding-right:5px;display:none;color:#ea5404;} +.alipayAd span{position:absolute;left:0;height:18px;padding:0 4px;background-color:#fa6400;color:#ffffff;} + + +/*-- 我的优选--*/ +.productsbox .wdyx{width:780px;height:245px;border:1px solid #dadada;background:#f5f5f5;text-align:left;padding:26px;} +.productsbox .wdyx h4{text-indent:0px; font-size:12px;} +.productsbox .wdyx .wdyxA{width:135px;height:245px;text-align:center;border-right-width: 1px;border-right-style: solid;border-right-color: #cfaa6f; padding:0px;line-height: 30px;} +.productsbox .wdyx .wdyxB{width:100%;text-align:left;} +.wdyxB ul{margin:0px 0px 0px 0px;} +.wdyxB ul li{list-style:none;padding:0px;text-align:left;color: #666;margin-left: 4px;} +.wdyx span{color:#F00} + +/*-- 订单详情 --*/ +.listddxq{border:1px solid #dadada; background:#f5f5f5;} +.listddxq thead{} +.listddxq thead th{background:#f5f5f5; font-size:12px; text-align:left; padding:6px; border-bottom:1px solid #dadada;border-right:1px solid #cfaa6f; color:#176246;} +.listddxq tbody{} +.listddxq tbody tr{} +.listddxq tbody tr td{padding:6px;} +.listddxq tbody tr td span{color:red;clear:both;display:block} +.listddxq tfoot tr{} +.listddxq tfoot tr td{padding:6px; text-align:right} +.listddxq tfoot tr td span{color:red;} + +.tdtitle{ text-align:right; font-weight:bold; } +.tdtitle2{ text-align:center; font-weight:bold; color:#ffffff;background:#81a84a;} + +/*-- 礼篮 --*/ +#nf_freepage{} +.nf_freesearch{height:26px;padding:15px 0;} +.nf_freesearch .nf_freeseachc .nf_freeseachct{font-weight:700;padding-right:9px;line-height:20px;height:20px;} +.nf_freeselect option{margin:5px 0;padding:0 20px;} +.nf_freesearch .nf_freeseachc .nf_freeseachc2{margin:0 12px;} +.nf_freesearch .nf_freeseachc .nf_freeseachc3 input{width:150px;padding-left:9px;float:left;height:17px;line-height:17px;} +.nf_freesearch .nf_freeseachc .nf_freeseachc3 button{border:none;margin-left:9px;cursor:pointer; width:52px; height:20px;} +.nf_freecon{width:962px;overflow:hidden;clear:both;border:1px solid #ddd;margin:10px;padding:1px;} +.nf_freecontl,.nf_frddcontr{overflow:hidden;} +.nf_freetitle{height:26px;line-height:26px;font-size:12px;} +.nf_freetitle li,.nf_freepro li{text-align:center;float:left;} +.nf_freepro ul{padding:0px; margin:0px;} +.nf_freepro li{height:24px;line-height:24px;border-bottom:1px dotted #ddd; padding:2px 0px 2px 0px;} +.nf_freepro p{height:64px;line-height:64px;font-size:25px;font-weight:700px;color:#F03;text-align:center;padding:12px;} +.nf_title ul li{background:#f4e1ba; font-size:12px; text-align:center; padding:0px; border-bottom:1px solid #cfaa6f;border-right:1px solid #cfaa6f;color:#804f21;float:left;} +.nf_freelist1,.nf_freelist6{width:320px;} +.nf_freeprol .nf_freeprolxx .nf_freelist3 span,.nf_freeprol .nf_freeprolxx .nf_freelist4 span{padding:0px;} +.nf_freelist2,.nf_freelist3,.nf_freelist4,.nf_freelist7{width:150px;} +li.nf_freelist5{width:157px;border-right:none;} +.nf_freetitle .nf_freetitle li.nf_freelist8,.nf_freepro li.nf_freelist5,.nf_freepro li.nf_freelist8{width:145px;border-right:none;} +.nf_freelist7 .nf_freelist7con{height:20px;width:80px;overflow:hidden;margin:2px 0px 0px 0px;} +.nf_freelist7 .nf_freelist7con a,.nf_freelist7 .nf_freelist7con span{display:block;float:left;} +.nf_freelist7 .nf_freelist7con a{width:19px;height:20px;line-height:20px;background:#FFD7D7;padding-left:1px;cursor:pointer;} +.nf_freelist7 .nf_freelist7con a:hover{ text-decoration:none;} +.nf_freelist7 .nf_freelist7con span{border:1px solid #FFD7D7;width:28px;height:18px;line-height:18px;background:#fff;margin:0 5px;} +.nf_freelist8 a{color:#36c;} +.nf_freelist8 a:hover{color:red;text-decoration:underline;} +.nf_freecontl{width:642px;float:right;} +.nf_freetitlel{background:#F7F7F7;color:#666;} +.nf_freetitlel ul,.nf_freeprol ul{overflow:hidden; margin:0px; padding:0px} +.nf_freepro_title{width:630px;clear:both;} +.nf_freepro_title ul{padding:0px; margin:0px;} +.nf_freepro_title li{height:24px;line-height:24px;border-bottom:1px dotted #ddd; padding:2px 0px 2px 0px;} +.nf_freepro_title p{height:64px;line-height:64px;font-size:25px;font-weight:700px;color:#F03;text-align:center;padding:12px;} +.nf_freeprol{overflow:auto;height:160px;clear:both;} +.nf_freeprol span{padding:0px;} +.nf_frddcontr{width:630px;float:right;overflow:hidden;} +.nf_freetitler{background:#FFE8E8;color:#268CFF;} +.nf_freepror{width:634px;height:146px;overflow:auto;background:#fff; margin:0px;} +.nf_freepror ul{} +.nf_freemoney1,.nf_freemoney2{width:379px;height:160px;overflow:hidden;display:block;} + +.nf_freemoney{border-top:1px solid #dddddd; background:#f9f5f2; padding:4px 4px 0px 4px;overflow:hidden;} +.nf_freemoney p{width:400px; float:left; padding:4px;} +.nf_freemoney a{width:160px; float:left;} +.even{background:#fff3e8;} +.odd{background:#FFF;} +.mouseover{background:#fce294;font-size:15px;color:red;} +.selected{background:#fce294;color:red;font-size:14px;} +.nf_freesearch .nf_freeseachc li, .nf_freemoney2 .nf_freemoney21 p{float:left;} +.ll_img{border:2px solid #a57e43;border-right:none;padding:12px 0px 12px 12px; background:url(../images/ll_bg.gif) no-repeat right bottom #fbf5ed;} +*html .ll_img{ background:url(../images/ll_bgie6.gif) no-repeat right bottom #fbf5ed;} +.ll_imgsun{border:2px solid #a57e43;padding:12px 0px 12px 12px; background-color:#fbf5ed;} +.ll_r_top{border:2px solid #a57e43;border-left:none;margin:0px; background:#fbf5ed; padding:6px 6px 6px 0px;} +.ll_r_bottom{padding:0px;width:640px;border:1px solid #dddddd;margin:0px 0px 0px 0px;} +.nf_freemoney11{} +.nf_freemoney11 span{color:red;padding:0 12px; font-weight:bold; font-size:14px;} + +/*-------相册------*/ + .rollBox img{border:none;} + .rollBox{width:330px;overflow:hidden;margin:0px;} + .rollBox .Cont{width:306px;overflow:hidden;padding:0px;margin:6px 0px 0px 0px;} + .rollBox .ScrCont{width:10000000px;} + .rollBox .Cont .pic{width:51px;float:left;text-align:center;} + .rollBox .Cont .pic img{padding:2px;background:#fff;display:block;margin:0px; height:45px; width:45px;} + .rollBox .Cont .pic p{line-height:26px;color:#505050;} + .rollBox .Cont a:link,.rollBox .Cont a:visited{color:#626466;text-decoration:none;border:1px solid #eee;width:49px;height:49px;display:block;} + .rollBox .Cont a:hover{color:#f00;text-decoration:underline;border:1px solid #fb8800;width:49px;height:49px;display:block;} + .rollBox #List1,.rollBox #List2{float:left;} + .img1,.img2,.Cont{float:left;} + .img1,.img2{width:10px; height:52px;display:block;cursor:pointer;margin:6px 0px 0px 0px;} + .img1{background:url(../images/pic_btn_l.gif) no-repeat;} + .img2{background:url(../images/pic_btn_r.gif) no-repeat;} + +.cloud-zoom-lens {background-color:#fff;cursor:move;} +.cloud-zoom-title {font-family:Arial, Helvetica, sans-serif;position:absolute !important;background-color:#000; color:#fff; padding:0px; width:100%; text-align:center; font-weight:bold;font-size:10px; top:0px;} +.cloud-zoom-big {border:4px solid #fff;overflow:hidden;} +.cloud-zoom-loading {color:#fff;padding:0px;border:0px; position:absolute;} + +/*用户中心查看站内信*/ +.msg_cont{color:#804F21;padding:10px;line-height:22px; height:260px;overflow:hidden;} +/*back to top*/ +.backToTop{display:none; width:50px;height:55px; padding:0px;background:url(../images/btntop.gif) no-repeat top left #fff; color:#fff; font-size:12px; position:fixed; _position:absolute; right:10px; bottom:10px; +cursor:pointer;filter:alpha(opacity=80);opacity:0.8;_bottom:auto;} +/*问卷调查*/ +.option_view{padding:50px 150px;line-height:30px;} +.option_view p{border:1px solid #E1C9A5;border-top:none;} +.option_view p strong{color:#804F21;} +/*字体颜色*/ +.red{color:#ea5404;} +.red a:link{color:#ea5404;} +.red a:visited{color:#ea5404;} +.green{color:#ea5404;} +/*--上传图片--*/ +.flashimgsize{} +.flashimgsize img{width:74px;height:80px;} + +/*--报错--*/ +.error_cont{position:relative; padding:0px 0px 20px 0px;} +.error_box{background:#fff;padding:12px;text-align:left;height:180px;width:900px; padding:20px;margin:20px 0px 0px 40px; line-height:40px; font-family:"微软雅黑"} +.error_tj{background:#fff;padding:12px;text-align:left;width:900px; padding:20px; border:1px solid #eee;margin:20px 0px 0px 40px; line-height:22px; font-family:"微软雅黑"} +.error_tj .title{border-bottom:1px solid #eee;margin:auto; line-height:20px; font-family:"微软雅黑"; font-weight:bold;height:22px;font-size:14px} +.error_tj .title span{border-bottom:2px solid #1b6147;height:22px; display:block;width:150px;} + + +.error_box h2{font-size:35px;color:#7c7c7c; padding:50px 0px 0px 0px;margin:0px;} +.error_box a{font-size:25px;color:#0000cc;text-decoration:underline} +.error_box a:hover{ text-decoration:none} +.error_box p{font-size:22px;} +#totalSecond{font-size:30px;font-weight:bold;color:red;} +.error_box img{float:left;margin-right:20px;} + +.left-arrow,.fl-pic,.right-arrow{ + float:left; + display:inline; + margin:10px 0px 0px 0px; +} + +.left-arrow,.right-arrow{ + } + +.left-arrow{ + background:url(/images/404_03.jpg) no-repeat top left; + margin-left:15px;margin-top:90px;} + +.right-arrow{ + background:url(/images/404_05.jpg) no-repeat top left; + margin-right:0;margin-top:90px;} + + +.fl-pic{ + overflow: hidden; + width:800px; + height:250px; + white-space:nowrap; + } + +.fl-pic ul{ + width:3500px; + } + +.fl-pic ul li{ + float:left; + display:inline; + margin:0px 12px 0px 0px; + width:800px; + height:220px; + } + +.fl-pic ul li .pic-box{ + float:left; + display:inline; + margin:0px 8px 0px 0px; + width:150px; + height:220px; + text-align:center; + } + +.left-arrow a,.right-arrow a{ + width:15px; + height:23px; + display:block; + text-indent:-9999px; + } + + .friend-Link{position:relative; margin:0px; width:900px;height:280px;} + .tj_title{font-size:12px; width: 150px;height:28px; overflow:hidden} + .tj_title a{font-size:12px;color:#606060;} + .tj_price{color: #ea5404;font-family:"微软雅黑";font-size: 16px;line-height: 20px;margin: auto;padding: 0px;text-align: left;width: 150px;height:22px;} + .tj_price font{color: #999;font-family:"微软雅黑";font-size: 12px; text-decoration: line-through; padding:0px 0px 0px 6px;} + .tj_shop_btn{text-align:left;width:150px;margin:auto;height:20px; } + .tj_shop_btn span{float:left;padding-right:4px;} + .error_tj{height:290px;} + + +/*--企业客户--*/ +.uinput{border:1px solid #e4d2b6;background-color:#fff;padding:0 0 10px 0;} +.uinput_toppic{text-align:center;padding:20px 0;} +.uinput_info{ background:url(../images/uinputline.gif) no-repeat center top;width:715px;margin:0 auto;padding:20px 100px;line-height:22px;} +.uinput_reg{text-align:right;} +.uinput_reg a{ text-decoration:underline;} +.uinput_reg a:visited{ text-decoration:underline;} +.uinput_caigou{width:916px;margin:0 auto;} +.uinput_cgt{ background:url(../images/uinputt01.gif) no-repeat;width:916px;height:40px;} +.uinput_cgc{border:1px solid #ebebeb;border-top:0; background:url(../images/uinputbg01.gif) repeat-x #fefbed;padding:20px 0 20px 0;} +.uinput_form{overflow:hidden;margin-top:8px;} +.uinput_form2{overflow:hidden;width:340px;height:25px;margin-top:8px;} +.uinput_formlabel{float:left;width:260px;text-align:right;padding:4px 6px 0 5px;*padding:8px 6px 0 5px;height:16px;color:#176246;} +.uinput_formlabel2{float:left;width:120px;text-align:right;padding:4px 6px 0 5px;*padding:8px 6px 0 5px;height:16px;color:#176246;} +.uinput_forminput{zoom:1;overflow:hidden;float:left;} +.uinput_ipt{width:180px;font-size:12px;padding:1px 2px;height:20px;line-height:20px;border:1px solid #dadada;overflow:hidden;} +.uinput_txt{width:300px;font-size:12px;padding:1px 2px;height:100px;line-height:20px;border:1px solid #dadada;resize:none;} +.uinput_yan{width:60px;font-size:12px;padding:1px 2px;height:20px;line-height:20px;border:1px solid #dadada;overflow:hidden;} +.uinput_btn{ background:url(../images/btn_bg.jpg) repeat-x bottom #007e55;width:70px;height:21px;line-height:21px;overflow:hidden;text-align:center;border:0;color:#FFF;} +.uinput_btn2{ background:url(../images/btn_bg.jpg) repeat-x bottom #007e55;width:157px;height:21px;line-height:21px;overflow:hidden;text-align:center;border:0;color:#FFF;} +.reg_msg{float:left;} + +/*--企业用户注册--*/ +.uregister{width:800px;margin:0 auto;} +.uregister_t01{ background:url(../images/uinputt02.gif) no-repeat;width:800px;height:38px;} +.uregister_t02{ background:url(../images/uinputt03.gif) no-repeat;width:800px;height:38px;} +.uregister_t03{ background:url(../images/uinputt04.gif) no-repeat;width:800px;height:38px;} +.uregister_c{background-color:#fdfaf5; padding:20px 0;} +.uregister_c2{background-color:#fdfaf5; padding:20px 10px 20px 60px ;} +.fl{float:left;} +.fr{float:right;} +.uinput_yes{text-align:center;margin:20px 0 0 0;} +.uregister .agreement {background:#FFFFFF;border: 1px solid #EEEEEE;display: block;height: 80px;line-height: 20px;margin: auto;overflow: auto;padding: 12px;width: 700px;margin-top:10px;} +.uregister .agreement h4{text-align:center;font-size:14px;} + +/*--在注册页登录--*/ +.reg_login{text-align:right;color:#804F21;padding:0 20px 0 0;} + +/*注册页input样式*/ +.input_on{border:1px solid #999;background-color:#FFFFCC;} +.input_on2{background-color:#FFFFCC;} +.input_on3{border:1px solid #999;height:18px;line-height:18px; padding:0px;width:49px;} +.input_on4{border:1px solid #999;height:18px;line-height:18px; padding:0px;width:49px;background-color:#FFFFCC;} + + +/*---健康饮食---*/ +.h_hotpic{width:700px;height:330px;left:0px} +.h_hotpic ul{height:330px; } +.h_hotpic ul li {width:700px; height:330px; } +.h_hotpic .btnBg {width:700px; height:20px; left:0; bottom:0;} +.h_hotpic .btn {width:614px; height:10px; padding:0px 14px 14px 0px; right:0; bottom:0;} +.h_leftbox{width:700px;} +.h_sub{width:295px;} +.h_box{padding:5px 0 0 0;height:247px;overflow:hidden;} +.h_title2 {background: url("../images/titlebg01.gif") repeat-y scroll left top transparent;color: #804F21;font-weight: bold;height: 34px;line-height: 31px;overflow: hidden;text-indent:15px;color:#906a2b;font-size:14px;font-weight:bold;} +.h_content{border:1px solid #a5c56b;border-top:0; background:url(../images/h_contbg01.gif) repeat-x left bottom;height:287px;padding:8px 0 0 0;} +.h_content ul li{height:23px;line-height:23px;overflow:hidden;padding:0px 10px 0 25px; background:url(../images/h_dot01.gif) no-repeat 10px 8px;} +.h_buttons{width:323px;border:1px solid #a5c56b;margin-left:5px;height:232px;overflow:hidden;padding:8px 0 0 0;background:url(../images/h_contbg01.gif) repeat-x left bottom;display:inline;} +.h_buttons ul li{float:left;padding:5px 0px 0px 10px;height:50px;overflow:hidden;} +.h_mababy{width:362px;border:1px solid #a5c56b;margin-left:5px;height:240px;overflow:hidden;display:inline;background:url(../images/h_contbg01.gif) repeat-x left bottom;} +.h_mababylist{padding:5px 6px 0 8px;} +.h_mababylist li{line-height:26px;height:26px;overflow:hidden;} +.h_mababylist li strong{font-size:14px;margin-right:8px;} +.h_oldyoung{width:278px;margin-left:5px;border:1px solid #a5c56b; background:url(../images/h_contbg01.gif) repeat-x left bottom;height:240px;overflow:hidden;padding:0 5px;} +.h_oldyoungcont{padding:5px 0 0 0;margin:0;overflow:hidden;width:278px;} +.h_oldyoungcont dt{width:120px;} +.h_oldyoungcont dd{overflow:hidden;zoom:1;margin:0;padding:0;height:18px;line-height:18px;} +.h_borderbtm{border-bottom:1px solid #c8e299;} +.h_oldyoungcont dd.h_oldyoungt{font-size:14px;font-weight:bold;padding:5px 0;} +.h_banner{margin-top:5px;} +.h_food{border:1px solid #a5c56b;background-color:#fff;margin-top:5px;} +.h_foodtit{ background: url(../images/titlebg03.gif) no-repeat;height:28px;} +.h_foodtit2{ background: url(../images/titlebg02.gif) no-repeat;height:28px;} +.h_foodcont{padding:5px 0;height:282px;overflow:hidden;} +.h_foodbaoj{width:303px;border:1px solid #a5c56b;margin-left:5px;display:inline;padding:0 10px 10px 10px;height:270px;background:url(../images/h_contbg01.gif) repeat-x left bottom;} +.h_foodcat,.h_foodcat dt,.h_foodcat dd{padding:0;margin:0;} +.h_foodcat dt{font-size:14px;font-weight:bold;color:#804f21;} +.h_pad1 dt{padding:10px 0;} +.h_pad3 dt{padding:10px 0;height:22px;line-height:22px;} +.h_pad2 dt{padding:18px 0 12px 0;} +.h_foodcat dd{float:left;width:75px;height:18px;line-height:18px;overflow:hidden;} +.h_foodpwd{width:362px;border:1px solid #a5c56b;margin-left:5px;display:inline;background:url(../images/h_contbg01.gif) repeat-x left bottom;height:280px;} +.h_foodpwdlist{padding:0 10px;height:126px;} +.h_weiyulu{width:288px;margin-left:5px;display:inline;height:280px;border:1px solid #a5c56b; background:url(../images/h_contbg01.gif) repeat-x left bottom;} +.h_weiyululist{padding:0 10px;height:125px;} +.h_wlist li{height:18px;line-height:18px;overflow:hidden;} +.h_wtext{border:1px solid #c8d0bd;width:260px;height:110px;resize:none;font-size:12px;padding:2px;color:#333;} +.h_winput{padding:5px 0 0 0;} +.h_pwdtt{padding:0 10px 0 0;} +.h_fabu{ background:url(../images/h_fabu.gif) no-repeat;width:52px;height:21px;float:right;border:0;margin:0 10px 0 0;display:inline;} +.h_schin{width:166px; background:url(../images/h_searchbg.gif) repeat-x left top;height:18px;padding:1px 2px;font-size:12px;overflow:hidden;border:1px solid #cf6e0d;float:left;} +.h_schbtn{background:url(../images/h_schbtn.gif) no-repeat;height:22px;width:52px;border:0;float:left;text-align:center;color:#FFF;line-height:22px;font-size:12px;font-weight:bold;overflow:hidden;} +.h_weiyululist2{padding:0 10px;} +.h_weiyulucont{padding:5px 0 0 0;margin:0;overflow:hidden;height:113px;} +.h_weiyulucont dt{width:120px;} +.h_weiyulucont dd{overflow:hidden;zoom:1;margin:0;padding:0;} +.h_weiyulucont dd.h_oldyoungt{font-size:14px;font-weight:bold;margin:5px 0;height:20px;line-height:20px;} +.h_des{height:72px;line-height:18px; text-indent:24px;} + + +/*---美食厨房Food kitchen ----*/ +.fk_top5{margin-top:5px;} +.fk_c{color:#804f21;} +.fk_c a:link{color:#804f21;} +.fk_c a:visited{color:#804f21;} +.fk_c a:hover{color:#fb8800;text-decoration:none} +.fk_corange{color:#fb8800;} +.fk_left{width:600px;} +.fk_right{width:395px;overflow:hidden;} +.fk_title{font-size:18px;font-weight:bold;font-family:"微软雅黑";color:#fa951d;text-indent:6px;} +.fk_cattitle{ background:url(../images/fk_titlebg01.gif) no-repeat;height:34px;line-height:34px;color:#633d2b; font-family:"宋体";} +.fk_t{font-size:14px;font-weight:bold;padding:0 0 0 10px;} +.fk_more{text-align:right;margin:0 0 0 250px;} +.fk_vblist{border:1px solid #f8dfc8;border-top:0;padding:0 10px;height:190px;} +.fk_vblist li{ background:url(../images/fk_dot.gif) repeat-x left bottom;padding:5px 0 0 0;height:24px;line-height:24px; overflow:hidden;} +.fk_vblist a{float:left;display:block;width:290px;overflow:hidden;height:24px;padding:0 10px 0 0;} +.fk_vblist span{display:block;overflow:hidden;zoom:1;} +.fk_peiliao{height:158px;border:1px solid #f8dfc8;margin-top:5px;padding:10px;color:#804f21;} +.fk_pl{width:175px; background:url(../images/fk_dot2.gif) repeat-y right top;margin:0;padding:0;overflow:hidden;height:158px;overflow:hidden;line-height:16px;} +.fk_pl dt{float:left;font-weight:bold;} +.fk_pl dd{zoom:1;overflow:hidden;} +.fk_gongyi{ background:url(../images/fk_shalou.gif) no-repeat 20px bottom;height:58px;width:115px;font-weight:bold;padding:20px 0 0 60px;} +.fk_operate{padding:5px;} +.fk_operate li{float:left;padding:5px 0 5px 5px;width:190px;} +.fk_opintro{height:60px;overflow:hidden;padding:5px;font-family:"宋体";line-height:16px;} +.fk_jpcont{border:1px solid #f8dfc8;border-top:0;padding:10px;height:360px;overflow:hidden;} + +.fk_jplist {height: 125px;} +.fk_jpcatname{font-size:14px;color:#804f21;padding:0 0 5px 0;} +.fk_jplist ul {float: left;} +.fk_jplist ul li {height: 90px;overflow: hidden;width: 90px;margin-right:5px;display:inline;float:left;} +.fk_jplist ul li img {width:88px;height:88px;overflow:hidden;} +.fk_imgb{display:block;width:88px;height:88px;border:1px solid #fccda1;} +.fk_imgb:hover{border:1px solid #fb8800;} +.fk_jplist .scrollBox {height: 90px;margin: 0 auto;overflow: hidden;width: 371px;} +.fk_jplist .scrollBox .Cont {margin: 0 13px 0 17px;overflow: hidden;width: 285px;} +.fk_jplist .scrollBox .ScrCont {width: 1000px;} +.fk_prev,.fk_next{cursor:pointer;} +.fk_prev{width:28px;height:90px;display:block; background:url(../images/fk_btnleft02.gif) no-repeat;} +.fk_prev:hover{background:url(../images/fk_btnleft01.gif) no-repeat;} +.fk_next{width:28px;height:90px;display:block; background:url(../images/fk_btnright02.gif) no-repeat;} +.fk_next:hover{background:url(../images/fk_btnright01.gif) no-repeat;} + +.fk_vediotitle{ background:url(../images/fk_titlebg02.gif) no-repeat;height:29px;} +.fk_vediotitle2{ background:url(../images/fk_titlebg03.gif) no-repeat;height:29px;} +.fk_vediocont{border:1px solid #f8dfc8;border-top:0;padding:10px 34px;height:130px;} +.fk_vediocont li{width:180px;height:130px;overflow:hidden;margin-right:4px;display:inline;float:left;} +.fk_vediocont li img{width:178px;height:128px;overflow:hidden;} +.fk_aborder{display:block;width:178px;height:128px;border:1px solid #FFF;} +.fk_aborder:hover{border:1px solid #d96e09;} + +.fk_vediolistcont{border:1px solid #f8dfc8;border-top:0;padding:10px 50px;} +.fk_vediolistcont li{width:182px;height:200px;float:left;padding:10px 20px;overflow:hidden;} +.fk_vediolistcont li img{width:180px;height:130px;overflow:hidden;} +.fk_aborder2{display:block;width:180px;height:130px;border:1px solid #FFF;} +.fk_aborder2:hover{border:1px solid #d96e09;} +.fk_vtxt{padding:10px 0;line-height:18px;color:#804f21;} +.fk_vc{height:16px;overflow:hidden;color:#804f21;} +.fk_vtime{text-align:right;color:#804f21;} +.fk_vt{color:#804f21;height:16px;overflow:hidden;} +.fk_vt a:link{ text-decoration:underline;} +.fk_vt a:visited{ text-decoration:underline;} +.fk_vt a:hover{ color:#d96e09;text-decoration:underline;} + +/*--雅扑会--*/ +.yuptitle{ background:url(../images/yupnavbg.jpg) repeat-y; height:80px; border:#5c5c5c 1px solid; line-height:20px; overflow:hidden;} +.yuptitle img{float:left;} +.yup_attitude{background:url(../images/yuptitle1.jpg) no-repeat 55px 13px; float:left; padding:23px 0 0 137px; height:50px; } +.yuptitle ul{width:125px;} +.yuptitle li{float:left; width:62px;} +.yuptitle a:link{color:#fffefe; text-decoration:none;} +.yuptitle a:visited{color:#fffefe; text-decoration:none;} +.yuptitle a:hover{color:#eed4a4; text-decoration:none;} +.yup_shijie{background:url(../images/yuptitle2.jpg) no-repeat 40px 13px; float:left; padding:23px 0 0 120px; height:50px; } +.yup_horizon{background:url(../images/yuptitle3.jpg) no-repeat 40px 13px; float:left; padding:23px 0 0 120px; height:50px; } +.yup_flashmid{height:440px; padding:5px 0 0 0; background-color:#EBEBEB; overflow:hidden;} +.yup_flashmid1{height:440px; padding:4px 0 0 0;background:url(../images/yupbg.jpg) repeat-x top #ebebeb; overflow:hidden;} +.yup_hot{width:308px;height:438px;left:0px; float:left;border:#5c5c5c 1px solid;} +.yup_hot ul{height:380px; } +.yup_hot ul li {width:308px; height:450px; } +.yup_hot .btnBg {width:308px; height:20px; left:0; bottom:0;} +.yup_hot .btn {width:300px; height:10px; padding:0px 14px 14px 0px; right:0; bottom:0;} +.yup_flash{float:left;} +.yup_flashright{float:right; width:683px;border:#5c5c5c 1px solid; height:438px;} +.yup_flashright1{width:382px;border-right:#5c5c5c 1px solid; float:left;} +.yup_flashright2{width:300px;float:right;} +.yup_horizontitle{background:url(../images/yuptitlebg.jpg) repeat-x; height:34px; border-right:#303030 1px solid; line-height:34px; padding-right:9px;} +.yup_horizontitle img{float:left;} +.yup_more{float:right;} +.yup_more a:link{color:#b9b9b9; text-decoration:none;} +.yup_more a:visited{color:#b9b9b9; text-decoration:none;} +.yup_more a:hover{color:#eed4a4; text-decoration:none;} +.yup_horizoncon{background:url(../images/yupcontentbg1.jpg) repeat-x top; height:221px;border-bottom:#5c5c5c 1px solid; padding:25px 10px 25px 23px; overflow:hidden;} +.yup_contitle1{font-size:16px; font-weight:bold; text-align:center; height:19px; overflow:hidden;} +.yup_horizoncon a:link{color:#dfdfdf; text-decoration:none;} +.yup_horizoncon a:visited{color:#dfdfdf; text-decoration:none;} +.yup_horizoncon a:hover{color:#0091da; text-decoration:none;} +.yup_contitle1 a:link{color:#dfdfdf; text-decoration:none;} +.yup_contitle1 a:visited{color:#dfdfdf; text-decoration:none;} +.yup_contitle1 a:hover{color:#0091da; text-decoration:none;} +.yup_conlist{margin-top:22px; line-height:20px;} +.yup_conlist li{float:left; width:170px; height:20px; overflow:hidden; font-size:14px; margin:0 0 7px 0; overflow:hidden;} +.yup_contitle2{font-size:16px; font-weight:bold; text-align:center; margin-top:35px; _margin-top:20px; height:19px; overflow:hidden;} +.yup_weeklytitle{background:url(../images/yuptitlebg.jpg) repeat-x; height:34px; line-height:34px; overflow:hidden;} +.yup_weeklycon{background:url(../images/yupcontentbg1.jpg) repeat-x top; height:251px;border-bottom:#5c5c5c 1px solid;overflow:hidden; padding:10px 0 10px 10px;} +.yup_weeklycon img{margin-right:10px; float:left;} +.yup_weeklylist{line-height:20px; margin-top:8px;} +.yup_weeklylist li{height:60px; overflow:hidden; width:270px;} +.yup_weeklylist a:link{color:#ffffff; text-decoration:none;} +.yup_weeklylist a:visited{color:#ffffff; text-decoration:none;} +.yup_weeklylist a:hover{color:#ee7800; text-decoration:none;} +.yup_flash1{background:url(../images/yupcontentbg2.jpg) repeat-x top; height:132px; _height:135px; _margin-top:-2px;} +.yup_content{padding:5px 0 0 0; background-color:#ebebeb; width:1000px;} +.yup_contentleft{width:308px;border:#d4d4d4 1px solid;background:url(../images/yupcontentbg.jpg) repeat; height:702px; overflow:hidden;} +.yup_con{} +.yup_con1{padding:13px 10px; height:197px;border-bottom:#d4d4d4 1px solid;} +.yup_con2{padding:13px 10px; height:190px;} +.yup_conpic1{margin-top:15px;} +.yup_conpic1 img{width:288px; height:150px; overflow:hidden;} +.yup_contentright{width:683px;border:#d4d4d4 1px solid;background:url(../images/yupcontentbg.jpg) repeat;height:400px; overflow:hidden;} +.yup_contentright1{width:685px; height:704px; overflow:hidden;} +.yup_shijiecon{padding:10px;} +.yup_shijiecon1{width:180px; padding:18px 15px 0 0; overflow:hidden; height:158px;} +.yup_shijietitle{font-size:14px; font-weight:bold; height:16px; overflow:hidden} +.yup_shijietitle a:link{color:#000000; text-decoration:none;} +.yup_shijietitle a:visited{color:#000000; text-decoration:none;} +.yup_shijietitle a:hover{color:#0091da; text-decoration:none;} +.yup_content1{width:382px; float:left;} +.yup_content2{width:301px;float:right;} +.yup_people{background:url(../images/yuptitlebg.jpg) repeat-x; height:34px; line-height:34px; overflow:hidden; border-left:#8b8b8b; padding-right:9px;} +.yup_shijiecon2{line-height:20px; margin-top:14px; color:#535353; height:80px; overflow:hidden;} +.yup_info{margin:10px 0px 0 0px; float:right;} +.yup_info a:link{color:#0091da; text-decoration:none;} +.yup_info a:visited{color:#0091da; text-decoration:none;} +.yup_info a:hover{color:#0091da; text-decoration:underline;} +.yup_shijiecon3{margin-top:25px;} +.yup_peoplecon{border-left:#d4d4d4 1px solid; padding:10px 15px 10px 10px; height:207px;} +.yup_peoplecon1{width:115px; margin-top:18px;} +.yup_peoplelist{margin-top:10px; line-height:20px; color:#010101;} +.yup_peoplelist li{color:#010101; width:260px; height:20px; overflow:hidden;} +.yup_peoplelist a:link{color:#535353;} +.yup_peoplelist a:visited{color:#535353;} +.yup_peoplelist a:hover{color:#0091da;} +.yup_zhuanlan{border-left:#d4d4d4 1px solid; padding:10px; height:85px; overflow:hidden;} +.yup_pic{margin:5px 0; height:108px;} +.yup_pic img{width:685px; height:108px; overflow:hidden;} +.yup_news{border:#d4d4d4 1px solid;} +.yup_news a:hover{color:#e28731; text-decoration:none;} +.yup_newscon{padding:10px 0 10px 5px; height:128px; background-color:#ffffff; font-weight:bold; text-align:center; overflow:hidden;} +.yup_newscon div{float:left; width:112px; overflow:hidden; line-height:30px;} +.yup_newscon img{border:#d4d4d4 1px solid;} +.spacing_top{ padding:6px 0 0 0;} +.sell_list{ margin:5px 12px 0 16px;width:575px; float:left;display:inline;overflow:hidden; height:110px; } +.sell_list li{ width:110px; height:110px; overflow:hidden;display:inline; text-align:center; float:left; margin-right:5px; } +.sell_list li img{ width:110px; height:110px; overflow:hidden; display:block;} +.yupleftBtn{margin-left:9px;margin-top:24px;float:left;display:inline;width:32px;height:66px;overflow:hidden; background:url(../images/yupbtn6.jpg) no-repeat;} +.yupleftBtn:hover{background:url(../images/yupbtn1.jpg) no-repeat;} +.yuprightBtn{margin-right:7px;margin-top:24px;float:right;display:inline;width:32px;height:66px;overflow:hidden;background:url(../images/yupbtn2.jpg) no-repeat;} +.yuprightBtn:hover{background:url(../images/yupbtn5.jpg) no-repeat;} +.yup_banner{height:90px;font-sizd:0px;clear:both;margin:0px;padding:5px 0px 0px 0px; background-color:#ebebeb;} +.yup_banner img{width:1000px; height:90px;} +.yup_flashright1new{width:383px; float:left;} + +/*--雅扑会列表页--*/ +.yupbody1{background:url(../images/yupbg.jpg) repeat-x 0 -444px #ebebeb;} +.yup_horizon1{background:url(../images/yuptitle3.jpg) no-repeat 30px 13px; float:left; padding:23px 0 0 110px; height:50px; } +.yup_titleon a:link{color:#eed4a4;} +.yup_titleon a:visited{color:#eed4a4;} +.yup_artleft{width:308px;border:#d4d4d4 1px solid;background:url(../images/yupcontentbg.jpg) repeat; height:588px; overflow:hidden;} +.yup_con3{padding:13px 10px; height:160px;border-bottom:#d4d4d4 1px solid;} +.yup_con4{padding:13px 10px; height:150px;} +.yup_artright{border:#d4d4d4 1px solid;background:url(../images/yupcontentbg.jpg) repeat; width:683px; overflow:hidden;} +.yup_artcon{padding:0 15px;} +.yup_artlist{border-bottom:#d5d5d5 1px solid; padding:18px 13px; height:90px; overflow:hidden;} +.yup_artlistcon{width:526px; line-height:20px; color:#535353;} +.yup_artlistcon .yup_c1{height:20px; overflow:hidden;} +.yup_c1 a{color:#000000; text-decoration:none;} +.yup_c1 a:hover{color:#804f21; text-decoration:none;} +.yup_c2 a{color:#535353; text-decoration:none;} +.yup_c2 a:hover{color:#804f21; text-decoration:none;} +.yup_artlistcon1{margin-top:3px; height:40px; overflow:hidden; text-indent:24px;} +.yup_arttime{float:right; margin:5px 15px 0 0; display:inline;} +.yup_page{text-align:center; padding:25px 0 25px 190px; height:23px; overflow:hidden;} +.yup_page img{float:left;} +.yup_pageon{background:url(../images/yup_pagebg.jpg) no-repeat; font-weight:bold; width:22px; height:23px; line-height:23px; display:block; float:left; overflow:hidden;} +.yup_pageoff{background:url(../images/yup_pagebg1.jpg) no-repeat; width:22px; height:23px; line-height:23px; display:block; float:left; overflow:hidden;} +.yup_page a{margin:0 3px;color:#535353; text-decoration:none;} +.yup_page a:hover{color:#535353; text-decoration:none;} +.yup_peopletitle{text-align:center; color:#000000; font-size:20px; font-weight:bold; padding:25px 20px 10px 20px; line-height:20px; overflow:hidden;border-bottom:#d5d5d5 1px solid;} +.yup_auther{color:#535353; text-align:center; padding:15px 0;} +.yup_yupcon{padding:10px; color:#535353; line-height:24px;} +.yup_yupcon p{line-height:20px; text-indent:26px; padding:5px 0; font-size:14px;} +.yup_weeklyhot{width:120px; height:145px; float:left; overflow:hidden; background:url(../images/yuppic12.jpg) no-repeat; padding:15px 5px 20px 5px; line-height:20px; text-align:center;} +.yup_c3{color:#ee7800; font-weight:bold;} +.yup_c4{color:#804F21;} +/*优选基金右侧标题bg*/ +.yx_title3{background:#ddc297;height:35px;text-align:center;color:#814e23; font-weight:bold} +.jjbl_style{width:95%; margin:4px 0px 0px 6px} +.jjbl_style td{text-align:center; padding:6px; border:1px solid #eeeeee; background:#fbecd5;} +.jjbl_title{} +.jjbl_title td{font-weight:bold;} + +/*快递单查询*/ +.sfbg{background:url(../images/searchboxbox_bg.jpg) repeat-y left #f7e7cd;padding:0px; margin:0px; } +.sfsearchbox{width:523px;} +.sfsearchbox from{padding:0px; margin:0px; } +.sfsinput{background:url(../images/sfsearchbg.jpg) no-repeat top left;width:523px;height:130px;} +.sfsinput .top{height:50px;} +.sfsinput .top p{float:right;width:300px;display:block;padding:0px 6px 0px 0px; margin:26px 0px 0px 0px; text-align:right;} +.sfsinput .bottom{padding:11px 0px 0px 12px;} +.sfsinput .bottom .inputtext{height:30px; padding:0px 0px 0px 120px;line-height:30px; font:14px; color:#b2b2b2; vertical-align:bottom;width:360px;margin-right:5px;border:none; background:none;} +.sfsinput .bottom .inputbutton{ background:url(../images/sfsearchbutton.jpg) no-repeat top left; border:none;width:105px;height:35px;cursor: pointer; vertical-align:bottom; margin:2px 0px 0px 0px;} +.sfsinput .text{padding:12px 12px 6px 12px;} +.sfsearchbox .sftext{padding:0px;margin:0px;border:1px solid #d1aa71; text-align:left; padding:12px; background:#fdfaf5; line-height:20px;} + +.sfsearch{border:3px solid #b2864f;width:523px; background:#fff; position:absolute;padding:0px;clear:both;float:left;margin-top:-0px;#margin-top:-60px;_margin-top:-60px;} +.sfsearchbox #connect{} + +/*我的积分*/ +.myjifen{padding:12px;margin-top:10px;line-height:20px;border:1px solid #dadada;background-color:#f5f5f5;} +.myjifen a{ text-decoration:underline;} +/*账户信息*/ +.usermodify{margin: 0 0 0 200px;color: #FFFFFF;} +.usermodify a{background: url(../images/btn_bg.jpg) repeat-x bottom;color: #FFFFFF;font-size: 12px;line-height: 20px;padding:2px 5px;} +.usermodify a:hover{color: #FFFFFF;background:url(../images/productinfo.png) no-repeat 0 -124px;} +.usermodify a:visited{color: #FFFFFF;} +.usermodify2{color: #FFFFFF;} +.usermodify2 a{background:#69af05;color: #FFFFFF;font-size: 12px;line-height: 20px;padding:2px 5px;} +.usermodify2 a:hover{color: #FFFFFF;background:url(../images/productinfo.png) no-repeat 0 -124px;} +.usermodify2 a:visited{color: #FFFFFF;} + +/*专题*/ + +.zplist{padding:8px 0px 0px 8px;_padding:8px 0px 0px 0px;margin:0px; height:100%; border:1px solid #eee;} +.zplist ul li{margin:0px;float:left;list-style:none; padding:0px;} +.zplist ul li .pic{} +.zplist ul li .pic a{display:block;margin:0 auto;padding:0px;} +.zplist ul li .pic a:hover{padding:0px} +.zplist ul li span{padding:0px 0px 12px 0px;} +.zplist ul li .isp{} +.zplist ul li p{text-align:center; color:#999999;margin:0px; overflow:hidden;height:30px;line-height:15px;padding:4px 12px 0px 12px;} +.zplist ul li p a{display:block; clear:both; color:#565656; text-decoration:none;margin:auto; padding:0px;font-size:13px;} +.zplist ul li p a:hover{text-decoration:underline; color:#6b6b6b;} +.zplist ul li div {text-align:center; color:#999999;} +.zplist ul li div span{color:#875b34;font-size:13px; font-family:Arial;} +.zplist ul li p.sline{height:20px; line-height:20px;overflow:hidden;} +.zplist ul li div.pricecur{height:20px; line-height:20px;} +.zplist ul li div.priceonly{margin-top:15px;} +.zplist .fontcolor{color:#565656} +.sline{text-decoration: line-through; font-family:"宋体"} +.sline span b{font-weight:normal} + +.zt3 ul li{width:327px; height:390px;} +.zt3 ul li .pic a{width:300px;height:300px; position:relative} +.zt3 ul li .pic a:hover{height:300px;} +.zt3 ul li .pic a span{top:0px;left:0px;} +.zt3 ul li .pic img{width:300px; height:300px;} + +.zt4 ul li{width:234px;height:318px;margin:0px 6px 0px 6px;padding:8px 0px 0px 0px;} +.zt4 ul li .pic a{width:210px;height:210px; position:relative} +.zt4 ul li .pic a:hover{height:210px;} +.zt4 ul li .pic a span{top:0px;left:0px;} +.zt4 ul li .pic img{width:210px; height:210px;} + +.zt5 ul li{width:182px; height:260px;margin:0px 8px 0px 8px;padding:8px 0px 0px 0px;} +.zt5 ul li .pic a{width:150px;height:150px; position:relative} +.zt5 ul li .pic a:hover{height:150px;} +.zt5 ul li .pic a span{top:0px;left:0px;} +.zt5 ul li .pic img{width:150px; height:150px;} + +.zp5 ul li{width:150px; height:140px;} +.zp5 ul li .pic a{width:110px;height:110px;} +.zp5 ul li .pic a:hover{height:110px;} +.zp5 ul li .pic img{width:110px; height:110px;} +.zpbutton{ padding:12px;} + +input.submit{font-size:12px; background:#1b6147;color:#fff;margin:0px;height:22px; line-height:22px; cursor:pointer;border:none;} + +/*首页新焦点图*/ +#slidecont{width:635px;z-index:0;float:left;margin-left:5px;display:inline;height:342px;position:relative;} +#slideimg{width:635px;margin:0px auto;height:342px;overflow:hidden;z-index:-1;} +#slidebtn{bottom: 6px;height: 23px;padding: 0 8px 0 10px;position: absolute;right: 0;z-index:2;} +#slidebtn a{float:left;background-color: #FFFFFF;display: block;height: 24px;line-height: 24px;margin-left: 5px;text-align: center;width: 25px;opacity:0.4;filter:alpha(opacity=50); text-decoration:none;} +#slidebtn a.activeSlide{ width: 25px;height: 24px;display:block;opacity:1;filter:alpha(opacity=100);} + +/*--藏酒--*/ +.kobg{background-color:#392e22;} +.komiddle{background-color:#392e22; padding:20px 158px; color:#3c220c;} +.koimg{margin:0; padding:0; display:block;} +.kotitle{height:29px; font-size:16px; font-weight:bold; line-height:29px; color:#fae5b8; padding-left:20px;} +.kocontent{line-height:22px; padding:30px 30px; background-color:#f6efe4;} +.kocontent p{text-indent:24px; padding:10px 0; color:#3c220c;} +.kotitle1{font-size:14px; font-weight:bold; line-height:30px;} +.kocontent .fl{width:483px;} +.kocontent .fr img{margin:0; padding:20px 0 0 0; display:block;} +.kocenter{text-align:center;} +.xuanjiu .fl{width:300px; padding-top:20px;} +.xuanjiu .fr{width:270px; text-align:center;} +.kobg1{background-color:#000000; padding:10px 0 0 0;} +.kobg2{background-color:#000000; padding:16px 0 0 0;} +.kopic1{background-color:#6a264d; padding:0 0 5px 0;} +.kopic2{ background-color:#353334; padding:0 0 13px 0;} +.komt12{ margin-top:12px !important;margin-top:10px;} +.kopic3{background-color:#353334;} +.kobg1 img{margin:0; padding:0; display:inline-block;} +.kobg2 img{margin:0; padding:0; display:inline-block;} +.koh407{height:407px; overflow:hidden;} +.koh250{height:250px; overflow:hidden;} +/*商品列表品牌显示控制*/ +.showmore{float:right;margin:0 10px 5px 10px;width:55px;height:18px;line-height:18px; background:url(../images/btn_bg.jpg) repeat-x bottom;text-align:center;color:#FFF;cursor:pointer;} +a.showmore{color:#fff; text-decoration:none;} +a.showmore:hover{color:#fff; text-decoration:none;} +/*公告*/ +.showSytle_1{ font-weight:bold} +.showSytle_2{font-weight:bold} +.showSytle_3{font-weight:bold} + +/*邮箱验证成功*/ +.newbox{border:1px solid #dadada; background-color:#FFF;zoom:1;} +.newthead{height:34px;line-height:34px; background:#f5f5f5;} +.newthead h3{font-size:14px;font-weight:bold;color:#565656;padding:0 10px;} +.newcont{text-align:center;padding:50px 10px 10px 10px;} +.newtxt1{font-size:18px; font-family:"微软雅黑";color:#1a8532;height:39px;line-height:39px;font-weight:bold;text-align:left;text-align:center;} +.new_yes{ background:url(../images/dengluzhuceform.gif) no-repeat 0 -53px;padding:5px 0 12px 54px;} +.new_wrong{background:url(../images/dengluzhuceform.gif) no-repeat 5px -95px;padding:6px 0 4px 54px;} +.newtxt2{font-size:14px;color:#666666;padding:30px 0 0 0;} +.newnomail{margin:25px;border:1px solid #dadada; background-color:#f5f5f5;color:#666666;} +.newfc{color:#316ACA;} +.newfc a{color:#316ACA;text-decoration:underline;} +.newfc a:hover{color:#316ACA;} +.new10s{font-size:14px;color:#999999;font-family:"宋体";font-weight:normal;} +.newgo{padding:40px 100px;text-align:center;margin:25px;} +.newtxt4{color:#996633;font-size:14px;} +.newlink{padding:30px 10px 0 10px;font-size:14px;} +/*订单成功*/ +.newtxt5{color:#176246;padding:30px 0 0 0;} +.newred{color:#ea5404;} +.newtbl{padding:0px;margin:25px;} +.newdingdan th{height:45px;color:#666666;font-size:14px;} +.newdingdan td{border-top:1px solid #dadada;background-color:#f5f5f5;height:45px;font-size:14px;text-align:center;color:#565656} +.newcont2{text-align:center;padding:10px 10px 0 10px;margin:0 0 40px 0;} +/*付款成功*/ +.newtxt6{color:#666666;padding:30px 0 0 0;} +.newtxt7{padding:10px 10px 10px 25px;font-size:14px;color:#176246;font-weight:bold;} + +/*order*/ +.addrList input{float:left;margin:8px 0 0 15px;*margin:3px 0 0 15px;display:inline;} +.addrList label{float:left;width:520px;} +.addrList a{float:left;color:#3366cc;text-indent:0} +.addrList a:hover{color:#3366cc; border:none} +.fapiao p{height:30px;line-height:30px;} +.fapiao tbody{border:none;} +.fapiao tbody tr td{border:none;} +.fapiao tbody tr td span{display:inline;} +/*helper*/ +.otherType{margin:3px;display:block;padding:5px;background-color:#f5f5f5;border:1px solid #dadada;} +.otherType span{color:#ea5404;} +.inv_note{text-align:left; color:#ea5404; padding:0 0 3px 16px; line-height:20px;} +/*addcart*/ +.btn_box{margin:10px 0;border-top:1px dashed #B2B2B2;padding:5px 13px;} +.btn_box .newaddcart{width:115px;height:24px;line-height:24px;font-size:14px;text-align:center;color:#f5f5f5;padding:0;} +/*cardbox*/ +.list tfoot tr td.cardtd{padding:0;} +.carboximg{padding:10px 10px 0 10px;zoom:1;overflow:hidden;} +.carboximg dl,.carboximg dt,.carboximg dd{margin:0;padding:0;} +.carboximg dt,.carboximg dd{text-align:center;} +.newGiftCard{background: url("../images/shopingcar_btnbg.gif") repeat-x #1b6147;border: 1px solid #1b6147;color: #FFFFFF;font-size: 12px;height: 20px;line-height: 20px;margin: 0;padding:2px; text-decoration:none;} +.newGiftCard:visited{color: #FFFFFF;text-decoration:none;} +.newGiftCard:hover{color: #FFFFFF;text-decoration:none;} +/*问卷调查*/ +.questiontitle{background:url(../images/questionbg.jpg) repeat-y; height:36px; line-height:36px; text-align:center; font-size:14px; font-weight:bold; color:#1b6147;} +.questionborder{border:#dadada 1px solid;} +.questioncon{padding:18px 23px;} +.questiontop{background-color:#fffbf2; padding:22px;color:#1b6147; font-size:14px; line-height:22px;} +.questiontop strong{line-height:24px;} +.question{padding:10px 20px 20px 20px; color:#535353;} +.questionbold{font-weight:bold; padding:20px 0 0 0;} +.questionn{padding:15px 0 0px 10px;} +.questionn input{ line-height:150%; vertical-align:middle; margin:0; padding:0; _margin-bottom:3px;} +.questionn label{padding:0 15px 0 0; } +.questionin{border-top:none;border-left:none;border-right:none; border-bottom:#535353 1px solid;} +.question textarea{width:870px; height:180px;border:#caad74 1px solid; font-size:12px;} +.question_btn{text-align:center; padding:15px;} +#questionalert{ background: none repeat scroll 0 0 #FFFFFF;border: 3px solid #A58048;border-radius: 5px 5px 5px 5px;color: #000000;font-family: Arial,sans-serif;font-size: 12px; width:497px;z-index: 99999; margin-top:100px; position:fixed; padding: 0px; margin-left:-240px; margin-top:-200px; _position:absolute; _margin-top:600px;} +.qalert1{margin:0 10px; padding:0 0 10px 0;border-bottom:#caad74 1px solid; color:#7d5014; font-weight:bold;} +.qalert2{padding:10px;color:#7d5014; font-size:12px; text-align:left; line-height:22px;} +#questionalert .submit1{line-height:18px;} +.wenjuan{background:#fffdfa;border:#caad74 1px solid; position:fixed; width:20px; padding:4px 0; line-height:16px; text-align:center;color:#7d5014; margin-left:1001px; _position:absolute; bottom:10px; cursor:pointer;} +.wenjuan:hover{background:#fff2e0;} +.wenjuan a{text-decoration:none;} +.wenjuan a:hover{text-decoration:none;} + +/*card*/ +.card_box{border:1px solid #dadada;overflow:hidden;zoom:1; background-color:#FFF;overflow:hidden;width:998px;} +.card_box dl,.card_box dd,.card_box dt{margin:0;padding:0;} +.card_box dl{width:1000px;} +.card_title{height:35px; background:url(../images/lipin_img.jpg) no-repeat 0px 0px #f0e0c9; text-align:left;} +.card_t{height:35px; background:#f5f5f5; border:1px solid #dadada; text-align:left; font-size:14px; font-weight:bold; padding-left:8px; line-height:35px;} +.card_t a{height:35px;line-height:35px; color:#565656;font-weight:bold; font-size:14px; } + + +.card_ding{margin-top:20px;overflow:hidden} +.card_ding dl{overflow:hidden;zoom:1;} +.card_dingt1{ background:url(../images/lipingkat.gif) no-repeat;height:27px;border-bottom:1px solid #ece0d1;} +.card_dingt2{ background:url(../images/lipingkat.gif) no-repeat 0 -27px;height:27px;border-bottom:1px solid #ece0d1;} +.card_dingt3{ background:url(../images/lipingkat.gif) no-repeat 0 -54px;height:27px;border-bottom:1px solid #ece0d1;} +.card_dingt4{ background:url(../images/lipingkat.gif) no-repeat 0 -81px;height:27px;border-bottom:1px solid #ece0d1;} +.card_dingt5{ background:url(../images/lipingkat.gif) no-repeat 0 -108px;height:27px;border-bottom:1px solid #ece0d1;} +.card_cat{width:249px;float:left;text-align:center;overflow:hidden;border-right:1px solid #dadada;border-bottom:1px solid #dadada;} +.card_img{padding:25px 0;} +.card_pic{border-bottom:1px solid #ece0d1;} +.card_price{color:#ea5404;font-size:14px;padding:0 10px 15px 10px;line-height:30px;} +.card_price span{font-size:22px; font-family:Helvetica LT Black;font-weight:bold;} +.card_price span.card_rmb{color:#ea5404;font-wieght:bold;font-size:14px;} +.card_cut,.card_add{ background:url(../images/lipingkabg02.gif) no-repeat;line-height:14px;padding:0 5px;font-size:12px;overflow:hidden;} +.card_add{padding:0 4px;} +.card_numipt{border:1px solid #dadada;width:50px;font-size:12px;line-height:16px;height:16px;padding:1px;overflow:hidden;} +.card_moneyipt{border:1px solid #dadada;width:100px;font-size:12px;line-height:16px;height:16px;padding:1px;overflow:hidden;} +.card_num{color:#565656;font-size:14px;margin:20px;} +.card_pall{height:60px;line-height:60px;font-size:14px;color:#565656;background-color:#f5f5f5;padding:0 20px;} +.card_pall span{ font-family:Arial;font-size:24px;color:#ea5404;} +dd.card_buding{font-size:14px;color:#5d412c;padding:10px 15px;overflow:hidden;zoom:1;background-color:#f5f5f5;margin-top:20px;line-height:30px;} +.card_money{font-family:Arial;font-size:24px;color:#ea5404;} +.card_fapiao{padding:10px 15px 20px 15px;} +.card_fapiao li{margin-top:10px;text-align:center;} +.card_corp{width:100%;height:100px;resize:none;border:1px solid #a07948;} +.card_valid{text-align:right;color:#959595;} +.card_buy{ background:url(../images/btn_bg.jpg) repeat-x bottom;width:100px;height:27px;text-align:center;display:block;color:#FFF; text-decoration:none;line-height:27px;margin:0 auto;font-weight:bold;} +a.card_buy:visited{color:#fff;text-decoration:none;} +a.card_buy:hover{color:#fff;text-decoration:none;} +.card_tab{background:url(../images/cardbg.gif) repeat-x 0 32px;height:40px;line-height:32px;margin:0 20px 10px 20px;overflow:hidden;zoom:1;} +.card_tab li{float:left; font-family:微软雅黑;font-size:16px;color:#565656;width:112px;text-align:center;height:40px;cursor:pointer;} +.card_tab li.on{background:url(../images/cardbg.gif) no-repeat 0px -51px;color:#176246;} +.card_subtab{height:24px;line-height:24px;margin:0 35px 10px 35px;overflow:hidden;zoom:1;} +.card_subtab li{float:left;font-size:12px;color:#999999;width:80px;text-align:center;height:24px;cursor:pointer;} +.card_subtab li.on{background-color:#f5f5f5;color:#176246;} +.card_dt{border-top:1px solid #ece0d1;} +.card_hcont{margin:10px 40px 20px 40px;color:#565656;line-height:22px;} +.card_pro_img{height:210px;overflow:hidden;} +.card_pro_title{height:30px;line-height:30px;overflow:hidden} +/*slides*/ +#slidelabel_nav{bottom: 6px;height: 23px;padding: 0 8px 0 10px;position: absolute;right: 0;z-index:2;} +#slidelabel_nav li{float:left;background-color: #FFFFFF;display: block;height: 24px;line-height: 24px;margin-left: 5px;text-align: center;width: 25px;opacity:0.4;filter:alpha(opacity=50); text-decoration:none;cursor:pointer;} +#slidelabel_nav li.on{ width: 25px;height: 24px;display:block;opacity:1;filter:alpha(opacity=100);} +#slidelabel_nav li a{ text-decoration:none;} +#slidelabel_nav li a:hover{ text-decoration:none;} +/*购物流程*/ +.process{border:#d8d8d8 1px solid; color:#333333;} +.processtitle{ height:36px; line-height:36px; font-size:16px; font-weight:bold; text-indent:10px;} +.processcon{padding:30px 15px;} +.processt1{font-family:微软雅黑; color:#656565; font-weight:bold;} +.processc1{color:#389a5b;} +.processt2{width:112px;line-height:18px; margin-right:25px;} +.processt3{width:82px; height:18px; line-height:18px;} +.processcon1{padding:10px 0 0 18px; color:#b8b8b8; font-family:Arial, Helvetica, sans-serif; font-weight:normal;} +.processmt8{margin-top:8px;} +.processcon li{padding:0 0 0 10px; float:left; width:380px; height:24px; line-height:24px; overflow:hidden;} +.processcon li a{color:#3561ce;} +.processcon li a:hover{color:#3561ce;} +.processcon img{padding:15px;} +/*友情链接*/ +.links{border:#dadada 1px solid;} +.linkstitle{height:36px; line-height:36px; color:#1B6147; font-size:14px; font-weight:bold; text-indent:12px;} +.linkscon{padding:10px;} +.linksbox{border:#dadada 1px solid; padding:10px; margin-bottom:10px; background:#f5f5f5} +.linkstitle1{font-size:14px; color:#1B6147; padding:5px 0 20px 0;font-weight:bold;} +.linkslist li{width:148px; float:left; height:28px; line-height:28px; color:#1B6147; padding:0 0 0 10px; overflow:hidden;} +.linkscon a{} +.linkscon a:hover{text-decoration:none;} +.linkslist ul{overflow:hidden; zoom:1;} +.linksstep{color:#666666; padding:20px; font-size:14px;} +.linksstepcon{font-size:12px; padding:10px 0; line-height:24px;} +/*优惠券添加*/ +/*.coupon_list{margin:10px 10px 10px 20px;width:580px;height:188px;overflow-y:auto;}*/ +.coupon_list{margin:10px 10px 10px 20px;} +.coupon_list .tbl_list{text-align:center;border:1px solid #dadada;border-bottom:0 none;} +.coupon_list .tbl_list th{background-color:#dadada;} +.coupon_list .tbl_list tr td{text-align:center;border-bottom:1px solid #dadada; background:#fff;} +/*发票记忆添加*/ +.inv_memory{margin:10px 10px 5px 20px;padding:5px;width:570px;border:1px solid #F4E1BA;background-color:#FCF8EF;} +.invList{overflow:hidden;zoom:1;} +.invList input{display: inline;float: left;margin:8px 0 0 5px;*margin:3px 0 0 5px;} +.invList label {float: left;width: 360px;} +.invList a {color: #BBBBBB;float: left;text-indent: 0;} +.tLabel{float:left;line-height:26px;} +.tSelect{background: url(../images/dateimg.gif) no-repeat 202px 3px;border: 1px solid #CCCCCC;height: 20px;line-height: 20px; margin-left: 10px;overflow: hidden;padding: 2px 30px 2px 10px;width: 190px;cursor:pointer;} +/*重新选择配送时间*/ +.datechange{width:237px;position:absolute;z-index:5;background-color:#FFF;_left:auto;border:1px solid #c1dcf2;padding:5px;} +.dateTop{overflow:hidden;zoom:1;} +.dateTop h3{float:left;} +.datetbl{border-top:1px solid #c1dcf2;border-left:1px solid #c1dcf2;} +.datetbl div{width:58px;height:40px;border-bottom:1px solid #c1dcf2;} +.datetbl .w{float:left;text-align:center;line-height:18px;color:#333;width:58px;border-right:1px solid #c1dcf2;margin:0;clear:none;padding:0;} +.datetbl .dateTh .w{background-color:#eaf3fe;height:35px;padding:5px 0;border-bottom:1px solid #c1dcf2;} +.datetbl .dateTh,.datetbl .dateTbody{overflow:hidden;zoom:1;} +.datetbl td{padding:3px;} +.datetbl .cur{background-color:#e47911;color:#FFF;line-height:40px;} +.datetbl .disable{background-color:#eeeeee;} +.datetbl .available{cursor:pointer;line-height:40px;} +.datetbl .available:hover{border:2px solid #e47911;width:54px;height:37px;overflow:hidden;line-height:37px;} +.datebox{text-align:center;font-weight:bold;color:#000;padding:0;line-height:20px;} +.dateclose{float:right;width:40px;height:20px;line-height:20px;margin:0px 0 5px 0;display:inline;cursor:pointer;text-align:center;color:#FFF;color:#000;border:1px solid #f0f0f0;background-color:#eeeeee;overflow:hidden;} +.dateother{background:url(../images/dateimg.gif) no-repeat right center;padding:5px 30px 0 0;text-decoration:underline;color:#3366CC;font-weight:bold;font-size:14px;font-size:14px;} +/*文章内容模板推荐文章*/ +.sharefrom{text-align:right;color:#aaaaaa;font-style:italic;} +.reco_article{padding-top:30px;} +.articlehead{font-weight:bold;font-size:14px;line-height:30px;color:red;} +.articlelist{line-height:22px;padding:5px 16px;} +.articlelist li a{text-decoration:underline;color:#000;} +.articlelist li a:visited{text-decoration:underline;color:#000;} +/*服务承诺*/ +.sfmain,.sfpart{overflow:hidden;zoom:1;} +.spleft{width:560px;overflow:hidden;height:380px;} +.spright{width:240px;border-left:1px dashed #814e21;border-bottom:1px dashed #814e21;padding:0 0 10px 10px;height:370px;overflow:hidden;} +.sppackage{ background:url(../images/servicep.gif) no-repeat;height:25px;width:185px;} +.spexpress{background:url(../images/servicep.gif) no-repeat 0 -25px;height:25px;width:185px;margin-top:15px;} +.sptxt{margin:14px 0 0 0;padding:0 20px 15px 20px;background:url(../images/package.gif) no-repeat 230px top;border-bottom:1px dashed #814e21;} +.sptxt li{line-height:22px;color:#585657;} +.sptxt2{padding:14px 20px 0 20px;} +.sptxt2 li{line-height:22px;} +.sptxt2 li h3,.sptxt2 li p{font-size:12px;} +.sptxt2 li p{color:#585657;line-height:22px;} +.sptxt3{overflow:hidden;padding:0 0 0 10px;border-bottom:1px dashed #814e21;height:149px; } +.sptxt3 h3{font-size:12px;line-height:22px;} +.sptxt3 li{line-height:20px;color:#585657;} +.sptitle{height:34px;line-height:34px; background-color:#eaeaea;color:#804F21;text-align:center;font-weight:bold;} +.spmt5{margin-top:5px;} +/*赠品池*/ +ul.backjf{padding:0;margin:0;overflow:hidden;zoom:1;} +ul.backjf li{line-height:20px;padding:0;} +ul.giftsbox{overflow:hidden;zoom:1;padding:0;} +ul.giftsbox li{float:left;line-height:34px;padding:0;clear:none;} +ul.giftsbox .giftleft{color:red;width:40px;padding:3px 0 0 0;} +.giftlist{overflow:hidden;zoom:1;padding:3px 0 0 0;height:34px;} +.giftlist span{float:left;color:#353130;color:red;} +.giftlist strong{float:right;font-weight:normal;color:#34312c;} +.giftimg{border:1px solid #a4aaaa;height:32px;width:32px;margin:0 3px;display:inline;overflow:hidden;} +span.giftname{color:red;overflow:hidden;zoom:1;width:290px;text-overflow:ellipsis;white-space:nowrap;} +.giftname a{color:red;} +.giftname a:link{color:red;} +.giftname a:visited{color:red;} +/*购物车*/ +.tbl_cart{} +.tbl_cart th{background-color:#81a84a;height:34px;line-height:34px;color:#fff; font-weight:bold} +.tbl_cart tbody tr td{border-bottom:1px solid #ebf7ef;padding:20px 0px;text-align:center;} +.tbl_cart tbody tr td span{color:#ea5405;} +.tbl_cart tbody tr td.cart_p{overflow:hidden;zoom:1;text-align:left;} +.cart_pimg{float:left;margin-right:10px;display:inline;width:60px;height:60px;overflow:hidden;border:1px solid #eee;} +.cart_pname{overflow:hidden;color:#6b6b6b;line-height:20px;zoom:1;} +.cart_pname a{color:#6b6b6b;} +.cart_pname a:visited{color:#6b6b6b;} +.tbl_cart tbody tr td.manjian{background-color:#F2F6ED;height:30px;line-height:30px;text-align:left;padding:0;text-indent:10px;} +.tbl_cart tbody tr td.manjian strong{color:#1B6147; } +.tbl_cart tbody tr td.manjian a{color:#3465cc;text-decoration:underline;} +.tbl_cart tbody tr td.manjian a:link{color:#3465cc;text-decoration:underline;} +.tbl_cart tbody tr td.manjian a:visited{color:#3465cc;text-decoration:underline;} +.tbl_cart tbody tr td.yijian{background-color:#F2F6ED;height:30px;line-height:30px;color:#805022;text-align:left;padding:0;} +a.countbtn,a.countbtn:hover{background-color:#eeeeee;border:1px solid #cacaca;color: #7d7d7d;cursor: pointer;display: block;float: left;font-size: 12px;height: 12px;line-height: 12px;margin: 1px 2px 0;overflow: hidden;padding: 0;text-align: center;text-decoration: none;vertical-align: middle;width: 10px;overflow:hidden;} +.favourable{} +.cartAmount{margin: 0px auto; width: 65px;height:18px;overflow:hidden;zoom:1;} +input.amount{width:25px;float:left;font-size:12px;vertical-align:middle;text-align:center;overflow:hidden;height:14px;line-height:14px;padding:0px;} +input.amountnor{width:25px;font-size:12px;text-align:center;overflow:hidden;height:14px;line-height:14px;padding:0px;border:1px solid #BCBCBC;background-color:#E5E5E5;margin-left:17px;} +.totalprice{color:#ea5404;font-weight:bold;} +.goshop{ background:url(../images/btn_bg.jpg) repeat-x top;height:30px;width:75px;border:1px solid #025e43;color:#fff;margin:15px 10px 0 0;cursor:pointer} +.cartclear{background:url(../images/cartbg.gif) no-repeat 0 -104px;color:#6b6b6b;border:0;padding:0 0 0 10px;margin:10px;cursor:pointer;width:90px;overflow:hidden;height:18px;} +.jiesuan{background:url(../images/btn_bg.jpg) repeat-x bottom;height:45px;width:150px;border:0;color:#FFF;text-align:center;font-size:16px;font-weight:bold;cursor:pointer; border:1px #025e43 solid; border-right:1px solid #00563e;} +.submitting{background:#f5f5f5;height:45px;width:150px;border:0;color:#565656;text-align:center;font-size:12px;cursor:pointer} +.orderprice{font-weight:bold;text-align:right;padding:10px;border-top:1px dashed #565656;} +.orderprice span{font-size:22px;color:#f18404;font-weight:normal;} +.pprice{padding:10px;line-height:20px;text-align:right;} +.js2{width:60px;height:24px;background:url(../images/btn_bg.jpg) repeat-x top;border:1px solid #00553d;margin:1px 10px 0 10px;display:inline; vertical-align:baseline;_vertical-align:middle;text-align:center;cursor:pointer;color:#fff;font-weight:bold;font-size:12px;} +.jsing{background-color:#fff3d9;color:#9A672E;font-weight:normal;} +.jsitem{overflow:hidden;zoom:1;text-align:right;} +.jsitem strong{width:95px;float:left;text-align:left;font-weight:normal;margin-left:85px;} +.cart_title{padding:0 0 5px 0;zoom:1;} +.cart_title h3{font-size:20px;font-family:微软雅黑;float:left;} +.toArea{padding:5px 10px 0 20px;} +.toTxt{float:left;line-height:20px;font-size:14px;} +.toSelect{font-size:14px;} +.getfavok{position:absolute;margin-top:-45px;_top:-25px;margin-left:-45px;width:102px;height:43px;line-height:37px;text-align:center;background:url(../images/getfavbg.gif) no-repeat;} +*html .getfavok{margin-top:-22px;margin-left:-55px;} +.cart_columnhd{height:22px;background-color:#f5f5f5;border-bottom:1px solid #f4e1ba;padding:10px;text-align:left;line-height:22px;} +.cart_checkboxes{font-size:14px;font-weight:bold;color:#565656;} +.cart_select{margin-left:20px;display:inline;margin-right:5px;} +.cart_my h3{font-family: 微软雅黑;font-size: 20px;} +.cart_tips{padding:10px 0;} +.cart_tips span{color:#ea5405;} +.cart_inner{padding:10px 30px;border: 1px solid #dadada;} +.cart_column{padding:8px 0 10px 0;} +.cart_hd{padding:0 0 10px 0;} +.cart_n{font-size:14px;font-weight:bold;margin-left:5px;} +.total_item{margin-top:10px;padding:20px;border:1px solid #dadada;background-color:#f5f5f5;text-align:right;color:#565656;} +.cart_total{padding:10px 0 0 0;font-weight:bold;} +.cart_total span{color: #CD0000;font-size: 22px;font-weight: normal;} +.cart_btn{text-align:right;padding:10px 0;} +.linedel{border:none;} +.areashow{margin:5px;position:relative;} +.areabtn{float:left;background:url(../images/areabtn.gif) no-repeat right 1px;height:20px;padding:0 23px 0 5px;background-color:white;border:1px solid #dadada;line-height:20px;color:#000;cursor:pointer;} +.toAreabest{padding:0 15px;border:1px solid #dadada;background-color:white;position:absolute;margin-left:-60px;height:170px;width:355px;} +.toSelectbest{height:130px;width:118px;font-size:12px;padding:5px;} +.closeArea{overflow:hidden;zoom:1;margin:6px 0 0 0;height:20px;} +.closeSelect{line-height:0px;text-indent:-9999px;height:13px;width:13px;display:block;float:right;text-decoration:none;background:url(../images/areabtn.gif) no-repeat 0 -24px;overflow:hidden;} +.areatips{color:#ea5404;} +.cartAddrPrice{position:absolute;height:32px;width:182px;right:20px;top:5px;_right:30px;} +.cartAddrPrice .pTxt{position:absolute;background-color:#fcf8ef;border:1px solid #f3e1b9;height:23px;line-height:23px;padding:1px 5px;width:170px;top:15px;;right:0;color:red;} +.cartAddrPrice b{position:absolute;background:url(../images/cartbg.gif) no-repeat -140px -200px;width:10px;height:5px;top:11px;right:15px;} + +.cart_hg{background:#f2f6ed; text-align:left;} +.cart_hg .box{text-align:left; width:978px; position:relative; line-height:20px;} +.cart_hg .box b{color:#176146;} +.cart_hg .box .l{ display:block;with:120px; float:left; color:#1b6147; font-weight:bold; padding:0px 8px 0px 0px;} +.cart_hg .box .r{ display:block;with:800px; float:left; color:#565656;} +.cart_hg .box font{color:#3364cb;padding:0px 8px 0px 8px;} +.cart_hg .box .w{border:1px solid #1B6146; background:#f5f5f5;width:450px; position:absolute;top:30px;left:50%;margin-left:-220px;z-index:999;} +.cart_hg .box .w .title{border-bottom:1px solid #1B6146;height:30px;} +.cart_hg .box .w .title span.text{display:block; background:#f5f5f5;height:30px; width:415px; line-height:30px; padding:0px 0px 0px 8px;color:#565656;font-size:12px;font-weight:bold;float:left;} +.cart_hg .box .w .title a.close-btn{display:block;width:16px;height:16px;font-size:12px;background:#1B6146;color:#fff; text-decoration:none; cursor:pointer;padding:0px;margin:0px; text-align:center;float:right;margin:6px 8px 0px 0px;} +.cart_hg .box .w .c{max-height:220px;_height:220px;overflow:auto;background:#f5f5f5;position:relative;} +.cart_hg .box .w .c table td{ padding:4px;margin:0px;} +.cart_hg .box .w .c .pic img{border:1px solid #dadada;width:32px;height:32px;} +.cart_hg .box .w .b{height:30px; line-height:30px; text-align:center; padding:8px 0px 8px 0px;} +.cart_hg_list{padding:0px;} +.cart_hg_list .box{text-align:left;line-height:20px;} +.cart_hg_list .box table td{border:none;padding:4px 0;} +.cart_hg_list .box .pic{ text-align:left; overflow:hidden;} +.cart_hg_list .box .pic b{ color:#176146;float:left;line-height:32px;} +.cart_hg_list .box .pic img{border:1px solid #dadada;width:32px;height:32px; vertical-align:middle;float:left;margin:0 5px;_display:inline;} +.cart_hg_list .box .pic span.pname{color:#804F21;margin-top:6px;display:block;overflow:hidden;zoom:1;} +.cart_hg_list .orderbox{text-align:left;line-height:20px;} +.cart_hg_list .orderbox table{width:100%;} +.cart_hg_list .orderbox table td{border:none;padding:4px;} +.cart_hg_list .orderbox td b{color:#FF0000;font-weight:normal;} +.cart_saleicon{width:14px;height:14px;display:block;background:url(../images/cart_icon.gif) no-repeat;} +.cart_saleout{width:39px;height:14px;display:block;background:url(../images/cart_icon.gif) no-repeat 0 -14px;position:absolute;top:10px;} +*+html .cart_saleout{left:0;} +*html .cart_saleout{left:0;} +#yingProce{ color:#ea5404} + +/*结算信息*/ +.priceitem{text-align:left;line-height:26px;padding:10px 16px;} +.list tfoot tr td .priceitem span{} +.priceitem strong{color:#ea5405;} +.orderstep1{background:url(../images/orderstep.gif) no-repeat 0 0;height:33px;width:702px;overflow:hidden;margin-bottom:5px;} +.orderstep2{background:url(../images/orderstep.gif) no-repeat 0 -33px;height:33px;width:702px;overflow:hidden;margin-bottom:5px;} +.znxx ul li p.sfbtn{cursor:pointer;font-weight:bold;overflow:hidden;zoom:1;text-indent:0;margin-left:16px; color:#176246} +.sfbtn b{width:12px;float:left;overflow:hidden;} +.sfbtn_in{padding:10px 0;margin:0 20px 10px 20px;background-color:#f5f5f5;text-align:left;} +.invMsg{overflow:hidden;zoom:1;} +.invMsg p{float:left;margin-right:20px;display:inline;} +/*订单结算2*/ +.fap{padding:10px 20px;color:#6B6B6B;} +.fap td{padding:2px;} +.fap .text{border:1px solid #acadb2;margin-left:3px;} +.addritem .text{border:1px solid #acadb2;margin-left:3px;} +input.cbtn{height:30px;width:98px;text-align:center;font-size:12px;font-weight:bold;} +.list3 ul li span.saveit{background: url(../images/btn_bg.jpg) repeat-x bottom #058a5f;border: 1px solid #01533c;color: #FFFFFF;cursor: pointer;font-size: 12px;height: 22px;line-height: 22px;margin: 0;padding:5px;} +.addritem p{padding:2px;} +.btn1{overflow:hidden;zoom:1;} +#greetingcard label{display:block;position:relative;} +#greetingcard span{position:absolute;line-height:20px;left:65px;_left:0px;color:#BCBCBC;cursor:text;} +.DMinput{overflow:hidden;zoom:1;line-height:24px;} +.DMinput b{float:left;font-weight:normal;} +.DMinput input{float:left;} +.orderCheckbox{ vertical-align:middle;} +.orderList ul li{padding:6px 0 0 0;} +ul li.orderListArea{background:#f7f7f7;border:1px solid #dadada;padding:6px 0 10px 0;} +.orderDl dd{padding:0;margin:0;} +h4.orderListTitle{margin:0;line-height:26px;} +.addrBtn{margin:5px 10px 0 16px;} +h4.addrToTitle{margin-left:16px;font-size:12px;} +h4.addrFromTitle{font-size:12px;} +.addrFromTitle span.addrAlter,h4.orderListTitle span.addrAlter{font-size:12px;color:#3564ce;font-weight:normal;cursor:pointer;} +.addrFrom{line-height:22px;padding:8px 10px 0px 13px;color:#555555;} +.addrFrom input{vertical-align:middle;} +.addrFrom span.addrFromTip{color:#999999;} +.addrFromItem{background-color:#f5f5f5;margin:10px 30px;padding:5px 10px 15px 10px;} +.addrFromDL{color:#6B6B6B;margin:0;padding:0;} +.addrFromDL dd{margin:0;padding:0px;} +.addrList{overflow:hidden;zoom:1;} +.addrFromBtn{margin:10px 0 0 76px;overflow:hidden;zoom:1;} +.addrFromBtn .addrFromSave,.addrFromBtn .addrFromCl{ background-image:url(../images/orderpic.gif);background-repeat:no-repeat;float:left;text-align:center;line-height:25px;height:25px;cursor:pointer;} +.addrFromBtn .addrFromSave{width:105px;color:#805022;} +.addrFromBtn .addrFromCl{background-position:0 -25px;width:63px;margin-left:10px;color:#565656;_display:inline;} +.addrToCurr{padding:5px 16px;line-height:20px;color:#555555;} +.addrFromCurr{padding:5px 0;line-height:20px;color:#555555;} +.couponList{height:28px;border-bottom:2px solid #176246;overflow:hidden;zoom:1;} +ul.couponTab{float:left;overflow:hidden;zoom:1;width:240px;} +ul.couponTab li{clear:none;float:left;padding:0;height:28px;line-height:28px;width:110px;text-align:center;background-color:#f4f4f4;border:1px solid #dadada;border-bottom:0 none;color:#555555;cursor:pointer;} +ul.couponTab li.on{background-color:#176246;border:1px solid #176246;border-bottom:0 none;color:white;} +.couponList span.couponUsed{color:#48a500;background:url(../images/ordericons.gif) no-repeat;padding:0 0 2px 23px;} +a.couponCL{color:#0f83d8;text-decoration:none;} +a.couponCL:hover{color:#0f83d8;} +/*我的订单sf*/ +.order_tbl{line-height:22px;padding:5px 0;zoom:1;} +.listddxq tbody tr td .order_tbl span{clear:none;font-weight:bold;display:inline;color:#6d6b6e;} +.listddxq tbody tr td .order_tbl span.fl{margin-right:30px;} +.waybillinfo{position:relative;} +.wayinfo{position:absolute;width:450px;border:1px solid #d4ac78;background-color:#fffdf8;padding:10px;left:100px;z-index:999;margin-top:-200px;} +*html .wayinfo{left:0px;margin-left:-270px;} +.wayinfotop{border-bottom:1px dashed #979691;line-height:22px;padding:3px;overflow:hidden;zoom:1;} +.wayinfotit{float:left;color:#804F21;font-weight:bold;} +.wayclose{float:right;background-color:#8a6539;width:40px;height:20px;overflow:hidden;cursor:pointer;text-align:center;color:#FFF;} +.changecity{margin-left:10px;color:red;} +.changecity a:link{color:red;} +.changecity a:visited{color:red;} +/*时令优选单品页*/ +.pbox .sl_box{width:1000px;} +.sl_l{width:495px;} +.sl_r{width:478px;padding-right:0;} +.sl_pic img{width:453px;height:453px;} +.sl_roll{width:495px;} +.sl_roll .sl_cont{width:454px;margin-left:14px;margin-right:5px;display:inline;} +.sl_roll .sl_cont .pic{width:66px;margin-right:10px;display:inline;} +.sl_roll .sl_cont .pic img{width:60px;height:60px;} +.sl_roll .sl_cont a:link,.sl_roll .sl_cont a:visited{width:64px;height:64px;} +.sl_img1,.sl_img2{margin:12px 0px 0px 0px;} +.sl_li{overflow:hidden;zoom:1;} +.sl_lil{float:left;width:200px;} +.sl_lir{overflow:hidden;zoom:1;} +ul.sl_s20{margin:12px 0 0 25px;overflow:hidden;zoom:1;} +ul.sl_s20 li div span{color:#565656;padding-top:3px;} +.sl_tit h3{font-size:16px;font-family:"宋体"} + +/*彩贝合作帐号工具条*/ +.cb_bar{border:1px solid #b5d3ea; height:24px; line-height:24px;width:980px; margin:auto; background:#ebf7ff; padding:0px 10px 0px 10px} +.cb_bar .l{display:block; float:left; width:700px;} +.cb_bar .r{display:block;float:right; width:200px; color:#4c4747; text-align:right;} +.cb_bar .alink{ border-left:1px solid #add9fb; padding:0px 0px 0px 6px; color:#0066cc;} +.cb_bar .l a{ padding:0px; color:#0066cc;} + +/*组合商品详情页*/ +.cp_rw{width:242px;padding-right:0px;} +.cp_m{float:left;width:180px;height:390px;overflow-y:auto;} +.cp_addicon{background:url(../images/p_and.gif) no-repeat left center;height:390px;width:45px;float:left;overflow:hidden;} +.cp_list{text-align:center;float:left;} +.cp_list li{padding:0 0 6px 0;} +.cp_name{text-align:center;color:#555555;height:15px;line-height:15px;padding:3px 0 0 0;overflow:hidden;} +.cp_name a:link{color:#555555;} +.cp_name a:visited{color:#555555;} +.cp_master{text-align:center;padding:5px 0 10px 0;} +.cp_li{overflow:hidden;zoom:1;} +.cp_lil{float:left;margin-right:60px;display:inline;} +.cp_lir{overflow:hidden;zoom:1;} + +/*提货流程*/ +.tihuo{padding:15px 50px;} +.tihuo h4{font-size:18px; font-family:Microsoft YaHei; font-weight:normal; color:#333333; padding:0 0 15px 0;} +.tihuolist tbody tr td{background-color:#ffffff;color:#565656;} +a.delfcolor{color:#6b6b6b;margin-left:10px;} +a.delfcolor:visited{color:#6b6b6b;} +a.delfcolor:hover{color:#6b6b6b;} +.tihuostep1,.tihuostep2,.tihuostep3{ color:#323232;height:33px; line-height:33px; width:740px;font-size:18px;font-family:Microsoft YaHei;} +.tihuostep1{background:url(../images/thstep.gif) no-repeat right top;} +.tihuostep2{background:url(../images/thstep.gif) no-repeat right -33px;} +.tihuostep3{background:url(../images/thstep.gif) no-repeat right -66px;} +.thform{overflow:hidden;zoom:1;padding:10px 0 0 0;height:35px;} +.thlabel{width:310px;text-align:right;float:left;overflow:hidden; color:#333333; font-family:"Microsoft YaHei";} +.thinput{overflow:hidden;zoom:1;} +.thinput a:hover{ color:#669900;} +.thinput a.thqbtn{ font-size:14px; color:#ffffff; background:#69af05; padding:0 30px; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; float:left; margin-right:20px;} +.thinput a.thqbtn:hover{ background:#7ac50f;} +.tihuo ul li span.onError { height:30px; line-height:30px; display:inline-block; background: url("../images/thstep.gif") no-repeat -424px -174px; font-size:12px; color: #fa6400; margin-left: 10px; padding: 0 0 0 22px;} +.thinput1,.thinput2{float:left;width:196px; border: 1px solid #d5d5d5; font-size: 12px; line-height:28px; height: 28px; vertical-align:middle; padding:0 0 0 2px;} +.thinput2{ width:106px;} +.thinput .tsuccess{ background: url("../images/yzicon.gif") no-repeat 0 -59px; height: 13px; width: 13px; margin: 8px 0 0 -20px; *margin: 6px 0 0 -20px; position: absolute;} +.thinput .ierror{ border: 1px solid #fa6400;} +.tihuoqa{margin:0; font-family:Microsoft YaHei;} +.tihuoqa dt{line-height:30px; font-size:14px; color:#3199f4;} +.tihuoqa dd{margin:0;line-height:25px;} +.tihuot{font-size:14px;font-weight:bold;color:#6b6b6b;} +.list3 ul li span.tihuo_yes{ height:30px; line-height:30px; background:url(../images/thstep.gif) no-repeat 0 -166px;padding:0 0 0 36px;color:#333333; font-size:16px; font-family:"Microsoft YaHei";display: inline-block; font-weight:normal;} +.thtxt{color:#333333;padding:10px 0 0 0; font-family:"Microsoft YaHei";} +.thlink{color:#01533c; padding:10px 0 0 0; font-family:"Microsoft YaHei";} +.thfc{ padding:0 30px 0 0;} +.thfc a{color:#669900;} +.thfc a:hover{color:#669900;text-decoration:underline;} + +.hide{display:none;} +/*列表热销推荐*/ +.listhot{padding:8px 12px 12px 12px;border:1px solid #dadada;} +.listhot ul{} +.listhot ul li{width:260px;height:100px; } +.listhot ul li img{float:left;height:100px;width:100px;} +.listhot ul li span{ padding:0px 0px 12px 0px; display:block} +.listhot ul li p{padding:10px 0px 0px 0px; float:left; overflow:hidden;width:120px; text-align:left;} +.listhot ul li div{float:left;margin-right:5px;display:inline;} +.hottop{line-height:20px;padding:0 0 10px 0px;font-weight:bold;color:#176246;} +/*可追溯*/ +.tracebox{border:1px solid #dadada;margin:10px 0;zoom:1;} +.trace_t{background:url(../images/tracebg02.gif) repeat-x 0 -41px;height:34px;line-height:34px;text-indent:10px;color:#565656;font-size:14px;font-weight:bold;} +.tracebody{margin:10px 0 10px 8px;} +.trace_name{height:44px;line-height:44px;background:url(../images/tracebg01.gif) no-repeat;padding:0 0 0 20px;font-size:14px;} +.trace_item{margin-left:7px;border-left:1px solid #dadada;padding:0 0 15px 15px;width:963px;overflow:hidden;} +.trace_item li{overflow:hidden;padding:10px 0 0 0;zoom:1;} +.tag{background:url(../images/tracebg02.gif) no-repeat;width:38px;height:41px;line-height:37px;text-align:center;font-size:14px;font-family:"微软雅黑";color:#fff;float:left;overflow:hidden;} +.trace_r{padding:0 0 0 10px;width:906px;overflow:hidden;} +.trace_time{overflow:hidden;zoom:1;} +.trace_time b{float:left;background:url(../images/tracebg02.gif) no-repeat -73px 0;width:5px;height:28px;overflow:hidden;margin:0;} +.trace_tr{float:left;padding:0 10px;border-top:1px solid #ebebeb;border-right:1px solid #ebebeb;background-color:#fafafa;line-height:27px;height:27px;width:880px;color:#565656;overflow:hidden;} +.trace_cont{border:1px solid #ebebeb;margin-left:4px;overflow:hidden;zoom:1;} +.trace_img{padding:10px;overflow:hidden;zoom:1;margin:0;} +.trace_img dt{float:left;margin:0 10px 0 0;color:#565656;line-height:26px;overflow:hidden;width:60px;text-align:right;_display:inline;} +.trace_img dd{overflow:hidden;zoom:1;padding:0;margin:0;color:#565656;line-height:26px;} +.trace_img dd div{float:left;width:230px;margin-right:10px;padding:5px 0 10px 0;cursor:pointer;} +.trace_srh{margin:50px 30px;} +.trace_srh li{overflow:hidden;zoom:1;margin-top:15px;} +.trace_lb{float:left;width:400px;text-align:right;padding:6px 0 0 0;color:#565656;} +.trace_input{float:left;} +.trace_ipt{border: 1px solid #D5D5D5;font-size: 12px;height: 20px;line-height: 20px;overflow: hidden;padding: 1px 2px;width: 180px;} +.trace_btn{background: url(../images/btn_bg.jpg) repeat-x bottom;height:27px;width:100px;text-align:center;line-height:27px;font-weight:bold;font-size:12px;color:#FFF;border:0;cursor:pointer;} +#trace_big{position:absolute;display:none;width:400px;border:1px solid #ddd;overflow:hidden;} +#trace_big img{height:100%;width:100%;} +#trace_big div{position:absolute;top:0;left:0;width:400px;opacity:0.5;filter:alpha(opacity=50);background:#fff url(../images/loading220.gif) 50% 50% no-repeat;} +.traceintro{margin:0 20px;padding:20px 0;border-top:1px dotted #d4d4d4;overflow:hidden;zoom:1;} +.tracemethod{float:left;width:476px;padding:10px 0;} +.tracemethod .web{background:url(../images/tracemethod.gif) no-repeat;height:18px;text-indent:-9999px;} +.tracemethod .mobile{background:url(../images/tracemethod.gif) no-repeat 0 -18px;height:18px;text-indent:-9999px;} +.tracemethod dd{text-align:center;margin-top:20px;line-height:24px;} +.tracestep{color:#EA5404;font-weight:bold;} +.tracerline{border-right:1px dotted #d4d4d4;} +.trace_main{padding:15px;} +.trace_itemp{overflow:hidden;zoom:1;width:720px;} +.trace_itemp li{float:left;width:350px;color:#565656;font-size:14px;padding:0 0 0 10px;line-height:30px;height:34px;} +.trace_itemt{border-top:1px dotted #d5d5d5;padding:10px 0 0 0;} +.trace_itemt li{color:#565656;font-size:14px;padding:0 0 0 10px;line-height:30px;} +.trace_line{border-top:1px dotted #d5d5d5;} +.trace_img{padding:10px 0 0 5px;} +.trace_sf{background-color:#f9f0e1;height:34px;line-height:34px;padding:0 30px;margin-top:10px;font-size:14px;color:#565656;} +.trace_sf a:link{text-decoration:underline;color:#565656;} +.trace_sf a:visited{text-decoration:underline;color:#565656;} +.trace_imgname{font-size:14px;font-weight:bold;text-align:center;font-family:微软雅黑;color:#565656;line-height:26px;height:26px;overflow:hidden;} +/*优惠券升级*/ +.coupon_desc{position:relative;} +.brandshow{position:absolute;width:293px;border:1px solid #dadada;background-color:#FFF;margin-left:-210px;*margin-left:-240px;z-index:99;padding:15px 0 0 0;} +a.bClose{background-color:#1b6147;width:15px;height:15px;display:block;position:absolute;right:5px;top:5px;color:#FFF;cursor:pointer;text-align:center;line-height:15px;} +a.bClose:hover{color:#FFF;text-decoration:none;} +.linkshow{display:block;height:20px;} +.brandlist{overflow:hidden;zoom:1;padding:5px;margin:0;} +.brandlist dt{float:left;color:#565656;font-weight:bold;text-align:right;width:95px;} +.brandlist dd{overflow:hidden;zoom:1;text-align:left;margin:0;} +.brandlist dd div{float:left;margin-right:8px;white-space:nowrap;text-align:left;} +/*优惠券领取*/ +.couponbox{background:#f5f5f5;} +.couponinfo{padding:60px 20px 80px 340px;} +.cpok{background:url(../images/couponicon.gif) no-repeat 0 0;height:31px;line-height:31px;color:#ea5404;font-size:16px;font-weight:bold;padding:0 0 0 40px;} +.cpend{background:url(../images/couponicon.gif) no-repeat 0 -31px;height:31px;line-height:31px;color:#ea5404;font-size:16px;font-weight:bold;padding:0 0 0 40px;} +.cplink{margin-top:50px;font-size:14px;font-weight:bold;} +.cptips{margin-top:10px;color:#565656;} +.couponyan{overflow:hidden;zoom:1;} +.cplabel{line-height:25px;font-size:14px;} +.coupon_btn{background:url(../images/couponicon.gif) repeat-x 0 -65px;width:78px;height:28px;line-height:28px;color:#fff;font-size:14px;font-weight:bold;margin-top:20px;border:0;cursor:pointer;} + +/*收货地址新样式(单品页,购物车页使用)*/ +#regionSf,#regionSfv{float:left;} +em {font-style: normal;} +#store-selector .close ,#store-selector_sfv .close,#store-selector1 .close {background:url(../images/sf-stock.png) no-repeat 0 -70px;display: none;height: 17px;left: 345px;position: absolute;top: 35px;width: 17px;z-index: 2;} +#store-selector .tips{line-height:24px;color:red;padding:0 3px 0 0;} +#store-selector.hover .content, #store-selector.hover .close,#store-selector_sfv.hover .content, #store-selector_sfv.hover .close,#store-selector1.hover .content,#store-selector1.hover .close {display: block;} +#store-selector.hover .close ,#store-selector_sfv.hover .close,#store-selector1.hover .close{cursor: pointer;} +#store-selector .content ,#store-selector_sfv .content,#store-selector1 .content{background: none repeat scroll 0 0 #FFFFFF;border: 1px solid #CECBCE;box-shadow: 0 0 5px #DDDDDD;display: none;left: -45px;padding: 15px;position: absolute;top: 25px;width: 390px;} +#store-selector .juli1{left:-250px;} +#store-selector .juli2{left:140px;} +.m, .mt, .mc{overflow: hidden;} +.mt{cursor: default;} +#store-selector,#store-selector_sfv,#store-selector1 {float: left;height: 26px;margin-right: 6px;position: relative;z-index: 91;} +#store-selector.hover .text ,#store-selector_sfv.hover .text,#store-selector1.hover .text {border-bottom: 0 none;height: 25px;z-index: 1;} +#store-selector .text ,#store-selector_sfv .text,#store-selector1 .text {background:#FFFFFF;border: 1px solid #CECBCE;float: left;height: 23px;line-height: 23px;overflow: hidden;padding: 0 20px 0 4px;position: relative;top: 0;font-size:12px; font-weight:normal;} +#store-selector .text b ,#store-selector_sfv .text b,#store-selector1 .text b {background:url(../images/indexImg20130307.png?v=1.3) no-repeat -401px -2px;display: block;height: 24px;overflow: hidden;position: absolute;right: 0;top: 0;width: 17px;} +#store-selector .area-list li ,#store-selector_sfv .area-list li ,#store-selector1 .area-list li{clear: none;padding: 2px 0 2px 15px; font-size:12px;} +#store-selector .tab li ,#store-selector_sfv .tab li,#store-selector1 .tab li {clear: none;float: left;padding: 0;} +.SF-stock {position: relative;font-size:12px} +.SF-stock .tab {border-bottom: 1px solid #176246;float: left;height: 25px;overflow: visible;width: 100%;_overflow:hidden;} +.SF-stock .tab a{ color:#9e9e9e;border-top:1px solid #DDDDDD;border-left:1px solid #DDDDDD;border-right:1px solid #DDDDDD;cursor: pointer;float: left;height: 23px;line-height: 23px;margin-right: 3px;padding: 0 21px 1px 11px;position: relative;text-align: center;} +*html .SF-stock .tab a{position:static;} +.SF-stock .tab a{text-decoration:none;font-size:12px; font-weight:normal;} +.SF-stock .tab a:hover{color: #176246;} +.SF-stock .tab a.hover {background-color: #FFFFFF;border-top:1px solid #176246;border-left:1px solid #176246;border-right:1px solid #176246;color: #176246;height: 25px;line-height: 22px;padding: 0 20px 0 10px;text-decoration: none;} +.SF-stock .tab a i{background-image: url(../images/sf-stock.png);background-repeat: no-repeat;} +.SF-stock .tab a i{background-position: 0 -35px;display: block;height: 5px;overflow: hidden;position: absolute;right: 4px;top: 10px;width: 7px;} +.SF-stock .tab a:hover i {background-position: 0 -28px;right: 4px;top: 10px;} +.area-list {padding-top: 5px;} +.area-list li {clear: none;float: left;padding: 2px 0 2px 15px;width: 80px;} +.area-list li a {float: left;padding: 2px 4px;text-decoration:none;font-size:12px; font-weight:normal; color:#565656;} +.area-list li a:hover {background-color: #176246;color: #FFFFFF;} +.area-list .longer-area {width: 370px;} +.area-list .long-area {width: 170px;} +.sfregionTop{width:400px;margin:60px 10px 0px 40px;} +.sfregionTxt{line-height:26px;font-size:14px} +.sfregionBuy{margin:40px 10px 0px 180px;} +#store-selector1{height:24px;margin-right:3px;} +#store-selector1 .text{height: 20px;line-height: 20px;} +#store-selector1 .area-list{padding:5px 0 0 0;} +#store-selector1 .area-list li{line-height:20px;height:20px;padding:2px 0;width:60px;overflow:hidden;} +#store-selector1.hover .content{width:300px;} +#store-selector1 .close{left:255px;} +#store-selector1 .SF-stock ul.tab{padding:0;} +/*账户中心邮箱和手机验证*/ +.checkBox{padding:20px;} +.mailStepOne{background:url(../images/centerstep.gif) no-repeat;height:33px;} +.mailStepOneRe{background:url(../images/centerstep.gif) no-repeat 0 -33px;height:33px;} +.mailStepTwo{background:url(../images/centerstep.gif) no-repeat 0 -33px;height:33px;} +.mailStepTwoRe{background:url(../images/centerstep.gif) no-repeat 0 -66px;height:33px;} +.mailStepThree{background:url(../images/centerstep.gif) no-repeat 0 -66px;height:33px;} +.phoneStepOne{background:url(../images/centerstep.gif) no-repeat 0 -99px;height:33px;} +.phoneStepOneRe{background:url(../images/centerstep.gif) no-repeat 0 -132px;height:33px;} +.phoneStepTwoRe{background:url(../images/centerstep.gif) no-repeat 0 -165px;height:33px;} +.mailList{padding:20px 10px;width:600px;margin:10px auto;} +.mailList li{line-height:26px;} +.mailCheck{font-size:14px;color:#565656;padding:10px 0 0 100px;} +.mailInput{padding:0 0 0 42px;} +.phoneInput{padding:0 0 0 88px;overflow:hidden;zoom:1;} +.mailCheck .n{font-size:12px;font-weight:bold;color:#176246} +.mailCheck .e{color:#355fcd;} +.mailT{color:#9a9a9a;padding:10px 0 0 100px;} +.mailT2{color:#9a9a9a;padding:10px 0 0 126px;} +.phoneT{color:#565656;padding:10px 0 0 100px;} +.phoneT2{color:#9a9a9a;padding:10px 0 0 170px;} +.mailB{text-align:center;padding:10px 0 0 0;} +.phoneB{padding:10px 0 0 172px;} +.mailBtn{background: url(../images/btn_bg.jpg) repeat-x bottom ;border: 1px solid #565656;color: #FFFFFF;cursor: pointer;font-size: 12px;height: 22px;line-height: 22px;margin: 0;padding:5px;} +.mailBtn a:link{color: #FFFFFF;} +.mailBtn a:hover{color: #FFFFFF;} +.mailBtn a:visited{color: #FFFFFF;} +.mailNote{padding:20px;border:1px solid #dadada;background-color:#f5f5f5;margin:10px 0 0 0;} +.mailNote dt{font-weight:bold;color:#565656;line-height:26px;} +.mailNote dd{margin:0;padding:4px 0 0 0;overflow:hidden;zoom:1;line-height:23px;} +.checkInput{border:1px solid #dadada;font-size:12px;padding:2px;line-height:18px;height:18px;width:206px;} +.inputW{width:130px;} +.checkYes{height:30px;font-size: 18px;font-family: "微软雅黑";padding:5px 0 10px 70px;color:#565656;} +.submail{width:112px;height:23px;line-height:23px;text-align:center;background:#f5f5f5;color:#7d4f19;font-size:12px;margin-left:10px;_display:inline; border:1px solid dadada;} +.submail a{color:#fff;text-decoration:none; border:1px solid #565656; padding:4px; background:#69af05} +.submail a:hover{color:#fff;text-decoration:none;background:url(../images/productinfo.png) no-repeat 0 -124px;} +.checkBtn{background:#69af05;width:79px;height:23px; color:#fff;} +.checkBtn a{color:#fff;} +a.checkBtn:hover{color:#fff;background:url(../images/productinfo.png) no-repeat 0 -124px;} +.checkOver{color:#9a9a9a;font-weight:normal;} +.checkRevise{color:#345fcf;margin-left:10px;text-decoration:underline;} +a.checkRevise:hover{color:#345fcf;text-decoration:underline;} +a.checkRevise:visited{color:#345fcf;text-decoration:underline;} +ul li span.onError{background:url(../images/yzicon.gif) no-repeat;padding:0 0 0 16px;margin-left:5px;font-size:13px;color:#ea5404;} +ul li span.onSuccess{background:url(../images/yzicon.gif) no-repeat 0 -59px;padding:0 0 0 16px;margin-left:5px;font-size:13px;} +/*列表页地址筛选*/ +.filterBar{background-color:#f5f5f5;padding:0 0 0 12px; border:1px solid #dadada; border-top:none;} +.rowTitle{float:left;line-height:40px;color:#565656;} +.rowAddr{margin-top:7px;} +.rowFilter{float:left;color:#999999;margin-top:12px;_margin-top:9px;} +.rowFilter span{margin-left:6px;} +/*无法送达*/ +.getAddr{position:relative;top:-21px;background-color:#e8e8e8;height:26px;line-height:26px;font-size:14px;text-align:center;color:#8e8e8e;font-family:微软雅黑;} +/*公共左边栏*/ +.pLeft{width:158px;border:1px solid #dadada;overflow:hidden;float:left;} +h2.t{height:34px;line-height:34px;font-family:微软雅黑;font-size:14px;background-color:#f4f4f4;color:#666666;text-indent:10px;} +h2.tm{height:34px;line-height:34px;font-family:微软雅黑;font-size:12px;background-color:#f4f4f4;color:#666666;text-indent:10px;} +.pClass{padding:8px 0px 8px 10px;overflow:hidden;zoom:1;color:#565656;} +.pClass strong a{display:block;width:138px;} +.pClass a{display:block;float:left;width:66px;color:#565656;line-height:22px;height:22px;overflow:hidden;margin-right:8px;} +.pSide{padding:0 0 8px 0;} +.pSide li{overflow:hidden;zoom:1;padding:8px 8px 0 8px;height:60px;} +.pSide .pImg{float:left;width:70px;} +.pSide .pImg img{width:60px;height:60px;} +.pSide .pTxt{overflow:hidden;zoom:1;} +.pSide .t{display:block;height:40px;line-height:20px;overflow:hidden;color:#565656;} +.pSide .t a{color:#565656;} +.pSide .t:hover{color:#565656;} +.pSide .p{font-weight:bold;color:#ea5405;} +.pBuy{padding:0 0 8px 0;} +.pBuy li{padding:8px 8px 0 8px;} +.pBuy .pImg{text-align:center;} +.pBuy .pImg img{width:100px;height:100px;} +.pBuy .t{display:block;height:40px;line-height:20px;overflow:hidden;color:#565656;} +.pBuy .t a{color:#565656;} +.pBuy .t:hover{color:#565656;} +.pBuy .p{font-weight:bold;text-align:center;color:#EA5405;} +.pBuy .pTxt .p a{color:#EA5405;} +/*邮件订阅*/ +.simplePage{border:1px solid #dadada;background-color:white;} +.simpleT{background-color:#f4f4f4;height:34px;line-height:34px;font-size:14px;font-family:微软雅黑;font-weight:bold;color:#565656;text-indent:10px;} +.simpleBox{padding:20px;zoom:1;} +.simpleBox .tips{text-align:left;line-height:30px;padding-left:200px;} +.mailFeed{margin:10px 10px 0 260px;zoom:1;} +.mailDetail input{ vertical-align:middle;} +.mailDetail .input{border:1px solid #cccccc;padding:3px;width:200px;} +.mailFeed li{color:#565656;line-height:24px;margin-top:10px;} +.mailDetail{margin:10px 10px 0 260px;zoom:1;} +.mailDetail .t{font-size:14px;font-weight:bold;line-height:26px;} +.mailFeedTips{text-align:center;padding:20px 10px 0 10px;margin:10px 10px 0 10px;border-top:1px dashed #e7e7e7;} +.mailFeedTips span{color:red;} +.mailFeedTips a{text-decoration:underline;color:#3364cb;} +.mailFeedTips a:hover{color:#3364cb;} +.feedYes{color: #0f862d;font-family: "微软雅黑";font-size: 24px;height: 40px;line-height: 40px;padding: 5px 0 0 150px;} +.mailDY{margin-right:6px; padding:8px 0px 0px 0px;} +.mailDYtit{overflow:hidden;zoom:1;} +.mailDYtit h3{font-size:12px;float:left;color:#565656;} +.mailDYtit span{float:right;color:#999999; padding:0px 20px 0px 0px} +.mailDYtit span a:link{color:#999999;font-size:12px;} +.mailDYtit span a:visited{color:#999999;} +.mailDYitem{zoom:1;} +.mailDYitem span{float:left;} +.mailDYitem .i{width:100px;height:20px;line-height:20px;padding:0 2px;border:1px solid #cccccc;margin-right:2px;display:inline;} +.mailDYitem .btn{background:url(../images/footer_ico.jpg) no-repeat -146px -64px;height:22px;width:50px;border:0;display:block;} +.mailDYitem .s{height:22px;border:1px solid #cccccc;margin-right:3px;display:inline;} +/*特色馆*/ +.teseguan{height:120px;width:835px;overflow:hidden;position:relative;} +.teseguanCont{overflow:hidden;zoom:1;} +.teseguanPic{float:left;width:202px;height:120px;margin-right:9px;display:inline;overflow:hidden;} +.tesebtn{width:40px;height:40px;display:block; background-image:url(../images/tesebtn.gif); background-repeat:no-repeat; position:absolute;cursor:pointer;top:40px;} +#prevBtn{left:10px;} +#nextBtn{right:10px;background-position:-40px 0;} + +/*商品信息页面收藏按钮*/ +.sc-icon{padding:3px 20px 3px 25px;background:url(../images/indexImg20130307.png?v=1.3) no-repeat 0px -186px;font-size:12px;cursor:pointer;} + + + +/*企业专区频道*/ +.pbox .sidebarA{width: 155px;} +.sidebarB{width:835px;} +.companytihuo{border:1px solid #dadada;margin-top:10px;} +.companyad{border:1px solid #dadada;margin-top:10px;} +.company_note{margin-top:10px;background-color:#f5f5f5;border:1px solid #dadada;height:32px;line-height:32px;padding:0 10px;color:#565656;clear:both;} +.company_note span{font-weight:bold;color:#ea5404;} +.company_tbl{margin-top:10px;} +.company_tbl th{color:#565656;font-family:"微软雅黑";font-size:18px;background-color:#f5f5f5;border-bottom:1px solid #dadada;height:49px;line-height:49px;text-align:left;padding:0 0 0 30px;} +.company_tbl th span{color:#ea5404;} +.company_tbl td{height:49px;border-bottom:1px solid #dadada;padding:0 0 0 30px;} +.company_tbl td img{ vertical-align:middle;margin-right:10px;} +.company_tbl .bdr{border-right:1px solid #dadada;} +.company_form{padding:20px;border:1px solid #dadada;margin-top:10px;} +.company_txt{background-color:#f5f5f5;height:38px;line-height:38px;padding:0 10px;color:#565656;} +.company_txt span{color:red;} +.formitem{margin-top:20px;} +.list_form{overflow:hidden;zoom:1;margin-top:8px;} +.formlabel{color: #565656;float: left;height: 16px;padding: 4px 6px 0 5px;text-align: right;width: 260px;} +.formipt{border: 1px solid #d5d5d5;font-size: 12px;height: 20px;line-height: 20px;overflow: hidden;padding: 1px 2px;width: 180px;} +.forminput{float: left;overflow: hidden;} +.formtxt{border: 1px solid #d5d5d5;font-size: 12px;height: 100px;line-height: 20px;padding: 1px 2px;resize: none;width: 300px;} +.reg_msg{line-height:24px;padding:0 0 0 5px;} +#slidecont {height: 200px;position: relative;width: 835px;z-index: 0;margin:0;float:none;} +.hotpic {height: 200px;margin: 0 0 0 4px; overflow: hidden;padding: 0;position: relative;width: 835px;margin:0;} +.num{position: absolute; right: 6px;top: 170px;z-index: 10;} +.tbl_cart tbody tr.manzeng td{border:0 none;padding:4px 0;} +.tbl_cart tbody tr.manzenglast td{padding:4px 0;} +.tbl_cart tbody tr span.zengp{color:#176146;font-weight:bold;} +.tbl_cart tbody tr span.zengp{color:#176146;font-weight:bold;} +/*会员升级*/ +.supvip{padding:30px 50px 30px 200px;} +.supvip ul li{padding:5px 0;overflow:hidden;zoom:1;} +.supvip span{float:left;display:block;} +.supvip .slabel{width:150px;text-align:right;font-size:14px;font-family:微软雅黑;height:34px;line-height:34px;} +.supvip .sinput{overflow:hidden;zoom:1;} +.supvip .st,.supvip .sbutton{padding:0 0 0 150px;} +.supvip .st{color:#ea5404;font-family:微软雅黑;font-size:18px;font-weight:bold;} +.supvip .stext{height:22px;line-height:22px;font-size:14px;padding:5px 3px;border:1px solid #cccccc;width:178px;} +.supvip .yantext{height:22px;line-height:22px;font-size:14px;padding:5px 3px;border:1px solid #cccccc;width:90px;} +.supvip .sbtn{background:url(../images/btn_bg.jpg) repeat-x bottom;height:34px;line-height:34px;width:80px;border:0 none;text-align:center;font-size:12px;font-family:微软雅黑;color:white;cursor:pointer;font-size:14px;} +.supvip .smsg{line-height:34px;padding:0 0 0 10px;color:#EA5404;font-family:微软雅黑;} +.sWindow{border:2px solid #176246;display:block; position:fixed;width:400px;height:146px; top:250px;left:50%;margin-left:-200px;background-color:#fff;z-index:999;padding:0px 5px 0px 0px;line-height:18px;color:#0e6248;font-family:微软雅黑;_position:absolute;_top:expression(eval(document.documentElement.scrollTop+300));overflow:hidden;zoom:1;} +.sWindow div{margin-top:6px;font-family:微软雅黑;} +.sWindow .sLeft{float:left;background:url(../images/indexsprite.png) no-repeat 8px -66px;width:90px;height:90px;margin:45px 0 0 10px;_display:inline;overflow:hidden;} +.sWindow .sContent{overflow:hidden;zoom:1;} +.sWindow .sOk{color:#ea5404;font-size:14px;font-weight:bold;} +.sWindow .sVip{color:#ea5404;} +.sWindow .sGobuy{font-size:14px;font-weight:bold;} +.sWindow font{color:#ea5404;font-weight:bold;font-size:12px;} +.sWindow .sButton{width:80px;height:24px;line-height:24px;display:block;margin-right:5px;background:url(../images/btn_bg.jpg) repeat-x bottom;color:white;text-align:center;} +.sClose{display:block; position:absolute;width:18px;height:18px; background:#896938;top:5px;right:10px;cursor:pointer;text-indent:-9999px;background:url(../images/indexsprite.png) no-repeat 0 0;} +.sOverlay{position: absolute; z-index: 998; top: 0px; left: 0px; width: 100%;background-color: #999999;opacity: 0.5;filter:alpha(opacity=50);height:100%;} +.giverCard{padding: 0 0 0 5px;width: 620px;} +.giverInput{background:0 none;padding:5px;position:relative;} +.inputArea{width:612px;height:100px;border:1px solid #eeeeee;resize:none;font-size:12px;padding:2px 5px;line-height:18px;color:#666666;} +.giverTip{color:#fa9600;float:right;} +.giverShow{color:#4c9810;margin-left:10px;cursor:default;} +.inputArea.inputTips{color:#c2c2c2;} +.giverItem{display:none;position:absolute;border:1px solid #999999;padding:15px;width:300px;top:0;left:150px;background-color:white;line-height:24px;} +.new-pwd-link{ color:#669900; text-decoration:none;} +.new-pwd-link:hover{ color:#669900; text-decoration:underline;} +.payment-new0 label, .payment-new0 .payment_pwdLink{ display:inline-block; line-height:24px;} +.payment-new0 .payment_pwd{ width:147px; height:24px; line-height:24px; border-left:2px solid #dcdcdc; border-top:2px solid #dcdcdc; border-right:1px solid #dcdcdc; border-bottom:1px solid #dcdcdc; padding:0 5px; margin-right:10px;} +.payment-new0 .payment_pwdLink{ color:#969696; text-decoration:none;} +.payment-new0 .payment_pwdLink{ color:#969696; text-decoration:underline;} +/*投诉与建议 start*/ +/*right*/ +.complaint_right{ width:auto; color:#646464; font-size:12px;} +.complaint_form li{ min-height:30px; margin-top:20px;} +.complaint_form li font{ font-size:12px; color:#fa6400;} +.complaint_right .title{ font-weight:bold; height:20px; padding-top:10px; border-bottom:1px solid #dcdcdc;} +.complaint_form li label{ width:70px; line-height:30px; float:left; text-align:right;} +.complaint_form .default-border{ border:1px solid #dcdcdc;} +.complaint_form .ok-border{ border:1px solid #69af05;} +.complaint_form .error-border{ border:1px solid #fa6400;} +.complaint_form .comp-input, .complaint_form .comp-input1{ padding:0 5px; height:28px; line-height:28px;} +.complaint_form .comp-input{ width:248px;} +.complaint_form .comp-input1{ width:58px;} +.complaint_form .comp-textarea{ padding:0 5px; width:428px; line-height:20px; font-size:12px;} +.complaint_form .m0{ margin-bottom:10px;} +.complaint_form .m0{ margin-bottom:10px;} +.complaint_form .v-em{ font-size:12px; line-height:30px;} +.complaint_form .v-0{ margin-right:8px;} +.complaint_form .v-link{ color:#6e9b0c;} +.complaint_form .comp-btn, .complaint_form .comp-btnOn{ display:block; margin:20px 65px; height:40px; line-height:40px; font-size:16px; text-align:center; } +.complaint_form .comp-btn{ width:98px; background:#69af05; border-radius:3px; color:#fff; border:none; cursor:pointer;} +.complaint_form .comp-btnOn{ width:98px; background:#fff; border:1px solid #ddd; border-radius:3px; color:#646464;} +.complaint_form .comp-error{ width:254px; height:18px; padding:6px 10px; color:#fa6400; display:inline-block;} +/*dialog_box*/ +.bg_layer{ position: fixed; z-index: 100; top: 0px; left: 0px; height: 100%; width: 100%; background:#000; opacity:0.2; filter:alpha(opacity=20);} +.dialog_box{ width:438px; height:138px; border:1px solid #dedede; background:#fff; position:fixed; z-index:9999; text-align:center;} +.dialog_box .close{ display:block; float:right; margin:11px 13px; width:15px; height:15px; background:url(../images/close.jpg) left top no-repeat;} +.dialog_box .dialog-content{ padding:23px; line-height:22px; } +.dialog_box .dialog-btn{ display:inline-block; margin:0 auto; padding:0 20px; height:24px; line-height:24px; background:#77ac26; color:#fff;} +/*投诉与建议 end*/ +/*N元M件常用地址样式*/ +.commAddr{padding:0 0 10px 0;overflow:hidden;zoom:1;} +.commAddr .ct{border-bottom:1px solid #196247;color:black;height:23px;margin-bottom:7px;} +.commAddr li{float:left;width:170px;height:20px;overflow:hidden;margin-right:10px;_display:inline;} + +/*订单页面加推荐css*/ +.award{ position:relative;} +.award .award-price{ min-width:82px; padding:0 5px; height:32px; line-height:32px; position:absolute; top:26px; right:40px; border:1px solid #c9c9c9; border-radius:3px; color:#636363; font-size:14px; text-align:center; overflow:hidden;} +.award .award-price em{ color:#70b115;} +.award .aw-recommend{ position:relative; top:55px; width:462px; margin:0 auto;} +.award .recomm-title{ font-size:14px; height:20px; line-height:20px; padding:25px 0 15px 0;} +.recomm-bg{ position:relative; background:url(../images/safe/r1.png) top left no-repeat; width:236px; height:203px; margin:0 auto;} +.recomm-bg em{ height:38px; line-height:38px; font-family:microsoft yahei; font-size:40px; color:#fff; display:inline-block; margin:48px 56px;} +.recomm-bg .ylq-img{ position:absolute; right:-15px; bottom:-8px} +.recomm-bg1{ position:relative; background:url(../images/safe/recommend4.jpg) top left no-repeat; width:286px; height:182px; margin:0 auto;} +.recomm-bg2{ position:relative; background:url(../images/safe/recommend3.jpg) top left no-repeat; width:225px; height:205px; margin:0 auto;} +.recomm-style{ text-align:center;} + +.message-box { position:absolute; background:#fff; border:1px solid #d6d6d6; border-radius:3px; text-align:center; color:#636363; } +#ac-awardDetails{ right:-68px; top:167px; width:278px; height:96px;} +#ac-awardDetails .word{ display:block; line-height:22px; padding:18px; text-align:left; font-size:14px; color:#000;} +#ac-weixinTips{ left:-20px; top:194px; width:314px; height:130px; box-shadow:1px 2px 3px #d6d6d6; } +#ac-weixinTips .wxImg{ float:left; width:128px; height:128px; padding:5px 10px 0 5px;} +#ac-weixinTips .wxWord{ float:left; width:161px; display:block; line-height:30px; padding:18px 10px 18px 0; text-align:left; font-size:14px; color:#000;} +.triangle-border { position:absolute; left:130px; overflow:hidden; width:0; height:0; border-width:10px; border-style:solid dashed dashed dashed; } +.tb-border { bottom:-20px; border-color:#d6d6d6 transparent transparent transparent; } +.tb-background { bottom:-19px; border-color:#fff transparent transparent transparent; } + +.recomm-style .ac-tips{ position:relative;} +.recomm-style .sty1{ display:block; padding-top:16px; font-size:14px; color:#636363;} +.recomm-style .sty1 em{ color:#6aaf06;} +.recomm-style .sty3{ display:block; width:252px; height:44px; line-height:44px; margin:0 auto; background:#6aaf06; border-radius:3px; color:#fff; text-align:center; font-size:14px; font-weight:bold; letter-spacing:0.2em;} +.recomm-style .sty3:hover{ text-decoration:none;} +.recomm-style .weixin{ padding:40px 0; height:70px;} +.recomm-style .weixin .left{ padding:24px 0;} +.recomm-style .weixin .left, .recomm-style .weixin .right{ float:left; font-size:14px;} +.weixin .right a{ width:80px; display:inline-block; color:#636363; text-decoration:none;} +.weixin .right em{ display:block; width:80px; height:20px; line-height:20px; cursor:pointer;} +.weixin .right i{ display:inline-block; cursor:pointer; background:url(../images/safe/recommend2.png) left top no-repeat; width:45px; height:45px;} +.weixin .right i.i1{ background-position:-5px -6px; } +.weixin .right i.i2{ background-position:-55px -6px; } +.weixin .right i.i3{ background-position:-103px -6px; } +.weixin .right i.i4{ background-position:-152px -6px; } +.award-link{ width:334px; height:90px; margin:0 auto;} +.award-link span{ display:block;font-size:14px; } +.award-link .ipt, .award-link .btn{ border:none; outline:none; border-radius:3px; height:28px; line-height:28px;} +.award-link .ipt{ width:236px; padding:0 10px; background:#e3e3e3; color:#000; } +::-ms-clear{display: none;} +::-ms-reveal{display: none;} +.award-link .btn{ margin-left:5px; cursor:pointer; width:66px; background:#6c9c0a; text-align:center; color:#fff;} +.award-link .word{ height:18px; line-height:18px; padding:8px 12px; text-align:left;} + +.invite{ padding:20px 0; width:260px; margin:0 auto;} +.invite-w{ width:260px; margin:0 auto; text-align:left;} +.invite span{ display:block; padding:6px 0 6px 25px; background:url(../images/safe/recommend5.jpg) left center no-repeat; height:20px; line-height:20px; text-align:left; font-size:14px;} +.order_yxk_list1 .center_td6{ padding-right:10px; font-size:16px; text-align:right;} +.td_c8{ font-size:16px;} +.award-word{ height:20px; line-height:20px; padding:30px 0 5px 15px; font-size:16px; color:#636363;} +.award-word em{ color:#70b115;} +.titlehead .pr10{ padding-right:10px;} +.toQuestion{border:1px solid #669900;padding:5px 10px;color:#669900;} +.toQuestion a:link,.toQuestion a:visited{color:#669900;} +.toQuestion a:hover{color:#669900;text-decoration:underline;} + +/*推荐弹层*/ +.sh_tj_w{ background:#fff; width:280px; min-height:60px; border-radius:3px; border:1px solid #d7d7d7;} +.sh_tj_w .ui-tjworld{ padding:20px; text-align:center; font-size:12px; line-height:18px;} +.sh_tj_w .ui-tjbtnBox{ margin:0 auto; width:60px; margin-bottom:20px;} +.sh_tj_w .ui-tjbtn{ width:60px; height:25px; background:#69af05; border-radius:2px; outline:none; border:none; color:#fff; text-align:center; margin:0 auto; cursor:pointer;} + +.window_bg{ width: 100%; height: 100%; position: absolute; z-index: 99997; left:0; top:0; background: #646464; opacity: 0.5; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);} +.oDialog{ border:1px solid #ddd; position: fixed; z-index:99998; color:#646464; } +/*推荐end*/ + +/*新增精选分类*/ +.newfltitie3,.newfltitie4,.newfltitie5,.newfltitie6,.newfltitie7,.newfltitie8,.newfltitie9,.newfltitie452{ background:url(../images/left_lm_m_a.png) #81a84a no-repeat ;height:35px;line-height:35px;font-size:15px;font-family:微软雅黑;color:#fff;padding:0 0 0 46px;} + +.newfltitie3{ background-position:16px -208px;}/*冲调茶饮*/ +.newfltitie4{ background-position:16px -317px;}/*熟食蛋奶*/ +.newfltitie5{ background-position:16px -100px;}/*休闲食品*/ +.newfltitie6{ background-position:16px -154px;}/*水果蔬菜*/ +.newfltitie7{ background-position:16px -41px;}/*酒水饮料*/ +.newfltitie8{ background-position:16px 10px;}/*肉类海鲜*/ +.newfltitie452{ background-position:16px -264px;}/*粮油副食*/ +.newfltitie9{background-position: 16px -373px;}/*南北干货*/ + +.promoItem{margin-bottom:10px;margin-top: 10px;} +.promoItem .yeTip-1 {background: rgba(0, 0, 0, 0) url("../images/ordericons.png") no-repeat scroll -36px 0;cursor: pointer;display: block;float: left;height: 17px;margin-left: 5px;position: relative;width: 17px;} +.commPage-1 {background-color: #ffffff;border: 1px solid #dadada;left: -25px;position: absolute;width: 385px;z-index: 5;top:24px;line-height: 20px;display: none;} +.dmItem{padding:10px;} +.spArror{position: absolute;top:-8px;width: 8px;left:30px;} +.spArror .aBg,.spArror .aCt {display: block;font-size: 0;height: 0;line-height: 0;overflow: hidden;width: 0;} +.spArror .aBg{border-right: 7px dashed rgba(0, 0, 0, 0);border-right: 7px dashed white\0;border-bottom: 7px solid #999999;border-left: 7px dashed rgba(0, 0, 0, 0);border-left: 7px dashed white\0;position: relative;border-top:0 none;} +.spArror .aCt{border-right: 7px dashed rgba(0, 0, 0, 0);border-right: 7px dashed white\0;border-bottom: 7px solid #FFFFFF;border-left: 7px dashed rgba(0, 0, 0, 0);border-left: 7px dashed white\0;position: relative;border-top:0 none;margin:-6px 0 0 0px} +:root .spArror .aBg{border-right: 7px dashed rgba(0, 0, 0, 0);border-left: 7px dashed rgba(0, 0, 0, 0);} +:root .spArror .aCt{border-right: 7px dashed rgba(0, 0, 0, 0);border-left: 7px dashed rgba(0, 0, 0, 0);} +*+html .spArror .aBg{border-right: 7px dashed white;border-left: 7px dashed white;} +*+html .spArror .aCt{border-right: 7px dashed white;border-left: 7px dashed white;} +*html .spArror .aBg{border-right: 7px dashed white;border-left: 7px dashed white;} +*html .spArror .aCt{border-right: 7px dashed white;border-left: 7px dashed white;} + + +.mask_box {width:425px;height:350px;background:#fff;position: fixed;left: 50%;top:50%;margin-left: -212px;margin-top: -175px;z-index: 1002;} +#mask_con {position: absolute; top: 0px; filter: alpha(opacity=50); background-color: #777;z-index: 1000; left: 0px;opacity:0.5; -moz-opacity:0.5;} +.mask_box .mask_close{width: 20px;height: 20px;position: absolute;right: 20px;top:20px;cursor: pointer;} +.mask_box p{text-align: center;color: #000;font-weight: bold;font-size: 16px;} +.mask_box .mask_go_define{width: 100%;height: 35px;line-height: 35px;margin:0 auto;background: #69af05;color: #fff;display: block;text-align: center; margin-top: 30px;} +.message_div {width:100%;margin-top: 30px;} +.message_div input{width:60%;} +.message_div a {position:absolute;width:40%;height:37px;text-align: center;background-color:#69af05;color:#fff;right:-1px;top:0px; line-height: 37px;} +.message_div a.time_clock{background-color: #969696;} +.mask_box_con {width:320px;margin:0 auto;margin-top: 70px;} +.mask_box_con input {border:1px solid #dcdcdc;height:35px;text-indent: 20px;} +.mask_box_con input.phone_div_phone{margin-top: 30px;width:100%;} +.mask_box_con .warn_text {color:#fb8e19;font-size: 12px;text-align: left;text-indent: 20px;font-weight: normal;margin-top: 5px;position:absolute;} +.promoItem .yeTip-1 {background: rgba(0, 0, 0, 0) url("../images/ordericons.png") no-repeat scroll -36px 0;cursor: pointer;display: block;float: left;height: 17px;margin-left: 5px;position: relative;width: 17px;} +.commPage-1 {background-color: #ffffff;border: 1px solid #dadada;left: -25px;position: absolute;width: 385px;z-index: 5;top:24px;line-height: 20px;display: none;} +.promoItem_deductible{display:block;margin-bottom: 10px;} +.promoItem_nondeductible{display:none;margin-bottom: 10px;} +.usecard_num_total {color:#ff0000;margin-left: 5px;margin-right: 5px;width: 57px;display:inline-block;} +.promoItem_deductible input {display:inline-block;width:50px;height:20px;border:1px solid #dcdcdc;text-align: center;color:#969696;margin:0 5px;} +.promoItem_deductible .warning {display:inline-block;margin-left: 20px;color:#fb8e19;} +.mask_box_con input.inp {color: #ccc;} + +.payment-new0 {margin:10px 0;} +.youxuan .usecard_price_total_1{max-width: 56px;overflow: hidden; display: inline-block;height: 14px; vertical-align: middle;line-height: 14px;} +.message_div a.mask_go_default{background:#666;cursor:default;pointer-events:none;} +.mask_box a.mask_go_default {background:#666;cursor:default;pointer-events:none;} +.mask_box a.mask_go_on {background:#69af05;cursor:default;pointer-events:none;} + +.znxx ul li p.promoItem_deductible,.znxx ul li p.promoItem_nondeductible{text-indent: 0px;} + +.mask_box p.mask_sure_tip{color:#fb8e19;font-size: 12px;text-align: left;text-indent: 20px;font-weight: normal;margin-top: 5px;} \ No newline at end of file diff --git a/e3-search-web/src/main/resources/static/css/base_w1200.css b/e3-search-web/src/main/resources/static/css/base_w1200.css new file mode 100644 index 0000000..4ca256c --- /dev/null +++ b/e3-search-web/src/main/resources/static/css/base_w1200.css @@ -0,0 +1,511 @@ +html {_background-image: url(about:blank);_background-attachment: fixed;} +body {color:#666666;font: 12px/150% Arial,Verdana,"宋体";margin: 0;padding:0;} +body {min-width:1200px;} +h1, h2, h3, h4, h5, h6, p, a, em, font, img, strong, b,dl, dt, dd,form, label,ol,ul,li,legend,span,input{margin:0;padding:0;} +ol,ul{list-style:none;} +img{border:0;} +a{text-decoration:none;color:#666666;} +a:hover{text-decoration:none;} +a.red{color:#FA6400;} +.clr{clear:both;display:block;font-size:0;height:0;line-height:0;overflow: hidden;padding:0px;margin:0px;} +.clear{clear:both;padding:0px;font-size:0px;margin:0px;height:0px;line-height:0;overflow:hidden;display:block;} +.clear1{clear:both;height:5px;font-size:0px;margin:0px;padding:0px;line-height:0;overflow:hidden;display:block;} +.clear2{clear:both;height:10px;font-size:0px;margin:0px;padding:0px;line-height:0;overflow:hidden;display:block;} +.fl{float:left;} +.fr{float:right;} +.hide{display:none;} +em{font-style:normal;} +input{outline:none;} + +/*顶部浮动*/ +.topMenu{width:100%;height:33px;text-align:center;position:relative;z-index:101;padding:0px;background:#f7f7f7;border-bottom:1px solid #eeeeee;} +.topMenu a{color:#969696;} +.topMenu a:hover{color:#669900;} +.pW{width:1200px;margin:auto;} +.topTh li{float:left;position:relative;line-height:33px;} +.topTh .d2{padding:0 10px 0 28px;} +/*首页城市选择遮罩层*/ +.indexshadow{font-size:14px;width:580px;background-color:#fff;border:5px #767574 solid;position:absolute;top:0;left:0;display:none;z-index:99999;} +#screen{width:100%;height:100%;position:absolute;top:0;left:0;display:none;z-index:9999;background-color:#666;opacity:0.7;filter:alpha(opacity=70);-moz-opacity:0.7;} +.indexshadow .city_top{height:50px; padding-left:10px;border-bottom:1px solid #DCDCDC; line-height:50px;} +.indexshadow .city_top span{ float:left; font-size:12px; color:#000;} +.indexshadow .city_top .taddress{ +padding:0 10px 0 10px; +height:26px; +line-height:26px; +background-image: -moz-linear-gradient(top, #65BC02, #6DC403); /*火狐*/ +background: -o-linear-gradient(top, #65BC02 0%,#6DC403 100%);/*Opera*/ +background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #65BC02), color-stop(1,#6DC403)); /*Chrome*/ +filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#65BC02', endColorstr='#6DC403', GradientType='0'); /*IE*/ +background: -ms-linear-gradient(top,#65BC02 0%,#6DC403 100%); /*IE10以上*/ +border-radius:2px; +font-size:14px; +font-weight:bold; +text-align:center; +margin:10px 0 0 0; +} +.indexshadow .city_top .taddress a{color:#FFF; } +.indexshadow .city_middle{margin:0px 0px 5px 0px;padding-left:10px;} +.indexshadow .city_middle ul li{width:45px; height:40px; line-height:40px; float:left; text-align:center;} +.indexshadow .city_middle ul li a{ color:#0099FF;} +.indexshadow .city_bottom{margin:5px 0px 0px 0px; padding-bottom:10px;} +.indexshadow .city_bottom .quyu{ float:left; text-align:center; height:35px; line-height:35px; width:95px; border-top:1px solid #f5f5f5;border-right:1px solid #f5f5f5; color:#969696;} +.indexshadow .city_bottom ul{ width:100%;*width:480px;border-top:1px solid #f5f5f5;} +.indexshadow .city_bottom ul li{ color:#333333; float:left; height:35px; width:50px; text-align:center; height:35px; line-height:35px; cursor:pointer;} +.indexshadow .city_bottom .huadong .on{background:url(../images/foot/icity_bg.png) center bottom no-repeat; color:#FFF;z-index:2; position:relative; bottom:-1px;} +.indexshadow .city_bottom .htcity{margin:0 0 0 95px; width:480px; overflow:hidden; z-index:1; position:relative;} +.indexshadow .city_bottom .htcity dl{text-align:center; width:100%; float:left;background:#f9f9f9;border-top:1px solid #69af05;} +.indexshadow .city_bottom .htcity dl dd a{ padding-left:2px; text-align:center; width:65px; height:25px; line-height:25px; overflow:hidden; float:left;text-decoration:none; color:#333333; display:block; font-size:12px;} +.indexshadow .city_bottom .htcity dl dd a:hover{ color:#669900;text-decoration:none;} +.indexshadow .city_bottom .htcity dl dd a.city-long{padding-left:2px; text-align:center; width:132px; height:25px; line-height:25px; overflow:hidden; float:left;text-decoration:none; color:#333333; display:block;} +.indexshadow .city_bottom .htcity dl dd a.city-long:hover{ color:#669900;text-decoration:none;} +/*顶部城市选择*/ +.topTh .d6 p{width:72px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .pshort{width:50px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .pmiddle{width:60px; height:20px; line-height:20px; border:1px solid #DCDCDC; margin:6px 0 0 0; overflow:hidden;} +.topTh .d6 .city_title{ margin:0 0 0 8px; *margin:0 0 0 -10px; width:48px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 .city_title1{ margin:0 0 0 5px; *margin:0 0 0 -10px; width:30px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 .city_title2{ margin:0 0 0 5px; *margin:0 0 0 -10px; width:40px; overflow:hidden; display:block; color:#333333;} +.topTh .d6 b{background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;position:absolute;top:15px;right:5px;} +.topTh .d6.hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .d6 .blank,.topTh .d6 .outline{width:72px;} + +.topTh .blank1,.topTh .outline1{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank1{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:50px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .outline1{z-index:1;left:6px;width:50px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .blank2,.topTh .outline2{display:none;position:absolute;border:1px solid #dadada;background-color:white;} +.topTh .blank2{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:60px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .outline2{z-index:1;left:6px;width:60px;height:8px;top:24px;border:0 none;overflow:hidden;} +.topTh .d6 .dd{display:none; width:438px;border:1px solid #DCDCDC; text-align:left; margin:0;} +.topTh .d6.hover .blank{top:6px;height:22px;z-index:-1; margin:0;} +.topTh .d6.hover .outline{z-index:1;top:25px; left:1px;} +.topTh .d6.hover .blank1{top:6px;height:22px;z-index:-1; margin:0; display:block;} +.topTh .d6.hover .outline1{z-index:1;top:25px; left:1px;display:block;} +.topTh .d6.hover .blank2{top:6px;height:22px;z-index:-1; margin:0; display:block;} +.topTh .d6.hover .outline2{z-index:1;top:25px; left:1px;display:block;} +.topTh .d6 .city_top{ margin:5px 10px 5px 10px;height:30px; border-bottom:1px solid #DCDCDC; line-height:30px;} +.topTh .d6 .city_top span{ float:left; color:#969696;} +.topTh .d6 .city_top .off{ height:25px; float:right;background: url(../images/index_icon_new.png) -245px -33px no-repeat;width:18px; height:18px; margin:5px 0 0 0; cursor:pointer;} +.topTh .d6 .city_middle{margin:0px 10px 5px 10px;} +.topTh .d6 .city_middle ul li{width:38px;} +.topTh .d6 .city_middle ul li a{ color:#0099FF;} +.topTh .d6 .city_bottom{margin:5px 10px 15px 10px; color:#969696;} +.topTh .d6 .city_bottom .quyu{ float:left; height:25px; line-height:25px; color:#969696;} +.topTh .d6 .city_bottom ul{ float:left; width:360px; *width:380px; display:inline;} +.topTh .d6 .city_bottom ul li{ width:40px; text-align:center; height:25px; line-height:22px; cursor:pointer; color:#333333;} +.topTh .d6 .city_bottom .huadong .on{background:url(../images/foot/city_bg.png) center bottom no-repeat; color:#FFF;} +.topTh .d6 .city_bottom .htcity dl{ text-align:center; float:left; width:425px;background:#F5F5F5; border-top:1px solid #669900; margin-top:-1px; } +.topTh .d6 .city_bottom .htcity dl dd a{ display:block; padding-left:10px; width:50px;line-height:25px; height:25px; float:left; text-align:center; overflow:hidden; color:#333333;} +.topTh .d6 .city_bottom .htcity dl dd a:hover{color:#669900;} +.topTh .d6 .city_bottom .htcity dl dd a.city-long{display:block; padding-left:10px; width:110px;line-height:25px; height:25px; float:left; text-align:center; overflow:hidden;} +.topTh .d3,.topTh .d4{width:30px;height:30px;} +.topTh .d1 { color:#969696;} +.topTh .d2 q,.topTh .d3 q,.topTh .d4 q{height:16px;position:absolute;top:9px;quotes:none;} +.topTh .d2 q{background:url(../images/header.png) no-repeat -73px -122px;width:10px;left:10px;transition:all 0.2s ease 0s;} +.topTh .d2.hover q{background:url(../images/header.png) no-repeat -73px -138px;} +.topTh .d2 .dd{display:none;top:32px;width:230px;left:-50px;padding:15px 0 0 0;} +.topTh .d2 .dd .sf-client{margin-bottom:10px;margin-left:15px;position:relative;text-align:left;} +.topTh .d2 .dd .client-img{width:73px;height:74px;overflow:hidden;background:url(../images/header.png) no-repeat 0 -93px;display:block;} +.topTh .d2 .dd i{position:absolute;width:50px;height:29px;left:80px;top:5px;background:url(../images/header.png) no-repeat -73px -93px;display:block;} +.topTh .d2 .dd .client-txt{position:absolute;left:95px;top:34px;} +.topTh .d2 .dd .client-txt em{display:block;line-height:20px;} +.topTh .d2 .dd .client-txt strong{color:#76ac25;line-height:20px;} +.topTh .d2 .dd .client-promo{height:30px;background:url(../images/indexImg20130307.png?v=1.4) no-repeat -182px -210px #fcfbe4;text-align:center;color:#fa6400;font-size:14px;font-weight:bold;line-height:30px;} +.topTh .d2 .dd .client-promo a:link,.topTh .d2 .dd .client-promo a:visited{color:#fa6400;} +.topTh .d2 .dd .app-btn{font-size:0;height:29px;margin:0 0 10px 15px;} +.topTh .d2 .dd .app-apple{float:left;display:block;width:96px;height:29px;background:url(../images/header.png) no-repeat 0 -167px;margin-right:5px;_display:inline;} +.topTh .d2 .dd .app-android{float:left;display:block;width:96px;height:29px;background:url(../images/header.png) no-repeat 0 -196px;} +.topTh .d3 q{background:url(../images/header.png) no-repeat -55px 0;width:19px;left:12px;cursor:pointer;quotes:none;} +.topTh .d4 q{background:url(../images/header.png) no-repeat -74px 0;width:17px;left:8px; quotes:none;} +.topTh .d4 .dd{display:none;left:-50px;top:32px;} +.topTh .d4 .dd .sf_wx_t{ width:136px; height:20px; line-height:22px; color:#515151;} +.topTh .d4 .dd .sf_wx{display:block;width:136px;height:110px;background:url(../images/weixin.png) no-repeat top center #FFFFFF;} +.topTh .login{color:#999999;padding:0 10px;} +.topTh .login a:link,.topTh .login a:visited{color:#969696;} +.topTh .login a:hover{color:#669900;} +.topTh .logininfo{color:#666666;} +.topTh .myOrder{padding:0 10px;} +.topTh .menus{padding:0 10px 0 10px;width:60px;cursor:default; margin:6px 0 0 0; line-height:22px; } +.topMenu .fr b{position:absolute;right:5px;top:8px;background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;transition:transform .2s ease-in 0s;-webkit-transition:-webkit-transform .2s ease-in 0s;overflow:hidden;} +.topTh .allCat{padding:0 15px;cursor:default;*margin:0; margin:6px 0 0 0;line-height:22px;} +.topTh .allCat .site{color:#969696;} +.topTh .allCat s{position:absolute;right:0;top:8px;background:url(../images/header.png) no-repeat -86px -130px;width:8px;height:4px;transition:transform .2s ease-in 0s;-webkit-transition:-webkit-transform .2s ease-in 0s;overflow:hidden;} +.topTh .blank,.topTh .dd,.topTh .outline{display:none;position:absolute;border:1px solid #dadada;background-color:white;z-index:1000} +.topTh .blank{ margin-left:5px;top:0;height:33px;z-index:-1;left:0;width:78px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.topTh .menus .blank{_margin-top:-6px;_height:37px;} +.topTh .menus .dd{ margin-left:5px;_margin-left:0px;line-height:22px;left:0;width:78px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;top:28px;} +.topTh .outline{z-index:1;left:6px;width:78px;height:8px;top:22px;border:0 none;overflow:hidden;} +.topTh .allCat .blank,.topTh .allCat .outline{width:81px;_width:86px;} +.topTh .allCat .blank{_margin-top:-6px;_height:37px;} +.topTh .allCat .dd{top:28px;width:815px;right:0; margin-right:-10px;left:auto;padding-top:10px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #dadada;} +.allCat dl{float:left;width:200px;padding:15px 19px 0 20px;text-align:left;margin-bottom:10px;} +.allCat dl dt{font-weight:bold;margin-bottom:5px;font-size:16px;font-family:Microsoft Yahei; } +.allCat dl dd{line-height:20px;height:100px;overflow:hidden;} +.allCat dl dd a{ display:block;width:65px; float:left; line-height:30px; color:#666666;} +.allCat dl dd p{ width:100%;float:left;} +.allCat dl .dh1{ color:#669900;} +.allCat dl .dh2{color:#FA6400;} +.allCat dl .dh3{color:#646464;} +.allCat .line{background:url(../images/foot/line.jpg) center repeat-y; height:90px;width:5px; margin:20px 0 0 0;} +.allCat dl .fore1{height:auto;} +.topTh .allCat.hover s{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.topTh .hover .t{color:#669900;} +.topTh .hover .blank,.topTh .hover .dd,.topTh .hover .outline{display:block;} +.topMenu .fr .hover b{transform:rotate(180deg);-webkit-transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);*background:url(../images/header.png) no-repeat -169px -2px;} +.tShow .corner{display:none;width:8px;height:15px;position: absolute;top:25px;left:8px;z-index:2;} +.tShow .corner .aBg,.tShow .corner .aCt{display: block;font-size: 0;height: 0;line-height: 0;overflow: hidden;width: 0;} +.tShow .aBg{border-left: 8px dashed rgba(0, 0, 0, 0);border-left: 8px dashed white\0;border-bottom: 8px solid #dadada;border-right: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed white\0;position: relative;border-top:0 none;} +.tShow .aCt{border-left: 8px dashed rgba(0, 0, 0, 0);border-left: 8px dashed white\0;border-bottom: 8px solid #ffffff;border-right: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed white\0;position: relative;border-top:0 none;margin:-7px 0 0 0px;} +:root .tShow .aBg{border-left: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed rgba(0, 0, 0, 0);} +:root .tShow .aCt{border-left: 8px dashed rgba(0, 0, 0, 0);border-right: 8px dashed rgba(0, 0, 0, 0);} +*+html .tShow .aBg{border-left: 8px dashed white;border-right: 8px dashed white;} +*+html .tShow .aCt{border-left: 8px dashed white;border-right: 8px dashed white;} +*html .tShow .aBg{border-left: 8px dashed white;border-right: 8px dashed white;} +*html .tShow .aCt{border-left: 8px dashed white;border-right: 8px dashed white;} +.topTh .tShow.hover .corner{display:block;} +.topTh .d2 .corner{left:45px;} + +#header{padding:0;height:104px;width:1200px;margin:0 auto;} +.header_inner{width:1200px;margin:auto; position:relative;z-index:31;} +.header_inner .logo{width:240px;margin:0px;float:left;padding:5px 0px 0px 0px;position:relative;} +.header_inner .logo a.logoleft{display:block;position:absolute;left:0px;width:197px;padding:0px 0px 0px 0px;background:url(../images/logo66.png) 0px 0px no-repeat;_background:url(../images/indexImg20130307.jpg?v=1.1) -33px 0px no-repeat;height:66px;} +.header_inner .logo a.logoright{display:block;position:absolute;width:116px;right:0px;height:66px;background:url(../images/indexImg20130307.png?v=1.5) -160px 0px no-repeat;_background:url(../images/indexImg20130307.jpg?v=1.1) -160px 0px no-repeat;} +.header_inner .logo .logoright_best{margin-top:12px;} +.header_inner .logo div.logo-text{position:absolute;top:73px;left:0;color:#000;font-size:14px; font-family:Microsoft YaHei; clear:both;letter-spacing:1px; text-align:center;width:244px;} +.header_inner .logo div.logo-text font{font-family:Microsoft YaHei;font-size:14px; font-weight:bold;} +.header_inner .search{position:absolute;width:514px;margin:0px; padding:0px;right:248px;top:28px;} +.header_inner .search input.text{border:1px solid #669900;width:425px; height:34px; line-height:34px \9; padding:0 0 0 4px; vertical-align:middle; float:left;} +.header_inner .search input.submit{margin:0px;height:36px;width:80px;cursor:pointer;float:left;vertical-align:middle;border:0;background:url(../images/header.png) no-repeat -99px -179px; color:#FFF;} +.search_hot{clear:both;text-align:left;padding:4px 0px 0px 0px;} +.search_hot a{margin:0px 8px 0px 0px; color:#979797;} +.search_hot a:hover{color:#669900;} + +/*顶部购物车*/ +.shopingcar{width:146px;padding-left:48px;position:absolute;top:28px;right:0px;height:33px;border:1px solid #efefef;line-height:33px;font-size:12px;} +.shopingcar a:hover{color:#669900;} +.shopingcar s{background:url(../images/header.png) no-repeat -54px -16px;width:23px;height:21px;left:17px;position:absolute;top:4px;} +.shopingcar b#cartNum{position:absolute;top:-1px;left:154px;width:40px;height:34px;text-align:center;line-height:34px;background-color:#fa9600;color:white;font-size:16px;font-weight:600;} +.shopingcar ul li.nmlist {border: 0 none;} +.shopingcar ul li.nmline {border-bottom: 1px dashed #CCCCCC;height: 0;line-height: 0;margin: 0;overflow: hidden;padding: 0;} +.shopingcar ul li.nmtop {background-color: #F2F6ED;border-bottom: 1px solid #CCCCCC;height: 26px;line-height: 26px;margin: 0;overflow: hidden;padding: 0;} +.nmtitle {color: #1B6146;float: left;} +.nmtotal {float: right;} +.nmtotal font {color: #EA5404;font-size: 14px;font-weight: bold;} +.nmtotal a:link {color:#999999;} +#topCart.hover .blank,#topCart.hover #cart_lists,#topCart.hover .outline{display:block;position:absolute;border:1px solid #efefef;background-color:white;} +#topCart.hover .blank{top:-1px;height:33px;z-index:-1;left:-1px;width:194px;-moz-box-shadow:0 0 5px #dadada;-webkit-box-shadow:0 0 5px #dadada;box-shadow:0 0 5px #efefef;} +#topCart.hover .outline{z-index:1;left:0;width:154px;height:8px;top:28px;border:0 none;} +#topCart.hover .t{color:#666666;} +#topCart .setCart{background:url(../images/header.png) no-repeat -102px -235px; margin:2px 0 0 0;} +#cart_lists{display:none;width:360px;right:-1px;_right:-2px;-moz-box-shadow:0 0 5px #efefef;-webkit-box-shadow:0 0 5px #efefef;box-shadow:0 0 5px #dadada;top:34px;} +#cart_lists .btn{display:none;} +.floatcar{padding:10px;width:340px;font-size:12px;font-weight:normal;line-height:20px;} +.floatcar1{padding:10px 0;} +.floatcar .nopro{ width:240px; height:42px; margin:0 0 0 85px; background:url(../images/header.png) no-repeat -99px -123px;} +.floatcar .nopro p{ padding-left:50px;} +.floatcar .nopro p span{ color:#969696;} +.floatcar .nopro p span .no_dl{ color:#669900;} +.floatcar .title{color:#6c6c6c;border-bottom:1px solid #1b6146;height:24px;} +.floatcar .total p{width:170px;float:left;} +#listCartNum{color:#ea5404;font-size:14px;font-weight:bold;} +.floatcar .total p font{color:#ea5404;font-size:18px;font-weight:bold; font-family:Arial, Helvetica, sans-serif;} +.floatcar ul{margin:0px;padding:0px;display:block;position:relative;max-height:195px;_height:201px;overflow:auto;} +.floatcar ul li{margin:0px; padding:12px 0px 12px 0px;height:40px;position:relative; border-bottom:1px dashed #ccc; line-height:18px;color:#565656;} +.floatcar ul li:hover{ background:#f5f5f5;} +.floatcar ul li .l{position:absolute;width:45px;height:45px;} +.floatcar ul li .l img{width:40px;height:40px;vertical-align:middle;border:1px solid #ccc;} +.floatcar ul li .c{position:absolute;width:200px;height:36px;left:48px;top:14px; overflow:hidden;} +.floatcar ul li .c a{color:#565656; text-decoration:none;} +.floatcar ul li .c a:hover{color:#669900; text-decoration:none;} +.floatcar ul li .r{position:absolute; text-align:right;width:80px;height:36px;right:0px;} +.floatcar ul li .r font{color:#f05404;font-size:14px;font-weight:bold;} +.floatcar ul li .r a{clear:both;color:#999999; text-decoration:none} +.floatcar ul li .r a:hover{ text-decoration:underline} +/*----页头---*/ +.mainNav{width:100%;height:32px;border-bottom:2px solid #679800;_overflow:hidden;} +.navmenu{margin:0px auto;color:#303437;padding:0;width:1200px;clear:both;} +.navmenu .categories{float:left;width:200px;background:#76ac25;height:34px;text-align:left;position:relative;z-index:100} +.navmenu .categories .dt{height:34px;overflow:hidden; background:url(../images/cate_bg.jpg);} +.navmenu .categories a.topall{height:32px;line-height:32px;display:block;margin:0px; padding:0px;color:#fff;font-size:14px; font-family:Microsoft YaHei; font-weight:bold;width:200px; text-align:center; text-decoration:none;} +.navmenu .categories.hover b{ position:absolute;top:32px;border-top:2px solid #659900;height:0px;line-height:0;width:100%;overflow:hidden;background:0 none;right:auto;} +.menu1{width:1000px;float:right;position:relative;z-index:30} +.menu1 ul{width:1000px;overflow:hidden;height:32px; line-height:32px;} +.menu1 li{float:left;text-align:center;color:#303437;} +.menu1 li a{ padding:0 24px; font-size:14px; text-align:center;text-decoration:none;display:block;height:32px;font-family:Microsoft YaHei;color:#333;font-weight:700;} +.menu1 li a:hover{font-size:14px;color:#669900;text-decoration:none} +.menu1 li a.btndown{color:#669900;} +.menu1 .minisite{float:left;font-family:Microsoft YaHei;} +.menu1 .minisite1{border-left:1px solid #DCDCDC; height:14px; line-height:14px; margin:8px 0 0 0;} +.menu1 .minisite a{text-align:right; color:#333;font-size:12px;padding:0 17px;} +.menu1 .minisite a:hover{color:#669900;font-size:12px;} +.menu1 .ad{float:right; width:196px; height:32px; overflow:hidden;} +.menu1 .ad a{ padding:0;} +.menu1 .ad img{ width:196px; height:32px;} +.catTag{background-color:#fa9600;color:white;position:absolute;z-index:999;height:16px;line-height:16px;padding:0 2px;top:-6px;} +.catTag b{width:0;height:0;line-height:0;font-size:0;border-left:2px solid #fa9600;border-top:2px solid #fa9600;border-right:2px dashed white;border-bottom:2px dashed white;position:absolute;left:4px;top:16px;} +#catTag_1{left:155px;} +#catTag_2{left:260px;} +#catTag_3{left:365px;} +#catTag_4{left:472px;} +/*公共头部品类菜单显示*/ +#public_cate .dd{display:none;} +#public_cate.hover .dd{display:block;} +/*---------品类菜单 ----------*/ +#allSort{margin:0;z-index:998;padding:0;width:200px;height:480px;position:absolute;background-color:#76ac25;} +#booksort{padding-top:8px;padding-left:15px;} +#booksort .item{height:58px;} +#booksort .item .i-master{display:block;height:54px;padding-left:15px;font-family:Microsoft YaHei;} +#booksort .item .i-master a{color:white; margin-left:2px;} +#booksort .item .i-master a:hover{color:#fa9600;} +#booksort .item h3{font-weight:normal;font-size:14px;padding-top:5px;line-height:22px;} +#booksort .item .subCat{font-size:12px;overflow:hidden;line-height:20px;height:20px;} +#booksort .item .subCat a{ color:#ddeac8;} +#booksort .item .subCat li{float:left;margin-right:8px;_display:inline;} +#booksort .item .i-cm{position:absolute;top:0;left:200px;width:560px;height:480px;background:#ffffff;z-index:999;filter:alpha(opacity=98);opacity:0.98;display:none;} +#booksort .item .i-master s{position:absolute;width:11px;height:54px;background-color:white;left:190px;z-index:1000;display:none;margin-top:-47px;} +#booksort .item .i-master h3 .fresh{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px 5px; margin-left:-20px;float :left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .drinks{ width:14px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -46px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .food{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -104px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .pastry{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -157px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .oil{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -265px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .baby{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -319px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .health{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -373px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .tea{ width:16px; height:22px;background:url(../images/left_lm_a.png) no-repeat -10px -212px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item .i-master h3 .tools{ width:16px; height:22px; background:url(../images/left_lm_a.png) no-repeat -10px -428px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-cm{display:block;} +#booksort .item.hover .i-master{background-color:white;color:#76ac25;margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3{ margin-left:10px;} +#booksort .item.hover .i-master .subCat{margin-left:10px;} +#booksort .item.hover .i-master a{color:#76ac25;text-decoration:none;} +#booksort .item.hover .i-master a:hover{text-decoration:underline;} +#booksort .item.hover .i-master s{display:block;} +#booksort .item.hover .i-master h3 .fresh{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 5px; margin-left:-20px;float :left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .drinks{ width:14px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -46px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .food{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -104px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .pastry{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -157px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .oil{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -265px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .baby{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -319px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .health{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -373px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .tea{ width:16px; height:22px;background:url(../images/left_lm.png) no-repeat 0 -212px; margin-left:-20px; float:left; float:left;_margin-left:-10px;_position:relative;} +#booksort .item.hover .i-master h3 .tools{ width:16px; height:22px; background:url(../images/left_lm.png) no-repeat 0 -428px; margin-left:-20px; float:left;_margin-left:-10px;_position:relative;} +/*2015/12/8分类图标修改 Start*/ +#booksort .item .i-master .dev .fresh{background:url(../images/left_lm_m_a.png) no-repeat 0 5px;}/*肉类海鲜*/ +#booksort .item .i-master .dev .baby{background:url(../images/left_lm_m_a.png) no-repeat 0 -324px;}/*熟食蛋奶*/ +#booksort .item .i-master .dev .pastry{background:url(../images/left_lm_m_a.png) no-repeat 0 -159px;}/*水果蔬菜*/ +#booksort .item .i-master .dev .drinks{background:url(../images/left_lm_m_a.png) no-repeat 0 -47px;}/*酒水饮料*/ +#booksort .item .i-master .dev .food{background:url(../images/left_lm_m_a.png) no-repeat 0 -106px;}/*休闲食品*/ +#booksort .item .i-master .dev .tea{background:url(../images/left_lm_m_a.png) no-repeat 0 -213px;}/*冲调茶饮*/ +#booksort .item .i-master .dev .oil{background:url(../images/left_lm_m_a.png) no-repeat 0 -270px;}/*粮油副食*/ +#booksort .item .i-master .dev .health{background:url(../images/left_lm_m_a.png) no-repeat 0 -378px;}/*南北干货*/ +#booksort .item.hover .i-master .dev .fresh{background:url(../images/left_lm_m.png) no-repeat 0 5px;}/*肉类海鲜*/ +#booksort .item.hover .i-master .dev .baby{background:url(../images/left_lm_m.png) no-repeat 0 -324px;}/*熟食蛋奶*/ +#booksort .item.hover .i-master .dev .pastry{background:url(../images/left_lm_m.png) no-repeat 0 -159px;}/*水果蔬菜*/ +#booksort .item.hover .i-master .dev .drinks{background:url(../images/left_lm_m.png) no-repeat 0 -47px;}/*酒水饮料*/ +#booksort .item.hover .i-master .dev .food{background:url(../images/left_lm_m.png) no-repeat 0 -106px;}/*休闲食品*/ +#booksort .item.hover .i-master .dev .tea{background:url(../images/left_lm_m.png) no-repeat 0 -213px;}/*冲调茶饮*/ +#booksort .item.hover .i-master .dev .oil{background:url(../images/left_lm_m.png) no-repeat 0 -270px;}/*粮油副食*/ +#booksort .item.hover .i-master .dev .health{background:url(../images/left_lm_m.png) no-repeat 0 -378px;}/*南北干货*/ +/*2015/12/8分类图标修改 End*/ +#booksort .i-cm .i-left{float:left;width:542px;} +#booksort .i-cm .i-right{float:right;width:205px;height:506px;} +#booksort .cat-sort{width:542px;height:248px;padding:8px 0 24px 10px;} +#booksort .cat-sort dl{overflow:hidden;zoom:1;font-family:Microsoft YaHei;padding:1px 0 0 0;} +#booksort .cat-sort dt{width:80px;padding-right:10px;float:left;text-align:right;height:18px;line-height:18px;margin:4px 0px;color:#76ac25;} +#booksort .cat-sort dt a{color:#76ac25;} +#booksort .cat-sort dt a:hover{ text-decoration:underline;} +#booksort .cat-sort dd{overflow:hidden;zoom:1;} +#booksort .cat-sort dd a{float:left;white-space:nowrap;display:block;text-decoration:none;font-size:12px;height:18px;line-height:18px;margin:4px 0px;text-align:left;padding:0px 6px;border-left:1px solid #ccc; color:#666;} +#booksort .cat-sort dd a:hover{text-decoration:none;color:#76ac25;} +#booksort .i-left .i-img img{width:560px;height:200px;} +#booksort .i-right .i-channel{height:54px;text-align:center;background-color:#f7f6f5;padding:16px 10px;font-family:Microsoft YaHei;} +#booksort .i-right .i-channel dt{color:#363636;font-size:16px;line-height:54px;margin-bottom:4px;} +#booksort .i-right .i-channel dt a:hover{ color:#669900;} +#booksort .i-right .i-channel em{ width:20px; height:20px;background:url(../images/index_icon_new.png) no-repeat -245px -55px; margin:18px 0 0 10px; *margin:0 0 0 10px; overflow:hidden; position:absolute;} +#booksort .i-right .i-channel em a{ display:block; cursor:pointer;width:20px; height:20px;} +#booksort .i-right .i-active{height:106px;padding:12px;font-family:Microsoft YaHei;} +#booksort .i-right .i-active dt{color:#76ac25;line-height:20px;margin-bottom:10px;font-weight:bold;} +#booksort .i-right .i-active dd a{display:block;line-height:24px;height:24px;overflow:hidden;} +#booksort .i-right .i-active dd a:hover{color:#669900;} +#booksort .i-right .i-brand{border-top:1px solid #e5e5e5;padding:10px;} +#booksort .i-right .i-brand dt{overflow:hidden;zoom:1;margin-bottom:10px;} +#booksort .i-right .i-brand .fl{color:#76ac25;font-family:Microsoft YaHei;font-weight:bold;} +#booksort .i-right .i-brand .fr{padding-right:5px;color:#666666;} +#booksort .i-right .i-brand .fr a{color:#666666;} +#booksort .i-right .i-brand .fr a:hover{ color:#669900;} +#booksort .i-right .i-brand dd{width:177px;margin:0 auto;overflow:hidden;zoom:1;border-top:1px solid #f2f2f2;border-left:1px solid #f2f2f2;} +#booksort .i-right .i-brand dd a{float:left;width:87px;height:56px;text-align:center;border-right:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;overflow:hidden;} +#booksort .i-right .i-brand img{width:56px;height:56px;} +#booksort .item .i-close{width:25px;height:25px;position:absolute;top:6px;right:6px;background:url(../images/index_icon_new.png) no-repeat -245px -1px;cursor:pointer;} +a.submit5{ margin:10px 0 0 0; display:block;font-size:14px;color:#fff;height:28px;line-height:28px;cursor:pointer;vertical-align:middle;vertical-align:baseline\9;text-decoration:none; width:110px; text-align:center; background:url(../images/productinfo.png) no-repeat -182px -234px;} +a.submit5:hover{color:#fff;background:url(../images/productinfo.png) no-repeat -182px -262px;} +/*--------页脚----------*/ +.pageFooter{ width:1200px;margin:0 auto;} +.pageFooter .middle{ float:left; width:290px; height:145px; margin:20px 0px 0px 10px; background:url(../images/foot/logo.jpg) no-repeat left top;} +.pageFooter .middle ul{ padding:85px 0 0 0;} +.pageFooter .middle .kefu{ font-size:20px; color:#646464; font-weight:bold; padding:6px 0;} +.pageFooter .left{float:left;margin:35px 0 0 0;width:235px;height:145px;} +.pageFooter .left ul{margin:0px;padding:0px 0px 0px 0px;float:left;} +.pageFooter .left ul li{font-size:14px;color:#666666;font-family:Microsoft YaHei;font-weight:bold;} +.pageFooter .left ul li.fWeibo{height:40px;line-height:40px;} +.pageFooter .left ul li.fWeibo span{display:block;width:29px;height:29px;float:left;background:url(../images/indexImg20130307.png?v=1.4) no-repeat -322px -70px;_background:url(../images/indexImg20130307.jpg) no-repeat -322px -70px;margin-right:4px;} +.pageFooter .left ul li.fWeibo font{float:left;font-size:14px;font-weight:bold;padding:0px 16px 0px 0px;} +.pageFooter .left ul li.fWeibo a{display:block;width:130px;height:36px;float:left;background:url(../images/footer_ico.jpg) no-repeat -7px -52px;} +.pageFooter .left ul li.fTel{height:36px;line-height:36px;} +.pageFooter .left ul li.fTel span{display:block;width:29px;height:29px;float:left;background:url(../images/indexImg20130307.png?v=1.4) no-repeat -358px -70px;_background:url(../images/indexImg20130307.jpg) no-repeat -358px -70px;margin-right:4px;} +.pageFooter .left ul li.fTel font{font-size:20px;padding:0px 0px 0px 10px;} +.pageFooter .left ul li.fNum{font-size:22px;color:#565656;font-weight:bold;} +.pageFooter .left .f_ios li{ width:80px;text-align:center;margin:0 50px 8px 0;*margin-right:25px; line-height:24px;} +.pageFooter .left .f_ios span{display:block;width:80px;height:80px;background:url(../images/foot_bottom.png) no-repeat 0px 0px;margin:auto;} +.pageFooter .left .f_wx li{ width:80px;text-align:center; margin:0 0 8px 0;line-height:24px;} +.pageFooter .left .f_wx span{display:block;width:80px;height:80px;background:url(../images/foot_bottom.png) no-repeat -83px 0px;margin:auto} +.pageFooter .left .f_icon{width:80px;} +.pageFooter .left .f_icon span{display:block;width:45px;height:45px;background:url(../images/footer_ico.jpg) no-repeat;margin:auto} +.pageFooter .left .f_icon span.a{background-position:-146px -5px;} +.pageFooter .left .f_icon span.b{background-position:-198px -5px;} +.pageFooter .left .f_icon span.c{background-position:-246px -5px;} +.pageFooter .left .f_tel{width:230px;text-align:left;font-size:12px;font-weight:normal;} +.pageFooter .right{float:left;margin:35px 0 0 0;width:645px;} +.pageFooter .right ul{float:left;margin:0px 8px 0px 0px;padding:0px 0px 0px 0px;width:120px;} +.pageFooter .right ul li{text-align:left;font-family:Microsoft YaHei;height:24px;line-height:24px;color:#646464;} +.pageFooter .right ul li a{color:#707070;display:block;padding:0px 0px 0px 0px;} +.pageFooter .right ul li.title{color:#707070;font-weight:bold;font-size:14px; } +.pageFooter .right ul li.title span{background:url(../images/footer_ico.jpg) no-repeat;display:block;height:26px;width:26px;float:left;margin:0px 9px 0px 0px} +.pageFooter .right ul li.title .style_a{background-position:-7px -5px;} +.pageFooter .right ul li.title .style_b{background-position:-39px -5px;} +.pageFooter .right ul li.title .style_c{background-position:-74px -5px;} +.pageFooter .right ul li.title .style_d{background-position:-109px -5px;} +.pageFooter .pic{height:44px;width:1200px;background:#ededed;text-align:center;padding:6px 0px 0px 0px;margin:0px 0px 0px 0px;clear:both;} +.pageFooter .pic span{display:block;height:40px;width:750px;background:url(../images/footer_ico.jpg) no-repeat -0px -120px;margin:auto;} +#footer{line-height:18px;color:#969696;width:100%; overflow:hidden;} +#footer a{color:#646464; text-decoration:none;} +#footer a:hover{ color:#669900; text-decoration:none;} +#footer .f_ios a:hover{color:#646464; text-decoration:none;} +#footer a.beian{color:#969696; text-decoration:none;} +#footer a.beian:hover{ color:#669900; text-decoration:none;} +#footer .footer_zd1{width:100%; border-bottom:1px solid #E0E0E0; margin:20px 0 0 0;} +#footer .footer_zd{height:120px;background:#F5F5F5;width:100%; margin:10px 0 0 0;} +#footer .footer_zd ul{ width:1200px; margin:0px auto;} +#footer .footer_zd ul li{width:300px;height:120px;float:left;} +#footer .footer_zd ul li a{ width:200px; cursor:pointer;display:block; height:60px;bblr:expression(this.onFocus=this.blur());outline-style:none; margin:30px 0 0 50px;} +#footer .quanqiu{background:url(../images/foot/qq.jpg) no-repeat center center;} +#footer .chandi{background:url(../images/foot/cd.jpg) no-repeat center center;} +#footer .qcll{background:url(../images/foot/qc.jpg) no-repeat center center;} +#footer .sfzd{background:url(../images/foot/sf.jpg) no-repeat center center;} +#footer .foot{ width:100%; height:285px;} +#footer .bottom{ width:1180px; height:50px; margin:0px auto; border-top:1px solid #E0E0E0; padding-top:15px;} +#footer .bottom_kx{ float:left; position:absolute; padding-top:6px;} +#footer .bottom_sm{ position:absolute; padding:6px 0 0 90px; float:left} +#footer .help{background:url(../images/helpbg.jpg) repeat-x top left #e6e6e6;height:177px;}#footer .help ul{width:720px;display:block;margin:8px 0px 0px 70px;#margin:8px 0px 0px 70px;_margin:8px 0px 0px 40px;padding:0px;float:left;}#footer .help ul li{float:left;width:180px;list-style:none;text-align:left;background:url(../images/footer_line.jpg) no-repeat 75% top;}#footer .help ul li h3{padding:0px 0px 4px 0px;margin:0px;font-size:14px;color:#7a6b56;display:block;font-weight:bold;}#footer .help ul li img{margin:0px 0px 0px 12px;}#footer .help ul li a{color:#6a6a6a;float:left;width:100px;height:18px;line-height:18px;display:block;text-decoration:none;background:url(../images/help_contenticon.gif) no-repeat 0% 50%;text-align:left;padding:2px 0px 2px 18px;font-size:13px;}#footer .help ul li a:hover{text-decoration:underline}#footer .help .tel{float:right;width:195px;border-left:0px solid #ccc;}#footer .service{background:url(../images/servicebg.jpg) repeat-y;}#footer .siteinfo{float:left; padding-left:182px;}#footer .siteinfo span{padding-left:13px;}/*邮件订阅*/.mailDY{width:302px;margin:0px auto;padding:15px 0 0 0;*padding:0;}.mailDYtit{overflow:hidden;zoom:1;}.mailDYtit h3{font-size:12px;float:left;color:#565656;}.mailDYtit span{float:right;color:#999999;padding:0px 20px 0px 0px}.mailDYtit span a:link{color:#999999;font-size:12px;}.mailDYtit span a:visited{color:#999999;}.mailDYtit span a:hover{color:#669900;}.mailDYitem{zoom:1;}.mailDYitem span{float:left;}.mailDYitem .ftitle{width:60px;}.mailDYitem .i{width:130px;height:22px;line-height:22px;padding:0 2px;border:1px solid #cccccc;margin-right:2px;display:inline; color:#969696;}.mailDYitem .input_on{width:140px;height:20px;line-height:20px;padding:0 2px;border:1px solid #669900;margin-right:2px;display:inline;}.on_changes{width:196px; position:absolute;border:1px solid #E8E8E8; display:none;background:#FFF; z-index:999; }.on_changes li{ height:22px; padding:0 0 0 5px;}.on_changes li.active{ background:#F9F9F9;}.mailDY a.dy{color:#656565; text-decoration:none; line-height:25px;}a.dy:visited{color:#656565; text-decoration:none;}.mailDY a.dy:hover{color:#669900; text-decoration:none;}.ydy{ border:1px solid #6AAF04; height:20px; width:191px; color:#6AAF04; position:absolute; padding:0 0px 0 5px;}.emailerr{width:191px;border:1px solid #FB9502; background:#FFEEE7; height:20px; color:#FA6501;position: absolute; padding:0 0px 0 5px;}.mailDYitem .btn{background:url(../images/foot_bottom.png) no-repeat -118px -106px;height:24px;width:44px;border:0;display:block;}.mailDYitem .s{height:22px;border:1px solid #cccccc;margin-right:3px;display:inline;}#store-selector,#store-selector_sfv,#store-selector1{float:left;height:26px;position:relative;z-index:91;}#store-selector.hover .text,#store-selector_sfv.hover .text,#store-selector1.hover .text{border-bottom:0 none;height:25px;z-index:1;}#store-selector .text,#store-selector_sfv .text,#store-selector1 .text{background:#FFFFFF;border:1px solid #CECBCE;float:left;height:22px;line-height:22px;overflow:hidden;padding:0 20px 0 4px;*margin-top:1px;position:relative;top:0;font-size:12px;font-weight:normal;}#store-selector .text b,#store-selector_sfv .text b,#store-selector1 .text b{background:url(../images/indexImg20130307.png?v=1.4) no-repeat -386px -2px;display:block;height:24px;overflow:hidden;position:absolute;right:0;top:0;width:17px;}#store-selector .area-list li,#store-selector_sfv .area-list li,#store-selector1 .area-list li{clear:none;padding:2px 0 2px 15px;font-size:12px;}#store-selector .tab li,#store-selector_sfv .tab li,#store-selector1 .tab li{clear:none;float:left;padding:0;}.SF-stock{position:relative;font-size:12px}.SF-stock .tab{border-bottom:2px solid #dadada;float:left;height:25px;overflow:visible;width:100%;_overflow:hidden;}.SF-stock .tab a{border-top:1px solid #DDDDDD;border-left:1px solid #DDDDDD;border-right:1px solid #DDDDDD;color:#CCCCCC;cursor:pointer;float:left;height:23px;line-height:23px;margin-right:3px;padding:0 21px 1px 11px;position:relative;text-align:center;}*html .SF-stock .tab a{position:static;}.SF-stock .tab a{color:#a6a6a6;text-decoration:none;font-size:12px;font-weight:normal;}.SF-stock .tab a:hover{color:#669900;}.SF-stock .tab a.hover{background-color:#FFFFFF;border-top:2px solid #dadada;border-left:2px solid #dadada;border-right:2px solid #dadada;color:#669900;height:25px;line-height:22px;padding:0 20px 0 10px;text-decoration:none;}.SF-stock .tab a i{background-image:url(../images/sf-stock.png);background-repeat:no-repeat;}.SF-stock .tab a i{background-position:0 -35px;display:block;height:5px;overflow:hidden;position:absolute;right:4px;top:10px;width:7px;}.SF-stock .tab a:hover i{background-position:0 -28px;right:4px;top:10px;}.area-list{padding-top:5px;}.area-list li{clear:none;float:left;padding:2px 0 2px 15px;width:80px;}.area-list li a{float:left;padding:2px 4px;text-decoration:none;font-size:12px;font-weight:normal;}.area-list li a:hover{background-color:#669600;color:#FFFFFF;}.area-list .longer-area{width:370px;}.area-list .long-area{width:170px;}.sfregionTop{width:400px;margin:60px 10px 0px 40px;}.sfregionTxt{line-height:26px;font-size:14px}.sfregionBuy{margin:40px 10px 0px 180px;}#store-selector .close,#store-selector_sfv .close,#store-selector1 .close{background:url(../images/index_icon_new.png) no-repeat -245px -33px;display:none;height:18px;left:345px; top:40px;position:absolute;width:18px;z-index:2;}#store-selector .tips{line-height:24px;color:red;padding:0 3px 0 0;}#store-selector.hover .content,#store-selector.hover .close,#store-selector_sfv.hover .content,#store-selector_sfv.hover .close,#store-selector1.hover .content,#store-selector1.hover .close{display:block;}#store-selector.hover .close,#store-selector_sfv.hover .close,#store-selector1.hover .close{cursor:pointer;}#store-selector .content,#store-selector_sfv .content,#store-selector1 .content{background:none repeat scroll 0 0 #FFFFFF;border:1px solid #CECBCE;box-shadow:0 0 5px #DDDDDD;display:none;left:-45px;padding:15px;position:absolute;top:25px;width:390px;}#store-selector .juli1{left:-250px;}#store-selector .juli2{left:140px;}.m,.mt,.mc{overflow:hidden;}.mt{cursor:default;}#store-selector1{height:24px;margin-right:3px;}#store-selector1 .text{height:22px;line-height:22px; overflow:hidden;}#store-selector1 .area-list{padding:5px 0 0 0;}#store-selector1 .area-list li{line-height:20px;height:20px;padding:2px 0;width:60px;overflow:hidden;}#store-selector1 .close{left:100px;}#store-selector1 .SF-stock ul.tab{padding:0;}#store-selector1.hover .content{width:300px;}#store-selector1 .content{left:-205px}input.submit1{font-size:12px;background-color:#6c9c0a;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 4px 0px 4px;height:22px;line-height:22px;cursor:pointer;vertical-align:middle;vertical-align:baseline\9;}input.submit1:hover{background:url(../images/productinfo.png) repeat-x 0 -124px;}.window{width:350px;border:3px solid #e6e6e6;position:absolute;margin-left:-150px;margin-top:-150px;top:50%;left:50%;background:#fff;}.window .content{padding:20px 12px 12px 12px;text-align:center;line-height:24px;font-size:14px;}.window .titlehead{background-color:#f5f5f5;height:31px;line-height:31px;border:0 none;}.window h3{width:150px;float:left;margin:0px;padding:0px 0px 0px 16px;font-size:14px;color:#565656;font-family:微软雅黑;}.window h3 img{border:0px;padding:0px;margin:0px;}.ac_results{padding:0px;border:1px solid #dadada;background-color:white;overflow:hidden;z-index:102;}.ac_results ul{width:100%;list-style-position:outside;list-style:none;padding:0;margin:0;}.ac_results li{margin:0px;padding:2px 5px;cursor:pointer;display:block;/*if width will be 100% horizontal scrollbar will apearwhen scroll mode will be used*//*width:100%;*/font:menu;font-family:arial,tahoma,宋体;font-size:12px;/*it is very important,if line-height not setted or settedin relative units scroll will be broken in firefox*/line-height:18px;overflow:hidden;}.ac_loading{background:#fff;}.ac_odd{/*background-color:#eee*/;}.jq_auto_complete_key{float:left;}.jq_auto_complete_results{float:right;color:#646464;}.jq_auto_complete_category_tip{padding-left:2em;color:#777;width:200px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}.jq_auto_complete_category_tip b{color:#669900}.ac_over{background-color:#f9f9f9;color:#646464;}.ac_over .jq_auto_complete_results,.ac_over .jq_auto_complete_category_tip{color:#646464;}/*彩贝合作帐号工具条*/.cb_bar{border:1px solid #aaa;height:24px;line-height:24px;width:1178px;margin:auto;padding:0px 10px 0px 10px}.cb_bar .l{display:block;float:left;width:700px;}.cb_bar .r{display:block;float:right;width:200px;color:#4c4747;text-align:right;}.cb_bar .alink{border-left:1px solid #add9fb;padding:0px 0px 0px 6px;color:#0066cc;}.cb_bar .l a{padding:0px;color:#0066cc;}.otherType{display:block;padding:5px;border-top:1px solid #f0f0f0;color:#ADADAD;}.otherType span{color:#adadad;}.inv_note{text-align:left;color:#ea5404;padding:0 0 3px 16px;line-height:20px;}.jq_auto_complete_key strong{font-weight:normal;} +.pages {margin:12px;text-align: right;font-size:14px;padding:0 0 10px 0} +.pages a {border:1px solid #dadada;color: #6b6b6b;margin: 2px;padding:3px 6px;text-decoration: none;} +.pages a:hover{border:1px solid #669900;color:#669900;} +.pages .pagedot{font-family:Arial;margin: 2px;padding:4px 6px;background-color:#f5f5f5;} +.pages .disabled {border:1px solid #dadada;color: #DDDDDD;margin: 2px;padding:3px 6px;} +.pages .prev{position:relative;padding-left:20px;} +.pages .next{position:relative;padding-right:20px;} +.pages .prev .prevarr {border-width:5px;border-color:#FFFFFF #ff0000 #FFFFFF #FFFFFF;border-style:dashed solid dashed dashed;height:0;width:0;font-size:0;overflow:hidden;position:absolute;left:4px;top:6px;} +*html .pages .prev .prevarr{top:7px;} +.pages .next .nextarr {border-width:5px;border-color:#FFFFFF #FFFFFF #FFFFFF #ff0000;border-style:dashed dashed dashed solid;height:0;width:0;font-size:0;overflow:hidden;position:absolute;right:4px;top:6px;} +*html .pages .next .nextarr{left:58px;top:7px;} +.pages .disabled .prevarr{border-color:#FFFFFF #dadada #FFFFFF #FFFFFF;} +.pages .disabled .nextarr{border-color:#FFFFFF #FFFFFF #FFFFFF #dadada;} +.pages a:hover {color: #176246;text-decoration: none;} +.pages a:active {border: 1px solid #4A2F24;color: #4A2F24;text-decoration: none;} +.pages .current {color: #ea5404;font-weight: bold;margin: 2px;padding:3px 6px;border:1px solid #ea5404;} +span.icon-cx {display: block;height: 46px;position: absolute;right: 5px;top: 5px;width: 46px;z-index: 90;} +.commAddr{padding:0 0 10px 0;overflow:hidden;zoom:1;} +.commAddr .ct{border-bottom:1px solid #196247;color:black;height:23px;margin-bottom:7px;} +.commAddr li{float:left;width:170px;height:20px;overflow:hidden;margin-right:10px;_display:inline;} +.backToTop{ background: url(../images/btntop.gif) no-repeat left top #FFFFFF;bottom: 10px;color: #FFFFFF;cursor: pointer;display: none;font-size: 12px;height: 55px;opacity: 0.8;padding: 0;position: fixed;right: 10px;width: 50px;} +.breadcrumb{overflow:hidden;} +.breadcrumb strong{font-family:Microsoft YaHei;font-size:16px;padding:0 7px 0 10px;} +.breadcrumb span{font-family:"宋体"} + +.side-wrap{position:fixed;bottom:20px;left:50%;margin-left:610px;z-index:999;} +* html .side-wrap{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0 +20)));} +.side-wrap .side-c{width:44px;height:44px;position:relative;margin-top:6px;} +.side-wrap .s-cart-smnum{position: absolute; top: -5px; right: 7px; width: 18px; text-align: center; color: #FA9600; border: 1px solid #dedede; height: 18px; line-height: 18px; border-radius: 10px; background-color: white;} +.side-wrap .s-cart-num{position: absolute; top: -5px; right: -9px; width: 34px; text-align: center; color: #FA9600; border: 1px solid #dedede; height: 18px; line-height: 18px; border-radius: 10px; background-color: white; overflow:hidden;} +.side-wrap .s-cart-add{background-color:#FA9600;color:white;border:1px solid #FA9600;} +.side-wrap .s-cart{background:url(../images/productList.png) no-repeat 0 -45px;width:42px;height:42px;display:block;border:1px solid #dadada;} +.side-wrap .s-guang{background:url(../images/productList.png) no-repeat -42px -82px;width:42px;height:42px;display:block;border:1px solid #dadada;} +.side-wrap .s-app{background:url(../images/productList.png) no-repeat -42px -40px;width:42px;height:42px;display:block;border:1px solid #dadada;text-indent:-9999px;overflow:hidden;} +.side-wrap .s-back{background:url(../images/productList.png) no-repeat -84px -142px;width:42px;height:42px;display:block;border:1px solid #dadada;} +.side-wrap .s-top{width:42px;height:42px;display:none;background:url(../images/productList.png) no-repeat 0 -82px;border:1px solid #dadada;} +.side-wrap a.s-cart:hover{background:url(../images/productList.png) no-repeat 0 -147px;} +.side-wrap a.s-guang:hover{background:url(../images/productList.png) no-repeat -42px -184px;} +.side-wrap a.s-app:hover{background:url(../images/productList.png) no-repeat -42px -142px;} +.side-wrap a.s-back:hover{background:url(../images/productList.png) no-repeat -84px -184px;} +.side-wrap a.s-top:hover{background:url(../images/productList.png) no-repeat 0 -184px;} +.side_pos{right:10px;left:auto;margin-left:0;} +.side_pos .s-guang,.side_pos .s-cart,.side_pos .s-app,.side_pos .s-top{filter:alpha(opacity=80);opacity:0.8;} +.listpic-mini{position:absolute;width:60px;height:60px;border:1px solid #dadada;overflow:hidden;z-index:98;} +.listpic-mini img{width:60px;height:60px;} +.cart-shopping,.history,.appDown{position:absolute;right:44px;bottom:0px;width:372px;overflow:hidden;} +.cart-list,.his-list,.appItem{position:relative;bottom:0;border:1px solid #dadada;width:360px;background-color:white;} +.cart-list .floatcar,.his-list .floatcar{position:static;border:0 none;box-shadow:none;background-color:white;} +.cart-list .floatcar .btnhover,.his-list .floatcar .btnhover{top:-29px} +.cart-list .btn{display:none;} +.cart-list .cart-num{height:48px;text-align:center;color:#000000;display:none;} +.cart-list .cart-num-icon{background:url(../images/productList.png) no-repeat -88px -39px;height:18px;padding:0 0 0 25px;display:inline-block;margin-top:20px;} +.cart-list #add-num{color:#EA5404} +.cart-wrap .cart-arr{right:-8px;position:absolute;margin-left:-1px;bottom:160px;background:url(../images/productList.png) no-repeat -88px -88px;width:8px;height:15px;} +.guang .cart-num{text-align:center;color:#000000;padding:10px;border-bottom:1px solid #1B6146;} +.guang .cart-arr{right:-8px;position:absolute;margin-left:-1px;bottom:110px;background:url(../images/productList.png) no-repeat -88px -88px;width:8px;height:15px;} +.guang .floatcar ul,.cart-wrap .floatcar ul{max-height:260px;} +.guang .floatcar ul li .r a:link,.guang .floatcar ul li .r a:visited{color:#547e01;} +.floatcar ul li .c a{height:18px;overflow:hidden;display:block;} +.floatcar ul li .c b{font-weight:normal;color:#cecece} +#list_cart .title{color:#666666;} +.p-list .list-all .title-c,.l-buy .title-c,.p-guess .title-c,.fl-pic .title-c{height:40px;line-height:20px;overflow:hidden;} +.cx_icon{position:absolute;top:5px;} +#list_cart ul li.nmtop{background-color: #F2F6ED;border-bottom: 1px solid #CCCCCC;height: 26px;line-height: 26px;margin: 0;overflow: hidden;padding: 0;} +#list_cart ul li.nmlist{border: 0 none;} +#list_cart ul li.nmline{ border-bottom: 1px dashed #CCCCCC;height: 0;line-height: 0;margin: 0;overflow: hidden;padding: 0;} +.appDown .cart-arr{right:-8px;position:absolute;margin-left:-1px;bottom:63px;background:url(../images/productList.png) no-repeat -88px -88px;width:8px;height:15px;} +.appItem{padding:20px 0 0 0;} +.appItem .sf-client{margin-bottom:10px;margin-left:50px;position:relative;text-align:left;} +.appItem .client-img{width:115px;height:116px;overflow:hidden;background:url(../images/indexImg20130307.png?v=1.4) no-repeat 0 -210px;display:block;} +.appItem i{position:absolute;width:50px;height:29px;left:135px;top:20px;background:url(../images/header.png) no-repeat -73px -93px;display:block;} +.appItem .client-txt{position:absolute;left:145px;top:54px;} +.appItem .client-txt em{display:block;line-height:20px;} +.appItem .client-txt strong{color:#76ac25;line-height:20px;} +.appItem .client-promo{height:30px;background:url(../images/indexImg20130307.png?v=1.4) no-repeat -116px -210px #fcfbe4;text-align:center;color:#fa6400;font-size:14px;font-weight:bold;line-height:30px;} +.appItem .client-promo a:link,.appItem .client-promo a:visited{color:#fa6400;} +/*----浮动条--------*/ +.floatBar{height:43px;position:fixed;width:100%;top:0; /*z-index:9999;*/ background:#fff;filter:alpha(opacity=97);-moz-opacity:0.97;-khtml-opacity: 0.97;opacity: 0.97;box-shadow:0px 1px 5px #ccc;left:0; border-bottom:1px solid #eee;} +/**html .floatBar{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}*/ +.floatBar .pW{ height:43px;} +.floatBar .logo{float:left; width:165px;height:43px;padding-left:10px} +.floatBar .logo span{background:url(../images/header.png) no-repeat 0px -50px ;width:91px;height:43px; display:block;} +.floatBar .search{float:left;background:url;width:245px;height:35px; padding-top:8px;} +.floatBar .search input.inputSearch{width:190px;height:24px; line-height:24px; font-size:12px; border:1px solid #76ac25; color:#b3b3b3; padding:0px 4px 0px 4px;vertical-align:middle;display:block;float:left;} +.floatBar .search input.inputSBtn{width:40px;height:26px; line-height:26px; font-size:12px; border:none; color:#fff; padding:0px ; background:#669900; vertical-align:middle;background:url(../images/header.png) no-repeat -92px -50px #669900 ; cursor:pointer; display:block;float:left;} +.floatBar .nav{float:left; background:url;height:33px; padding:10px 0px 0px 60px;} +.floatBar .nav a{display:block;float:left;width:60px;height:21px; line-height:21px;float:left; color:#606060;font-size:12px; text-align:center;margin-right:15px;_display:inline;} +.floatBar .nav a:hover{color:#669900; text-decoration:none} +.floatBar .nav a.active{ background-color:#76ac25;border-radius:2px;color:#fff;} +.floatBar .fr{padding-top:3px;} +.floatBar .menus,.floatBar .allCat{ z-index:1;} +.index_promo{display:none;position:absolute;width:140px;height:75px;left:260px;top:15px;overflow:hidden;} +.index_topad{position:absolute;width:140px;height:75px;left:270px;top:15px; overflow:hidden;} +.index_topad img{width:140px;height:75px;} +/*----btn style---*/ +.submit-btn, .submit-btn1{ border:none; margin:0 5px; cursor:pointer; text-align:center; } +.submit-btn{ width:63px; height:24px; line-height:24px; background:#669900; color:#fff;} +.submit-btn:hover{ background:#69af05; color:#fff;} +.submit-btn1{width:61px; height:22px; line-height:22px; border:1px solid #dcdcdc; color:#646464;} +.submit-btn1:hover{ color:#669900;} + +/*邮箱验证*/ +#mailBox{background:#fff;border:1px solid #e8e8e8;position:absolute;z-index:999;display:none; width:188px; margin-top:1px;} +#mailBox p{width:100%;margin:0;padding:0 0 0 5px;height:22px;line-height:22px;clear:both;font-size:12px;color:#666666;cursor:default;} +#mailBox ul{padding:0;margin:0;} +#mailBox li{font-size:12px;height:22px;line-height:22px;color:#666666;cursor:pointer;overflow:hidden;padding:0 0 0 5px;} +#mailBox .cmail{color:#666666;background:#f9f9f9;} +img.lazy,img.lazy_load{background:url(../images/g_loading.png) no-repeat 50% 50%;} +/*优选国际css*/ +.yxgj_icon{ width:60px; height:18px; line-height:18px; display:inline-block; background:#38b48b; border-radius:3px; font-size:12px; text-align:center; color:#fff; } +.yxgj_m0{ margin-left:12px;} +.yxgj_m1{ margin-left:5px;} +.yxgj_tipsTitle{ color:#FB8E19; padding:10px 0;} diff --git a/e3-search-web/src/main/resources/static/css/common.css b/e3-search-web/src/main/resources/static/css/common.css new file mode 100644 index 0000000..67885a2 --- /dev/null +++ b/e3-search-web/src/main/resources/static/css/common.css @@ -0,0 +1,282 @@ +/* 全局样式 */ +.clear{clear:both;} +.overflow{overflow:hidden} +.overflow_x{overflow_y:auto;overflow_x:hidden} +.overflow_y{overflow_x:auto;overflow_y:hidden} +.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;} +.clearfix{display:inline-block;zoom:1} +.clearfix{display:block;} +* html .clearfix{height:1%;} +.left{float:left}.right{float:right}.relative{position:relative}.absolute{position:absolute}.cursor{cursor:pointer;} +.search_h1{height:0px; overflow:hidden; font-size:0} +.zi1{z-index:1}.zi2{z-index:2} +.tal{text-align:left}.tar{text-align:right}.tac{text-align:center} +.dpn{display:none}.dpb{display:block}.dpib{display:inline-block}.dpi{display:inline}.wa{width:auto;} + +/*bg*/ +.bg1{} +.bj2{;} +.bj3{background:url(../images/new_head/bj1.gif) repeat-x left -44px;} + +/*font*/ +.f33{color:#333}.f66{color:#666}.f00{color:#000}.fff{color:#fff}.f99{color:#999}.ff6{color:#ff6600}.fa0{color:#a00000}.fbc{color:#bcbcbc}.f003{color:#0033cc}.f046{color:#046416}.f337{color:#337700}.f06{color:#0066CC}.ff0{color:#ff0000} +.f14{ font-size:14px;}.f16{ font-size:16px;}.fb{ font-weight:bold;}.f20{ font-size:20px} +.fyh{ font-family:"\5FAE\8F6F\96C5\9ED1"/*微软雅黑*/} +.fsum {font-family: tahoma,arial,Helvetica,"\5B8B\4F53",sans-serif;}.farial{font-family: arial,verdana;} +.lh18{line-height:18px}.lh20{line-height:20px}.delete_price{text-decoration: line-through;} +.ignore_price{text-decoration: line-through; font-size:12px; color:#666666; margin-left:5px;} + +/*border*/ +.bd_dc{border:1px solid #dcdcdc;} + +/*框架*/ +.w100w{ width:100%;} +.w990{ width:990px; margin:0 auto} + +/*容积*/ +.w190{width:190px} +.w240{width:240px} +.w540{width:540px} +.w556{width:556px} +.w740{width:740px} +.w790{ width:790px} +.w800{width:800px} +.h240{height:240px} + +/*距离*/ +.prl2{ padding:0 2px} +.pt5{ padding-top:5px;}.pr5{ padding-right:5px;}.pb5{padding-bottom:5px;}.p5{padding:5px;}.pl5{padding-left:5px;} +.pt10{ padding-top:10px;}.pr10{ padding-right:10px;}.pb10{padding-bottom:10px;}.pl10{padding-left:10px;}.p10{padding:10px;} +.pt20{ padding-top:20px;}.pr20{ padding-right:20px;}.pb20{padding-bottom:20px;}.pl20{padding-left:20px;}.p20{padding:20px;} +.pt30{ padding-top:30px;}.pr30{ padding-right:30px;}.pb30{padding-bottom:30px;}.pl30{padding-left:30px;}.p30{padding:30px;} +.pt40{ padding-top:40px;}.pr40{ padding-right:40px;}.pb40{padding-bottom:40px;}.pl40{padding-left:40px;}.p40{padding:40px;} +.ml3{margin-left:3px}.mt5{ margin-top:5px;}.mr5{ margin-right:5px;}.mb5{ margin-bottom:5px;}.ml5{ margin-left:5px;}.m5{ margin:5px;} +.mt10{ margin-top:10px;}.mr10{ margin-right:10px;}.mb10{ margin-bottom:10px;}.ml10{ margin-left:10px;}.m10{ margin:10px;} +.mt20{ margin-top:20px;}.mr20{ margin-right:20px;}.mb20{ margin-bottom:20px;}.ml20{ margin-left:20px;}.m20{ margin:20px;} + +/*层的模型*/ +.gy_box{ position:absolute; display:block;/*width:86px; width:101px;*/ padding:0 2px 2px 0; } +.gy_box em{border:2px solid #a00000; display:block; /*width:83px;*/ background-color:#fff; line-height:18px; font-size:12px; padding-bottom:2px} +.gy_box em i{ display:block; margin:3px 5px;} +.gy_box em i a{display:block;width:60px;padding: 0 6px} +.gy_box em i a:hover{background-color:#A10101;color:#fff;} +.gy_box i.bj{ height:3px; margin:0px; padding:0px; position:absolute; line-height:500px; overflow:hidden; width:82px; top:0px; left:0px;background-color:#DFDFDF;border:solid #a00000; border-width:0 2px;} + + +/*登陆、注册、导航 开始*/ +.shop_top{ height:25px;width:990px; margin:0 auto;color:#000;} +.shop_top .shop_top_left, +.shop_top_left a, +.shop_top_left span{ float:left;} +.shop_top_left a, +.shop_top_left span{ margin-top:5px;} +.shop_top_left a.link_img{ margin-top:2px;width:101px;height:19px;line-height:500px;overflow:hidden} + +.shop_top .shop_top_right{ float:right; display:block; color:#D1D1D1; height:25px;} +.shop_top .shop_top_right dl{ display:inline; float:left;padding:0px 3px;height:19px;margin:3px 0px 0px 0px; line-height:20px; +background:url(../images/new_head/head_foot_bj.png) no-repeat right 4px} +.shop_top .shop_top_right dl dt a{ padding:1px 5px; border:#F0F0F0 solid; border-width:1px 1px 0px 1px; float:left;height:16px; line-height:16px;} +.shop_top .shop_top_right dl dt a.shop_top_droplist{ padding-right:14px; background:url(../images/new_head/head_foot_bj.png) no-repeat -432px -127px; margin-right:1px} +.shop_top .shop_top_right dl dt a.shop_top_droplist_hover{ padding-right:14px; background-color:#fff; background-position:-432px -301px;border:#a00000 solid; border-width:1px 1px 0px 1px;} +.shop_top .shop_top_right dl dd{ z-index:9999; position:absolute; background:#FFF; padding:0; border:#a00000 solid; border-width:0px 1px 1px 1px;width:70px; line-height:1.5em; top:20px; padding-top:3px; clear:both; display:none;} +.shop_top .shop_top_right dl dt a.mycart{background:url(../images/new_head/head_foot_bj.png) no-repeat left -304px; padding-left:20px; color:#a00000; margin-left:5px} +.sales02 img{ border:1px solid #ccc} + +/*logo、search*/ +.ls{height:71px;position:relative;width:990px; margin:0 auto 14px; } +.ls .logo{ float:left; margin:6px 0 0 11px } +/*search*/ +.top-search{height:70px;width:500px;position:absolute;top:15px;right:59px;} +.top-search li{width:50px;height:20px;line-height:20px;text-align:center;float:left;color:#fff;cursor:pointer; margin:0 0 0 10px; position:relative; top:2px;} +.top-search li a{ color:#666;} +.top-search li.s{background:url(../images/new_head/head_foot_bj.png) no-repeat -121px -133px;} +.top-search .top-search-box{width:500px;height:35px;background:url(../images/new_head/head_foot_bj.png) no-repeat left -23px;} +.search_goods{ background:url(../images/new_head/head_foot_bj.png) no-repeat 3px -233px;} +.search_shop{ background:url(../images/new_head/head_foot_bj.png) no-repeat 3px -194px;} +.top-search .in{position:absolute;top:29px;left:7px;height:19px;width:388px;border:1px #fff solid; padding:0 2px;line-height:19px;font-size:14px;color:#000} +.top-search .ok{position:absolute;top:25px;right:5px;height:26px;width:91px;border:none;line-height:28px;background:url(../images/new_head/head_foot_bj.png) no-repeat left -133px;cursor:pointer;} + +.ls .text1 {line-height: 18px; position: absolute;right:0;top: 37px; line-height:16px} + +/*nav*/ +.gy_nav{ height:43px;width:990px; margin:0 auto; position:relative; font-size:14px;z-index:3 } +.gy_nav ul{position:absolute;top:0px;left:0px;} +.gy_nav ul.ul1{ width:694px;} +.gy_nav ul li{ float:left; padding:0 10px; height:33px; line-height:33px; display:inline;position:relative} +.gy_nav ul li a{color:#fff} +/*.gy_nav ul li.on a{color:#333}*/ +.gy_nav ul li.on a{color:#404040; text-decoration:none} +.gy_nav ul li.on a,.gy_nav ul li.on a:hover{color:#404040; text-decoration:none} + +.gy_nav ul li.bj{ width:9px; padding:0; margin:0 32px; background:url(../images/new_head/head_foot_bj.png) no-repeat -96px -133px;text-indent:-100000px;} +.gy_nav ul.ul2 li.bj{ background-position:-109px -133px;margin: 0 8px 0 11px;} +.gy_nav ul li.on{ background-color:#fff;color:#404040;font-weight:bold} +.gy_nav ul.ul1 li.ztg{ background:url(../images/new_head/head_foot_bj.png) no-repeat -292px -276px; line-height:36px; width:73px; position:absolute; right:14px;/*.gy_nav ul.ul1*/ } +.gy_nav ul.ul1 li.ztg a.link1{color:#fff} +.gy_nav ul.ul1 .gy_box{left:-8px;top:33px; } +.gy_nav ul.ul1 .gy_box em{border-top:0px;} +.gy_nav ul.ul1 .gy_box em a{color: #666; font-weight:400;} +.gy_nav ul.ul1 .gy_box em a:hover{color: #fff; text-decoration:none} +.gy_nav ul.ul2{ left:732px;} +.gy_nav ul.ul2 li i.hot{position:absolute; display:block; width:13px; height:13px; top:1px; right:-3px; background:url(../images/new_head/head_foot_bj.png) no-repeat -214px 0} + +/*导航层*/ +.gy_nav ul.ul1 li i.jt{width:7px;height:4px; background:url(../images/new_head/head_foot_bj.png) no-repeat -354px 0;position:absolute;display:block;right:0;top:15px;overflow:hidden; cursor:pointer} + +/*帮助*/ +.links{margin:0 auto;height:150px;width:950px; padding-top:33px} +.links ul{width:950px;height:150px;margin:0 auto;} +.links li{width:170px;float:left; padding:0 0 0 35px; margin:0 30px 0 0; display:inline;background:url(../images/new_head/head_foot_bj.png) no-repeat left -428px;} +.links li.secure{} +.links li.new{ background-position:-103px -333px} +.links li.hotline{background-position:-36px -397px} +.links li.host{background-position:-68px -367px} +.links li h3{width:170px;border-bottom:1px #E2E2E2 solid;} +.links li p{line-height:23px;} + +/*footer start*/ +.footer{text-align:center;line-height:23px;width:950px;margin:20px auto 0;} +.bottom-pop{display:inline-block;position:relative;cursor:pointer;color:#333333;} +#bottom-pop-box{ position:absolute; bottom:15px; left:-175px; float:left} +#bottom-pop-box em{border:2px #DF6564 solid; border-top:7px #DF6564 solid; background-color:#fff; width:400px; padding-top:5px; padding-bottom:5px;height:115px; display:block} +#bottom-pop-box em i{ height:23px; line-height:23px; width:67px; display:block; float:left; margin-left:10px; display:inline; text-align:left;} +i.bottom-pop-horn{ width:13px; height:12px; background:url(../images/new_head/head_foot_bj.png) no-repeat -354px -133px ; font-size:0px; line-height:12px; overflow:hidden; margin:0 auto; display:block;} +/*footer end*/ + +/*thickbox*/ +#TB_window {font: 12px Arial, Helvetica, sans-serif;color: #333333;} +#TB_secondLine {font: 10px Arial, Helvetica, sans-serif;color:#666666;} +#TB_window a:link {color: #666666;} +#TB_window a:visited {color: #666666;} +#TB_window a:hover {color: #000;} +#TB_window a:active {color: #666666;} +#TB_window a:focus{color: #666666;} +#TB_overlay {position: fixed;z-index:100;top: 0px;left: 0px;height:100%;width:100%;} +.TB_overlayMacFFBGHack {} +.TB_overlayBG {background-color:#000;filter:alpha(opacity=20);-moz-opacity: 0.50;opacity: 0.20;} +* html #TB_overlay { /* ie6 hack */position: absolute;height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');} +#TB_window {position: fixed;background: #ffffff;z-index: 102;color:#000000;display:none;border: 3px solid #D3D3D3;text-align:left;top:50%;left:50%;z-index:9999;} +* html #TB_window { /* ie6 hack */position: absolute;margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');} +#TB_window img#TB_Image {display:block;margin: 15px 0 0 15px;border-right: 1px solid #ccc;border-bottom: 1px solid #ccc;border-top: 1px solid #666;border-left: 1px solid #666;} +#TB_caption{height:25px;padding:7px 30px 10px 25px;float:left;} +#TB_closeWindow{height:25px;padding:11px 25px 10px 0;float:right;} +#TB_closeAjaxWindow{padding:7px 10px 5px 0;margin-bottom:1px;text-align:right;float:right;} +#TB_ajaxWindowTitle{float:left;padding:7px 0 5px 10px;margin-bottom:1px;} +#TB_ajaxWindowTitle strong{ font-size:14px;} +#TB_title{height:31px; background:#F5F5F5;color:#565656; } +#TB_ajaxContent{clear:both;padding:2px 15px 15px 15px;overflow:auto;text-align:left;line-height:1.4em;} +#TB_ajaxContent.TB_modal{padding:15px;} +#TB_ajaxContent p{padding:5px 0px 5px 0px;} +#TB_load{position: fixed;display:none;height:13px;width:208px;z-index:103;top: 50%;left: 50%; +margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */} +* html #TB_load { /* ie6 hack */ +position: absolute; +margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');} +#TB_HideSelect{z-index:99;position:fixed;top: 0;left: 0;background-color:#fff;border:none;filter:alpha(opacity=0);-moz-opacity: 0;opacity: 0;height:100%;width:100%;} +* html #TB_HideSelect { /* ie6 hack */position: absolute;height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');} +#TB_iframeContent{clear:both;border:none;margin-bottom:-1px;margin-top:1px;_margin-bottom:1px;} +.tips_word{ height:28px; line-height:28px;} +#TB_closeWindowButton{background:url(../images/09.png) no-repeat -315px 0px;font-size:0;display:inline-block; width:22px; height:21px; cursor:pointer;} +/* end thickbox*/ + +/*分页符*/ +.zpage{ width:100%; text-align:right;} +.zpage a{display:inline-block;font-family:Tahoma,SimSun,Arial;height:25px;line-height:25px;min-width:17px;_width:17px;padding:0px 5px 0px 5px;text-align:center;vertical-align:top;white-space:nowrap; border:1px #DEDEDE solid; color:#0033CC} +.zpage a:hover{background:#EFEFEF} +.zpage span{display:inline-block;font-family:Tahoma,SimSun,Arial;height:25px;line-height:25px;min-width:17px;_width:17px;padding:0px 5px 0px 5px;text-align:center;vertical-align:top;white-space:nowrap; border:1px #DEDEDE solid;} +.zpage span.c{background:#45A929;color:#FFF; border:1px #45A929 solid; font-weight:bold;} + +/*公共的商品列表*/ +.search_filter{} +.search_filter ul{ overflow:hidden; zoom:1;} +.search_filter ul.ul2{ margin-bottom:-10px} +.search_filter ul.ul2 li{float:left;height:243px; height:261px;padding:0 17px 30px;width: 163px; overflow:hidden} +.search_filter ul.ul2 .img_table {display: table-cell;height: 162px;overflow: hidden;position: relative;text-align: center;vertical-align: middle;width:160px;border:1px solid #dcdcdc} +.search_filter ul.ul2 li .on { border-color: #FF9900;} +.search_filter ul.ul2 li .text {line-height: 17px;margin-top: 8px;width: 166px;} +.search_filter ul.ul2 li .text h4{height:51px; overflow:hidden} +.search_filter .icon_table{ overflow:hidden;} +.search_filter .icon_table a{ cursor:pointer; float:left} + +/*公共的推荐商品*/ +.search_filter1{ margin-top:30px;} +.search_filter1 .title,.search_filter1 ul.ul2{border:1px solid #dcdcdc} +.search_filter1 ul.ul2{border-top:0px;} +.search_filter1 ul.ul2 li{ padding-bottom:20px} +.search_filter1 .title{height:28px; line-height:28px; overflow:hidden;background-color: #F5F5F5;} +.search_filter1 .title h3 {color:#000000; font-size: 14px;font-weight: bold; float: left;} + +/*404页*/ +.number404{padding:58px 0 75px 334px; width:656px; margin:0 auto} +.number404 h2{ margin-bottom:25px;} +.number404 p{ line-height:22px} +/*404的推荐商品*/ +.search_filter2{wmargin:0 auto 10px} +.search_filter2 .search_filter1{ margin-top:0} +.search_filter2 ul.ul2 { margin-bottom:0;} +.search_filter2 ul.ul2 li{ padding-bottom:0; height:225px;} + +/*正确页面*/ +.true{ } + +/*优惠卷页*/ +.coupons{ padding:43px 0 97px 286px; width:704px} +.coupons h2{ margin-bottom:0} +.coupons p{ margin-top:3px; clear:both} +.coupons .link1{ display:block; width:71px; height:26px; line-height:26px; text-align:center;} + +/*页面里提示错误层*/ +.tip_error{ padding:75px 0} +.tip_error span{font:700 14px/34px "\5B8B\4F53";color:#333; padding-left:43px; display:inline-block} +.tip_error span.samll_text{ font:400 12px/17px "\5B8B\4F53";color:#666; padding-left:20px} + +/*图片垂直*/ +.v_img_table{overflow:hidden; position:relative; display:table-cell; text-align:center; vertical-align:middle;} +.v_p {position:static; +position:absolute; top:50% } +.v_img {position:static; +position:relative; top:-50%;left:-50%;} +/*星*/ +.star_hollow2, +.star_hollow3, +.star_hollow4{ width:64px; height:9px; float:left; margin:0px 5px 0 0; display:inline;cursor:pointer;overflow:hidden} + +.star_full2, +.star_full3, +.star_full4{ height:9px;} + +.star_hollow3,.star_full3{width:68px; height:12px;} +.star_hollow3{background-position:0 -237px; margin-right:8px} +.star_full3{background-position:0 -255px} + +.star_hollow4,.star_full4{width:92px; height:16px} +.star_hollow4{background-position:0 -182px} +.star_full4{background-position:0 -165px} + +/*qq、旺旺、msn*/ +a.qq,a.wang,a.msn,a.qq_1,a.wang_1,a.msn_1{ display:inline-block; width:66px; height:16px; margin:5px auto 0px; vertical-align:text-bottom;} +a.qq_1{background-position:0px -57px;}a.wang{background-position:0px -77px;}a.wang_1{background-position:0px -96px;}a.msn{background-position:0px -117px;}a.msn_1{background-position:0px -135px;} + +/*定制、定购、促销、清仓、团购*/ +.dg,.cx,.qc,.dz,.tg,.by{width:23px; height:11px; text-indent:-99999em; line-height:11px; display:inline-block; margin-left:5px;vertical-align:text-top;vertical-align:baseline\0} +.dg{background-position:-24px 0} +.cx{background-position:0 0} +.qc{background-position:-0px -12px} +.dz{background-position:-24px -12px} +.tg{background-position:0 -24px} +.by{background-position:-24px -24px} + +/*闪电发货、七天发货、先行赔付、延期赔偿、免费安装*/ +.sdfh,.qtth,.xxpf,.yqpc,.mfaz{width:16px; height:16px; line-height:16px; float:left; margin:5px 0 0 5px; display:inline} +.qtth{background-position:0 -301px} +.xxpf{background-position:0 -331px} +.yqpc{background-position:0 -364px} +.mfaz{background-position:0 -395px} + +/*客服层*/ +.service_layer{padding-top:28px; width:96px;} +.service_layer .center{ padding:10px 7px;} +/* +.service_layer .center h3.h3_1{ background:url(../images/new_head/new_head/head_foot_bj.gif) no-repeat -865px -141px; padding-top:10px;} +*/ +.service_layer .center li{ padding-top:6px;} +.service_layer .center li img{ /*vertical-align:text-bottom;*/ margin-right:5px;width:16px; height:16px} +.service_layer .bottom{ height:5px; overflow:hidden; } diff --git a/e3-search-web/src/main/resources/static/css/jquery.alerts.css b/e3-search-web/src/main/resources/static/css/jquery.alerts.css new file mode 100644 index 0000000..e064f3f --- /dev/null +++ b/e3-search-web/src/main/resources/static/css/jquery.alerts.css @@ -0,0 +1,43 @@ +@charset "utf-8"; +#popup_container { + font-family: Arial, sans-serif; + font-size: 12px; + min-width: 300px; /* Dialog will be no smaller than this */ + max-width: 600px; /* Dialog will wrap after this width */ + background: #FFF; + border:3px solid #E6E6E6; + color: #000; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; +} +*html #popup_container {width:304px;} +#popup_content { + padding: 1em 1.75em; + margin: 0em; +} + +#popup_content.alert { +} + +#popup_content.confirm { +} + +#popup_content.prompt { +} + +#popup_message { + color: #6B6B6B; + margin: 0; + padding: 0; + text-align:center +} + +#popup_panel { + text-align: center; + margin: 1em 0em 0em 0em; +} + +#popup_prompt { + margin: .5em 0em; +} \ No newline at end of file diff --git a/e3-search-web/src/main/resources/static/css/jquery.autocomplete.css b/e3-search-web/src/main/resources/static/css/jquery.autocomplete.css new file mode 100644 index 0000000..0908389 --- /dev/null +++ b/e3-search-web/src/main/resources/static/css/jquery.autocomplete.css @@ -0,0 +1,66 @@ +.ac_results { + padding: 0px; + border: 1px solid #dadada; + background-color: white; + overflow: hidden; + z-index: 99; +} + +.ac_results ul { + width: 100%; + list-style-position: outside; + list-style: none; + padding: 0; + margin: 0; +} + +.ac_results li { + margin: 0px; + padding: 2px 5px; + cursor:pointer; + display: block; + /* + if width will be 100% horizontal scrollbar will apear + when scroll mode will be used + */ + /*width: 100%;*/ + font: menu; + font-family: arial,tahoma,宋体; + font-size: 12px; + /* + it is very important, if line-height not setted or setted + in relative units scroll will be broken in firefox + */ + line-height: 18px; + overflow: hidden; +} + +.ac_loading { + background:#fff; +} + +.ac_odd { + /*background-color: #eee*/; +} + +.jq_auto_complete_key{ + float:left; +} + +.jq_auto_complete_results{ + float:right; + color:#646464 +} + +.jq_auto_complete_category_tip{ + padding-left:2em; + color:#777; +} + +.ac_over { + background-color:#f9f9f9;color:#646464; +} +.ac_over .jq_auto_complete_results,.ac_over .jq_auto_complete_category_tip{ + color:#646464; +} + diff --git a/e3-search-web/src/main/resources/static/css/productList.css b/e3-search-web/src/main/resources/static/css/productList.css new file mode 100644 index 0000000..03ecb1d --- /dev/null +++ b/e3-search-web/src/main/resources/static/css/productList.css @@ -0,0 +1,240 @@ +* html,* html body{background-image:url(about:blank);background-attachment:fixed;} +.linknav{overflow:hidden;zoom:1;width:1200px;height:20px;line-height:20px;margin:10px auto;} +.schArticle{float:right;font-family:"宋体";} +.schArticle span{color:#ea5404;} +.content_list{width:1200px;margin:0 auto;} +.main-box{float:right;width:1004px;} +.r-ad{margin-bottom:10px;} +.r-hot{border:1px solid #dadada;height:170px;margin-bottom:10px;} +.r-hot h2{font:14px/30px Microsoft YaHei;height:30px;padding:0 7px 0 10px;background-color:#f5f5f5;} +.r-hot .cm{padding:0 5px 0 25px;overflow:hidden;zoom:1;} +.r-hot dl{float:left;width:304px;overflow:hidden;zoom:1;padding:0;margin:10px 20px 0 0;display:inline;} +.r-hot dt{float:left;width:120px;margin-right:10px;display:inline;overflow:hidden;} +.r-hot dd{overflow:hidden;zoom:1;padding:0;margin:10px 0 0 0;} +.r-hot .title-a,.r-hot .title-b{height:20px;line-height:20px;overflow:hidden;} +.r-hot .title-c{height:40px;line-height:20px;overflow:hidden;} +.r-hot .title-b,.r-hot .title-b a:link,.r-hot .title-b a:visited{color:#EA5404;} +.r-hot .p-price{color:#BB3221;font-family:Microsoft YaHei;} +.r-hot .p-price .fc{color:#999999;font-family:"宋体";} +.r-hot .p-price b{font-size:20px;font-weight:normal;} +.r-hot .rankBtn,.r-hot .p-btn1{margin-top:5px;} +.r-hot .rankBtn a{display:block; border-radius:2px;background:url(../images/productList.png) no-repeat -130px -162px #6b9c05;color: #FFFFFF;cursor: pointer;font-size: 12px;height: 24px;line-height: 24px;text-decoration: none;width: 65px;padding:0 0 0 25px;} +.r-hot .p-btn1 a{display:block;background:#6b9c05;color: #FFFFFF;cursor: pointer;font-size: 12px;height: 24px;line-height: 24px;text-decoration: none;width: 88px;text-align:center;} +.r-select{margin-bottom:10px;*zoom:1;} +.r-select .attr{border-top: 1px dashed #dadada;overflow: hidden;padding:5px 0;zoom:1;} +.r-select .first{border-top:0 none;} +.r-select .attrs-extend{border:1px solid #dadada;} +.attr .a-key {float: left;font-weight: bold;line-height: 25px;text-align: right;width: 100px;color:#6c9c0a;} +.attr .a-value{overflow:hidden;zoom:1;position:relative;} +.attr .v-list{float:left;width:840px;} +.attr .v-list ul{overflow:hidden;zoom:1;} +.attr .v-list li{float:left;width:160px;height:22px;padding-top:3px;overflow:hidden;white-space:nowrap;margin-right:8px;_display:inline;} +.attr .v-show{overflow:hidden;zoom:1;height:20px;padding-top:5px;padding-right:10px;position:absolute;top:0;right:0;} +.attr .v-c{color:#9a9a9a;} +.attr .s-more{float:right;width:36px;cursor:pointer;color:#6c9c0a;} +.attr .s-more b{float:right;background:url(../images/productList.png) no-repeat 0 -14px;width:9px;height:5px;margin-top:7px;} +.attr .s-less{float:right;width:36px;cursor:pointer;color:#6c9c0a;} +.attr .s-less b{float:right;background:url(../images/productList.png) no-repeat -9px -14px;width:9px;height:5px;margin-top:7px;} +.attr .c-clear{overflow:hidden;zoom:1;height:20px;padding-top:5px;padding-right:10px;position:absolute;top:0;right:0;} +.attr .c-clear span{float:right;cursor:pointer;color:#9a9a9a;padding:0 0 0 15px;position:relative;} +.attr .c-clear a:link,.attr .c-clear a:visited{color:#9a9a9a;} +.attr .c-clear b{background:url(../images/productList.png) no-repeat -139px -80px;width:11px;height:16px;position:absolute;left:0;} +.attr .c-list li span{color:#9b9b9b;} +.attr .c-list li{float:left;position:relative;height:20px;border:1px solid #dadada;margin-right:5px;display:block;} +.attr .c-list li a:link,.attr .c-list li a:visited,.attr .c-list li a:hover{text-decoration:none;} +.attr .c-list li a{display:block; padding:2px 20px 0 5px; background:url(about:blank);} +.attr .c-list li b{background:url(../images/productList.png) no-repeat -96px -90px;position:absolute;width:18px;height:18px;right:0;top:4px; z-index:-10;} +.r-select .attrs-show{font-size: 0;height: 0;margin-bottom: 34px;_margin-bottom:0;overflow: visible;position: relative;text-align: center;} +.r-select .attrs-extra{border:1px solid #dbdbdb;border-top:0 none;cursor: pointer;display: inline-block;font-size: 12px;height: 24px;margin-top: -1px;position: relative;text-align: right;background-color:white;*display:inline;+zoom:1;} +.r-select .attrs-extra div {height: 24px;line-height: 24px;padding: 0 25px 0 10px;position: relative;_display:inline;_zoom:1;color:#6c9c0a;} +.r-select .attrs-extra div b{display:block;position:absolute;top:10px;right:10px;overflow:hidden;background:url(../images/productList.png) no-repeat 0 -14px;width:9px;height:5px;} +.r-select .close div b{background:url(../images/productList.png) no-repeat -9px -14px;} +.r-filter{border:1px solid #dadada;background-color:#f5f5f5;width:1002px;margin-bottom:10px;*zoom:1;} +.r-filter .f-sort{height:24px;border-bottom:1px solid #dadada;padding:5px 15px;overflow:hidden;zoom:1;} +.r-filter .sort{float:left;width:400px;} +.r-filter .sort ul{overflow:hidden;zoom:1;border-left:1px solid #dadada;} +.r-filter .sort li{float:left;} +.r-filter .sort li a{width:64px;height:22px;line-height:22px;text-align:center;border:1px solid #dadada;border-left:0 none;background-color:white;position:relative;display:block;} +.r-filter .sort li a:hover{text-decoration:none;} +.r-filter .sort li.curr a{border:1px solid #6c9c0a;background-color:#6c9c0a;color:white;} +.r-filter .sort .down b{position:absolute;right:9px;height:8px;width:7px;background:url(../images/productList.png) no-repeat -45px 0;top:8px;overflow:hidden;} +.r-filter .sort .up b{position:absolute;right:9px;height:8px;width:7px;background:url(../images/productList.png) no-repeat -52px 0;top:8px;overflow:hidden;} +.r-filter .sort li.curr .down b{background:url(../images/productList.png) no-repeat -88px -80px;} +.r-filter .sort li.curr .up b{background:url(../images/productList.png) no-repeat -95px -80px;} +.r-filter .pagin{float:right;} +.r-filter .pagin .txt{float:left;line-height:24px;padding:0 15px;} +.r-filter .pagin span.n{color:#BB3221;} +.r-filter .pagin a.prev,.r-filter .pagin a.next,.r-filter .pagin span.prev,.r-filter .pagin span.next{width:18px;height:18px;border:1px solid #cccccc;margin:2px;text-indent:-9999px;float:left;overflow:hidden;} +.r-filter .pagin a.prev{background:url(../images/productList.png) no-repeat -18px -14px;} +.r-filter .pagin a.next{background:url(../images/productList.png) no-repeat -36px -14px;} +.r-filter .pagin a.prev:hover{background:url(../images/productList.png) no-repeat 0 -124px;border:1px solid #6c9c0a;} +.r-filter .pagin a.next:hover{background:url(../images/productList.png) no-repeat -18px -124px;border:1px solid #6c9c0a;} +.r-filter .pagin span.prev{background:url(../images/productList.png) no-repeat -36px -124px;} +.r-filter .pagin span.next{background:url(../images/productList.png) no-repeat -54px -124px;} +.r-filter .total{float:right;line-height:24px;padding:0 15px 0 0;} +.r-filter .total span{color:#bb3221;font-family:Arial, Helvetica, sans-serif;font-weight:bold;} +.r-filter .f-stock{height:26px;padding:5px 15px;} +.r-filter .rowTitle{float:left;line-height:26px;} +.r-filter .rowAddr{float:left;} +.r-filter .rowFilter{float:left;margin-top:5px;} +.r-filter .rowFilter span{margin-left:5px;color:#999999;} +.r-filter .rowFilter input{margin-right:3px;} +.filterScroll{position:fixed;top:0;z-index:2;} +* html .filterScroll{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));} +.p-list .list-all li{float:left;width:241px;height:358px;padding:5px;} +.p-list .list-all li .l-wrap{width:219px;height:336px;padding:11px;position:relative;z-index:1;} +.p-list .list-all li.curr{padding:0;border:5px solid #f5f5f5;border-radius:6px;} +.p-list .list-all li.curr .l-wrap{border:1px solid #d7d7d7;padding:10px;} +.p-list .list-all .pic{text-align:center;} +.p-list .list-all .pic img{width:210px;height:210px;border:0;} +.p-list .list-all .price{margin:8px 0 5px 0;height:20px;overflow:hidden;zoom:1;} +.p-list .list-all .price span{ float:left;margin-right:5px;_display:inline;line-height:20px;} +.p-list .list-all .p-now{font-family:微软雅黑;color:#BB3221;} +.p-list .list-all .p-now strong{font-size:20px;font-weight:normal;} +.p-list .list-all .p-nor{font-family:微软雅黑;text-decoration: line-through;} +.p-list .list-all .active{background-color:#6f9a09;padding:0 2px;color:white;} +.p-list .list-all .title-a,.p-list .title-b{height:20px;line-height:20px;overflow:hidden;} +.p-list .list-all .title-b{color:#EA5404;} +.p-list .list-all .title-b a:link,.p-list .list-all .title-b a:visited{color:#EA5404;} +.p-list .list-all .comment{color:#195f45;height:20px;line-height:20px;overflow:hidden;} +.p-list .list-all .comment a:link,.p-list .list-all .comment a:visited{color:#195f45;} +.p-list .list-all .action{margin-top:5px;} +.p-list .list-all .p-num{float:left;width:55px;height:25px;overflow:hidden;zoom:1;} +.p-list .list-all .p-num input{width:21px;height:18px;line-height:18px;text-align:center;border:1px solid #dadada;padding:2px;font-size:12px;overflow:hidden;color:#6b6b6b;} +.p-list .list-all .p-num span{float:left;margin-right:2px;} +.p-list .list-all .p-num a{width:13px;height:9px;border:1px solid #dadada;display:block;line-height:9px;text-align:center;text-decoration:none;cursor:pointer;color:#6b6b6b;} +.p-list .list-all .p-num .p-reduce{margin-top:2px;} +.p-list .list-all .p-btn,.p-list .list-all .p-btn1,.p-list .list-all .p-btn2{float:left;margin-right:10px;_display:inline;} +.p-list .list-all .p-num .disable{color:#dadada;cursor:default;} +.p-list .list-all .p-btn a {background: url(../images/productList.png) no-repeat scroll -130px -193px;border:1px solid #dadada; border-radius:2px;cursor: pointer;display: block;font-size: 12px;height: 22px;line-height: 22px;padding: 0 0 0 25px;text-decoration: none;width: 63px;color:#557e00;} +.p-list .list-all li.curr .p-btn a{background: url(../images/productList.png) no-repeat scroll -130px -162px #6B9C05;color: #FFFFFF;height: 24px;line-height: 24px;width: 65px;border:0 none;border-radius:2px;} +.p-list .list-all .p-btn1 a{border:1px solid #dadada;border-radius:2px;cursor: pointer;display: block;font-size: 12px;height: 22px;line-height: 22px;width: 88px;color:#557e00;text-align:center;padding:0;text-decoration: none;} +.p-list .list-all li.curr .p-btn1 a{background:#6B9C05;color: #FFFFFF;} +.p-list .list-all .p-btn2 a{border:1px solid #dadada;border-radius:2px;cursor:default;display: block;font-size: 12px;height: 22px;line-height: 22px;width: 88px;color:#999999;text-align:center;padding:0;text-decoration: none;} +.left-box{float:left;width:186px;} +.catlist{border-width:2px 1px 1px 1px; border-color:#999999 #dadada #dadada #dadada;border-style:solid;overflow:hidden;width:184px;} +.catlist h2{height:40px;line-height:40px;font-family:"微软雅黑";font-size:16px;padding:0 7px 0 10px;background-color:#f5f5f5;border-bottom:1px solid #dadada;} +.catlist .catitem{border-top:1px dashed #dadada;zoom:1;} +.catlist h3{height:34px;line-height:34px;padding:0 7px 0 10px;font:14px/34px 宋体;font-weight:bold;color:#6d6d6d;cursor:pointer;overflow:hidden;} +.catlist li{height: 20px;line-height:20px;overflow: hidden;padding: 3px 15px 3px 30px;width: 144px;color:#6f6f6f;} +.catlist li a:link,.catlist li a:visited{color:#6f6f6f;} +.catlist li a:hover{color:#669900;text-decoration:none;} +.catlist h3 span{font-size:12px;color:#999999;} +.catlist h3 a:hover{color:#669900;text-decoration:none;} +.catlist h3 a.curr:link,.catlist h3 a.curr:visited,.catlist h3 a.curr:link span,.catlist h3 a.curr:visited span{color:#EA5404;} +.catlist ul{display:none;} +.catlist .curr ul{display:block;} +.catlist b{cursor: pointer;float:left;height: 14px;margin:10px 5px 0 0;overflow: hidden;width: 14px;background:url(../images/productList.png) no-repeat;display:inline;} +.catlist .curr b{background:url(../images/productList.png) -14px 0 no-repeat;} +#artMenu .catitem{padding:0 0 0 10px;} +#artMenu .curr h3{color:#0a6737;} +.catlist .catitem a.cur{color:#ea5404;} +.l-recommend{border:1px solid #dadada;margin-top:10px;} +.l-recommend h2{height:30px;line-height:30px;background-color:#f5f5f5;color:#565656;font-family:"微软雅黑";font-size:14px;font-weight:normal;padding:0 0 0 10px;} +.pRecomm{height:325px;overflow:hidden;} +.l-hot,.l-buy{padding:0 10px;} +.l-hot li{border-bottom:1px dotted #d5d5d5;padding:10px 0;} +.l-hot .p-name{height:18px;line-height:18px;overflow:hidden;} +.l-hot .fore{overflow:hidden;zoom:1;} +.l-hot .fore .p-img{float:left;width:50px;height:50px;margin-right:8px;_display:inline;} +.l-hot .fore .p-img img{height:50px;height:50px;} +.l-hot .fore .p-name{width:106px;height:40px;line-height:20px;float:left;overflow:hidden;} +.l-hot .fore .p-price{width:106px;height:20px;line-height:20px;float:left;overflow:hidden;color:#BB3221;font-size:16px;font-family:"微软雅黑";} +.l-hot .last{border-bottom:0 none;} +.l-buy li{padding:10px 0;} +.l-buy .p-img{text-align:center;} +.l-buy .p-img img{width:120px;height:120px;} +.l-buy .title-a,.l-buy .title-b,.p-guess .title-a,.p-guess .title-b,.fl-pic .title-a,.fl-pic .title-b{height:20px;line-height:20px;overflow:hidden;} +.l-buy .title-a,.p-guess .p-price,.fl-pic .p-price{margin-top:5px;} +.l-buy .title-b,.p-guess .title-b,.fl-pic .title-b{color:#EA5404;} +.l-buy .title-b a:link,.p-guess .title-b a:link,.fl-pic .title-b a:link,.l-buy .title-b a:visited,.p-guess .title-b a:visited,.fl-pic .title-b a:visited{color:#EA5404;} +.l-buy .p-price{height:20px;line-height:20px;overflow:hidden;color:#BB3221;font-size:16px;font-family:"微软雅黑";} +.l-promo img{width:186px;padding-top:10px;} +.p-guess li{float:left;padding:10px 20px;width:210px;} +.p-guess .p-img{text-align:center;} +.p-guess .p-img img{width:210px;height:210px;} +.p-guess .p-now{font-family:微软雅黑;color:#BB3221;margin-right:5px} +.p-guess .p-now strong{font-size:20px;font-weight:normal;} +.p-guess .p-nor{font-family:微软雅黑;text-decoration: line-through;} + +/*搜索无结果*/ +.intellisense .ct{text-align:center;font-family:微软雅黑;color:black;font-size:18px;line-height:22px;padding:5px;} +.intellisense b{color:#ea5404;font-weight:normal;} +.intellisense dl{width:340px;margin:10px auto;overflow:hidden;zoom:1;} +.intellisense dt{float:left;padding:3px 0;} +.intellisense dd{overflow:hidden;zoom:1;} +.intellisense dd div{padding:3px 0;color:#565656;} +.intellisense dd a:link,.intellisense dd a:visited{color:#ea5404;} +.pRecomm .p-guess li{padding:10px 10px 10px 18px;} +/*搜索文章结果*/ +.searchResult{border:1px solid #dadada;padding:10px;color:#565656;margin-bottom:10px;overflow:hidden;zoom:1;} +.searchResult span{color:#ea5404;} +.searchArticle{overflow:hidden;zoom:1;} +.articleList li{float:left;width:492px;padding:5px;} +.articleList li.curr{padding:0;border:5px solid #f5f5f5;border-radius:6px;} +.articleList li.curr .artiWrap{border:1px solid #d7d7d7;padding:9px;} +.artiWrap{overflow:hidden;zoom:1;font-size:14px;padding:10px;} +.artiWrap .pic{float:left;width:130px;} +.artiWrap .pic img{width:120px;height:120px;} +.artiWrap .txt{overflow:hidden;zoom:1;} +.artiWrap h2{font-size:14px;padding:10px 0;text-indent:30px;} +.artiWrap p{text-indent:30px;line-height:20px;height:60px;overflow:hidden;} +.artiWrap span{display:block;text-align:right;color:#ea5404} +.artiWrap span a:link,.artiWrap span a:visited{color:#ea5404} +/*猜您喜欢*/ +.fl-pic{overflow: hidden;width:960px;margin:0 20px;position:relative;z-index:1} +.fl-pic ul{width:35000px;} +.fl-pic ul li{float:left;width:1000px;margin:0;} +.fl-pic .p-box{float:left;padding:10px 40px 10px 0;width:210px;overflow:hidden;} +.fl-pic .p-img{text-align:center;} +.fl-pic .p-img img{width:210px;height:210px;} +.fl-pic .p-now{font-family:微软雅黑;color:#BB3221;margin-right:5px} +.fl-pic .p-now strong{font-size:20px;font-weight:normal;} +.fl-pic .p-nor{font-family:微软雅黑;text-decoration: line-through;} +.left-arrow,.right-arrow{float:left;display:inline;margin:10px 0px 0px 0px;width:21px;height:50px;cursor:pointer;position:absolute;top:90px;z-index:3;} +.left-arrow{left:0;} +.right-arrow{right:0;} +.left-arrow s{background: url(../images/productList.png) no-repeat -102px -100px;cursor: pointer;display: block;height: 38px;width: 21px;} +.right-arrow s{background: url(../images/productList.png) no-repeat -123px -100px;cursor: pointer;display: block;height: 38px;width: 21px;} +.related-search{ height:28px; line-height:28px; padding-left:10px; background:#f5f5f5; border-top:1px solid #dadada; border-left:1px solid #dadada; border-right:1px solid #dadada; font-family:"宋体"} +.related-search h1{ font-weight:normal;} +.related-search font{color:#EA5404;} +.priceInput{vertical-align: top; width: 46px; height: 20px;border:1px solid #DADADA;overflow:hidden;line-height:20px;padding:0 2px;font-size:12px;text-align:center;} + +/*店庆精选标识*/ +.pic {position: relative;} +.pic > i {position: absolute;width: 42px;height: 50px;top:0;left: 9px;background: url(../images/dq_icon2.png) no-repeat center center;} + +/*自营标识*/ +.owner_shop_list {display: inline-block; + width: 37px; + height: 18px; + line-height: 18px; + background-color: #6f9a09; + border-radius: 3px; + text-align: center; + color: #fff; margin-left: 5px;} + +/* 顶通广告 */ +.topclose { + background: rgba(0, 0, 0, 0) url("../images/topclose.png") no-repeat scroll center center; + cursor: pointer; + height: 16px; + left: 50%; + margin-left: 575px; + position: absolute; + text-indent: -9999px; + top: 5px; + width: 25px; +} +.toppromo .banner { + height: 80px; + width: 100%; +} +.toppromo .banner a { + display: block; + height: 80px; + margin: 0 auto; + text-indent: -9999px; + width: 1200px; +} \ No newline at end of file diff --git a/e3-search-web/src/main/resources/static/images/bottom_sm.png b/e3-search-web/src/main/resources/static/images/bottom_sm.png new file mode 100644 index 0000000..58f5a5f Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/bottom_sm.png differ diff --git a/e3-search-web/src/main/resources/static/images/cate_bg.jpg b/e3-search-web/src/main/resources/static/images/cate_bg.jpg new file mode 100644 index 0000000..61094da Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/cate_bg.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/dq_icon2.png b/e3-search-web/src/main/resources/static/images/dq_icon2.png new file mode 100644 index 0000000..5a62f34 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/dq_icon2.png differ diff --git a/e3-search-web/src/main/resources/static/images/error_img.jpg b/e3-search-web/src/main/resources/static/images/error_img.jpg new file mode 100644 index 0000000..ce276ae Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/error_img.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/foot/cd.jpg b/e3-search-web/src/main/resources/static/images/foot/cd.jpg new file mode 100644 index 0000000..e8df0d3 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/foot/cd.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/foot/logo.jpg b/e3-search-web/src/main/resources/static/images/foot/logo.jpg new file mode 100644 index 0000000..7b6fadc Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/foot/logo.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/foot/qc.jpg b/e3-search-web/src/main/resources/static/images/foot/qc.jpg new file mode 100644 index 0000000..4b46003 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/foot/qc.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/foot/qq.jpg b/e3-search-web/src/main/resources/static/images/foot/qq.jpg new file mode 100644 index 0000000..fc758ef Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/foot/qq.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/foot/sf.jpg b/e3-search-web/src/main/resources/static/images/foot/sf.jpg new file mode 100644 index 0000000..30fa773 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/foot/sf.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/foot_bottom.png b/e3-search-web/src/main/resources/static/images/foot_bottom.png new file mode 100644 index 0000000..51e2ca2 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/foot_bottom.png differ diff --git a/e3-search-web/src/main/resources/static/images/g_loading.png b/e3-search-web/src/main/resources/static/images/g_loading.png new file mode 100644 index 0000000..6cf5ab3 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/g_loading.png differ diff --git a/e3-search-web/src/main/resources/static/images/header.png b/e3-search-web/src/main/resources/static/images/header.png new file mode 100644 index 0000000..05c5e6b Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/header.png differ diff --git a/e3-search-web/src/main/resources/static/images/html/042cc65a4fb9899878f2f37235ca1793.jpg b/e3-search-web/src/main/resources/static/images/html/042cc65a4fb9899878f2f37235ca1793.jpg new file mode 100644 index 0000000..de839c8 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/042cc65a4fb9899878f2f37235ca1793.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1463455028.jpg b/e3-search-web/src/main/resources/static/images/html/1463455028.jpg new file mode 100644 index 0000000..3ba94e1 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1463455028.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1463456854.jpg b/e3-search-web/src/main/resources/static/images/html/1463456854.jpg new file mode 100644 index 0000000..3d3b515 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1463456854.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1468837571.jpg b/e3-search-web/src/main/resources/static/images/html/1468837571.jpg new file mode 100644 index 0000000..b6aacc3 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1468837571.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1471311388.jpg b/e3-search-web/src/main/resources/static/images/html/1471311388.jpg new file mode 100644 index 0000000..70cbbf6 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1471311388.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1471311447.jpg b/e3-search-web/src/main/resources/static/images/html/1471311447.jpg new file mode 100644 index 0000000..d1b951e Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1471311447.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1472521203.jpg b/e3-search-web/src/main/resources/static/images/html/1472521203.jpg new file mode 100644 index 0000000..165360c Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1472521203.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1472521236.jpg b/e3-search-web/src/main/resources/static/images/html/1472521236.jpg new file mode 100644 index 0000000..3dd56ef Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1472521236.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1472521250.jpg b/e3-search-web/src/main/resources/static/images/html/1472521250.jpg new file mode 100644 index 0000000..1ccf1cc Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1472521250.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/1748dcf682d7f595012e4309695d71d9.jpg b/e3-search-web/src/main/resources/static/images/html/1748dcf682d7f595012e4309695d71d9.jpg new file mode 100644 index 0000000..38e85e3 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/1748dcf682d7f595012e4309695d71d9.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/20160829181637762.gif b/e3-search-web/src/main/resources/static/images/html/20160829181637762.gif new file mode 100644 index 0000000..ed8b0ad Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/20160829181637762.gif differ diff --git a/e3-search-web/src/main/resources/static/images/html/26336113289bf7273823080488a9d200.jpg b/e3-search-web/src/main/resources/static/images/html/26336113289bf7273823080488a9d200.jpg new file mode 100644 index 0000000..10dae6a Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/26336113289bf7273823080488a9d200.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/2a3ba6ffb33d8fca0dc848f94e3d99d8.jpg b/e3-search-web/src/main/resources/static/images/html/2a3ba6ffb33d8fca0dc848f94e3d99d8.jpg new file mode 100644 index 0000000..926efe8 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/2a3ba6ffb33d8fca0dc848f94e3d99d8.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/49111b8189bf71370cdb145f8fdb1195.jpg b/e3-search-web/src/main/resources/static/images/html/49111b8189bf71370cdb145f8fdb1195.jpg new file mode 100644 index 0000000..710251e Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/49111b8189bf71370cdb145f8fdb1195.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/4dd7317569a06a451c1fe7762d6bf928.jpg b/e3-search-web/src/main/resources/static/images/html/4dd7317569a06a451c1fe7762d6bf928.jpg new file mode 100644 index 0000000..5c7c527 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/4dd7317569a06a451c1fe7762d6bf928.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/516e4d058d1d65a3506e179642297b2d.jpg b/e3-search-web/src/main/resources/static/images/html/516e4d058d1d65a3506e179642297b2d.jpg new file mode 100644 index 0000000..fbf133b Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/516e4d058d1d65a3506e179642297b2d.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/51e357022c1f826f13211222831a4b13.jpg b/e3-search-web/src/main/resources/static/images/html/51e357022c1f826f13211222831a4b13.jpg new file mode 100644 index 0000000..8f0ba9c Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/51e357022c1f826f13211222831a4b13.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/600c425e04b41f49e451d2fdbafb6e45.jpg b/e3-search-web/src/main/resources/static/images/html/600c425e04b41f49e451d2fdbafb6e45.jpg new file mode 100644 index 0000000..ac79bf1 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/600c425e04b41f49e451d2fdbafb6e45.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/751d2091c008c2a49c1934545730f041.jpg b/e3-search-web/src/main/resources/static/images/html/751d2091c008c2a49c1934545730f041.jpg new file mode 100644 index 0000000..9619f34 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/751d2091c008c2a49c1934545730f041.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/757e35fab995b43c23b4396dc3ba4269.jpg b/e3-search-web/src/main/resources/static/images/html/757e35fab995b43c23b4396dc3ba4269.jpg new file mode 100644 index 0000000..7ad2f65 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/757e35fab995b43c23b4396dc3ba4269.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/7a80fda907bf5107f6967add2a304a51.jpg b/e3-search-web/src/main/resources/static/images/html/7a80fda907bf5107f6967add2a304a51.jpg new file mode 100644 index 0000000..7d9d2fd Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/7a80fda907bf5107f6967add2a304a51.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg b/e3-search-web/src/main/resources/static/images/html/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg new file mode 100644 index 0000000..bcf774f Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/7cc96c14e10f6ed8db28b4b1efdfdb07.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/838abc2055e36f423701de255bbc9914.jpg b/e3-search-web/src/main/resources/static/images/html/838abc2055e36f423701de255bbc9914.jpg new file mode 100644 index 0000000..8463f8c Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/838abc2055e36f423701de255bbc9914.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/8f42d6d2deead3da7d50c8a702a3c939.jpg b/e3-search-web/src/main/resources/static/images/html/8f42d6d2deead3da7d50c8a702a3c939.jpg new file mode 100644 index 0000000..cf73514 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/8f42d6d2deead3da7d50c8a702a3c939.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/95256f5b2857ec28914f631532508d76.jpg b/e3-search-web/src/main/resources/static/images/html/95256f5b2857ec28914f631532508d76.jpg new file mode 100644 index 0000000..9664657 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/95256f5b2857ec28914f631532508d76.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/aa472cb9f9624d22d1fcfd1c4dffbe42.jpg b/e3-search-web/src/main/resources/static/images/html/aa472cb9f9624d22d1fcfd1c4dffbe42.jpg new file mode 100644 index 0000000..3166d0e Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/aa472cb9f9624d22d1fcfd1c4dffbe42.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/c11e0d59289782b09ea1cbcb98070017.jpg b/e3-search-web/src/main/resources/static/images/html/c11e0d59289782b09ea1cbcb98070017.jpg new file mode 100644 index 0000000..2f1e1a1 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/c11e0d59289782b09ea1cbcb98070017.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/c3449a684bebe21f5b6c6c79e46791ff.jpg b/e3-search-web/src/main/resources/static/images/html/c3449a684bebe21f5b6c6c79e46791ff.jpg new file mode 100644 index 0000000..eeb0134 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/c3449a684bebe21f5b6c6c79e46791ff.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/cf33d7d36f1128577782ded21fe812a9.jpg b/e3-search-web/src/main/resources/static/images/html/cf33d7d36f1128577782ded21fe812a9.jpg new file mode 100644 index 0000000..5eec842 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/cf33d7d36f1128577782ded21fe812a9.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/ddf3f66b114f3a3bfbbe0b47693cdbf0.jpg b/e3-search-web/src/main/resources/static/images/html/ddf3f66b114f3a3bfbbe0b47693cdbf0.jpg new file mode 100644 index 0000000..029725a Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/ddf3f66b114f3a3bfbbe0b47693cdbf0.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/de66a063548629c8d4e639523d8c9c6e.jpg b/e3-search-web/src/main/resources/static/images/html/de66a063548629c8d4e639523d8c9c6e.jpg new file mode 100644 index 0000000..01fcacc Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/de66a063548629c8d4e639523d8c9c6e.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/e886f76e03f7a3596033eb34ca362339.jpg b/e3-search-web/src/main/resources/static/images/html/e886f76e03f7a3596033eb34ca362339.jpg new file mode 100644 index 0000000..74b6a4c Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/e886f76e03f7a3596033eb34ca362339.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/html/logo_word.jpg b/e3-search-web/src/main/resources/static/images/html/logo_word.jpg new file mode 100644 index 0000000..013f245 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/html/logo_word.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/indexImg20130307.png b/e3-search-web/src/main/resources/static/images/indexImg20130307.png new file mode 100644 index 0000000..9eebc18 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/indexImg20130307.png differ diff --git a/e3-search-web/src/main/resources/static/images/index_icon_new.png b/e3-search-web/src/main/resources/static/images/index_icon_new.png new file mode 100644 index 0000000..2c35aee Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/index_icon_new.png differ diff --git a/e3-search-web/src/main/resources/static/images/indexsprite.png b/e3-search-web/src/main/resources/static/images/indexsprite.png new file mode 100644 index 0000000..9cd103a Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/indexsprite.png differ diff --git a/e3-search-web/src/main/resources/static/images/kxicon.jpg b/e3-search-web/src/main/resources/static/images/kxicon.jpg new file mode 100644 index 0000000..2f62e37 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/kxicon.jpg differ diff --git a/e3-search-web/src/main/resources/static/images/left_lm_m_a.png b/e3-search-web/src/main/resources/static/images/left_lm_m_a.png new file mode 100644 index 0000000..ee52848 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/left_lm_m_a.png differ diff --git a/e3-search-web/src/main/resources/static/images/logo66.png b/e3-search-web/src/main/resources/static/images/logo66.png new file mode 100644 index 0000000..3f18410 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/logo66.png differ diff --git a/e3-search-web/src/main/resources/static/images/productList.png b/e3-search-web/src/main/resources/static/images/productList.png new file mode 100644 index 0000000..04a8fa1 Binary files /dev/null and b/e3-search-web/src/main/resources/static/images/productList.png differ diff --git a/e3-search-web/src/main/resources/static/js/NewVersion.js b/e3-search-web/src/main/resources/static/js/NewVersion.js new file mode 100644 index 0000000..a64f145 --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/NewVersion.js @@ -0,0 +1,128 @@ +$(document).ready(function(){ + $("#div_topmenu li.li1,#div_topmenu li.li2,#div_topmenu li.li3").hover( + function(){ + $(this).children(".dropdown").stop(true,true).fadeIn(500); + + }, + function(){ + $(".dropdown").hide(); + refresh_header_cart_total_number(); + } + ); + + $("#header-login-btn").click(function(){ + var user_name = $("#header-login-username").val(); + var password = $("#header-login-password").val(); + if (user_name == "") { + $("#header-login-username").css("border-color", "red"); + $("#header-login-username").focus(); + return ; + } + else { + $("#header-login-username").css("border-color", "#BBB"); + } + if (password == "") { + $("#header-login-password").css("border-color", "red"); + $("#header-login-password").focus(); + return ; + } + else { + $("#header-login-password").css("border-color", "#BBB"); + } + + $.ajax({ + type: "GET", + url: "/user.php", + data: "act=ajax_login&username="+user_name+"&password="+password, + beforeSend: function(XMLHttpRequest) { + $("#login_form").show(); + $("#header-login-loading-img").show(); + }, + success: function(data){ + if (data == 1) { + $("#login").html($("#header-login-success").html()); + } + else { + $("#header-login-username").css("border-color", "red"); + $("#header-login-password").css("border-color", "red"); + $("#header-login-loading-img").hide(); + } + } + }); + + + + }); + + $("#cart a").hover( + function(){ + refresh_header_cart(); + refresh_header_cart_total_number(); + }, + function(){ + + } + ); + + $(".goToTop").click(function(){ + /* $("body").scrollTop(0); */ + window.scrollTo(0,0); + }); + + $("#keyword").focus(function(){ + $("#a_search_form").show(500); + }); + + $("#a_search").hover(function(){ + $("#a_search_form").show(500); + }); + + $("#search_close_btn").click(function(){ + $("#a_search_form").hide(500); + }); + +}); + +function refresh_header_cart() { + $.ajax({ + type: "GET", + url: "/cart_goods_ajax.php", + data: "t=goods_list", + beforeSend: function () { + $("#header-cart-loading-img").show(); + }, + success: function(data){ + $("#header-cart-loading-img").hide(); + $("#cart_form").html(data); + } + }); +} + +function refresh_header_cart_total_number() { + $.ajax({ + type: "GET", + url: "/cart_goods_ajax.php", + data: "t=total_number", + success: function(data){ + var data1 = parseInt(data); + $("#top-cart-num").html(data1); + } + }); +} + +function delete_cart_goods(recId) { + if (recId > 0) { + $.ajax({ + type: "GET", + url: "/cart_goods_ajax.php", + data: "t=delete_goods&rec_id="+recId, + success: function(data){ + refresh_header_cart(); + } + }); + } + else { + alert("unknown error! Please try again later!"); + return ; + } +} diff --git a/e3-search-web/src/main/resources/static/js/cart.js b/e3-search-web/src/main/resources/static/js/cart.js new file mode 100644 index 0000000..e35fba9 --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/cart.js @@ -0,0 +1,720 @@ +var hostUrl = document.location.host; +var urlArr = hostUrl.split('.'); +var domain = urlArr[1]+'.'+urlArr[2]; +var SF_STATIC_URL = 'http://i.'+domain; +var SF_STATIC_URL_HTML = 'http://i.'+domain+'/html/'; +var cartHostUrl = 'http://cart.'+domain; +var wwwHostUrl = 'http://www.'+domain; + +var sfAddCart ={ + pid:null, + init:function(){ + var win_w = $(window).width(); + if (win_w <= 1400) {$(".side-wrap").addClass("side_pos");} + else {$(".side-wrap").removeClass("side_pos");} + $(window).resize(function() { + var win_width = $(window).width(); + if (win_width <= 1400) {$(".side-wrap").addClass("side_pos");} + else {$(".side-wrap").removeClass("side_pos");} + }); + sfAddCart.cartHover(); + $(".p-btn a,.rankBtn a,.rushBuy").live("click",function(){ + $(".listpic-mini").html(""); + This = $(this); + //是否是首页商品添加购物车标识 + var indexFlag = This.attr("indexFlag"); + //是否是生鲜频道页添加购物车标识 + var freshFlag = This.attr("freshFlag"); + sfAddCart.pid = This.attr("pid"); + if(typeof(indexFlag) == "undefined"){ + if(typeof(freshFlag) == "undefined"){ + //其它页面商品添加购物车 + setTimeout(function(){cartAdd(sfAddCart.pid, 0, 1, 5);},100); + }else{ + //生鲜频道页商品添加购物车 + setTimeout(function(){cartAdd(sfAddCart.pid, 0, 1, 13,1,This);},100); + } + + }else{ + //首页页商品添加购物车 + setTimeout(function(){cartAdd(sfAddCart.pid, 0, 1, 7,1,This);},100); + } + }); + }, + cartHover:function(){ + $("#side_cart").bind("mouseenter",function(){ + clearTimeout(sfAddCart.cartHover.timer1); + sfAddCart.cartHover.timer1 = setTimeout(function(){sfAddCart.cartList("show","1")},500); + }).bind("mouseleave",function(){ + clearTimeout(sfAddCart.cartHover.timer1); + sfAddCart.cartHover.timer1 = setTimeout(function(){sfAddCart.cartList("hide","1")},500); + }); + $(".cart-list").live("mouseenter",function(){ + clearTimeout(sfAddCart.cartHover.timer1); + sfAddCart.cartHover.timer1 = setTimeout(function(){sfAddCart.cartList("show","1")},500); + }).live("mouseleave",function(){ + clearTimeout(sfAddCart.cartHover.timer1); + sfAddCart.cartHover.timer1 = setTimeout(function(){sfAddCart.cartList("hide","1")},500); + }); + $("#side_guang").bind("mouseenter",function(){ + clearTimeout(sfAddCart.cartHover.timer2); + sfAddCart.cartHover.timer2 = setTimeout(function(){sfAddCart.cartList("show","2")},500); + }).bind("mouseleave",function(){ + clearTimeout(sfAddCart.cartHover.timer2); + sfAddCart.cartHover.timer2 = setTimeout(function(){sfAddCart.cartList("hide","2")},500); + }); + $(".his-list").live("mouseenter",function(){ + clearTimeout(sfAddCart.cartHover.timer2); + sfAddCart.cartHover.timer2 = setTimeout(function(){sfAddCart.cartList("show","2")},500); + }).live("mouseleave",function(){ + clearTimeout(sfAddCart.cartHover.timer2); + sfAddCart.cartHover.timer2 = setTimeout(function(){sfAddCart.cartList("hide","2")},500); + }); + $("#side_app").bind("mouseenter",function(){ + clearTimeout(sfAddCart.cartHover.timer3); + sfAddCart.cartHover.timer3 = setTimeout(function(){sfAddCart.cartList("show","3")},500); + }).bind("mouseleave",function(){ + clearTimeout(sfAddCart.cartHover.timer3); + sfAddCart.cartHover.timer3 = setTimeout(function(){sfAddCart.cartList("hide","3")},500); + }); + $(".appDown").live("mouseenter",function(){ + clearTimeout(sfAddCart.cartHover.timer3); + sfAddCart.cartHover.timer3 = setTimeout(function(){sfAddCart.cartList("show","3")},500); + }).live("mouseleave",function(){ + clearTimeout(sfAddCart.cartHover.timer3); + sfAddCart.cartHover.timer3 = setTimeout(function(){sfAddCart.cartList("hide","3")},500); + }); + }, + cartList: function(type,i) { + var right, time; + if (type == "hide") { + right = "-101%"; + time = 800 + } else { + right = 0; + time = 300; + if ("1"==i){ + $(".cart-wrap").show() + }else if("2"==i){ + $(".guang").show() + }else if("3"==i){ + $(".appInfo").show() + } + } + if ("1"==i){ + $(".cart-wrap").find(".cart-list").animate({ + "right": right + }, time, function() { + if (type == "hide") $(".cart-wrap").hide() + }) + }else if ("2"==i){ + $(".guang").find(".his-list").animate({ + "right": right + }, time, function() { + if (type == "hide") $(".guang").hide(); + }) + }else if ("3"==i){ + $(".appInfo").find(".appItem").animate({ + "right": right + }, time, function() { + if (type == "hide") $(".appInfo").hide(); + }) + } + }, + cartNumShow:function(){ + var addNum = $("#number_" + sfAddCart.pid).val(); + var tips_obj = $(".cart-list").find(".cart-num"); + $("#add-num").html(addNum); + tips_obj.height(48).show(); + var addOne_timer = setTimeout(function() { + tips_obj.animate({ + "height": 0 + }, 300, function() { + tips_obj.hide(); + $("#side_cart").trigger("mouseleave"); + }) + }, 3E3); + } +}; + +/* + 逛商品加购物车 + */ +function hisCartAdd(pid){ + cartAdd(pid,0,0,6); + $.ajax({ + type: 'POST', + async: false, + dataType: 'json', + url: "/product/delHistory/", + data: {pid:pid}, + success: function(str){ + getHistory(); + } + }); +} +/** + 获了逛数据 + */ +function getHistory(){ + $.post("/product/guang/",{},function(str){ + if(str){ + $("#history_con").html(str); + } + }); +} + +/*购物车删除单个商品 + @param string value 活动类型-活动id-商品id 这三者组合 + */ +function cartDel(value){ + $.ajax({ + url : cartHostUrl+'/cart/delCartProduct/', + type : 'GET', + //dataType: 'json', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {val : new Array(value)}, + success: function(msg){ + if(msg.error==1){ + if($('#'+msg.info.type).length > 0){ + $('#'+msg.info.type).html(msg.data); + chmodeNum(msg.info.cart); + } + getCartList();//更新右上角的购物列表 + //changeCheckboxStats(); + }else{ + jAlert(msg.info); + } + } + }); +} + +/** + 获取每个页面头部的购物列表的方法 + */ +function getCartList(){ + $.ajax({ + url : cartHostUrl+'/cart/headerCart/', + type : 'GET', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {}, + success: function(msg){ + if(msg.error==1){ + $('#cartNum').html(msg.info.num); + $('#cart_lists').html(msg.data); + if(msg.info.num>0){ + $("#topCart").find("s").addClass("setCart"); + } + if($('#showcart').length > 0){ + $('#showcart').html('购物车共计'+msg.info.num+'件商品,合计 '+msg.info.price+'元'); + } + if($('#list_cart').length > 0){ + //$('#list_cart').html(msg.data); + $('#list_cart').html(msg.data1); + $('.s-cart-num').html(msg.info.num); + var numList = $("li","#list_cart").length; + 0 !== numList && $('.s-cart-num').addClass("s-cart-add"); + switch(numList) + { + case 0: + $(".cart-shopping").css("bottom","152px"); + $(".cart-wrap .cart-arr").css("bottom","10px"); + $('.s-cart-num').removeClass("s-cart-add"); + $('.s-cart-num').hide(); + break; + case 1: + $(".cart-shopping").css("bottom","50px"); + $(".cart-wrap .cart-arr").css("bottom","110px"); + $('.s-cart-num').show(); + break; + default: + $(".cart-shopping").css("bottom",0); + $(".cart-wrap .cart-arr").css("bottom","160px"); + $('.s-cart-num').show(); + } + } + }else{ + jAlert(msg.info); + } + } + }); +} + + +/* + 购买了还购买了 + */ +function buyelse(pid){ + $.ajax({ + url : wwwHostUrl+'/product/alsoBuy', + type : 'GET', + dataType: 'html', + data : {pid:pid}, + success: function(htmlcode){ + //alsoBuy = htmlcode; + if($('#elsebuy').length > 0){ + $('#elsebuy').html(htmlcode); + } + } + }) +} + +//商品和礼包加入购物车 +//@param product_id 商品id +//@param cart_type 购物类型 0 普通商品 +//@param opencity_id 站点id +//@param flag 提示方式 0本页提示 1跳转购物车 +//@param bs 加入时是否验证商品的礼品袋开关 1,是;0,否 +//@param obj 加入按钮对象 +//@param cfrom 从哪里点击的购物按钮 +function cartAdd(product_id,cart_type,opencity_id, flag,bs, obj, cfrom){ + if (typeof(bs) == "undefined") { + bs = 1; + } + if (typeof(cfrom) == "undefined") { + cfrom = 1; + } + + var cartNum = $("#cartNum").html(); + var alsoBuy = ''; + if (3==flag){ + addPresale(product_id); + }else{ + var web_url = cartHostUrl+'/cart/addCart/'; + var number = 1; + if($("#number_"+product_id).length!=0){ + number = $("#number_"+product_id).val(); + } + if(number > 1000){ + jAlert('对不起购买上限不能大于1000!!'); + return; + } + if(!checkRate(number)){ + jAlert('您输入的数量格式有误!!'); + return false; + } + + $.ajax({ + url : web_url, + type : 'GET', + //dataType: 'json', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {product_id:product_id,number:number,opencity_id:opencity_id,cart_type:cart_type,mes:bs}, + success: function(msg){ + if(msg.error==1){//成功 + //jAlert(msg.succes); + if (0==flag) { + var cartDiv = '
          正在加载更多商品...
          '; + cartDiv += '
          '; + + $("#add-cart-box-sf").html(cartDiv); + + if (cfrom == 1) { + var top = $(obj).offset().top -5,left = $(obj).offset().left -91; + $("#add-cart-box-sf").css({"top":top,"left":left, "position": "absolute"}).show(); + } else if (cfrom == 2) { + var top = $(obj).offset().top + 26,left = $(obj).offset().left -40; + $("#add-cart-box-sf").css({"top":top,"left":left, "position": "absolute"}).show(); + } else if (cfrom == 3) { + var top = $(obj).offset().top + 31,left = $(obj).offset().left - 253; + $("#add-cart-box-sf").css({"top":top,"left":left, "position": "absolute"}).show(); + } + + BuyAlsoBuy(product_id); + getCartList(); + car_ie6hack(); + }else if(2==flag){ + url = cartHostUrl+'/cart/index/'; + if(/MSIE (\d+\.\d+);/.test(navigator.userAgent) || /MSIE(\d+\.\d+);/.test(navigator.userAgent)){ + var referLink = document.createElement('a'); + referLink.href = url; + document.body.appendChild(referLink); + referLink.click(); + }else{ + location.href = url; + } + } else if(4==flag){ + return msg; + } else if (5 == flag || 7 == flag || 13 == flag){ + imgUrl = This.attr("data_url"); + var imgMini = ""; + var posTop = This.offset().top, posLeft = This.offset().left; + var animate_gap = -80; + var offsetEndTop = $(".side-panel").offset().top,offsetEndLeft = $(".side-panel").offset().left - 20; + $(imgMini).appendTo(".listpic-mini"); + $(".listpic-mini").css({ + top: posTop, + left: posLeft + }).show().animate({ + top: posTop + animate_gap + }, 300).animate({ + top: offsetEndTop, + left: offsetEndLeft + }, 700, function() { + $(".listpic-mini").hide(); + $("#side_cart").trigger("mouseenter"); + sfAddCart.cartNumShow(); + }) + getCartList(); + }else if(6 == flag){ + getCartList(); + }else if(11 == flag){ + imgUrl = This.attr("data_url"); + var imgMini = ""; + var posTop = This.offset().top, posLeft = This.offset().left; + var animate_gap = -80; + var offsetEndTop = $(".side-panel").offset().top,offsetEndLeft = $(".side-panel").offset().left - 20; + $(imgMini).appendTo(".listpic-mini"); + $(".listpic-mini").css({ + top: posTop, + left: posLeft + }).show().animate({ + top: posTop + animate_gap + }, 300).animate({ + top: offsetEndTop, + left: offsetEndLeft + }, 700, function() { + $(".listpic-mini").hide(); + $("#side_cart").trigger("mouseenter"); + sfAddCart.cartNumShow(); + }) + getCartList(); + jAlert('您的等级不够,可用优选价购买'); + }else if(12 == flag){ + imgUrl = This.attr("data_url"); + var imgMini = ""; + var posTop = This.offset().top, posLeft = This.offset().left; + var animate_gap = -80; + var offsetEndTop = $(".side-panel").offset().top,offsetEndLeft = $(".side-panel").offset().left - 20; + $(imgMini).appendTo(".listpic-mini"); + $(".listpic-mini").css({ + top: posTop, + left: posLeft + }).show().animate({ + top: posTop + animate_gap + }, 300).animate({ + top: offsetEndTop, + left: offsetEndLeft + }, 700, function() { + $(".listpic-mini").hide(); + $("#side_cart").trigger("mouseenter"); + sfAddCart.cartNumShow(); + }) + getCartList(); + jAlert('您的等级不够,可用优选价购买'); + } + + if (typeof sendAddCartToWebLog == 'function' ) { + sendAddCartToWebLog(product_id,number); + } + yibo('cart',product_id,number); + }else if(msg.error==2){ + jConfirm(msg.info, '提示消息', function(r){ + if(r){ + cartAdd(product_id,cart_type,opencity_id, flag,0, obj, cfrom) + } + }) + }else{ + if(7 == flag){ + if(msg.info.indexOf("库存不足")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('抱歉,该商品已售罄'); + return; + } + if(msg.info.indexOf("无法送达")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('抱歉,该商品无法送达'); + return; + } + if(msg.info.indexOf("已经下架")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('抱歉,该商品已售罄'); + return; + } + if(msg.info.indexOf("已经售完")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('抱歉,该商品已售罄'); + return; + } + jAlert(msg.info);return; + } + if(13 == flag){ + if(msg.info.indexOf("库存不足")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('已售罄'); + return; + } + if(msg.info.indexOf("无法送达")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('无法送达'); + return; + } + if(msg.info.indexOf("已经下架")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('已售罄'); + return; + } + if(msg.info.indexOf("已经售完")>=0){ + obj.parent().removeClass('p-btn'); + obj.parent().addClass('outBtn'); + obj.html('已售罄'); + return; + } + jAlert(msg.info);return; + } + jAlert(msg.info);return; + } + } + }); + } +} + +//首页添加购物车 +function cartIndex(obj,i,pid,bs){ + if (typeof(bs) == "undefined") { + bs = 1; + } + $(".gWindow").remove();//删除所有弹出层 + var This = $(obj); + var cartNum = $("#cartNum").html(); + var web_url = cartHostUrl+'/cart/addCart/';//'/cart/add/'; + var number = 1; + $.ajax({ + url : web_url, + type : 'GET', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {product_id:pid,number:number,opencity_id:1,cart_type:0}, + success: function(msg){ + $(".gWindow").remove(); + if(msg.error == 1){//成功 + var cartDiv = '
          ×'; + cartDiv+= '
          该商品已成功放入购物车!
          '; + cartDiv+= '
          加载中....
          '; + cartDiv+= ''; + cartDiv+= '
          '; + if (i==1 || i==0){ + $(cartDiv).appendTo("#cx_"+This.attr('eid')); + }else{ + $(cartDiv).appendTo($("#cx_"+This.attr('eid')).parent()); + } + getCartList(); + car_ie6hack(); + yibo('cart',pid,number); + }else if(msg.error == 2){ + jConfirm(msg.info, '提示消息', function(r){ + if(r){ + cartIndex(obj,i,pid,0); + } + }) + }else{ + jAlert(msg.info); + } + + } + }); + + if (i==1){ + This.animate({top:"141px"},300); + }else if(i==0){ + This.animate({top:"184px"},300); + }else{ + This.hide(); + } +} + +//商品收藏添加购物车 +function cartFav(pid ,is_sfv){ + var web_url = cartHostUrl+'/cart/addCart/';//'/cart/add/'; + var number = 1; + $.ajax({ + url : web_url, + type : 'GET', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {product_id:pid,number:number,opencity_id:1,cart_type:0,mes:0}, + success: function(msg){ + if(msg.error == 1){//成功 + jAlert('成功添加到购物车!'); + getCartList(); + }else{ + jAlert(msg.info); + } + + } + }); +} + +//添加预售商品 +function addPresale(id){ + var web_url = wwwHostUrl+'/cart/presale/'; + var number = 1; + + if($("#number_"+id).length!=0){ + number = $("#number_"+id).val(); + } + if(!checkRate(number)){ + jAlert('您输入的数量格式有误!!'); + return false; + } + var tourl = wwwHostUrl+'/order/presale/id/'+id+'/number/'+number; + $.post(web_url,{product_id:id,number:number},function(msg){ + if(msg == -3){ + SF.Widget.login(tourl); + return false; + }else if(msg == -1){ + jAlert('无此商品信息!!'); + return false; + } else if(msg == -2){ + jAlert('此商品已经结束预售!!'); + return false; + } else if(msg == 0){ + jAlert('库存不足!!'); + return false; + } else { + location.href = tourl; + } + }); +} + +function yibo(type,product_id,product_num){ + var del = 0; + //var _adwq = new Array(); + if(type=='delete'){ + del = 1; + } + _adwq.push([ '_setDataType', + type + ]); + $.ajax({ + url : cartHostUrl+'/ajax/getproduct/', + type : 'GET', + dataType: "jsonp", //返回json格式的数据 + jsonp:"callback", + data : {product_id : product_id,opencity_id : 1,del : del,t:Math.random()}, + async: false, + success: function(msg){ + var json = msg; + + _adwq.push([ '_setCustomer', + json.userid //1234567是一个例子,请换成当前登陆用户ID或用户名 + ]); + // 下面代码是商品组代码,根据订单中包括多少种商品来部署,每种商品部署一组 + //商品组一组开始 + var webtrekk = new Object(); + webtrekk.product = new Array(); + webtrekk.productCategory1 = new Array(); + webtrekk.productCategory2 = new Array(); + webtrekk.productCategory3 = new Array(); + webtrekk.productQuantity = new Array(); + webtrekk.productCost = new Array(); + if(json.info){ + $.each(json.info, function(i,val){ + if(val){ + var b = eval('('+val+')'); + _adwq.push(['_setItem', + b.product_sn, // 09890是一个例子,请填入商品编号 - 必填项 + b.product_name, // 电视是一个例子,请填入商品名称 - 必填项 + b.product_price, // 12.00是一个例子,请填入商品金额 - 必填项 + product_num, // 1是一个例子,请填入商品数量 - 必填项 + b.category_id, // A123是一个例子,请填入商品分类编号 - 必填项 + b.category_name // 家电是一个例子,请填入商品分类名称 - 必填项 + ]); + } + webtrekk.product.push(b.product_sn); + webtrekk.productCategory1.push(b.category_one); + webtrekk.productCategory2.push(b.category_two); + webtrekk.productCategory3.push(b.category_id); + webtrekk.productQuantity.push(product_num); + webtrekk.productCost.push(b.product_price*product_num); + }); + webtrekkSend(webtrekk); + // 下面是提交订单代码,此段代码必须放在以上代码后面 - 必填项 + _adwq.push([ '_trackTrans' ]); + } + //商品组一组结束 + } + }); + + +} + +function webtrekkSend(webtrekk){ + var pageConfig = { + linkTrack :"link", + heatmap :"1" + }; + var wt = new webtrekkV3(pageConfig); + wt.sendinfo({ + contentId:"WEB:购物车:加入购物车", + contentGroup:{ + 1 :"WEB:购物车",2 :"加入购物车",3 :"加入购物车" + }, + // 以下代码用来记录添加购物车时的商品信息 + product:webtrekk.product.join(";"), // 请填写商品 ID + productCategory:{ + 1 :webtrekk.productCategory1.join(";"), // 请填写商品一级类别名称 + 2 :webtrekk.productCategory2.join(";"), // 请填写商品二级类别名称 + 3 :webtrekk.productCategory3.join(";") // 请填写商品三级类别名称 + }, + productQuantity:webtrekk.productQuantity.join(";"), // 请填写用户加入购物车时的商品数量 + productCost:webtrekk.productCost.join(";"), // 请填写用户加入购物车时的商品总价值(单价×数量) + productStatus:"add", // 固定值,请勿修改 + customEcommerceParameter:{ + 2 :"加入购物车" // 固定值,请勿修改 + } + }); +} + +//carwindow遮罩 +function car_ie6hack(){ + if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) { + var iframehide=''; + $(iframehide).appendTo("#add-cart-box-sf"); + } +} + +//判断正整数 +function checkRate(input) +{ + var re = /^[0-9]*[1-9][0-9]*$/; + if (!re.test(input)) + { + return false; + } else { + return true; + } +} + +//详情页面关闭carwindow +function car_close(){ + $("#carwindow").remove(); + $("#add-cart-box-sf").hide(); + if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) { + $("#car_iframe").remove(); + } + +} + +//首页关闭 +function closeCart(obj) +{ + var This = $(obj); + $('.gWindow').remove(); + $(".gBtn").hide(); + +} diff --git a/e3-search-web/src/main/resources/static/js/common.js b/e3-search-web/src/main/resources/static/js/common.js new file mode 100644 index 0000000..9f7dcfb --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/common.js @@ -0,0 +1,529 @@ +(function(window) { + var document = window.document, + alert = window.alert, + confirm = window.confirm + $ = window.jQuery; + var SF = { + Config: {}, + Widget: {}, + App: {}, + Static: {} + }; + var hostUrl = document.location.host; + var urlArr = hostUrl.split('.'); + var domain = urlArr[1]+'.'+urlArr[2]; + var PASSPORT_URL = 'http://passport.'+domain; + var SF_STATIC_BASE_URL = 'http://i.'+domain+'/com'; + var SF_WWW_HTML_URL = 'http://www.'+domain+'/html'; + + SF.loadJs = function(sid, callback, dequeue) { + SF.loadJs.loaded = SF.loadJs.loaded || {}; + SF.loadJs.packages = SF.loadJs.packages || { + 'jquery.thickbox': { + 'js': [SF_STATIC_BASE_URL + '/js/jquery/jquery.thickbox.js'], + 'check': function() { + return !!window.tb_show; + } + }, + 'jquery.select': { + 'js': [SF_STATIC_BASE_URL + '/js/jquery/jquery.select.js?v=20130811'], + 'check': function() { + return !!$.fn.relateSelect; + } + }, + 'data.city': { + 'js': [SF_STATIC_BASE_URL + '/js/data/region_data.js'], + 'depends': ['jquery.select'], + 'check': function() { + return !!window.REGION_DATA; + } + }, + 'data.city_new': { + 'js': [SF_WWW_HTML_URL + '/js/region_data_new.js'], + 'depends': ['jquery.select'], + 'check': function() { + return !!window.REGION_DATA; + } + }, + 'data.category': { + 'js': ['/cate/category/'], + 'depends': ['jquery.select'], + 'check': function() { + return !!window.CATEGORY; + } + } + }; + + if (!dequeue) { + $(window).queue('loadJs', function() { + SF.loadJs(sid, callback, true); + }); + $(window).queue('loadJsDone', function(){ + $(window).dequeue('loadJs'); + }); + if ($(window).queue('loadJsDone').length == 1) { + $(window).dequeue('loadJs'); + } + return; + } + + function collect(sid) { + var jsCollect =[], packages = SF.loadJs.packages[sid], i, l; + if (packages) { + if (packages.depends) { + l = packages.depends.length; + for (i = 0; i < l; i++) { + jsCollect = jsCollect.concat(collect(packages.depends[i])); + } + } + if ($.isFunction(packages.check) && !packages.check()) { + jsCollect = jsCollect.concat(packages.js); + } + } + return jsCollect; + } + + function load(url) { + return jQuery.ajax({ + crossDomain: true, + cache: true, + type: "GET", + url: url, + dataType: "script", + async: false, + scriptCharset: "UTF-8" + }); + } + + var js = collect(sid), deferreds = [], l = js.length, i; + for (i = 0; i < l; i++) { + deferreds.push(load(js[i])); + } + $.when.apply($, deferreds).then(function() { + $(window).dequeue('loadJsDone'); + $.isFunction(callback) && callback.call(document); + }, function() { + $(window).dequeue('loadJsDone'); + }) + }; + + SF.t = function(code) { + if (window.MSG && window.MSG[code]) { + return window.MSG[code]; + } + return code; + }; + + SF.Widget = { + // 下拉菜单显隐 + pop: function(s) { + if ($(s).data('SF_BIND_POP')) { + return; + } + var $c = $(s), + setting = $c.data('pop') || {}; + $c.bind({ + mouseover: function(e) { + if (setting.pop) { + $(setting.pop, $c).show(); + } + if (setting.icon && setting.iconClass) { + $(setting.icon, $c).addClass(setting.iconClass); + } + }, + mouseout: function(e) { + if (setting.pop) { + $(setting.pop, $c).hide(); + } + if (setting.icon && setting.iconClass) { + $(setting.icon, $c).removeClass(setting.iconClass); + } + } + + }); + $c.data('SF_BIND_POP', true); + $c.triggerHandler('mouseover'); + return; + }, + + // 打开 thickbox 遮罩层 + tbOpen: function(caption, url, imageGroup) { + function show() { + window.tb_show(caption, url, imageGroup); + } + SF.loadJs('jquery.thickbox', show); + }, + // 关闭 thickbox 遮罩层 + tbClose: function() { + window.tb_remove(); + }, + // 用户登陆层 + login: function(backurl, reload) { + var url; + var backurlArr + backurl = (typeof(backurl) === 'undefined' || !backurl) ? window.location.href : backurl; + //过滤回调地址锚点 + backurlArr = backurl.split('#'); + $.ajax({ + type: 'GET', + async: false, + dataType: "jsonp", + jsonp:"callback", + url: 'http://www.'+domain+"/ajaxSetCity/getCasLoginUrl/", + success: function(str){ + if(1==str.status){ + backurl =PASSPORT_URL+'/?returnUrl='+backurlArr[0]; + reload = (typeof(reload) === 'undefined') ? ($.param({service : backurl})) : ($.param({service : backurl, reload: Number(reload)})); + url = str.casDomain+'/cas/login?loginpage=popup&'+reload+'&TB_iframe&height=478&width=390'; + }else{ + reload = (typeof(reload) === 'undefined') ? ($.param({returnUrl : backurlArr[0]})) : ($.param({returnUrl : backurlArr[0], reload: Number(reload)})); + url = PASSPORT_URL+'/login/ajax/?' + reload + '&TB_iframe&height=435&width=346'; + } + //url = PASSPORT_URL+'/login/ajax/?' + reload + '&TB_iframe&height=435&width=346'; + SF.Widget.tbOpen('您还未登录', url, 'scrolling=no'); + } + }); + }, + // 分类联动 + category: function(s, options) { + function relateSelect() { + var defaults = { + data: window.CATEGORY + }; + $(s).relateSelect($.extend(defaults, options || {})); + } + SF.loadJs('data.category', relateSelect); + }, + // 省市联动 + city: function(s, options) { + function relateSelect() { + var defaults = { + data: window.REGION_DATA + }; + $(s).relateSelect($.extend(defaults, options || {})); + } + SF.loadJs('data.city', relateSelect); + }, + + // 省市联动new + city_new: function(s, options) { + function relateSelect() { + var defaults = { + data: window.REGION_DATA + }; + $(s).relateSelect($.extend(defaults, options || {})); + } + SF.loadJs('data.city_new', relateSelect); + }, + //添加class + addClass:function(s,onClass){ + $(s).hover(function(){ + $(this).addClass(onClass); + },function(){ + $(this).removeClass(onClass); + }); + }, + //搜索框默认值 + tipTxt: function(name){ + $(name).each(function(){ + var oldVal = $(this).val(); + $(this).css({"color":"#888"}) + .focus(function(){ + if($(this).val()!=oldVal){$(this).css({"color":"#000"})}else{$(this).val("").css({"color":"#888"})} + }) + .blur(function(){ + if($(this).val()==""){$(this).val(oldVal).css({"color":"#888"})} + }) + .keydown(function(){ + $(this).css({"color":"#000"}) + }) + }) + }, + // 标签切换 + tabs: function(s, e) { + e = e || "mouseover"; + $(function() { + $(s).bind(e, function(e) { + if (e.target === this){ + var tabs = $(this).parent().parent().children("li"); + var panels = $(this).parent().parent().parent().children(".SF-tabs-box"); + var index = $.inArray(this, $(this).parent().parent().find("a")); + if (panels.eq(index)[0]) { + tabs.removeClass("SF-tabs-hover"); + tabs.eq(index).addClass("SF-tabs-hover"); + panels.addClass("SF-tabs-hide"); + panels.eq(index).removeClass("SF-tabs-hide"); + } + } + }); + }); + }, + Subtr:function(arg1,arg2){ + var r1,r2,m,n; + try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0} + try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0} + m=Math.pow(10,Math.max(r1,r2)); + n=(r1>=r2)?r1:r2; + return ((arg1*m-arg2*m)/m).toFixed(n); + }, + Add:function(arg1,arg2){ + var r1,r2,m; + try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0} + try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0} + m=Math.pow(10,Math.max(r1,r2)) + return (arg1*m+arg2*m)/m + }, + Acc:function(arg1,arg2){ + var t1=0,t2=0,r1,r2; + try{t1=arg1.toString().split(".")[1].length}catch(e){} + try{t2=arg2.toString().split(".")[1].length}catch(e){} + with(Math){ + r1=Number(arg1.toString().replace(".","")) + r2=Number(arg2.toString().replace(".","")) + return (r1/r2)*pow(10,t2-t1); + } + }, + Mul:function(arg1,arg2) + { + var m=0,s1=arg1.toString(),s2=arg2.toString(); + try{m+=s1.split(".")[1].length}catch(e){} + try{m+=s2.split(".")[1].length}catch(e){} + return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m) + }, + //日期选择器 + datepicker: function(o) { + $(o).datepicker({ + dateFormat: 'yy-mm-dd', + monthNames: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'], + dayNamesMin: ['日','一','二','三','四','五','六'] + }); + }, + strCount:function(str){ + var byteLen = 0; + var strLen = str.length; + if(strLen){ + for(var i = 0; i < strLen; i++){ + if(str.charCodeAt(i)>255) + byteLen += 1; + else + byteLen += 0.5; //0.5不存在精度问题 + } + } + return byteLen; + }, + refreshOrder:function(order_id, html){ + $('#order_' + order_id).replaceWith(html); + var location = window.location.href; + if (location.match(/order\/list/g)){ + // todo nothing + }else{ + window.location.reload(); + } + }, + checkTextarea:function(chkname,titname,maxnum){ + $(chkname).keyup(function(){ + var flTxt = Math.floor(maxnum-SF.Widget.txtLength(chkname)); + $(titname).html("您还可以输入"+flTxt+"个字"); + if(flTxt < 0){ + $(titname).html("
          您输入的字数已超出范围,不可以再输入
          "); + } + }) + }, + txtLength:function(chkname){ + var getTextarea = $(chkname).val(); + var firstLength = 0; + for(var i=0;i20) { + return 0; + }; + if (pwd.length >= 6 && pwd.length <= 7) { + return 10; + }; + if (pwd.length >= 8) { + return 25; + }; + return 0; +}; +var pwdTotal = function(pwd) { + if (!pwd || pwd == 'undefined') { + return - 1; + }; + if(lenpoints(pwd)==0){ + return 0; + } + var digit01 = /^[0-9]+$/; + var digit10 = /[0-9]+/; + var digit02 = /^[a-z]+$/; + var digit20 = /[a-z]+/; + var digit03 = /^[A-Z]+$/; + var digit30 = /[A-Z]+/; + var digitStr = /[a-zA-Z]/; + var digitOther = /[_]+/; + var safeStr =/^[0-9a-zA-z_]+$/; + var totalPoints =0; + if(!safeStr.test(pwd)){ + return -1; + } + + if (digit20.test(pwd) && digit30.test(pwd)) { + totalPoints += 20; + }; + var pwd_num = 0; + var t_num = 0; + var pwd_mi=0; + var pwd_max=0; + for (var i = 0; i <= pwd.length; i++) { + if (digit01.test(pwd.substr(i, 1))) { + pwd_num++; + } + if (digitOther.test(pwd.substr(i, 1))) { + t_num++; + } + if (digit02.test(pwd.substr(i, 1))) { + pwd_mi ++; + } + if (digit03.test(pwd.substr(i, 1))) { + pwd_max ++; + } + }; + if(pwd_mi&&!pwd_max){ + totalPoints += 10; + } + if(!pwd_mi&&pwd_max){ + totalPoints += 10; + } + if (pwd_num >= 1 && pwd_num < 3) { + totalPoints += 10; + }; + if (pwd_num >= 3) { + totalPoints += 20; + }; + if (t_num == 1) { + totalPoints += 10; + }; + if (t_num > 1) { + totalPoints += 25; + }; + if (digit20.test(pwd) && digit30.test(pwd) && digit10.test(pwd) && digitOther.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 20; + } + if (digitStr.test(pwd) && digit10.test(pwd) && digitOther.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 3; + }; + if (digitStr.test(pwd) && digit10.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 2; + }; + if(totalPoints==0){ + return -1; + } + totalPoints+=lenpoints(pwd); + return totalPoints; +} +var doGetCoupon = function(id, key){ + $.ajax({ + url: '/CouponDraw/draw/', + data: {cid:id, key:key}, + type : 'POST', + dataType: 'json', + success: function(resp) { + if (resp) { + if (resp.flag == 1) { + $.alerts.okButton = '查看优惠券'; + $.alerts.alert(resp.msg,'提示',function(){ + location.href = resp.url; + }); + } else if (resp.flag == 2) { + $.alerts.alert(resp.msg, '提示'); + } else if (resp.flag == 3) { + SF.Widget.login(window.location.href); + } else if (resp.flag == 0) { + $.alerts.alert(resp.msg, '错误'); + } + } else { + $.alerts.alert('优惠券异常', '错误'); + } + }, + error: function() { + $.alerts.alert('优惠券异常', '错误'); + } + }); +}; + diff --git a/e3-search-web/src/main/resources/static/js/cookie.js b/e3-search-web/src/main/resources/static/js/cookie.js new file mode 100644 index 0000000..f2cbeee --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/cookie.js @@ -0,0 +1,293 @@ +function getCookie (name) { + var arg = name + "="; + var alen = arg.length; + var clen = document.cookie.length; + var i = 0; + while (i < clen) { + var j = i + alen; + if (document.cookie.substring(i, j) == arg) return getCookieVal (j); + i = document.cookie.indexOf(" ", i) + 1; + if (i == 0) break; + } + return null; +} + +function setCookie(name, value, expires, path, domain, secure) +{ + var today = new Date(); + var expiry = new Date(today.getTime() + 100000 * 24 * 60 * 60 * 1000); + if(expires==''||expires==null) + { + expires=expiry; + } + var curCookie = name + "=" + escape(value) + + ((expires) ? "; expires=" + expires.toGMTString() : "") + + ((path) ? "; path=" + path : "") + + ((domain) ? "; domain=" + domain : "") + + ((secure) ? "; secure" : ""); + document.cookie = curCookie; + +} + +function delCookie(name) { + expdate = new Date(); + expdate.setTime(expdate.getTime() - (86400 * 1000 * 1)); + setCookie(name, "", "", "/", "", ""); +} + + +var expdate= new Date(); + +function getCookieVal (offset) { + var endstr = document.cookie.indexOf (";", offset); + if (endstr == -1) endstr = document.cookie.length; + return unescape(document.cookie.substring(offset, endstr)); +} +$.fn.dropdown = function(b, c) { + if (this.length) { + "function" == typeof b && (c = b, b = {}); + var d = $.extend({ + event: "mouseover", + current: "hover", + delay: 0 + }, b || {}), + e = "mouseover" == d.event ? "mouseout" : "mouseleave"; + $.each(this, function() { + var b = null, + f = null, + g = !1; + $(this).bind(d.event, function() { + if (g) clearTimeout(f); + else { + var e = $(this); + b = setTimeout(function() { + e.addClass(d.current), g = !0, c && c(e) + }, d.delay) + } + }).bind(e, function() { + if (g) { + var c = $(this); + f = setTimeout(function() { + c.removeClass(d.current), g = !1 + }, d.delay) + } else clearTimeout(b) + }) + }) + } +}; +var dhlist = 1; +$(function(){ + getAllCity(); + $("#public_cate").live("mouseenter",function(){ + var dhDivObj = $("#allSort"); + if(dhlist==1){ + $.get("/html/web/_public/_ajaxStaticMenu.html?v20140430",{},function(data) { + dhDivObj.html(data); + dhlist = 2; + }); + } + $("#public_cate").addClass("hover"); + $("#booksort").find(".item").removeClass("hover"); + }); + $("#public_cate").live("mouseleave",function(){ + $("#public_cate").removeClass("hover"); + $("#booksort").find(".item").removeClass("hover"); + }); + + + $(".topMenu .menus").dropdown({ + delay: 50 + }), $(".allCat").dropdown({ + delay: 50 + }, function() { + }), $("#topCart").dropdown({ + delay: 50 + }, function() { + $("#cat_form13").show(); + $("#cat_form13 li").length && $("#topCart").find("s").addClass("setCart"); + }), $(".topMenu .tShow").dropdown({ + delay: 50 + }); + if($(".topMenu .d2 .dd").length){ + $(".topMenu .d2 .dd").append(''); + } + if($(".f_ios").length){ + $(".f_ios").find("li:first").html('手机客户端'); + } + var win_all = $("#header").width(); + var ZnowTime = new Date().getTime(); + //移动广告语 + if (ZnowTime >=1420992000000 && ZnowTime<=1423583999000){ + $("#phone_time").html("客户端首单签收后
          返满200减20元券") + $(".client-promo a").html('App首单签收后 返20元满减券'); + } + //右侧浮动 + if(ZnowTime >= 1414771200000 && ZnowTime<=1416239999000){ + $('.index_rfloat').html('
          关闭
          '); + $('.index_rfloat').show(); + } + $('.app-android').attr('href','http://android.e3mall.cn/sfandroid'); + //右侧广告位关闭 + if ($(".index_rfloat").length){$(".J_rclose").click(function(){$(".index_rfloat").hide();});} + //隐藏会员俱乐部入口 + //$(".allCat").find("dl").eq(2).find("dd a").last().hide(); + //$("#login").after("
        • 员工福利
        • "); +}); + +$("#booksort .item").live("mouseenter",function(){ + $(this).addClass("hover"); +}); +$("#booksort .item").live("mouseleave",function(){ + $(this).removeClass("hover"); +}); + +function isOnline(wwwurl,homeurl,passporturl){ + $.getJSON( wwwurl+"/ajax/isOnline/?callback=?", function( data ) { + if (data.welcome){ + passporturl = passporturl.replace('https', 'http'); + $('#login').html(' '+data.welcome+' [退出]'); + }else{ + //var nickName = decodeURI(getCookie('_nickName')); + var nickName = decodeURI(decodeURI(escape(getCookie('_nickName')))); + nickName = nickName?nickName:'嘿'; + nickName = 'false'==nickName?'嘿':nickName; + nickName = 'null'==nickName?'嘿':nickName; + var welComeMsg = ''; + if('嘿' == nickName){ + welComeMsg = nickName+',欢迎来宜立方商城!'; + }else{ + welComeMsg = nickName+',欢迎您!'; + } + $('#login').html(welComeMsg+'请登录 | 免费注册'); + } + if(data.qqcb){ + $('#qqcb').html(data.qqcb); + } + }); +} + +function setCity(wwwUrl,provinceId,cityId,countyId){ + var provinceId = provinceId?provinceId:2; + var cityId = cityId?cityId:52; + var countyId = countyId?countyId:500; + var townid = 0; + var today = new Date(); + var expiry = new Date(today.getTime() + 3600 * 24 * 30 * 3 * 1000); + var domain = window.location.host; + domain = domain.substring(domain.indexOf('.')); + setCookie('provinceid',provinceId,expiry,'/',domain); + setCookie('cityid',cityId,expiry,'/',domain); + setCookie('areaid',countyId,expiry,'/',domain); + setCookie('townid',townid,expiry,'/',domain); + window.location.reload(); +// $.ajax({ +// url : wwwUrl+'/AjaxSetCity/Changecity/', +// dataType: "jsonp", +// jsonp:"callback", +// data : {provinceid:provinceId,cityid:cityId,areaid:countyId}, +// success: function(str){ +// window.location.reload(); +// } +// }); +} + +function getAllCity(){ + var saveUrl = location.href.split('/')[2].split('.'); + var preDomain = saveUrl[0]; + saveUrl[0] = 'www'; + saveUrl = saveUrl.join('.'); + $.ajax({ + url : 'http://'+saveUrl+'/AjaxSetCity/GetChangeCity/', + dataType: "jsonp", + jsonp:"callback", + data : {}, + success: function(str){ + if(str.shadowData){ + $("#shadowAllCity").html(str.shadowData); + //显示城市浮层 + if('www' == preDomain && $("#shadowAllCity").length>0){ + showShadow(); + } + } + var cityNameHtml = '

          '+str.cityName+'

          '; + if(2==str.cityName.length){ + cityNameHtml = '

          '+str.cityName+'

          '; + } + if(3==str.cityName.length){ + cityNameHtml = '

          '+str.cityName+'

          '; + } + if(3

          '; + } + cityNameHtml = cityNameHtml+ '
          '+str.headData+'
          '; + $("#currentCityName").html(cityNameHtml); + } + }); +} + +function showShadow(){ + var h = $(document).height(); + $('#screen').css({ 'height': h }); + $('#screen').show(); + $('.indexshadow').center(); + $('.indexshadow').show(); +} + +//取URLs +function GetRequests() { + var url = location.search; //获取url中"?"符后的字串 + var theRequest = new Object(); + if (url.indexOf("?") != -1) { + var str = url.substr(1); + if (str.indexOf("&") != -1) { + strs = str.split("&"); + for (var i = 0; i < strs.length; i++) { + theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); + } + } else { + theRequest[str.split("=")[0]] = unescape(str.split("=")[1]); + } + } + return theRequest; +} +//如果是IPAD APP清除 头底部 +$(document).ready(function(){ + //var browser = navigator.userAgent.toLowerCase(); + //alert(browser); + //if(browser.indexOf('ipod')!=-1){ + var request = GetRequests(); + if(getCookie('device') == 3 || request.device == 3){ + if(getCookie('device') != 3){ + var today = new Date(); + var expires = new Date(today.getTime() + 24 * 60 * 60 * 1000); + setCookie('device',3,expires,'/'); + } + $('.topMenu').remove(); + $('#header').remove(); + $('.mainNav').remove(); + $('#footer').remove(); + $(".side-wrap").remove(); + //$("#side_app").remove(); + $(".p-btn").remove(); + + var fenlei = /(http:\/\/www\.t\.com)?\/fresh\/(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)-(\d+)\.html/g; + var pinpai = /\/pinpai\/(\d+)-(\d+)\.html/g; + var guanjianzi = /(http:\/\/www\.t\.com)?\/productlist\/search\?inputBox=(\d+)\&keyword=([0-9a-zA-Z%])?(#.+)?/g; + var xiangqing = /(http:\/\/www\.t\.com)?\/html\/products\/(\d+)\/(\d+)\.html(#.+)?/g; + + $("a").each(function(){ + //console.log($(this).attr('href')); + //替换分类 http://www.bbest.com/fresh/64-0-0-0-0-2-0-0-0-0-0.html + $(this).attr('href', $(this).attr('href').replace(fenlei,"sfbesttoresource://resourceType=3&resourceCommonID=$2")); + //替换品牌 /pinpai/322-2491.html + $(this).attr('href', $(this).attr('href').replace(pinpai,"sfbesttoresource://resourceType=4&resourceCommonID=$2")); + //替换关键字 /productlist/search?inputBox=0&keyword=%E9%98%BF%E5%85%8B%E8%8B%8F%E8%8B%B9%E6%9E%9C http://www.bbest.com/productlist/search?inputBox=1&keyword=%E9%98%BF%E5%85%8B%E8%8B%8F%E8%8B%B9%E6%9E%9C#trackref=sfbest_Uhead_Uhead_head_Keywords1 + $(this).attr('href', $(this).attr('href').replace(guanjianzi,"sfbesttoresource://resourceType=2&resourceCommonID=$3")); + //替换详情页 http://www.bbest.com/html/products/57/1800056021.html#trackref=sfbest_channel_fresh_floor1_item6 /html/products/9/1800008834.html + $(this).attr('href', $(this).attr('href').replace(xiangqing,"sfbest://$3.html")); + }) + + + } + //} +}); diff --git a/e3-search-web/src/main/resources/static/js/e3mall.js b/e3-search-web/src/main/resources/static/js/e3mall.js new file mode 100644 index 0000000..adef768 --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/e3mall.js @@ -0,0 +1,25 @@ +var E3MALL = { + checkLogin : function(){ + var _ticket = $.cookie("E3_TOKEN"); + if(!_ticket){ + return ; + } + $.ajax({ + url : "http://localhost:8085/user/token/" + _ticket, + dataType : "jsonp", + type : "GET", + success : function(data){ + if(data.status == 200){ + var username = data.data.username; + var html = username + ",欢迎来到宜立方购物网![退出]"; + $("#loginbar").html(html); + } + } + }); + } +} + +$(function(){ + // 查看是否已经登录,如果已经登录查询登录信息 + E3MALL.checkLogin(); +}); \ No newline at end of file diff --git a/e3-search-web/src/main/resources/static/js/jquery-1.5.1.min.js b/e3-search-web/src/main/resources/static/js/jquery-1.5.1.min.js new file mode 100644 index 0000000..6437874 --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/jquery-1.5.1.min.js @@ -0,0 +1,16 @@ +/*! + * jQuery JavaScript Library v1.5.1 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Wed Feb 23 13:55:29 2011 -0500 + */ +(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="
          a";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
          ",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
          t
          ";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

          ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="
          ";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/",""],legend:[1,"
          ","
          "],thead:[1,"","
          "],tr:[2,"","
          "],td:[3,"","
          "],col:[2,"","
          "],area:[1,"",""],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div
          ","
          "]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^&]*/,bD=/(^|\-)([a-z])/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("
          ").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e.crossDomain||(q=bF.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b
          ";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window); \ No newline at end of file diff --git a/e3-search-web/src/main/resources/static/js/jquery.alerts.js b/e3-search-web/src/main/resources/static/js/jquery.alerts.js new file mode 100644 index 0000000..8f8a57d --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/jquery.alerts.js @@ -0,0 +1,441 @@ +// jQuery Alert Dialogs Plugin +// +// Version 1.1 +// +// Cory S.N. LaViska +// A Beautiful Site (http://abeautifulsite.net/) +// 14 May 2009 +// +// Visit http://abeautifulsite.net/notebook/87 for more information +// +// Usage: +// jAlert( message, [title, callback] ) +// jConfirm( message, [title, callback] ) +// jPrompt( message, [value, title, callback] ) +// +// History: +// +// 1.00 - Released (29 December 2008) +// +// 1.01 - Fixed bug where unbinding would destroy all resize events +// +// License: +// +// This plugin is dual-licensed under the GNU General Public License and the MIT License and +// is copyright 2008 A Beautiful Site, LLC. +// +(function($) { + /* + * 遮罩层 + */ + var Shade=new function() + { + var handle={}; + var shade; + handle.show=function(func) + { + if(!shade) + { + shade=document.createElement('div'); + shade.style.display = 'none'; + shade.style.zIndex = 99997; + shade.style.filter = 'alpha(opacity = 20)'; + shade.style.left = 0; + shade.style.width = '100%'; + shade.style.position = 'absolute'; + shade.style.top = 0; + shade.style.backgroundColor = '#989898'; + shade.style.opacity = .2; + document.body.appendChild(shade); + } + with((document.compatMode=='CSS1Compat')?document.documentElement:document.body) + { + var ch=clientHeight,sh=scrollHeight; + shade.style.height=(sh>ch?sh:ch)+'px'; + + var cw = clientWidth,sw = scrollWidth, ow=offsetWidth; + var width = cw > sw ? cw : sw; + width = width > ow ? width : ow; + + shade.style.width=width+'px'; + shade.style.display='block'; + } + + if(func){ + func(); + } + }; + handle.hide=function(func){ + shade.style.display='none'; + if(func){ + func(); + } + }; + + return handle; + } + + $.alerts = { + + // These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time + + verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels + horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/ + repositionOnResize: true, // re-centers the dialog on window resize + overlayOpacity: .01, // transparency level of overlay + overlayColor: '#89652b', // base color of overlay + draggable: true, // make the dialogs draggable (requires UI Draggables plugin) + okButton: ' 确定 ', // text for the OK button + cancelButton: ' 取消 ', // text for the Cancel button + dialogClass: null, // if specified, this class will be applied to all dialogs + + // Public methods + + alert: function(message, title, callback) { + if( title == null ) title = '提示信息'; + $.alerts._show(title, message, null, 'alert', function(result) { + if( callback ) callback(result); + }); + }, + + confirm: function(message, title, callback) { + if( title == null ) title = '确认信息'; + $.alerts._show(title, message, null, 'confirm', function(result) { + if( callback ) callback(result); + }); + }, + + prompt: function(message, value, title, callback) { + if( title == null ) title = '输入信息'; + $.alerts._show(title, message, value, 'prompt', function(result) { + if( callback ) callback(result); + }); + }, + + // Private methods + + _show: function(title, msg, value, type, callback) { + Shade.show(); + $.alerts._hide(); + $.alerts._overlay('show'); + + $("BODY").append( + ''); + + if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass); + + // IE6 Fix + var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed'; + + $("#popup_container").css({ + position: pos, + zIndex: 100000, + padding: 0, + margin: 0 + }); + + if ($.browser.msie && $.browser.version < 7) { + $ie6Fix = $('').css({ + position: "absolute", + zIndex: 99999 + }).insertBefore("#popup_container") + } + + $("#popup_title").text(title); + $("#popup_content").addClass(type); + $("#popup_message").text(msg); + $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '
          ') ); + + $("#popup_container").css({ + minWidth: $("#popup_container").outerWidth(), + maxWidth: $("#popup_container").outerWidth() + }); + + $.alerts._reposition(); + $.alerts._maintainPosition(true); + + switch( type ) { + case 'alert': + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + callback(true); + }); + $("#popup_ok").focus().keypress( function(e) { + if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click'); + }); + break; + case 'confirm': + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(false); + }); + $("#popup_ok").focus(); + $("#popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + break; + case 'prompt': + $("#popup_message").append('
          ').after(''); + $("#popup_prompt").width( $("#popup_message").width() ); + $("#popup_ok").click( function() { + var val = $("#popup_prompt").val(); + $.alerts._hide(); + Shade.hide(); + if( callback ) callback( val ); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback( null ); + }); + $("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + if( value ) $("#popup_prompt").val(value); + $("#popup_prompt").focus().select(); + break; + } + + // Make draggable + if( $.alerts.draggable ) { + try { + $("#popup_container").draggable({ handle: $("#popup_title") }); + $("#popup_title").css({ cursor: 'move' }); + } catch(e) { /* requires jQuery UI draggables */ } + } + }, + + + _showNew: function(showX, showP, width_m, title, msg, value, type, callback) { + Shade.show(); + $.alerts._hide(); + $.alerts._overlay('show'); + + if(showX==1){ + titlehead = '
          '; + }else{ + titlehead = '
          '; + } + + if(width_m == null){ + width_m = $("#popup_container").outerWidth(); + } + + if(showP==1){ + sd_img = '
          '; + }else{ + sd_img = ''; + } + + $("BODY").append( + ''); + + if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass); + + // IE6 Fix + var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed'; + + $("#popup_container").css({ + position: pos, + zIndex: 100000, + margin: 0 + }); + + if ($.browser.msie && $.browser.version < 7) { + $ie6Fix = $('').css({ + position: "absolute", + zIndex: 99999 + }).insertBefore("#popup_container") + } + + $("#popup_title").text(title); + $("#popup_content").addClass(type); + /*if(msg!=null){ + $("#popup_message").text(msg); + }*/ + $("#popup_message").text(msg); + $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '
          ') ); + + $("#popup_container").css({ + minWidth: width_m, + maxWidth: width_m + }); + + $.alerts._reposition(); + $.alerts._maintainPosition(true); + + switch( type ) { + case 'alert': + $("#titlehead_x").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_ok").focus().keypress( function(e) { + if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click'); + }); + break; + case 'confirm': + $("#titlehead_x").click( function() { + $.alerts._hide(); + Shade.hide(); + top.location.reload(); + }); + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + top.location.reload(); + }); + $("#popup_ok").focus(); + $("#popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + break; + } + + // Make draggable + if( $.alerts.draggable ) { + try { + $("#popup_container").draggable({ handle: $("#popup_title") }); + $("#popup_title").css({ cursor: 'move' }); + } catch(e) { /* requires jQuery UI draggables */ } + } + }, + + _hide: function() { + if ($.browser.msie && $.browser.version < 7) { + $("#shadow").remove(); + } + $("#popup_container").remove(); + $.alerts._overlay('hide'); + $.alerts._maintainPosition(false); + }, + + _overlay: function(status) { + switch( status ) { + case 'show': + $.alerts._overlay('hide'); + $("BODY").append(''); + $("#popup_overlay").css({ + position: 'absolute', + zIndex: 99998, + top: '0px', + left: '0px', + width: '100%', + height: $(document).height(), + background: $.alerts.overlayColor, + opacity: $.alerts.overlayOpacity + }); + break; + case 'hide': + $("#popup_overlay").remove(); + break; + } + }, + + _reposition: function() { + var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset; + var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset; + var height = $("#popup_container").outerHeight(true); + var width = $("#popup_container").outerWidth(true); + if( top < 0 ) top = 0; + if( left < 0 ) left = 0; + + // IE6 fix + if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop(); + + $("#popup_container").css({ + top: top + 'px', + left: left + 'px' + }); + $("#popup_overlay").height( $(document).height() ); + $("#shadow").css({ + top: top + 'px', + left: left + 'px', + height: height + 34 + 'px', + width: width + 'px' + }); + }, + + _maintainPosition: function(status) { + if( $.alerts.repositionOnResize ) { + switch(status) { + case true: + $(window).bind('resize', $.alerts._reposition); + break; + case false: + $(window).unbind('resize', $.alerts._reposition); + break; + } + } + } + + } + + // Shortuct functions + jAlert = function(message, title, callback) { + $.alerts.alert(message, title, callback); + } + + jConfirm = function(message, title, callback) { + $.alerts.confirm(message, title, callback); + }; + + jPrompt = function(message, value, title, callback) { + $.alerts.prompt(message, value, title, callback); + }; + + jAlertNew = function(showX, showP, width, message, title, callback) { + if( title == null ) title = '提示信息'; + $.alerts._showNew(showX, showP, width, title, message, null, 'alert', function(result) { + if( callback ) callback(result); + }); + } + + jConfirmNew = function(showX, showP, width, message, title, callback) { + if( title == null ) title = '提示信息'; + $.alerts._showNew(showX, showP, width, title, message, null, 'confirm', function(result) { + if( callback ) callback(result); + }); + }; + +})(jQuery); \ No newline at end of file diff --git a/e3-search-web/src/main/resources/static/js/jquery.cookie.js b/e3-search-web/src/main/resources/static/js/jquery.cookie.js new file mode 100644 index 0000000..c7f3a59 --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/jquery.cookie.js @@ -0,0 +1,117 @@ +/*! + * jQuery Cookie Plugin v1.4.1 + * https://github.com/carhartl/jquery-cookie + * + * Copyright 2013 Klaus Hartl + * Released under the MIT license + */ +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD + define(['jquery'], factory); + } else if (typeof exports === 'object') { + // CommonJS + factory(require('jquery')); + } else { + // Browser globals + factory(jQuery); + } +}(function ($) { + + var pluses = /\+/g; + + function encode(s) { + return config.raw ? s : encodeURIComponent(s); + } + + function decode(s) { + return config.raw ? s : decodeURIComponent(s); + } + + function stringifyCookieValue(value) { + return encode(config.json ? JSON.stringify(value) : String(value)); + } + + function parseCookieValue(s) { + if (s.indexOf('"') === 0) { + // This is a quoted cookie as according to RFC2068, unescape... + s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); + } + + try { + // Replace server-side written pluses with spaces. + // If we can't decode the cookie, ignore it, it's unusable. + // If we can't parse the cookie, ignore it, it's unusable. + s = decodeURIComponent(s.replace(pluses, ' ')); + return config.json ? JSON.parse(s) : s; + } catch(e) {} + } + + function read(s, converter) { + var value = config.raw ? s : parseCookieValue(s); + return $.isFunction(converter) ? converter(value) : value; + } + + var config = $.cookie = function (key, value, options) { + + // Write + + if (value !== undefined && !$.isFunction(value)) { + options = $.extend({}, config.defaults, options); + + if (typeof options.expires === 'number') { + var days = options.expires, t = options.expires = new Date(); + t.setTime(+t + days * 864e+5); + } + + return (document.cookie = [ + encode(key), '=', stringifyCookieValue(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '' + ].join('')); + } + + // Read + + var result = key ? undefined : {}; + + // To prevent the for loop in the first place assign an empty array + // in case there are no cookies at all. Also prevents odd result when + // calling $.cookie(). + var cookies = document.cookie ? document.cookie.split('; ') : []; + + for (var i = 0, l = cookies.length; i < l; i++) { + var parts = cookies[i].split('='); + var name = decode(parts.shift()); + var cookie = parts.join('='); + + if (key && key === name) { + // If second argument (value) is a function it's a converter... + result = read(cookie, value); + break; + } + + // Prevent storing a cookie that we couldn't decode. + if (!key && (cookie = read(cookie)) !== undefined) { + result[name] = cookie; + } + } + + return result; + }; + + config.defaults = {}; + + $.removeCookie = function (key, options) { + if ($.cookie(key) === undefined) { + return false; + } + + // Must not alter options, thus extending a fresh object... + $.cookie(key, '', $.extend({}, options, { expires: -1 })); + return !$.cookie(key); + }; + +})); diff --git a/e3-search-web/src/main/resources/static/js/shadow.js b/e3-search-web/src/main/resources/static/js/shadow.js new file mode 100644 index 0000000..b621a16 --- /dev/null +++ b/e3-search-web/src/main/resources/static/js/shadow.js @@ -0,0 +1,30 @@ +jQuery.fn.center = function(loaded) { + var obj = this; + body_width = parseInt($(window).width()); + body_height = parseInt($(window).height()); + block_width = parseInt(obj.width()); + block_height = parseInt(obj.height()); + + left_position = parseInt((body_width/2) - (block_width/2) + $(window).scrollLeft()); + if (body_width + + \ No newline at end of file diff --git a/e3-search-web/src/main/resources/templates/commons/header.html b/e3-search-web/src/main/resources/templates/commons/header.html new file mode 100644 index 0000000..b76babf --- /dev/null +++ b/e3-search-web/src/main/resources/templates/commons/header.html @@ -0,0 +1,61 @@ + +
          + +
          + + +
          + \ No newline at end of file diff --git a/e3-search-web/src/main/resources/templates/commons/mainmenu.html b/e3-search-web/src/main/resources/templates/commons/mainmenu.html new file mode 100644 index 0000000..aafe77d --- /dev/null +++ b/e3-search-web/src/main/resources/templates/commons/mainmenu.html @@ -0,0 +1,48 @@ + + + \ No newline at end of file diff --git a/e3-search-web/src/main/resources/templates/commons/shortcut.html b/e3-search-web/src/main/resources/templates/commons/shortcut.html new file mode 100644 index 0000000..f30088c --- /dev/null +++ b/e3-search-web/src/main/resources/templates/commons/shortcut.html @@ -0,0 +1,144 @@ + +
          +
          + + + +
          + + +
          + \ No newline at end of file diff --git a/e3-search-web/src/main/resources/templates/error/exception.html b/e3-search-web/src/main/resources/templates/error/exception.html new file mode 100644 index 0000000..0b388c2 --- /dev/null +++ b/e3-search-web/src/main/resources/templates/error/exception.html @@ -0,0 +1,44 @@ + + + + + + + + + + + + + +出错了 -宜立方商城 + +
          + +
          + +
          + +
          +
          +
          + +

          HTTP错误 404 - 文件或目录未找到

          +

          + 2秒后自动跳转到首页,如不自动跳转,请按回到首页 +

          +
          +
          +
          +
          + +
          +
          +
          + +
          + + + \ No newline at end of file diff --git a/e3-search-web/src/main/resources/templates/search.html b/e3-search-web/src/main/resources/templates/search.html new file mode 100644 index 0000000..8f929c3 --- /dev/null +++ b/e3-search-web/src/main/resources/templates/search.html @@ -0,0 +1,137 @@ + + + + + + [[${query}]] - 商品搜索 - 宜立方商城 + + + + + + + + +
          + +
          + + +
          +
          + + +
          +
          +
          + + [[${page}]]/[[${totalPages}]] + + 上一页下一页
          +
          个商品
          +
          +
          + + +
          + + +
          + +
          +
          + +
          + + +
          + + + + + + +
          + + \ No newline at end of file diff --git a/e3-search/e3-search-interface/pom.xml b/e3-search/e3-search-interface/pom.xml new file mode 100644 index 0000000..adda2fd --- /dev/null +++ b/e3-search/e3-search-interface/pom.xml @@ -0,0 +1,23 @@ + + + + e3-search + guo.ping.e3mall + 1.0-SNAPSHOT + + 4.0.0 + + e3-search-interface + jar + + + + guo.ping.e3mall + e3-manager-pojo + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/e3-search/e3-search-interface/src/main/java/guo/ping/e3mall/search/service/SearchItemService.java b/e3-search/e3-search-interface/src/main/java/guo/ping/e3mall/search/service/SearchItemService.java new file mode 100644 index 0000000..957fe7d --- /dev/null +++ b/e3-search/e3-search-interface/src/main/java/guo/ping/e3mall/search/service/SearchItemService.java @@ -0,0 +1,7 @@ +package guo.ping.e3mall.search.service; + +import guo.ping.e3mall.common.pojo.E3Result; + +public interface SearchItemService { + E3Result importItems(); +} diff --git a/e3-search/e3-search-interface/src/main/java/guo/ping/e3mall/search/service/SearchService.java b/e3-search/e3-search-interface/src/main/java/guo/ping/e3mall/search/service/SearchService.java new file mode 100644 index 0000000..7d88862 --- /dev/null +++ b/e3-search/e3-search-interface/src/main/java/guo/ping/e3mall/search/service/SearchService.java @@ -0,0 +1,7 @@ +package guo.ping.e3mall.search.service; + +import guo.ping.e3mall.common.pojo.SearchResult; + +public interface SearchService { + SearchResult search(String keyWord, int page, int rows) throws Exception; +} diff --git a/e3-search/e3-search-service/pom.xml b/e3-search/e3-search-service/pom.xml new file mode 100644 index 0000000..c0dd277 --- /dev/null +++ b/e3-search/e3-search-service/pom.xml @@ -0,0 +1,68 @@ + + + + e3-search + guo.ping.e3mall + 1.0-SNAPSHOT + + 4.0.0 + + e3-search-service + jar + + + + guo.ping.e3mall + e3-manager-dao + 1.0-SNAPSHOT + + + guo.ping.e3mall + e3-search-interface + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-data-solr + + + org.springframework.boot + spring-boot-starter-test + test + + + + com.alibaba.boot + dubbo-spring-boot-starter + + + + com.github.sgroschupf + zkclient + + + log4j + log4j + + + + + + org.springframework.boot + spring-boot-starter-activemq + + + + org.apache.activemq + activemq-pool + + + \ No newline at end of file diff --git a/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/SearchServiceApplicationStarter.java b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/SearchServiceApplicationStarter.java new file mode 100644 index 0000000..3d57cd3 --- /dev/null +++ b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/SearchServiceApplicationStarter.java @@ -0,0 +1,22 @@ +package guo.ping.e3mall.search; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.WebApplicationType; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; + +import java.util.concurrent.CountDownLatch; + +@MapperScan(value = {"guo.ping.e3mall.manager.mapper", "guo.ping.e3mall.search.mapper"}) +@SpringBootApplication +public class SearchServiceApplicationStarter { + + public static void main(String[] args) throws InterruptedException { + new SpringApplicationBuilder() + .sources(SearchServiceApplicationStarter.class) + .web(WebApplicationType.NONE) + .run(args); + CountDownLatch countDownLatch = new CountDownLatch(1); + countDownLatch.await(); + } +} diff --git a/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/config/MyJmsConfig.java b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/config/MyJmsConfig.java new file mode 100644 index 0000000..c9ce499 --- /dev/null +++ b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/config/MyJmsConfig.java @@ -0,0 +1,39 @@ +package guo.ping.e3mall.search.config; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.jms.annotation.EnableJms; +import org.springframework.jms.config.DefaultJmsListenerContainerFactory; +import org.springframework.jms.config.JmsListenerContainerFactory; + +import javax.jms.ConnectionFactory; + +@Configuration +@EnableJms +public class MyJmsConfig { + + @Bean("jmsQueueListenerContainerFactory") + public JmsListenerContainerFactory jmsQueueListenerContainerFactory(ConnectionFactory connectionFactory) { + DefaultJmsListenerContainerFactory factory = + new DefaultJmsListenerContainerFactory(); + factory.setConnectionFactory(connectionFactory); + //设置连接数 + factory.setConcurrency("3-10"); + //重连间隔时间 + factory.setRecoveryInterval(1000L); + factory.setPubSubDomain(false); + return factory; + + } + + @Bean("jmsTopicListenerContainerFactory") + public JmsListenerContainerFactory jmsTopicListenerContainerFactory(ConnectionFactory connectionFactory) { + DefaultJmsListenerContainerFactory factory = + new DefaultJmsListenerContainerFactory(); + factory.setConnectionFactory(connectionFactory); + //重连间隔时间 + factory.setPubSubDomain(true); + return factory; + + } +} diff --git a/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/config/MySettingFileConfig.java b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/config/MySettingFileConfig.java new file mode 100644 index 0000000..659e212 --- /dev/null +++ b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/config/MySettingFileConfig.java @@ -0,0 +1,10 @@ +package guo.ping.e3mall.search.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; + +@Configuration +@PropertySource("classpath:conf/conf.properties") +public class MySettingFileConfig { + +} diff --git a/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/dao/SearchDao.java b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/dao/SearchDao.java new file mode 100644 index 0000000..61b3209 --- /dev/null +++ b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/dao/SearchDao.java @@ -0,0 +1,62 @@ +package guo.ping.e3mall.search.dao; + +import guo.ping.e3mall.common.pojo.SearchItem; +import guo.ping.e3mall.common.pojo.SearchResult; +import org.apache.solr.client.solrj.SolrClient; +import org.apache.solr.client.solrj.SolrQuery; +import org.apache.solr.client.solrj.response.QueryResponse; +import org.apache.solr.common.SolrDocument; +import org.apache.solr.common.SolrDocumentList; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +@Repository +public class SearchDao { + + @Autowired + private SolrClient solrClient; + + public SearchResult search(SolrQuery query) throws Exception { + //根据查询条件查询索引库 + QueryResponse queryResponse = solrClient.query(query); + //取查询结果总记录数 + SolrDocumentList solrDocumentList = queryResponse.getResults(); + long numFound = solrDocumentList.getNumFound(); + //创建一个返回结果对象 + SearchResult result = new SearchResult(); + result.setRecourdCount((int) numFound); + //创建一个商品列表对象 + List itemList = new ArrayList<>(); + //取商品列表 + //取高亮后的结果 + Map>> highlighting = queryResponse.getHighlighting(); + for (SolrDocument solrDocument : solrDocumentList) { + //取商品信息 + SearchItem searchItem = new SearchItem(); + searchItem.setCategory_name((String) solrDocument.get("item_category_name")); + searchItem.setId((String) solrDocument.get("id")); + searchItem.setImage((String) solrDocument.get("item_image")); + searchItem.setPrice((long) solrDocument.get("item_price")); + searchItem.setSell_point((String) solrDocument.get("item_sell_point")); + //取高亮结果 + List list = highlighting.get(solrDocument.get("id")).get("item_title"); + String itemTitle = ""; + if (list != null && list.size() > 0) { + itemTitle = list.get(0); + } else { + itemTitle = (String) solrDocument.get("item_title"); + } + searchItem.setTitle(itemTitle); + //添加到商品列表 + itemList.add(searchItem); + } + //把列表添加到返回结果对象中 + result.setItemList(itemList); + return result; + } + +} diff --git a/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/mapper/SearchItemMapper.java b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/mapper/SearchItemMapper.java new file mode 100644 index 0000000..6da4737 --- /dev/null +++ b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/mapper/SearchItemMapper.java @@ -0,0 +1,10 @@ +package guo.ping.e3mall.search.mapper; + +import guo.ping.e3mall.common.pojo.SearchItem; + +import java.util.List; + +public interface SearchItemMapper { + List getItemList(); + SearchItem getItemById(Long itemId); +} \ No newline at end of file diff --git a/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/message/ItemAddMessageReceiver.java b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/message/ItemAddMessageReceiver.java new file mode 100644 index 0000000..878a2a4 --- /dev/null +++ b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/message/ItemAddMessageReceiver.java @@ -0,0 +1,49 @@ +package guo.ping.e3mall.search.message; + +import guo.ping.e3mall.common.pojo.SearchItem; +import guo.ping.e3mall.search.mapper.SearchItemMapper; +import org.apache.solr.client.solrj.SolrClient; +import org.apache.solr.client.solrj.SolrServerException; +import org.apache.solr.common.SolrInputDocument; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jms.annotation.JmsListener; +import org.springframework.stereotype.Component; + +import java.io.IOException; + +@Component +public class ItemAddMessageReceiver { + + @Autowired + private SearchItemMapper searchItemMapper; + @Autowired + private SolrClient solrClient; + + @JmsListener(destination = "itemAddTopic", containerFactory = "jmsTopicListenerContainerFactory") + public void itemAddReceiver(Long msg) { + try { + // 0、等待1s让e3-manager-service提交完事务,商品添加成功 + Thread.sleep(1000); + // 1、根据商品id查询商品信息 + SearchItem searchItem = searchItemMapper.getItemById(msg); + // 2、创建一SolrInputDocument对象。 + SolrInputDocument document = new SolrInputDocument(); + // 3、使用SolrServer对象写入索引库。 + document.addField("id", searchItem.getId()); + document.addField("item_title", searchItem.getTitle()); + document.addField("item_sell_point", searchItem.getSell_point()); + document.addField("item_price", searchItem.getPrice()); + document.addField("item_image", searchItem.getImage()); + document.addField("item_category_name", searchItem.getCategory_name()); + // 5、向索引库中添加文档。 + solrClient.add(document); + solrClient.commit(); + } catch (SolrServerException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } +} diff --git a/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/service/impl/SearchItemServiceImpl.java b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/service/impl/SearchItemServiceImpl.java new file mode 100644 index 0000000..b1b73c4 --- /dev/null +++ b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/service/impl/SearchItemServiceImpl.java @@ -0,0 +1,54 @@ +package guo.ping.e3mall.search.service.impl; + +import com.alibaba.dubbo.config.annotation.Service; +import guo.ping.e3mall.common.pojo.E3Result; +import guo.ping.e3mall.common.pojo.SearchItem; +import guo.ping.e3mall.search.mapper.SearchItemMapper; +import guo.ping.e3mall.search.service.SearchItemService; +import org.apache.solr.client.solrj.SolrClient; +import org.apache.solr.client.solrj.impl.CloudSolrClient; +import org.apache.solr.common.SolrInputDocument; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.List; + +@Service +public class SearchItemServiceImpl implements SearchItemService { + + @Autowired + private SearchItemMapper itemMapper; + + @Autowired +// private CloudSolrClient solrClient; + private SolrClient solrClient; + + @Override + public E3Result importItems() { + try { + //查询商品列表 + List itemList = itemMapper.getItemList(); + //导入索引库 + for (SearchItem searchItem : itemList) { + //创建文档对象 + SolrInputDocument document = new SolrInputDocument(); + //向文档中添加域 + document.addField("id", searchItem.getId()); + document.addField("item_title", searchItem.getTitle()); + document.addField("item_sell_point", searchItem.getSell_point()); + document.addField("item_price", searchItem.getPrice()); + document.addField("item_image", searchItem.getImage()); + document.addField("item_category_name", searchItem.getCategory_name()); + //写入索引库 + solrClient.add(document); + } + //提交 + solrClient.commit(); + //返回成功 + return E3Result.ok(); + + } catch (Exception e) { + e.printStackTrace(); + return E3Result.build(500, "商品导入失败"); + } + } +} diff --git a/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/service/impl/SearchServiceImpl.java b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/service/impl/SearchServiceImpl.java new file mode 100644 index 0000000..788c223 --- /dev/null +++ b/e3-search/e3-search-service/src/main/java/guo/ping/e3mall/search/service/impl/SearchServiceImpl.java @@ -0,0 +1,50 @@ +package guo.ping.e3mall.search.service.impl; + +import com.alibaba.dubbo.config.annotation.Service; +import guo.ping.e3mall.common.pojo.SearchResult; +import guo.ping.e3mall.search.dao.SearchDao; +import guo.ping.e3mall.search.service.SearchService; +import org.apache.solr.client.solrj.SolrQuery; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; + +@Service +public class SearchServiceImpl implements SearchService { + + @Autowired + private SearchDao searchDao; + + @Value("${DEFAULT_FIELD}") + private String DEFAULT_FIELD; + + @Override + public SearchResult search(String keyWord, int page, int rows) throws Exception { + //创建一个SolrQuery对象 + SolrQuery query = new SolrQuery(); + //设置查询条件 + query.setQuery(keyWord); + //设置分页条件 + query.setStart((page - 1) * rows); + //设置rows + query.setRows(rows); + //设置默认搜索域 + query.set("df", DEFAULT_FIELD); + //设置高亮显示 + query.setHighlight(true); + query.addHighlightField("item_title"); + query.setHighlightSimplePre(""); + query.setHighlightSimplePost(""); + //执行查询 + SearchResult searchResult = searchDao.search(query); + //计算总页数 + int recourdCount = searchResult.getRecourdCount(); + int pages = recourdCount / rows; + if (recourdCount % rows > 0) { + pages++; + } + //设置到返回结果 + searchResult.setTotalPages(pages); + return searchResult; + } + +} diff --git a/e3-search/e3-search-service/src/main/resources/application.yaml b/e3-search/e3-search-service/src/main/resources/application.yaml new file mode 100644 index 0000000..6e33dd9 --- /dev/null +++ b/e3-search/e3-search-service/src/main/resources/application.yaml @@ -0,0 +1,33 @@ +mybatis: + config-location: classpath:mybatis/SqlMapConfig.xml + mapper-locations: classpath:mybatis/mapper/*.xml + +spring: + datasource: + username: root + password: 123456 + url: jdbc:mysql://192.168.163.137:3307/e3mall + driver-class-name: com.mysql.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + data: + solr: + host: http://192.168.163.137:8983/solr/collection1 + activemq: + user: admin + password: admin + broker-url: tcp://192.168.163.137:61616 + pool: + enabled: true + max-connections: 50 + packages: + trust-all: false + +dubbo: + application: + name: e3-search + registry: + address: zookeeper://192.168.163.137:2181 + scan: + basePackages: guo.ping.e3mall.search.service + protocol: + port: 20882 \ No newline at end of file diff --git a/e3-search/e3-search-service/src/main/resources/conf/conf.properties b/e3-search/e3-search-service/src/main/resources/conf/conf.properties new file mode 100644 index 0000000..210859c --- /dev/null +++ b/e3-search/e3-search-service/src/main/resources/conf/conf.properties @@ -0,0 +1 @@ +DEFAULT_FIELD=item_keywords \ No newline at end of file diff --git a/e3-search/e3-search-service/src/main/resources/mybatis/SqlMapConfig.xml b/e3-search/e3-search-service/src/main/resources/mybatis/SqlMapConfig.xml new file mode 100644 index 0000000..d6375a4 --- /dev/null +++ b/e3-search/e3-search-service/src/main/resources/mybatis/SqlMapConfig.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/e3-search/e3-search-service/src/main/resources/mybatis/mapper/SearchItemMapper.xml b/e3-search/e3-search-service/src/main/resources/mybatis/mapper/SearchItemMapper.xml new file mode 100644 index 0000000..01e20d0 --- /dev/null +++ b/e3-search/e3-search-service/src/main/resources/mybatis/mapper/SearchItemMapper.xml @@ -0,0 +1,31 @@ + + + + + + diff --git a/e3-search/pom.xml b/e3-search/pom.xml new file mode 100644 index 0000000..8760ed4 --- /dev/null +++ b/e3-search/pom.xml @@ -0,0 +1,29 @@ + + + + e3-parent + guo.ping.e3mall + 1.0-SNAPSHOT + ../e3-parent/pom.xml + + 4.0.0 + + e3-search + pom + + e3-search-interface + e3-search-service + + + + + + guo.ping.e3mall + e3-common + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/e3-sso-web/pom.xml b/e3-sso-web/pom.xml new file mode 100644 index 0000000..81d4623 --- /dev/null +++ b/e3-sso-web/pom.xml @@ -0,0 +1,74 @@ + + + + e3-parent + guo.ping.e3mall + 1.0-SNAPSHOT + ../e3-parent/pom.xml + + 4.0.0 + + e3-sso-web + jar + + e3-sso-web + + + UTF-8 + 1.7 + 1.7 + + + + + guo.ping.e3mall + e3-sso-interface + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + + com.alibaba.boot + dubbo-spring-boot-starter + + + + com.github.sgroschupf + zkclient + + + log4j + log4j + + + + + + + e3-sso-web + + + org.springframework.boot + spring-boot-maven-plugin + + + + + \ No newline at end of file diff --git a/e3-sso-web/src/main/java/guo/ping/e3mall/sso/SsoWebApplicationStarter.java b/e3-sso-web/src/main/java/guo/ping/e3mall/sso/SsoWebApplicationStarter.java new file mode 100644 index 0000000..d6af754 --- /dev/null +++ b/e3-sso-web/src/main/java/guo/ping/e3mall/sso/SsoWebApplicationStarter.java @@ -0,0 +1,11 @@ +package guo.ping.e3mall.sso; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class SsoWebApplicationStarter { + public static void main(String[] args) { + SpringApplication.run(SsoWebApplicationStarter.class, args); + } +} diff --git a/e3-sso-web/src/main/java/guo/ping/e3mall/sso/config/MySettingFileConfig.java b/e3-sso-web/src/main/java/guo/ping/e3mall/sso/config/MySettingFileConfig.java new file mode 100644 index 0000000..1f527d0 --- /dev/null +++ b/e3-sso-web/src/main/java/guo/ping/e3mall/sso/config/MySettingFileConfig.java @@ -0,0 +1,10 @@ +package guo.ping.e3mall.sso.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; + +@Configuration +@PropertySource("classpath:conf/conf.properties") +public class MySettingFileConfig { + +} diff --git a/e3-sso-web/src/main/java/guo/ping/e3mall/sso/controller/PageController.java b/e3-sso-web/src/main/java/guo/ping/e3mall/sso/controller/PageController.java new file mode 100644 index 0000000..8c617d1 --- /dev/null +++ b/e3-sso-web/src/main/java/guo/ping/e3mall/sso/controller/PageController.java @@ -0,0 +1,21 @@ +package guo.ping.e3mall.sso.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +@RequestMapping("/page") +public class PageController { + + @RequestMapping("/register") + public String showRegister() { + return "register"; + } + + @RequestMapping("/login") + public String showLogin(String redirect, Model model) { + model.addAttribute("redirect", redirect); + return "login"; + } +} diff --git a/e3-sso-web/src/main/java/guo/ping/e3mall/sso/controller/UserController.java b/e3-sso-web/src/main/java/guo/ping/e3mall/sso/controller/UserController.java new file mode 100644 index 0000000..8556308 --- /dev/null +++ b/e3-sso-web/src/main/java/guo/ping/e3mall/sso/controller/UserController.java @@ -0,0 +1,65 @@ +package guo.ping.e3mall.sso.controller; + +import com.alibaba.dubbo.config.annotation.Reference; +import guo.ping.e3mall.common.pojo.E3Result; +import guo.ping.e3mall.common.utils.CookieUtils; +import basepro.manager.pojo.TbUser; +import guo.ping.e3mall.sso.service.UserService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.http.converter.json.MappingJacksonValue; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +@Controller +@RequestMapping("/user") +public class UserController { + + @Reference + private UserService userService; + @Value("${TOKEN_KEY}") + private String TOKEN_KEY; + + @RequestMapping("/check/{param}/{type}") + @ResponseBody + public E3Result checkData(@PathVariable String param, @PathVariable Integer type) { + return userService.checkData(param, type); + } + + @PostMapping("/register") + @ResponseBody + public E3Result register(TbUser tbUser) { + return userService.register(tbUser); + } + + @PostMapping("/login") + @ResponseBody + public E3Result login(String username, String password, HttpServletRequest request, HttpServletResponse response) { + E3Result result = userService.login(username, password); + // Token写入cookie 浏览器关闭就过期 + if (result.getStatus() == 200) { + String token = result.getData().toString(); + CookieUtils.setCookie(request, response, TOKEN_KEY, token); + } + return result; + } + + @RequestMapping("/token/{token}") + @ResponseBody + public Object getUserByToken(@PathVariable String token, String callback) { + E3Result result = userService.getUserByToken(token); + if (StringUtils.isNotBlank(callback)) { + MappingJacksonValue mappingJacksonValue = new MappingJacksonValue(result); + mappingJacksonValue.setJsonpFunction(callback); + return mappingJacksonValue; + } + return result; + } + +} diff --git a/e3-sso-web/src/main/resources/application.yaml b/e3-sso-web/src/main/resources/application.yaml new file mode 100644 index 0000000..be3f02c --- /dev/null +++ b/e3-sso-web/src/main/resources/application.yaml @@ -0,0 +1,9 @@ +#tomcat conf +server: + port: 8085 +#dubbo conf +dubbo: + application: + name: e3-sso-web + registry: + address: zookeeper://192.168.163.132:2181 \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/conf/conf.properties b/e3-sso-web/src/main/resources/conf/conf.properties new file mode 100644 index 0000000..a1bbedc --- /dev/null +++ b/e3-sso-web/src/main/resources/conf/conf.properties @@ -0,0 +1 @@ +TOKEN_KEY=E3_TOKEN \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/css/headerfooter.css b/e3-sso-web/src/main/resources/static/css/headerfooter.css new file mode 100644 index 0000000..6862b97 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/css/headerfooter.css @@ -0,0 +1,120 @@ +@charset "UTF-8"; +/* CSS Document */ +/*reset*/ +html { + background: #f5f5f5 none repeat scroll 0 0; + color: #515151; + overflow-y: scroll; } + +body, div, td { + font-size: 12px; + font-family: "宋体", Arial, Helvetica, sans-serif; + line-height: 1.4em; } + +body, div, ul, ol, li, h1, h2, h3, h4, h5, h6, form, fieldset, legend, input, textarea, p, th, td, dl, dt, dd { + margin: 0; + padding: 0; } + +table { + border-collapse: collapse; + border-spacing: 0; } + +img { + border: none; } + +address, caption, cite, code, dfn, em, th, var { + font-style: normal; + font-weight: normal; } + +ul li { + list-style-image: none; + list-style-position: outside; + list-style-type: none; } + +caption, th { + text-align: left; } + +h1, h2, h3, h4, h5, h6 { + font-size: 100%; + font-weight: normal; + vertical-align: baseline; + zoom: 1; } + +input, textarea, select, button { + font-family: "微软雅黑"; + font-size: 12px; + font-weight: inherit; + vertical-align: middle; } + +input[type=radio], input[type=checkbox] { + vertical-align: middle; } + +input { + outline: none; } + +/*base*/ +.floatleft { + float: left; } + +.floatright { + float: right; } + +.aligncenter { + text-align: center; } + +.alignright { + text-align: right; } + +.alignleft { + text-align: left; } + +.block { + display: block; } + +.forcewrap { + word-wrap: break-word; + word-break: break-all; + text-overflow: hidden; + overflow: hidden; } + +.borderless { + border: none; } + +/*clear*/ +.clear { + clear: both; + line-height: 0; + height: 0; + font-size: 0; } + +.clearfix:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; } + +.clearfix { + zoom: 1; } + +a { + text-decoration: none; + color: #515151; } + +a:hover { + color: #515151; } + +.hide { + display: none; } + +.header{ width:1000px; /*height:75px;*/ margin:0 auto;} +.header img, .header span{ margin:10px 0; float:left;} +.header span{ line-height:70px; font-size:24px; padding-left:3px; font-family:"微软雅黑";} +.footer{ width:1000px; margin:0 auto; padding-top:20px;} +.footer span, .footer p{ line-height:26px; margin:0 auto; text-align:center;} +.footer span{ display:block; color:#176246;} +.footer span a.footerlink{ color:#176246;} +.footer span a.footerlink:hover{ text-decoration:underline;} +.footer span a.footerlink1{ color:#666; text-decoration:none;} +.footer span a.footerlink1:hover{ text-decoration:underline;} +.footer p{ line-height:26px;} diff --git a/e3-sso-web/src/main/resources/static/css/headerfooterindex.css b/e3-sso-web/src/main/resources/static/css/headerfooterindex.css new file mode 100644 index 0000000..bd77226 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/css/headerfooterindex.css @@ -0,0 +1,126 @@ +@charset "UTF-8"; +/* CSS Document */ +/*reset*/ +html {background: #fff none repeat scroll 0 0;color: #515151; } + +body, div, td { + font-size: 12px; + font-family: "微软雅黑", Arial, Helvetica, sans-serif; + line-height: 1.4em; } + +body, div, ul, ol, li, h1, h2, h3, h4, h5, h6, form, fieldset, legend, input, textarea, p, th, td, dl, dt, dd { + margin: 0; + padding: 0; } + +table { + border-collapse: collapse; + border-spacing: 0; } + +img { + border: none; } + +address, caption, cite, code, dfn, em, th, var { + font-style: normal; + font-weight: normal; } + +ul li { + list-style-image: none; + list-style-position: outside; + list-style-type: none; } + +caption, th { + text-align: left; } + +h1, h2, h3, h4, h5, h6 { + font-size: 100%; + font-weight: normal; + vertical-align: baseline; + zoom: 1; } + +input, textarea, select, button { + font-family: "微软雅黑"; + font-size: 12px; + font-weight: inherit; + vertical-align: middle; } + +input[type=radio], input[type=checkbox] { + vertical-align: middle; } + +input { + outline: none; } + +/*base*/ +.floatleft { + float: left; } + +.floatright { + float: right; } + +.aligncenter { + text-align: center; } + +.alignright { + text-align: right; } + +.alignleft { + text-align: left; } + +.block { + display: block; } + +.forcewrap { + word-wrap: break-word; + word-break: break-all; + text-overflow: hidden; + overflow: hidden; } + +.borderless { + border: none; } + +/*clear*/ +.clear { + clear: both; + line-height: 0; + height: 0; + font-size: 0; } + +.clearfix:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; } + +.clearfix { + zoom: 1; } + +a { + text-decoration: none; + color: #515151; } + +a:hover { + color: #515151; } + +.hide { + display: none; } + +.header{ width:1000px; margin:0 auto;} +.header img, .header span{ margin:10px 0; float:left;} +.header span{ line-height:70px; font-size:18px; padding-left:3px; font-family:"微软雅黑";} +.footer{ width:1000px; margin:0 auto; padding-top:20px;} +.footer span, .footer p{ line-height:26px; margin:0 auto; text-align:center;} +.footer span{ display:block; color:#176246;} +.footer span a.footerlink{ color:#176246;} +.footer span a.footerlink:hover{ text-decoration:underline;} +.footer p{ line-height:26px;} + + +.window{width:350px;border:3px solid #e6e6e6;position:absolute;margin-left:-150px;margin-top:-150px;top:50%;left:50%;background:#fff;} +.window .content{padding:20px 12px 12px 12px;text-align:center;line-height:24px;font-size:14px;} +.window .titlehead{background-color:#f5f5f5;height:31px;line-height:31px;border:0 none;} +.window h3{width:150px;float:left;margin:0px;padding:0px 0px 0px 16px;font-size:14px;color:#565656;font-family:微软雅黑;} +.window h3 img{border:0px;padding:0px;margin:0px;} +input.submit1{font-size:12px;background-color:#6c9c0a;color:#fff;border:none;margin:0px 0px 0px 0px;padding:0px 4px 0px 4px;height:22px;line-height:22px;cursor:pointer;vertical-align:middle;vertical-align:baseline\9;}input.submit1:hover{background:url(../images/productinfo.png) repeat-x 0 -124px;} + +.footer a.footerlink1{ color:#666; text-decoration:none;} +.footer a.footerlink1:hover{ text-decoration:underline;} \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/css/jquery.alerts.css b/e3-sso-web/src/main/resources/static/css/jquery.alerts.css new file mode 100644 index 0000000..ab982c9 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/css/jquery.alerts.css @@ -0,0 +1,44 @@ +#popup_container { + font-family: Arial, sans-serif; + font-size: 12px; + min-width: 300px; /* Dialog will be no smaller than this */ + max-width: 600px; /* Dialog will wrap after this width */ + background: #FFF; + border:3px solid #E6E6E6; + color: #000; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; +} +*html #popup_container{width:304px;} + +#popup_content { + padding: 1em 1.75em; + margin: 0em; +} + +#popup_content.alert { +} + +#popup_content.confirm { +} + +#popup_content.prompt { +} + +#popup_message { + color: #6B6B6B; + margin: 0; + padding: 0; + text-align:center +} + +#popup_panel { + text-align: center; + margin: 1em 0em 0em 0em; +} + +#popup_prompt { + margin: .5em 0em; +} + diff --git a/e3-sso-web/src/main/resources/static/css/login.css b/e3-sso-web/src/main/resources/static/css/login.css new file mode 100644 index 0000000..dd7af03 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/css/login.css @@ -0,0 +1,85 @@ +@charset "UTF-8"; +/* CSS Document */ +input::-ms-clear{display: none;} +input::-ms-reveal{display: none;} +.login_main{ width:1000px; height:auto !important; min-height:500px; _height:100%; background:#fff; margin:0 auto;} +.login_main .login{float:left;} +.login_main .pic{ width:540px; height:390px; padding-top:14px; float:left;} +.login_main .pic img{margin-top:32px;} +.login_main .login{ width:400px; min-height:100px;} +.login_main .reg_title{ float:right; margin-right:31px; background:url(/images/reg_bg.jpg); width:125px; height:24px; padding-top:13px; color:#fff; font-size:14px; text-align:center; position:relative; z-index:10;} +.login_main .reg_title:hover{ background-position:0 -37px; } +.login_main .login_box{ position:relative; z-index:1; left:0; top:0px; border:1px solid #cdcdcd; height:auto !important; min-height:150px;} +.login_box ul{ padding:45px 0 0 33px; width:324px;} +.login_box li span{ display:block;} +.login_box li span.title{ height:26px; line-height:26px; font-size:12px;} +.login_box li span.border, .login_box li span.border-error, .login_box li span.border-ok{ width:320px; height:36px; } +.login_box li span.border-ok{ border:1px solid #69af05;} +.login_box li span.border-error{ border:1px solid #fa9600;} +.login_box li span.border{ border:1px solid #cdcdcd;} +.login_box li input{ width:274px; height:20px; padding:8px 5px; line-height:20px; border: 0 none; float:left; font-size:14px;} +.login_box li em.icon, .login_box li em.icon1, .login_box li em.icon2{ height:38px; width:30px; float:left; } +.login_box li em.icon{ background:url(/images/icon.jpg) center no-repeat; cursor:pointer; } +.login_box li em.icon1{ background:url(/images/icon1.jpg) center no-repeat;} +.login_box li em.icon2{ background:url(/images/icon2.jpg) center no-repeat; } +.login_box li span.error{ background:#ffece5; width:315px; height:20px; line-height:20px; padding-left:5px; border-left:1px solid #fa9600; border-right:1px solid #fa9600; border-bottom:1px solid #fa9600; position: absolute; opacity: 0.9; color:#fa6400; font-size:12px;} +.login_box li span.error1{ background:#ffece5; width:94px; height:20px; line-height:20px; padding:0 5px; border-left:1px solid #fa9600; border-right:1px solid #fa9600; border-bottom:1px solid #fa9600; position: absolute; *+position:static; opacity: 0.9; color:#fa6400; font-size:12px; margin-top:38px;*margin-top:0px;} +.login_box li div a.forget-passWord{ display:block; height:22px; padding-right:5px; text-align:right; color:#515151;} +.login_box li div a.forget-passWord:hover{ text-decoration:underline;} +.login_box li .login_btn{ display:block; background:url(/images/login_bg.jpg) left top no-repeat; height:41px; line-height:41px; font-size:18px; text-align:center; color:#f2f1f1; letter-spacing:0.8em;} +.login_box li .login_btn:hover{ background-position:0 -42px; } +.login_box li .login-in_btn{ display:block; background:url(/images/login_bg1.jpg) left top no-repeat; height:43px; line-height:43px; font-size:18px; text-align:center; color:#6e9b0c; letter-spacing:0.3em;} +.login_box .scode{ margin:30px 10px 0 0;} +.login_box .scode .code{ width:94px; height:20px; line-height:20px; border:1px solid #d5d5d5; margin-right:10px;} +.login_box .scode .code-ok{ border:1px solid #69af05;width:94px; height:20px; line-height:20px;margin-right:10px;} +.login_box .scode .code-error{ border:1px solid #fa9600;width:94px; height:20px; line-height:20px;margin-right:10px;} +.login_box .codeTitle{ width:86px; height:38px; line-height:38px; float:left; margin-left:6px; color:#565656;} +.login_box .codeTitle a{ color:#6e9b0c;} +.login_box .codeTitle a:hover{ text-decoration:underline;} +.login_box .scode .code_spec{ width:80%;position:absolute;*position:relative; height:20px; line-height:20px;} + +.login_box li h2.h2{ font-size:12px; font-weight:normal; height:20px; line-height:20px; padding-top:5px;} +.login_box li div{ color:#176246;} +.login_box li a.link{ color:#176246; height:26px; line-height:26px; text-decoration:none;} +.login_box li a.link:hover{ text-decoration:underline;} + +.login_box .loginnav{ padding:0;position: absolute; width:100%;} +.login_box .loginnav li{border-bottom:1px solid #cdcdcd;border-right:1px solid #cdcdcd;height:30px; width:132px; float:left; font-size:14px; line-height:30px; cursor:pointer;} +.login_box .loginnav li em{ float:left; margin:10px 5px 0 25px; background:url(/images/loginicon.png) no-repeat; width:15px; height:15px;} +.login_box .loginnav .npay em{ background-position:0 -25px;} +.login_box .loginnav .nexpress em{ background-position:0 -48px;} +.login_box .loginnav .bordernone{border-right:0;} +.login_box .loginnav .curr{border-bottom:1px solid #fff;border-top:2px solid #69af05; position:relative; margin-top:-2px;} +.login_box .blink{ padding:0; border-top:1px solid #cdcdcd; width:100%;margin:15px 0 0 0;} + +.login_main .login_box .top{ background:url(/images/login_top.jpg) left top no-repeat; height:13px;} +.login_main .login_box .main{ background:url(/images/login_main.jpg) left top repeat-y;} +.login_main .login_box .bottom{ background:url(/images/login_bottom.jpg) left top no-repeat; height:13px;} + +.m-t12{ margin-top:15px;} +.m-t5{ margin-top:5px;} +.m-t18{ margin-top:18px;} +.p-f10{ padding:5px 10px 0 33px;} + +/*忘记密码*/ +.login_main .login_header{width: 400px; height:50px; line-height:50px;float:left} +.login_box .login_forget_password {overflow: hidden;line-height: 30px; text-align:right; color:#515151;} +.login_box .login_forget_password a{display: inline-block;color: #6e9b0c;} +.login_box .login_forget_password a:hover{ text-decoration:underline;} +.login_main1 .login_box .login_forget_password{ width:324px; margin:0 auto} +.login_main1 .m-t5{ margin-top:25px;*margin-top:0;} +.login_main1 .login_header{width: 400px; height:45px; line-height:45px; float:left} +.login_main1 .login_box li h2.h2{ padding-top:0px;} +.login_main1 .login{ padding:0;} +.login_header span {display: inline-block;color: #515151;font-size: 16px;float: left;} +.login_header a{display: inline-block;float: right;font-size: 12px;color: #515151;width: 70px;height: 25px;border:1px solid #34b742;line-height: 25px;text-align: center;margin-top: 12px;background: #fff4f0;} +.login_main1{width: 440px;position: relative;} +.login_main1 .login{margin-left: 10px;} +.login_main1 .login_close {position: absolute;width: 20px;height: 20px;right: 10px;} +.login_main1 .login_close a{display: inline-block;width: 20px;height: 20px;background: url(/mimages/close.png) no-repeat;} + +/*弹窗*/ + #login_mask {position: absolute; top: 0px; filter: alpha(opacity=50); background-color: #777;z-index: 1000; left: 0px;opacity:0.5; -moz-opacity:0.5;} +.login_main1 {width:auto;background: #fff; margin:0; min-height:460px;} +/*大写锁定*/ +.caplock{width:20px; height:20px; background:url(/images/caplock.png) no-repeat center;margin:-29px 0 0 265px;display:none; position:absolute; z-index:99999; } \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/css/reg.css b/e3-sso-web/src/main/resources/static/css/reg.css new file mode 100644 index 0000000..d1f4155 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/css/reg.css @@ -0,0 +1,325 @@ +@charset "UTF-8"; +input::-ms-clear{display: none;} +input::-ms-reveal{display: none;} + +/* CSS Document */ +.reg_main{ width:960px; height:auto !important; min-height:490px; _height:100%; background:#fff; margin:0 auto;} +.reg_main{ padding:45px 0 0 40px;} +.reg_main1{ width:1000px; height:auto !important; min-height:490px; _height:100%; background:#fff; margin:0 auto;} +.reg_border{ border-top:1px solid #d6d5d5;} + +/*reg Verification css*/ +.reg_success{ width:648px; margin:0 auto;} +.reg_success1{ width:690px; margin:0 auto;} +.reg_success2{ width:540px; margin:60px auto 0 auto;} +.reg_top{ padding-top:38px;} +.reg_top .reg_ok{ float:left;} +.reg_top .reg_ok{ width:58px;} +.reg_top .reg_con{ width:auto; margin-left:58px;} +.reg_con .titleA, .reg_con a.shopping, .reg_con .content .conA, .reg_con .content .conB em, .reg_con .content .conB1 em{ color:#666;} +.reg_con .title{ display:inline-block; padding-top:6px; font-size:18px; font-weight:bold; color:#6e9b0c; font-family:"微软雅黑";} +.reg_con .titleA{ font-size:12px; height:34px; line-height:20px; display:block;} +.reg_con .titleA a.editName{ color:#6e9b0c;} +.reg_con .titleA a.editName:hover{ text-decoration:underline;} +.reg_con a.shopping{ display:block; width:85px; height:30px; line-height:30px; background:#f5f5f5; margin:8px 0 15px 0; text-align:center; font-size:14px; border:1px solid #cdcdcd;} +.reg_conBox{ width:690px; border:1px solid #e6e6e6; height:100px;} +.reg_conBox .conBoxA{ width:110px; height:100px; float:left; background:#f5f5f5;} +.reg_conBox .conBoxB span{ display:block;} +.reg_conBox .conBoxB{ margin-left:110px; width:auto; padding-left:12px;} +.conBoxB .conBoxB-1{ padding-top:20px; line-height:40px; font-size:18px; font-family:"微软雅黑";} +.conBoxB .conBoxB-1 font{ color:#6e9b0c;} +.conBoxB .conBoxB-2{ font-size:14px; font-family:"微软雅黑";} +.conBoxB .conBoxB-2 font{ color:#ff4800;} +.reg_bind{ width:540px;height:100px;} +.reg_bind .conBoxC{font-size:18px; color:#515151;} +.reg_bind .conBoxC font{ color:#fa9600;} +.reg_success2 .binduser{ font-size:14px; color:#515151;} +.reg_success2 .bindcenter .regShopping{ margin-left:75px;} +.reg_con .content{ width:550px; padding:30px 0 30px 30px; border:1px solid #e6e6e6; border-radius:3px; background:#fdfffa; margin:5px 0 30px 0;} +.reg_con .content span, .content span{ display:block; padding-bottom:13px;} +.reg_con .content .conA, .content .conA{ font-size:14px; font-family:"微软雅黑";} +.reg_con .content .conC{ font-size:14px; color:#6e9b0c; font-weight:bold; font-family:"微软雅黑";} +.reg_con .conB, .reg_con .reg_emailError{ display:block;} +.reg_con .conB{ height:25px;} +.reg_con .reg_emailError{ height:18px; line-height:18px; color:#666; padding-left:52px;} +.reg_con .content .conB em, .reg_con .content .conB1 em, .reg_con .content .conB input, .reg_con .content .conB1 input, .reg_con .content .conB a, .reg_con .content .conB1 a, .reg_con .conB em, .reg_con .conB input, .reg_con .conB a{ float:left; margin-right:5px; line-height:23px; border:none; outline:none;} +.reg_con .titleA font, .reg_con .content .conA font, .content .conA font{ color:#ff4800;} +.reg_con .content .conA a, .content .conA a{ color:#ff4800;} +.reg_con .content .conA a:hover, .content .conA a:hover{ text-decoration:underline;} +.reg_con .content .conB em, .reg_con .content .conB1 em, .reg_con .conB em{ font-size:12px;} +.reg_con .content .conB input, .reg_con .content .conB1 input, .reg_con .conB input{height:23px; padding:0 5px;} +.reg_con .content .conB input, .reg_con .content .conB1 input{ width:268px; border:1px solid #d7d7d6; } +.reg_con .conB input, reg_con .conB input.email{ width:188px; color:#cdcdcd;} +.reg_con .conB input{ border:1px solid #8baf3d;} +.reg_con .conB input.email{ border:1px solid #d7d7d7;} +.reg_con .conB a{ display:block; width:58px; height:23px; border:1px solid #cdcdcd; background:#f5f5f5; color:#666; text-align:center;} +.reg_con .content .conB a{ display:block; background:url(/images/btn.jpg) left top no-repeat; width:76px; height:25px; line-height:25px; color:#fff; text-align:center;} +.reg_con .content .conB1 a{ display:block; background:url(/images/btn1.jpg) left top no-repeat; width:92px; height:25px; line-height:25px; color:#fff; text-align:center;} + +.register a.submit{ display:block; width:271px; height:38px; line-height:38px; background:url(/images/reg_btn.jpg) left top no-repeat; text-align:center; color:#fff; font-size:16px; font-family:"微软雅黑";} +.register a.submission, .register .submission{ display:block; width:271px; height:38px; line-height:38px; border:1px solid #ebebeb; border-radius:3px; text-align:center; color:#999; font-size:16px; font-family:"微软雅黑";} + +/*reg IndividualUser css*/ +.tabBox{ width:666px; margin:0 auto; padding-left:333px; height:37px;} +.tabBox span{ display:block; float:left; text-align:center;} +.tabBox .reg_show, .tabBox .reg_hide{ cursor:pointer; position:relative; top:1px; width:163px; height:38px; line-height:38px; font-family:"微软雅黑"; } +.tabBox .reg_hide{ background: url(/images/tabbg1.jpg) left top no-repeat; font-size:14px;} +.tabBox .reg_show{ background: url(/images/tabbg.jpg) left top no-repeat; font-size:16px;} +.tabBox .reg_title{ display:block; border:1px solid #d6d5d5; background:#ececec; width:158px; height:29px; line-height:29px; margin-left:5px; color:#666; font-size:14px;} +.tabBox .login{ width:130px; float:right; padding-top:14px; font-size:12px; color:#565656; } +.tabBox .login a{ color:#6e9b0c;} +.tabBox .login a:hover{ text-decoration:underline;} +.reg_main ul{ position:relative; left:0; top:0;} +.reg_main .regbind{ left:120px} +.reg_main ul.individualUserBg{ background: url(/images/pic2.jpg) right 78px no-repeat;} +.reg_main ul.individualUserBg li, .reg_main ul.individualUserBg1 li, .reg_main ul.enterpriseUsers li{ height:38px;} +.reg_main .regbind .bindpass{ margin:15px 0 0 220px; float:left;} +.checkTitle{ text-decoration:none;} +.checkTitle:hover{ text-decoration:underline;} +.reg_main .safetyLayer, +.reg_findPassword .safetyLayer{ height:28px; color:#666; padding-top:5px;} +.reg_main .safetyLayer font, +.reg_main .safetyLayer em, +.reg_main .safetyLayer a, +.reg_findPassword .safetyLayer font, +.reg_findPassword .safetyLayer em, +.reg_findPassword .safetyLayer a{ display:block; float:left;} +.reg_main .safetyLayer em, .reg_findPassword .safetyLayer em{ text-align:center; width:34px; margin-right:2px; color:#fff;} +.reg_main .safetyLayer em.default, .reg_findPassword .safetyLayer em.default{ background:#c4c4c4;} +.reg_main .safetyLayer em.ok, .reg_findPassword .safetyLayer em.ok{ background:#f79100;} +.reg_main .safetyLayer a, .reg_findPassword .safetyLayer a{ color:#6e9b0c;} +.reg_main li label, .reg_main li .regM, .reg_main li .reg_error, .reg_main li .reg_error1, .reg_main li .reg_error3, .reg_main li .reg_error4{display:block; float:left;} +.reg_main li label font.f_0, .reg_main li .regM font.f_0, .reg_main li .reg_error font.f_0, .reg_main li .reg_error1 font.f_0, .reg_main li .reg_error3 font.f_0, .reg_main li .reg_error4 font.f_0{ line-height:36px;} +.reg_main li label font.f_1, .reg_main li .regM font.f_1, .reg_main li .reg_error font.f_1, .reg_main li .reg_error1 font.f_1, .reg_main li .reg_error3 font.f_1, .reg_main li .reg_error4 font.f_1{ padding:2px 0; display:block;} +.f-color{ color:#ff4800;} + +.reg_main li label{ width:118px; font-size:14px; color:#515151; height:38px; line-height:38px; text-align:right;} +.reg_main li label font{ color:#ff4800;} +.reg_main li .regM{ width:268px; height:36px; line-height:36px;} +.reg_main li .regM .regOk, .reg_findPassword .regOk2, .reg_main li .regM .regInput, .loginreg_main .loginreg_m .regInput{ display:block; float:left;} +.reg_main li .regInput{ width:228px; height:36px; line-height:36px; border:none; outline:none; color:#515151; padding:0 5px;} +.reg_main li .bindwidth{ width:258px;} +.reg_main li .reg_error, .reg_main li .reg_error1, .reg_main li .reg_error2, .reg_main li .reg_error3{ width:230px; /*padding-left:15px;*/ padding: 0 10px 0 15px; } + + +.reg_main li .reg_error4{ width:240px; height:34px; line-height:34px; margin-left:15px; padding-left:15px; border:1px solid #ff9166; background:#fff4ef; color:#ff4800;} +.reg_main li .reg_error{ color:#ff4800;} +.reg_main li .reg_error1, .reg_main li .reg_error2{ color:#666;} +.reg_main li .reg_error2{ display:block; float:left; height:36px;} + +.reg_main li .regM .regOk, .reg_main li .regOk1, .reg_form .regOk1{ background: url(/images/icon4.jpg) center no-repeat; width: 23px; height: 36px; } +.reg_main li .regOk1, .reg_form .regOk1{ display: block; position: absolute; left: 158px; float: left;} + +.reg_findPassword li .regOk3{ display: block; position: absolute; left: 158px; float: left; background: url(/images/icon4.jpg) center no-repeat; width: 23px; height: 30px;} + +.reg_findPassword .regOk2{ display: block; position: relative; left: 0; float: left; background: url(/images/icon4.jpg) center no-repeat; width: 23px; height: 30px; } + +.reg_main li .regCodeInput{ float:left; padding:0 5px; width:58px; height:36px; line-height:36px\9;} +.reg_main li .codeTitle, .reg_main li .checkTitle{ color:#565656;} +.reg_main li .codeTitle{ width:86px; line-height:36px;} +.reg_main li .codeTitle a, .reg_main li .checkTitle font, .loginreg_main li .checkTitle font, .reg_main li .reg_error a{ color:#6e9b0c;} +.reg_main li .codeTitle a:hover, .reg_main li .reg_error a:hover, .reg_main a.invitationLink:hover, .reg_main .safetyLayer a:hover{ text-decoration:underline;} +.reg_main .defaultBorder, .loginreg_main .defaultBorder, .reg_findPassword .defaultBorder{ border:1px solid #cdcdcd;} +.reg_main .errorBorder, .loginreg_main .errorBorder, .reg_findPassword .errorBorder{ border:1px solid #ff4800;} +.reg_main .okBorder, .loginreg_main .okBorder, .reg_findPassword .okBorder{ border:1px solid #6e9b0c;} +.reg_main .registerNow, .reg_main a.regShopping{ display:block; float:left; margin-right:20px; line-height:38px;} +.reg_main .registerNow{ display:block; float:left; width:271px; height:38px; background:url(/images/reg_btn.jpg) left top no-repeat; font-size:16px; text-align:center; color:#fff;} +.reg_main .registerNow:hover{ background-position:0 -38px;} +.reg_main .regdisabled{ background:#ccc; border-radius:2px; cursor:default;} +.reg_main a.regShopping{ color:#6e9b0c;} +.reg_main a.regShopping:hover{ text-decoration:underline;} +.reg_main li .gvCode, .reg_form li .gvCode{ display:block; float:left; width:108px; height:38px; line-height:38px; border:none; outline:none; cursor:pointer; color:#999; background:url(/images/btn2.jpg) left top no-repeat; text-align:center;} +.reg_main li .gvCode:hover, .reg_form li .gvCode:hover{ color:#6e9b0c;} + +.reg_main li .reg_gvCode, .reg_form li .reg_gvCode{ display:block; float:left; width:108px; height:30px; line-height:30px; border:none; outline:none; cursor:pointer; color:#999; background:url(/images/btn4.jpg) left top repeat-x; border:1px solid #e9e9e9; text-align:center;} +.reg_main li .reg_gvCode:hover, .reg_form li .reg_gvCode:hover{ color:#6e9b0c;} +.reg_main li .reg_gvCodeNo, .reg_form li .reg_gvCodeNo{ width:108px; height:30px; line-height:30px; background:#fff; text-align:center; color:#999; border:1px solid #eaeaea;} + +.reg_main .accountSearch, .loginRegForm .accountSearch{ position:absolute; z-index:99999; height:264px; background:#fff; border:1px solid #bbbbbb; overflow-y:auto;} +.reg_main .accountSearch{left:88px; top:38px; width:268px; } +.loginRegForm .accountSearch{left:0; top:47px; width:294px; } +.accountSearch span{ display:block; cursor:pointer; height:26px; line-height:26px; padding-left:5px;} +.accountSearch span:hover{ background:#cdcdcd;} +.reg_main .regInvitationInput{ width:138px; height:34px; line-height:34px; padding:0 5px;} +.reg_main a.invitationLink{ color:#6e9b0c; padding-left:8px;} +.reg_main li .regM1 { width: 154px; height: 36px; line-height: 36px; display:block; float:left;} +.reg_main li .regM1 .regPwdCode{ width: 119px; line-height:36px;height:36px; border: none; outline: none; color: #515151; padding: 0 5px; float:left; } +.reg_main li .regM1 em.regOk{ background: url(/images/icon4.jpg) center no-repeat; width: 23px; height: 36px; float:left; } +.reg_main li .gvCodeNo{ display: block; float: left; width: 108px; height: 38px; line-height: 38px; border: none; outline: none; cursor: pointer; color: #999; border:1px solid #d5d5d5; background:#fff; text-align: center; } +.reg_main .m_9{ margin-left:9px;} + +/*EnterpriseUsers*/ +.reg_main ul.enterpriseUsers{ width:602px; height:auto !important; min-height:500px; border-right:1px dashed #d5d5d5; float:left;} +.reg_main ul.rightTitle{ width:266px; float:right;} +.reg_main ul.rightTitle .r_title{ height:38px; line-height:38px; padding-right:16px; color:#515151; font-size:14px; font-weight:bold; text-align:right;} +.reg_main ul.rightTitle .r_tel{ font-size:14px; font-weight:bold; color:#6e9b0c; font-family:"微软雅黑";} +.rightTitle li h3{ height:34px; line-height:34px; font-weight:bold; color:#515151;} +.rightTitle li p{ line-height:24px;} +.reg_main .accountTitle{ width:556px; height:34px; line-height:34px; padding-left:8px; font-size:14px; font-weight:bold; border-bottom:1px dashed #d5d5d5;} +.reg_main .enterpriseUsers li{ position: relative;} +.reg_main .enterpriseUsers li label{ width:100px; font-size:14px; color:#515151; height:38px; line-height:38px; text-align:right;} +.reg_main .reg_error3{ position: absolute; right: -35px;}/* background:#f7f7f7; border:1px solid #e3e3e3;*/ + +/*login_reg_layer*/ +.sf_layer{ position: fixed; z-index: 100; top: 0px; left: 0px; height: 100%; width: 100%; background:#000; opacity:0.2;} +.login_reg_box{ width:412px; position:fixed; z-index:9999; background:#fff; border:4px solid #d3d3d3; radius-border:3px;} +.login_reg_box .nolr_title{ background:#f5f5f5; height:32px; line-height:32px; padding-left:10px; font-size:14px; font-weight:bold; font-family:"微软雅黑"; color:#565656;} +.login_reg_box .loginreg_main{ margin:10px 9px;} +.loginregTab{ width:auto; height:31px; padding-left:15px;} +.loginregTab .loginreg_show, .loginregTab .loginreg_hide{ display:block; float:left; cursor:pointer; position:relative; top:1px; margin:0 5px; width:87px; height:22px; padding-top:9px; text-align:center; font-size:14px; color:#565656; } +.loginregTab .loginreg_hide{ background:url(/images/loginregbg1.jpg) left top no-repeat;} +.loginregTab .loginreg_show{ background:url(/images/loginregbg.jpg) left top no-repeat; font-weight:bold;} +.loginreg_main .loginRegForm{ position:; border-top:1px solid #ddd; min-height:260px; color:#515151;} +.loginreg_main .loginRegForm ul{ width:300px; margin:0 auto; padding:20px 0;} +.loginreg_main .loginRegForm ul li{ position:relative;} +.loginreg_main .loginRegForm span{ display:block;} +.loginreg_main .loginRegForm .loginreg_title{ height:20px; line-height:20px; font-size:12px;} +.loginreg_main .loginRegForm .loginreg_m{ width:294px; height:30px; line-height:30px;} +.loginreg_main .regInput{ width:255px; height:30px; line-height:30px; *+height:28px; float:left; padding:0 5px; border:0 none; outline:none; background:#fff;} +.loginreg_main a.forgetPassword, .loginreg_main a.enterpriseUsers{ display:block; height:30px; line-height:30px;} +.loginreg_main a.forgetPassword{ text-align:right; color:#aaa;} +.loginreg_main a.forgetPassword:hover{ text-decoration:underline; color:#6e9b0c;} +.loginreg_main a.enterpriseUsers{ text-align:center; color:#6e9b0c;} +.loginreg_main a.enterpriseUsers:hover{ text-decoration:underline;} +.loginreg_main a.layer_login{ letter-spacing:0.2em;} +.loginreg_main a.layer_login, .loginreg_main a.layer_reg{ display:block; width:295px; height:34px; line-height:34px; background:url(/images/loginbg.jpg) left top no-repeat; font-size:16px; color:#fff; text-align:center;} +.loginreg_main a.layer_login:hover, .loginreg_main a.layer_reg:hover { background-position:0 -35px;} +.loginreg_main li{ position:relative; left:0; top:0;} +.loginreg_main li span.line{ color:#176246;} +.loginreg_main li a.link{ color:#176246; height:26px; line-height:26px; text-decoration:none;} +.loginreg_main li a.link:hover{ text-decoration:underline;} +.loginreg_main li .regCodeInput{ float:left; padding:0 5px; width:68px; height:30px; line-height:30px;} +.loginreg_main li .regCodeImg{ height:30px;} +.loginreg_main li .codeTitle, .reg_findPassword li .codeTitle{ width:86px; line-height:30px;} +.loginreg_main li .codeTitle a, .reg_findPassword li .codeTitle a{ color:#6e9b0c;} +.loginreg_main li .codeTitle a:hover, .reg_findPassword li .codeTitle a:hover{ text-decoration:underline;} +.loginreg_main .loginreg_m .regok{ background: url(/images/icon4.jpg) center no-repeat; width:23px; height:30px;} +.loginreg_main .loginreg_error, .loginreg_main .loginreg_error1, .loginreg_main .loginreg_error6{ height:23px; line-height:23px; padding:0 5px; background:#ffece5; position:absolute; left:0; top:47px; border:1px solid #eb7d52; z-index:999; color:#eb7d52;} +.loginreg_main .loginreg_error2, .loginreg_main .loginreg_error3, .loginreg_main .loginreg_error5{ height:23px; line-height:23px; padding:0 5px; background:#fff; position:absolute; left:0; top:47px; border:1px solid #cdcdcd; z-index:999; color:#999;} +.loginreg_main .loginreg_error4{ height:23px; line-height:23px; padding:0 5px; color:#999; border:1px solid #cdcdcd;} +.loginreg_main .loginreg_error, .loginreg_main .loginreg_error2{ width:284px; } +.loginreg_main .loginreg_error1, .loginreg_main .loginreg_error3{ width:68px; } +.loginreg_main .loginreg_error4{ width:129px;} +.loginreg_main .loginreg_error5, .loginreg_main .loginreg_error6{ width:153px;} +.close_loginreg{ cursor:pointer; position: absolute; right: 5px; top: 0; width:32px; height:32px; background:url(/images/close.jpg) center no-repeat;} + +/*find Password*/ +.findPasswordBorder{ border:1px solid #dcdcdc;} +.reg_findTitle{ height:30px; padding-left:13px; background:#f5f5f5; line-height:30px; color:#6a6a6a; font-size:14px; font-family:"微软雅黑"; font-weight:bold;} +.reg_find1, .reg_find2, .reg_find3, .reg_find4{ margin:20px auto 40px auto; width:876px; height:25px; background:url(/images/find.jpg) left top no-repeat;} +.reg_find2{ background-position:0 -26px;} +.reg_find3{ background-position:0 -52px;} +.reg_find4{ background-position:0 -78px;} +.reg_findPassword{ width:876px; margin:0 auto;} +.reg_findPassword li.regliA{ height:32px; position:relative;} + +.reg_findPassword li.regliA span.regliA_0{ width:268px;} + +.reg_findPassword li.regliB{ height:54px;} +.reg_findPassword li label, .reg_findPassword li span{ float:left;} +.reg_findPassword li label{ width: 118px; font-size: 14px; color: #515151; height: 32px; line-height: 32px; text-align: right;} +.reg_findPassword li label font{ color: #ff4800;} +.reg_findPassword li .regInput, .reg_findPassword li .reg_error{ height:30px; line-height:30px;} + +.reg_findPassword li .regInput{ width: 230px; border: none; outline: none; color: #515151; padding: 0 5px; float:left;} + +.reg_findPassword li .reg_error{ width:214px; padding:0 10px; border:1px solid #fda37f; background:#fff4ef; color:#ff4800; margin-left:10px;} +.reg_findPassword li .reg_error1{ width:214px; line-height:30px; padding:0 10px; margin-left:10px; color:#666;} +.reg_findPassword li .regCodeInput{ float:left; padding:0 5px; width:58px; height:30px; line-height:30px;} +.reg_findPassword li .reg_next, .reg_findPassword li .reg_emailOk{display:block; margin-left:118px; height:25px; line-height:25px; text-align:center; color:#fff;} +.reg_findPassword li .reg_next, .reg_con .content .conB a{ width:76px; background:url(/images/btn.jpg) left top no-repeat;} +.reg_findPassword li .reg_next:hover, .reg_con .content .conB a:hover{ background-position:0 -25px;} +.reg_findPassword li .reg_emailOk{ width:102px; background:url(/images/btn1.jpg) left top no-repeat;} +.reg_findPassword li .reg_emailOk:hover{ background-position:0 -26px;} +.reg_findPassword li .phoneFind, .reg_findPassword li .emailFind{margin:0 10px; width:122px; height:35px; padding-top:23px; color:#6e9b0c; font-size:14px; padding-left:50px;} +.reg_findPassword li .emailFind:hover, .reg_findPassword li .phoneIcon1:hover{ width:120px; border:1px solid #dadada;} +.reg_findPassword li .phoneIcon{ background:url(/images/icon6.png) 18px center no-repeat; border:1px solid #e1e1e1;} +.reg_findPassword li .phoneIcon1{ cursor:pointer; background:#ededed url(/images/icon6.png) 18px center no-repeat;} +.reg_findPassword li .emailIcon{ background:url(/images/icon5.png) 18px center no-repeat;} +.reg_findPassword li .emailIcon1{ background:url(/images/icon5.png) 18px center no-repeat; border:1px solid #e1e1e1;} +.reg_findPassword li .emailFind{ cursor:pointer; background:#ededed url(/images/icon5.png) 18px center no-repeat;} +.reg_findPassword li .verificationPhone, .reg_findPassword li .verificationCode, .reg_findPassword li .phoneNo{ line-height:32px; float:left; font-size:14px;} +.reg_findPassword li .verificationPhone, .reg_findPassword li .verificationCode{ width:92px; line-height:32px; color:#515151; float:left;} +.reg_findPassword li .phoneNo{ width:105px; font-size:16px; font-family:"微软雅黑"; color:#6e9b0c; font-weight:bold;} +.reg_findPassword li .gvCode, .reg_findPassword li .gvCodeNo, .reg_form .gvCodeNo, .login_reg_box li .gvCodeNo{ margin-left:10px; border:none; outline:none; text-align:center;} +.reg_findPassword li .gvCode{ cursor:pointer; width:121px; height:32px; background:url(/images/btn3.jpg) left top no-repeat; color:#666;} +.reg_findPassword li .gvCode:hover{ color:#6e9b0c;} +.reg_findPassword li .gvCodeNo, .reg_form .gvCodeNo{ width:119px; height:30px; border:none; outline:none; border:1px solid #e9e9e9; background: #fff; color:#999;} + +.reg_findPassword li .verificationInput{ width:60px; height:30px; line-height:30px; border:1px solid #cdcdcd; padding:0 5px;} +.reg_findPassword li .codeTitleN{ display:block; padding-left:94px; height:20px; line-height:20px; color:#515151;} +.reg_findPassword .reg_email1{ width:460px; margin:0 auto; min-height:160px;} +.reg_findPassword .reg_iconOk{ float:left; width:52px; height:52px; background:url(/images/icon3.jpg) left top no-repeat;} +.reg_findPassword .reg_iconOk2{ float:left; width:52px; height:52px; background:url(/images/icon7.jpg) left top no-repeat;} +.reg_findPassword .reg_iconOk1{ float:left; width:100px; height:75px; background:url(/images/pic3.jpg) left top no-repeat;} +.reg_findPassword .reg_email1_con{ margin-left:52px; width:auto;} +.reg_findPassword .reg_email1_con1{ margin-left:100px; width:auto;} +.reg_email1_con span, .reg_email1_con1 span{ display:block; line-height:34px; padding-left:8px; color:#515151; font-size:14px;} +.reg_email1_con span font.emailColor, .reg_email1_con1 span font.emailColor{ color:#6e9b0c; font-size:16px; font-weight:bold; font-family:"微软雅黑";} +.reg_email1_con span a.sendAgain, .reg_email1_con1 span a.sendAgain{ color:#6e9b0c;} +.reg_email1_con span a.sendAgain:hover, .reg_email1_con1 span a.sendAgain:hover{ text-decoration:underline;} +.reg_email1_con span .sendAgain{ margin-top:-5px; border:none; outline:none; cursor:pointer; background:#fff; color:#6e9b0c; font-size:14px;} +.reg_email1_con span .sendAgain:hover{ text-decoration:underline;} +.reg_email1_con span a.loginEmail, .reg_email1_con span.loginEmail, .reg_email1_con1 span a.loginEmail, .reg_email1_con1 span.loginEmail{ cursor:pointer; display:block; background:url(/images/btn.jpg) left top no-repeat; width:76px; height:25px; line-height:25px; font-size:12px; color:#fff; text-align:center;} +.reg_email1_con span a.loginEmail:hover, .reg_email1_con span.loginEmail:hover, .reg_email1_con1 span a.loginEmail:hover, .reg_email1_con1 span.loginEmail:hover{ background-position:0 -25px;} +.reg_findPassword .reg_email2{ width:220px; margin:100px auto 0 auto; padding:0 0 0 35px; height:25px; line-height:25px; background:url(/images/icon8.png) no-repeat; font-size:14px;} +.reg_findPassword .reg_login{ margin:50px auto 0 auto; width:202px;} +.reg_findPassword .reg_login a{ cursor:pointer; width:202px; height:40px; line-height:36px; display:block; background:#6e9b0c; border-radius:5px; color:#fff; text-align:center; font-size:18px; font-weight:bold;} +.reg_main .sf_ad{width:322px; height:322px; background:#ccc; float:left; margin:10px 0 0 10px; text-align:center;} + +.regPl88{ padding-left:88px;} +.regPl191{ padding-left:191px;} +.regPl202{ padding-left:202px;} +.regPl260{ padding-left:240px;} +.regPl90{ padding-left:90px;} +.regPl52{ padding-left:52px;} +.regMt{ margin-top:5px;} +.regMt8{ margin-top:8px;} +.regMt10{ margin-top:10px;} +.regMt12{ margin-top:3px;} +.regMt18{ margin-top:18px;} +.regMt22{ margin-top:22px;} +.regMt30{ margin-top:30px;} +.regMl6{ margin-left:6px;} +.regMl10{ margin-left:10px;} +.regMr5{ margin-right:5px;} +.regMb5{ margin-bottom:5px;} +.regMb10{ margin-bottom:10px;} +.regMb15{ margin-bottom:15px;} +.regMb18{ margin-bottom:18px;} +.regMb30{ margin-bottom:30px;} +.ui-reg-tip{padding:15px 10px 10px 45px;border-top:1px dotted #dcdcdc;position:relative;left:-30px;width:930px;background:url(/images/reg_tip.png) no-repeat 25px 16px;} +.ui-reg-tip a:link,.ui-reg-tip a:visited,.ui-reg-tip a:hover{color:#669900;} + + +/*推荐有奖相关css*/ +.recommend{ width:400px; margin:0 auto;} +.ptb{ padding-top:68px; padding-bottom:60px;} +.recomm-bg{ position:relative; background:url(/images/recommend8.jpg) top left no-repeat; width:188px; height:159px; margin:0 auto;} +.recomm-bg em{ height:38px; line-height:38px; font-family:microsoft yahei; font-size:36px; color:#fff; display:inline-block; margin:34px 45px;} +.recomm-bg .ylq-img{ position:absolute; right:-15px; bottom:-8px} +.recomm-style{ text-align:center;} +.recomm-style span, .recomm-style a{ display:block;} +.recomm-style .sty1{ padding-top:16px; font-size:14px; color:#636363;} +.recomm-style .sty1 em{ color:#6aaf06;} +.recomm-style .sty2{ padding-top:13px; padding-bottom:46px; font-size:12px; color:#666;} +.recomm-style .sty3{ width:252px; height:44px; line-height:44px; margin:0 auto; background:#6aaf06; border-radius:3px; color:#fff; text-align:center; font-size:14px; font-weight:bold; letter-spacing:0.2em;} +.recomm-style .sty4{ padding-top:6px; font-size:14px; color:#636363;} +.recomm-style .mtop{ margin-top:20px;} +.recomm-style .mtop1{ margin-top:50px;} + + +/*推荐弹层*/ +.oDialog {border: 1px solid #ddd; position: fixed; z-index: 99998; color: #646464;} +.sh_tj_w{ background:#fff; width:280px; min-height:60px; border-radius:3px; border:1px solid #d7d7d7;} +.sh_tj_w .ui-tjworld{ padding:20px; text-align:center; font-size:12px; line-height:18px;} +.sh_tj_w .ui-tjbtnBox{ margin:0 auto; width:60px; margin-bottom:20px;} +.sh_tj_w .ui-tjbtn{ width:60px; height:25px; background:#69af05; border-radius:2px; outline:none; border:none; color:#fff; text-align:center; margin:0 auto; cursor:pointer;} +.window_bg{ width: 100%; height: 100%; position: absolute; z-index: 99997; left:0; top:0; background: #646464; opacity: 0.5; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);} + +/*reg 跳转*/ +.tzBox{ width:490px; margin:0 auto;} +.tzTips{ position:relative; background:url(/images/tz_tips.jpg) top left no-repeat; width:87px; height:77px; margin:0 auto;} +.recomm-style .sty5{ padding-top:16px; height:128px; line-height:42px; font-family:"微软雅黑"; font-size:18px; color:#000;} +.recomm-style .sty6{ color:#729a21; padding-top:20px;} +.recomm-style .sty6:hover{ text-decoration:underline;} diff --git a/e3-sso-web/src/main/resources/static/images/06f42c372620f92b40da77a8b23cdf7f.png b/e3-sso-web/src/main/resources/static/images/06f42c372620f92b40da77a8b23cdf7f.png new file mode 100644 index 0000000..25e01b2 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/06f42c372620f92b40da77a8b23cdf7f.png differ diff --git a/e3-sso-web/src/main/resources/static/images/btn.jpg b/e3-sso-web/src/main/resources/static/images/btn.jpg new file mode 100644 index 0000000..5de17cb Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/btn.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/btn1.jpg b/e3-sso-web/src/main/resources/static/images/btn1.jpg new file mode 100644 index 0000000..f8540aa Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/btn1.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/btn2.jpg b/e3-sso-web/src/main/resources/static/images/btn2.jpg new file mode 100644 index 0000000..1a80e5a Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/btn2.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/btn3.jpg b/e3-sso-web/src/main/resources/static/images/btn3.jpg new file mode 100644 index 0000000..6cf5b5d Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/btn3.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/btn4.jpg b/e3-sso-web/src/main/resources/static/images/btn4.jpg new file mode 100644 index 0000000..d52677a Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/btn4.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/caplock.png b/e3-sso-web/src/main/resources/static/images/caplock.png new file mode 100644 index 0000000..af6221a Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/caplock.png differ diff --git a/e3-sso-web/src/main/resources/static/images/close.jpg b/e3-sso-web/src/main/resources/static/images/close.jpg new file mode 100644 index 0000000..2447108 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/close.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/find.jpg b/e3-sso-web/src/main/resources/static/images/find.jpg new file mode 100644 index 0000000..cf95acb Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/find.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/icon.jpg b/e3-sso-web/src/main/resources/static/images/icon.jpg new file mode 100644 index 0000000..3cbafd9 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/icon1.jpg b/e3-sso-web/src/main/resources/static/images/icon1.jpg new file mode 100644 index 0000000..052f69c Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon1.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/icon2.jpg b/e3-sso-web/src/main/resources/static/images/icon2.jpg new file mode 100644 index 0000000..a72c1d7 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon2.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/icon3.jpg b/e3-sso-web/src/main/resources/static/images/icon3.jpg new file mode 100644 index 0000000..87b9be7 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon3.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/icon4.jpg b/e3-sso-web/src/main/resources/static/images/icon4.jpg new file mode 100644 index 0000000..afe8b35 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon4.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/icon5.png b/e3-sso-web/src/main/resources/static/images/icon5.png new file mode 100644 index 0000000..831df0d Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon5.png differ diff --git a/e3-sso-web/src/main/resources/static/images/icon6.png b/e3-sso-web/src/main/resources/static/images/icon6.png new file mode 100644 index 0000000..2f26295 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon6.png differ diff --git a/e3-sso-web/src/main/resources/static/images/icon7.jpg b/e3-sso-web/src/main/resources/static/images/icon7.jpg new file mode 100644 index 0000000..bd9f0d9 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon7.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/icon8.png b/e3-sso-web/src/main/resources/static/images/icon8.png new file mode 100644 index 0000000..93a6c2d Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/icon8.png differ diff --git a/e3-sso-web/src/main/resources/static/images/login_bg.jpg b/e3-sso-web/src/main/resources/static/images/login_bg.jpg new file mode 100644 index 0000000..bc44038 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/login_bg.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/login_bg1.jpg b/e3-sso-web/src/main/resources/static/images/login_bg1.jpg new file mode 100644 index 0000000..2f79a99 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/login_bg1.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/login_bottom.jpg b/e3-sso-web/src/main/resources/static/images/login_bottom.jpg new file mode 100644 index 0000000..a1009c2 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/login_bottom.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/login_main.jpg b/e3-sso-web/src/main/resources/static/images/login_main.jpg new file mode 100644 index 0000000..5642460 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/login_main.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/login_top.jpg b/e3-sso-web/src/main/resources/static/images/login_top.jpg new file mode 100644 index 0000000..3b16447 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/login_top.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/loginbg.jpg b/e3-sso-web/src/main/resources/static/images/loginbg.jpg new file mode 100644 index 0000000..a2f17ef Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/loginbg.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/loginicon.png b/e3-sso-web/src/main/resources/static/images/loginicon.png new file mode 100644 index 0000000..9f72c77 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/loginicon.png differ diff --git a/e3-sso-web/src/main/resources/static/images/loginregbg.jpg b/e3-sso-web/src/main/resources/static/images/loginregbg.jpg new file mode 100644 index 0000000..123b621 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/loginregbg.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/loginregbg1.jpg b/e3-sso-web/src/main/resources/static/images/loginregbg1.jpg new file mode 100644 index 0000000..da31d70 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/loginregbg1.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/logo.png b/e3-sso-web/src/main/resources/static/images/logo.png new file mode 100644 index 0000000..00cc861 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/logo.png differ diff --git a/e3-sso-web/src/main/resources/static/images/pic2.jpg b/e3-sso-web/src/main/resources/static/images/pic2.jpg new file mode 100644 index 0000000..7cdb468 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/pic2.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/pic3.jpg b/e3-sso-web/src/main/resources/static/images/pic3.jpg new file mode 100644 index 0000000..4f5f55b Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/pic3.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/recommend8.jpg b/e3-sso-web/src/main/resources/static/images/recommend8.jpg new file mode 100644 index 0000000..420529d Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/recommend8.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/reg_btn.jpg b/e3-sso-web/src/main/resources/static/images/reg_btn.jpg new file mode 100644 index 0000000..e25763a Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/reg_btn.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/reg_tip.png b/e3-sso-web/src/main/resources/static/images/reg_tip.png new file mode 100644 index 0000000..76bb32c Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/reg_tip.png differ diff --git a/e3-sso-web/src/main/resources/static/images/tabbg.jpg b/e3-sso-web/src/main/resources/static/images/tabbg.jpg new file mode 100644 index 0000000..d313b22 Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/tabbg.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/tabbg1.jpg b/e3-sso-web/src/main/resources/static/images/tabbg1.jpg new file mode 100644 index 0000000..1ec0d0d Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/tabbg1.jpg differ diff --git a/e3-sso-web/src/main/resources/static/images/tz_tips.jpg b/e3-sso-web/src/main/resources/static/images/tz_tips.jpg new file mode 100644 index 0000000..4a47aaa Binary files /dev/null and b/e3-sso-web/src/main/resources/static/images/tz_tips.jpg differ diff --git a/e3-sso-web/src/main/resources/static/js/allMail.js b/e3-sso-web/src/main/resources/static/js/allMail.js new file mode 100644 index 0000000..f3b6ddd --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/allMail.js @@ -0,0 +1,298 @@ +/* + Author zhaoyinfan + 2013-08-09 + 注册公用js库 +*/ +var timeout = 120; +var ctDown = function (id) { + --timeout; + if(timeout > 0) { + $("#"+id).attr("value",timeout+"秒后重新获取").removeClass("gvCode").addClass("gvCodeNo").attr("disabled", true); + setTimeout("ctDown('"+id+"');", 1000); + } else{ + $("#"+id).attr("value","点击获取验证码").attr("disabled", false).removeClass("gvCodeNo").addClass("gvCode").next().html(''); + timeout = 120; + } +} +var timeoutajax = 120; +var ctAjaxDown = function (id) { + --timeoutajax; + if(timeoutajax > 0) { + $("#"+id).attr("value",timeoutajax+"秒后重新获取").removeClass("reg_gvCode").addClass("reg_gvCodeNo").attr("disabled", true); + setTimeout("ctAjaxDown('"+id+"');", 1000); + } else{ + $("#"+id).attr("value","点击获取验证码").attr("disabled", false).removeClass("reg_gvCodeNo").addClass("reg_gvCode").next().html(''); + timeoutajax = 120; + } +} +//check telphone +var tel_preg =function(tel){ + var preg=/^0[1-9][0-9]{1,2}-[0-9]{7,8}$/ ; + var string = $.trim(tel); + if(preg.test(string)){ + return 1; + } + return false; +} +//check mobile +var mobile_preg = function(mobile){ + var mob_preg = /^1[3|4|5|7|8][0-9]{9}$/; + var string = $.trim(mobile); + if(mob_preg.test(string)){ + return 1; + } + return false; +} +//check mail +var mail_preg = function(mail){ + if(mail.length>80){ + return false; + } + + var ma_preg = /^\w+([-+.\']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; + var string = $.trim(mail); + if(ma_preg.test(string)){ + return 1; + } + return false; +} +//去掉中间的空格 +function clsTrim(str){ + return str.replace(/\s/g,""); +} +var url_preg =function(url){ + if( url.length>70){ + return false; + } + var u_preg = /^[a-zA-z]+:\/\/[^\s]*$/; + var string =$.trim(url); + if(u_preg.test(string)){ + return 1; + } + return false; +} +var GetLen = function(str) { + var realLength = 0, len = str.length, charCode = -1; + for (var i = 0; i < len; i++) { + charCode = str.charCodeAt(i); + if (charCode >= 0 && charCode <= 128) realLength += 1; + else realLength += 2; + } + return realLength; +}; +var lenpoints = function(pwd) { + if (pwd.length <6||pwd.length >20) { + return 0; + }; + if (pwd.length >= 6 && pwd.length <= 7) { + return 10; + }; + if (pwd.length >= 8) { + return 25; + }; + return 0; +}; +var pwdTotal = function(pwd) { + if (!pwd || pwd == 'undefined') { + return - 1; + }; + if(lenpoints(pwd)==0){ + return 0; + } + var digit01 = /^[0-9]+$/; + var digit10 = /[0-9]+/; + var digit02 = /^[a-z]+$/; + var digit20 = /[a-z]+/; + var digit03 = /^[A-Z]+$/; + var digit30 = /[A-Z]+/; + var digitStr = /[a-zA-Z]/; + var digitOther = /[_]+/; + var safeStr =/^[0-9a-zA-z_]+$/; + var totalPoints =0; + if(!safeStr.test(pwd)){ + return -1; + } + + if (digit20.test(pwd) && digit30.test(pwd)) { + totalPoints += 20; + }; + var pwd_num = 0; + var t_num = 0; + var pwd_mi=0; + var pwd_max=0; + for (var i = 0; i <= pwd.length; i++) { + if (digit01.test(pwd.substr(i, 1))) { + pwd_num++; + } + if (digitOther.test(pwd.substr(i, 1))) { + t_num++; + } + if (digit02.test(pwd.substr(i, 1))) { + pwd_mi ++; + } + if (digit03.test(pwd.substr(i, 1))) { + pwd_max ++; + } + }; + if(pwd_mi&&!pwd_max){ + totalPoints += 10; + } + if(!pwd_mi&&pwd_max){ + totalPoints += 10; + } + if (pwd_num >= 1 && pwd_num < 3) { + totalPoints += 10; + }; + if (pwd_num >= 3) { + totalPoints += 20; + }; + if (t_num == 1) { + totalPoints += 10; + }; + if (t_num > 1) { + totalPoints += 25; + }; + if (digit20.test(pwd) && digit30.test(pwd) && digit10.test(pwd) && digitOther.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 20; + } + if (digitStr.test(pwd) && digit10.test(pwd) && digitOther.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 3; + }; + if (digitStr.test(pwd) && digit10.test(pwd)) { + totalPoints+=lenpoints(pwd); + return totalPoints += 2; + }; + if(totalPoints==0){ + return -1; + } + totalPoints+=lenpoints(pwd); + return totalPoints; +} +/*-----------------个人注册数据------------------*/ +var MailMId = "userMam"; +var MailMErrId= "userMamErr"; +var PwdId = "password"; +var PwdErrId = "passwordErr"; +var pwdStrong = "pwdStrong"; +var PwdId2 = "password2"; +var PwdErrId2 = "password2Err"; +var pageCodeId ="auth_code"; +var pageCodeErrId ="auth_codeErr"; +var codeimgid = "code_img1"; +var MobileCodeId ="sms_code"; +var MobileCodeErrId="sms_codeErr"; +var sfCodeId ="dm_number"; +var sfCodeErrId ="dm_numberErr"; +var AgreementId ="AgreeId"; +var AgreementErrId="AgreeIdErr"; +var defaultArr =[],OkArr=[],memArr =[],pwdArr=[],pwd2Arr=[],mcodeArr = [],codeArr=[],dmArr=[],agreeArr=[]; +OkArr[0]= '通过信息验证!'; +memArr[0] = '请输入您的手机号码'; +memArr[1] = '请输入正确的手机号码'; +memArr[2] = '请输入正确的邮箱地址'; +pwdArr[0] = '请输入登录密码'; +pwdArr[1] ='密码只能为6-20位字母数字下划线组合'; +pwdArr[2] ='密码太简单,建议使用数字、字母、下划线组合'; +pwdArr[3] ='密码只能为6-20位字母数字下划线组合'; +pwd2Arr[0] = '请再次输入密码'; +pwd2Arr[1] ='两次输入不一致,请重新输入'; +mcodeArr[0]='请输入短信验证码'; +mcodeArr[1]='短信验证码不正确'; +codeArr[0] = '请输入验证码'; +codeArr[1] ='网站验证码不正确'; +dmArr[0] ='邀请码错误'; +agreeArr[0] ='请阅读并同意注册协议'; +defaultArr[1] ='请输入您的手机号码'; +defaultArr[2] ='6-20位字符,可使用字母、数字、下划线。不建议使用纯数字或字母组合。'; +defaultArr[3] ='请再次输入密码'; +defaultArr[4] ='请输入短信验证码'; +defaultArr[5] ='请输入验证码'; +defaultArr[6] ='请输入您的优选单邀请码'; +defaultArr[7] =''; +defaultArr[8] ='请输入您的用户名。可使用字母、数字、下划线。'; +defaultArr[9] ='此手机号已经被注册!'; +defaultArr[10] ='此手用户名已经被注册!请重新输入。'; +/*--------------------------------------------------企业注册数据---------------------------------------------------------*/ +var cpyUserNameId = "cpyusername"; +var cpyUserNameErrId= "cpyusernameErr"; +var cpyPwdId = "cpypwd"; +var cpyPwdIdErrId = "cpypwdErr"; +var cpyPwd2Id = "cpypwd2"; +var cpyPwd2ErrId = "cpypwd2Err"; +var cpyCodeId = "cpyauth_code"; +var cpyCodeErrId = "cpyauth_codeErr"; +var cpyCodeImgId = "cpycode_img"; +var cpyRealNameId = "cpyrealname"; +var cpyRealNameErrId= "cpyrealnameErr"; +var cpyTelphoneId = "cpytelphone"; +var cpyTelphoneErrId = "cpytelphoneErr"; +var cpyMobileId = "cpymobile"; +var cpyMobileErrId = "cpymobileErr"; +var cpyEmailId = "cpyemail"; +var cpyEmailErrId = "cpyemailErr"; +var cpySectionId = "cpysection"; +var cpySectionErrId = "cpysectionErr"; +var cpyNameId = "cpyname"; +var cpyNameErrId = "cpynameErr"; +var cpyProvinceId = "cpyprovince"; +var cpyCitiesId = "cpycities"; +var cpyAddressId = "cpyaddress"; +var cpyAddressErrId = "cpyaddressErr"; +var cpyBuyuseId = "cpybuyuse"; +var cpyBuyuseErrId = "cpybuyuseErr"; +var cpyWebsiteId = "cpywebsite"; +var cpyWebsiteErrId = "cpywebsiteErr"; +var cpyScaleId = "cpyscale"; +var cpyScaleErrId = "cpyscaleErr"; +var cpyTradeId = "cpytrade"; +var cpyTradeErrId = "cpytradeErr"; +var cpyNatureId = "cpynature"; +var cpyNatureErrId = "cpynatureErr"; +var cpyAgreeId = "cpyagree"; +var cpyAgreeErrId = "cpyagreeErr"; + +var comArr=[],cpyDefaultArr=[], cpyUserNameArr =[],cpyPwdArr=[],cpyPwd2Arr=[],cpyCodeArr= [],cpyRealNameArr=[],cpyTelArr=[],cpyMobArr=[],cpyMaArr=[],cpyNameArr=[],cpyAddressArr=[],cpyBuyuseArr=[],cpyWebsiteArr=[],cpyAgreeArr=[]; + +cpyUserNameArr[0] ='请输入用户名'; +cpyUserNameArr[1] ='用户名不能以SF开头'; +cpyUserNameArr[2] ='用户名不能全部为数字'; +cpyUserNameArr[3] ='用户名长度不得小于4大于20个字符'; +cpyUserNameArr[4] ='用户名不能以tmall开头'; +cpyUserNameArr[5] ='用户名不能以jd开头'; +cpyPwdArr[0] ='请输入登录密码'; +cpyPwdArr[1] ='密码长度需在6-20位之间'; +cpyPwdArr[2] ='密码只能为6-20位字母数字下划线组合'; +cpyPwd2Arr[0] ='请再次输入密码'; +cpyPwd2Arr[1] ='两次输入密码不一致'; +cpyCodeArr[0] ='请输入验证码'; +cpyCodeArr[1] ='验证码不正确'; +cpyRealNameArr[0] ='请输入联系人姓名'; +cpyRealNameArr[1] ='联系人姓名长度应在4-20位之间'; +cpyRealNameArr[2] ='联系人姓名只能由英文和中文组成'; +cpyTelArr[0] ='公司电话不能为空'; +cpyTelArr[1] ='公司电话错误'; +cpyMobArr[0] ='公司手机号码错误'; +cpyMaArr[0] ='公司邮箱地址错误'; +cpyNameArr[0] ='请输入公司名称'; +cpyNameArr[1] ='公司名称长度应在4-40位之间'; +cpyAddressArr[0] ='请选择公司所在地'; +cpyAddressArr[1] ='请选择公司所在地'; +cpyAddressArr[2] ='请输入公司地址'; +cpyAddressArr[3] ='公司地址长度应在4-50位之间'; +cpyBuyuseArr[0] ='请选择购买用途'; +cpyWebsiteArr[0] ='公司网址格式不正确,应如: http://www.e3mall.cn/'; +cpyAgreeArr[0] ='请勾选注册协议'; +cpyDefaultArr[0] ='请输入4-20位中、英文、数字、中划线和下划线'; +cpyDefaultArr[1] ='6-20位字符,可使用字母、数字、下划线。不建议使用纯数字或字母组合。'; +cpyDefaultArr[2] ='请再次输入密码'; +cpyDefaultArr[3] ='请输入网站验证码'; +cpyDefaultArr[4] ='4-20位字符,可由中文和英文组成'; +cpyDefaultArr[5] ='请填写联系人常用固话,如010-87654312'; +cpyDefaultArr[6] ='请输入联系人手机号码'; +cpyDefaultArr[7] ='请输入联系人常用邮箱'; +cpyDefaultArr[8] ='请填写工商局注册全称,4-40位字符'; +cpyDefaultArr[9] ='请详细填写公司经营地址'; +cpyDefaultArr[10] ='如http://www.e3mall.cn/'; +comArr[0] ='系统繁忙,请稍候重试'; \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/js/capsLock.js b/e3-sso-web/src/main/resources/static/js/capsLock.js new file mode 100644 index 0000000..ebe067b --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/capsLock.js @@ -0,0 +1,85 @@ +//=============== 大写锁定键打开提示 ============================================// +(function ($) { + $.fn.extend({ + capsLockTip: function () { + return this.each(function () { + //创建对象实例并保存。 + //获取实例对象:var api = $("#txtPWD").data("txtPWD"); + var ins = new $.CapsLockTip($(this)); + $(this).data(this.id, ins); + }); + } + }); + + + //创建一个实例。 + //___target jq目标对象。 + //___divTipID 显示提示文本的div。 + $.CapsLockTip = function (___target) { + //设置当前实例的配置参数。 + this.target = ___target; + var _this = this; + + $(document).ready(function () { + _this.target.bind("keypress", function (_event) { + var e = _event || window.event; + var kc = e.keyCode || e.which; + var isShift = e.shiftKey || (kc == 16) || false; + $.fn.capsLockTip.capsLockActived = false; + if ((kc >= 65 && kc <= 90 && !isShift) || (kc >= 97 && kc <= 122 && isShift)) + $.fn.capsLockTip.capsLockActived = true; + _this.showTips($.fn.capsLockTip.capsLockActived); + }); + + _this.target.bind("keydown", function (_event) { + var e = _event || window.event; + var kc = e.keyCode || e.which; + if (kc == 20 && null != $.fn.capsLockTip.capsLockActived){ + $.fn.capsLockTip.capsLockActived = !$.fn.capsLockTip.capsLockActived; + _this.showTips($.fn.capsLockTip.capsLockActived); + } + }); + + _this.target.bind("focus", function (_event) { + if (null != $.fn.capsLockTip.capsLockActived) + _this.showTips($.fn.capsLockTip.capsLockActived); + }); + + _this.target.bind("blur", function (_event) { + _this.showTips(false); + }); + }); + + //创建显示大写锁定的div。 + this.createTooltip = function(){ + if(null != $.fn.capsLockTip.divTip) + return $.fn.capsLockTip.divTip; + + $("body").append("
          "); + $.fn.capsLockTip.divTip = $("#divTip_985"); + + return $.fn.capsLockTip.divTip; + }; + + //显示或隐藏大写锁定提示。 + this.showTips = function (display) { + var divTip = _this.createTooltip(); + if (display) { + var offset = _this.target.offset(); + divTip.css("left", offset.left + "px"); + divTip.css("top", offset.top + _this.target[0].offsetHeight + 3 + "px"); + divTip.show(); + } + else { + divTip.hide(); + } + }; + + //jq控件公用静态对象。 + + //提示框。 + $.fn.capsLockTip.divTip = null; + //大写锁定键状态 + $.fn.capsLockTip.capsLockActived = null; + }; +})(jQuery); \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/js/cas.login.js b/e3-sso-web/src/main/resources/static/js/cas.login.js new file mode 100644 index 0000000..969ba78 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/cas.login.js @@ -0,0 +1,36 @@ +var uname; + +function getUserName(loginName){ + uname = $("#fm1 input[name='username']"); + $.ajax({ + url:'https://passport.e3mall.cn/ajax/Ydajax?nickname='+loginName, + dataType : "jsonp",//数据类型为jsonp + async : false, + jsonp:"callback", + success: function(data){ + uname.val(data.username); + document.getElementById('fm1').submit(); + }, + error:function(){ + document.getElementById('fm1').submit(); + + } + }); + } +function getExpUserName(loginName){ + uname = $("#fm3 input[name='username']"); + $.ajax({ + url:'https://i.sf-express.com/service/cas/jsonp/getMemNoByLoginName?nickname='+loginName, + dataType : "jsonp",//数据类型为jsonp + async : false, + jsonp:"callback", + success: function(data){ + uname.val(data.username); + document.getElementById('fm3').submit(); + }, + error:function(){ + document.getElementById('fm3').submit(); + + } + }); + } \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/js/jquery-1.5.1.min.js b/e3-sso-web/src/main/resources/static/js/jquery-1.5.1.min.js new file mode 100644 index 0000000..6437874 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/jquery-1.5.1.min.js @@ -0,0 +1,16 @@ +/*! + * jQuery JavaScript Library v1.5.1 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Wed Feb 23 13:55:29 2011 -0500 + */ +(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="
          a";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
          ",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
          t
          ";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

          ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="
          ";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/",""],legend:[1,"
          ","
          "],thead:[1,"","
          "],tr:[2,"","
          "],td:[3,"","
          "],col:[2,"","
          "],area:[1,"",""],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div
          ","
          "]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^&]*/,bD=/(^|\-)([a-z])/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("
          ").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e.crossDomain||(q=bF.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b
          ";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window); \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/js/jquery.alerts.js b/e3-sso-web/src/main/resources/static/js/jquery.alerts.js new file mode 100644 index 0000000..27b2e23 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/jquery.alerts.js @@ -0,0 +1,289 @@ +// jQuery Alert Dialogs Plugin +// +// Version 1.1 +// +// Cory S.N. LaViska +// A Beautiful Site (http://abeautifulsite.net/) +// 14 May 2009 +// +// Visit http://abeautifulsite.net/notebook/87 for more information +// +// Usage: +// jAlert( message, [title, callback] ) +// jConfirm( message, [title, callback] ) +// jPrompt( message, [value, title, callback] ) +// +// History: +// +// 1.00 - Released (29 December 2008) +// +// 1.01 - Fixed bug where unbinding would destroy all resize events +// +// License: +// +// This plugin is dual-licensed under the GNU General Public License and the MIT License and +// is copyright 2008 A Beautiful Site, LLC. +// +(function($) { + /* + * 遮罩层 + */ + var Shade=new function() + { + var handle={}; + var shade; + handle.show=function(func) + { + if(!shade) + { + shade=document.createElement('div'); + shade.style.display = 'none'; + shade.style.zIndex = 99997; + shade.style.filter = 'alpha(opacity = 20)'; + shade.style.left = 0; + shade.style.width = '100%'; + shade.style.position = 'absolute'; + shade.style.top = 0; + shade.style.backgroundColor = '#89652b'; + shade.style.opacity = .2; + document.body.appendChild(shade); + } + with((document.compatMode=='CSS1Compat')?document.documentElement:document.body) + { + var ch=clientHeight,sh=scrollHeight; + shade.style.height=(sh>ch?sh:ch)+'px'; + + var cw = clientWidth,sw = scrollWidth, ow=offsetWidth; + var width = cw > sw ? cw : sw; + width = width > ow ? width : ow; + + shade.style.width=width+'px'; + shade.style.display='block'; + } + + if(func){ + func(); + } + }; + handle.hide=function(func){ + shade.style.display='none'; + if(func){ + func(); + } + }; + + return handle; + } + + $.alerts = { + + // These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time + + verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels + horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/ + repositionOnResize: true, // re-centers the dialog on window resize + overlayOpacity: .01, // transparency level of overlay + overlayColor: '#89652b', // base color of overlay + draggable: true, // make the dialogs draggable (requires UI Draggables plugin) + okButton: ' 确定 ', // text for the OK button + cancelButton: ' 取消 ', // text for the Cancel button + dialogClass: null, // if specified, this class will be applied to all dialogs + + // Public methods + + alert: function(message, title, callback) { + if( title == null ) title = '提示信息'; + $.alerts._show(title, message, null, 'alert', function(result) { + if( callback ) callback(result); + }); + }, + + confirm: function(message, title, callback) { + if( title == null ) title = '确认信息'; + $.alerts._show(title, message, null, 'confirm', function(result) { + if( callback ) callback(result); + }); + }, + + prompt: function(message, value, title, callback) { + if( title == null ) title = '输入信息'; + $.alerts._show(title, message, value, 'prompt', function(result) { + if( callback ) callback(result); + }); + }, + + // Private methods + + _show: function(title, msg, value, type, callback) { + Shade.show(); + $.alerts._hide(); + $.alerts._overlay('show'); + + $("BODY").append( + ''); + + if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass); + + // IE6 Fix + var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed'; + + $("#popup_container").css({ + position: pos, + zIndex: 99999, + padding: 0, + margin: 0 + }); + + $("#popup_title").text(title); + $("#popup_content").addClass(type); + $("#popup_message").text(msg); + $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '
          ') ); + + $("#popup_container").css({ + minWidth: $("#popup_container").outerWidth(), + maxWidth: $("#popup_container").outerWidth() + }); + + $.alerts._reposition(); + $.alerts._maintainPosition(true); + + switch( type ) { + case 'alert': + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + callback(true); + }); + $("#popup_ok").focus().keypress( function(e) { + if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click'); + }); + break; + case 'confirm': + $("#popup_message").after(''); + $("#popup_ok").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(true); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback(false); + }); + $("#popup_ok").focus(); + $("#popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + break; + case 'prompt': + $("#popup_message").append('
          ').after(''); + $("#popup_prompt").width( $("#popup_message").width() ); + $("#popup_ok").click( function() { + var val = $("#popup_prompt").val(); + $.alerts._hide(); + Shade.hide(); + if( callback ) callback( val ); + }); + $("#popup_cancel").click( function() { + $.alerts._hide(); + Shade.hide(); + if( callback ) callback( null ); + }); + $("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) { + if( e.keyCode == 13 ) $("#popup_ok").trigger('click'); + if( e.keyCode == 27 ) $("#popup_cancel").trigger('click'); + }); + if( value ) $("#popup_prompt").val(value); + $("#popup_prompt").focus().select(); + break; + } + + // Make draggable + if( $.alerts.draggable ) { + try { + $("#popup_container").draggable({ handle: $("#popup_title") }); + $("#popup_title").css({ cursor: 'move' }); + } catch(e) { /* requires jQuery UI draggables */ } + } + }, + + _hide: function() { + $("#popup_container").remove(); + $.alerts._overlay('hide'); + $.alerts._maintainPosition(false); + }, + + _overlay: function(status) { + switch( status ) { + case 'show': + $.alerts._overlay('hide'); + $("BODY").append(''); + $("#popup_overlay").css({ + position: 'absolute', + zIndex: 99998, + top: '0px', + left: '0px', + width: '100%', + height: $(document).height(), + background: $.alerts.overlayColor, + opacity: $.alerts.overlayOpacity + }); + break; + case 'hide': + $("#popup_overlay").remove(); + break; + } + }, + + _reposition: function() { + var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset; + var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset; + if( top < 0 ) top = 0; + if( left < 0 ) left = 0; + + // IE6 fix + if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop(); + + $("#popup_container").css({ + top: top + 'px', + left: left + 'px' + }); + $("#popup_overlay").height( $(document).height() ); + }, + + _maintainPosition: function(status) { + if( $.alerts.repositionOnResize ) { + switch(status) { + case true: + $(window).bind('resize', $.alerts._reposition); + break; + case false: + $(window).unbind('resize', $.alerts._reposition); + break; + } + } + } + + } + + // Shortuct functions + jAlert = function(message, title, callback) { + $.alerts.alert(message, title, callback); + } + + jConfirm = function(message, title, callback) { + $.alerts.confirm(message, title, callback); + }; + + jPrompt = function(message, value, title, callback) { + $.alerts.prompt(message, value, title, callback); + }; + +})(jQuery); \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/js/jquery.cookie.js b/e3-sso-web/src/main/resources/static/js/jquery.cookie.js new file mode 100644 index 0000000..c741457 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/jquery.cookie.js @@ -0,0 +1,38 @@ +jQuery.cookie = function(name, value, options) { + if (typeof value != 'undefined') { + options = options || {}; + if (value === null) { + value = ''; + options = $.extend({}, options); + options.expires = -1; + } + var expires = ''; + if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { + var date; + if (typeof options.expires == 'number') { + date = new Date(); + date.setTime(date.getTime() + (options.expires * 60 * 60 * 1000)); + } else { + date = options.expires; + } + expires = '; expires=' + date.toUTCString(); + } + var path = options.path ? '; path=' + (options.path) : ''; + var domain = options.domain ? '; domain=' + (options.domain) : ''; + var secure = options.secure ? '; secure' : ''; + document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); + } else { + var cookieValue = null; + if (document.cookie && document.cookie != '') { + var cookies = document.cookie.split(';'); + for (var i = 0; i < cookies.length; i++) { + var cookie = jQuery.trim(cookies[i]); + if (cookie.substring(0, name.length + 1) == (name + '=')) { + cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); + break; + } + } + } + return cookieValue; + } +}; \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/js/passport.common.js b/e3-sso-web/src/main/resources/static/js/passport.common.js new file mode 100644 index 0000000..dab1316 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/passport.common.js @@ -0,0 +1,320 @@ +/* version 2.0 + * Author zhaoyinfan + * date 2014-04-30 +*/ +var hostUrl = document.location.host; +var urlArr = hostUrl.split('.'); +var domain = urlArr[1]+'.'+urlArr[2]; +var SF_STATIC_BASE_URL='http://i.'+domain+'/com'; +var SF_STATIC_HTML_URL='http://i.'+domain+'/html'; +var SF_PASSPORT_URL = 'http://passport.'+domain; +var SF_HOME_URL = 'http://home.'+domain; +var SF_WWW_URL = 'http://www.'+domain; +function reloadValidate(){ + var src = document.getElementById('validateIMG').getAttribute('src') + "?new=" + Math.random(1000); + document.getElementById('validateIMG').setAttribute('src', src); +} +String.prototype.getBytes = function() { + var cArr = this.match(/[^\x00-\xff]/ig); + return this.length + 2 * (cArr == null ? 0 : cArr.length); +} +function image_path(path, server_id){ + server_list = new Array(); + server_list[1] = 'http://p.'+domain; + if(!server_list[server_id]) return path; + return server_list[server_id] + path; +} +/* + * 遮罩层 +*/ +var Shade=new function(){ + var handle={}; + var shade; + handle.show=function(func){ + if(!shade){ + shade=document.createElement('div'); + shade.style.display = 'none'; + shade.style.zIndex = 2000; + shade.style.filter = 'alpha(opacity = 60)'; + shade.style.left = 0; + shade.style.width = '100%'; + shade.style.position = 'absolute'; + shade.style.top = 0; + shade.style.backgroundColor = '#666'; + shade.style.opacity = .6; + document.body.appendChild(shade); + } + with((document.compatMode=='CSS1Compat')?document.documentElement:document.body){ + var ch=clientHeight,sh=scrollHeight; + shade.style.height=(sh>ch?sh:ch)+'px'; + var cw = clientWidth,sw = scrollWidth, ow=offsetWidth; + var width = cw > sw ? cw : sw; + width = width > ow ? width : ow; + shade.style.width=width+'px'; + shade.style.display='block'; + } + if(func){ func(); } + }; + handle.hide=function(func){ + shade.style.display='none'; + if(func){ func(); } + }; + return handle; +} +function weblogin(userId,userType){ + var pageConfig = { + linkTrack :"link", + heatmap :"1" + }; + var wt = new webtrekkV3(pageConfig); + + wt.contentId = "WEB:登录流程:登录成功"; + wt.contentGroup = { + 1 :"WEB:登录流程",2 :"网站",3 :"登录成功" //如网站,登录类型为网站(意思是来源宜立方商城的注册用户)、QQ、新浪微博、腾讯微博、支付宝。 + }; + wt.customerId = userId;//用户 ID,该ID是跟CRM 用户打通的主键 + wt.customSessionParameter = { + 1 :"登录用户",//跟踪用户是登录产生 + 2 :userType //跟踪用户是个人用户还是企业用户,如“个人用户” + + }; + wt.sendinfo(); +} +/* + *弹出框 + */ +var Win = new function(){ + var handler = {}; + var win; + var closebtn; + handler.show = function(html, func, closebtn){ + Shade.show(); + if(!win){ + win = document.createElement('div'); + win.style.display = 'none'; + win.style.zIndex = 2011; + win.style.position = 'absolute'; + win.style.left = 0; + win.style.top = 0; + document.body.appendChild(win); + + if(closebtn){ + closebtn = document.createElement('div'); + closebtn.style.width = '11px'; + closebtn.style.height = '11px'; + closebtn.style.border = '1px solid #666'; + closebtn.style.position = 'absolute'; + closebtn.style.zIndex = 2011; + closebtn.style.fontSize = '10px'; + closebtn.style.color = '#333'; + closebtn.innerHTML = "×"; + document.body.appendChild(closebtn); + } + } + with((document.compatMode=='CSS1Compat')?document.documentElement:document.body){ + win.style.display = 'block'; + win.innerHTML = html; + var ch=clientHeight,sh=scrollHeight, oh=offsetHeight; + var height = ch; + var cw = clientWidth,sw = scrollWidth, ow=offsetWidth; + var width = cw < sw ? cw : sw; + + if (document.documentElement && document.documentElement.scrollTop) { + dh = document.documentElement.scrollTop; + dw = document.documentElement.scrollLeft; + }else if (document.body){ + dh = document.body.scrollTop; + dw = document.body.scrollLeft; + }else{ + dh = document.documentElement.scrollTop; + dw = document.documentElement.scrollLeft; + } + + win.style.left = (width - win.offsetWidth) / 2 + dw + 'px'; + win.style.top = (height - win.offsetHeight) / 2 + dh + 'px'; + + if(closebtn){ + closebtn.style.display = 'block'; + closebtn.style.left = (width -((width - win.offsetWidth) / 2 + dw)- 14) + 'px'; + closebtn.style.top = (height - win.offsetHeight) / 2 + dh + 'px'; + } + } + + if(func){ + func(); + } + } + + handler.iframe = function(title, url, func){ + var html = title + ""; + Win.show(html, func); + } + + handler.hide = function(func){ + win.style.display = 'none'; + if(closebtn) closebtn.style.display = 'none'; + Shade.hide(); + + if(func){ + func(); + } + } + + handler.resize = function(){ + + var iframename = 'winiframe'; + var FFextraHeight = 16; + var FFextraWidth = 16; + if(window.chrome) return; + var pTar = null; + if (document.getElementById){ + pTar = document.getElementById(iframename); + }else{ + eval('pTar = ' + iframename + ';'); + } + if (pTar && !window.opera){ + pTar.style.display="block" + + if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){ + //ns6 syntax + pTar.height = pTar.contentDocument.body.offsetHeight+FFextraHeight; + pTar.width = pTar.contentDocument.body.offsetWidth+FFextraWidth; + } + else if (pTar.Document && pTar.Document.body.scrollHeight){ + //ie5+ syntax + pTar.height = pTar.Document.body.scrollHeight; + pTar.width = pTar.Document.body.scrollWidth; + } + + if(win){ + win.width = win.width > pTar.width ? win.width : pTar.width; + win.height = win.height > pTar.height ? win.height : pTar.height; + + with((document.compatMode=='CSS1Compat')?document.documentElement:document.body){ + var ch=clientHeight,sh=scrollHeight; + var height=(sh sw ? cw : sw; + width = width > ow ? width : ow; + + win.style.left = (Math.floor((width - win.width) / 2) > 0 ? Math.floor((width - win.width) / 2) : 0) + 'px'; + win.style.top = (Math.floor((height - win.height) / 2) > 0 ? Math.floor((height - win.height) / 2) : 0) + 'px'; + + if(closebtn){ + closebtn.style.display = 'block'; + closebtn.style.left = (width -(Math.floor((width - win.width) / 2) > 0 ? Math.floor((width - win.width) / 2) : 0)- 14) + 'px'; + closebtn.style.top = (Math.floor((height - win.height) / 2) > 0 ? Math.floor((height - win.height) / 2) : 0) + 'px'; + } + } + } + } + } + return handler; +} + +Login = new function(){ + var handler = {}; + var login; + var functions; + handler.submit = function(functions){ + var uNameObj = $("#uName"); + var uPwdObj = $("#uPassword"); + var imgCodeId='logincode'; + var validate = document.getElementById(imgCodeId); + if(!jQuery) return; + var loginCkval = true; + var passportName = uNameObj.val(); + if( !passportName){ + $("#uNameErr").attr("class","error").html("请输入邮箱/验证手机/用户名").prev().attr("class","border-error"); + loginCkval=false; + }else{ + $("#uNameErr").attr("class","").html("").prev().attr("class","border"); + } + regex = /^\S{6,45}$/; + var passportPswd = uPwdObj.val(); + if(passportPswd.length <= 0){ + $("#pwdErr").attr("class","error").html("请输入登录密码").prev().attr("class","border-error"); + loginCkval=false; + }else if(!regex.test(passportPswd)){ + $("#pwdErr").attr("class","error").html("密码与用户名不匹配,请重新输入").prev().attr("class","border-error"); + loginCkval=false; + }else{ + $("#pwdErr").attr("class","").html("").prev().attr("class","border"); + } + var code_val = ""; + if(validate){ + var code_val = validate.value.replace(/\s/g,""); + if(code_val.length <= 0){ + $("#"+imgCodeId).css("border","1px solid #FA9600"); + $("#codeErr").attr("class","error1").html("请输入验证码"); + loginCkval=false; + }else if(code_val.length !=4){ + $("#"+imgCodeId).css("border","1px solid #FA9600"); + $("#codeErr").attr("class","error1").html("验证码错误"); + loginCkval=false; + }else{ + $("#"+imgCodeId).css("border","1px solid #CDCDCD"); + $("#codeErr").attr("class","").html(""); + } + } + if(loginCkval==false){ + return false; + } + $("#btn_sub").html(''); + $("#uNameErr").attr("class","").html(""); + $.post('/ajax/doLogin/', {"passportName":passportName, "passportPswd":passportPswd, "validate":code_val}, function(data){ + switch(data.types){ + case 1: + if(functions) functions(passportName);weblogin(data.userId,data.userType); + break; + case 2: + location.href = data.links; + weblogin(data.userId,data.userType); + break; + case -1: + $("#btn_sub").html(''); + var codeImg=document.getElementById('login_validateIMG'); + if (codeImg){ + document.getElementById('login_validateIMG').src += "?new=" + Math.random(); + $("#"+imgCodeId).val(''); + } + if(data.msg.indexOf("验证码")!=-1){ + $("#codeErr").attr("class","error1").html(data.msg); + $("#"+imgCodeId).css("border","1px solid #FA9600").val(''); + }else{ + $("#pwdErr").attr("class","error").html(data.msg).prev().attr("class","border-error"); + } + if( data.show==1){ + //显示验证码 + $('#shosCode').html(''+ + '看不清?点一下!'+ + '
          看不清?换一换
          '+ + '').show(); + } + break; + default: + $("#btn_sub").html(''); + //通用处理 + $('#login_validateIMG').src += "?new=" + Math.random(); + $("#"+imgCodeId).val(''); + $('#pwdErr').html('网络错误'); + break; + } + }, "json"); + } + + handler.checkOnLoad = function(func){ + if(!jQuery) return; + if(!func) return; + $.post('/ajax/checkLogin/', {}, function(data){ + if(data != 0){ func(data); } + }); + } + return handler; +} +var uplcode =function(id){ + if(document.getElementById(id)){ + document.getElementById(id).src += "?new=" + Math.random(); + } +} \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/static/js/png.js b/e3-sso-web/src/main/resources/static/js/png.js new file mode 100644 index 0000000..73f14f0 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/png.js @@ -0,0 +1,36 @@ +function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. +{ + var arVersion = navigator.appVersion.split("MSIE") + var version = parseFloat(arVersion[1]) + if ((version >= 5.5) && (document.body.filters)) + { + for(var j=0; j" + img.outerHTML = strNewHTML + j = j-1 + } + } + } +} +if (window.addEventListener) { + window.addEventListener('DOMContentLoaded', correctPNG, false); //firefox + window.addEventListener('load', correctPNG, false); +} else if (window.attachEvent) { + window.attachEvent('onload', correctPNG); //IE +} + diff --git a/e3-sso-web/src/main/resources/static/js/reg.js b/e3-sso-web/src/main/resources/static/js/reg.js new file mode 100644 index 0000000..f5c2768 --- /dev/null +++ b/e3-sso-web/src/main/resources/static/js/reg.js @@ -0,0 +1,990 @@ +/*Author: zhaoyinfan Date:2014-05-05 version 2.0*/ +var upcode =function(id,ls){ + if(document.getElementById(id)){ + document.getElementById(id).src += "?new=" + Math.random(); + $("#"+id).prev().attr("class",""); + $("#"+id).prev().prev().val(''); + } +} +var comMsg=function(msg){ + return GetLen(msg)>=38? ""+msg+"":""+msg+""; +} +var email2val =function(id,obj){ + document.getElementById(id).value=obj.innerHTML; + $("#person_mail").hide(); + $("#person_mail").html(''); + ckmem(); +} +//show error massage +var showError =function(inputid,errid,msg){ + $("#"+inputid).parent().attr("class","").addClass("regM errorBorder"); + $("#"+inputid).next().attr("class",""); + $("#"+errid).attr("class","reg_error").html(comMsg(msg)); +} +//show success massage +var showSuccess = function(inputid,errid,msg){ + $("#"+inputid).parent().attr("class","").addClass("regM defaultBorder"); + $("#"+inputid).next().attr("class","regOk"); + $("#"+errid).attr("class","").html(""); +} +var showRestore =function(inputid,errid){ + $("#"+inputid).parent().attr("class","").addClass("regM defaultBorder"); + $("#"+inputid).next().attr("class",""); + $("#"+errid).attr("class","").html(''); +} +/*----------------------个人注册JS------------------------------*/ +var showcodeDiv =function(num){ + var code_1 = ''+ + ''+ + ''+ + ''; + var code_2 =''+ + ''+ + '看不清?点一下!'+ + '看不清?换一换'+ + ''; + //if(num==1&& !$.trim( $("#yzcode_1").html() )){ + if(num==1){ + //$("#yzcode_2").html(code_1).show(); + } + if(num==2 ){ + $("#yzcode_2").html('').hide(); + $("#yzcode_3").show(); + } + if(num==3 && !$.trim( $("#yzcode_2").html() )){ + $("#yzcode_2").html(code_1).show() + $("#yzcode_3").show(); + + } +} + +var showtip =function(inputid,spanid,key){ + var ms = defaultArr[key]; + $("#"+inputid).parent().attr("class","").addClass("regM okBorder"); + $("#"+inputid).next().attr("class",""); + $("#"+spanid).attr("class","reg_error1").html(comMsg(ms)); + return ; +} +var showPwdtip =function(inputid,spanid,key){ + var ms = defaultArr[key]; + $("#"+inputid).parent().attr("class","").addClass("regM okBorder"); + $("#"+inputid).next().attr("class",""); + $("#"+spanid).attr("class","reg_error2").html(comMsg(ms)); + return ; +} +var showCodetip =function(inputid,spanid,key){ + var ms = defaultArr[key]; + $("#"+inputid).attr("class","").addClass("regCodeInput okBorder"); + $("#"+spanid).attr("class","reg_error1").html(comMsg(ms)); + return ; +} +var showCodeError =function(inputid,errid,msg){ + $("#"+inputid).attr("class","").addClass("regCodeInput errorBorder"); + $("#"+errid).attr("class","reg_error").html(comMsg(msg)); +} +var tsmail_Arr =Array(); +tsmail_Arr[0] = "qq.com"; +tsmail_Arr[1] = "163.com"; +tsmail_Arr[2] = "126.com"; +tsmail_Arr[3] = "189.cn"; +tsmail_Arr[4] = "sina.com"; +tsmail_Arr[5] = "hotmail.com"; +tsmail_Arr[6] = "gmail.com"; +var mail_div =function(e){ + var event = e ? e : window.event; + var keyCode = event.keyCode; + var vschool = $(".accountSearch"); + + if (keyCode == 40 || keyCode == 38 || keyCode == 13) { + var tipindex = $("#hnseli").val() == "" ? -1 : $("#hnseli").val(); + var fobj; + if (keyCode == 40) { + tipindex++; + if (tipindex == vschool.find("span").length) { + tipindex = 0; + vschool.find("span").eq(vschool.find("span").length - 1).css("background-color", ""); + } + fobj = vschool.find("span").eq(tipindex); + vschool.find("span").eq(tipindex - 1).css("background-color", ""); + fobj.css("background-color", "#E6E6E6"); + $("#userMam").val(fobj.html().replace(/<(\S*?)[^>]*>|<.*? \/>/g, "")); + $("#schoolid").val(fobj.attr("value")); + $("#hnseli").val(tipindex); + return; + } else if (keyCode == 38) { + tipindex--; + if (tipindex <= -1) { + tipindex = vschool.find("span").length - 1; + vschool.find("span").eq(0).css("background-color", ""); + } + vschool.find("span").eq(tipindex + 1).css("background-color", ""); + fobj = vschool.find("span").eq(tipindex); + fobj.css("background-color", "#E6E6E6"); + if (fobj.html() != null) { + $("#userMam").val(fobj.html().replace(/<(\S*?)[^>]*>|<.*? \/>/g, "")); + $("#schoolid").val(fobj.attr("value")); + } + $("#hnseli").val(tipindex); + return; + } else if (keyCode == 13) { + if ($("#userMam").val().length >= 1) { + var combinedValue = vschool.find("span").eq(tipindex).html(); + if (combinedValue != null) { + $("#userMam").val(combinedValue.replace(/<(\S*?)[^>]*>|<.*? \/>/g, "")); + } + vschool.hide(); + if ($("#schoolid").val() != "") { + $("#hnschool").val("1"); + $("#hnschool").attr("sta", 2); + $("#userMam").blur(); + } else { + $("#hnschool").val("-1"); + $("#hnschool").attr("sta", 0); + } + $("#hnseli").val(tipindex); + return; + } + } + } + + $("#person_mail").hide(); + var val = $.trim( $("#"+MailMId).val() ); + if(val==''){ return false; } + showcodeDiv(2); + var mLoArr = val.split('@'); + var mlogoNum = mLoArr.length-1; + var mailist=''; + + if(mlogoNum==1){ + //请输入您的常用邮箱 + showtip('userMam','userMamErr',1); + var rightMstr = mLoArr[1]; + var leftMstr = mLoArr[0]; + for(var i=0;i'+mail+''; + } + if(rightMstr==''){ + var mail = val + tsmail_Arr[i]; + mailist +=''+mail+''; + } + } + if(mailist){ + var html =mailist; + $("#person_mail").html(html).show(); + } + } + +} +//check mobile email +var mb; mb=0; +var ckmem =function(isCk){ + var val = $.trim( $("#"+MailMId).val() ); + $("#nameRegOk").val(""); + if(!isCk && !val){ + showRestore(MailMId,MailMErrId); + return false; + }/* + if(val==''){ + showError(MailMId,MailMErrId,memArr[0]); + $("#person_mail").hide().html(''); + return false; + }*/ + if( !mobile_preg(val) ){ + showError(MailMId,MailMErrId,memArr[1]); + $("#person_mail").hide().html(''); + return false; + } + var num_preg = /^[0-9]{1,}$/; + if( num_preg.test(val) ){ + showcodeDiv(1); + mb=1; + if( !mobile_preg(val) ){ + showError(MailMId,MailMErrId,memArr[1]); + $("#person_mail").hide().html(''); + return false; + } + $("#person_mail").hide().html(''); + //校验中 + $.ajaxSetup({async:false }); + var bol=false; + $("#"+MailMErrId).attr("class","").addClass("reg_error1").html(comMsg("检测中....")); + $.post("/ajax/verifmobile/",{"name":"userMobile","param":val},function(data){ + if(data!="y"){ + if(data.indexOf("请直接登录")>=0){ + var newData = comMsg(data).replace("请直接登录","请直接登录"); + if(data.indexOf("宜立方速运")>-1){ + newData = "该手机在宜立方速运已注册,请直接登录>找回密码>"; + } + $("#"+MailMId).parent().attr("class","").addClass("regM errorBorder").next().attr("class",""); + $("#"+MailMErrId).attr("class","reg_error").html(newData); + }else{ + showError(MailMId,MailMErrId,data); + } + return false; + } + $("#nameRegOk").val(1); + showSuccess(MailMId,MailMErrId,OkArr[0]); + bol=true; + }); + return bol; + } + /*else { + mb=0; + showcodeDiv(2); + if( !mail_preg(val) ){ + showError(MailMId,MailMErrId,memArr[2]); + $("#person_mail").hide().html(''); + return false; + } + $("#person_mail").hide().html(''); + $.ajaxSetup({async:false }); + $("#"+MailMErrId).attr("class","").addClass("reg_error1").html(comMsg("检测中....")); + var bol=false; + $.post("/ajax/verifemails/",{"name":"outemail","param":val},function(data){ + if(data!="y"){ + if(data.indexOf("请直接登录")>=0){ + var newData = comMsg(data).replace("请直接登录","请直接登录"); + if(data.indexOf("宜立方速运")>-1){ + newData = "该邮箱在宜立方速运已注册,请直接登录>找回密码>"; + } + $("#"+MailMId).parent().attr("class","").addClass("regM errorBorder").next().attr("class",""); + $("#"+MailMErrId).attr("class","reg_error").html(newData); + }else{ + showError(MailMId,MailMErrId,data); + } + return false; + } + $("#nameRegOk").val(1); + showSuccess(MailMId,MailMErrId,OkArr[0]); + bol=true; + }); + return bol; + }*/ +} +//密码强度显示 +var showStrong=function(errid,rankid,rank){ + var def ="安全程度:"; + var midstr=''; + if(parseInt(rank)==1){ + midstr =''; + $("#"+rankid).html(def+midstr); + $("#"+errid).attr("class","reg_error2").html(pwdArr[2]); + return; + } + if(parseInt(rank)==2){ + midstr =''; + } + if(parseInt(rank)==3){ + midstr =''; + } + $("#"+rankid).html(def+midstr); +} + +//check password +var ckpwd=function(isCk,keyup){ + var val =$.trim( $("#"+PwdId).val() ); + if(val.length<6&&keyup==1){ + showStrong(PwdErrId,pwdStrong,0); + showRestore(PwdId,PwdErrId); + return false; + } + if(!isCk && !val){ + showRestore(PwdId,PwdErrId); + return false; + } + if(val == ""){ + showError(PwdId,PwdErrId,pwdArr[0]); + return false; + }else if( pwdTotal(val) ==0){ + showError(PwdId,PwdErrId,pwdArr[3]); + return false; + }else if( pwdTotal(val) ==-1){ + showError(PwdId,PwdErrId,pwdArr[3]); + return false; + }else if( pwdTotal(val) <=50){ + $("#"+PwdId).parent().attr("class","").addClass("regM defaultBorder"); + $("#"+PwdId).next().attr("class","regOk"); + showStrong(PwdErrId,pwdStrong,1); + return 1; + }else if( pwdTotal(val)>51&&pwdTotal(val) <=60){ + showStrong(PwdErrId,pwdStrong,2); + showSuccess(PwdId,PwdErrId,OkArr[0]); + return 1; + }else if( pwdTotal(val)>60){ + showStrong(PwdErrId,pwdStrong,3); + showSuccess(PwdId,PwdErrId,OkArr[0]); + return 1; + } + return false; +} +// check password 2 +var ckpwd2=function(isCk){ + var val =$.trim( $("#"+PwdId).val() ); + var val2 =$.trim( $("#"+PwdId2).val() ); + if(!isCk && !val2){ + showRestore(PwdId2,PwdErrId2); + return false; + } + if(val2 == ''){ + showError(PwdId2,PwdErrId2,pwd2Arr[0]); + return false; + }else if(val2!= val){ + showError(PwdId2,PwdErrId2,pwd2Arr[1]); + return false; + } + showSuccess(PwdId2,PwdErrId2,OkArr[0]); + return 1; +} +var ckmcode=function(isCk,keyup){ + var mcode =clsTrim($.trim( $("#"+MobileCodeId).val() )); + if(mcode.length<6&&keyup==1){ + $("#"+MobileCodeId).next().attr("class",""); + return false; + } + if(!isCk && !mcode){ + $("#"+MobileCodeId).attr("class","").addClass("regCodeInput defaultBorder"); + $("#"+MobileCodeId).next().attr("class",""); + $("#"+MobileCodeErrId).attr("class","").html(""); + return false; + } + if(mcode==''){ + showCodeError(MobileCodeId,MobileCodeErrId,mcodeArr[0]); + return false; + } + var mobileNum = $.trim( $("#"+MailMId).val() ); + $.ajaxSetup({async:false }); + $("#"+MobileCodeErrId).attr("class","").addClass("reg_error1").html(comMsg("检测中....")); + var bol=false; + $.post("/ajax/VerifSmscode/",{"mobile":mobileNum,"param":mcode},function(data){ + if(data!='y'){ + $("#"+MobileCodeId).next().attr("class",""); + showCodeError(MobileCodeId,MobileCodeErrId,data); + return false; + } + $("#"+MobileCodeId).attr("class","regCodeInput defaultBorder").next().attr("class","regOk1").css("left","246px"); + $("#"+MobileCodeErrId).html("").attr("class",""); + bol=true; + }); + return bol; +} + +var ckcode =function(isCk,keyup){ + var Authcode =clsTrim($.trim( $("#"+pageCodeId).val() )); + if(Authcode.length<4&&keyup==1){ + $("#"+pageCodeId).attr("class","").addClass("regCodeInput defaultBorder").next().attr("class",""); + $("#"+pageCodeErrId).attr("class","").html(""); + return false; + } + if(!isCk && !Authcode ){ + $("#"+pageCodeId).attr("class","").addClass("regCodeInput defaultBorder"); + $("#"+pageCodeErrId).attr("class","").html(""); + return false; + } + if(Authcode==''){ + showCodeError(pageCodeId,pageCodeErrId,codeArr[0]); + return false; + }else if(Authcode.length!=4){ + upcode(codeimgid); + showCodeError(pageCodeId,pageCodeErrId,codeArr[1]); + return false; + } + $.ajaxSetup({async:false }); + $("#"+pageCodeErrId).attr("class","").addClass("reg_error1").html(comMsg("检测中....")); + var bol=false; + $.post("/reg/codes/",{"name":"auth_code","param":Authcode},function(data){ + if(data!='y'){ + showCodeError(pageCodeId,pageCodeErrId,data); + upcode(codeimgid); + return false; + }else{ + + if( mb==1 && $("#yzcode_2").css("display")=='none'){ + showcodeDiv(3); + $("#auth_code").val(Authcode); + } + $("#"+pageCodeId).attr("class","").addClass("regCodeInput defaultBorder").next().attr("class","regOk1"); + $("#"+pageCodeErrId).html("").attr("class",""); + bol=true; + + } + }); + return bol; +} + +var getmcode =function(){ + var mobileNum = $.trim( $("#"+MailMId).val() ); + var myzm=$("#auth_code").val(); //图片验证码 + var a1= $("#"+MailMErrId).html(); + if( !a1 ){ + $.post("/other/getsms/",{"mobile":mobileNum,'auth_code':myzm},function(data){ + if(data!='y'){ + upcode(codeimgid); + showCodeError(MobileCodeId,MobileCodeErrId,data); + return false; + } + if(data=='验证码不正确'){ + showCodeError(pageCodeId,pageCodeErrId,data); + upcode(codeimgid); + return false; + } + if(data=='y'){ + ctDown('send'); + $("#"+MobileCodeErrId).attr("class","reg_error1").html(comMsg("短信验证码已发送,请查收。"));return ; + } + }); + }else{ + showCodeError(MobileCodeId,MobileCodeErrId,comMsg(a1)); + } +} +var showDmtip=function(){ + $("#"+sfCodeId).attr("class","regInvitationInput okBorder floatleft"); + $("#"+sfCodeErrId).attr("class","reg_error1").html(comMsg("请输入优选单邀请码")); +} +var ckdmcode =function(isCk,keyup){ + var dmNum=clsTrim($.trim( $("#"+sfCodeId).val() )); + if(dmNum.length<6&&keyup==1){ + $("#"+sfCodeId).attr("class","regInvitationInput defaultBorder floatleft").next().attr("class",""); + $("#"+sfCodeErrId).attr("class","").html(""); + return false; + } + if(!isCk && !dmNum){ + $("#"+sfCodeId).attr("class","regInvitationInput defaultBorder floatleft"); + $("#"+sfCodeErrId).attr("class","").html(""); + } + if(dmNum){ + if( dmNum.length!=6 && dmNum.length!=12 && dmNum.length!=14 ){ + $("#"+sfCodeId).attr("class","regInvitationInput errorBorder floatleft"); + $("#"+sfCodeErrId).attr("class","reg_error").html(comMsg("邀请码错误")); + return false; + } + $.ajaxSetup({async:false }); + $("#"+sfCodeErrId).attr("class","").addClass("reg_error1").html(comMsg("检测中....")); + var bol=false; + $.post("/ajax/validatedm/",{"name":sfCodeId,"param":dmNum},function(data){ + if(data!="y"){ + $("#"+sfCodeId).attr("class","regInvitationInput errorBorder floatleft"); + $("#"+sfCodeErrId).attr("class","reg_error").html(comMsg(data)); + return false; + }else{ + $("#"+sfCodeId).next().attr("class","regOk1").css("left","243px"); + $("#"+sfCodeId).attr("class","regInvitationInput defaultBorder floatleft"); + $("#"+sfCodeErrId).html("").attr("class",""); + bol=true; + } + }); + return bol; + } +} +var ckAgree =function(){ + var Agreestat = document.getElementById(AgreementId).checked; + if(Agreestat==false){ + $("#"+AgreementErrId).attr("class","").addClass("reg_error").html( comMsg(agreeArr[0]) ); + return false; + } + $("#"+AgreementErrId).attr("class","").html(''); + return 1; +} +$("#"+pageCodeId).live("keyup",function(event){ + if (event.keyCode == 13) { + sub_data(); + } +}); +$("#"+MobileCodeId).live("keyup",function(event){ + if (event.keyCode == 13) { + sub_data(); + } +}); + +var sub_data =function(){ + var mem = $.trim( $("#"+MailMId).val() ); + var cknameval = $.trim( $("#nameRegOk").val() ); + var a1= cknameval==1?true:false; + var a2 = ckpwd(1); + var a3 = ckpwd2(1); + var a4 = false; + var tjuid=$("#tjuid").val(); + var a5 = ckAgree(1); + if(mobile_preg(mem)){ + var a41= ckmcode(1); + var a42=ckcode(1); + if(a41==true&&a42==true){ + var a4 = true; + }else{ + var a4 = false; + } + }else{ + var a4 =ckcode(1); + } + var a6 = true; + if($("#"+sfCodeId).val()){ + ckdmcode(1); + var a6 = !$("#"+sfCodeErrId).html()?true:false; + } + if(!a1|| a2==false ||a3==false||a4==false||a5==false||a6==false){ + return false; + } + $("#sub_per").html(''); + $.post("/register/Regperson/",$('#regForm_mod').serialize().replace(/\+/g,"")+"&tjuid="+tjuid,function(data){ + if(data=="y"){ + //跳转到注册成功页面 + $("#"+pageCodeId).attr("disabled", true); + $("#"+MobileCodeId).attr("disabled", true); + location.href="/reg/success/"; + return false; + } + if(data=="yy"){// 推荐 + $("#"+pageCodeId).attr("disabled", true); + $("#"+MobileCodeId).attr("disabled", true); + location.href="/recommend/?uid="+tjuid; + return false; + } + $("#sub_per").html('立即注册'); + $("#"+pageCodeId).attr("disabled", false); + $("#"+MobileCodeId).attr("disabled", false); + upcode(codeimgid); + jAlert('注册失败:' + data); + }); +} + +//$("#reg_per_data").live("click",function(){sub_data();}); +/*----------------------企业注册JS------------------------------*/ +var showcpyError =function(inputid,errid,msg){ + $("#"+inputid).parent().attr("class","regM errorBorder"); + $("#"+inputid).next().attr("class",""); + var msg_new =comMsg(msg); + $("#"+errid).attr("class","reg_error3 f-color").html(msg_new); +} +var showCodecpyError =function(inputid,errid,msg){ + $("#"+inputid).attr("class","regCodeInput errorBorder"); + $("#"+inputid).next().attr("class",""); + var msg_new = comMsg(msg); + $("#"+errid).attr("class","reg_error3 f-color").html(msg_new); +} +var showcpytip =function(inputid,spanid,key){ + var msg = cpyDefaultArr[key]; + $("#"+inputid).parent().attr("class","").addClass("regM okBorder"); + $("#"+inputid).next().attr("class",""); + var msg_new = comMsg(msg); + $("#"+spanid).attr("class","reg_error3").html(msg_new); + return ; +} +var showCodecpytip =function(inputid,spanid,key){ + var msg = cpyDefaultArr[key]; + $("#"+inputid).attr("class","").addClass("regCodeInput okBorder"); + var msg_new =comMsg(msg); + $("#"+spanid).attr("class","reg_error3").html(msg_new); + return ; +} + +var ckcpyname =function(isCk){ + var val = $.trim( $("#"+cpyUserNameId).val() ); + if(!isCk&&!val){ + showRestore(cpyUserNameId,cpyUserNameErrId); + return false; + } + if(val==''){ + showcpyError(cpyUserNameId,cpyUserNameErrId,cpyUserNameArr[0]); + return false; + }else if( val.match(/^(sf)/i) ){ + showcpyError(cpyUserNameId,cpyUserNameErrId,cpyUserNameArr[1]); + return false; + }else if( val.match(/^(tmall)/i) ){ + showcpyError(cpyUserNameId,cpyUserNameErrId,cpyUserNameArr[4]); + return false; + }else if( val.match(/^(jd)/i) ){ + showcpyError(cpyUserNameId,cpyUserNameErrId,cpyUserNameArr[5]); + return false; + }else if( val.match(/^[0-9]{1,}$/) ){ + showcpyError(cpyUserNameId,cpyUserNameErrId,cpyUserNameArr[2]); + return false; + }else if(GetLen(val)<4 || GetLen(val)>20){ + showcpyError(cpyUserNameId,cpyUserNameErrId,cpyUserNameArr[3]); + return false; + } + $.ajaxSetup({async:false }); + var bol=false; + $.post("/ajax/verifUsername/",{"name":"userName","param":val},function(data){ + if(data!="y"){ + if(data.indexOf("请直接登录")>=0){ + $("#"+cpyUserNameId).parent().attr("class","regM errorBorder").next().attr("class",""); + var msg_new =comMsg(data).replace("请直接登录","请直接登录"); + $("#"+cpyUserNameErrId).attr("class","reg_error3 f-color").html(msg_new); + }else{ + showcpyError(cpyUserNameId,cpyUserNameErrId,data); + } + return false; + } + showSuccess(cpyUserNameId,cpyUserNameErrId); + bol=true; + }); + return bol; +} + +var ckcpypwd =function(isCk){ + var val =$.trim( $("#"+cpyPwdId).val() ); + var pwd_p1 = /\s/; + var pwd_p2 = /^(.)\1+$/; + var pwd_p3 = /^[a-zA-Z]+$/; + var pwd_p4 = /^[0-9]+$/; + var pwd_p5 = /^[a-zA-Z0-9_]{6,20}$/; + if(!isCk&&!val){ + showRestore(cpyPwdId,cpyPwdIdErrId); + return false; + } + if(val == ""){ + showcpyError(cpyPwdId,cpyPwdIdErrId,cpyPwdArr[0]); + return false; + }else if(val.length<6 || val.length>20){ + showcpyError(cpyPwdId,cpyPwdIdErrId,cpyPwdArr[1]); + return false; + }else if( pwdTotal(val) ==0){ + showcpyError(cpyPwdId,cpyPwdIdErrId,cpyPwdArr[2]); + return false; + }else if( pwdTotal(val) ==-1){ + showcpyError(cpyPwdId,cpyPwdIdErrId,cpyPwdArr[2]); + return false; + } + showSuccess(cpyPwdId,cpyPwdIdErrId); + return 1; +} + +var ckcpypwd2 =function(isCk){ + var val =$.trim( $("#"+cpyPwdId).val() ); + var val2 =$.trim( $("#"+cpyPwd2Id).val() ); + if(!isCk&&!val2){ + showRestore(cpyPwd2Id,cpyPwd2ErrId); + return false; + } + if(val2 == ''){ + showcpyError(cpyPwd2Id,cpyPwd2ErrId,cpyPwd2Arr[0]); + return false; + }else if(val2!= val){ + showcpyError(cpyPwd2Id,cpyPwd2ErrId,cpyPwd2Arr[1]); + return false; + } + showSuccess(cpyPwd2Id,cpyPwd2ErrId); + return 1; +} + +var ckcpyrealName =function(isCk){ + var realName = $.trim( $("#"+cpyRealNameId).val() ); + if(!isCk&&!realName){ + showRestore(cpyRealNameId,cpyRealNameErrId); + return false; + } + if(realName==''){ + showcpyError(cpyRealNameId,cpyRealNameErrId,cpyRealNameArr[0]); + return false; + } + if ( GetLen(realName)<4 ||GetLen(realName)>20 ){ + showcpyError(cpyRealNameId,cpyRealNameErrId,cpyRealNameArr[1]); + return false; + } + showSuccess(cpyRealNameId,cpyRealNameErrId); + return 1; +} + +var ckcpytel =function(isCk){ + var telNum = $.trim( $("#"+cpyTelphoneId).val() ); + if(!isCk&&!telNum){ + showRestore(cpyTelphoneId,cpyTelphoneErrId); + return false; + } + if(telNum==''){ + showcpyError(cpyTelphoneId,cpyTelphoneErrId,cpyTelArr[0]); + return false; + } + if ( tel_preg(telNum)==false){ + showcpyError(cpyTelphoneId,cpyTelphoneErrId,cpyTelArr[1]); + return false; + } + showSuccess(cpyTelphoneId,cpyTelphoneErrId); + return 1; +} + +var ckcpymobile =function(){ + var cpymobile = $.trim( $("#"+cpyMobileId).val() ); + if(cpymobile==''){ + showRestore(cpyMobileId,cpyMobileErrId); + return false; + } + if ( cpymobile && mobile_preg(cpymobile)==false){ + showcpyError(cpyMobileId,cpyMobileErrId,cpyMobArr[0]); + return false; + } + $.ajaxSetup({async:false }); + var bol=false; + $.post("/ajax/verifmobile/",{"name":"userMobile","param":cpymobile},function(data){ + if(data!="y"){ + if(data.indexOf("请直接登录")>=0){ + $("#"+cpyMobileId).parent().attr("class","regM errorBorder").next().attr("class",""); + var msg_new =comMsg(data).replace("请直接登录","请直接登录"); + if(data.indexOf("宜立方速运")>-1){ + msg_new = comMsg("该手机在宜立方速运已注册,请直接登录>找回密码>"); + } + $("#"+cpyMobileErrId).attr("class","reg_error3 f-color").html(msg_new); + }else{ + showcpyError(cpyMobileId,cpyMobileErrId,data); + } + return false; + } + showSuccess(cpyMobileId,cpyMobileErrId); + bol=true; + }); + return bol; +} + +var ckcpymail =function(){ + var cpymail = $.trim( $("#"+cpyEmailId).val() ); + if(cpymail==''){ + showRestore(cpyEmailId,cpyEmailErrId); + return false; + } + if ( cpymail && mail_preg(cpymail)==false){ + showcpyError(cpyEmailId,cpyEmailErrId,cpyMaArr[0]); + return false; + } + $.ajaxSetup({async:false }); + var bol=false; + $.post("/ajax/verifemails/",{"name":"outemail","param":cpymail},function(data){ + if(data!="y"){ + if(data.indexOf("请直接登录")>=0){ + $("#"+cpyEmailId).parent().attr("class","regM errorBorder").next().attr("class",""); + var msg_new =comMsg(data).replace("请直接登录","请直接登录"); + if(data.indexOf("宜立方速运")>-1){ + msg_new = comMsg("该邮箱在宜立方速运已注册,请直接登录>找回密码>"); + } + $("#"+cpyEmailErrId).attr("class","reg_error3 f-color").html(msg_new); + }else{ + showcpyError(cpyEmailId,cpyEmailErrId,data); + } + return false; + } + showSuccess(cpyEmailId,cpyEmailErrId); + bol=true; + }); + return bol; +} + +//公司名 +var ckcpy_name =function(isCk){ + var val = $.trim( $("#"+cpyNameId).val() ); + if(!isCk&&!val){ + showRestore(cpyNameId,cpyNameErrId); + return false; + } + if(val==''){ + showcpyError(cpyNameId,cpyNameErrId,cpyNameArr[0]); + return false; + } + if(GetLen(val)<4||GetLen(val)>40){ + showcpyError(cpyNameId,cpyNameErrId,cpyNameArr[1]); + return false; + } + showSuccess(cpyNameId,cpyNameErrId); + return 1; +} + +//公司省获取市 +var ckcpy_province =function(isCk){ + var proId = $.trim( $("#"+cpyProvinceId).val() ); + if(!isCk&&!proId){ + showRestore(cpyAddressId,cpyAddressErrId); + return false; + } + if(proId==0){ + showcpyError(cpyAddressId,cpyAddressErrId,cpyAddressArr[0]); + return false; + } + var bol=false; + $.post("/reg/getcity/",{"cid":proId},function(data){ + if(data=='-1'){ + showcpyError(cpyAddressId,cpyAddressErrId,comArr[0]); + return false; + } + $("#"+cpyCitiesId).html(''+data); + showRestore(cpyAddressId,cpyAddressErrId); + bol=true; + }); + return bol; +} + +var ckcpy_cities =function(isCk){ + var proId = $.trim( $("#"+cpyCitiesId).val() ); + if(!isCk&&!proId){ + showRestore(cpyAddressId,cpyAddressErrId); + return false; + } + if(proId==0){ + showcpyError(cpyAddressId,cpyAddressErrId,cpyAddressArr[1]); + return false; + } + showRestore(cpyAddressId,cpyAddressErrId); + return false; +} + +//详细地址 +var ckcpy_address =function(isCk){ + var proId = $.trim( $("#"+cpyProvinceId).val() ); + var cityId = $.trim( $("#"+cpyCitiesId).val() ); + var val = $.trim( $("#"+cpyAddressId).val() ); + if(!isCk&&!val){ + showRestore(cpyAddressId,cpyAddressErrId); + return false; + } + if(proId==0){ + showcpyError(cpyAddressId,cpyAddressErrId,cpyAddressArr[0]); + return false; + } + if(cityId==0){ + showcpyError(cpyAddressId,cpyAddressErrId,cpyAddressArr[1]); + return false; + } + if(val==''){ + showcpyError(cpyAddressId,cpyAddressErrId,cpyAddressArr[2]); + return false; + } + if(GetLen(val)<4||GetLen(val)>50){ + showcpyError(cpyAddressId,cpyAddressErrId,cpyAddressArr[3]); + return false; + } + showSuccess(cpyAddressId,cpyAddressErrId); + return 1; +} + +//购买用途 +var ckcpy_buyuse =function(isCk){ + var str=document.getElementsByName("cpybuyuse[]"); + + var objarray=str.length; + var chestr=""; + for (i=0;i + + + + 登录淘淘 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/e3-sso-web/src/main/resources/templates/register.html b/e3-sso-web/src/main/resources/templates/register.html new file mode 100644 index 0000000..dac8fb5 --- /dev/null +++ b/e3-sso-web/src/main/resources/templates/register.html @@ -0,0 +1,196 @@ + + + + + + 注册-个人用户 + + + + + + + + + + + + + + + + + + +
          + 个人用户 + 企业用户 + +
          + +
          + + +
          + + + + + + + + + diff --git a/e3-sso/e3-sso-interface/pom.xml b/e3-sso/e3-sso-interface/pom.xml new file mode 100644 index 0000000..49e3df1 --- /dev/null +++ b/e3-sso/e3-sso-interface/pom.xml @@ -0,0 +1,22 @@ + + + + e3-sso + guo.ping.e3mall + 1.0-SNAPSHOT + + 4.0.0 + + e3-sso-interface + jar + + + + guo.ping.e3mall + e3-manager-pojo + 1.0-SNAPSHOT + + + \ No newline at end of file diff --git a/e3-sso/e3-sso-interface/src/main/java/guo/ping/e3mall/sso/service/UserService.java b/e3-sso/e3-sso-interface/src/main/java/guo/ping/e3mall/sso/service/UserService.java new file mode 100644 index 0000000..9801269 --- /dev/null +++ b/e3-sso/e3-sso-interface/src/main/java/guo/ping/e3mall/sso/service/UserService.java @@ -0,0 +1,11 @@ +package guo.ping.e3mall.sso.service; + +import guo.ping.e3mall.common.pojo.E3Result; +import basepro.manager.pojo.TbUser; + +public interface UserService { + E3Result checkData(String param, Integer type); + E3Result register(TbUser tbUser); + E3Result login(String username, String password); + E3Result getUserByToken(String token); +} diff --git a/e3-sso/e3-sso-service/pom.xml b/e3-sso/e3-sso-service/pom.xml new file mode 100644 index 0000000..33ee05b --- /dev/null +++ b/e3-sso/e3-sso-service/pom.xml @@ -0,0 +1,59 @@ + + + + e3-sso + guo.ping.e3mall + 1.0-SNAPSHOT + + 4.0.0 + + e3-sso-service + jar + + + + guo.ping.e3mall + e3-manager-dao + 1.0-SNAPSHOT + + + guo.ping.e3mall + e3-sso-interface + 1.0-SNAPSHOT + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-data-redis + + + org.springframework.boot + spring-boot-starter-test + test + + + + com.alibaba.boot + dubbo-spring-boot-starter + + + + com.github.sgroschupf + zkclient + + + log4j + log4j + + + + + + \ No newline at end of file diff --git a/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/SsoServiceApplicationStarter.java b/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/SsoServiceApplicationStarter.java new file mode 100644 index 0000000..8f82d74 --- /dev/null +++ b/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/SsoServiceApplicationStarter.java @@ -0,0 +1,21 @@ +package guo.ping.e3mall.sso; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.WebApplicationType; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; + +import java.util.concurrent.CountDownLatch; + +@MapperScan(value = "guo.ping.e3mall.manager.mapper") +@SpringBootApplication +public class SsoServiceApplicationStarter { + public static void main(String[] args) throws InterruptedException { + new SpringApplicationBuilder() + .sources(SsoServiceApplicationStarter.class) + .web(WebApplicationType.NONE) + .run(args); + CountDownLatch countDownLatch = new CountDownLatch(1); + countDownLatch.await(); + } +} diff --git a/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/config/MyRedisConfig.java b/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/config/MyRedisConfig.java new file mode 100644 index 0000000..4fe73d3 --- /dev/null +++ b/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/config/MyRedisConfig.java @@ -0,0 +1,28 @@ +package guo.ping.e3mall.sso.config; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer; +import org.springframework.data.redis.serializer.StringRedisSerializer; + +@Configuration +public class MyRedisConfig { + + /** + * 通用的 RedisTemplate + * @param lettuceConnectionFactory + * @return + */ + @Bean + public RedisTemplate redisTemplate(LettuceConnectionFactory lettuceConnectionFactory) { + RedisTemplate template = new RedisTemplate<>(); + template.setConnectionFactory(lettuceConnectionFactory); + template.setKeySerializer(new StringRedisSerializer()); + template.setValueSerializer(new GenericJackson2JsonRedisSerializer()); + template.setHashKeySerializer(template.getKeySerializer()); + template.setHashValueSerializer(template.getValueSerializer()); + return template; + } +} diff --git a/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/config/MySettingFileConfig.java b/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/config/MySettingFileConfig.java new file mode 100644 index 0000000..1f527d0 --- /dev/null +++ b/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/config/MySettingFileConfig.java @@ -0,0 +1,10 @@ +package guo.ping.e3mall.sso.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.PropertySource; + +@Configuration +@PropertySource("classpath:conf/conf.properties") +public class MySettingFileConfig { + +} diff --git a/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/service/impl/UserServiceImpl.java b/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/service/impl/UserServiceImpl.java new file mode 100644 index 0000000..8232909 --- /dev/null +++ b/e3-sso/e3-sso-service/src/main/java/guo/ping/e3mall/sso/service/impl/UserServiceImpl.java @@ -0,0 +1,115 @@ +package guo.ping.e3mall.sso.service.impl; + +import com.alibaba.dubbo.config.annotation.Service; +import guo.ping.e3mall.common.pojo.E3Result; +import guo.ping.e3mall.manager.mapper.TbUserMapper; +import basepro.manager.pojo.TbUser; +import guo.ping.e3mall.sso.service.UserService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.util.DigestUtils; + +import java.util.*; +import java.util.concurrent.TimeUnit; + +@Service +public class UserServiceImpl implements UserService { + + @Autowired + private TbUserMapper userMapper; + @Autowired + private RedisTemplate redisTemplate; + @Value("${REDIS_SESSION_KEY}") + private String REDIS_SESSION_KEY; + @Value("${SESSION_EXPIRE}") + private Integer SESSION_EXPIRE; + + /** + * 根据数据类型校验数据 + * @param param + * @param type + * @return + */ + @Override + public E3Result checkData(String param, Integer type) { + Map paramMap = new HashMap<>(); + paramMap.put("param", param); + paramMap.put("type", type); + List tbUsers = userMapper.selectByKey(paramMap); + if (tbUsers == null || tbUsers.isEmpty()) { + return E3Result.ok(true); + } else { + return E3Result.ok(false); + } + } + + @Override + public E3Result register(TbUser tbUser) { + // 校验数据 + if (StringUtils.isBlank(tbUser.getUsername()) || StringUtils.isBlank(tbUser.getPassword())) { + return E3Result.build(400, "用户名或密码不能为空"); + } + E3Result result = checkData(tbUser.getUsername(), 1); + if (!(boolean) result.getData()) { + return E3Result.build(400, "用户名重复"); + } + if (tbUser.getPhone() != null) { + result = checkData(tbUser.getPhone(), 2); + if (!(boolean) result.getData()) { + return E3Result.build(400, "手机号重复"); + } + } + if (tbUser.getEmail() != null) { + result = checkData(tbUser.getEmail(), 3); + if (!(boolean) result.getData()) { + return E3Result.build(400, "邮箱重复"); + } + } + // 插入数据 + tbUser.setCreated(new Date()); + tbUser.setUpdated(new Date()); + tbUser.setPassword(DigestUtils.md5DigestAsHex(tbUser.getPassword().getBytes())); + userMapper.insert(tbUser); + + return E3Result.ok(); + + } + + @Override + public E3Result login(String username, String password) { + Map paramMap = new HashMap<>(); + paramMap.put("username", username); + List users = userMapper.selectUserByNameOrPwd(paramMap); + + if (users == null || users.isEmpty()) { + return E3Result.build(400, "该用户不存在"); + } + + TbUser tbUser = users.get(0); + // 校验密码 + if (!tbUser.getPassword().equals(DigestUtils.md5DigestAsHex(password.getBytes()))) { + return E3Result.build(400, "密码错误"); + } + + // 登录成功 + String token = UUID.randomUUID().toString(); + tbUser.setPassword(null); + redisTemplate.opsForValue().set(REDIS_SESSION_KEY + ":" + token, tbUser); + redisTemplate.expire(REDIS_SESSION_KEY + ":" + token, SESSION_EXPIRE, TimeUnit.MINUTES); + + return E3Result.ok(token); + + } + + @Override + public E3Result getUserByToken(String token) { + TbUser tbUser = (TbUser) redisTemplate.opsForValue().get(REDIS_SESSION_KEY + ":" + token); + if (tbUser == null) { + return E3Result.build(201, "用户登录信息已经过期!"); + } + redisTemplate.expire(REDIS_SESSION_KEY + ":" + token, SESSION_EXPIRE, TimeUnit.MINUTES); + return E3Result.ok(tbUser); + } +} diff --git a/e3-sso/e3-sso-service/src/main/resources/application.yaml b/e3-sso/e3-sso-service/src/main/resources/application.yaml new file mode 100644 index 0000000..dbbbade --- /dev/null +++ b/e3-sso/e3-sso-service/src/main/resources/application.yaml @@ -0,0 +1,26 @@ +mybatis: + config-location: classpath:mybatis/SqlMapConfig.xml + mapper-locations: classpath:mybatis/mapper/*.xml + +spring: + datasource: + username: root + password: 123456 + url: jdbc:mysql://192.168.163.132:3307/e3mall + driver-class-name: com.mysql.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + redis: + timeout: 5000 +# redis-single + host: 192.168.163.132 + port: 6380 + +dubbo: + application: + name: e3-sso + registry: + address: zookeeper://192.168.163.132:2181 + scan: + basePackages: guo.ping.e3mall.sso.service + protocol: + port: 20883 \ No newline at end of file diff --git a/e3-sso/e3-sso-service/src/main/resources/conf/conf.properties b/e3-sso/e3-sso-service/src/main/resources/conf/conf.properties new file mode 100644 index 0000000..a80a8ae --- /dev/null +++ b/e3-sso/e3-sso-service/src/main/resources/conf/conf.properties @@ -0,0 +1,2 @@ +REDIS_SESSION_KEY=REDIS_SESSION +SESSION_EXPIRE=30 \ No newline at end of file diff --git a/e3-sso/e3-sso-service/src/main/resources/mybatis/SqlMapConfig.xml b/e3-sso/e3-sso-service/src/main/resources/mybatis/SqlMapConfig.xml new file mode 100644 index 0000000..d6375a4 --- /dev/null +++ b/e3-sso/e3-sso-service/src/main/resources/mybatis/SqlMapConfig.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/e3-sso/pom.xml b/e3-sso/pom.xml new file mode 100644 index 0000000..6d561d4 --- /dev/null +++ b/e3-sso/pom.xml @@ -0,0 +1,29 @@ + + + + e3-parent + guo.ping.e3mall + 1.0-SNAPSHOT + ../e3-parent/pom.xml + + 4.0.0 + + e3-sso + pom + + e3-sso-interface + e3-sso-service + + + + + + guo.ping.e3mall + e3-common + 1.0-SNAPSHOT + + + + \ No newline at end of file