code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
package com.kong.meirimall.search.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class SearchController { @GetMapping("/list.html") public String SearchPage(){ System.out.println("执行 IndexController"); return "search"; } }
2401_83448718/meirimall
meirimall-search/src/main/java/com/kong/meirimall/search/controller/SearchController.java
Java
apache-2.0
349
package com.kong.meirimall.search.service; import com.kong.common.to.es.SkuEsModel; import java.io.IOException; import java.util.List; public interface ProductSaveService { boolean productStatusUp(List<SkuEsModel> skuEsModels) throws IOException; }
2401_83448718/meirimall
meirimall-search/src/main/java/com/kong/meirimall/search/service/ProductSaveService.java
Java
apache-2.0
256
package com.kong.meirimall.search.service.impl; import com.alibaba.fastjson.JSON; import com.kong.common.to.es.SkuEsModel; import com.kong.meirimall.search.Constant.EsConstant; import com.kong.meirimall.search.config.ElasticSearchConfig; import com.kong.meirimall.search.service.ProductSaveService; import lombok.extern.slf4j.Slf4j; import org.elasticsearch.action.bulk.BulkRequest; import org.elasticsearch.action.bulk.BulkResponse; import org.elasticsearch.action.index.IndexRequest; import org.elasticsearch.client.RestHighLevelClient; import org.elasticsearch.common.xcontent.XContentType; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; @Slf4j @Service public class ProductSaveServiceImpl implements ProductSaveService { @Autowired RestHighLevelClient restHighLevelClient; @Override public boolean productStatusUp(List<SkuEsModel> skuEsModels) throws IOException { //1、建立好映射关系,给 product PUT Mapping 结构 //2、给 es 批量保存 BulkRequest bulkRequest = new BulkRequest(); for (SkuEsModel model : skuEsModels) { IndexRequest request = new IndexRequest(EsConstant.PRODUCT_INDEX); //指定唯一 id request.id(model.getSkuId().toString()); //数据内容 request.source(JSON.toJSONString(model), XContentType.JSON); bulkRequest.add(request); } BulkResponse bulk = restHighLevelClient.bulk(bulkRequest, ElasticSearchConfig.COMMON_OPTIONS); // TODO 如果批量操作错误,处理 boolean b = bulk.hasFailures(); List<String> collect = Arrays.stream(bulk.getItems()).map(item -> { return item.getId(); }).collect(Collectors.toList()); log.info("商品上架完成:{}",collect); return b; } }
2401_83448718/meirimall
meirimall-search/src/main/java/com/kong/meirimall/search/service/impl/ProductSaveServiceImpl.java
Java
apache-2.0
1,998
*{margin: 0;padding: 0;list-style: none;} /* KISSY CSS Reset 理念:1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。 2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。 3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。 特色:1. 适应中文;2. 基于最新主流浏览器。 维护:玉伯<lifesinger@gmail.com>, 正淳<ragecarrier@gmail.com> */ /** 清除内外边距 **/ body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */ dl, dt, dd, ul, ol, li, /* list elements 列表元素 */ pre, /* text formatting elements 文本格式元素 */ form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */ th, td /* table elements 表格元素 */ { margin: 0; padding: 0; } /** 设置默认字体 **/ body, button, input, select, textarea /* for ie */ { font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif; } h1, h2, h3, h4, h5, h6 { font-size: 100%; } address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */ code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */ small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */ /** 重置列表元素 **/ ul, ol { list-style: none; } /** 重置文本格式元素 **/ a { text-decoration: none; } a:hover { text-decoration: underline; } /** 重置表单元素 **/ legend { color: #000; } /* for ie6 */ fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */ button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */ /* 注:optgroup 无法扶正 */ /** 重置表格元素 **/ table { border-collapse: collapse; border-spacing: 0; } /* 清除浮动 */ .ks-clear:after, .clear:after { content: '\20'; display: block; height: 0; clear: both; } .ks-clear, .clear { *zoom: 1; } .main { padding: 30px 100px; width: 960px; margin: 0 auto; } .main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;} .helps{margin-top:40px;} .helps pre{ padding:20px; margin:10px 0; border:solid 1px #e7e1cd; background-color: #fffdef; overflow: auto; } .icon_lists{ width: 100% !important; } .icon_lists li{ float:left; width: 100px; height:180px; text-align: center; list-style: none !important; } .icon_lists .icon{ font-size: 42px; line-height: 100px; margin: 10px 0; color:#333; -webkit-transition: font-size 0.25s ease-out 0s; -moz-transition: font-size 0.25s ease-out 0s; transition: font-size 0.25s ease-out 0s; } .icon_lists .icon:hover{ font-size: 100px; } .markdown { color: #666; font-size: 14px; line-height: 1.8; } .highlight { line-height: 1.5; } .markdown img { vertical-align: middle; max-width: 100%; } .markdown h1 { color: #404040; font-weight: 500; line-height: 40px; margin-bottom: 24px; } .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { color: #404040; margin: 1.6em 0 0.6em 0; font-weight: 500; clear: both; } .markdown h1 { font-size: 28px; } .markdown h2 { font-size: 22px; } .markdown h3 { font-size: 16px; } .markdown h4 { font-size: 14px; } .markdown h5 { font-size: 12px; } .markdown h6 { font-size: 12px; } .markdown hr { height: 1px; border: 0; background: #e9e9e9; margin: 16px 0; clear: both; } .markdown p, .markdown pre { margin: 1em 0; } .markdown > p, .markdown > blockquote, .markdown > .highlight, .markdown > ol, .markdown > ul { width: 80%; } .markdown ul > li { list-style: circle; } .markdown > ul li, .markdown blockquote ul > li { margin-left: 20px; padding-left: 4px; } .markdown > ul li p, .markdown > ol li p { margin: 0.6em 0; } .markdown ol > li { list-style: decimal; } .markdown > ol li, .markdown blockquote ol > li { margin-left: 20px; padding-left: 4px; } .markdown code { margin: 0 3px; padding: 0 5px; background: #eee; border-radius: 3px; } .markdown pre { border-radius: 6px; background: #f7f7f7; padding: 20px; } .markdown pre code { border: none; background: #f7f7f7; margin: 0; } .markdown strong, .markdown b { font-weight: 600; } .markdown > table { border-collapse: collapse; border-spacing: 0px; empty-cells: show; border: 1px solid #e9e9e9; width: 95%; margin-bottom: 24px; } .markdown > table th { white-space: nowrap; color: #333; font-weight: 600; } .markdown > table th, .markdown > table td { border: 1px solid #e9e9e9; padding: 8px 16px; text-align: left; } .markdown > table th { background: #F7F7F7; } .markdown blockquote { font-size: 90%; color: #999; border-left: 4px solid #e9e9e9; padding-left: 0.8em; margin: 1em 0; font-style: italic; } .markdown blockquote p { margin: 0; } .markdown .anchor { opacity: 0; transition: opacity 0.3s ease; margin-left: 8px; } .markdown .waiting { color: #ccc; } .markdown h1:hover .anchor, .markdown h2:hover .anchor, .markdown h3:hover .anchor, .markdown h4:hover .anchor, .markdown h5:hover .anchor, .markdown h6:hover .anchor { opacity: 1; display: inline-block; } .markdown > br, .markdown > p > br { clear: both; } .hljs { display: block; background: white; padding: 0.5em; color: #333333; overflow-x: auto; } .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; } pre{ background: #fff; }
2401_83448718/meirimall
meirimall-search/src/main/resources/static/search/font/demo.css
CSS
apache-2.0
6,274
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>IconFont</title> <link rel="stylesheet" href="demo.css"> <link rel="stylesheet" href="iconfont.css"> </head> <body> <div class="main markdown"> <h1>IconFont 图标</h1> <ul class="icon_lists clear"> <li> <i class="icon iconfont icon-tianmaopaidui"></i> <div class="name">天猫派对</div> <div class="fontclass">.icon-tianmaopaidui</div> </li> <li> <i class="icon iconfont icon-kefuyouxian"></i> <div class="name">客服优先</div> <div class="fontclass">.icon-kefuyouxian</div> </li> <li> <i class="icon iconfont icon-liebiao"></i> <div class="name">列表</div> <div class="fontclass">.icon-liebiao</div> </li> <li> <i class="icon iconfont icon-chongzhi"></i> <div class="name">充值</div> <div class="fontclass">.icon-chongzhi</div> </li> <li> <i class="icon iconfont icon-kafei"></i> <div class="name">咖啡</div> <div class="fontclass">.icon-kafei</div> </li> <li> <i class="icon iconfont icon-yaopin"></i> <div class="name">药品</div> <div class="fontclass">.icon-yaopin</div> </li> <li> <i class="icon iconfont icon-hanbao"></i> <div class="name">汉堡</div> <div class="fontclass">.icon-hanbao</div> </li> <li> <i class="icon iconfont icon-kouhong"></i> <div class="name">口红</div> <div class="fontclass">.icon-kouhong</div> </li> <li> <i class="icon iconfont icon-tushu"></i> <div class="name">图书</div> <div class="fontclass">.icon-tushu</div> </li> <li> <i class="icon iconfont icon-shouji"></i> <div class="name">手机</div> <div class="fontclass">.icon-shouji</div> </li> <li> <i class="icon iconfont icon-liebiao1"></i> <div class="name">列表</div> <div class="fontclass">.icon-liebiao1</div> </li> <li> <i class="icon iconfont icon-gouwucheman"></i> <div class="name">购物车满</div> <div class="fontclass">.icon-gouwucheman</div> </li> <li> <i class="icon iconfont icon-huangguan"></i> <div class="name">皇冠</div> <div class="fontclass">.icon-huangguan</div> </li> <li> <i class="icon iconfont icon-chuzu"></i> <div class="name">出租</div> <div class="fontclass">.icon-chuzu</div> </li> <li> <i class="icon iconfont icon-xiexiangbao"></i> <div class="name">鞋\箱包</div> <div class="fontclass">.icon-xiexiangbao</div> </li> <li> <i class="icon iconfont icon-jingxuanshichang"></i> <div class="name">精选市场</div> <div class="fontclass">.icon-jingxuanshichang</div> </li> <li> <i class="icon iconfont icon-zhubaoshipin"></i> <div class="name">珠宝饰品</div> <div class="fontclass">.icon-zhubaoshipin</div> </li> <li> <i class="icon iconfont icon-shumashouji"></i> <div class="name">数码手机</div> <div class="fontclass">.icon-shumashouji</div> </li> <li> <i class="icon iconfont icon-xiebao"></i> <div class="name">鞋/包</div> <div class="fontclass">.icon-xiebao</div> </li> <li> <i class="icon iconfont icon-qichepeijian"></i> <div class="name">汽车配件</div> <div class="fontclass">.icon-qichepeijian</div> </li> <li> <i class="icon iconfont icon-tianmaoxingxiang1"></i> <div class="name">天猫形象1</div> <div class="fontclass">.icon-tianmaoxingxiang1</div> </li> <li> <i class="icon iconfont icon-tianmaoxingxiang2"></i> <div class="name">天猫形象2</div> <div class="fontclass">.icon-tianmaoxingxiang2</div> </li> <li> <i class="icon iconfont icon-qiehuanqiyou"></i> <div class="name">切换器右</div> <div class="fontclass">.icon-qiehuanqiyou</div> </li> <li> <i class="icon iconfont icon-qiehuanqizuo"></i> <div class="name">切换器左</div> <div class="fontclass">.icon-qiehuanqizuo</div> </li> <li> <i class="icon iconfont icon-qiehuanqishang"></i> <div class="name">切换器(上)</div> <div class="fontclass">.icon-qiehuanqishang</div> </li> <li> <i class="icon iconfont icon-diqufucengjinruliangfantuananniu"></i> <div class="name">地区浮层进入梁饭团按钮</div> <div class="fontclass">.icon-diqufucengjinruliangfantuananniu</div> </li> <li> <i class="icon iconfont icon-diquxialajiantou"></i> <div class="name">地区下拉箭头</div> <div class="fontclass">.icon-diquxialajiantou</div> </li> <li> <i class="icon iconfont icon-diantileimu"></i> <div class="name">电梯类目</div> <div class="fontclass">.icon-diantileimu</div> </li> <li> <i class="icon iconfont icon-huiliuqujinkoushipin"></i> <div class="name">回流区进口食品</div> <div class="fontclass">.icon-huiliuqujinkoushipin</div> </li> <li> <i class="icon iconfont icon-jiantoucu"></i> <div class="name">箭头粗</div> <div class="fontclass">.icon-jiantoucu</div> </li> <li> <i class="icon iconfont icon-jiantouxi"></i> <div class="name">箭头细</div> <div class="fontclass">.icon-jiantouxi</div> </li> <li> <i class="icon iconfont icon-jiajuyongpin"></i> <div class="name">家居用品</div> <div class="fontclass">.icon-jiajuyongpin</div> </li> <li> <i class="icon iconfont icon-wodezichan"></i> <div class="name">我的资产</div> <div class="fontclass">.icon-wodezichan</div> </li> <li> <i class="icon iconfont icon-pinpai"></i> <div class="name">品牌</div> <div class="fontclass">.icon-pinpai</div> </li> <li> <i class="icon iconfont icon-tianmaochaoshigouwuche"></i> <div class="name">天猫超市-购物车</div> <div class="fontclass">.icon-tianmaochaoshigouwuche</div> </li> <li> <i class="icon iconfont icon-huanyipi"></i> <div class="name">换一批</div> <div class="fontclass">.icon-huanyipi</div> </li> <li> <i class="icon iconfont icon-xiaojiantou"></i> <div class="name">小箭头</div> <div class="fontclass">.icon-xiaojiantou</div> </li> <li> <i class="icon iconfont icon-jia"></i> <div class="name">加</div> <div class="fontclass">.icon-jia</div> </li> <li> <i class="icon iconfont icon-yiguanzhu"></i> <div class="name">已关注</div> <div class="fontclass">.icon-yiguanzhu</div> </li> <li> <i class="icon iconfont icon-weiguanzhu"></i> <div class="name">未关注</div> <div class="fontclass">.icon-weiguanzhu</div> </li> <li> <i class="icon iconfont icon-yiwen"></i> <div class="name">天猫提示-疑问</div> <div class="fontclass">.icon-yiwen</div> </li> <li> <i class="icon iconfont icon-chucuo"></i> <div class="name">天猫提示-出错</div> <div class="fontclass">.icon-chucuo</div> </li> <li> <i class="icon iconfont icon-jingshi"></i> <div class="name">天猫提示-警示</div> <div class="fontclass">.icon-jingshi</div> </li> <li> <i class="icon iconfont icon-zhengque"></i> <div class="name">天猫提示-正确</div> <div class="fontclass">.icon-zhengque</div> </li> <li> <i class="icon iconfont icon-pinpaizhuanxiang"></i> <div class="name">品牌专享</div> <div class="fontclass">.icon-pinpaizhuanxiang</div> </li> <li> <i class="icon iconfont icon-gonggao"></i> <div class="name">天猫公告</div> <div class="fontclass">.icon-gonggao</div> </li> <li> <i class="icon iconfont icon-tianmaojisutuikuan"></i> <div class="name">天猫-极速退款</div> <div class="fontclass">.icon-tianmaojisutuikuan</div> </li> <li> <i class="icon iconfont icon-tianmaoqitiantuihuo"></i> <div class="name">天猫-七天退货</div> <div class="fontclass">.icon-tianmaoqitiantuihuo</div> </li> <li> <i class="icon iconfont icon-wo"></i> <div class="name">我</div> <div class="fontclass">.icon-wo</div> </li> <li> <i class="icon iconfont icon-biaoqing"></i> <div class="name">表情</div> <div class="fontclass">.icon-biaoqing</div> </li> <li> <i class="icon iconfont icon-gongnengjianyi"></i> <div class="name">功能建议</div> <div class="fontclass">.icon-gongnengjianyi</div> </li> <li> <i class="icon iconfont icon-huanyipi1"></i> <div class="name">换一批</div> <div class="fontclass">.icon-huanyipi1</div> </li> <li> <i class="icon iconfont icon-shengbo"></i> <div class="name">声波</div> <div class="fontclass">.icon-shengbo</div> </li> <li> <i class="icon iconfont icon-chiping"></i> <div class="name">持平</div> <div class="fontclass">.icon-chiping</div> </li> <li> <i class="icon iconfont icon-xiajiang"></i> <div class="name">下降</div> <div class="fontclass">.icon-xiajiang</div> </li> <li> <i class="icon iconfont icon-jinrudianpu"></i> <div class="name">进入店铺</div> <div class="fontclass">.icon-jinrudianpu</div> </li> <li> <i class="icon iconfont icon-pengyouquan"></i> <div class="name">朋友圈</div> <div class="fontclass">.icon-pengyouquan</div> </li> <li> <i class="icon iconfont icon-xinlang"></i> <div class="name">新浪</div> <div class="fontclass">.icon-xinlang</div> </li> <li> <i class="icon iconfont icon-weixin"></i> <div class="name">微信</div> <div class="fontclass">.icon-weixin</div> </li> <li> <i class="icon iconfont icon-mima"></i> <div class="name">密码</div> <div class="fontclass">.icon-mima</div> </li> <li> <i class="icon iconfont icon-erweima"></i> <div class="name">二维码</div> <div class="fontclass">.icon-erweima</div> </li> <li> <i class="icon iconfont icon-lianjie"></i> <div class="name">链接</div> <div class="fontclass">.icon-lianjie</div> </li> <li> <i class="icon iconfont icon-dianzan"></i> <div class="name">点赞</div> <div class="fontclass">.icon-dianzan</div> </li> <li> <i class="icon iconfont icon-fanhui8"></i> <div class="name">返回8</div> <div class="fontclass">.icon-fanhui8</div> </li> <li> <i class="icon iconfont icon-fanhui7"></i> <div class="name">返回7</div> <div class="fontclass">.icon-fanhui7</div> </li> <li> <i class="icon iconfont icon-fanhui6"></i> <div class="name">返回6</div> <div class="fontclass">.icon-fanhui6</div> </li> <li> <i class="icon iconfont icon-fanhui5"></i> <div class="name">返回5</div> <div class="fontclass">.icon-fanhui5</div> </li> <li> <i class="icon iconfont icon-gengduo"></i> <div class="name">更多</div> <div class="fontclass">.icon-gengduo</div> </li> <li> <i class="icon iconfont icon-shoucangxuanzhong"></i> <div class="name">收藏-选中</div> <div class="fontclass">.icon-shoucangxuanzhong</div> </li> <li> <i class="icon iconfont icon-shoucang"></i> <div class="name">收藏</div> <div class="fontclass">.icon-shoucang</div> </li> <li> <i class="icon iconfont icon-fanhui1"></i> <div class="name">返回1</div> <div class="fontclass">.icon-fanhui1</div> </li> <li> <i class="icon iconfont icon-fanhui2"></i> <div class="name">返回2</div> <div class="fontclass">.icon-fanhui2</div> </li> <li> <i class="icon iconfont icon-fanhui3"></i> <div class="name">返回3</div> <div class="fontclass">.icon-fanhui3</div> </li> <li> <i class="icon iconfont icon-fanhui4"></i> <div class="name">返回4</div> <div class="fontclass">.icon-fanhui4</div> </li> <li> <i class="icon iconfont icon-tao"></i> <div class="name">淘</div> <div class="fontclass">.icon-tao</div> </li> <li> <i class="icon iconfont icon-mao"></i> <div class="name">猫</div> <div class="fontclass">.icon-mao</div> </li> <li> <i class="icon iconfont icon-weixuanzhongyuanquan"></i> <div class="name">未选中圆圈</div> <div class="fontclass">.icon-weixuanzhongyuanquan</div> </li> <li> <i class="icon iconfont icon-shanchu2"></i> <div class="name">删除2</div> <div class="fontclass">.icon-shanchu2</div> </li> <li> <i class="icon iconfont icon-dianhua"></i> <div class="name">电话</div> <div class="fontclass">.icon-dianhua</div> </li> <li> <i class="icon iconfont icon-huidaodingbu"></i> <div class="name">回到顶部</div> <div class="fontclass">.icon-huidaodingbu</div> </li> <li> <i class="icon iconfont icon-gouwuchexuanzhong"></i> <div class="name">购物车-选中</div> <div class="fontclass">.icon-gouwuchexuanzhong</div> </li> <li> <i class="icon iconfont icon-wodexuanzhong"></i> <div class="name">我的-选中</div> <div class="fontclass">.icon-wodexuanzhong</div> </li> <li> <i class="icon iconfont icon-paishexuanzhong"></i> <div class="name">拍摄-选中</div> <div class="fontclass">.icon-paishexuanzhong</div> </li> <li> <i class="icon iconfont icon-guanyuwo"></i> <div class="name">关于我</div> <div class="fontclass">.icon-guanyuwo</div> </li> <li> <i class="icon iconfont icon-fenxiang"></i> <div class="name">search</div> <div class="fontclass">.icon-fenxiang</div> </li> <li> <i class="icon iconfont icon-cart"></i> <div class="name">cart</div> <div class="fontclass">.icon-cart</div> </li> <li> <i class="icon iconfont icon-home"></i> <div class="name">home</div> <div class="fontclass">.icon-home</div> </li> <li> <i class="icon iconfont icon-home2"></i> <div class="name">home2</div> <div class="fontclass">.icon-home2</div> </li> <li> <i class="icon iconfont icon-search"></i> <div class="name">search</div> <div class="fontclass">.icon-search</div> </li> <li> <i class="icon iconfont icon-shuaxin"></i> <div class="name">refresh</div> <div class="fontclass">.icon-shuaxin</div> </li> <li> <i class="icon iconfont icon-mine"></i> <div class="name">mine</div> <div class="fontclass">.icon-mine</div> </li> <li> <i class="icon iconfont icon-mine2"></i> <div class="name">mine2</div> <div class="fontclass">.icon-mine2</div> </li> <li> <i class="icon iconfont icon-chakan2"></i> <div class="name">查看2</div> <div class="fontclass">.icon-chakan2</div> </li> <li> <i class="icon iconfont icon-iconfontscan"></i> <div class="name">扫码</div> <div class="fontclass">.icon-iconfontscan</div> </li> <li> <i class="icon iconfont icon-shezhi"></i> <div class="name">设置</div> <div class="fontclass">.icon-shezhi</div> </li> </ul> <h2 id="font-class-">font-class引用</h2> <hr> <p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p> <p>与unicode使用方式相比,具有如下特点:</p> <ul> <li>兼容性良好,支持ie8+,及所有现代浏览器。</li> <li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li> <li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li> <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li> </ul> <p>使用步骤如下:</p> <h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3> <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre> <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3> <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre> <blockquote> <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p> </blockquote> </div> </body> </html>
2401_83448718/meirimall
meirimall-search/src/main/resources/static/search/font/demo_fontclass.html
HTML
apache-2.0
24,463
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>IconFont</title> <link rel="stylesheet" href="demo.css"> <script src="iconfont.js"></script> <style type="text/css"> .icon { /* 通过设置 font-size 来改变图标大小 */ width: 1em; height: 1em; /* 图标和文字相邻时,垂直对齐 */ vertical-align: -0.15em; /* 通过设置 color 来改变 SVG 的颜色/fill */ fill: currentColor; /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示 normalize.css 中也包含这行 */ overflow: hidden; } </style> </head> <body> <div class="main markdown"> <h1>IconFont 图标</h1> <ul class="icon_lists clear"> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-tianmaopaidui"></use> </svg> <div class="name">天猫派对</div> <div class="fontclass">#icon-tianmaopaidui</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-kefuyouxian"></use> </svg> <div class="name">客服优先</div> <div class="fontclass">#icon-kefuyouxian</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-liebiao"></use> </svg> <div class="name">列表</div> <div class="fontclass">#icon-liebiao</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-chongzhi"></use> </svg> <div class="name">充值</div> <div class="fontclass">#icon-chongzhi</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-kafei"></use> </svg> <div class="name">咖啡</div> <div class="fontclass">#icon-kafei</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-yaopin"></use> </svg> <div class="name">药品</div> <div class="fontclass">#icon-yaopin</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-hanbao"></use> </svg> <div class="name">汉堡</div> <div class="fontclass">#icon-hanbao</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-kouhong"></use> </svg> <div class="name">口红</div> <div class="fontclass">#icon-kouhong</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-tushu"></use> </svg> <div class="name">图书</div> <div class="fontclass">#icon-tushu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-shouji"></use> </svg> <div class="name">手机</div> <div class="fontclass">#icon-shouji</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-liebiao1"></use> </svg> <div class="name">列表</div> <div class="fontclass">#icon-liebiao1</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-gouwucheman"></use> </svg> <div class="name">购物车满</div> <div class="fontclass">#icon-gouwucheman</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-huangguan"></use> </svg> <div class="name">皇冠</div> <div class="fontclass">#icon-huangguan</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-chuzu"></use> </svg> <div class="name">出租</div> <div class="fontclass">#icon-chuzu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-xiexiangbao"></use> </svg> <div class="name">鞋\箱包</div> <div class="fontclass">#icon-xiexiangbao</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-jingxuanshichang"></use> </svg> <div class="name">精选市场</div> <div class="fontclass">#icon-jingxuanshichang</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-zhubaoshipin"></use> </svg> <div class="name">珠宝饰品</div> <div class="fontclass">#icon-zhubaoshipin</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-shumashouji"></use> </svg> <div class="name">数码手机</div> <div class="fontclass">#icon-shumashouji</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-xiebao"></use> </svg> <div class="name">鞋/包</div> <div class="fontclass">#icon-xiebao</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-qichepeijian"></use> </svg> <div class="name">汽车配件</div> <div class="fontclass">#icon-qichepeijian</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-tianmaoxingxiang1"></use> </svg> <div class="name">天猫形象1</div> <div class="fontclass">#icon-tianmaoxingxiang1</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-tianmaoxingxiang2"></use> </svg> <div class="name">天猫形象2</div> <div class="fontclass">#icon-tianmaoxingxiang2</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-qiehuanqiyou"></use> </svg> <div class="name">切换器右</div> <div class="fontclass">#icon-qiehuanqiyou</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-qiehuanqizuo"></use> </svg> <div class="name">切换器左</div> <div class="fontclass">#icon-qiehuanqizuo</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-qiehuanqishang"></use> </svg> <div class="name">切换器(上)</div> <div class="fontclass">#icon-qiehuanqishang</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-diqufucengjinruliangfantuananniu"></use> </svg> <div class="name">地区浮层进入梁饭团按钮</div> <div class="fontclass">#icon-diqufucengjinruliangfantuananniu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-diquxialajiantou"></use> </svg> <div class="name">地区下拉箭头</div> <div class="fontclass">#icon-diquxialajiantou</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-diantileimu"></use> </svg> <div class="name">电梯类目</div> <div class="fontclass">#icon-diantileimu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-huiliuqujinkoushipin"></use> </svg> <div class="name">回流区进口食品</div> <div class="fontclass">#icon-huiliuqujinkoushipin</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-jiantoucu"></use> </svg> <div class="name">箭头粗</div> <div class="fontclass">#icon-jiantoucu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-jiantouxi"></use> </svg> <div class="name">箭头细</div> <div class="fontclass">#icon-jiantouxi</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-jiajuyongpin"></use> </svg> <div class="name">家居用品</div> <div class="fontclass">#icon-jiajuyongpin</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-wodezichan"></use> </svg> <div class="name">我的资产</div> <div class="fontclass">#icon-wodezichan</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-pinpai"></use> </svg> <div class="name">品牌</div> <div class="fontclass">#icon-pinpai</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-tianmaochaoshigouwuche"></use> </svg> <div class="name">天猫超市-购物车</div> <div class="fontclass">#icon-tianmaochaoshigouwuche</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-huanyipi"></use> </svg> <div class="name">换一批</div> <div class="fontclass">#icon-huanyipi</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-xiaojiantou"></use> </svg> <div class="name">小箭头</div> <div class="fontclass">#icon-xiaojiantou</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-jia"></use> </svg> <div class="name">加</div> <div class="fontclass">#icon-jia</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-yiguanzhu"></use> </svg> <div class="name">已关注</div> <div class="fontclass">#icon-yiguanzhu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-weiguanzhu"></use> </svg> <div class="name">未关注</div> <div class="fontclass">#icon-weiguanzhu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-yiwen"></use> </svg> <div class="name">天猫提示-疑问</div> <div class="fontclass">#icon-yiwen</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-chucuo"></use> </svg> <div class="name">天猫提示-出错</div> <div class="fontclass">#icon-chucuo</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-jingshi"></use> </svg> <div class="name">天猫提示-警示</div> <div class="fontclass">#icon-jingshi</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-zhengque"></use> </svg> <div class="name">天猫提示-正确</div> <div class="fontclass">#icon-zhengque</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-pinpaizhuanxiang"></use> </svg> <div class="name">品牌专享</div> <div class="fontclass">#icon-pinpaizhuanxiang</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-gonggao"></use> </svg> <div class="name">天猫公告</div> <div class="fontclass">#icon-gonggao</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-tianmaojisutuikuan"></use> </svg> <div class="name">天猫-极速退款</div> <div class="fontclass">#icon-tianmaojisutuikuan</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-tianmaoqitiantuihuo"></use> </svg> <div class="name">天猫-七天退货</div> <div class="fontclass">#icon-tianmaoqitiantuihuo</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-wo"></use> </svg> <div class="name">我</div> <div class="fontclass">#icon-wo</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-biaoqing"></use> </svg> <div class="name">表情</div> <div class="fontclass">#icon-biaoqing</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-gongnengjianyi"></use> </svg> <div class="name">功能建议</div> <div class="fontclass">#icon-gongnengjianyi</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-huanyipi1"></use> </svg> <div class="name">换一批</div> <div class="fontclass">#icon-huanyipi1</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-shengbo"></use> </svg> <div class="name">声波</div> <div class="fontclass">#icon-shengbo</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-chiping"></use> </svg> <div class="name">持平</div> <div class="fontclass">#icon-chiping</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-xiajiang"></use> </svg> <div class="name">下降</div> <div class="fontclass">#icon-xiajiang</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-jinrudianpu"></use> </svg> <div class="name">进入店铺</div> <div class="fontclass">#icon-jinrudianpu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-pengyouquan"></use> </svg> <div class="name">朋友圈</div> <div class="fontclass">#icon-pengyouquan</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-xinlang"></use> </svg> <div class="name">新浪</div> <div class="fontclass">#icon-xinlang</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-weixin"></use> </svg> <div class="name">微信</div> <div class="fontclass">#icon-weixin</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-mima"></use> </svg> <div class="name">密码</div> <div class="fontclass">#icon-mima</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-erweima"></use> </svg> <div class="name">二维码</div> <div class="fontclass">#icon-erweima</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-lianjie"></use> </svg> <div class="name">链接</div> <div class="fontclass">#icon-lianjie</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-dianzan"></use> </svg> <div class="name">点赞</div> <div class="fontclass">#icon-dianzan</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fanhui8"></use> </svg> <div class="name">返回8</div> <div class="fontclass">#icon-fanhui8</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fanhui7"></use> </svg> <div class="name">返回7</div> <div class="fontclass">#icon-fanhui7</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fanhui6"></use> </svg> <div class="name">返回6</div> <div class="fontclass">#icon-fanhui6</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fanhui5"></use> </svg> <div class="name">返回5</div> <div class="fontclass">#icon-fanhui5</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-gengduo"></use> </svg> <div class="name">更多</div> <div class="fontclass">#icon-gengduo</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-shoucangxuanzhong"></use> </svg> <div class="name">收藏-选中</div> <div class="fontclass">#icon-shoucangxuanzhong</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-shoucang"></use> </svg> <div class="name">收藏</div> <div class="fontclass">#icon-shoucang</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fanhui1"></use> </svg> <div class="name">返回1</div> <div class="fontclass">#icon-fanhui1</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fanhui2"></use> </svg> <div class="name">返回2</div> <div class="fontclass">#icon-fanhui2</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fanhui3"></use> </svg> <div class="name">返回3</div> <div class="fontclass">#icon-fanhui3</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fanhui4"></use> </svg> <div class="name">返回4</div> <div class="fontclass">#icon-fanhui4</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-tao"></use> </svg> <div class="name">淘</div> <div class="fontclass">#icon-tao</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-mao"></use> </svg> <div class="name">猫</div> <div class="fontclass">#icon-mao</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-weixuanzhongyuanquan"></use> </svg> <div class="name">未选中圆圈</div> <div class="fontclass">#icon-weixuanzhongyuanquan</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-shanchu2"></use> </svg> <div class="name">删除2</div> <div class="fontclass">#icon-shanchu2</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-dianhua"></use> </svg> <div class="name">电话</div> <div class="fontclass">#icon-dianhua</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-huidaodingbu"></use> </svg> <div class="name">回到顶部</div> <div class="fontclass">#icon-huidaodingbu</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-gouwuchexuanzhong"></use> </svg> <div class="name">购物车-选中</div> <div class="fontclass">#icon-gouwuchexuanzhong</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-wodexuanzhong"></use> </svg> <div class="name">我的-选中</div> <div class="fontclass">#icon-wodexuanzhong</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-paishexuanzhong"></use> </svg> <div class="name">拍摄-选中</div> <div class="fontclass">#icon-paishexuanzhong</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-guanyuwo"></use> </svg> <div class="name">关于我</div> <div class="fontclass">#icon-guanyuwo</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-fenxiang"></use> </svg> <div class="name">search</div> <div class="fontclass">#icon-fenxiang</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-cart"></use> </svg> <div class="name">cart</div> <div class="fontclass">#icon-cart</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-home"></use> </svg> <div class="name">home</div> <div class="fontclass">#icon-home</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-home2"></use> </svg> <div class="name">home2</div> <div class="fontclass">#icon-home2</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-search"></use> </svg> <div class="name">search</div> <div class="fontclass">#icon-search</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-shuaxin"></use> </svg> <div class="name">refresh</div> <div class="fontclass">#icon-shuaxin</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-mine"></use> </svg> <div class="name">mine</div> <div class="fontclass">#icon-mine</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-mine2"></use> </svg> <div class="name">mine2</div> <div class="fontclass">#icon-mine2</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-chakan2"></use> </svg> <div class="name">查看2</div> <div class="fontclass">#icon-chakan2</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-iconfontscan"></use> </svg> <div class="name">扫码</div> <div class="fontclass">#icon-iconfontscan</div> </li> <li> <svg class="icon" aria-hidden="true"> <use xlink:href="#icon-shezhi"></use> </svg> <div class="name">设置</div> <div class="fontclass">#icon-shezhi</div> </li> </ul> <h2 id="symbol-">symbol引用</h2> <hr> <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a> 这种用法其实是做了一个svg的集合,与另外两种相比具有如下特点:</p> <ul> <li>支持多色图标了,不再受单色限制。</li> <li>通过一些技巧,支持像字体那样,通过<code>font-size</code>,<code>color</code>来调整样式。</li> <li>兼容性较差,支持 ie9+,及现代浏览器。</li> <li>浏览器渲染svg的性能一般,还不如png。</li> </ul> <p>使用步骤如下:</p> <h3 id="-symbol-">第一步:引入项目下面生成的symbol代码:</h3> <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre> <h3 id="-css-">第二步:加入通用css代码(引入一次就行):</h3> <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt; .icon { width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em; vertical-align: <span class="hljs-number">-0.15</span>em; fill: currentColor; overflow: hidden; } &lt;<span class="hljs-regexp">/style&gt;</span></code></pre> <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3> <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag"> &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span> </span>&lt;<span class="hljs-regexp">/svg&gt; </span></code></pre> </div> </body> </html>
2401_83448718/meirimall
meirimall-search/src/main/resources/static/search/font/demo_symbol.html
HTML
apache-2.0
33,948
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>IconFont</title> <link rel="stylesheet" href="demo.css"> <style type="text/css"> @font-face {font-family: "iconfont"; src: url('iconfont.eot'); /* IE9*/ src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('iconfont.woff') format('woff'), /* chrome, firefox */ url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */ } .iconfont { font-family:"iconfont" !important; font-size:16px; font-style:normal; -webkit-font-smoothing: antialiased; -webkit-text-stroke-width: 0.2px; -moz-osx-font-smoothing: grayscale; } </style> </head> <body> <div class="main markdown"> <h1>IconFont 图标</h1> <ul class="icon_lists clear"> <li> <i class="icon iconfont">&#xe600;</i> <div class="name">天猫派对</div> <div class="code">&amp;#xe600;</div> </li> <li> <i class="icon iconfont">&#xe601;</i> <div class="name">客服优先</div> <div class="code">&amp;#xe601;</div> </li> <li> <i class="icon iconfont">&#xe602;</i> <div class="name">列表</div> <div class="code">&amp;#xe602;</div> </li> <li> <i class="icon iconfont">&#xe603;</i> <div class="name">充值</div> <div class="code">&amp;#xe603;</div> </li> <li> <i class="icon iconfont">&#xe604;</i> <div class="name">咖啡</div> <div class="code">&amp;#xe604;</div> </li> <li> <i class="icon iconfont">&#xe605;</i> <div class="name">药品</div> <div class="code">&amp;#xe605;</div> </li> <li> <i class="icon iconfont">&#xe606;</i> <div class="name">汉堡</div> <div class="code">&amp;#xe606;</div> </li> <li> <i class="icon iconfont">&#xe607;</i> <div class="name">口红</div> <div class="code">&amp;#xe607;</div> </li> <li> <i class="icon iconfont">&#xe608;</i> <div class="name">图书</div> <div class="code">&amp;#xe608;</div> </li> <li> <i class="icon iconfont">&#xe609;</i> <div class="name">手机</div> <div class="code">&amp;#xe609;</div> </li> <li> <i class="icon iconfont">&#xe60a;</i> <div class="name">列表</div> <div class="code">&amp;#xe60a;</div> </li> <li> <i class="icon iconfont">&#xe60b;</i> <div class="name">购物车满</div> <div class="code">&amp;#xe60b;</div> </li> <li> <i class="icon iconfont">&#xe60c;</i> <div class="name">皇冠</div> <div class="code">&amp;#xe60c;</div> </li> <li> <i class="icon iconfont">&#xe60d;</i> <div class="name">出租</div> <div class="code">&amp;#xe60d;</div> </li> <li> <i class="icon iconfont">&#xe60e;</i> <div class="name">鞋\箱包</div> <div class="code">&amp;#xe60e;</div> </li> <li> <i class="icon iconfont">&#xe60f;</i> <div class="name">精选市场</div> <div class="code">&amp;#xe60f;</div> </li> <li> <i class="icon iconfont">&#xe610;</i> <div class="name">珠宝饰品</div> <div class="code">&amp;#xe610;</div> </li> <li> <i class="icon iconfont">&#xe611;</i> <div class="name">数码手机</div> <div class="code">&amp;#xe611;</div> </li> <li> <i class="icon iconfont">&#xe612;</i> <div class="name">鞋/包</div> <div class="code">&amp;#xe612;</div> </li> <li> <i class="icon iconfont">&#xe613;</i> <div class="name">汽车配件</div> <div class="code">&amp;#xe613;</div> </li> <li> <i class="icon iconfont">&#xe614;</i> <div class="name">天猫形象1</div> <div class="code">&amp;#xe614;</div> </li> <li> <i class="icon iconfont">&#xe615;</i> <div class="name">天猫形象2</div> <div class="code">&amp;#xe615;</div> </li> <li> <i class="icon iconfont">&#xe616;</i> <div class="name">切换器右</div> <div class="code">&amp;#xe616;</div> </li> <li> <i class="icon iconfont">&#xe617;</i> <div class="name">切换器左</div> <div class="code">&amp;#xe617;</div> </li> <li> <i class="icon iconfont">&#xe618;</i> <div class="name">切换器(上)</div> <div class="code">&amp;#xe618;</div> </li> <li> <i class="icon iconfont">&#xe619;</i> <div class="name">地区浮层进入梁饭团按钮</div> <div class="code">&amp;#xe619;</div> </li> <li> <i class="icon iconfont">&#xe61a;</i> <div class="name">地区下拉箭头</div> <div class="code">&amp;#xe61a;</div> </li> <li> <i class="icon iconfont">&#xe61b;</i> <div class="name">电梯类目</div> <div class="code">&amp;#xe61b;</div> </li> <li> <i class="icon iconfont">&#xe61c;</i> <div class="name">回流区进口食品</div> <div class="code">&amp;#xe61c;</div> </li> <li> <i class="icon iconfont">&#xe61d;</i> <div class="name">箭头粗</div> <div class="code">&amp;#xe61d;</div> </li> <li> <i class="icon iconfont">&#xe61e;</i> <div class="name">箭头细</div> <div class="code">&amp;#xe61e;</div> </li> <li> <i class="icon iconfont">&#xe61f;</i> <div class="name">家居用品</div> <div class="code">&amp;#xe61f;</div> </li> <li> <i class="icon iconfont">&#xe620;</i> <div class="name">我的资产</div> <div class="code">&amp;#xe620;</div> </li> <li> <i class="icon iconfont">&#xe621;</i> <div class="name">品牌</div> <div class="code">&amp;#xe621;</div> </li> <li> <i class="icon iconfont">&#xe622;</i> <div class="name">天猫超市-购物车</div> <div class="code">&amp;#xe622;</div> </li> <li> <i class="icon iconfont">&#xe623;</i> <div class="name">换一批</div> <div class="code">&amp;#xe623;</div> </li> <li> <i class="icon iconfont">&#xe624;</i> <div class="name">小箭头</div> <div class="code">&amp;#xe624;</div> </li> <li> <i class="icon iconfont">&#xe625;</i> <div class="name">加</div> <div class="code">&amp;#xe625;</div> </li> <li> <i class="icon iconfont">&#xe626;</i> <div class="name">已关注</div> <div class="code">&amp;#xe626;</div> </li> <li> <i class="icon iconfont">&#xe627;</i> <div class="name">未关注</div> <div class="code">&amp;#xe627;</div> </li> <li> <i class="icon iconfont">&#xe628;</i> <div class="name">天猫提示-疑问</div> <div class="code">&amp;#xe628;</div> </li> <li> <i class="icon iconfont">&#xe629;</i> <div class="name">天猫提示-出错</div> <div class="code">&amp;#xe629;</div> </li> <li> <i class="icon iconfont">&#xe62a;</i> <div class="name">天猫提示-警示</div> <div class="code">&amp;#xe62a;</div> </li> <li> <i class="icon iconfont">&#xe62b;</i> <div class="name">天猫提示-正确</div> <div class="code">&amp;#xe62b;</div> </li> <li> <i class="icon iconfont">&#xe62c;</i> <div class="name">品牌专享</div> <div class="code">&amp;#xe62c;</div> </li> <li> <i class="icon iconfont">&#xe62d;</i> <div class="name">天猫公告</div> <div class="code">&amp;#xe62d;</div> </li> <li> <i class="icon iconfont">&#xe62e;</i> <div class="name">天猫-极速退款</div> <div class="code">&amp;#xe62e;</div> </li> <li> <i class="icon iconfont">&#xe62f;</i> <div class="name">天猫-七天退货</div> <div class="code">&amp;#xe62f;</div> </li> <li> <i class="icon iconfont">&#xe630;</i> <div class="name">我</div> <div class="code">&amp;#xe630;</div> </li> <li> <i class="icon iconfont">&#xe631;</i> <div class="name">表情</div> <div class="code">&amp;#xe631;</div> </li> <li> <i class="icon iconfont">&#xe632;</i> <div class="name">功能建议</div> <div class="code">&amp;#xe632;</div> </li> <li> <i class="icon iconfont">&#xe633;</i> <div class="name">换一批</div> <div class="code">&amp;#xe633;</div> </li> <li> <i class="icon iconfont">&#xe634;</i> <div class="name">声波</div> <div class="code">&amp;#xe634;</div> </li> <li> <i class="icon iconfont">&#xe635;</i> <div class="name">持平</div> <div class="code">&amp;#xe635;</div> </li> <li> <i class="icon iconfont">&#xe636;</i> <div class="name">下降</div> <div class="code">&amp;#xe636;</div> </li> <li> <i class="icon iconfont">&#xe637;</i> <div class="name">进入店铺</div> <div class="code">&amp;#xe637;</div> </li> <li> <i class="icon iconfont">&#xe638;</i> <div class="name">朋友圈</div> <div class="code">&amp;#xe638;</div> </li> <li> <i class="icon iconfont">&#xe639;</i> <div class="name">新浪</div> <div class="code">&amp;#xe639;</div> </li> <li> <i class="icon iconfont">&#xe63a;</i> <div class="name">微信</div> <div class="code">&amp;#xe63a;</div> </li> <li> <i class="icon iconfont">&#xe63b;</i> <div class="name">密码</div> <div class="code">&amp;#xe63b;</div> </li> <li> <i class="icon iconfont">&#xe63c;</i> <div class="name">二维码</div> <div class="code">&amp;#xe63c;</div> </li> <li> <i class="icon iconfont">&#xe63d;</i> <div class="name">链接</div> <div class="code">&amp;#xe63d;</div> </li> <li> <i class="icon iconfont">&#xe63e;</i> <div class="name">点赞</div> <div class="code">&amp;#xe63e;</div> </li> <li> <i class="icon iconfont">&#xe63f;</i> <div class="name">返回8</div> <div class="code">&amp;#xe63f;</div> </li> <li> <i class="icon iconfont">&#xe640;</i> <div class="name">返回7</div> <div class="code">&amp;#xe640;</div> </li> <li> <i class="icon iconfont">&#xe641;</i> <div class="name">返回6</div> <div class="code">&amp;#xe641;</div> </li> <li> <i class="icon iconfont">&#xe642;</i> <div class="name">返回5</div> <div class="code">&amp;#xe642;</div> </li> <li> <i class="icon iconfont">&#xe643;</i> <div class="name">更多</div> <div class="code">&amp;#xe643;</div> </li> <li> <i class="icon iconfont">&#xe644;</i> <div class="name">收藏-选中</div> <div class="code">&amp;#xe644;</div> </li> <li> <i class="icon iconfont">&#xe645;</i> <div class="name">收藏</div> <div class="code">&amp;#xe645;</div> </li> <li> <i class="icon iconfont">&#xe646;</i> <div class="name">返回1</div> <div class="code">&amp;#xe646;</div> </li> <li> <i class="icon iconfont">&#xe647;</i> <div class="name">返回2</div> <div class="code">&amp;#xe647;</div> </li> <li> <i class="icon iconfont">&#xe648;</i> <div class="name">返回3</div> <div class="code">&amp;#xe648;</div> </li> <li> <i class="icon iconfont">&#xe649;</i> <div class="name">返回4</div> <div class="code">&amp;#xe649;</div> </li> <li> <i class="icon iconfont">&#xe64a;</i> <div class="name">淘</div> <div class="code">&amp;#xe64a;</div> </li> <li> <i class="icon iconfont">&#xe64b;</i> <div class="name">猫</div> <div class="code">&amp;#xe64b;</div> </li> <li> <i class="icon iconfont">&#xe64c;</i> <div class="name">未选中圆圈</div> <div class="code">&amp;#xe64c;</div> </li> <li> <i class="icon iconfont">&#xe64d;</i> <div class="name">删除2</div> <div class="code">&amp;#xe64d;</div> </li> <li> <i class="icon iconfont">&#xe64e;</i> <div class="name">电话</div> <div class="code">&amp;#xe64e;</div> </li> <li> <i class="icon iconfont">&#xe64f;</i> <div class="name">回到顶部</div> <div class="code">&amp;#xe64f;</div> </li> <li> <i class="icon iconfont">&#xe650;</i> <div class="name">购物车-选中</div> <div class="code">&amp;#xe650;</div> </li> <li> <i class="icon iconfont">&#xe651;</i> <div class="name">我的-选中</div> <div class="code">&amp;#xe651;</div> </li> <li> <i class="icon iconfont">&#xe652;</i> <div class="name">拍摄-选中</div> <div class="code">&amp;#xe652;</div> </li> <li> <i class="icon iconfont">&#xe653;</i> <div class="name">关于我</div> <div class="code">&amp;#xe653;</div> </li> <li> <i class="icon iconfont">&#xe654;</i> <div class="name">search</div> <div class="code">&amp;#xe654;</div> </li> <li> <i class="icon iconfont">&#xe655;</i> <div class="name">cart</div> <div class="code">&amp;#xe655;</div> </li> <li> <i class="icon iconfont">&#xe656;</i> <div class="name">home</div> <div class="code">&amp;#xe656;</div> </li> <li> <i class="icon iconfont">&#xe657;</i> <div class="name">home2</div> <div class="code">&amp;#xe657;</div> </li> <li> <i class="icon iconfont">&#xe658;</i> <div class="name">search</div> <div class="code">&amp;#xe658;</div> </li> <li> <i class="icon iconfont">&#xe659;</i> <div class="name">refresh</div> <div class="code">&amp;#xe659;</div> </li> <li> <i class="icon iconfont">&#xe65a;</i> <div class="name">mine</div> <div class="code">&amp;#xe65a;</div> </li> <li> <i class="icon iconfont">&#xe65b;</i> <div class="name">mine2</div> <div class="code">&amp;#xe65b;</div> </li> <li> <i class="icon iconfont">&#xe65c;</i> <div class="name">查看2</div> <div class="code">&amp;#xe65c;</div> </li> <li> <i class="icon iconfont">&#xe65d;</i> <div class="name">扫码</div> <div class="code">&amp;#xe65d;</div> </li> <li> <i class="icon iconfont">&#xe65e;</i> <div class="name">设置</div> <div class="code">&amp;#xe65e;</div> </li> </ul> <h2 id="unicode-">unicode引用</h2> <hr> <p>unicode是字体在网页端最原始的应用方式,特点是:</p> <ul> <li>兼容性最好,支持ie6+,及所有现代浏览器。</li> <li>支持按字体的方式去动态调整图标大小,颜色等等。</li> <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li> </ul> <blockquote> <p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p> </blockquote> <p>unicode使用步骤如下:</p> <h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3> <pre><code class="lang-js hljs javascript">@font-face { font-family: <span class="hljs-string">'iconfont'</span>; src: url(<span class="hljs-string">'iconfont.eot'</span>); src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>), url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>), url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>), url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>); } </code></pre> <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3> <pre><code class="lang-js hljs javascript">.iconfont{ font-family:<span class="hljs-string">"iconfont"</span> !important; font-size:<span class="hljs-number">16</span>px;font-style:normal; -webkit-font-smoothing: antialiased; -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px; -moz-osx-font-smoothing: grayscale; } </code></pre> <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3> <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre> <blockquote> <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p> </blockquote> </div> </body> </html>
2401_83448718/meirimall
meirimall-search/src/main/resources/static/search/font/demo_unicode.html
HTML
apache-2.0
24,556
@font-face {font-family: "iconfont"; src: url('iconfont.eot?t=1495179656039'); /* IE9*/ src: url('iconfont.eot?t=1495179656039#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('iconfont.woff?t=1495179656039') format('woff'), /* chrome, firefox */ url('iconfont.ttf?t=1495179656039') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ url('iconfont.svg?t=1495179656039#iconfont') format('svg'); /* iOS 4.1- */ } .iconfont { font-family:"iconfont" !important; font-size:16px; font-style:normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-tianmaopaidui:before { content: "\e600"; } .icon-kefuyouxian:before { content: "\e601"; } .icon-liebiao:before { content: "\e602"; } .icon-chongzhi:before { content: "\e603"; } .icon-kafei:before { content: "\e604"; } .icon-yaopin:before { content: "\e605"; } .icon-hanbao:before { content: "\e606"; } .icon-kouhong:before { content: "\e607"; } .icon-tushu:before { content: "\e608"; } .icon-shouji:before { content: "\e609"; } .icon-liebiao1:before { content: "\e60a"; } .icon-gouwucheman:before { content: "\e60b"; } .icon-huangguan:before { content: "\e60c"; } .icon-chuzu:before { content: "\e60d"; } .icon-xiexiangbao:before { content: "\e60e"; } .icon-jingxuanshichang:before { content: "\e60f"; } .icon-zhubaoshipin:before { content: "\e610"; } .icon-shumashouji:before { content: "\e611"; } .icon-xiebao:before { content: "\e612"; } .icon-qichepeijian:before { content: "\e613"; } .icon-tianmaoxingxiang1:before { content: "\e614"; } .icon-tianmaoxingxiang2:before { content: "\e615"; } .icon-qiehuanqiyou:before { content: "\e616"; } .icon-qiehuanqizuo:before { content: "\e617"; } .icon-qiehuanqishang:before { content: "\e618"; } .icon-diqufucengjinruliangfantuananniu:before { content: "\e619"; } .icon-diquxialajiantou:before { content: "\e61a"; } .icon-diantileimu:before { content: "\e61b"; } .icon-huiliuqujinkoushipin:before { content: "\e61c"; } .icon-jiantoucu:before { content: "\e61d"; } .icon-jiantouxi:before { content: "\e61e"; } .icon-jiajuyongpin:before { content: "\e61f"; } .icon-wodezichan:before { content: "\e620"; } .icon-pinpai:before { content: "\e621"; } .icon-tianmaochaoshigouwuche:before { content: "\e622"; } .icon-huanyipi:before { content: "\e623"; } .icon-xiaojiantou:before { content: "\e624"; } .icon-jia:before { content: "\e625"; } .icon-yiguanzhu:before { content: "\e626"; } .icon-weiguanzhu:before { content: "\e627"; } .icon-yiwen:before { content: "\e628"; } .icon-chucuo:before { content: "\e629"; } .icon-jingshi:before { content: "\e62a"; } .icon-zhengque:before { content: "\e62b"; } .icon-pinpaizhuanxiang:before { content: "\e62c"; } .icon-gonggao:before { content: "\e62d"; } .icon-tianmaojisutuikuan:before { content: "\e62e"; } .icon-tianmaoqitiantuihuo:before { content: "\e62f"; } .icon-wo:before { content: "\e630"; } .icon-biaoqing:before { content: "\e631"; } .icon-gongnengjianyi:before { content: "\e632"; } .icon-huanyipi1:before { content: "\e633"; } .icon-shengbo:before { content: "\e634"; } .icon-chiping:before { content: "\e635"; } .icon-xiajiang:before { content: "\e636"; } .icon-jinrudianpu:before { content: "\e637"; } .icon-pengyouquan:before { content: "\e638"; } .icon-xinlang:before { content: "\e639"; } .icon-weixin:before { content: "\e63a"; } .icon-mima:before { content: "\e63b"; } .icon-erweima:before { content: "\e63c"; } .icon-lianjie:before { content: "\e63d"; } .icon-dianzan:before { content: "\e63e"; } .icon-fanhui8:before { content: "\e63f"; } .icon-fanhui7:before { content: "\e640"; } .icon-fanhui6:before { content: "\e641"; } .icon-fanhui5:before { content: "\e642"; } .icon-gengduo:before { content: "\e643"; } .icon-shoucangxuanzhong:before { content: "\e644"; } .icon-shoucang:before { content: "\e645"; } .icon-fanhui1:before { content: "\e646"; } .icon-fanhui2:before { content: "\e647"; } .icon-fanhui3:before { content: "\e648"; } .icon-fanhui4:before { content: "\e649"; } .icon-tao:before { content: "\e64a"; } .icon-mao:before { content: "\e64b"; } .icon-weixuanzhongyuanquan:before { content: "\e64c"; } .icon-shanchu2:before { content: "\e64d"; } .icon-dianhua:before { content: "\e64e"; } .icon-huidaodingbu:before { content: "\e64f"; } .icon-gouwuchexuanzhong:before { content: "\e650"; } .icon-wodexuanzhong:before { content: "\e651"; } .icon-paishexuanzhong:before { content: "\e652"; } .icon-guanyuwo:before { content: "\e653"; } .icon-fenxiang:before { content: "\e654"; } .icon-cart:before { content: "\e655"; } .icon-home:before { content: "\e656"; } .icon-home2:before { content: "\e657"; } .icon-search:before { content: "\e658"; } .icon-shuaxin:before { content: "\e659"; } .icon-mine:before { content: "\e65a"; } .icon-mine2:before { content: "\e65b"; } .icon-chakan2:before { content: "\e65c"; } .icon-iconfontscan:before { content: "\e65d"; } .icon-shezhi:before { content: "\e65e"; }
2401_83448718/meirimall
meirimall-search/src/main/resources/static/search/font/iconfont.css
CSS
apache-2.0
5,034
@charset "utf-8"; * { margin: 0; padding: 0; } li, ul { list-style: none; } a{ color: #000; } body, html { background: #fff; position: relative; } //头部 .header_head { background: #E3E4E5; height: 30px; line-height: 30px; position: relative; .header_head_box { width: 1210px; margin: 0 auto; .img { float: left; display: block; width: 190px; height: 170px; } .header_head_p { font-size: 12px; float: left; position: relative; width: 160px; height: 30px; margin-left: 10px; font-weight: 100; a{ text-decoration: none; color: #999; float: left; display: block; width: 60px; text-align: center; } .header_head_p_a1:hover{ color: red; } } .header_head_p_cs { position: absolute; width: 340px; height: 230px; top: 30px; left: 60px; background: #fff; z-index: 200; display: none; a { color: #999; display: block; width: 15%; margin: 5px 5px 0 0; text-align: center; float: left; font-weight: 100; text-decoration: none; } a:hover { color: #C81623; } } ul { float: right; li { float: left; padding: 0 10px; a { text-decoration: none; color: #999; font-size: 12px; } .li_2 { color: red; } } a:hover { color: #C81623; } .header_wdjd { width: 60px; position: relative; img{ position: absolute; right:6px; top:12px; transition-duration:1s; } img:hover{ transform: rotate(180deg); } .header_wdjd_txt { position: absolute; top: 30px; left: 0; width: 208px; height: 170px; background: #fff; z-index: 10; display: none; ul:nth-child(2) { margin-top: 15px; padding-top: 10px; border-top: 1px solid #ccc; } li { width: 84px; height: 25px; } } } .header_wdjd1 { width: 60px; position: relative; img{ position: absolute; right:6px; top:12px; transition-duration:1s; } .header_wdjd_txt { position: absolute; top: 30px; left: -100px; width: 180px; height: 270px; background: #fff; z-index: 10; display: none; p { color: #666; font-size: 14px; padding: 0 20px 0 10px; } ul:nth-child(2) { margin-top: 10px; border-top: 1px solid #ccc; } li { width: 70px; height: 27px; } } } .header_sjjd { position: relative; .header_sjjd_div { position: absolute; top: 30px; display: none; right: 5px; border: 1px solid #ccc; padding: 3px 3px 0; } } .header_wzdh { position: relative; .header_wzdh_txt { position: absolute; top: 30px; left: -1057px; background: #fff; z-index: 10; width: 1210px; height: 190px; display: none; ul { padding: 10px; float: left; width: 25%; height: 100%; border-right: 1px solid #eee; p { margin-left: 10px; margin-bottom: -5px; } li { height: 25px; } } } } span { font-size: 12px; color: #ccc; float: left; } } } } //搜索导航 .header_sous { width: 1210px; margin: 0 auto; position: relative; z-index: 1; height: 140px; .logo{ //position: relative; z-index: 12; float: left; width: 276px; height: 50px; margin: 15px 0 22px; } .header_form { overflow: hidden; background: #f10215; position: absolute; left: 380px; top: 27px; width: 550px; height: 35px; border: 2px solid #f10215; float: left; input { padding: 4px; width: 460px; height: 33px; line-height: 33px; font-size: 14px; color: #989898; border: 0; outline: none; float: left; } a{ color: #fff; border:0; display: block; background: #f10215; width: 76px; height: 35px; line-height: 35px; font-size: 16px; text-align: center; float: right; text-decoration: none; } } .header_ico { position: absolute; right:107px; top: 27px; .header_gw { width: 91px; height: 38px; border: 1px solid #DFDFDF; padding: 0 28px 0 19px; background: #F9F9F9; line-height: 38px; position: relative; cursor: default; zoom: 1; z-index: 10; float: left; span:nth-child(1) { font-size: 13px; a { color: #F10214; text-decoration: none; } } span:nth-child(3) { background: #F10214; color: #fff; border-radius: 50%; position: absolute; width: 15px; height: 15px; line-height: 14px; top: 5px; left: 99px; text-align: center; font-size: 12px; } } .header_gw:hover{ box-shadow: 0px -2px 5px 0px #999; border-bottom: 0; } .header_ko { position: absolute; top: 39px; left: -160px; width: 268px; height: 60px; line-height: 60px; text-align: right; background: #fff; padding-left: 30px; border: 1px solid #DFDFDF; margin-top: -1px; display: none; box-shadow: 0 0 5px 0 #999; p { background: url(../image/settleup-nogoods.png) no-repeat; font-size: 12px; padding-right: 30px; width: 89%; margin-top: -1px; } } .header_ko:hover{ } } .header_form_nav { overflow: hidden; position: absolute; left: 380px; top: 65px; width: 550px; height: 20px; line-height: 20px; ul { li { float: left; margin-right: 10px; white-space: nowrap; a { color: #666; font-size: 12px; text-decoration: none; } .aaaaa { color: #f10215; } } li:hover { a { color: #f10215; } } } } nav { overflow: hidden; position: absolute; left: -10px; bottom: 0; width: 100%; height: 40px; line-height: 40px; float: left; ul { float: left; li { float: left; a { height: 33px; padding: 0 22px; text-align: center; text-decoration: none; font-size: 14px; line-height: 33px; color: #333; font-weight: 700; } } .nav_li1{ padding: 0 10px; font-size: 14px; position: relative; bottom: 0; color: #fff; width: 190px; height: 33px; a{ display: block; height: 33px; background: #f30213; color: #fff; text-decoration: none; text-align: center; } } .nav_li:hover { a { color:red; } } } .spacer { overflow: hidden; margin:10px 0; width: 1px; height: 13px; display: block; background-color: #eee; float: left; } } .header_main_left{ background: #fff; position: absolute; top:135px; left:0; width: 190px; height: 480px; margin-right: 10px; display: none; ul { padding: 16px 0; li { padding-left: 12px; height: 28px; line-height: 28px; font-size: 0; position: relative; a { font-size: 12px; text-decoration: none; b { font-weight: 700; } b:hover { color: #C81623; } } } } .header_li2 { .header_main_left_main { position: absolute; left: 190px; top: -44px; width: 1000px; height: 480px; background: #fff; z-index: 200; padding: 20px; display: none; .header_sj { width: 800px; overflow: hidden; .header_sj_a { display: block; background: #6e6568; float: left; margin-right: 10px; padding: 0 10px; } } } .header_ol { margin-top: 10px; width: 730px; overflow: hidden; .aaa { float: left; width: 70px; font-size: 8px; } li { border-bottom: 1px solid #eee; margin-left: 70px; a { border-left: 1px solid #999; font-size: 12px; padding-left: 10px; margin-right: 10px; } } } .header_r { position: absolute; width: 220px; height: 480px; top: 0; right: 45px; .header_r_tu { width: 220px; margin-top: 20px; a { display: block; float: left; width: 100px; height: 38px; text-align: center; border: 1px solid #f0f0f0; } } .header_r_tu1 { position: absolute; bottom: 0; right: 20px; a { display: block; border: 1px solid #fff; } } } } } } //右侧侧边栏 .header_bar { position: fixed; right: 0; top: 0; width: 8px; height: 100%; background: #7A6E6E; z-index: 999; ul:nth-child(1) { position: fixed; right: 8px; bottom: 23%; height: 216px; width: 34px; background: #7A6E6E; z-index: 999; li { text-align: center; width: 42px; height: 36px; line-height: 36px; background: #7A6E6E; position: relative; border-bottom: 1px solid #fff; div { position: absolute; left: 0; top: 0; background: #7A6E6E; color: #fff; width: 60px; font-size: 12px; height: 35px; display: none; z-index: -999; a { color: #fff; text-decoration: none; } } } } ul:nth-child(2) { position: fixed; right: 8px; bottom: -56px; height: 126px; width: 34px; background: #7A6E6E; z-index: 200; li { text-align: center; width: 42px; height: 36px; line-height: 36px; //background: #7A6E6E; position: relative; border-bottom: 1px solid #fff; .div { position: absolute; left: 0; top: 0; background: #7A6E6E; color: #fff; width: 60px; font-size: 12px; height: 35px; display: none; z-index: -999; a { color: #fff; text-decoration: none; } } } } } //热卖促销 .JD_temai{ width: 1210px; margin: 0 auto; .JD_main{ margin: 15px auto; position: relative; height: 152px; padding-left: 80px; padding-right: 210px; background-color: #f1f1f1; .JD_left{ width: 100%; height: 137px; padding-top: 15px; .hd{ width: 30px; height: 60px; position: absolute; left: 20px; top: 0; line-height: 18px; padding: 20px 10px 0 5px; font-size: 14px; text-align: center; color: #f60; background: url(../image/list.icons.other.png) no-repeat; } .bd{ width: 100%; height: 122px; overflow: hidden; } .mc{ overflow: hidden; zoom: 1; } ul{ li{ width: 264px; height: 100px; overflow: hidden; float: left; margin-right: 13px; margin-bottom: 15px; padding: 11px; background-color: #fff; .mc_a{ float: left; } .mc_div{ em{ font-style: normal; } .mc_div_a1{ display: block; height: 40px; line-height: 20px; overflow: hidden; padding-top: 5px; word-break: break-all; word-wrap: break-word; color: #666; text-decoration: none; font-size: 14px; } p{ height: 20px; line-height: 20px; overflow: hidden; padding-top: 5px; color: #666; strong { color: #e4393c; font-size: 14px; font-weight: 700; } } .mc_div_a2{ overflow: hidden; display: inline-block; line-height: 14px; height: 14px; border-radius: 2px; background: #F7F7F7; text-align: center; text-decoration: none; cursor: pointer; border: 1px solid #DDD; padding: 4px 13px 5px; color: #666; font-size: 14px; } } } } } .JD_right{ width: 175px; height: 152px; position: absolute; right: 0; top: 0; padding-left: 50px; .hd{ width: 30px; height: 60px; position: absolute; left: 0; top: 0; line-height: 18px; padding: 20px 10px 0 5px; font-size: 14px; text-align: center; color: #f60; background: url(../image/list.icons.other.png) no-repeat; } .bd{ height: 135px; overflow: hidden; padding-top: 15px; ul{ list-style: none; li{ width: 165px; height: 22px; overflow: hidden; line-height: 22px; margin-bottom: 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; a{ color: #666; text-decoration: none; } a:hover{ color: red; } } } } } } } //手机 .JD_ipone{ width:1210px; margin: 0 auto; .JD_ipone_bar{ height: 24px; line-height: 24px; .JD_ipone_one{ float: left; margin-right: 5px; a{ text-decoration: none; background: #fff; } } .b:hover{ .qqq{ border:1px solid #e23a3a; border-bottom: 1px solid #fff; } } .c:hover{ .qqq{ border:1px solid #e23a3a; border-bottom: 1px solid #fff; } } .a{ font-size: 20px; font-weight: 900; } .c,.b{ position: relative; a{ display: inline-block; height: 22px; padding: 0 4px 0 8px; border:1px solid #ddd; line-height: 22px; vertical-align: top; font-size: 14px; position: relative; //z-index: 10; } div{ position: absolute; top:23px; left:0; width: 400px; padding: 10px 0; border:1px solid #e23a3a; background: #fff; display: none; a{ border:0; display: block; float: left; margin-right: 5px; } a:hover{ color: #e23a3a; } } } i{ float: left; margin-right: 5px; } } } //商品筛选和排序 .JD_banner{ margin-top:15px; width: 100%; .JD_nav{ width: 1210px; margin: 0 auto; .JD_selector{ border-top: 1px solid #DDD; background: #FFF; margin-bottom: 10px; .title{ border-bottom: 1px solid #DDD; background: #F1F1F1; line-height: 34px; height: 34px; overflow: hidden; zoom: 1; h3{ float: left; padding-left: 10px; font-size: 14px; b{ color: #e4393c; margin-right: 5px; } em{ font-style: normal; } } .st-ext{ float: left; padding-left: 20px; font-size: 13px; color: #999; } } .JD_nav_logo{ width: auto; height: auto; .sl_key{ float: left; width: 100px; padding-left: 10px; color: #666; font-size: 14px; } .sl_value{ margin-left: 110px; padding-right: 130px; padding-left: 10px; overflow: hidden; a:hover{ color: red; } } .sl_ext{ position: absolute; top: 6px; right: 10px; width: 120px; line-height: 25px; overflow: hidden; a{ font-size: 12px; text-decoration: none; } a:nth-child(1):hover{ color: #e23a3a; i{ border:1px solid #e23a3a; } b{ border:1px solid #e23a3a; } } a:nth-child(2):hover{ border:1px solid #e23a3a; color: #e23a3a; } a:nth-child(1){ float: left; position: relative; width: 50px; height: 22px; background: #fff; color: #333; margin-right: 10px; i{ position: absolute; top: 3px; right: 0; display: block; width: 20px; height: 20px; border: 1px solid #DDD; } b{ position: absolute; top: 24px; right: 0; display: block; width: 20px; height: 20px; border: 1px solid #DDD; } } a:nth-child(2){ line-height: 20px; border: 1px solid #ddd; padding: 2px 3px 2px 18px; position: relative; background: #F8F8F8; color: #333; i{ position: absolute; display: block; font-style: normal; left: 3px; top: -1px; width: 13px; height: 20px; font-size: 20px; } span{ position: absolute; display: block; font-style: normal; left: 3px; top: 13px; font-size: 20px; width: 13px; height: 20px; color:#e23a3a; } } } .JD_nav_wrap{ padding-bottom:13px; position: relative; line-height: 34px; border-bottom: 1px dashed #eee; .sl_value{ .sl_value_logo{ ul{ padding-top: 10px; margin-bottom: 10px; zoom: 1; height: 50px; li{ float: left; width: 116px; height: 48px; border: 1px solid #DDD; margin: -1px -1px 0 0; text-align: center; a{ position: relative; img{ padding: 7px 6px; } div{ position: absolute; top:-34px; left: -2px; background: #fff; border:2px solid #e23a3a; width: 116px; height: 46px; line-height: 48px; font-size: 12px; color: #e23a3a; display: none; } } } li:hover{ div{ display: block; } } } } } } .JD_pre{ overflow: hidden; position: relative; line-height: 34px; border-bottom: 1px dashed #eee; ul{ float: left; overflow: hidden; position: relative; height: 30px; li{ float: left; margin-right: 50px; margin-bottom: 4px; height: 26px; line-height: 26px; a{ color: #666; text-decoration: none; font-size: 13px; } } .sl_value_li{ width: 135px; margin-right: 0; p{ line-height: 32px; display: block; float: left; color:#ddd; } a{ display: inline-block; line-height: 14px; border-radius: 2px; background: #F7F7F7; text-align: center; text-decoration: none; border: 1px solid #DDD; padding: 4px 6px; color: #666; margin-left: 5px; margin-top: 5px; } input{ width: 30px; float: left; height: 19px; margin-top: 7px; line-height: 19px; border: 1px solid #CCC; } } } } } } .JD_banner_main{ overflow: hidden; width: 1210px; .JD_con_left{ width: 210px; float: left; .JD_con_left_bar{ .JD_con_one{ border: 1px solid #ddd; margin-bottom: 10px; .mt{ line-height: 36px; padding: 0 10px; h3{ font-size: 14px; float: left; } span{ float: right; font-size: 12px; color: #999; margin-right: 10px; } } .mc{ ul{ li{ margin-top: 15px; img{ width: 200px; } em{ font-style: normal; } a:nth-child(2){ color: #666; text-decoration: none; height: 36px; line-height: 18px; margin-bottom: 10px; overflow: hidden; display: block; padding: 0 10px; em{ font-size: 12px; } } a:nth-child(2):hover{ color: #e23a3a; } .mc_price{ height: 16px; line-height: 16px; margin-bottom: 4px; overflow: hidden; padding: 0 10px; .price{ float: left; margin-right: 6px; color: #e4393c; font-weight: 700; font-size: 14px; } .mc-ico{ i{ float: left; height: 16px; line-height: 16px; padding: 0 3px; overflow: hidden; text-align: center; font-style: normal; font-size: 12px; background: #e23a3a; color: #FFF; cursor: default; border-radius: 2px; margin-right: 5px; } } } .mc_rev{ padding: 0 10px; color: #999; font-size: 12px; .number{ color: #005aa0; text-decoration: none; } } } } } } } } .JD_con_right{ width: 990px; margin-left: 218px; .filter{ position: relative; z-index: 4; border-top: 1px solid #DDD; margin-bottom: 5px; .filter_top{ padding: 6px 8px; border-bottom: 1px solid #E7E3E7; background: #F9F9F9; height:25px; .filter_top_left{ float: left; //margin: 24px; a{ float: left; padding: 0 10px; height: 23px; border: 1px solid #CCC; line-height: 23px; margin-right: -1px; background: #FFF; color: #333; font-size: 12px; text-decoration: none; } a:hover{ border:1px solid #e4393c; color: #e4393c; } a:nth-child(1){ color: #FFF; border-color: #e4393c; background:#e4393c ; } } .filter_top_right{ float: right; .fp-text{ float: left; line-height: 23px; margin-right: 10px; b{ color: #e4393c; font-weight: 700; } em{ font-weight: 400; font-style: normal; } i{ font-weight: 400; font-style: normal; } } a{ text-decoration: none; padding: 0; background: #F1F1F1; color: #CCC; cursor: default; } .prev,.next{ float: left; display: block; width: 46px; height: 23px; border: 1px solid #DDD; background: #FFF; line-height: 23px; text-align: center; font-size: 16px; color: #AAA; } .prev{ padding: 0; background: #F1F1F1; color: #CCC; cursor: default; } } } .filter_bottom{ overflow: hidden; padding: 6px 8px; border-bottom: 1px solid #E7E3E7; background: #F9F9F9; .filter_bottom_left{ float: left; padding-left:5px; .fs-cell{ color: #999; font-size: 12px; float: left; line-height: 25px; margin-right: 5px; } .dizhi_con{ display: none; width: 500px; position: absolute; top:69px; left:10px; z-index: 999; background: #fff; #tab{ padding: 5px; li{ float: left; list-style: none; width: 70px; height: 30px; margin-right: 5px; line-height: 30px; cursor: pointer; text-align: center; color: #005aa0; font-size: 12px; border:1px solid #ddd; } } #content1, #content2, #content3 { width: 500px; background: #fff; position: absolute; top: 38px; left: 0; a{ text-decoration: none; display: block; float: left; width: 90px; padding: 10px 5px; color: #005aa0; font-size: 12px; } a:hover{ color: #e23a3a; } } } .dizhi{ float: left; height: 25px; position: relative; z-index: 5; margin-right: 10px; .dizhi_show{ height: 23px; line-height: 23px; padding: 0 5px; border: 1px solid #ccc; overflow: hidden; background: #fff; cursor: pointer; color: #333; em{ float: left; height: 23px; margin-right: 5px; overflow: hidden; font-style: normal; font-size: 12px; } b{ display: inline-block; width: 13px; height: 7px; margin-top: 8px; overflow: hidden; vertical-align: top; background: url("../image/down-@1x.png") no-repeat; } } } } .filter_bottom_right{ ul{ li{ float: left; display: inline; height: 25px; line-height: 25px; a{ position: relative; display: inline-block; padding-left: 18px; padding-right: 5px; color: #333; text-decoration: none; font-size: 14px; i{ position: absolute; left: 0; top: 6px; //background: url(//misc.360buyimg.com/product/list/1.0.7/css/i/search.ele.png) no-repeat 9999px 9999px; display: inline-block; height: 12px; width: 12px; background-color: #fff; border: 1px solid #ccc; font-size: 0; } } } li:hover{ a{color:#e4393c;} i{ border: 1px solid #e4393c;} } } } } .rig_tab { padding: 15px 10px; overflow: hidden; &>div:hover { box-shadow: 0 0 1px .5px #666; .ico { display: block } } &>div { padding: 5px; padding-top: 15px; float: left; margin-right: 10px; height: 405px; width: 220px; position: relative; .ico { display: none; position: absolute; top: 230px; right: 10px; text-align: center; width: 70px; line-height: 30px; color: white; font-size: 14px; background: rgba(0, 0, 0, .5); a { color: white } } .ico:hover { color: red; a { color: red } } .da { text-align: center; img { width: 205px; height: 210px } } &>ul { overflow: hidden; li:first-child { border: 2px solid red } li { overflow: hidden; margin-right: 3px; border: 1px solid #ccc; float: left; img { margin: 3px; float: left; width: 25px; height: 25px } } } .tab_R { color: red; font-size: 18px; font-weight: 800; margin: 5px; span { display: none } span:first-child { display: block } } .tab_JE { margin: 2px; a:first-child { display: block } a { display: none; color: #666; font-size: 12px; height: auto; overflow: hidden; text-decoration: none } a:hover { color: red } } .tab_PI { line-height: 20px; color: #a7a7a7; font-size: 12px; span { color: #646fb0; font-size: 15px } a { margin-left: 25px; font-size: 12px; text-decoration: none; color: #646fb0; } } .tab_CP { line-height: 25px; margin-bottom: 5px; a { font-size: 12px; color: #999999; text-decoration: none; } } .tab_FO { font-size: 14px; position: relative; p { float: left; font-size: 12px; height: 16px; line-height: 16px; padding: 0 3px; margin-right: 3px; overflow: hidden; text-align: center; cursor: default; border-radius: 2px; } p:first-child { background: #e23a3a; color: #FFF; } p:last-child { border: 1px solid #e23a3a; color: #e23a3a; } p:hover { span { display: block } } span { width: 100%; margin-top: 5px; padding-left: 11px; line-height: 40px; display: inline-block; color: #666; box-shadow: 0 0 1px 0.5px #666; display: none; position: absolute; top: 20px; left: -5px; z-index: 20; background: #fff; } } } } .filter_page{ width: 100%; em{ font-style: normal; } .page_wrap{ margin-left: 355px; .page_span1{ a{ font-size: 14px; display: block; float: left; text-decoration: none; height:36px; background: #f0f0f0; line-height: 36px; padding: 0 14px; margin-right: 5px; border:1px solid #ddd; } a:nth-child(1){ color: #ccc; background: #fff } } .page_span2{ em{ float: left; line-height: 38px; font-size: 14px; b{ font-weight: bold; } } input{ float: left; width: 30px; height: 30px; margin: 0 3px; line-height: 30px; font-size: 14px; text-align: center; border: 1px solid #CCC; padding: 3px; } a{ float: left; height: 27px; margin-left: 10px; font-size: 14px; line-height: 27px; display: inline-block; border-radius: 2px; background: #F7F7F7; text-align: center; text-decoration: none; cursor: pointer; border: 1px solid #DDD; padding: 4px 13px 5px; color: #666; //background-color: #f7f7f7; background-repeat: repeat-x; } } } } } } } .JD_show{ width: 1210px; margin: 0 auto; text-align: center; a{ text-decoration: none; display: block; width: 100%; border-top:1px solid #ddd; font-size: 14px; span{ display: block; padding-top: 5px; width: 291px; height:25px; border:1px solid #ddd; border-top: 0; margin: -2px auto; background: #fff; color: #666; } } a:hover{ border-top:1px solid #e23a3a; span{ border:1px solid #e23a3a; border-top: 0; color: #e23a3a; } } } } } //精选商品 .JD_jx{ width: 1210px; margin: 30px auto; height: 350px; border: 1px solid #ddd; margin-bottom: 10px; .mt{ height: 21px; line-height: 21px; padding: 6px; .mt-title{ font-size: 14px; font-weight: 400; } img{ float: right; } } .mc{ ul{ height: 306px; padding-left: 29px; overflow: hidden; li{ float: left; width: 204px; height: 286px; padding: 0 29px 20px 0; overflow: hidden; .mc_img{ width: 100%; padding: 0; text-align: center; img{ display: block; } } .mc_name{ margin-bottom: 10px; height: 40px; overflow: hidden; a{ text-decoration: none; em{ font-style: normal; font-size: 12px; } } a:hover{ color: #e23a3a; } } .mc_price{ height: 16px; line-height: 16px; margin-bottom: 4px; overflow: hidden; strong{ span{ float: left; margin-right: 10px; color: #e4393c; font-weight: 700; font-size: 14px; } } .mc_ico{ float: left; height: 16px; line-height: 16px; padding: 0 3px; margin-right: 3px; overflow: hidden; text-align: center; font-style: normal; font-size: 12px; background: #e23a3a; color: #FFF; cursor: default; border-radius: 2px; } } .mc_rev{ color: #ccc; font-size: 12px; a{ color: #005aa0; text-decoration: none; } } } } } } //猜你喜欢 .JD_cnxh{ width: 1210px; margin: 30px auto; height: 290px; border-left: 1px solid #ddd; border-right: 1px solid #ddd; border-top: 2px solid #999; border-bottom: 2px solid #999; margin-bottom: 10px; .mt{ height: 21px; line-height: 21px; padding: 6px; .mt-title{ font-size: 14px; font-weight: 400; } a{ float: right; font-size: 14px; color: #999; text-decoration: none; } } .mc{ ul{ height: 306px; padding-left: 29px; overflow: hidden; li{ text-align: center; float: left; width: 186px; height: 286px; overflow: hidden; .mc_img{ width: 100%; padding: 0; text-align: center; img{ width: 70%; } } .mc_name{ margin-bottom: 10px; height: 40px; overflow: hidden; padding: 0 10px; a{ text-decoration: none; em{ font-style: normal; font-size: 12px; } } a:hover{ color: #e23a3a; } } .mc_price{ height: 16px; line-height: 16px; margin-bottom: 4px; overflow: hidden; strong{ span{ color: #e4393c; font-size: 14px; font-weight: 100; } } } .mc_rev{ font-size: 12px; a{ color: #005aa0; text-decoration: none; } } } } } } //我的足迹 .JD_zuji{ width: 1210px; margin: 30px auto; height: 160px; border-left: 1px solid #ddd; border-right: 1px solid #ddd; border-top: 2px solid #999; border-bottom: 1px solid #999; margin-bottom: 10px; .mt{ height: 21px; line-height: 21px; padding: 6px; .mt-title{ font-size: 14px; font-weight: 400; } a{ float: right; font-size: 14px; color: #999; text-decoration: none; } } .mc{ ul{ height: 306px; padding-left: 29px; overflow: hidden; li{ text-align: center; float: left; width: 68px; height: 100px; margin-right: 20px; overflow: hidden; .mc_img{ width: 100%; padding: 0; text-align: center; img{ display: block; } } .mc_price{ height: 16px; line-height: 16px; margin-bottom: 4px; overflow: hidden; strong{ span{ color: #e4393c; font-size: 14px; font-weight: 100; } } } } } } } //底部 .footer { width: 100%; background: #EAEAEA; padding: 0 79.5px; box-sizing: border-box; * { box-sizing: border-box; } .footer_top { width: 1190px; height: 103px; border-bottom: 1px solid #DEDEDE; padding-top: 32px; ul { li { width: 297px; height: 42px; float: left; padding: 0 30px; span { width: 42px; height: 42px; display: block; float: left; } h3 { float: left; height: 42px; line-height: 42px; color: #444444; } } li:first-child { span { background: url("../img/foot (2).png") no-repeat 0 0; } } li:nth-child(2) { span { background: url("../img/foot (2).png") no-repeat 0 -43px; } } li:nth-child(3) { span { background: url("../img/foot (2).png") no-repeat 0 -86px; } } li:nth-child(4) { span { background: url("../img/foot (2).png") no-repeat 0 -129px; } } } } .footer_center { height: 200px; padding-top: 30px; background: #EAEAEA; border-bottom: 1px solid #DEDEDE; ol { width: 198px; float: left; li { font-size: 12px; line-height: 20px; a { text-decoration: none; color: #727272; } } li:first-child { font-weight: bold; font-size: 14px; line-height: 30px; color: #6A7272; } } ol:last-child { width: 200px; height: 150px; padding-left: 20px; background: url("../img/foot (1).png") no-repeat 0 0; li:first-child { text-align: center; margin-bottom: 10px; } li:nth-child(2) { color: #727272; } li:last-child { text-align: right; } } } .footer_foot { height: 200px; background: #EAEAEA; padding-top: 20px; .footer_p { height: 25px; padding: 0 50px; a { text-decoration: none; color: #999999; font-size: 12px; float: left; padding: 0 10px; } span { width: 1px; height: 15px; border: 1px solid #D4CDCD; display: block; float: left; } } p:first-child { a { color: #666666; } } p:nth-child(2) { padding: 0 180px; } p:nth-child(3) { padding: 0 140px; } p:nth-child(4) { padding: 0 310px; } p:nth-child(5) { padding: 0 480px; } ul { padding: 0 270px; li { width: 103px; height: 37px; float: left; } li:first-child { background: url("../img/foot (1).png") no-repeat 0 -145px; } li:nth-child(2) { background: url("../img/foot (1).png") no-repeat -100px -145px; } li:nth-child(3) { background: url("../img/foot (1).png") no-repeat 0 -181px; } li:nth-child(4) { background: url("../img/foot (1).png") no-repeat -100px -181px; } li:nth-child(5) { background: url("../img/foot (1).png") no-repeat 0 -215px; } li:nth-child(6) { background: url("../img/foot (1).png") no-repeat -100px -215px; } } } }
2401_83448718/meirimall
meirimall-search/src/main/resources/static/search/sass/index.scss
SCSS
apache-2.0
47,712
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="/static/search/./css/index.css"> <link rel="stylesheet" type="text/css" href="/static/search/font/iconfont.css"> <!-- <script src="/static/search/./js/jquery-3.2.1.min.js"></script>--> <script src="/static/search/./js/jquery-1.12.4.js"></script> <title>Document</title> </head> <body> <!--头部--> <div class="header_head"> <div class="header_head_box"> <b class="header_head_p"> <div style="overflow: hidden"> <a href="http://localhost:8088" class="header_head_p_a1" style="width:73px;"> 谷粒商城首页 </a> <a href="/static/search/#" class="header_head_p_a"> <!-- <img src="/static/search/img/img_05.png" style="border-radius: 50%;"/>--> 北京</a> </div> <div class="header_head_p_cs"> <a href="/static/search/#" style="background: #C81623;color: #fff;">北京</a> <a href="/static/search/#">上海</a> <a href="/static/search/#">天津</a> <a href="/static/search/#">重庆</a> <a href="/static/search/#">河北</a> <a href="/static/search/#">山西</a> <a href="/static/search/#">河南</a> <a href="/static/search/#">辽宁</a> <a href="/static/search/#">吉林</a> <a href="/static/search/#">黑龙江</a> <a href="/static/search/#">内蒙古</a> <a href="/static/search/#">江苏</a> <a href="/static/search/#">山东</a> <a href="/static/search/#">安徽</a> <a href="/static/search/#">浙江</a> <a href="/static/search/#">福建</a> <a href="/static/search/#">湖北</a> <a href="/static/search/#">湖南</a> <a href="/static/search/#">广东</a> <a href="/static/search/#">广西</a> <a href="/static/search/#">江西</a> <a href="/static/search/#">四川</a> <a href="/static/search/#">海南</a> <a href="/static/search/#">贵州</a> <a href="/static/search/#">云南</a> <a href="/static/search/#">西藏</a> <a href="/static/search/#">陕西</a> <a href="/static/search/#">甘肃</a> <a href="/static/search/#">青海</a> <a href="/static/search/#">宁夏</a> <a href="/static/search/#">新疆</a> <a href="/static/search/#">港澳</a> <a href="/static/search/#">台湾</a> <a href="/static/search/#">钓鱼岛</a> <a href="/static/search/#">海外</a> </div> </b> <ul> <li> <a th:if="${session.loginUser == null}" href="http://auth.gulimall.com/login.html" class="li_2">你好,请登录</a> <a th:if="${session.loginUser != null}">欢迎, [[${session.loginUser}]]</a> </li> <li> <a th:if="${session.loginUser == null}" href="http://auth.gulimall.com/reg.html" style="color: red;">免费注册</a> </li> <span>|</span> <li> <a href="/static/search/#">我的订单</a> </li> <span>|</span> <li class="header_wdjd" style="width:80px;"> <a href="/static/search/#">我的谷粒商城</a> <img src="/static/search/image/down-@1x.png"/> <!--<b class="glyphicon glyphicon-menu-down"></b>--> <div class="header_wdjd_txt"> <ul> <li> <a href="/static/search/#">待处理订单</a> </li> <li> <a href="/static/search/#">消息</a> </li> <li> <a href="/static/search/#">返修退换货</a> </li> <li> <a href="/static/search/#">我的回答</a> </li> <li> <a href="/static/search/#">降价商品</a> </li> <li> <a href="/static/search/#">我的关注</a> </li> </ul> <ul> <li> <a href="/static/search/#">我的京豆</a> </li> <li> <a href="/static/search/#">我的优惠券</a> </li> <li> <a href="/static/search/#">我的白条</a> </li> <li> <a href="/static/search/#">我的理财</a> </li> </ul> </div> </li> <span>|</span> <li> <a href="/static/search/#">谷粒商城会员</a> </li> <span>|</span> <li> <a href="/static/search/#">企业采购</a> </li> <span>|</span> <li class="header_wdjd1"> <a href="/static/search/#">客户服务</a> <img src="/static/search/image/down-@1x.png"/> <!--<b class="glyphicon glyphicon-menu-down"></b>--> <div class="header_wdjd_txt"> <ul> <p style="width:100%;">客户</p> <li> <a href="/static/search/#">帮助中心</a> </li> <li> <a href="/static/search/#">售后服务</a> </li> <li> <a href="/static/search/#">在线客服</a> </li> <li> <a href="/static/search/#">意见建议</a> </li> <li> <a href="/static/search/#">电话客服</a> </li> <li> <a href="/static/search/#">客服邮箱</a> </li> <li> <a href="/static/search/#">金融资讯</a> </li> <li> <a href="/static/search/#">售全球客服</a> </li> </ul> <ul> <p style="width:100%;">商户</p> <li> <a href="/static/search/#">合作招商</a> </li> <li> <a href="/static/search/#">学习中心</a> </li> <li> <a href="/static/search/#">商家后台</a> </li> <li> <a href="/static/search/#">京麦工作台</a> </li> <li> <a href="/static/search/#">商家帮助</a> </li> <li> <a href="/static/search/#">规则平台</a> </li> </ul> </div> </li> <span>|</span> <li class="header_wzdh"> <a href="/static/search/#">网站导航</a> <img src="/static/search/image/down-@1x.png"/> <!--<b class="glyphicon glyphicon-menu-down"></b>--> <div class="header_wzdh_txt"> <ul style="width: 25%;"> <p style="width:100%;">特色主题</p> <li> <a href="/static/search/#">谷粒商城试用</a> </li> <li> <a href="/static/search/#">谷粒商城金融</a> </li> <li> <a href="/static/search/#">全球售</a> </li> <li> <a href="/static/search/#">国际站</a> </li> <li> <a href="/static/search/#">谷粒商城会员</a> </li> <li> <a href="/static/search/#">谷粒商城预售</a> </li> <li> <a href="/static/search/#">买什么</a> </li> <li> <a href="/static/search/#">俄语站</a> </li> <li> <a href="/static/search/#">装机大师</a> </li> <li> <a href="/static/search/#">0元评测</a> </li> <li> <a href="/static/search/#">定期送</a> </li> <li> <a href="/static/search/#">港澳售</a> </li> <li> <a href="/static/search/#">优惠券</a> </li> <li> <a href="/static/search/#">秒杀</a> </li> <li> <a href="/static/search/#">闪购</a> </li> <li> <a href="/static/search/#">印尼站</a> </li> <li> <a href="/static/search/#">谷粒商城金融科技</a> </li> <li> <a href="/static/search/#">In货推荐</a> </li> <li> <a href="/static/search/#">陪伴计划</a> </li> <li> <a href="/static/search/#">出海招商</a> </li> </ul> <ul style="width: 20%;"> <p style="width:100%;">行业频道</p> <li> <a href="/static/search/#">手机</a> </li> <li> <a href="/static/search/#">智能数码</a> </li> <li> <a href="/static/search/#">玩3c</a> </li> <li> <a href="/static/search/#">电脑办公</a> </li> <li> <a href="/static/search/#">家用电器</a> </li> <li> <a href="/static/search/#">谷粒商城智能</a> </li> <li> <a href="/static/search/#">服装城</a> </li> <li> <a href="/static/search/#">美妆馆</a> </li> <li> <a href="/static/search/#">家装城</a> </li> <li> <a href="/static/search/#">母婴</a> </li> <li> <a href="/static/search/#">食品</a> </li> <li> <a href="/static/search/#">运动户外</a> </li> <li> <a href="/static/search/#">农资频道</a> </li> <li> <a href="/static/search/#">整车</a> </li> <li> <a href="/static/search/#">图书</a> </li> </ul> <ul style="width: 21%;"> <p style="width:100%;">生活服务</p> <li> <a href="/static/search/#">白条</a> </li> <li> <a href="/static/search/#">谷粒商城金融App</a> </li> <li> <a href="/static/search/#">谷粒商城小金库</a> </li> <li> <a href="/static/search/#">理财</a> </li> <li> <a href="/static/search/#">智能家电</a> </li> <li> <a href="/static/search/#">话费</a> </li> <li> <a href="/static/search/#">水电煤</a> </li> <li> <a href="/static/search/#">彩票</a> </li> <li> <a href="/static/search/#">旅行</a> </li> <li> <a href="/static/search/#">机票酒店</a> </li> <li> <a href="/static/search/#">电影票</a> </li> <li> <a href="/static/search/#">谷粒商城到家</a> </li> <li> <a href="/static/search/#">谷粒商城众测</a> </li> <li> <a href="/static/search/#">游戏</a> </li> </ul> <ul style="width: 23%; border-right: 0;"> <p style="width:100%;">更多精选</p> <li> <a href="/static/search/#">合作招商</a> </li> <li> <a href="/static/search/#">谷粒商城通信</a> </li> <li> <a href="/static/search/#">谷粒商城E卡</a> </li> <li> <a href="/static/search/#">企业采购</a> </li> <li> <a href="/static/search/#">服务市场</a> </li> <li> <a href="/static/search/#">办公生活馆</a> </li> <li> <a href="/static/search/#">乡村招募</a> </li> <li> <a href="/static/search/#">校园加盟</a> </li> <li> <a href="/static/search/#">京友帮</a> </li> <li> <a href="/static/search/#">谷粒商城社区</a> </li> <li> <a href="/static/search/#">智能社区</a> </li> <li> <a href="/static/search/#">游戏社区</a> </li> <li> <a href="/static/search/#">知识产权维权</a> </li> </ul> </div> </li> <span>|</span> <li class="header_sjjd"> <a href="/static/search/#">手机谷粒商城</a> <div class="header_sjjd_div"> <img src="/static/search/img/01.png"/> </div> </li> </ul> </div> </div> <!--搜索导航--> <div class="header_sous"> <div class="logo"> <a href="http://localhost:8088"><img src="/static/search/./image/logo1.jpg" alt=""></a> </div> <div class="header_form"> <input id="keyword_input" type="text" placeholder="手机" th:value="${param.keyword}"/> <a href="javascript:searchByKeyword()">搜索</a> </div> <div class="header_ico"> <div class="header_gw"> <span><a href="http://cart.gulimall.com/cart.html">我的购物车</a></span> <img src="/static/search/image/settleup-@1x.png"/> <span>0</span> </div> <div class="header_ko"> <p>购物车中还没有商品,赶紧选购吧!</p> </div> </div> <div class="header_form_nav"> <ul> <li> <a href="/static/search/#">谷粒商城之家</a> </li> <li> <a href="/static/search/#">谷粒商城专卖店</a> </li> <li> <a href="/static/search/#">平板</a> </li> <li> <a href="/static/search/#">电脑</a> </li> <li> <a href="/static/search/#">ipad</a> </li> </ul> </div> <nav> <ul> <li class="nav_li1"> <a href="/static/search/#">全部商品分类</a> </li> <li class="nav_li"> <a href="/static/search/#">服装城</a> </li> <li class="nav_li"> <a href="/static/search/#">没装馆</a> </li> <li class="nav_li"> <a href="/static/search/#">超市</a> </li> <li class="nav_li"> <a href="/static/search/#">生鲜</a> </li> </ul> <div class="spacer">|</div> <ul> <li class="nav_li"> <a href="/static/search/#">全球购</a> </li> <li class="nav_li"> <a href="/static/search/#">闪购</a> </li> <li class="nav_li"> <a href="/static/search/#">拍卖</a> </li> </ul> <div class="spacer">|</div> <ul> <li class="nav_li"> <a href="/static/search/#">金融</a> </li> </ul> </nav> <div class="header_main_left"> <ul> <li> <a href="/static/search/#" class="header_main_left_a"><b>家用电器</b></a> </li> <li class="header_li2"> <a href="/static/search/#" class="header_main_left_a"><b>手机</b> / <b>运营商</b> / <b>数码</b></a> <div class="header_main_left_main"> <div class="header_sj"> <a href="/static/search/#" class="header_sj_a">玩3c</a> <a href="/static/search/#" class="header_sj_a">手机频道</a> <a href="/static/search/#" class="header_sj_a">网上营业厅</a> <a href="/static/search/#" class="header_sj_a">配件选购中心</a> <a href="/static/search/#" class="header_sj_a">企业购</a> <a href="/static/search/#" class="header_sj_a">以旧换新</a> </div> <ol class="header_ol"> <a href="/static/search/#" style="color: #111;" class="aaa">手机通讯 ></a> <li> <a href="/static/search/#" style="color: #999;">手机</a> <a href="/static/search/#" style="color: #999;">对讲机</a> <a href="/static/search/#" style="color: #999;">手机维修</a> <a href="/static/search/#" style="color: #999;">以旧换新</a> </li> <a href="/static/search/#" style="color: #111;" class="aaa">运营商 ></a> <li> <a href="/static/search/#" style="color: #999;">合约机</a> <a href="/static/search/#" style="color: #999;">固话宽带</a> <a href="/static/search/#" style="color: #999;">办套餐</a> <a href="/static/search/#" style="color: #999;">从话费/流量</a> <a href="/static/search/#" style="color: #999;">中国电信</a> <a href="/static/search/#" style="color: #999;">中国移动</a> <a href="/static/search/#" style="color: #999;">中国联通</a> <a href="/static/search/#" style="color: #999;">谷粒商城通信</a> <a href="/static/search/#" style="color: #999;">170选号</a> </li> <a href="/static/search/#" style="color: #111;" class="aaa">手机配件 ></a> <li style="height: 60px;"> <a href="/static/search/#" style="color: #999;">手机壳</a> <a href="/static/search/#" style="color: #999;">贴膜</a> <a href="/static/search/#" style="color: #999;">手机储存卡</a> <a href="/static/search/#" style="color: #999;">数据线</a> <a href="/static/search/#" style="color: #999;">存电器</a> <a href="/static/search/#" style="color: #999;">手机耳机</a> <a href="/static/search/#" style="color: #999;">创业配件</a> <a href="/static/search/#" style="color: #999;">手机饰品</a> <a href="/static/search/#" style="color: #999;">手机电池</a> <a href="/static/search/#" style="color: #999;">苹果周边</a> <a href="/static/search/#" style="color: #999;">移动电源</a> <a href="/static/search/#" style="color: #999;">蓝牙耳机</a> <a href="/static/search/#" style="color: #999;">手机支架</a> <a href="/static/search/#" style="color: #999;">车载配件</a> <a href="/static/search/#" style="color: #999;">拍照配件</a> </li> <a href="/static/search/#" style="color: #111;" class="aaa">摄影摄像 ></a> <li style="height: 60px;"> <a href="/static/search/#" style="color: #999;">数码相机</a> <a href="/static/search/#" style="color: #999;">单电/微单相机</a> <a href="/static/search/#" style="color: #999;">单反相机</a> <a href="/static/search/#" style="color: #999;">拍立得</a> <a href="/static/search/#" style="color: #999;">运动相机</a> <a href="/static/search/#" style="color: #999;">摄像机</a> <a href="/static/search/#" style="color: #999;">镜头</a> <a href="/static/search/#" style="color: #999;">户外器材</a> <a href="/static/search/#" style="color: #999;">影棚器材</a> <a href="/static/search/#" style="color: #999;">冲印服务</a> <a href="/static/search/#" style="color: #999;">数码相框</a> </li> <a href="/static/search/#" style="color: #111;" class="aaa">数码配件 ></a> <li style="height: 60px;"> <a href="/static/search/#" style="color: #999;">三脚架/云台</a> <a href="/static/search/#" style="color: #999;">相机包</a> <a href="/static/search/#" style="color: #999;">滤镜</a> <a href="/static/search/#" style="color: #999;">散光灯/手柄</a> <a href="/static/search/#" style="color: #999;">相机清洁</a> <a href="/static/search/#" style="color: #999;">机身附件</a> <a href="/static/search/#" style="color: #999;">镜头附件</a> <a href="/static/search/#" style="color: #999;">读卡器</a> <a href="/static/search/#" style="color: #999;">支架</a> <a href="/static/search/#" style="color: #999;">电池/存电器</a> </li> <a href="/static/search/#" style="color: #111;" class="aaa">影音娱乐 ></a> <li> <a href="/static/search/#" style="color: #999;">耳机/耳麦</a> <a href="/static/search/#" style="color: #999;">音箱/音响</a> <a href="/static/search/#" style="color: #999;">智能音箱</a> <a href="/static/search/#" style="color: #999;">便携/无线音箱</a> <a href="/static/search/#" style="color: #999;">收音机</a> <a href="/static/search/#" style="color: #999;">麦克风</a> <a href="/static/search/#" style="color: #999;">MP3/MP4</a> <a href="/static/search/#" style="color: #999;">专业音频</a> </li> <a href="/static/search/#" style="color: #111;" class="aaa">智能设备 ></a> <li style="height: 60px;"> <a href="/static/search/#" style="color: #999;">智能手环</a> <a href="/static/search/#" style="color: #999;">智能手表</a> <a href="/static/search/#" style="color: #999;">智能眼镜</a> <a href="/static/search/#" style="color: #999;">智能机器人</a> <a href="/static/search/#" style="color: #999;">运动跟踪器</a> <a href="/static/search/#" style="color: #999;">健康监测</a> <a href="/static/search/#" style="color: #999;">智能配饰</a> <a href="/static/search/#" style="color: #999;">智能家居</a> <a href="/static/search/#" style="color: #999;">体感车</a> <a href="/static/search/#" style="color: #999;">无人机</a> <a href="/static/search/#" style="color: #999;">其他配件</a> </li> <a href="/static/search/#" style="color: #111;" class="aaa">电子教育 ></a> <li> <a href="/static/search/#" style="color: #999;">学生平板</a> <a href="/static/search/#" style="color: #999;">点读机</a> <a href="/static/search/#" style="color: #999;">早教益智</a> <a href="/static/search/#" style="color: #999;">录音笔</a> <a href="/static/search/#" style="color: #999;">电纸书</a> <a href="/static/search/#" style="color: #999;">电子词典</a> <a href="/static/search/#" style="color: #999;">复读机</a> </li> </ol> <div class="header_r"> <div class="header_r_tu"> <a href="/static/search/#"><img src="/static/search/img/56b2f385n8e4eb051.jpg"/></a> <a href="/static/search/#"><img src="/static/search/img/56b2f385n8e4eb051.jpg"/></a> <a href="/static/search/#"><img src="/static/search/img/56b2f385n8e4eb051.jpg"/></a> <a href="/static/search/#"><img src="/static/search/img/56b2f385n8e4eb051.jpg"/></a> <a href="/static/search/#"><img src="/static/search/img/56b2f385n8e4eb051.jpg"/></a> <a href="/static/search/#"><img src="/static/search/img/56b2f385n8e4eb051.jpg"/></a> <a href="/static/search/#"><img src="/static/search/img/56b2f385n8e4eb051.jpg"/></a> <a href="/static/search/#"><img src="/static/search/img/56b2f385n8e4eb051.jpg"/></a> </div> <div class="header_r_tu1"> <a href="/static/search/#"><img src="/static/search/img/JD_ash7 - 副本.png"/></a> <a href="/static/search/#"><img src="/static/search/img/JD_ash6.png"/></a> </div> </div> </div> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>电脑</b> / <b>办公</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>家居</b> / <b>家具</b> / <b>家装</b> / <b>厨具</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>男装</b> / <b>女装</b> / <b>童装</b> / <b>内衣</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>美妆个护 </b>/ <b>宠物</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>女鞋</b> / <b>箱包</b> / <b>钟表</b> / <b>珠宝</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>男鞋</b> / <b>运动</b> / <b>户外</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>汽车</b> / <b>汽车用品</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>母婴</b> / <b>玩具乐器</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>食品</b> / <b>酒类</b> / <b>生鲜</b> / <b>特产</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>礼品鲜花</b> / <b>农资绿植</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>医药保健</b> / <b>计生情趣</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>图书</b> / <b>音箱</b>/ <b>电子书</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>机票</b> / <b>酒店</b> / <b>旅游</b> / <b>生活</b></a> </li> <li> <a href="/static/search/#" class="header_main_left_a"><b>理财</b> / <b>众筹</b> / <b>白条</b> / <b>保险</b></a> </li> </ul> </div> </div> <hr style="border: 1px solid #ff0000;margin-top: -7px;"> <!--热卖促销--> <div class="JD_temai"> <div class="JD_main"> <div class="JD_left"> <div class="hd"> 热卖推荐 </div> <div class="bd mc"> <ul class="mc"> <li> <a href="/static/search/#" class="mc_a"><img src="/static/search/./img/5a28b5a1n8a5c095f.jpg" alt=""></a> <div class="mc_div"> <a href="/static/search/#" class="mc_div_a1"> <em>华为 HUAWEI nova 2S 全面屏四摄 6GB +64GB 曜石黑 移动联通电信4G手机 双卡双待</em> </a> <p> <strong> <em class="number J-p-5963064">¥2999.00</em> </strong> </p> <a href="/static/search/#" class="mc_div_a2">立即抢购</a> </div> </li> <li> <a href="/static/search/#" class="mc_a"><img src="/static/search/./img/59f5eef1n99542494.jpg" alt=""></a> <div class="mc_div"> <a href="/static/search/#" class="mc_div_a1"> <em>【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待</em> </a> <p> <strong> <em class="number J-p-5963064">¥1699.00</em> </strong> </p> <a href="/static/search/#" class="mc_div_a2">立即抢购</a> </div> </li> <li style="margin-right: 0"> <a href="/static/search/#" class="mc_a"><img src="/static/search/./img/59f5eef1n99542494.jpg" alt=""></a> <div class="mc_div"> <a href="/static/search/#" class="mc_div_a1"> <em>华为 HUAWEI nova 2S 全面屏四摄 6GB +64GB 曜石黑 移动联通电信4G手机 双卡双待</em> </a> <p> <strong> <em class="number J-p-5963064">¥2999.00</em> </strong> </p> <a href="/static/search/#" class="mc_div_a2">立即抢购</a> </div> </li> </ul> </div> </div> <div class="JD_right"> <div class="hd"> 促销活动</div> <div class="bd"> <ul> <li> . <a href="/static/search/#">红米千元全面屏手机上市</a></li> <li> . <a href="/static/search/#">锤子坚果Pro2火爆预约中</a></li> <li> . <a href="/static/search/#">大牌新品 疯狂抢购</a></li> <li> . <a href="/static/search/#">X20 vivo蓝新色上市</a></li> <li> . <a href="/static/search/#">荣耀畅玩7X新品上市</a></li> </ul> </div> </div> </div> </div> <!--手机--> <div class="JD_ipone"> <div class="JD_ipone_bar"> <div class="JD_ipone_one a"> <a href="/static/search/#">手机</a> </div> <i><img src="/static/search/image/right-@1x.png" alt=""></i> <div class="JD_ipone_one b"> <a href="/static/search/#" class="qqq">手机通讯录 <img src="/static/search/image/down-@1x.png" alt=""></a> <div> <a href="/static/search/#">手机通讯</a> <a href="/static/search/#">运营商</a> <a href="/static/search/#">手机配件</a> <a href="/static/search/#">手机服务</a> </div> </div> <i><img src="/static/search/image/right-@1x.png" alt=""></i> <div class="JD_ipone_one c"> <a href="/static/search/#" class="qqq">手机 <img src="/static/search/image/down-@1x.png" alt=""></a> <div> <a href="/static/search/#">手机</a> <a href="/static/search/#">老人机</a> <a href="/static/search/#">对讲机</a> <a href="/static/search/#">女性手机</a> <a href="/static/search/#">超续航手机</a> <a href="/static/search/#">全面屏手机</a> <a href="/static/search/#">拍照手机</a> <a href="/static/search/#">游戏手机</a> </div> </div> <div class="JD_ipone_one c"> <!-- 遍历面包屑功能 --> <a th:href="${nav.link}" th:each="nav:${result.navs}"><span th:text="${nav.navName}"></span>:<span th:text="${nav.navValue}"></span> x</a> </div> <i><img src="/static/search/image/right-@1x.png" alt=""></i> </div> </div> <!--商品筛选和排序--> <div class="JD_banner w"> <div class="JD_nav"> <div class="JD_selector"> <!--手机商品筛选--> <div class="title"> <h3><b>手机</b><em>商品筛选</em></h3> <div class="st-ext">共&nbsp;<span>10135</span>个商品</div> </div> <div class="JD_nav_logo"> <!--品牌--> <div class="JD_nav_wrap"> <div class="sl_key"> <span><b>品牌:</b></span> </div> <div class="sl_value"> <div class="sl_value_logo"> <ul> <li th:each="brand : ${result.brands}"> <a href="#" th:href="${'javascript:searchProducts(&quot;brandId&quot;,'+brand.brandId+')'}"> <img th:src="${brand.brandImg}" alt=""> <div th:text="${brand.brandName}"> 华为(HUAWEI) </div> </a> </li> </ul> </div> </div> <div class="sl_ext"> <a href="/static/search/#"> 更多 <i style='background: 3px 7px'></i> <b style='background: 3px -44px'></b> </a> <a href="/static/search/#"> 多选 <i>+</i> <span>+</span> </a> </div> </div> <!--分类--> <div class="JD_pre"> <div class="sl_key"> <span><b>分类:</b></span> </div> <div class="sl_value"> <ul> <li th:each="catalog : ${result.catalogs}"> <a href="/static/search/#" th:href="${'javascript:searchProducts(&quot;catalog3Id&quot;,'+catalog.catalogId+')'}" th:text="${catalog.catalogName}">5.56英寸及以上 </a> </li> </ul> </div> <div class="sl_ext"> <a href="/static/search/#"> 更多 <i style='background: 3px 7px'></i> <b style='background: 3px -44px'></b> </a> <a href="/static/search/#"> 多选 <i>+</i> <span>+</span> </a> </div> </div> <!--其它的所有需要展示的属性--> <div class="JD_pre" th:each="attr : ${result.attrs}"> <div class="sl_key"> <span th:text="${attr.attrName}">屏幕尺寸:</span> </div> <div class="sl_value"> <ul> <li th:each="attrValue : ${attr.attrValue}"> <a href="/static/search/#" th:href="${'javascript:searchProducts(&quot;attrs&quot;,&quot;'+attr.attrId+'_'+attrValue+'&quot;)'}" th:text="${attrValue}">5.56英寸及以上 </a> </li> </ul> </div> </div> </div> <div class="JD_show"> <a href="/static/search/#"> <span> 更多选项( CPU核数、网络、机身颜色 等) </span> </a> </div> </div> <!--排序--> <div class="JD_banner_main"> <!--商品精选--> <div class="JD_con_left"> <div class="JD_con_left_bar"> <div class="JD_con_one"> <div class="mt"> <h3>商品精选</h3> <span>广告</span> </div> <div class="mc"> <ul> <li> <a href="/static/search/#" title="vivo X9s 全网通 4GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待"><img src="/static/search/img/59bf3c47n91d65c73.jpg" alt=""></a> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>华为 HUAWEI nova 2S 全面屏四摄 6GB +64GB 曜石黑 移动联通电信4G手机 双卡双待</em> </a> <div class="mc_price"> <strong class="price"> <span class="J-p-5963064">¥2999.00</span> </strong> <span class="mc-ico" title="购买本商品送赠品"> <i class="goods-icons">赠品</i> </span> </div> <div class="mc_rev"> 已有 <a href="/static/search/#" class="number">12466</a> 人评价 </div> </li> <li> <a href="/static/search/#" title="vivo X9s 全网通 4GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待"><img src="/static/search/img/59bf3c47n91d65c73.jpg" alt=""></a> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>华为 HUAWEI nova 2S 全面屏四摄 6GB +64GB 曜石黑 移动联通电信4G手机 双卡双待</em> </a> <div class="mc_price"> <strong class="price"> <span class="J-p-5963064">¥2999.00</span> </strong> <span class="mc-ico" title="购买本商品送赠品"> <i class="goods-icons">赠品</i> </span> </div> <div class="mc_rev"> 已有 <a href="/static/search/#" class="number">12466</a> 人评价 </div> </li> <li> <a href="/static/search/#" title="vivo X9s 全网通 4GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待"><img src="/static/search/img/593ba628n8794c6a6.jpg" alt=""></a> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机</em> </a> <div class="mc_price"> <strong class="price"> <span class="J-p-5963064">¥1799.00</span> </strong> <span class="mc-ico" title="购买本商品送赠品"> <i class="goods-icons">赠品</i> </span> </div> <div class="mc_rev"> 已有 <a href="/static/search/#" class="number">15600</a> 人评价 </div> </li> <li> <a href="/static/search/#" title="vivo X9s 全网通 4GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待"><img src="/static/search/img/5919637an271a1301.jpg" alt=""></a> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>vivo Xplay6 全网通 6GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待</em> </a> <div class="mc_price"> <strong class="price"> <span class="J-p-5963064">¥3498.00</span> </strong> <span class="mc-ico" title="购买本商品送赠品"> <i class="goods-icons">赠品</i> </span> </div> <div class="mc_rev"> 已有 <a href="/static/search/#" class="number">5369</a> 人评价 </div> </li> </ul> </div> </div> <div class="JD_con_one"> <div class="mt"> <h3>达人选购</h3> </div> <div class="mc"> <ul> <li> <a href="/static/search/#" title="vivo X9s 全网通 4GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待"><img src="/static/search/img/59bf3c47n91d65c73.jpg" alt=""></a> <a href="/static/search/#"> <em>华为 HUAWEI nova 2S 全面屏四摄 6GB +64GB 曜石黑 移动联通电信4G手机 双卡双待</em> </a> <div class="mc_price"> <strong class="price"> <span class="J-p-5963064">¥2999.00</span> </strong> </div> </li> <li> <a href="/static/search/#" title="vivo X9s 全网通 4GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待"><img src="/static/search/img/59bf3c47n91d65c73.jpg" alt=""></a> <a href="/static/search/#"> <em>华为 HUAWEI nova 2S 全面屏四摄 6GB +64GB 曜石黑 移动联通电信4G手机 双卡双待</em> </a> <div class="mc_price"> <strong class="price"> <span class="J-p-5963064">¥2999.00</span> </strong> </div> </li> <li> <a href="/static/search/#" title="vivo X9s 全网通 4GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待"><img src="/static/search/img/593ba628n8794c6a6.jpg" alt=""></a> <a href="/static/search/#"> <em>诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机</em> </a> <div class="mc_price"> <strong class="price"> <span class="J-p-5963064">¥1799.00</span> </strong> </div> </li> <li> <a href="/static/search/#" title="vivo X9s 全网通 4GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待"><img src="/static/search/img/5919637an271a1301.jpg" alt=""></a> <a href="/static/search/#"> <em>vivo Xplay6 全网通 6GB+64GB 磨砂黑 移动联通电信4G手机 双卡双待</em> </a> <div class="mc_price"> <strong class="price"> <span class="J-p-5963064">¥3498.00</span> </strong> </div> </li> </ul> </div> </div> <div class="JD_con_one" style="border:none;"> <div class="mt"> <h3>商品精选</h3> <span>广告</span> </div> <div class="mc"> <ul> <li> <a href="/static/search/#"><img src="/static/search/img/599a806bn9d829c1c.jpg" alt=""></a> </li> <li> <a href="/static/search/#"><img src="/static/search/img/593e4de0n5ff878a4.jpg" alt=""></a> </li> </ul> </div> </div> </div> </div> <!--综合排序--> <div class="JD_con_right"> <div class="filter"> <!--综合排序--> <div class="filter_top"> <div class="filter_top_left" th:with="p = ${param.sort}, priceRange = ${param.skuPrice}"> <a sort="hotScore" th:class="${(!#strings.isEmpty(p) && #strings.startsWith(p,'hotScore') && #strings.endsWith(p,'desc')) ? 'sort_a desc' : 'sort_a'}" th:attr="style=${(#strings.isEmpty(p) || #strings.startsWith(p,'hotScore')) ? 'color: #fff; border-color: #e4393c; background: #e4393c;':'color: #333; border-color: #ccc; background: #fff;' }"> 综合排序[[${(!#strings.isEmpty(p) && #strings.startsWith(p,'hotScore') && #strings.endsWith(p,'desc')) ?'↑':'↓' }]]</a> <a sort="saleCount" th:class="${(!#strings.isEmpty(p) && #strings.startsWith(p,'saleCount') && #strings.endsWith(p,'desc')) ? 'sort_a desc' : 'sort_a'}" th:attr="style=${(!#strings.isEmpty(p) && #strings.startsWith(p,'saleCount')) ? 'color: #fff; border-color: #e4393c; background: #e4393c;':'color: #333; border-color: #ccc; background: #fff;' }"> 销量[[${(!#strings.isEmpty(p) && #strings.startsWith(p,'saleCount') && #strings.endsWith(p,'desc'))?'↑':'↓' }]]</a> <a sort="skuPrice" th:class="${(!#strings.isEmpty(p) && #strings.startsWith(p,'skuPrice') && #strings.endsWith(p,'desc')) ? 'sort_a desc' : 'sort_a'}" th:attr="style=${(!#strings.isEmpty(p) && #strings.startsWith(p,'skuPrice')) ? 'color: #fff; border-color: #e4393c; background: #e4393c;':'color: #333; border-color: #ccc; background: #fff;' }"> 价格[[${(!#strings.isEmpty(p) && #strings.startsWith(p,'skuPrice') && #strings.endsWith(p,'desc'))?'↑':'↓' }]]</a> <a sort="hotScore" class="sort_a">评论分</a> <a sort="hotScore" class="sort_a">上架时间</a> <input id="skuPriceFrom" type="number" th:value="${#strings.isEmpty(priceRange)?'':#strings.substringBefore(priceRange,'_')}" style="width: 100px; margin-left: 30px"> - <input id="skuPriceTo" type="number" th:value="${#strings.isEmpty(priceRange)?'':#strings.substringAfter(priceRange,'_')}" style="width: 100px"> <button id="skuPriceSearchBtn">确定</button> </div> <div class="filter_top_right"> <span class="fp-text"> <b>1</b><em>/</em><i>169</i> </span> <a href="/static/search/#" class="prev"><</a> <a href="/static/search/#" class="next"> > </a> </div> </div> <!--收货地址--> <div class="filter_bottom"> <div class="filter_bottom_left"> <div class="fs-cell">收货地</div> <div class="dizhi"> <div class="dizhi_show"> <em>北京朝阳区三环以内</em> <b></b> </div> </div> <div class="dizhi_con"> <ul id="tab"> <li id="tab1" value="1">北京 <img src="/static/search/image/down-@1x.png" alt=""></li> <li id="tab2" value="2">朝阳 <img src="/static/search/image/down-@1x.png" alt=""></li> <li id="tab3" value="3">三环以内 <img src="/static/search/image/down-@1x.png" alt=""> </li> </ul> <div id="container"> <div id="content1" style="z-index: 1;"> <a href="/static/search/#">北京</a> <a href="/static/search/#">上海</a> <a href="/static/search/#">天津</a> <a href="/static/search/#">重庆</a> <a href="/static/search/#">河北</a> <a href="/static/search/#">山西</a> <a href="/static/search/#">河南</a> <a href="/static/search/#">辽宁</a> <a href="/static/search/#">吉林</a> <a href="/static/search/#">黑龙江</a> <a href="/static/search/#">内蒙古</a> <a href="/static/search/#">江苏</a> <a href="/static/search/#">山东</a> <a href="/static/search/#">安徽</a> <a href="/static/search/#">浙江</a> <a href="/static/search/#">福建</a> <a href="/static/search/#">湖北</a> <a href="/static/search/#">湖南</a> <a href="/static/search/#">广东</a> <a href="/static/search/#">广西</a> <a href="/static/search/#">江西</a> <a href="/static/search/#">四川</a> <a href="/static/search/#">海南</a> <a href="/static/search/#">贵州</a> <a href="/static/search/#">云南</a> <a href="/static/search/#">西藏</a> <a href="/static/search/#">陕西</a> <a href="/static/search/#">甘肃</a> <a href="/static/search/#">青海</a> <a href="/static/search/#">宁夏</a> <a href="/static/search/#">新疆</a> <a href="/static/search/#">港澳</a> <a href="/static/search/#">台湾</a> <a href="/static/search/#">钓鱼岛</a> <a href="/static/search/#">海外</a> </div> <div id="content2"> <a href="/static/search/#">朝阳区</a> <a href="/static/search/#">海淀区</a> <a href="/static/search/#">西城区</a> <a href="/static/search/#">东城区</a> <a href="/static/search/#">大兴区</a> <a href="/static/search/#">丰台区</a> <a href="/static/search/#">昌平区</a> <a href="/static/search/#">顺义区</a> </div> <div id="content3"> <a href="/static/search/#">三环以内</a> <a href="/static/search/#">管庄</a> <a href="/static/search/#">北苑</a> <a href="/static/search/#">定福庄</a> <a href="/static/search/#">三环到四环之间</a> <a href="/static/search/#">四环到五环之间</a> <a href="/static/search/#">五环到六环之间</a> </div> </div> </div> </div> <div class="filter_bottom_right"> <ul> <li> <a href="/static/search/#"> <i></i> 谷粒商城配送 </a> </li> <li> <a href="/static/search/#"> <i></i> 京尊达 </a> </li> <li> <a href="/static/search/#"> <i></i> 货到付款 </a> </li> <li> <a th:with="check = ${param.hasStock}"> <input id="showHasStock" type="checkbox" th:checked="${#strings.equals(check,'1')?true:false}"> 仅显示有货 </a> </li> <li> <a href="/static/search/#"> <i></i> 可配送全球 </a> </li> </ul> </div> </div> <!--排序内容,每四个是一组--> <div class="rig_tab"> <div th:each="product : ${result.getProducts()}"> <div class="ico"> <i class="iconfont icon-weiguanzhu"></i> <a href="/static/search/#">关注</a> </div> <p class="da"> <a th:href="|http://item.gulimall.com/${product.skuId}.html|" > <img class="dim" th:src="${product.skuImg}"> </a> </p> <ul class="tab_im"> <li><a href="/static/search/#" title="黑色"> <img th:src="${product.skuImg}"></a></li> </ul> <p class="tab_R"> <span th:text="'¥' + ${product.skuPrice}">¥5199.00</span> </p> <p class="tab_JE"> <a href="/static/search/#" th:utext="${product.skuTitle}"> Apple iPhone 7 Plus (A1661) 32G 黑色 移动联通电信4G手机 </a> </p> <p class="tab_PI">已有<span>11万+</span>热门评价 <a href="/static/search/#">二手有售</a> </p> <p class="tab_CP"><a href="/static/search/#" title="谷粒商城Apple产品专营店">谷粒商城Apple产品...</a> <a href='#' title="联系供应商进行咨询"> <img src="/static/search/img/xcxc.png"> </a> </p> <div class="tab_FO"> <div class="FO_one"> <p>自营 <span>谷粒商城自营,品质保证</span> </p> <p>满赠 <span>该商品参加满赠活动</span> </p> </div> </div> </div> </div> <!--分页--> <div class="filter_page"> <div class="page_wrap"> <span class="page_span1"> <a class="page_a" th:attr="pn=${result.pageNum - 1}" href="/static/search/#" th:if="${result.pageNum>1}"> < 上一页 </a> <a class="page_a" th:attr="pn=${navs},style=${navs == result.pageNum?'border: 0;color:#ee2222;background: #fff':''}" th:each="navs : ${result.pageNavs}">[[${navs}]]</a> <a class="page_a" th:attr="pn=${result.pageNum + 1}" th:if="${result.pageNum<result.totalPages}"> 下一页 > </a> </span> <span class="page_span2"> <em>共<b>[[${result.totalPages}]]</b>页&nbsp;&nbsp;到第</em> <input type="number" value="1"> <em>页</em> <a class="page_submit">确定</a> </span> </div> </div> </div> </div> </div> </div> </div> <!--商品精选--> <div class="JD_jx"> <div class="JD_jx_title"> <div class="mt"> <strong class="mt-title">商品精选</strong> <img src="/static/search/image/u-ad.gif" alt=""> </div> <div class="mc"> <ul> <li> <div class="mc_img"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <img src="/static/search/img/5a25ffc7N98b35d49.jpg" alt=""> </a> </div> <div class="mc_name"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待</em> </a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> <span class="mc_ico" title="购买本商品送赠品">赠品</span> </div> <div class="mc_rev"> <a href="/static/search/#">15930</a> <span>人好评</span> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <img src="/static/search/img/5a25ffc7N98b35d49.jpg" alt=""> </a> </div> <div class="mc_name"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待</em> </a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> <span class="mc_ico" title="购买本商品送赠品">赠品</span> </div> <div class="mc_rev"> <a href="/static/search/#">15930</a> <span>人好评</span> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <img src="/static/search/img/5a25ffc7N98b35d49.jpg" alt=""> </a> </div> <div class="mc_name"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待</em> </a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> <span class="mc_ico" title="购买本商品送赠品">赠品</span> </div> <div class="mc_rev"> <a href="/static/search/#">15930</a> <span>人好评</span> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <img src="/static/search/img/5a25ffc7N98b35d49.jpg" alt=""> </a> </div> <div class="mc_name"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待</em> </a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> <span class="mc_ico" title="购买本商品送赠品">赠品</span> </div> <div class="mc_rev"> <a href="/static/search/#">15930</a> <span>人好评</span> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <img src="/static/search/img/5a25ffc7N98b35d49.jpg" alt=""> </a> </div> <div class="mc_name"> <a href="/static/search/#" title="【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待"> <em>【预约版】华为 HUAWEI 畅享7S 全面屏双摄 4GB +64GB 黑色 移动联通电信4G手机 双卡双待</em> </a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> <span class="mc_ico" title="购买本商品送赠品">赠品</span> </div> <div class="mc_rev"> <a href="/static/search/#">15930</a> <span>人好评</span> </div> </li> </ul> </div> </div> </div> <!--猜你喜欢--> <div class="JD_cnxh"> <div class="JD_jx_title"> <div class="mt"> <strong class="mt-title">猜你喜欢</strong> <a href="/static/search/#"> <img src="/static/search/image/update.png" alt=""> 换一批 </a> </div> <div class="mc"> <ul> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/59bf3c47n91d65c73.jpg" alt=""> </a> </div> <div class="mc_name"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <em>诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机</em> </a> </div> <div class="mc_rev"> <a href="/static/search/#">已有80万+人评价</a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/5a28b5c6Ndec5088f.jpg" alt=""></a> </div> <div class="mc_name"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <em>诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机</em> </a> </div> <div class="mc_rev"> <a href="/static/search/#">已有80万+人评价</a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"><img src="/static/search/img/593e4de0n5ff878a4.jpg" alt=""></a> </div> <div class="mc_name"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <em>诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机</em> </a> </div> <div class="mc_rev"> <a href="/static/search/#">已有80万+人评价</a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"><img src="/static/search/img/593e4de0n5ff878a4.jpg" alt=""></a> </div> <div class="mc_name"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <em>诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机</em> </a> </div> <div class="mc_rev"> <a href="/static/search/#">已有80万+人评价</a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"><img src="/static/search/img/59c493a7N3f9b9c85 (1).jpg" alt=""></a> </div> <div class="mc_name"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <em>诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机</em> </a> </div> <div class="mc_rev"> <a href="/static/search/#">已有80万+人评价</a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"><img src="/static/search/img/59c493a7N3f9b9c85 (1).jpg" alt=""></a> </div> <div class="mc_name"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <em>诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机</em> </a> </div> <div class="mc_rev"> <a href="/static/search/#">已有80万+人评价</a> </div> <div class="mc_price"> <strong> <span>¥1999.00</span> </strong> </div> </li> </ul> </div> </div> </div> <!--我的足迹--> <div class="JD_zuji"> <div class="JD_jx_title"> <div class="mt"> <strong class="mt-title">我的足迹</strong> <a href="/static/search/#"> 更多浏览记录 </a> </div> <div class="mc"> <ul> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/59e58a11Nc38676d5.jpg" alt=""> </a> </div> <div class="mc_price"> <strong> <span>¥2998.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/5a28acccN73689386.jpg" alt=""> </a> </div> <div class="mc_price"> <strong> <span>¥88.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/5a1690ddN441b5dce.jpg" alt=""> </a> </div> <div class="mc_price"> <strong> <span>¥199.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/5a02bde7N7d4453b1.jpg" alt=""> </a> </div> <div class="mc_price"> <strong> <span>¥799.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/5a122dbeN044ebf19.jpg" alt=""> </a> </div> <div class="mc_price"> <strong> <span>¥599.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/59c493a7N3f9b9c85.jpg" alt=""> </a> </div> <div class="mc_price"> <strong> <span>¥699.00</span> </strong> </div> </li> <li> <div class="mc_img"> <a href="/static/search/#" title="诺基亚 7 (Nokia 7) 4GB+64GB 黑色 全网通 双卡双待 移动联通电信4G手机"> <img src="/static/search/img/5a08f6f6N5bab2c1c.jpg" alt=""> </a> </div> <div class="mc_price"> <strong> <span>¥715.00</span> </strong> </div> </li> </ul> </div> </div> </div> <div style="width: 1210px;margin: 0 auto;margin-bottom: 10px"><img src="/static/search/img/5a33a2e0N9a04b4af.jpg" alt=""></div> <!--底部--> <footer class="footer"> <div class="footer_top"> <ul> <li> <span></span> <h3>品类齐全,轻松购物</h3> </li> <li> <span></span> <h3>多仓直发,极速配发</h3> </li> <li> <span></span> <h3>正品行货,精致服务</h3> </li> <li> <span></span> <h3>天天低价,畅选无忧</h3> </li> </ul> </div> <div class="footer_center"> <ol> <li>购物指南</li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">购物流程</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">会员介绍</a> </li> <li><a href="/static/search/#">生活旅行</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">常见问题</a> </li> <li><a href="/static/search/#">大家电</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">联系客服</a> </li> </ol> <ol> <li>配送方式</li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">上门自提</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">211限时达</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">配送服务查询</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">配送费收取标准</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">海外配送</a> </li> </ol> <ol> <li>支付方式</li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">货到付款</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">在线支付</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">分期付款</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">邮局汇款</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">公司转账</a> </li> </ol> <ol> <li>售后服务</li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">售后政策</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">价格保护</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">退款说明</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">返修/退换货</a> </li> <li><a href="/static/search/#">取消订单</a> </li> </ol> <ol> <li>特色服务</li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">夺宝岛</a> </li> <li><a href="/static/search/#">DIY装机</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">延保服务</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">谷粒商城E卡</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">谷粒商城通信</a> </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">谷粒商城gulimall+</a> </li> </ol> <ol> <li>谷粒商城自营覆盖区域</li> <li> 谷粒商城已向全国2661个区县提供自<br> 营配送服务,支持货到付款、 <br> POS机刷卡和售后上门服务。 </li> <li><a href="/static/search/#" style="color: rgb(114, 114, 114);">查看详情&gt;</a> </li> </ol> </div> <div class="footer_foot"> <p class="footer_p p1"> <a href="/static/search/#">关于我们</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">联系我们</a> <span></span> <a href="/static/search/#">联系客服</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">合作招商</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">商家帮助</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">营销中心</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">手机谷粒商城</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">友情链接</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">销售联盟</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">谷粒商城社区</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">风险监测</a> <span></span> <a href="/static/search/#">隐私政策</a> <span></span> <a href="/static/search/#">谷粒商城公益</a> <span></span> <a href="/static/search/#" style="color: rgb(114, 114, 114);">English Site</a> <span></span> <a href="/static/search/#">media &amp; IR</a> </p> <p class="footer_p"> <a href="/static/search/#">京公网安备 11000002000088号</a> <span></span> <a href="/static/search/#">京ICP证070359号</a> <span></span> <a href="/static/search/#">互联网药品信息服务资格证编号(京)-经营性-2014-0008</a> <span></span> <a href="/static/search/#">新出发京零 字第大120007号</a> </p> <p class="footer_p"> <a href="/static/search/#">互联网出版许可证编号新出网证(京)字150号</a> <span></span> <a href="/static/search/#">出版物经营许可证</a> <span></span> <a href="/static/search/#">网络文化经营许可证京网文[2014]2148-348号</a> <span></span> <a href="/static/search/#">违法和不良信息举报电话:4006561155</a> </p> <p class="footer_p"> <a href="/static/search/#">Copyright © 2004 - 2017 谷粒商城JD.com 版权所有</a> <span></span> <a href="/static/search/#">消费者维权热线:4006067733</a> <a href="/static/search/#">经营证照</a> </p> <p class="footer_p"> <a href="/static/search/#">谷粒商城旗下网站:</a> <a href="/static/search/#">谷粒商城支付</a> <span></span> <a href="/static/search/#">谷粒商城云</a> </p> <ul> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> </div> </footer> <!--右侧侧边栏--> <div class="header_bar"> <div class="header_bar_box"> <ul> <li> <a href="/static/search/#"><img src="/static/search/img/wo.png"/></a> <div class="div"> <a href="/static/search/#">谷粒商城会员</a> </div> </li> <li> <a href="/static/search/#"><img src="/static/search/img/gouwuche.png"/></a> <div class="div"> <a href="/static/search/#">购物车</a> </div> </li> <li> <a href="/static/search/#"><img src="/static/search/img/taoxin.png"/></a> <div class="div"> <a href="/static/search/#">我的关注</a> </div> </li> <li> <a href="/static/search/#"><img src="/static/search/img/shi.png"/></a> <div class="div"> <a href="/static/search/#">我的足迹</a> </div> </li> <li> <a href="/static/search/#"><img src="/static/search/img/xinxi.png"/></a> <div class="div"> <a href="/static/search/#">我的消息</a> </div> </li> <li> <a href="/static/search/#"><img src="/static/search/img/qianbao.png"/></a> <div class="div"> <a href="/static/search/#">资讯JIMI</a> </div> </li> </ul> <ul> <li> <a href="/static/search/#"><img src="/static/search/img/fa3f24a70d38bd439261cb7439e517a5.png"/></a> <div class="div"> <a href="/static/search/#">顶部</a> </div> </li> <li> <a href="/static/search/#"><img src="/static/search/img/xinxi.png"/></a> <div class="div"> <a href="/static/search/#">反馈</a> </div> </li> </ul> </div> </div> <script> $(".sl_ext a:nth-child(1)").hover(function () { $(this).children("b").stop(true).animate({top: "3px"}, 50); $(this).children("i").stop(true).animate({top: "-23px"}, 50) }, function () { $(this).children("b").stop(true).animate({top: "24px"}, 50); $(this).children("i").stop(true).animate({top: "3px"}, 50) }); $(".sl_ext a:nth-child(2)").hover(function () { $(this).children("span").stop(true).animate({top: "-1px"}, 100); $(this).children("i").stop(true).animate({top: "-14px"}, 100).css({display: "none"}) }, function () { $(this).children("span").stop(true).animate({top: "14px"}, 100); $(this).children("i").stop(true).animate({top: "-1px"}, 100).css({display: "block"}) }); $('.tab_im img').hover(function () { var a = $(this).prop('src'); var index = $(this).parents('li').index(); $(this).parents('li').css('border', '2px solid red').siblings('li').css('border', '1px solid #ccc'); $(this).parents('ul').prev().find('img').prop('src', a); $(this).parents('ul').siblings('.tab_JE').find('a').eq(list).css('display', 'block').siblings('a').css('display', 'none'); $(this).parents('ul').siblings('.tab_R').find('span').eq(list).css('display', 'block').siblings('span').css('display', 'none') }); $(".JD_ipone_one").hover(function () { $(this).children("div").css({display: "block"}) }, function () { $(this).children("div").css({display: "none"}) }); $("#tab>li").click(function () { var i = $(this).index(); $("#container>div").hide().eq(i).show() }); $(".dizhi_show").hover(function () { $(".dizhi_con").css({display: "block"}) }, function () { $(".dizhi_con").css({display: "none"}) }); $(".dizhi_con").hover(function () { $(this).css({display: "block"}) }, function () { $(this).css({display: "none"}) }); //显示隐藏 var $li = $(".JD_nav_logo>div:gt(3)").hide(); $('.JD_show span').click(function () { if ($li.is(':hidden')) { $li.show(); $(this).css({width: "86px"}).text('收起 ^'); } else { $li.hide(); $('.JD_show span').css({width: "291px"}).text('更多选项( CPU核数、网络、机身颜色 等)'); } return false; }); $(".rig_tab>div").hover(function () { var i = $(this).index(); $(this).find('.ico').css({display: 'block'}).stop(true).animate({top: "190px"}, 300) }, function () { var i = $(this).index(); $(this).find('.ico').css({display: 'none'}).stop(true).animate({top: "230px"}) }); $('.header_main_left>ul>li').hover(function () { $(this).css({ background: "#f0f0f0" }).find('.header_main_left_main').stop(true).fadeIn(300) }, function () { $(this).css({ background: "#fff" }).find(".header_main_left_a").css({ color: "#000" }); $(this).find('.header_main_left_main').stop(true).fadeOut(100) }); $(".header_sj a").hover(function () { $(this).css({ background: "#444" }) }, function () { $(this).css({ background: "#6e6568" }) }); $(".nav_li1 a").hover(function () { $(".header_main_left").stop(true).fadeIn() }, function () { $(".header_main_left").stop(true).fadeOut() }); $(".header_main_left").hover(function () { $(this).stop(true).fadeIn() }, function () { $(this).stop(true).fadeOut() }); //右侧侧边栏 $(".header_bar_box ul li").hover(function () { $(this).css({ background: "#7A6E6E" }).children(".div").css({ display: "block" }).stop(true).animate({ left: "-60px" }, 300) }, function () { $(this).css({ background: "#7A6E6E" }).children(".div").css({ display: "none" }).stop(true).animate({ left: "0" }, 300) }); //底部 $(".footer_foot .p1 a").hover(function () { $(this).css("color", "#D70B1C") }, function () { $(this).css("color", "#727272") }); $(".footer .footer_center ol li a").hover(function () { $(this).css("color", "#D70B1C") }, function () { $(this).css("color", "#727272") }) function searchProducts(name, value) { //原來的页面 location.href = replaceParamVal(location.href,name,value,true) } function searchByKeyword() { searchProducts("keyword", $("#keyword_input").val()); } $(".page_a").click(function () { var pn = $(this).attr("pn"); var href = location.href; if (href.indexOf("pageNum") != -1) { //替换pageNum location.href = replaceParamVal(href, "pageNum", pn); } else { location.href = location.href + "&pageNum=" + pn; } return false; }) function replaceParamVal(url, paramName, replaceVal,forceAdd) { var oUrl = url.toString(); var nUrl; if (oUrl.indexOf(paramName) != -1) { if( forceAdd ) { if (oUrl.indexOf("?") != -1) { nUrl = oUrl + "&" + paramName + "=" + replaceVal; } else { nUrl = oUrl + "?" + paramName + "=" + replaceVal; } } else { var re = eval('/(' + paramName + '=)([^&]*)/gi'); nUrl = oUrl.replace(re, paramName + '=' + replaceVal); } } else { if (oUrl.indexOf("?") != -1) { nUrl = oUrl + "&" + paramName + "=" + replaceVal; } else { nUrl = oUrl + "?" + paramName + "=" + replaceVal; } } return nUrl; }; $(".sort_a").click(function () { changeStyle(this); let sort = $(this).attr("sort"); sort = $(this).hasClass("desc") ? sort + "_desc" : sort + "_asc"; location.href = replaceParamVal(location.href, "sort", sort,false); return false; }); function changeStyle(ele) { // location.href = replaceParamVal(href, "pageNum", pn,flase); // color: #333; border-color: #ccc; background: #fff // color: #fff; border-color: #e4393c; background: #e4393c $(".sort_a").css({"color": "#333", "border-color": "#ccc", "background": "#fff"}); $(".sort_a").each(function () { let text = $(this).text().replace("↓", "").replace("↑", ""); $(this).text(text); }) $(ele).css({"color": "#FFF", "border-color": "#e4393c", "background": "#e4393c"}); $(ele).toggleClass("desc"); if ($(ele).hasClass("desc")) { let text = $(ele).text().replace("↓", "").replace("↑", ""); text = text + "↓"; $(ele).text(text); } else { let text = $(ele).text().replace("↓", "").replace("↑", ""); text = text + "↑"; $(ele).text(text); } }; $("#skuPriceSearchBtn").click(function () { let from = $(`#skuPriceFrom`).val(); let to = $(`#skuPriceTo`).val(); let query = from + "_" + to; location.href = replaceParamVal(location.href, "skuPrice", query,false); }); $("#showHasStock").change(function () { alert( $(this).prop("checked") ); if( $(this).prop("checked") ) { location.href = replaceParamVal(location.href,"hasStock",1,false); } else { let re = eval('/(hasStock=)([^&]*)/gi'); location.href = (location.href+"").replace(re,""); } return false; }); </script> </body> </html>
2401_83448718/meirimall
meirimall-search/src/main/resources/templates/search.html
HTML
apache-2.0
104,633
package com.kong.meirimall.ware; import com.alibaba.alicloud.context.oss.OssContextAutoConfiguration; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.ComponentScan; @EnableFeignClients @ComponentScan("com.kong.meirimall") @EnableDiscoveryClient @SpringBootApplication(exclude = {OssContextAutoConfiguration.class}) public class MeirimallWareApplication { public static void main(String[] args) { SpringApplication.run(MeirimallWareApplication.class, args); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/MeirimallWareApplication.java
Java
apache-2.0
814
package com.kong.meirimall.ware.config; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import org.mybatis.spring.annotation.MapperScan; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; @EnableTransactionManagement @MapperScan("com.kong.meirimall.ware.dao") @Configuration public class WareMyBatisConfig { /** * 添加分页插件 */ @Bean public PaginationInterceptor paginationInterceptor() { PaginationInterceptor paginationInterceptor = new PaginationInterceptor(); //设置请求的页面大于最大页后操作,true 调回到首页,false 继续请求,默认 false paginationInterceptor.setOverflow(true); //设置最大单页限制数量,默认 500 条,-1 不受限制 paginationInterceptor.setLimit(1000); return paginationInterceptor; } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/config/WareMyBatisConfig.java
Java
apache-2.0
1,002
package com.kong.meirimall.ware.controller; import java.util.Arrays; import java.util.Date; import java.util.List; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import com.kong.meirimall.ware.vo.MergeVo; import com.kong.meirimall.ware.vo.PurchaseDoneVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.kong.meirimall.ware.entity.PurchaseEntity; import com.kong.meirimall.ware.service.PurchaseService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; import javax.validation.constraints.Digits; /** * 采购信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @RestController @RequestMapping("ware/purchase") public class PurchaseController { @Autowired private PurchaseService purchaseService; ///ware/purchase/done @PostMapping("/done") public R done(@RequestBody PurchaseDoneVo doneVo){ purchaseService.done(doneVo); return R.ok(); } ///ware/purchase/received 工作人员领取采购单(获得的参数是 多张采购单的 [id] @PostMapping("/received") public R received(@RequestBody List<Long> ids) { purchaseService.receive(ids); return R.ok(); } /** * {purchaseId: 2, items: [1, 2]} * @return */ ///ware/purchase/merge @PostMapping("/merge") public R merge(@RequestBody MergeVo mergeVo){ purchaseService.mergePurchase(mergeVo); return R.ok(); } /** * 列表 */ ///ware/purchase/unreceive/list @GetMapping("/unreceive/list") public R unreceiveList(@RequestParam Map<String, Object> params){ PageUtils page = purchaseService.queryPageUnreceive(params); return R.ok().put("page", page); } @RequestMapping("/list") //@RequiresPermissions("ware:purchase:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = purchaseService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("ware:purchase:info") public R info(@PathVariable("id") Long id){ PurchaseEntity purchase = purchaseService.getById(id); return R.ok().put("purchase", purchase); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("ware:purchase:save") public R save(@RequestBody PurchaseEntity purchase){ purchase.setCreateTime(new Date()); purchase.setUpdateTime(new Date()); purchaseService.save(purchase); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("ware:purchase:update") public R update(@RequestBody PurchaseEntity purchase){ purchaseService.updateById(purchase); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("ware:purchase:delete") public R delete(@RequestBody Long[] ids){ purchaseService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/controller/PurchaseController.java
Java
apache-2.0
3,183
package com.kong.meirimall.ware.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.ware.entity.PurchaseDetailEntity; import com.kong.meirimall.ware.service.PurchaseDetailService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @RestController @RequestMapping("ware/purchasedetail") public class PurchaseDetailController { @Autowired private PurchaseDetailService purchaseDetailService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("ware:purchasedetail:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = purchaseDetailService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("ware:purchasedetail:info") public R info(@PathVariable("id") Long id){ PurchaseDetailEntity purchaseDetail = purchaseDetailService.getById(id); return R.ok().put("purchaseDetail", purchaseDetail); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("ware:purchasedetail:save") public R save(@RequestBody PurchaseDetailEntity purchaseDetail){ purchaseDetailService.save(purchaseDetail); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("ware:purchasedetail:update") public R update(@RequestBody PurchaseDetailEntity purchaseDetail){ purchaseDetailService.updateById(purchaseDetail); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("ware:purchasedetail:delete") public R delete(@RequestBody Long[] ids){ purchaseDetailService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/controller/PurchaseDetailController.java
Java
apache-2.0
2,367
package com.kong.meirimall.ware.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.ware.entity.UndoLogEntity; import com.kong.meirimall.ware.service.UndoLogService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @RestController @RequestMapping("ware/undolog") public class UndoLogController { @Autowired private UndoLogService undoLogService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("ware:undolog:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = undoLogService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("ware:undolog:info") public R info(@PathVariable("id") Long id){ UndoLogEntity undoLog = undoLogService.getById(id); return R.ok().put("undoLog", undoLog); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("ware:undolog:save") public R save(@RequestBody UndoLogEntity undoLog){ undoLogService.save(undoLog); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("ware:undolog:update") public R update(@RequestBody UndoLogEntity undoLog){ undoLogService.updateById(undoLog); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("ware:undolog:delete") public R delete(@RequestBody Long[] ids){ undoLogService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/controller/UndoLogController.java
Java
apache-2.0
2,185
package com.kong.meirimall.ware.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.ware.entity.WareInfoEntity; import com.kong.meirimall.ware.service.WareInfoService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 仓库信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @RestController @RequestMapping("ware/wareinfo") public class WareInfoController { @Autowired private WareInfoService wareInfoService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("ware:wareinfo:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = wareInfoService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("ware:wareinfo:info") public R info(@PathVariable("id") Long id){ WareInfoEntity wareInfo = wareInfoService.getById(id); return R.ok().put("wareInfo", wareInfo); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("ware:wareinfo:save") public R save(@RequestBody WareInfoEntity wareInfo){ wareInfoService.save(wareInfo); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("ware:wareinfo:update") public R update(@RequestBody WareInfoEntity wareInfo){ wareInfoService.updateById(wareInfo); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("ware:wareinfo:delete") public R delete(@RequestBody Long[] ids){ wareInfoService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/controller/WareInfoController.java
Java
apache-2.0
2,223
package com.kong.meirimall.ware.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.ware.entity.WareOrderTaskEntity; import com.kong.meirimall.ware.service.WareOrderTaskService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 库存工作单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @RestController @RequestMapping("ware/wareordertask") public class WareOrderTaskController { @Autowired private WareOrderTaskService wareOrderTaskService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("ware:wareordertask:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = wareOrderTaskService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("ware:wareordertask:info") public R info(@PathVariable("id") Long id){ WareOrderTaskEntity wareOrderTask = wareOrderTaskService.getById(id); return R.ok().put("wareOrderTask", wareOrderTask); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("ware:wareordertask:save") public R save(@RequestBody WareOrderTaskEntity wareOrderTask){ wareOrderTaskService.save(wareOrderTask); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("ware:wareordertask:update") public R update(@RequestBody WareOrderTaskEntity wareOrderTask){ wareOrderTaskService.updateById(wareOrderTask); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("ware:wareordertask:delete") public R delete(@RequestBody Long[] ids){ wareOrderTaskService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/controller/WareOrderTaskController.java
Java
apache-2.0
2,356
package com.kong.meirimall.ware.controller; import java.util.Arrays; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.kong.meirimall.ware.entity.WareOrderTaskDetailEntity; import com.kong.meirimall.ware.service.WareOrderTaskDetailService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 库存工作单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @RestController @RequestMapping("ware/wareordertaskdetail") public class WareOrderTaskDetailController { @Autowired private WareOrderTaskDetailService wareOrderTaskDetailService; /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("ware:wareordertaskdetail:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = wareOrderTaskDetailService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("ware:wareordertaskdetail:info") public R info(@PathVariable("id") Long id){ WareOrderTaskDetailEntity wareOrderTaskDetail = wareOrderTaskDetailService.getById(id); return R.ok().put("wareOrderTaskDetail", wareOrderTaskDetail); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("ware:wareordertaskdetail:save") public R save(@RequestBody WareOrderTaskDetailEntity wareOrderTaskDetail){ wareOrderTaskDetailService.save(wareOrderTaskDetail); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("ware:wareordertaskdetail:update") public R update(@RequestBody WareOrderTaskDetailEntity wareOrderTaskDetail){ wareOrderTaskDetailService.updateById(wareOrderTaskDetail); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("ware:wareordertaskdetail:delete") public R delete(@RequestBody Long[] ids){ wareOrderTaskDetailService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/controller/WareOrderTaskDetailController.java
Java
apache-2.0
2,512
package com.kong.meirimall.ware.controller; import java.util.Arrays; import java.util.List; import java.util.Map; //import org.apache.shiro.authz.annotation.RequiresPermissions; import com.kong.meirimall.ware.vo.SkuHasStockVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.kong.meirimall.ware.entity.WareSkuEntity; import com.kong.meirimall.ware.service.WareSkuService; import com.kong.common.utils.PageUtils; import com.kong.common.utils.R; /** * 商品库存 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @RestController @RequestMapping("ware/waresku") public class WareSkuController { @Autowired private WareSkuService wareSkuService; //查询 sku 是否有库存 @PostMapping("/hasStock") public R getSkusHasStock(@RequestBody List<Long> skuIds) { List<SkuHasStockVo> vos=wareSkuService.getSkusHasStock(skuIds); return R.ok().setData(vos); } /** * 列表 */ @RequestMapping("/list") //@RequiresPermissions("ware:waresku:list") public R list(@RequestParam Map<String, Object> params){ PageUtils page = wareSkuService.queryPage(params); return R.ok().put("page", page); } /** * 信息 */ @RequestMapping("/info/{id}") //@RequiresPermissions("ware:waresku:info") public R info(@PathVariable("id") Long id){ WareSkuEntity wareSku = wareSkuService.getById(id); return R.ok().put("wareSku", wareSku); } /** * 保存 */ @RequestMapping("/save") //@RequiresPermissions("ware:waresku:save") public R save(@RequestBody WareSkuEntity wareSku){ wareSkuService.save(wareSku); return R.ok(); } /** * 修改 */ @RequestMapping("/update") //@RequiresPermissions("ware:waresku:update") public R update(@RequestBody WareSkuEntity wareSku){ wareSkuService.updateById(wareSku); return R.ok(); } /** * 删除 */ @RequestMapping("/delete") //@RequiresPermissions("ware:waresku:delete") public R delete(@RequestBody Long[] ids){ wareSkuService.removeByIds(Arrays.asList(ids)); return R.ok(); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/controller/WareSkuController.java
Java
apache-2.0
2,252
package com.kong.meirimall.ware.dao; import com.kong.meirimall.ware.entity.PurchaseEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 采购信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Mapper public interface PurchaseDao extends BaseMapper<PurchaseEntity> { }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/dao/PurchaseDao.java
Java
apache-2.0
370
package com.kong.meirimall.ware.dao; import com.kong.meirimall.ware.entity.PurchaseDetailEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Mapper public interface PurchaseDetailDao extends BaseMapper<PurchaseDetailEntity> { }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/dao/PurchaseDetailDao.java
Java
apache-2.0
376
package com.kong.meirimall.ware.dao; import com.kong.meirimall.ware.entity.UndoLogEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Mapper public interface UndoLogDao extends BaseMapper<UndoLogEntity> { }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/dao/UndoLogDao.java
Java
apache-2.0
355
package com.kong.meirimall.ware.dao; import com.kong.meirimall.ware.entity.WareInfoEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 仓库信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Mapper public interface WareInfoDao extends BaseMapper<WareInfoEntity> { }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/dao/WareInfoDao.java
Java
apache-2.0
370
package com.kong.meirimall.ware.dao; import com.kong.meirimall.ware.entity.WareOrderTaskEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 库存工作单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Mapper public interface WareOrderTaskDao extends BaseMapper<WareOrderTaskEntity> { }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/dao/WareOrderTaskDao.java
Java
apache-2.0
388
package com.kong.meirimall.ware.dao; import com.kong.meirimall.ware.entity.WareOrderTaskDetailEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 库存工作单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Mapper public interface WareOrderTaskDetailDao extends BaseMapper<WareOrderTaskDetailEntity> { }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/dao/WareOrderTaskDetailDao.java
Java
apache-2.0
406
package com.kong.meirimall.ware.dao; import com.kong.meirimall.ware.entity.WareSkuEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; /** * 商品库存 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Mapper public interface WareSkuDao extends BaseMapper<WareSkuEntity> { void addStock(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum") Integer skuNum); Long getSkuStock(@Param("skuId") Long skuId); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/dao/WareSkuDao.java
Java
apache-2.0
571
package com.kong.meirimall.ware.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Data @TableName("wms_purchase_detail") public class PurchaseDetailEntity implements Serializable { private static final long serialVersionUID = 1L; /** * */ @TableId private Long id; /** * 采购单id */ private Long purchaseId; /** * 采购商品id */ private Long skuId; /** * 采购数量 */ private Integer skuNum; /** * 采购金额 */ private BigDecimal skuPrice; /** * 仓库id */ private Long wareId; /** * 状态[0新建,1已分配,2正在采购,3已完成,4采购失败] */ private Integer status; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/entity/PurchaseDetailEntity.java
Java
apache-2.0
902
package com.kong.meirimall.ware.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 采购信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Data @TableName("wms_purchase") public class PurchaseEntity implements Serializable { private static final long serialVersionUID = 1L; /** * */ @TableId private Long id; /** * */ private Long assigneeId; /** * */ private String assigneeName; /** * */ private String phone; /** * */ private Integer priority; /** * */ private Integer status; /** * */ private Long wareId; /** * */ private BigDecimal amount; /** * */ private Date createTime; /** * */ private Date updateTime; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/entity/PurchaseEntity.java
Java
apache-2.0
900
package com.kong.meirimall.ware.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Data @TableName("undo_log") public class UndoLogEntity implements Serializable { private static final long serialVersionUID = 1L; /** * */ @TableId private Long id; /** * */ private Long branchId; /** * */ private String xid; /** * */ private String context; /** * */ private Long rollbackInfo; /** * */ private Integer logStatus; /** * */ private Date logCreated; /** * */ private Date logModified; /** * */ private String ext; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/entity/UndoLogEntity.java
Java
apache-2.0
806
package com.kong.meirimall.ware.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 仓库信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Data @TableName("wms_ware_info") public class WareInfoEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * 仓库名 */ private String name; /** * 仓库地址 */ private String address; /** * 区域编码 */ private String areacode; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/entity/WareInfoEntity.java
Java
apache-2.0
657
package com.kong.meirimall.ware.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 库存工作单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Data @TableName("wms_ware_order_task_detail") public class WareOrderTaskDetailEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * sku_id */ private Long skuId; /** * sku_name */ private String skuName; /** * 购买个数 */ private Integer skuNum; /** * 工作单id */ private Long taskId; /** * 仓库id */ private Long wareId; /** * 1-已锁定 2-已解锁 3-扣减 */ private Integer lockStatus; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/entity/WareOrderTaskDetailEntity.java
Java
apache-2.0
846
package com.kong.meirimall.ware.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 库存工作单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Data @TableName("wms_ware_order_task") public class WareOrderTaskEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * order_id */ private Long orderId; /** * order_sn */ private String orderSn; /** * 收货人 */ private String consignee; /** * 收货人电话 */ private String consigneeTel; /** * 配送地址 */ private String deliveryAddress; /** * 订单备注 */ private String orderComment; /** * 付款方式【 1:在线付款 2:货到付款】 */ private Integer paymentWay; /** * 任务状态 */ private Integer taskStatus; /** * 订单描述 */ private String orderBody; /** * 物流单号 */ private String trackingNo; /** * create_time */ private Date createTime; /** * 仓库id */ private Long wareId; /** * 工作单备注 */ private String taskComment; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/entity/WareOrderTaskEntity.java
Java
apache-2.0
1,255
package com.kong.meirimall.ware.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 商品库存 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ @Data @TableName("wms_ware_sku") public class WareSkuEntity implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId private Long id; /** * sku_id */ private Long skuId; /** * 仓库id */ private Long wareId; /** * 库存数 */ private Integer stock; /** * sku_name */ private String skuName; /** * 锁定库存 */ private Integer stockLocked; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/entity/WareSkuEntity.java
Java
apache-2.0
744
package com.kong.meirimall.ware.feign; import com.kong.common.utils.R; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; @FeignClient("meirimall-product") public interface ProductFeignService { @RequestMapping ("product/skuinfo/info/{skuId}") public R info(@PathVariable("skuId") Long skuId); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/feign/ProductFeignService.java
Java
apache-2.0
435
package com.kong.meirimall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.ware.entity.PurchaseDetailEntity; import java.util.List; import java.util.Map; /** * * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ public interface PurchaseDetailService extends IService<PurchaseDetailEntity> { PageUtils queryPage(Map<String, Object> params); List<PurchaseDetailEntity> listDetailByPurchaseId(Long id); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/PurchaseDetailService.java
Java
apache-2.0
536
package com.kong.meirimall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.ware.entity.PurchaseEntity; import com.kong.meirimall.ware.vo.MergeVo; import com.kong.meirimall.ware.vo.PurchaseDoneVo; import java.util.List; import java.util.Map; /** * 采购信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ public interface PurchaseService extends IService<PurchaseEntity> { PageUtils queryPage(Map<String, Object> params); PageUtils queryPageUnreceive(Map<String, Object> params); void mergePurchase(MergeVo mergeVo); void receive(List<Long> ids); void done(PurchaseDoneVo doneVo); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/PurchaseService.java
Java
apache-2.0
737
package com.kong.meirimall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.ware.entity.UndoLogEntity; import java.util.Map; /** * * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ public interface UndoLogService extends IService<UndoLogEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/UndoLogService.java
Java
apache-2.0
427
package com.kong.meirimall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.ware.entity.WareInfoEntity; import java.util.Map; /** * 仓库信息 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ public interface WareInfoService extends IService<WareInfoEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/WareInfoService.java
Java
apache-2.0
442
package com.kong.meirimall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.ware.entity.WareOrderTaskDetailEntity; import java.util.Map; /** * 库存工作单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ public interface WareOrderTaskDetailService extends IService<WareOrderTaskDetailEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/WareOrderTaskDetailService.java
Java
apache-2.0
478
package com.kong.meirimall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.ware.entity.WareOrderTaskEntity; import java.util.Map; /** * 库存工作单 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ public interface WareOrderTaskService extends IService<WareOrderTaskEntity> { PageUtils queryPage(Map<String, Object> params); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/WareOrderTaskService.java
Java
apache-2.0
460
package com.kong.meirimall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.kong.common.utils.PageUtils; import com.kong.meirimall.ware.entity.WareSkuEntity; import com.kong.meirimall.ware.vo.SkuHasStockVo; import java.util.List; import java.util.Map; /** * 商品库存 * * @author kong * @email kong@gmail.com * @date 2024-10-04 11:55:52 */ public interface WareSkuService extends IService<WareSkuEntity> { PageUtils queryPage(Map<String, Object> params); void addStock(Long skuId, Long wareId, Integer skuNum); List<SkuHasStockVo> getSkusHasStock(List<Long> skuIds); }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/WareSkuService.java
Java
apache-2.0
633
package com.kong.meirimall.ware.service.impl; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; import java.util.Collections; import java.util.List; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.ware.dao.PurchaseDetailDao; import com.kong.meirimall.ware.entity.PurchaseDetailEntity; import com.kong.meirimall.ware.service.PurchaseDetailService; @Service("purchaseDetailService") public class PurchaseDetailServiceImpl extends ServiceImpl<PurchaseDetailDao, PurchaseDetailEntity> implements PurchaseDetailService { @Override public PageUtils queryPage(Map<String, Object> params) { QueryWrapper<PurchaseDetailEntity> wrapper = new QueryWrapper<>(); String key = (String) params.get("key"); if(!StringUtils.isEmpty(key)){ wrapper.and((obj)->{ obj.eq("purchase_id", key).or().like("sku_id", key); }); } String status = (String) params.get("status"); if(!StringUtils.isEmpty(status)){ wrapper.eq("status", status); } String wareId = (String) params.get("wareId"); if(!StringUtils.isEmpty(wareId)){ wrapper.eq("ware_id", wareId); } IPage<PurchaseDetailEntity> page = this.page(new Query<PurchaseDetailEntity>().getPage(params),wrapper); return new PageUtils(page); } @Override public List<PurchaseDetailEntity> listDetailByPurchaseId(Long id) { List<PurchaseDetailEntity> detailEntities = this.list(new QueryWrapper<PurchaseDetailEntity>().eq("purchase_id", id)); return detailEntities; } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/impl/PurchaseDetailServiceImpl.java
Java
apache-2.0
1,907
package com.kong.meirimall.ware.service.impl; import com.kong.common.constant.WareConstant; import com.kong.meirimall.ware.entity.PurchaseDetailEntity; import com.kong.meirimall.ware.service.PurchaseDetailService; import com.kong.meirimall.ware.vo.MergeVo; import com.kong.meirimall.ware.vo.PurchaseDoneVo; import com.kong.meirimall.ware.vo.PurchaseItemDoneVo; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.ware.dao.PurchaseDao; import com.kong.meirimall.ware.entity.PurchaseEntity; import com.kong.meirimall.ware.service.PurchaseService; import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.Transactional; @Service("purchaseService") public class PurchaseServiceImpl extends ServiceImpl<PurchaseDao, PurchaseEntity> implements PurchaseService { @Autowired PurchaseDetailService detailService; @Autowired private WareSkuServiceImpl wareSkuService; @Override public PageUtils queryPage(Map<String, Object> params) { IPage<PurchaseEntity> page = this.page( new Query<PurchaseEntity>().getPage(params), new QueryWrapper<PurchaseEntity>() ); return new PageUtils(page); } @Override public PageUtils queryPageUnreceive(Map<String, Object> params) { IPage<PurchaseEntity> page = this.page( new Query<PurchaseEntity>().getPage(params), new QueryWrapper<PurchaseEntity>().eq("status", 0).or().eq("status", 1) ); return new PageUtils(page); } @Transactional @Override public void mergePurchase(MergeVo mergeVo) { Long purchaseId = mergeVo.getPurchaseId(); //若没有采购单,新建一个,并附上默认值 if(purchaseId == null){ PurchaseEntity purchaseEntity = new PurchaseEntity(); purchaseEntity.setCreateTime(new Date()); purchaseEntity.setUpdateTime(new Date()); purchaseEntity.setStatus(WareConstant.PurchaseStatusEnum.CREATED.getCode()); this.save(purchaseEntity); //获取新建采购单的 id purchaseId = purchaseEntity.getId(); } // TODO 确认采购单状态是 0/1 才可以合并 // mergeVo 接收到的是 多个采购需求id的数组 和 采购单的id // 根据采购需求 id 得到 采购需求实体类,更新它们的 一些属性(如状态) List<Long> items = mergeVo.getItems(); Long finalPurchaseId = purchaseId; List<PurchaseDetailEntity> detailEntities = items.stream().map(i -> { PurchaseDetailEntity detailEntity = new PurchaseDetailEntity(); detailEntity.setId(i); detailEntity.setPurchaseId(finalPurchaseId); detailEntity.setStatus(WareConstant.PurchaseDetailStatusEnum.ASSIGNED.getCode()); return detailEntity; }).collect(Collectors.toList()); detailService.updateBatchById(detailEntities); PurchaseEntity purchaseEntity = new PurchaseEntity(); purchaseEntity.setId(purchaseId); purchaseEntity.setUpdateTime(new Date()); this.updateById(purchaseEntity); } @Override public void receive(List<Long> ids) { //1、确认当前采购单是新建或者已分配状态 List<PurchaseEntity> purchaseEntities = ids.stream().map(id -> { PurchaseEntity purchaseEntity = this.getById(id); return purchaseEntity; }).filter(item-> item.getStatus()==WareConstant.PurchaseStatusEnum.CREATED.getCode() || item.getStatus()==WareConstant.PurchaseStatusEnum.ASSIGNED.getCode()) .map(item->{ item.setStatus(WareConstant.PurchaseStatusEnum.RECEIVE.getCode()); item.setUpdateTime(new Date()); return item; }).collect(Collectors.toList()); //2、改变采购单的状态 this.updateBatchById(purchaseEntities); //3、改变采购项(需求 detail)的状态 purchaseEntities.forEach(item->{ //获得每个采购单的所有采购项 List<PurchaseDetailEntity> detailEntities=detailService.listDetailByPurchaseId(item.getId()); for (PurchaseDetailEntity detailEntity : detailEntities) { detailEntity.setStatus(WareConstant.PurchaseDetailStatusEnum.RECEIVE.getCode()); } detailService.updateBatchById(detailEntities); }); } @Transactional @Override public void done(PurchaseDoneVo doneVo) { //1、改变采购单状态 //2、改变采购项的状态 //3、将成功采购的进行入库 Long id = doneVo.getId(); PurchaseEntity purchaseEntity = this.getById(id); Boolean flag=true; //如果有一个未采购成功,就变为 false for (PurchaseItemDoneVo item : doneVo.getItems()) { PurchaseDetailEntity detailEntity = detailService.getById(item.getItemId()); if(item.getStatus()==WareConstant.PurchaseStatusEnum.HASEERROR.getCode()){ flag=false; }else { wareSkuService.addStock(detailEntity.getSkuId(),detailEntity.getWareId(),detailEntity.getSkuNum()); } detailEntity.setStatus(item.getStatus()); detailService.updateById(detailEntity); } purchaseEntity.setStatus(flag?WareConstant.PurchaseDetailStatusEnum.FINISH.getCode() : WareConstant.PurchaseDetailStatusEnum.HASEERROR.getCode()); purchaseEntity.setUpdateTime(new Date()); this.updateById(purchaseEntity); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/impl/PurchaseServiceImpl.java
Java
apache-2.0
6,155
package com.kong.meirimall.ware.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.ware.dao.UndoLogDao; import com.kong.meirimall.ware.entity.UndoLogEntity; import com.kong.meirimall.ware.service.UndoLogService; @Service("undoLogService") public class UndoLogServiceImpl extends ServiceImpl<UndoLogDao, UndoLogEntity> implements UndoLogService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<UndoLogEntity> page = this.page( new Query<UndoLogEntity>().getPage(params), new QueryWrapper<UndoLogEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/impl/UndoLogServiceImpl.java
Java
apache-2.0
962
package com.kong.meirimall.ware.service.impl; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.ware.dao.WareInfoDao; import com.kong.meirimall.ware.entity.WareInfoEntity; import com.kong.meirimall.ware.service.WareInfoService; @Service("wareInfoService") public class WareInfoServiceImpl extends ServiceImpl<WareInfoDao, WareInfoEntity> implements WareInfoService { @Override public PageUtils queryPage(Map<String, Object> params) { QueryWrapper<WareInfoEntity> wrapper = new QueryWrapper<WareInfoEntity>(); String key = (String) params.get("key"); if (!StringUtils.isEmpty(key)){ wrapper.eq("id", key).or().like("name", key) .or().like("address", key).or().like("areacode", key); } IPage<WareInfoEntity> page = this.page(new Query<WareInfoEntity>().getPage(params),wrapper); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/impl/WareInfoServiceImpl.java
Java
apache-2.0
1,265
package com.kong.meirimall.ware.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.ware.dao.WareOrderTaskDetailDao; import com.kong.meirimall.ware.entity.WareOrderTaskDetailEntity; import com.kong.meirimall.ware.service.WareOrderTaskDetailService; @Service("wareOrderTaskDetailService") public class WareOrderTaskDetailServiceImpl extends ServiceImpl<WareOrderTaskDetailDao, WareOrderTaskDetailEntity> implements WareOrderTaskDetailService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<WareOrderTaskDetailEntity> page = this.page( new Query<WareOrderTaskDetailEntity>().getPage(params), new QueryWrapper<WareOrderTaskDetailEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/impl/WareOrderTaskDetailServiceImpl.java
Java
apache-2.0
1,094
package com.kong.meirimall.ware.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.ware.dao.WareOrderTaskDao; import com.kong.meirimall.ware.entity.WareOrderTaskEntity; import com.kong.meirimall.ware.service.WareOrderTaskService; @Service("wareOrderTaskService") public class WareOrderTaskServiceImpl extends ServiceImpl<WareOrderTaskDao, WareOrderTaskEntity> implements WareOrderTaskService { @Override public PageUtils queryPage(Map<String, Object> params) { IPage<WareOrderTaskEntity> page = this.page( new Query<WareOrderTaskEntity>().getPage(params), new QueryWrapper<WareOrderTaskEntity>() ); return new PageUtils(page); } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/impl/WareOrderTaskServiceImpl.java
Java
apache-2.0
1,028
package com.kong.meirimall.ware.service.impl; import com.kong.common.utils.R; import com.kong.meirimall.ware.feign.ProductFeignService; import com.kong.meirimall.ware.vo.SkuHasStockVo; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.kong.common.utils.PageUtils; import com.kong.common.utils.Query; import com.kong.meirimall.ware.dao.WareSkuDao; import com.kong.meirimall.ware.entity.WareSkuEntity; import com.kong.meirimall.ware.service.WareSkuService; @Service("wareSkuService") public class WareSkuServiceImpl extends ServiceImpl<WareSkuDao, WareSkuEntity> implements WareSkuService { @Autowired WareSkuDao wareSkuDao; @Autowired ProductFeignService productFeignService; @Override public PageUtils queryPage(Map<String, Object> params) { QueryWrapper<WareSkuEntity> wrapper = new QueryWrapper<>(); String skuId = (String) params.get("skuId"); if (!StringUtils.isEmpty(skuId)){ wrapper.eq("sku_id", skuId); } String wareId = (String) params.get("wareId"); if (!StringUtils.isEmpty(wareId)){ wrapper.eq("ware_id", wareId); } IPage<WareSkuEntity> page = this.page(new Query<WareSkuEntity>().getPage(params),wrapper); return new PageUtils(page); } @Override public void addStock(Long skuId, Long wareId, Integer skuNum) { //1、判断如果还没有这个库存记录,新增 List<WareSkuEntity> entities = wareSkuDao.selectList(new QueryWrapper<WareSkuEntity>().eq("sku_id", skuId).eq("ware_id", wareId)); if (entities == null || entities.size() == 0) { WareSkuEntity entity = new WareSkuEntity(); entity.setSkuId(skuId); entity.setWareId(wareId); entity.setStock(skuNum); entity.setStockLocked(0); // TODO 远程查询 sku的名字,如果失败,整个事务无需回滚 // 1、catch 异常 // 2、TODO 另一种方式 try { R r = productFeignService.info(skuId); if (r.getCode() == 0) { //R 继承了 map,可不用转成 map 再 get entity.setSkuName(r.get("skuName").toString()); } this.save(entity); } catch (Exception e) { } }else { this.baseMapper.addStock(skuId, wareId, skuNum); } } @Override public List<SkuHasStockVo> getSkusHasStock(List<Long> skuIds) { List<SkuHasStockVo> vos = skuIds.stream().map(skuId -> { SkuHasStockVo vo = new SkuHasStockVo(); Long count=baseMapper.getSkuStock(skuId); vo.setSkuId(skuId); vo.setHasStock(count==null?false:count>0); return vo; }).collect(Collectors.toList()); return vos; } }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/service/impl/WareSkuServiceImpl.java
Java
apache-2.0
3,280
package com.kong.meirimall.ware.vo; import lombok.Data; import java.util.List; @Data public class MergeVo { private Long purchaseId; private List<Long> items; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/vo/MergeVo.java
Java
apache-2.0
172
package com.kong.meirimall.ware.vo; import lombok.Data; import javax.validation.constraints.NotNull; import java.util.List; @Data public class PurchaseDoneVo { // { // "id":3, // "items":[{"itemId":1,"status":3,"reason":""},{"itemId":2,"status":4,"reason":"无货"}] // } @NotNull private Long id; private List<PurchaseItemDoneVo> items; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/vo/PurchaseDoneVo.java
Java
apache-2.0
375
package com.kong.meirimall.ware.vo; import lombok.Data; @Data public class PurchaseItemDoneVo { private Long itemId; private Integer status; private String reason; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/vo/PurchaseItemDoneVo.java
Java
apache-2.0
180
package com.kong.meirimall.ware.vo; import lombok.Data; @Data public class SkuHasStockVo { private Long skuId; private Boolean hasStock; }
2401_83448718/meirimall
meirimall-ware/src/main/java/com/kong/meirimall/ware/vo/SkuHasStockVo.java
Java
apache-2.0
149
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="" prop="assigneeId"> <el-input v-model="dataForm.assigneeId" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="assigneeName"> <el-input v-model="dataForm.assigneeName" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="phone"> <el-input v-model="dataForm.phone" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="priority"> <el-input v-model="dataForm.priority" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="status"> <el-input v-model="dataForm.status" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="wareId"> <el-input v-model="dataForm.wareId" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="amount"> <el-input v-model="dataForm.amount" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="createTime"> <el-input v-model="dataForm.createTime" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="updateTime"> <el-input v-model="dataForm.updateTime" placeholder=""></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, assigneeId: '', assigneeName: '', phone: '', priority: '', status: '', wareId: '', amount: '', createTime: '', updateTime: '' }, dataRule: { assigneeId: [ { required: true, message: '不能为空', trigger: 'blur' } ], assigneeName: [ { required: true, message: '不能为空', trigger: 'blur' } ], phone: [ { required: true, message: '不能为空', trigger: 'blur' } ], priority: [ { required: true, message: '不能为空', trigger: 'blur' } ], status: [ { required: true, message: '不能为空', trigger: 'blur' } ], wareId: [ { required: true, message: '不能为空', trigger: 'blur' } ], amount: [ { required: true, message: '不能为空', trigger: 'blur' } ], createTime: [ { required: true, message: '不能为空', trigger: 'blur' } ], updateTime: [ { required: true, message: '不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/ware/purchase/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.assigneeId = data.purchase.assigneeId this.dataForm.assigneeName = data.purchase.assigneeName this.dataForm.phone = data.purchase.phone this.dataForm.priority = data.purchase.priority this.dataForm.status = data.purchase.status this.dataForm.wareId = data.purchase.wareId this.dataForm.amount = data.purchase.amount this.dataForm.createTime = data.purchase.createTime this.dataForm.updateTime = data.purchase.updateTime } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/ware/purchase/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'assigneeId': this.dataForm.assigneeId, 'assigneeName': this.dataForm.assigneeName, 'phone': this.dataForm.phone, 'priority': this.dataForm.priority, 'status': this.dataForm.status, 'wareId': this.dataForm.wareId, 'amount': this.dataForm.amount, 'createTime': this.dataForm.createTime, 'updateTime': this.dataForm.updateTime }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/purchase-add-or-update.vue
Vue
apache-2.0
5,588
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('ware:purchase:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('ware:purchase:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="assigneeId" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="assigneeName" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="phone" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="priority" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="status" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="wareId" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="amount" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="updateTime" header-align="center" align="center" label=""> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './purchase-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/ware/purchase/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/ware/purchase/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/purchase.vue
Vue
apache-2.0
5,990
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="采购单id" prop="purchaseId"> <el-input v-model="dataForm.purchaseId" placeholder="采购单id"></el-input> </el-form-item> <el-form-item label="采购商品id" prop="skuId"> <el-input v-model="dataForm.skuId" placeholder="采购商品id"></el-input> </el-form-item> <el-form-item label="采购数量" prop="skuNum"> <el-input v-model="dataForm.skuNum" placeholder="采购数量"></el-input> </el-form-item> <el-form-item label="采购金额" prop="skuPrice"> <el-input v-model="dataForm.skuPrice" placeholder="采购金额"></el-input> </el-form-item> <el-form-item label="仓库id" prop="wareId"> <el-input v-model="dataForm.wareId" placeholder="仓库id"></el-input> </el-form-item> <el-form-item label="状态[0新建,1已分配,2正在采购,3已完成,4采购失败]" prop="status"> <el-input v-model="dataForm.status" placeholder="状态[0新建,1已分配,2正在采购,3已完成,4采购失败]"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, purchaseId: '', skuId: '', skuNum: '', skuPrice: '', wareId: '', status: '' }, dataRule: { purchaseId: [ { required: true, message: '采购单id不能为空', trigger: 'blur' } ], skuId: [ { required: true, message: '采购商品id不能为空', trigger: 'blur' } ], skuNum: [ { required: true, message: '采购数量不能为空', trigger: 'blur' } ], skuPrice: [ { required: true, message: '采购金额不能为空', trigger: 'blur' } ], wareId: [ { required: true, message: '仓库id不能为空', trigger: 'blur' } ], status: [ { required: true, message: '状态[0新建,1已分配,2正在采购,3已完成,4采购失败]不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/ware/purchasedetail/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.purchaseId = data.purchaseDetail.purchaseId this.dataForm.skuId = data.purchaseDetail.skuId this.dataForm.skuNum = data.purchaseDetail.skuNum this.dataForm.skuPrice = data.purchaseDetail.skuPrice this.dataForm.wareId = data.purchaseDetail.wareId this.dataForm.status = data.purchaseDetail.status } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/ware/purchasedetail/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'purchaseId': this.dataForm.purchaseId, 'skuId': this.dataForm.skuId, 'skuNum': this.dataForm.skuNum, 'skuPrice': this.dataForm.skuPrice, 'wareId': this.dataForm.wareId, 'status': this.dataForm.status }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/purchasedetail-add-or-update.vue
Vue
apache-2.0
4,813
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('ware:purchasedetail:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('ware:purchasedetail:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="purchaseId" header-align="center" align="center" label="采购单id"> </el-table-column> <el-table-column prop="skuId" header-align="center" align="center" label="采购商品id"> </el-table-column> <el-table-column prop="skuNum" header-align="center" align="center" label="采购数量"> </el-table-column> <el-table-column prop="skuPrice" header-align="center" align="center" label="采购金额"> </el-table-column> <el-table-column prop="wareId" header-align="center" align="center" label="仓库id"> </el-table-column> <el-table-column prop="status" header-align="center" align="center" label="状态[0新建,1已分配,2正在采购,3已完成,4采购失败]"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './purchasedetail-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/ware/purchasedetail/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/ware/purchasedetail/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/purchasedetail.vue
Vue
apache-2.0
5,713
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="" prop="branchId"> <el-input v-model="dataForm.branchId" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="xid"> <el-input v-model="dataForm.xid" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="context"> <el-input v-model="dataForm.context" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="rollbackInfo"> <el-input v-model="dataForm.rollbackInfo" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="logStatus"> <el-input v-model="dataForm.logStatus" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="logCreated"> <el-input v-model="dataForm.logCreated" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="logModified"> <el-input v-model="dataForm.logModified" placeholder=""></el-input> </el-form-item> <el-form-item label="" prop="ext"> <el-input v-model="dataForm.ext" placeholder=""></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, branchId: '', xid: '', context: '', rollbackInfo: '', logStatus: '', logCreated: '', logModified: '', ext: '' }, dataRule: { branchId: [ { required: true, message: '不能为空', trigger: 'blur' } ], xid: [ { required: true, message: '不能为空', trigger: 'blur' } ], context: [ { required: true, message: '不能为空', trigger: 'blur' } ], rollbackInfo: [ { required: true, message: '不能为空', trigger: 'blur' } ], logStatus: [ { required: true, message: '不能为空', trigger: 'blur' } ], logCreated: [ { required: true, message: '不能为空', trigger: 'blur' } ], logModified: [ { required: true, message: '不能为空', trigger: 'blur' } ], ext: [ { required: true, message: '不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/ware/undolog/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.branchId = data.undoLog.branchId this.dataForm.xid = data.undoLog.xid this.dataForm.context = data.undoLog.context this.dataForm.rollbackInfo = data.undoLog.rollbackInfo this.dataForm.logStatus = data.undoLog.logStatus this.dataForm.logCreated = data.undoLog.logCreated this.dataForm.logModified = data.undoLog.logModified this.dataForm.ext = data.undoLog.ext } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/ware/undolog/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'branchId': this.dataForm.branchId, 'xid': this.dataForm.xid, 'context': this.dataForm.context, 'rollbackInfo': this.dataForm.rollbackInfo, 'logStatus': this.dataForm.logStatus, 'logCreated': this.dataForm.logCreated, 'logModified': this.dataForm.logModified, 'ext': this.dataForm.ext }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/undolog-add-or-update.vue
Vue
apache-2.0
5,179
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('ware:undolog:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('ware:undolog:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="branchId" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="xid" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="context" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="rollbackInfo" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="logStatus" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="logCreated" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="logModified" header-align="center" align="center" label=""> </el-table-column> <el-table-column prop="ext" header-align="center" align="center" label=""> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './undolog-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/ware/undolog/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/ware/undolog/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/undolog.vue
Vue
apache-2.0
5,840
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="仓库名" prop="name"> <el-input v-model="dataForm.name" placeholder="仓库名"></el-input> </el-form-item> <el-form-item label="仓库地址" prop="address"> <el-input v-model="dataForm.address" placeholder="仓库地址"></el-input> </el-form-item> <el-form-item label="区域编码" prop="areacode"> <el-input v-model="dataForm.areacode" placeholder="区域编码"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, name: '', address: '', areacode: '' }, dataRule: { name: [ { required: true, message: '仓库名不能为空', trigger: 'blur' } ], address: [ { required: true, message: '仓库地址不能为空', trigger: 'blur' } ], areacode: [ { required: true, message: '区域编码不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/ware/wareinfo/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.name = data.wareInfo.name this.dataForm.address = data.wareInfo.address this.dataForm.areacode = data.wareInfo.areacode } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/ware/wareinfo/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'name': this.dataForm.name, 'address': this.dataForm.address, 'areacode': this.dataForm.areacode }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/wareinfo-add-or-update.vue
Vue
apache-2.0
3,341
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('ware:wareinfo:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('ware:wareinfo:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="name" header-align="center" align="center" label="仓库名"> </el-table-column> <el-table-column prop="address" header-align="center" align="center" label="仓库地址"> </el-table-column> <el-table-column prop="areacode" header-align="center" align="center" label="区域编码"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './wareinfo-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/ware/wareinfo/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/ware/wareinfo/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/wareinfo.vue
Vue
apache-2.0
5,161
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="order_id" prop="orderId"> <el-input v-model="dataForm.orderId" placeholder="order_id"></el-input> </el-form-item> <el-form-item label="order_sn" prop="orderSn"> <el-input v-model="dataForm.orderSn" placeholder="order_sn"></el-input> </el-form-item> <el-form-item label="收货人" prop="consignee"> <el-input v-model="dataForm.consignee" placeholder="收货人"></el-input> </el-form-item> <el-form-item label="收货人电话" prop="consigneeTel"> <el-input v-model="dataForm.consigneeTel" placeholder="收货人电话"></el-input> </el-form-item> <el-form-item label="配送地址" prop="deliveryAddress"> <el-input v-model="dataForm.deliveryAddress" placeholder="配送地址"></el-input> </el-form-item> <el-form-item label="订单备注" prop="orderComment"> <el-input v-model="dataForm.orderComment" placeholder="订单备注"></el-input> </el-form-item> <el-form-item label="付款方式【 1:在线付款 2:货到付款】" prop="paymentWay"> <el-input v-model="dataForm.paymentWay" placeholder="付款方式【 1:在线付款 2:货到付款】"></el-input> </el-form-item> <el-form-item label="任务状态" prop="taskStatus"> <el-input v-model="dataForm.taskStatus" placeholder="任务状态"></el-input> </el-form-item> <el-form-item label="订单描述" prop="orderBody"> <el-input v-model="dataForm.orderBody" placeholder="订单描述"></el-input> </el-form-item> <el-form-item label="物流单号" prop="trackingNo"> <el-input v-model="dataForm.trackingNo" placeholder="物流单号"></el-input> </el-form-item> <el-form-item label="create_time" prop="createTime"> <el-input v-model="dataForm.createTime" placeholder="create_time"></el-input> </el-form-item> <el-form-item label="仓库id" prop="wareId"> <el-input v-model="dataForm.wareId" placeholder="仓库id"></el-input> </el-form-item> <el-form-item label="工作单备注" prop="taskComment"> <el-input v-model="dataForm.taskComment" placeholder="工作单备注"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, orderId: '', orderSn: '', consignee: '', consigneeTel: '', deliveryAddress: '', orderComment: '', paymentWay: '', taskStatus: '', orderBody: '', trackingNo: '', createTime: '', wareId: '', taskComment: '' }, dataRule: { orderId: [ { required: true, message: 'order_id不能为空', trigger: 'blur' } ], orderSn: [ { required: true, message: 'order_sn不能为空', trigger: 'blur' } ], consignee: [ { required: true, message: '收货人不能为空', trigger: 'blur' } ], consigneeTel: [ { required: true, message: '收货人电话不能为空', trigger: 'blur' } ], deliveryAddress: [ { required: true, message: '配送地址不能为空', trigger: 'blur' } ], orderComment: [ { required: true, message: '订单备注不能为空', trigger: 'blur' } ], paymentWay: [ { required: true, message: '付款方式【 1:在线付款 2:货到付款】不能为空', trigger: 'blur' } ], taskStatus: [ { required: true, message: '任务状态不能为空', trigger: 'blur' } ], orderBody: [ { required: true, message: '订单描述不能为空', trigger: 'blur' } ], trackingNo: [ { required: true, message: '物流单号不能为空', trigger: 'blur' } ], createTime: [ { required: true, message: 'create_time不能为空', trigger: 'blur' } ], wareId: [ { required: true, message: '仓库id不能为空', trigger: 'blur' } ], taskComment: [ { required: true, message: '工作单备注不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/ware/wareordertask/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.orderId = data.wareOrderTask.orderId this.dataForm.orderSn = data.wareOrderTask.orderSn this.dataForm.consignee = data.wareOrderTask.consignee this.dataForm.consigneeTel = data.wareOrderTask.consigneeTel this.dataForm.deliveryAddress = data.wareOrderTask.deliveryAddress this.dataForm.orderComment = data.wareOrderTask.orderComment this.dataForm.paymentWay = data.wareOrderTask.paymentWay this.dataForm.taskStatus = data.wareOrderTask.taskStatus this.dataForm.orderBody = data.wareOrderTask.orderBody this.dataForm.trackingNo = data.wareOrderTask.trackingNo this.dataForm.createTime = data.wareOrderTask.createTime this.dataForm.wareId = data.wareOrderTask.wareId this.dataForm.taskComment = data.wareOrderTask.taskComment } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/ware/wareordertask/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'orderId': this.dataForm.orderId, 'orderSn': this.dataForm.orderSn, 'consignee': this.dataForm.consignee, 'consigneeTel': this.dataForm.consigneeTel, 'deliveryAddress': this.dataForm.deliveryAddress, 'orderComment': this.dataForm.orderComment, 'paymentWay': this.dataForm.paymentWay, 'taskStatus': this.dataForm.taskStatus, 'orderBody': this.dataForm.orderBody, 'trackingNo': this.dataForm.trackingNo, 'createTime': this.dataForm.createTime, 'wareId': this.dataForm.wareId, 'taskComment': this.dataForm.taskComment }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/wareordertask-add-or-update.vue
Vue
apache-2.0
7,925
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('ware:wareordertask:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('ware:wareordertask:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="orderId" header-align="center" align="center" label="order_id"> </el-table-column> <el-table-column prop="orderSn" header-align="center" align="center" label="order_sn"> </el-table-column> <el-table-column prop="consignee" header-align="center" align="center" label="收货人"> </el-table-column> <el-table-column prop="consigneeTel" header-align="center" align="center" label="收货人电话"> </el-table-column> <el-table-column prop="deliveryAddress" header-align="center" align="center" label="配送地址"> </el-table-column> <el-table-column prop="orderComment" header-align="center" align="center" label="订单备注"> </el-table-column> <el-table-column prop="paymentWay" header-align="center" align="center" label="付款方式【 1:在线付款 2:货到付款】"> </el-table-column> <el-table-column prop="taskStatus" header-align="center" align="center" label="任务状态"> </el-table-column> <el-table-column prop="orderBody" header-align="center" align="center" label="订单描述"> </el-table-column> <el-table-column prop="trackingNo" header-align="center" align="center" label="物流单号"> </el-table-column> <el-table-column prop="createTime" header-align="center" align="center" label="create_time"> </el-table-column> <el-table-column prop="wareId" header-align="center" align="center" label="仓库id"> </el-table-column> <el-table-column prop="taskComment" header-align="center" align="center" label="工作单备注"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './wareordertask-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/ware/wareordertask/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/ware/wareordertask/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/wareordertask.vue
Vue
apache-2.0
6,794
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="sku_id" prop="skuId"> <el-input v-model="dataForm.skuId" placeholder="sku_id"></el-input> </el-form-item> <el-form-item label="sku_name" prop="skuName"> <el-input v-model="dataForm.skuName" placeholder="sku_name"></el-input> </el-form-item> <el-form-item label="购买个数" prop="skuNum"> <el-input v-model="dataForm.skuNum" placeholder="购买个数"></el-input> </el-form-item> <el-form-item label="工作单id" prop="taskId"> <el-input v-model="dataForm.taskId" placeholder="工作单id"></el-input> </el-form-item> <el-form-item label="仓库id" prop="wareId"> <el-input v-model="dataForm.wareId" placeholder="仓库id"></el-input> </el-form-item> <el-form-item label="1-已锁定 2-已解锁 3-扣减" prop="lockStatus"> <el-input v-model="dataForm.lockStatus" placeholder="1-已锁定 2-已解锁 3-扣减"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, skuId: '', skuName: '', skuNum: '', taskId: '', wareId: '', lockStatus: '' }, dataRule: { skuId: [ { required: true, message: 'sku_id不能为空', trigger: 'blur' } ], skuName: [ { required: true, message: 'sku_name不能为空', trigger: 'blur' } ], skuNum: [ { required: true, message: '购买个数不能为空', trigger: 'blur' } ], taskId: [ { required: true, message: '工作单id不能为空', trigger: 'blur' } ], wareId: [ { required: true, message: '仓库id不能为空', trigger: 'blur' } ], lockStatus: [ { required: true, message: '1-已锁定 2-已解锁 3-扣减不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/ware/wareordertaskdetail/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.skuId = data.wareOrderTaskDetail.skuId this.dataForm.skuName = data.wareOrderTaskDetail.skuName this.dataForm.skuNum = data.wareOrderTaskDetail.skuNum this.dataForm.taskId = data.wareOrderTaskDetail.taskId this.dataForm.wareId = data.wareOrderTaskDetail.wareId this.dataForm.lockStatus = data.wareOrderTaskDetail.lockStatus } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/ware/wareordertaskdetail/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'skuId': this.dataForm.skuId, 'skuName': this.dataForm.skuName, 'skuNum': this.dataForm.skuNum, 'taskId': this.dataForm.taskId, 'wareId': this.dataForm.wareId, 'lockStatus': this.dataForm.lockStatus }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/wareordertaskdetail-add-or-update.vue
Vue
apache-2.0
4,692
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('ware:wareordertaskdetail:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('ware:wareordertaskdetail:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="skuId" header-align="center" align="center" label="sku_id"> </el-table-column> <el-table-column prop="skuName" header-align="center" align="center" label="sku_name"> </el-table-column> <el-table-column prop="skuNum" header-align="center" align="center" label="购买个数"> </el-table-column> <el-table-column prop="taskId" header-align="center" align="center" label="工作单id"> </el-table-column> <el-table-column prop="wareId" header-align="center" align="center" label="仓库id"> </el-table-column> <el-table-column prop="lockStatus" header-align="center" align="center" label="1-已锁定 2-已解锁 3-扣减"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './wareordertaskdetail-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/ware/wareordertaskdetail/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/ware/wareordertaskdetail/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/wareordertaskdetail.vue
Vue
apache-2.0
5,688
<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form-item label="sku_id" prop="skuId"> <el-input v-model="dataForm.skuId" placeholder="sku_id"></el-input> </el-form-item> <el-form-item label="仓库id" prop="wareId"> <el-input v-model="dataForm.wareId" placeholder="仓库id"></el-input> </el-form-item> <el-form-item label="库存数" prop="stock"> <el-input v-model="dataForm.stock" placeholder="库存数"></el-input> </el-form-item> <el-form-item label="sku_name" prop="skuName"> <el-input v-model="dataForm.skuName" placeholder="sku_name"></el-input> </el-form-item> <el-form-item label="锁定库存" prop="stockLocked"> <el-input v-model="dataForm.stockLocked" placeholder="锁定库存"></el-input> </el-form-item> </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="visible = false">取消</el-button> <el-button type="primary" @click="dataFormSubmit()">确定</el-button> </span> </el-dialog> </template> <script> export default { data () { return { visible: false, dataForm: { id: 0, skuId: '', wareId: '', stock: '', skuName: '', stockLocked: '' }, dataRule: { skuId: [ { required: true, message: 'sku_id不能为空', trigger: 'blur' } ], wareId: [ { required: true, message: '仓库id不能为空', trigger: 'blur' } ], stock: [ { required: true, message: '库存数不能为空', trigger: 'blur' } ], skuName: [ { required: true, message: 'sku_name不能为空', trigger: 'blur' } ], stockLocked: [ { required: true, message: '锁定库存不能为空', trigger: 'blur' } ] } } }, methods: { init (id) { this.dataForm.id = id || 0 this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ url: this.$http.adornUrl(`/ware/waresku/info/${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { this.dataForm.skuId = data.wareSku.skuId this.dataForm.wareId = data.wareSku.wareId this.dataForm.stock = data.wareSku.stock this.dataForm.skuName = data.wareSku.skuName this.dataForm.stockLocked = data.wareSku.stockLocked } }) } }) }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ url: this.$http.adornUrl(`/ware/waresku/${!this.dataForm.id ? 'save' : 'update'}`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, 'skuId': this.dataForm.skuId, 'wareId': this.dataForm.wareId, 'stock': this.dataForm.stock, 'skuName': this.dataForm.skuName, 'stockLocked': this.dataForm.stockLocked }) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.visible = false this.$emit('refreshDataList') } }) } else { this.$message.error(data.msg) } }) } }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/waresku-add-or-update.vue
Vue
apache-2.0
4,122
<template> <div class="mod-config"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form-item> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input> </el-form-item> <el-form-item> <el-button @click="getDataList()">查询</el-button> <el-button v-if="isAuth('ware:waresku:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('ware:waresku:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> </el-form-item> </el-form> <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;"> <el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column> <el-table-column prop="id" header-align="center" align="center" label="id"> </el-table-column> <el-table-column prop="skuId" header-align="center" align="center" label="sku_id"> </el-table-column> <el-table-column prop="wareId" header-align="center" align="center" label="仓库id"> </el-table-column> <el-table-column prop="stock" header-align="center" align="center" label="库存数"> </el-table-column> <el-table-column prop="skuName" header-align="center" align="center" label="sku_name"> </el-table-column> <el-table-column prop="stockLocked" header-align="center" align="center" label="锁定库存"> </el-table-column> <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex" :page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> </el-pagination> <!-- 弹窗, 新增 / 修改 --> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> </div> </template> <script> import AddOrUpdate from './waresku-add-or-update' export default { data () { return { dataForm: { key: '' }, dataList: [], pageIndex: 1, pageSize: 10, totalPage: 0, dataListLoading: false, dataListSelections: [], addOrUpdateVisible: false } }, components: { AddOrUpdate }, activated () { this.getDataList() }, methods: { // 获取数据列表 getDataList () { this.dataListLoading = true this.$http({ url: this.$http.adornUrl('/ware/waresku/list'), method: 'get', params: this.$http.adornParams({ 'page': this.pageIndex, 'limit': this.pageSize, 'key': this.dataForm.key }) }).then(({data}) => { if (data && data.code === 0) { this.dataList = data.page.list this.totalPage = data.page.totalCount } else { this.dataList = [] this.totalPage = 0 } this.dataListLoading = false }) }, // 每页数 sizeChangeHandle (val) { this.pageSize = val this.pageIndex = 1 this.getDataList() }, // 当前页 currentChangeHandle (val) { this.pageIndex = val this.getDataList() }, // 多选 selectionChangeHandle (val) { this.dataListSelections = val }, // 新增 / 修改 addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(id) }) }, // 删除 deleteHandle (id) { var ids = id ? [id] : this.dataListSelections.map(item => { return item.id }) this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl('/ware/waresku/delete'), method: 'post', data: this.$http.adornData(ids, false) }).then(({data}) => { if (data && data.code === 0) { this.$message({ message: '操作成功', type: 'success', duration: 1500, onClose: () => { this.getDataList() } }) } else { this.$message.error(data.msg) } }) }) } } } </script>
2401_83448718/meirimall
meirimall-ware/src/main/resources/src/views/modules/ware/waresku.vue
Vue
apache-2.0
5,451
#include "FaceDetector.h" FaceDetector::FaceDetector() : minFaceSize(30, 30), maxFaceSize(300, 300) { } bool FaceDetector::loadCascade(const string& cascadePath) { return faceCascade.load(cascadePath); } vector<Rect> FaceDetector::detectFaces(const Mat& frame) { vector<Rect> faces; faceCascade.detectMultiScale( frame, faces, 1.1, 3, 0 | CASCADE_SCALE_IMAGE, minFaceSize, maxFaceSize ); return faces; } Mat FaceDetector::extractFace(const Mat& frame, const Rect& faceRect) { return frame(faceRect).clone(); }
2401_83799216/123
FaceDetector.cpp
C++
unknown
628
#pragma once #include <opencv2/opencv.hpp> #include <string> #include <vector> using namespace cv; using namespace std; class FaceDetector { public: FaceDetector(); bool loadCascade(const string& cascadePath); vector<Rect> detectFaces(const Mat& frame); Mat extractFace(const Mat& frame, const Rect& faceRect); private: CascadeClassifier faceCascade; Size minFaceSize; Size maxFaceSize; };
2401_83799216/123
FaceDetector.h
C++
unknown
439
#include "ImageProcessor.h" ImageProcessor::ImageProcessor() : isInitialized(false) {} ImageProcessor::~ImageProcessor() { releaseCamera(); } bool ImageProcessor::initializeCamera(int deviceId) { if (cap.open(deviceId)) { isInitialized = true; return true; } return false; } Mat ImageProcessor::captureFrame() { Mat frame; if (isInitialized) { cap >> frame; } return frame; } Mat ImageProcessor::preprocess(const Mat& frame) { Mat gray; cvtColor(frame, gray, COLOR_BGR2GRAY); equalizeHist(gray, gray); return gray; } void ImageProcessor::releaseCamera() { if (isInitialized) { cap.release(); isInitialized = false; } }
2401_83799216/123
ImageProcessor.cpp
C++
unknown
756
#pragma once #include <opencv2/opencv.hpp> using namespace cv; using namespace std; class ImageProcessor { public: ImageProcessor(); ~ImageProcessor(); bool initializeCamera(int deviceId = 0); Mat captureFrame(); Mat preprocess(const Mat& frame); void releaseCamera(); private: VideoCapture cap; bool isInitialized; };
2401_83799216/123
ImageProcessor.h
C++
unknown
371
#include "UserInterface.h" UserInterface::UserInterface() { namedWindow("Face Recognition", WINDOW_AUTOSIZE); } void UserInterface::showFrame(const Mat& frame, const string& windowName) { imshow(windowName, frame); } void UserInterface::drawFaceRect(Mat& frame, const Rect& face, const string& label) { rectangle(frame, face, Scalar(0, 255, 0), 2); if (!label.empty()) { putText(frame, label, Point(face.x, face.y - 10), FONT_HERSHEY_SIMPLEX, 0.5, Scalar(0, 255, 0), 2); } } void UserInterface::drawInfo(Mat& frame, const string& info) { putText(frame, info, Point(10, 30), FONT_HERSHEY_SIMPLEX, 0.7, Scalar(0, 0, 255), 2); } bool UserInterface::handleKeyboard() { char key = waitKey(1); return key != ESC_KEY; }
2401_83799216/123
UserInterface.cpp
C++
unknown
803
#pragma once #include <opencv2/opencv.hpp> #include <string> using namespace cv; using namespace std; class UserInterface { public: UserInterface(); void showFrame(const Mat& frame, const string& windowName = "Face Recognition"); void drawFaceRect(Mat& frame, const Rect& face, const string& label = ""); void drawInfo(Mat& frame, const string& info); bool handleKeyboard(); private: const int ESC_KEY = 27; };
2401_83799216/123
UserInterface.h
C++
unknown
454
#include "HuffmanCompressor.h" #include <fstream> #include <iostream> #include <filesystem> namespace fs = std::filesystem; // 设置压缩对象的位置 void HuffmanCompressor::setTargetLocation(const std::string& location) { targetLocation = location; } // 设置压缩包的位置 void HuffmanCompressor::setHuffLocation(const std::string& location) { huffLocation = location; } // 设置解压后的位置 void HuffmanCompressor::setUnHuffLocation(const std::string& location) { unHuffLocation = location; } // 获取待压缩文件的字节频率 std::map<unsigned char, long long> HuffmanCompressor::getWeights(const std::string& inputFile) { std::ifstream fin(inputFile, std::ios::in | std::ios::binary); // 使用二进制模式打开文件 std::map<unsigned char, long long> weights; const size_t bufferSize = 8192; // 8KB 缓冲区 std::vector<char> buffer(bufferSize); // 创建缓冲区 while (fin.read(buffer.data(), buffer.size()) || fin.gcount() > 0) { // 读取文件到缓冲区 for (std::streamsize i = 0; i < fin.gcount(); ++i) { unsigned char c = buffer[i]; weights[c]++; // 更新字节频率 } } fin.close(); return weights; } // 将二进制字符串转换为单字节字符 unsigned char HuffmanCompressor::binaryStringToChar(const std::string& binary) { int sum = 0; for (size_t i = 0; i < binary.size(); ++i) { if (binary[i] == '1') { sum += (1 << (binary.size() - 1 - i)); // 计算对应的二进制值 } } return static_cast<unsigned char>(sum); } // 将单字节字符转换为二进制字符串 std::string HuffmanCompressor::ucharToBinaryString(unsigned char value) { std::string result; for (int i = 7; i >= 0; --i) { result += (value & (1 << i)) ? '1' : '0'; // 从高位到低位逐位转换 } return result; } // 遍历目标并收集目录和文件信息 void HuffmanCompressor::collectFolderInfo(const std::string& inputName, std::vector<std::string>& filePaths, std::vector<std::string>& folderPaths) { // 使用 std::filesystem::path 来处理路径,确保拼接正确 fs::path folder(targetLocation + "\\" + inputName); // 如果是文件,直接将文件路径加入 filePaths if (std::filesystem::is_regular_file(folder)) { filePaths.push_back(inputName); // 直接加入文件路径 return; // 如果是文件,就不再进行递归遍历 } // 如果是文件夹,则遍历文件夹内容 if (std::filesystem::is_directory(folder)) { // 遍历文件夹 for (const auto& entry : fs::recursive_directory_iterator(folder)) { // 获取相对路径 fs::path relativePath = fs::relative(entry.path(), folder); // 获取相对路径 if (entry.is_directory()) { folderPaths.push_back(relativePath.string()); // 存储相对路径 } else if (entry.is_regular_file()) { filePaths.push_back(relativePath.string()); // 存储相对路径 } } } } // 将目录结构信息写入文件头 void HuffmanCompressor::writeFolderMetadata(std::ofstream& fout, std::string folderName, const std::vector<std::string>& folderPaths, const std::vector<std::string>& filePaths) { fout << folderName << " "; // 先写入根文件夹名 fout << folderPaths.size() << " " << filePaths.size() << " "; // 写入总子文件夹数和总文件数 for (const auto& folder : folderPaths) { fout << folder << " "; // 写入每个文件夹的路径 } for (size_t i = 0; i < filePaths.size(); ++i) { fout << filePaths[i] << " " ; // 写入每个文件的路径 } } // 设置压缩密码 void HuffmanCompressor::setCompressPassword(std::ofstream& fout) { std::cout << "Set compress-password? (y/n): "; std::string choice; while(true) { std::cin >> choice; if (choice == "y") { fout << 1 << " "; std::cout << "Input the password: "; std::string password; std::cin >> password; fout << password << " "; break; } else if(choice == "n") { fout << 0 << " "; break; } else { std::cout << "Unknown command. Available commands: y, n." << std::endl; std::cout << "Input again: "; } } } // 处理文件覆盖 bool HuffmanCompressor::askForOverwrite(const std::string& fileName) { std::string choice; std::cout << "The file " << fileName << " already exists. Do you want to overwrite it? (y/n): "; while (true) { std::cin >> choice; if (choice == "y") { return true; } else if (choice == "n") { return false; } else { std::cout << "Unknown command. Available commands: y, n." << std::endl; std::cout << "Input again: "; } } } // 压缩函数 void HuffmanCompressor::compressFile(const std::string& inputFile, const std::string& compressedFile) { // 处理文件覆盖问题 if (fs::exists(huffLocation + '\\' + compressedFile)) { bool reaction = askForOverwrite(compressedFile); if (!reaction) { std::cout << "Compression aborted. The file was not overwritten." << std::endl; return; } else { fs::remove(huffLocation + '\\' + compressedFile); // 删除原文件 } } // 二进制写,在指定位置下创建压缩文件 std::ofstream fout(huffLocation+ '\\' + compressedFile, std::ios::out | std::ios::binary); // 设置压缩密码 setCompressPassword(fout); // 定义缓冲区大小 const size_t bufferSize = 8192; // 8KB缓冲区 // 收集目录信息 std::vector<std::string> filePaths; std::vector<std::string> folderPaths; collectFolderInfo(inputFile, filePaths, folderPaths); // 放置一个标志位,是文件就为0,是目录就为1 int flag; if (std::filesystem::is_regular_file(targetLocation + '\\' + inputFile)) flag = 0; else flag = 1; fout << flag << " "; // 文件头写入目录和文件结构信息 writeFolderMetadata(fout, inputFile, folderPaths, filePaths); // 遍历每个文件 for (size_t i = 0; i < filePaths.size(); ++i) { const std::string& file = filePaths[i]; std::string fileName; if (flag) fileName = targetLocation + '\\' + inputFile + "\\" + file; else fileName = targetLocation + '\\' + inputFile; // 检查空文件 std::ifstream fin(fileName, std::ios::in | std::ios::binary); if (fin.peek() == std::ifstream::traits_type::eof()) { // 空文件处理 fout << 0 << ' '; // 空文件的频率表为空 continue; } std::map<unsigned char, long long> weights = getWeights(fileName); HuffmanTree tree(weights); tree.generateTree(); const auto& encodingMap = tree.getEncodingMap(); std::string binary = ""; std::vector<char> buffer(bufferSize); // 创建缓冲区 // 获取文件内容并进行哈夫曼编码 while (fin.read(buffer.data(), bufferSize) || fin.gcount() > 0) { for (std::streamsize i = 0; i < fin.gcount(); ++i) { binary += encodingMap.at(static_cast<unsigned char>(buffer[i])); // 根据字符获取哈夫曼编码 } } fin.close(); // 二进制字符串可能不是8的倍数,需要在末尾填充0 int addZero = 8 - binary.size() % 8; for (int i = 0; i < addZero; ++i) binary += '0'; // 记录该文件压缩后的字节数 long long compressedSize = binary.size() / 8 + (addZero > 0 ? 1 : 0); // 写入文件头部分 fout << weights.size() << " " << addZero << " "; for (const auto& entry : weights) { fout << entry.first << " " << entry.second << " "; } fout << compressedSize << " "; // 写入当前文件大小 // 创建一个缓冲区来批量写入字节 std::vector<char> writeBuffer; // 将二进制数据转换为字节并加入到缓冲区 for (size_t i = 0; i < binary.size(); i += 8) { unsigned char byte = binaryStringToChar(binary.substr(i, 8)); // 每8位二进制数据转换为一个字节 writeBuffer.push_back(byte); // 将字节添加到缓冲区 } // 使用缓冲区写入文件 fout.write(writeBuffer.data(), writeBuffer.size()); // 将整个缓冲区的数据写入文件 // 如果有多个文件,则写入分隔符 if (i < filePaths.size() - 1) fout << ' '; } fout.close(); std::cout << "compress done" << std::endl; } // 解压缩函数 void HuffmanCompressor::decompressFile(const std::string& compressedFile) { std::ifstream fin(huffLocation+ '\\' + compressedFile, std::ios::in | std::ios::binary); //读取加密信息 int isEncrypted; fin >> isEncrypted; if (isEncrypted) { std::string realPassword, inputPassword; fin >> realPassword; std::cout << "This compressed file has been encrypted, please input the password to decompress it: "; while (true){ std::cin >> inputPassword; if (realPassword == inputPassword) { std::cout << "Correct password." << std::endl; break; } else { std::cout << "Wrong password." << std::endl; std::cout << "Input again: "; } } } // 读取标志位 int flag; fin >> flag; // 读取文件头:根目录名、子文件夹数量、子文件数量、文件夹路径、文件路径及压缩大小 std::string rootName; int folderCount, fileCount; fin >> rootName >> folderCount >> fileCount; std::vector<std::string> folderPaths(folderCount); std::vector<std::string> filePaths(fileCount); for (int i = 0; i < folderCount; ++i) { fin >> folderPaths[i]; // 读取子文件夹路径 } for (int i = 0; i < fileCount; ++i) { fin >> filePaths[i]; // 读取文件路径 } // 创建根目录 fs::path rootPath = unHuffLocation + "\\" + rootName; // 处理文件覆盖问题 if (fs::exists(rootPath)) { bool reaction = askForOverwrite(rootName); if (!reaction) { std::cout << "DeCompression aborted. The file was not overwritten." << std::endl; return; } else { if (fs::is_regular_file(rootPath)) fs::remove(rootPath); else if (fs::is_directory(rootPath)) fs::remove_all(rootPath); } } if (flag) { fs::create_directory(rootPath); // 如果是目录,则创建 } // 创建子文件夹 for (const auto& folderPath : folderPaths) { fs::path folderDir = rootPath / folderPath; fs::create_directory(folderDir); // 如果子文件夹不存在,则创建 } // 解压每个文件 for (int i = 0; i < fileCount; ++i) { const auto& file = filePaths[i]; int size, addZero; fin >> size; // 如果是空文件,跳过解压 if (size == 0) { fs::path filePath; if (flag) filePath = rootPath / file; else filePath = rootPath; std::ofstream foutFile(filePath, std::ios::out | std::ios::binary); // 创建空文件 foutFile.close(); continue; } fin >> addZero; fin.get(); // 读出空格 // 获取字节频率并构建哈夫曼树 std::map<unsigned char, long long> weights; for (int j = 0; j < size; ++j) { unsigned char c; long long weight; fin.get((char&)c); // 读取字节 fin >> weight; fin.get(); // 跳过空格或换行 weights[c] = weight; } HuffmanTree tree(weights); tree.generateTree(); const auto& huffmanTree = tree.getTree(); // 读取压缩的二进制数据 std::string binary = ""; long long compressedSize; // 获取当前文件的压缩大小 fin >> compressedSize; fin.get(); // 使用一个缓冲区来批量读取数据 const size_t bufferSize = 8 * 1024; // 缓冲区大小为8kB std::vector<unsigned char> buffer(bufferSize); // 读取并处理文件内容 long long bytesRead = 0; while (bytesRead < compressedSize - 1) { size_t toRead = std::min(bufferSize, static_cast<size_t>(compressedSize - 1 - bytesRead)); // 确保不会超过剩余的压缩大小 // 读取数据到缓冲区 fin.read(reinterpret_cast<char*>(buffer.data()), toRead); size_t actualRead = fin.gcount(); // 实际读取的字节数 // 将每个字节转换为二进制字符串并追加到 binary 字符串中 for (size_t i = 0; i < actualRead; ++i) { binary += ucharToBinaryString(buffer[i]); } bytesRead += actualRead; // 更新已读取的字节数 } // 去掉填充的零 if (addZero > 0) { binary = binary.substr(0, binary.size() - addZero); } // 创建文件并解压数据 fs::path filePath; if (flag) filePath = rootPath / file; else filePath = rootPath; std::ofstream foutFile(filePath, std::ios::out | std::ios::binary); // 打开每个文件 if (!foutFile) { std::cerr << "unable to create file: " << filePath << std::endl; continue; } std::vector<char> buffer_write(bufferSize); // 创建一个缓冲区 size_t bufferIndex = 0; // 缓冲区的写入索引 int root = huffmanTree.size() - 1; int current = root; // 解码并恢复文件 for (char bit : binary) { current = (bit == '0') ? huffmanTree[current].lc : huffmanTree[current].rc; // 匹配到一个字符,输出并重新开始匹配下一个字符 if (huffmanTree[current].lc == 0 && huffmanTree[current].rc == 0) { buffer_write[bufferIndex++] = huffmanTree[current].ch; // 将字符写入缓冲区 // 如果缓冲区满了,就将缓冲区中的数据写入文件 if (bufferIndex == bufferSize) { foutFile.write(buffer_write.data(), bufferIndex); // 批量写入 bufferIndex = 0; // 重置缓冲区索引 } current = root; // 回到根节点,继续解码下一个字符 } } // 写入剩余的字符(如果有的话) if (bufferIndex > 0) { foutFile.write(buffer_write.data(), bufferIndex); // 写入剩余的数据 } foutFile.close(); // 关闭每个解压的文件 } fin.close(); std::cout << "decompress done" << std::endl; }
2401_83740084/HuffmanCompressor
HuffmanCompressor.cpp
C++
unknown
15,788
#ifndef HUFFMANCOMPRESSOR_H #define HUFFMANCOMPRESSOR_H #include <string> #include <map> #include <vector> #include "HuffmanTree.h" /** * @class HuffmanCompressor * @brief 实现文件和文件夹的哈夫曼压缩与解压功能。 * * 该类提供了基于哈夫曼编码的文件压缩与解压缩功能,支持文件夹结构的还原, * 并允许用户指定文件的输入、输出路径。 */ class HuffmanCompressor { public: /** * @brief 压缩文件或文件夹。 * * 使用哈夫曼编码对指定的文件或文件夹进行压缩,并将结果存储到指定的压缩文件中。 * @param inputFile 输入文件或文件夹的路径。 * @param compressedFile 压缩后输出的文件路径。 */ void compressFile(const std::string& inputFile, const std::string& compressedFile); /** * @brief 解压缩文件。 * * 根据压缩包内容,解压文件或还原文件夹结构。 * @param compressedFile 压缩包的路径。 */ void decompressFile(const std::string& compressedFile); /** * @brief 设置压缩对象的位置。 * * 指定需要压缩的文件或文件夹路径。 * @param location 目标文件或文件夹路径。 */ void setTargetLocation(const std::string& location); /** * @brief 设置压缩包的位置。 * * 指定压缩后生成的压缩包路径。 * @param location 压缩包路径。 */ void setHuffLocation(const std::string& location); /** * @brief 设置解压后文件的存放位置。 * * 指定解压操作后生成文件或文件夹的存放路径。 * @param location 解压后文件存放路径。 */ void setUnHuffLocation(const std::string& location); private: std::string targetLocation; // 压缩对象的位置 std::string huffLocation; // 压缩包的位置 std::string unHuffLocation; // 解压后的位置 /** * @brief 统计文件中各字节的频率。 * * 读取指定文件,统计其中每种字节的出现频率。 * @param inputFile 输入文件路径。 * @return 一个映射,键为字节,值为其出现的频率。 */ std::map<unsigned char, long long> getWeights(const std::string& inputFile); /** * @brief 将二进制字符串转换为单字节字符。 * * 用于将哈夫曼编码的二进制形式转为存储格式。 * @param binary 二进制字符串。 * @return 转换后的字节。 */ unsigned char binaryStringToChar(const std::string& binary); /** * @brief 将单字节字符转换为二进制字符串。 * * 用于将存储的字符转回哈夫曼编码的二进制形式。 * @param value 字节值。 * @return 对应的二进制字符串。 */ std::string ucharToBinaryString(unsigned char value); /** * @brief 遍历文件夹并收集目录和文件信息。 * * 遍历目标文件夹,收集其内部文件和子文件夹的路径信息。 * @param inputName 文件夹路径。 * @param filePaths 收集的文件路径列表。 * @param folderPaths 收集的子文件夹路径列表。 */ void collectFolderInfo(const std::string& inputName, std::vector<std::string>& filePaths, std::vector<std::string>& folderPaths); /** * @brief 将文件夹结构信息写入压缩包文件头。 * * 将文件夹及其子文件的信息写入压缩文件,以便解压时还原。 * @param fout 输出文件流。 * @param folderName 根目录名称。 * @param folderPaths 子文件夹路径列表。 * @param filePaths 文件路径列表。 */ void writeFolderMetadata(std::ofstream& fout, std::string folderName, const std::vector<std::string>& folderPaths, const std::vector<std::string>& filePaths); /** * @brief 设置压缩密码。 * * 在压缩包中附加简单的密码保护信息。 * @param fout 输出文件流。 */ void setCompressPassword(std::ofstream& fout); /** * @brief 处理文件覆盖情况。 * * 如果目标路径已存在文件,提示用户是否覆盖。 * @param fileName 目标文件名。 * @return 是否允许覆盖,true 表示允许,false 表示拒绝。 */ bool askForOverwrite(const std::string& fileName); }; #endif // HUFFMANCOMPRESSOR_H
2401_83740084/HuffmanCompressor
HuffmanCompressor.h
C++
unknown
4,631
#include "HuffmanNode.h" // 构造函数实现 HuffmanNode::HuffmanNode(unsigned char character, long long wt) : ch(character), weight(wt), father(0), lc(0), rc(0) {}
2401_83740084/HuffmanCompressor
HuffmanNode.cpp
C++
unknown
177
#ifndef HUFFMANNODE_H #define HUFFMANNODE_H /** * @class HuffmanNode * @brief 表示哈夫曼树中的一个节点。 * * 每个节点包含字符(适用于二进制文件的字节)、权重(用于构造哈夫曼树的依据), * 以及指向父节点、左子节点和右子节点的索引。 */ class HuffmanNode { public: unsigned char ch; // 字节(适用于二进制文件) long long weight; // 权重 int father; // 父节点 int lc; // 左子节点 int rc; // 右子节点 /** * @brief HuffmanNode 的构造函数。 * * 创建一个哈夫曼树节点,可以指定字符和权重,默认的字符为0,权重为0。 * * @param character 节点的字符(字节形式),默认为 0。 * @param wt 节点的权重,默认为 0。 */ HuffmanNode(unsigned char character = 0, long long wt = 0); }; #endif // HUFFMANNODE_H
2401_83740084/HuffmanCompressor
HuffmanNode.h
C++
unknown
982
#include "HuffmanTree.h" #include <string> #include <climits> HuffmanTree::HuffmanTree(const std::map<unsigned char, long long>& weights) { for (auto it = weights.begin(); it != weights.end(); ++it) { unsigned char character = it->first; long long weight = it->second; tree.emplace_back(character, weight); } } // 从前 n 个节点中选择两个权重最小且未被选中的节点 void HuffmanTree::selectTwo(int n, int& s1, int& s2) { long long minWeight = INT_MAX; s1 = s2 = -1; for (int i = 0; i < n; ++i) { if (tree[i].father == 0 && tree[i].weight < minWeight) { minWeight = tree[i].weight; s1 = i; } } minWeight = INT_MAX; for (int i = 0; i < n; ++i) { if (tree[i].father == 0 && tree[i].weight < minWeight && i != s1) { minWeight = tree[i].weight; s2 = i; } } } // 构建哈夫曼树并生成编码 void HuffmanTree::generateTree() { int n = tree.size(); for (int i = n; i < 2 * n - 1; ++i) { int s1 = 0, s2 = 0; selectTwo(i, s1, s2); tree[s1].father = i; tree[s2].father = i; tree.emplace_back(0, tree[s1].weight + tree[s2].weight); // 新建父节点 tree.back().lc = s1; tree.back().rc = s2; } // 生成哈夫曼编码 for (int i = 0; i < n; ++i) { std::string code = ""; for (int current = i, parent = tree[i].father; parent; current = parent, parent = tree[current].father) { code = (tree[parent].lc == current ? '0' : '1') + code; } encodingMap[tree[i].ch] = code; } } // 返回编码映射 const std::map<unsigned char, std::string>& HuffmanTree::getEncodingMap() const { return encodingMap; } // 返回 Huffman 树 const std::vector<HuffmanNode>& HuffmanTree::getTree() const { return tree; }
2401_83740084/HuffmanCompressor
HuffmanTree.cpp
C++
unknown
1,967
#ifndef HUFFMANTREE_H #define HUFFMANTREE_H #include <vector> #include <map> #include "HuffmanNode.h" #include <string> /** * @class HuffmanTree * @brief 表示哈夫曼树及其相关操作。 * * 哈夫曼树是一种用于数据压缩的二叉树,通过字符的权重构造最优编码方案。 * 本类提供了哈夫曼树的构造和编码生成功能。 */ class HuffmanTree { private: std::vector<HuffmanNode> tree; // 哈夫曼树节点列表 std::map<unsigned char, std::string> encodingMap; // 字节对应的哈夫曼编码 /** * @brief 选择两个权重最小的节点。 * * 从前 n 个节点中选择权重最小的两个节点,其索引分别存储到 s1 和 s2 中。 * @param n 搜索范围,表示从 0 到 n-1 的节点中进行选择。 * @param s1 用于存储权重最小节点的索引。 * @param s2 用于存储权重次小节点的索引。 */ void selectTwo(int n, int& s1, int& s2); public: /** * @brief HuffmanTree 的构造函数。 * * 根据给定的字符及其权重初始化哈夫曼树。 * @param weights 字符与其权重的映射,用于构造哈夫曼树。 */ HuffmanTree(const std::map<unsigned char, long long>& weights); /** * @brief 构造哈夫曼树并生成编码表。 * * 通过节点权重构造哈夫曼树,并根据树的结构为每个字符生成对应的哈夫曼编码。 */ void generateTree(); /** * @brief 获取哈夫曼编码表。 * * 返回字符与哈夫曼编码的映射表,用于编码过程。 * @return 字节与哈夫曼编码的映射。 */ const std::map<unsigned char, std::string>& getEncodingMap() const; /** * @brief 获取哈夫曼树。 * * 返回哈夫曼树的节点列表,用于调试或其他操作。 * @return 哈夫曼树的节点列表。 */ const std::vector<HuffmanNode>& getTree() const; }; #endif // HUFFMANTREE_H
2401_83740084/HuffmanCompressor
HuffmanTree.h
C++
unknown
2,097
#include "HuffmanCompressor.h" #include <iostream> #include <string> #include <filesystem> using namespace std; namespace fs = std::filesystem; // 帮助栏打印函数 void help_menu(); int main() { HuffmanCompressor compressor; string currentLocation = ""; // 当前工作位置 while (true) { // 动态修改提示符 if (!currentLocation.empty()) { cout << currentLocation << "> "; // 当前工作位置为 newlocation } else { cout << "> "; // 未设置工作位置时的默认提示符 } string command; getline(cin, command); if (command.substr(0, 2) == "cd") { // 处理cd命令,改变当前工作位置 string newLocation = command.substr(3); if (fs::exists(newLocation) && fs::is_directory(newLocation)) { currentLocation = newLocation; } else { cout << "Invalid location." << endl; } } else if (command.substr(0, 4) == "huff") { // 处理huff命令,压缩文件 if (currentLocation.empty()) { cout << "Please set working location first with 'cd' command." << endl; continue; } // 提取待压缩文件名和压缩包名 string input = command.substr(5); size_t spacePos = input.find(' '); if (spacePos != string::npos) { string compressedFile = input.substr(0, spacePos); string fileName = input.substr(spacePos + 1); // 判断压缩包类型是否正确(.huff) if (!(compressedFile.size() >= 5 && compressedFile.substr(compressedFile.size() - 5) == ".huff")) { // 文件不以 '.huff' 结尾 cout << "The compressed file name must end with a '.huff' extension." << endl; continue; } // 判断待压缩文件是否存在 if (!(fs::exists(currentLocation + "\\" + fileName))) { cout << "Invalid file parameter. Please make sure the target file exist." << endl; continue; } // 设置压缩目标位置 compressor.setTargetLocation(currentLocation); cout << "Set the location for the compressed file: "; string compressLocation; cin >> compressLocation; if (fs::exists(compressLocation) && fs::is_directory(compressLocation)) { compressor.setHuffLocation(compressLocation); compressor.compressFile(fileName, compressedFile); } else { cout << "Invalid location." << endl; } cin.ignore(); // 忽略换行符 } else { cout << "Invalid 'huff' command syntax. Usage: huff <compressedFileName> <fileToCompress>" << endl; } } else if (command.substr(0, 6) == "unhuff") { // 处理unhuff命令,解压文件 if (currentLocation.empty()) { cout << "Please set working location first with 'cd' command." << endl; continue; } // 提取待解压的压缩包名 string compressedFile = command.substr(7); // 判断待压缩包是否存在 if (!(fs::exists(currentLocation + "\\" + compressedFile) && fs::is_regular_file(currentLocation + "\\" + compressedFile))) { cout << "Invalid file parameter. Please make sure the target file exist." << endl; continue; } // 判断待压缩包类型是否正确(.huff) if (!(compressedFile.size() >= 5 && compressedFile.substr(compressedFile.size() - 5) == ".huff")) { // 文件不以 '.huff' 结尾 cout << "The compressed file name must end with a '.huff' extension." << endl; continue; } // 设置解压目标位置 compressor.setHuffLocation(currentLocation); cout << "Set the location for the new content after decompression: "; string decompressLocation; cin >> decompressLocation; if (fs::exists(decompressLocation) && fs::is_directory(decompressLocation)) { compressor.setUnHuffLocation(decompressLocation); compressor.decompressFile(compressedFile); } else { cout << "Invalid location." << endl; } cin.ignore(); // 忽略换行符 } else if (command == "dir") { // 列出当前工作目录中的所有子目录和子文件 if (fs::is_empty(currentLocation)) { // 空目录 cout << "empty directory" << endl; continue; } if (currentLocation.empty()) { cout << "Please set working location first with 'cd' command." << endl; continue; } cout << "Listing files and directories in: " << currentLocation << endl; for (const auto& entry : fs::directory_iterator(currentLocation)) { if (fs::is_directory(entry)) { cout << "[DIR] " << entry.path().filename().string() << endl; } else if (fs::is_regular_file(entry)) { cout << "[FILE] " << entry.path().filename().string() << endl; } } } else if (command == "help") { // 显示帮助信息 help_menu(); } else if (command == "exit") { // 退出程序 break; } else if (command == "") { // 处理空指令 ; } else { // 处理非法指令 cout << "Unknown command. Available commands: cd, huff, unhuff, exit." << endl; } } return 0; } void help_menu() { cout << "Welcome to use this file compressor. To better use it, please read this help carefully at first. " << endl; cout << "Help - Available Commands:" << endl; cout << "1. cd <path>" << endl; cout << " - Changes the current working directory to <path>." << endl; cout << " - <path> should be a valid directory path." << endl; cout << " - If the directory does not exist, or the path is invalid, an error will be shown." << endl; cout << " - Example usage: cd C:\\Users\\Documents\\Files" << endl; cout << endl; cout << "2. huff <compressedFileName> <fileToCompress>" << endl; cout << " - Compresses <fileToCompress> into a compressed file named <compressedFileName>." << endl; cout << " - The <compressedFileName> must end with a '.huff' extension." << endl; cout << " - <fileToCompress> should be a valid file located in the current working directory." << endl; cout << " - The program will prompt you to specify the directory to store the compressed file." << endl; cout << " - If the compressed file name does not have the .huff extension, an error will occur." << endl; cout << " - Example usage: huff archive.huff myfile.txt" << endl; cout << " - The program will then ask for the location where the .huff file should be saved." << endl; cout << endl; cout << "3. unhuff <compressedFileName>" << endl; cout << " - Decompresses the .huff compressed file <compressedFileName>." << endl; cout << " - The <compressedFileName> must be a valid .huff file located in the current working directory." << endl; cout << " - The program will prompt you to specify the directory where the decompressed files should be saved." << endl; cout << " - If the file does not exist or the extension is incorrect, an error will occur." << endl; cout << " - Example usage: unhuff archive.huff" << endl; cout << " - The program will then ask for the location where the decompressed files should be placed." << endl; cout << endl; cout << "4. dir" << endl; cout << " - Lists all files and directories in the current working directory." << endl; cout << " - If no directory is set (i.e., the working directory is empty), an error message will be shown." << endl; cout << " - Example usage: dir" << endl; cout << " - The program will show all files and subdirectories in the current location." << endl; cout << endl; cout << "5. exit" << endl; cout << " - Exits the program." << endl; cout << " - Example usage: exit" << endl; cout << endl; cout << "General Notes:" << endl; cout << " - Before using 'huff' or 'unhuff', you must set the current working directory using 'cd'." << endl; cout << " - The program will not work unless the working directory is set." << endl; cout << " - All file operations (such as compression and decompression) assume that the file is in the current working directory." << endl; cout << " - Ensure that the target file is valid before attempting compression or decompression." << endl; cout << " - Use the 'dir' command to verify the files and directories available in your current location." << endl; cout << endl; cout << "Example Workflow:" << endl; cout << " 1. Use 'cd' to set your working directory." << endl; cout << " 2. Use 'dir' to list available files and directories." << endl; cout << " 3. Use 'huff' to compress a file into a .huff archive." << endl; cout << " 4. Use 'unhuff' to decompress a .huff archive into files." << endl; cout << " 5. Exit the program when finished using 'exit'." << endl; }
2401_83740084/HuffmanCompressor
Main.cpp
C++
unknown
10,121
<script> export default { globalData:{ datalist: [{ nID: "T15627", newstype: 1, //无图 title: "14个月从100家开到1000家门店,蜜雪冰城为何买下这家精酿啤酒商", isTop: true, author: "界面新闻", comments: 56, time: "2025.10.07", imagelist: ["/static/newsimage/news1.png"], //'/static/default_pic.png' }, { nID: "B4485", title: "把握历史大势 共创美好未来(观沧海)", isTop: true, newstype: 2, //单图 author: "人民日报", comments: 1025, time: "2025.10.25", imagelist: [] }, { nID: "S681421", newstype: 2, //单图 title: "黄金还能走多远?卖方高呼“第三浪启动”,230多份研报看多", isTop: false, author: "财联社", comments: 452, time: "2025.10.08", showSearch: true, imagelist: ["/static/newsimage/news3ss.png"] }, { nID: "a145892", newstype: 3, //多图(广告) title: "加微信交友群,喜欢就聊,找喜欢的人", author: "我主良缘文化", time: "2025.10.08 09:50", bgcolor: "#fee", imagelist: [ "/static/ad/a1.png", "/static/ad/a2333.png", "/static/ad/a3.png" ] }, { nID: "n12458", newstype: 2, //单图 title: "“没有短板”的完美战鹰!歼-16机库独家探访", isTop: false, author: "红星新闻", comments: 56, time: "2025.10.07", showSearch: false, imagelist: ["/static/newsimage/news5.png"] }, { nID: "q36541", newstype: 1, //无图 title: "多国学者共探巴克特里亚考古 携手推进丝绸之路文明研究新进程", isTop: false, author: "中国日报网", comments: 56, time: "2025.10.12", showSearch: false, imagelist: [""] }] }, onLaunch: function() { console.log('App Launch') }, onShow: function() { console.log('App Show') }, onHide: function() { console.log('App Hide') }, onError:function(e){ console.Error("APPvuew---------------onError: " + e); } } </script> <style> /*每个页面公共css */ @import "lib/css/smart.css"; @import "./common/uni.css"; </style>
2401_83220332/SmartUI_wht027
App.vue
Vue
unknown
2,178
/** 数据验证(表单验证) 来自 grace.hcoder.net 作者 hcoder 深海 */ export default { error:'', check : function (data, rule){ for(var i = 0; i < rule.length; i++){ if (!rule[i].checkType){return true;} if (!rule[i].name) {return true;} if (!rule[i].errorMsg) {return true;} if (!data[rule[i].name]) {this.error = rule[i].errorMsg; return false;} switch (rule[i].checkType){ case 'string': var reg = new RegExp('^.{' + rule[i].checkRule + '}$'); if(!reg.test(data[rule[i].name])) {this.error = rule[i].errorMsg; return false;} break; case 'int': var reg = new RegExp('^(-[1-9]|[1-9])[0-9]{' + rule[i].checkRule + '}$'); if(!reg.test(data[rule[i].name])) {this.error = rule[i].errorMsg; return false;} break; break; case 'between': if (!this.isNumber(data[rule[i].name])){ this.error = rule[i].errorMsg; return false; } var minMax = rule[i].checkRule.split(','); minMax[0] = Number(minMax[0]); minMax[1] = Number(minMax[1]); if (data[rule[i].name] > minMax[1] || data[rule[i].name] < minMax[0]) { this.error = rule[i].errorMsg; return false; } break; case 'betweenD': var reg = /^-?[1-9][0-9]?$/; if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; } var minMax = rule[i].checkRule.split(','); minMax[0] = Number(minMax[0]); minMax[1] = Number(minMax[1]); if (data[rule[i].name] > minMax[1] || data[rule[i].name] < minMax[0]) { this.error = rule[i].errorMsg; return false; } break; case 'betweenF': var reg = /^-?[0-9][0-9]?.+[0-9]+$/; if (!reg.test(data[rule[i].name])){this.error = rule[i].errorMsg; return false;} var minMax = rule[i].checkRule.split(','); minMax[0] = Number(minMax[0]); minMax[1] = Number(minMax[1]); if (data[rule[i].name] > minMax[1] || data[rule[i].name] < minMax[0]) { this.error = rule[i].errorMsg; return false; } break; case 'same': if (data[rule[i].name] != rule[i].checkRule) { this.error = rule[i].errorMsg; return false;} break; case 'notsame': if (data[rule[i].name] == rule[i].checkRule) { this.error = rule[i].errorMsg; return false; } break; case 'email': var reg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; } break; case 'phoneno': var reg = /^1[0-9]{10,10}$/; if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; } break; case 'zipcode': var reg = /^[0-9]{6}$/; if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; } break; case 'reg': var reg = new RegExp(rule[i].checkRule); if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; } break; case 'in': if(rule[i].checkRule.indexOf(data[rule[i].name]) == -1){ this.error = rule[i].errorMsg; return false; } break; case 'notnull': if(data[rule[i].name] == null || data[rule[i].name].length < 1){this.error = rule[i].errorMsg; return false;} break; } } return true; }, isNumber : function (checkVal){ var reg = /^-?[1-9][0-9]?.?[0-9]*$/; return reg.test(checkVal); } }
2401_83220332/SmartUI_wht027
common/graceChecker.js
JavaScript
unknown
3,359
@font-face { font-family: uniicons; font-weight: normal; font-style: normal; src: url('~@/static/uni.ttf') format('truetype'); } /* #ifdef H5 */ .fix-left-window { padding-left: var(--window-left); } .pc-hide { display: none !important; } /* #endif */ /*通用 */ /* view{ font-size:28rpx; line-height:1.8; } */ progress, checkbox-group{ width: 100%; } form { width: 100%; } .uni-flex { display: flex; flex-direction: row; } .uni-flex-item { flex: 1; } .uni-row { flex-direction: row; } .uni-column { flex-direction: column; } .uni-link{ color:#576B95; font-size:26rpx; } .uni-center{ text-align:center; } .uni-inline-item{ display: flex; flex-direction: row; align-items:center; } .uni-inline-item text{ margin-right: 20rpx; } .uni-inline-item text:last-child{ margin-right: 0rpx; margin-left: 20rpx; } /* page */ .common-page-head{ padding:35rpx; text-align: center; } .common-page-head-title { display: inline-block; padding: 0 40rpx; font-size: 30rpx; height: 88rpx; line-height: 88rpx; color: #BEBEBE; box-sizing: border-box; border-bottom: 2rpx solid #D8D8D8; } .uni-padding-wrap{ /* width:690rpx; */ padding:0 30rpx; } .uni-word { text-align: center; padding:200rpx 100rpx; } .uni-title { font-size:30rpx; font-weight:500; padding:20rpx 0; line-height:1.5; } .uni-text{ font-size:28rpx; } .uni-title text{ font-size:24rpx; color:#888; } .uni-text-gray{ color: #ccc; } .uni-text-small { font-size:24rpx; } .uni-common-mb{ margin-bottom:30rpx; } .uni-common-pb{ padding-bottom:30rpx; } .uni-common-pl{ padding-left:30rpx; } .uni-common-mt{ margin-top:30rpx; } /* 背景色 */ .uni-bg-red{ background:#F76260; color:#FFF; } .uni-bg-green{ background:#09BB07; color:#FFF; } .uni-bg-blue{ background:#007AFF; color:#FFF; } /* 标题 */ .uni-h1 {font-size: 80rpx; font-weight:700;} .uni-h2 {font-size: 60rpx; font-weight:700;} .uni-h3 {font-size: 48rpx; font-weight:700;} .uni-h4 {font-size: 36rpx; font-weight:700;} .uni-h5 {font-size: 28rpx; color: #8f8f94;} .uni-h6 {font-size: 24rpx; color: #8f8f94;} .uni-bold{font-weight:bold;} /* 文本溢出隐藏 */ .uni-ellipsis {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;} /* 竖向百分百按钮 */ .uni-btn-v{ padding:10rpx 0; } .uni-btn-v button{margin:20rpx 0;} /* 表单 */ .uni-form-item{ display:flex; width:100%; padding:10rpx 0; } .uni-form-item .title{ padding:10rpx 25rpx; } .uni-label { width: 210rpx; word-wrap: break-word; word-break: break-all; text-indent:20rpx; } .uni-input { height: 50rpx; padding: 15rpx 25rpx; line-height:50rpx; font-size:28rpx; background:#FFF; flex: 1; } radio-group, checkbox-group{ width:100%; } radio-group label, checkbox-group label{ padding-right:20rpx; } .uni-form-item .with-fun{ display:flex; flex-wrap:nowrap; background:#FFFFFF; } .uni-form-item .with-fun .uni-icon{ width:40px; height:80rpx; line-height:80rpx; flex-shrink:0; } /* loadmore */ .uni-loadmore{ height:80rpx; line-height:80rpx; text-align:center; padding-bottom:30rpx; } /*数字角标*/ /* .uni-badge, .uni-badge-default { font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 12px; line-height: 1; display: inline-block; padding: 3px 6px; color: #333; border-radius: 100px; background-color: rgba(0, 0, 0, .15); } */ .uni-badge.uni-badge-inverted { padding: 0 5px 0 0; color: #929292; background-color: transparent } .uni-badge-primary { color: #fff; background-color: #007aff } .uni-badge-blue.uni-badge-inverted, .uni-badge-primary.uni-badge-inverted { color: #007aff; background-color: transparent } .uni-badge-green, .uni-badge-success { color: #fff; background-color: #4cd964; } .uni-badge-green.uni-badge-inverted, .uni-badge-success.uni-badge-inverted { color: #4cd964; background-color: transparent } .uni-badge-warning, .uni-badge-yellow { color: #fff; background-color: #f0ad4e } .uni-badge-warning.uni-badge-inverted, .uni-badge-yellow.uni-badge-inverted { color: #f0ad4e; background-color: transparent } .uni-badge-danger, .uni-badge-red { color: #fff; background-color: #dd524d } .uni-badge-danger.uni-badge-inverted, .uni-badge-red.uni-badge-inverted { color: #dd524d; background-color: transparent } .uni-badge-purple, .uni-badge-royal { color: #fff; background-color: #8a6de9 } .uni-badge-purple.uni-badge-inverted, .uni-badge-royal.uni-badge-inverted { color: #8a6de9; background-color: transparent } /*折叠面板 */ .uni-collapse-content { height: 0; width: 100%; overflow: hidden; } .uni-collapse-content.uni-active { height: auto; } /*卡片视图 */ .uni-card { background: #fff; border-radius: 8rpx; margin:20rpx 0; position: relative; /* box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, .3); */ } .uni-card-content { font-size: 30rpx; } .uni-card-content.image-view{ width: 100%; margin: 0; } .uni-card-content-inner { position: relative; padding: 30rpx; } .uni-card-footer, .uni-card-header { position: relative; display: flex; min-height: 50rpx; padding: 20rpx 30rpx; justify-content: space-between; align-items: center; } .uni-card-header { font-size: 36rpx; } .uni-card-footer { color: #6d6d72; } .uni-card-footer:before, .uni-card-header:after { position: absolute; top: 0; right: 0; left: 0; height: 2rpx; content: ''; -webkit-transform: scaleY(.5); transform: scaleY(.5); background-color: #c8c7cc; } .uni-card-header:after { top: auto; bottom: 0; } .uni-card-media { justify-content: flex-start; } .uni-card-media-logo { height: 84rpx; width: 84rpx; margin-right: 20rpx; } .uni-card-media-body { height: 84rpx; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; } .uni-card-media-text-top { line-height: 36rpx; font-size: 34rpx; } .uni-card-media-text-bottom { line-height: 30rpx; font-size: 28rpx; color: #8f8f94; } .uni-card-link { color: #007AFF; } /* 列表 */ .uni-list { background-color: #FFFFFF; position: relative; width: 100%; display: flex; flex-direction: column; } .uni-list:after { position: absolute; z-index: 10; right: 0; bottom: 0; left: 0; height: 1px; content: ''; -webkit-transform: scaleY(.5); transform: scaleY(.5); background-color: #c8c7cc; } /* .uni-list::before { position: absolute; z-index: 10; right: 0; top: 0; left: 0; height: 1px; content: ''; -webkit-transform: scaleY(.5); transform: scaleY(.5); background-color: #c8c7cc; } */ .uni-list-cell { position: relative; display: flex; flex-direction: row; /* justify-content: space-between; */ align-items: center; } .uni-list-cell-hover { background-color: #eee; } .uni-list-cell-pd { padding: 22rpx 30rpx; } .uni-list-cell-left { white-space: nowrap; font-size:28rpx; padding: 0 30rpx; } .uni-list-cell-db, .uni-list-cell-right { flex: 1; } .uni-list-cell::after { position: absolute; z-index: 3; right: 0; bottom: 0; left: 30rpx; height: 1px; content: ''; -webkit-transform: scaleY(.5); transform: scaleY(.5); background-color: #c8c7cc; } .uni-list .uni-list-cell:last-child::after { height: 0rpx; } .uni-list-cell-last.uni-list-cell::after { height: 0rpx; } .uni-list-cell-divider { position: relative; display: flex; color: #999; background-color: #f7f7f7; padding:15rpx 20rpx; } .uni-list-cell-divider::before { position: absolute; right: 0; top: 0; left: 0; height: 1px; content: ''; -webkit-transform: scaleY(.5); transform: scaleY(.5); background-color: #c8c7cc; } .uni-list-cell-divider::after { position: absolute; right: 0; bottom: 0; left: 0rpx; height: 1px; content: ''; -webkit-transform: scaleY(.5); transform: scaleY(.5); background-color: #c8c7cc; } .uni-list-cell-navigate { font-size:30rpx; padding: 22rpx 30rpx; line-height: 48rpx; position: relative; display: flex; box-sizing: border-box; width: 100%; flex: 1; justify-content: space-between; align-items: center; } .uni-list-cell-navigate { padding-right: 36rpx; } .uni-navigate-badge { padding-right: 50rpx; } .uni-list-cell-navigate.uni-navigate-right:after { font-family: uniicons; content: '\e583'; position: absolute; right: 24rpx; top: 50%; color: #bbb; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .uni-list-cell-navigate.uni-navigate-bottom:after { font-family: uniicons; content: '\e581'; position: absolute; right: 24rpx; top: 50%; color: #bbb; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .uni-list-cell-navigate.uni-navigate-bottom.uni-active::after { font-family: uniicons; content: '\e580'; position: absolute; right: 24rpx; top: 50%; color: #bbb; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .uni-collapse.uni-list-cell { flex-direction: column; } .uni-list-cell-navigate.uni-active { background: #eee; } .uni-list.uni-collapse { box-sizing: border-box; height: 0; overflow: hidden; } .uni-collapse .uni-list-cell { padding-left: 20rpx; } .uni-collapse .uni-list-cell::after { left: 52rpx; } .uni-list.uni-active { height: auto; } /* 三行列表 */ .uni-triplex-row { display: flex; flex: 1; width: 100%; box-sizing: border-box; flex-direction: row; padding: 22rpx 30rpx; } .uni-triplex-right, .uni-triplex-left { display: flex; flex-direction: column; } .uni-triplex-left { width: 84%; } .uni-triplex-left .uni-title{ padding:8rpx 0; } .uni-triplex-left .uni-text, .uni-triplex-left .uni-text-small{color:#999999;} .uni-triplex-right { width: 16%; text-align: right; } /* 图文列表 */ .uni-media-list { padding: 22rpx 30rpx; box-sizing: border-box; display: flex; width: 100%; flex-direction: row; } .uni-navigate-right.uni-media-list { padding-right: 74rpx; } .uni-pull-right { flex-direction: row-reverse; } .uni-pull-right>.uni-media-list-logo { margin-right: 0rpx; margin-left: 20rpx; } .uni-media-list-logo { height: 84rpx; width: 84rpx; margin-right: 20rpx; } .uni-media-list-logo image { height: 100%; width: 100%; } .uni-media-list-body { height: 84rpx; display: flex; flex: 1; flex-direction: column; justify-content: space-between; align-items: flex-start; overflow: hidden; } .uni-media-list-text-top { width: 100%; line-height: 36rpx; font-size: 30rpx; } .uni-media-list-text-bottom { width: 100%; line-height: 30rpx; font-size: 26rpx; color: #8f8f94; } /* 九宫格 */ .uni-grid-9 { background: #f2f2f2; width: 750rpx; display: flex; flex-direction: row; flex-wrap: wrap; border-top: 2rpx solid #eee; } .uni-grid-9-item { width: 250rpx; height: 200rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 2rpx solid; border-right: 2rpx solid; border-color: #eee; box-sizing: border-box; } .no-border-right { border-right: none; } .uni-grid-9-image { width: 100rpx; height: 100rpx; } .uni-grid-9-text { width: 250rpx; line-height: 4rpx; height: 40rpx; text-align: center; font-size: 30rpx; } .uni-grid-9-item-hover { background: rgba(0, 0, 0, 0.1); } /* 上传 */ .uni-uploader { flex: 1; flex-direction: column; } .uni-uploader-head { display: flex; flex-direction: row; justify-content: space-between; } .uni-uploader-info { color: #B2B2B2; } .uni-uploader-body { margin-top: 16rpx; } .uni-uploader__files { display: flex; flex-direction: row; flex-wrap: wrap; } .uni-uploader__file { margin: 10rpx; width: 210rpx; height: 210rpx; } .uni-uploader__img { display: block; width: 210rpx; height: 210rpx; } .uni-uploader__input-box { position: relative; margin:10rpx; width: 208rpx; height: 208rpx; border: 2rpx solid #D9D9D9; } .uni-uploader__input-box:before, .uni-uploader__input-box:after { content: " "; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background-color: #D9D9D9; } .uni-uploader__input-box:before { width: 4rpx; height: 79rpx; } .uni-uploader__input-box:after { width: 79rpx; height: 4rpx; } .uni-uploader__input-box:active { border-color: #999999; } .uni-uploader__input-box:active:before, .uni-uploader__input-box:active:after { background-color: #999999; } .uni-uploader__input { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; } /*问题反馈*/ .feedback-title { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding: 20rpx; color: #8f8f94; font-size: 28rpx; } .feedback-star-view.feedback-title { justify-content: flex-start; margin: 0; } .feedback-quick { position: relative; padding-right: 40rpx; } .feedback-quick:after { font-family: uniicons; font-size: 40rpx; content: '\e581'; position: absolute; right: 0; top: 50%; color: #bbb; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .feedback-body { background: #fff; } .feedback-textare { height: 200rpx; font-size: 34rpx; line-height: 50rpx; width: 100%; box-sizing: border-box; padding: 20rpx 30rpx 0; } .feedback-input { font-size: 34rpx; height: 50rpx; min-height: 50rpx; padding: 15rpx 20rpx; line-height: 50rpx; } .feedback-uploader { padding: 22rpx 20rpx; } .feedback-star { font-family: uniicons; font-size: 40rpx; margin-left: 6rpx; } .feedback-star-view { margin-left: 20rpx; } .feedback-star:after { content: '\e408'; } .feedback-star.active { color: #FFB400; } .feedback-star.active:after { content: '\e438'; } .feedback-submit { background: #007AFF; color: #FFFFFF; margin: 20rpx; } /* input group */ .uni-input-group { position: relative; padding: 0; border: 0; background-color: #fff; } .uni-input-group:before { position: absolute; top: 0; right: 0; left: 0; height: 2rpx; content: ''; transform: scaleY(.5); background-color: #c8c7cc; } .uni-input-group:after { position: absolute; right: 0; bottom: 0; left: 0; height: 2rpx; content: ''; transform: scaleY(.5); background-color: #c8c7cc; } .uni-input-row { position: relative; display: flex; flex-direction: row; font-size:28rpx; padding: 22rpx 30rpx; justify-content: space-between; } .uni-input-group .uni-input-row:after { position: absolute; right: 0; bottom: 0; left: 30rpx; height: 2rpx; content: ''; transform: scaleY(.5); background-color: #c8c7cc; } .uni-input-row label { line-height: 70rpx; } /* textarea */ .uni-textarea{ width:100%; background:#FFF; } .uni-textarea textarea{ width:96%; padding:18rpx 2%; line-height:1.6; font-size:28rpx; height:150rpx; } /* tab bar */ .uni-tab-bar { display: flex; flex: 1; flex-direction: column; overflow: hidden; height: 100%; } .uni-tab-bar .list { width: 750rpx; height: 100%; } .uni-swiper-tab { width: 100%; white-space: nowrap; line-height: 100rpx; height: 100rpx; border-bottom: 1px solid #c8c7cc; } .swiper-tab-list { font-size: 30rpx; width: 150rpx; display: inline-block; text-align: center; color: #555; } .uni-tab-bar .active { color: #007AFF; } .uni-tab-bar .swiper-box { flex: 1; width: 100%; height: calc(100% - 100rpx); } .uni-tab-bar-loading{ padding:20rpx 0; } /* comment */ .uni-comment{padding:5rpx 0; display: flex; flex-grow:1; flex-direction: column;} .uni-comment-list{flex-wrap:nowrap; padding:10rpx 0; margin:10rpx 0; width:100%; display: flex;} .uni-comment-face{width:70rpx; height:70rpx; border-radius:100%; margin-right:20rpx; flex-shrink:0; overflow:hidden;} .uni-comment-face image{width:100%; border-radius:100%;} .uni-comment-body{width:100%;} .uni-comment-top{line-height:1.5em; justify-content:space-between;} .uni-comment-top text{color:#0A98D5; font-size:24rpx;} .uni-comment-date{line-height:38rpx; flex-direction:row; justify-content:space-between; display:flex !important; flex-grow:1;} .uni-comment-date view{color:#666666; font-size:24rpx; line-height:38rpx;} .uni-comment-content{line-height:1.6em; font-size:28rpx; padding:8rpx 0;} .uni-comment-replay-btn{background:#FFF; font-size:24rpx; line-height:28rpx; padding:5rpx 20rpx; border-radius:30rpx; color:#333 !important; margin:0 10rpx;} /* swiper msg */ .uni-swiper-msg{width:100%; padding:12rpx 0; flex-wrap:nowrap; display:flex;} .uni-swiper-msg-icon{width:50rpx; margin-right:20rpx;} .uni-swiper-msg-icon image{width:100%; flex-shrink:0;} .uni-swiper-msg swiper{width:100%; height:50rpx;} .uni-swiper-msg swiper-item{line-height:50rpx;} /* product */ .uni-product-list { display: flex; width: 100%; flex-wrap: wrap; flex-direction: row; } .uni-product { padding: 20rpx; display: flex; flex-direction: column; } .image-view { height: 330rpx; width: 330rpx; margin:12rpx 0; } .uni-product-image { height: 330rpx; width: 330rpx; } .uni-product-title { width: 300rpx; word-break: break-all; display: -webkit-box; overflow: hidden; line-height:1.5; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } .uni-product-price { margin-top:10rpx; font-size: 28rpx; line-height:1.5; position: relative; } .uni-product-price-original { color: #e80080; } .uni-product-price-favour { color: #888888; text-decoration: line-through; margin-left: 10rpx; } .uni-product-tip { position: absolute; right: 10rpx; background-color: #ff3333; color: #ffffff; padding: 0 10rpx; border-radius: 5rpx; } /* timeline */ .uni-timeline { margin: 35rpx 0; display: flex; flex-direction: column; position: relative; } .uni-timeline-item { display: flex; flex-direction: row; position: relative; padding-bottom: 20rpx; box-sizing: border-box; overflow: hidden; } .uni-timeline-item .uni-timeline-item-keynode { width: 160rpx; flex-shrink: 0; box-sizing: border-box; padding-right: 20rpx; text-align: right; line-height: 65rpx; } .uni-timeline-item .uni-timeline-item-divider { flex-shrink: 0; position: relative; width: 30rpx; height: 30rpx; top: 15rpx; border-radius: 50%; background-color: #bbb; } .uni-timeline-item-divider::before, .uni-timeline-item-divider::after { position: absolute; left: 15rpx; width: 1rpx; height: 100vh; content: ''; background: inherit; } .uni-timeline-item-divider::before { bottom: 100%; } .uni-timeline-item-divider::after { top: 100%; } .uni-timeline-last-item .uni-timeline-item-divider:after { display: none; } .uni-timeline-first-item .uni-timeline-item-divider:before { display: none; } .uni-timeline-item .uni-timeline-item-content { padding-left: 20rpx; } .uni-timeline-last-item .bottom-border::after{ display: none; } .uni-timeline-item-content .datetime{ color: #CCCCCC; } /* 自定义节点颜色 */ .uni-timeline-last-item .uni-timeline-item-divider{ background-color: #1AAD19; } /* uni-icon */ .uni-icon { font-family: uniicons; font-size: 24px; font-weight: normal; font-style: normal; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; } .uni-icon.uni-active { color: #007aff; } .uni-icon-contact:before { content: '\e100'; } .uni-icon-person:before { content: '\e101'; } .uni-icon-personadd:before { content: '\e102'; } .uni-icon-contact-filled:before { content: '\e130'; } .uni-icon-person-filled:before { content: '\e131'; } .uni-icon-personadd-filled:before { content: '\e132'; } .uni-icon-phone:before { content: '\e200'; } .uni-icon-email:before { content: '\e201'; } .uni-icon-chatbubble:before { content: '\e202'; } .uni-icon-chatboxes:before { content: '\e203'; } .uni-icon-phone-filled:before { content: '\e230'; } .uni-icon-email-filled:before { content: '\e231'; } .uni-icon-chatbubble-filled:before { content: '\e232'; } .uni-icon-chatboxes-filled:before { content: '\e233'; } .uni-icon-weibo:before { content: '\e260'; } .uni-icon-weixin:before { content: '\e261'; } .uni-icon-pengyouquan:before { content: '\e262'; } .uni-icon-chat:before { content: '\e263'; } .uni-icon-qq:before { content: '\e264'; } .uni-icon-videocam:before { content: '\e300'; } .uni-icon-camera:before { content: '\e301'; } .uni-icon-mic:before { content: '\e302'; } .uni-icon-location:before { content: '\e303'; } .uni-icon-mic-filled:before, .uni-icon-speech:before { content: '\e332'; } .uni-icon-location-filled:before { content: '\e333'; } .uni-icon-micoff:before { content: '\e360'; } .uni-icon-image:before { content: '\e363'; } .uni-icon-map:before { content: '\e364'; } .uni-icon-compose:before { content: '\e400'; } .uni-icon-trash:before { content: '\e401'; } .uni-icon-upload:before { content: '\e402'; } .uni-icon-download:before { content: '\e403'; } .uni-icon-close:before { content: '\e404'; } .uni-icon-redo:before { content: '\e405'; } .uni-icon-undo:before { content: '\e406'; } .uni-icon-refresh:before { content: '\e407'; } .uni-icon-star:before { content: '\e408'; } .uni-icon-plus:before { content: '\e409'; } .uni-icon-minus:before { content: '\e410'; } .uni-icon-circle:before, .uni-icon-checkbox:before { content: '\e411'; } .uni-icon-close-filled:before, .uni-icon-clear:before { content: '\e434'; } .uni-icon-refresh-filled:before { content: '\e437'; } .uni-icon-star-filled:before { content: '\e438'; } .uni-icon-plus-filled:before { content: '\e439'; } .uni-icon-minus-filled:before { content: '\e440'; } .uni-icon-circle-filled:before { content: '\e441'; } .uni-icon-checkbox-filled:before { content: '\e442'; } .uni-icon-closeempty:before { content: '\e460'; } .uni-icon-refreshempty:before { content: '\e461'; } .uni-icon-reload:before { content: '\e462'; } .uni-icon-starhalf:before { content: '\e463'; } .uni-icon-spinner:before { content: '\e464'; } .uni-icon-spinner-cycle:before { content: '\e465'; } .uni-icon-search:before { content: '\e466'; } .uni-icon-plusempty:before { content: '\e468'; } .uni-icon-forward:before { content: '\e470'; } .uni-icon-back:before, .uni-icon-left-nav:before { content: '\e471'; } .uni-icon-checkmarkempty:before { content: '\e472'; } .uni-icon-home:before { content: '\e500'; } .uni-icon-navigate:before { content: '\e501'; } .uni-icon-gear:before { content: '\e502'; } .uni-icon-paperplane:before { content: '\e503'; } .uni-icon-info:before { content: '\e504'; } .uni-icon-help:before { content: '\e505'; } .uni-icon-locked:before { content: '\e506'; } .uni-icon-more:before { content: '\e507'; } .uni-icon-flag:before { content: '\e508'; } .uni-icon-home-filled:before { content: '\e530'; } .uni-icon-gear-filled:before { content: '\e532'; } .uni-icon-info-filled:before { content: '\e534'; } .uni-icon-help-filled:before { content: '\e535'; } .uni-icon-more-filled:before { content: '\e537'; } .uni-icon-settings:before { content: '\e560'; } .uni-icon-list:before { content: '\e562'; } .uni-icon-bars:before { content: '\e563'; } .uni-icon-loop:before { content: '\e565'; } .uni-icon-paperclip:before { content: '\e567'; } .uni-icon-eye:before { content: '\e568'; } .uni-icon-arrowup:before { content: '\e580'; } .uni-icon-arrowdown:before { content: '\e581'; } .uni-icon-arrowleft:before { content: '\e582'; } .uni-icon-arrowright:before { content: '\e583'; } .uni-icon-arrowthinup:before { content: '\e584'; } .uni-icon-arrowthindown:before { content: '\e585'; } .uni-icon-arrowthinleft:before { content: '\e586'; } .uni-icon-arrowthinright:before { content: '\e587'; } .uni-icon-pulldown:before { content: '\e588'; } .uni-icon-scan:before { content: "\e612"; } /* 分界线 */ .uni-divider{ height: 110rpx; display: flex; align-items:center; justify-content: center; position: relative; } .uni-divider__content{ font-size: 28rpx; color: #999; padding: 0 20rpx; position: relative; z-index: 101; background: #F4F5F6; } .uni-divider__line{ background-color: #CCCCCC; height: 1px; width: 100%; position: absolute; z-index: 100; top: 50%; left: 0; transform: translateY(50%); } .left-win-active text{ color: #007AFF !important; }
2401_83220332/SmartUI_wht027
common/uni.css
CSS
unknown
24,070
function formatTime(time) { if (typeof time !== 'number' || time < 0) { return time } var hour = parseInt(time / 3600) time = time % 3600 var minute = parseInt(time / 60) time = time % 60 var second = time return ([hour, minute, second]).map(function(n) { n = n.toString() return n[1] ? n : '0' + n }).join(':') } function formatLocation(longitude, latitude) { if (typeof longitude === 'string' && typeof latitude === 'string') { longitude = parseFloat(longitude) latitude = parseFloat(latitude) } longitude = longitude.toFixed(2) latitude = latitude.toFixed(2) return { longitude: longitude.toString().split('.'), latitude: latitude.toString().split('.') } } var dateUtils = { UNITS: { '年': 31557600000, '月': 2629800000, '天': 86400000, '小时': 3600000, '分钟': 60000, '秒': 1000 }, humanize: function(milliseconds) { var humanize = ''; for (var key in this.UNITS) { if (milliseconds >= this.UNITS[key]) { humanize = Math.floor(milliseconds / this.UNITS[key]) + key + '前'; break; } } return humanize || '刚刚'; }, format: function(dateStr) { var date = this.parse(dateStr) var diff = Date.now() - date.getTime(); if (diff < this.UNITS['天']) { return this.humanize(diff); } var _format = function(number) { return (number < 10 ? ('0' + number) : number); }; return date.getFullYear() + '/' + _format(date.getMonth() + 1) + '/' + _format(date.getDate()) + '-' + _format(date.getHours()) + ':' + _format(date.getMinutes()); }, parse: function(str) { //将"yyyy-mm-dd HH:MM:ss"格式的字符串,转化为一个Date对象 var a = str.split(/[^0-9]/); return new Date(a[0], a[1] - 1, a[2], a[3], a[4], a[5]); } }; export { formatTime, formatLocation, dateUtils }
2401_83220332/SmartUI_wht027
common/util.js
JavaScript
unknown
1,784
<template> <view class="top_carout"> <view class="top_body"> <text class="top_content">{{title}}</text> </view> <view class="top_feet"> <view> <text class="top_feettext_left" style="color: red;">置顶</text> <text class="top_feettext_left">{{category}}</text> <text class="top_feettext_left">新华社</text> </view> <view> <text class="top_feettext_right">{{time}}</text> </view> </view> </view> </template> <script> export default { data() { return { } }, methods: { }, props: { title: { type: String, default: "新闻标题" }, time: { type: String, default: "2025-12-02 10:41:34" }, category: { type: String, default: "分类" }, views: { type: Number, default: 0 }, description: { type: String, default: "详细内容" }, url: { type: String, default: "地址" }, source: { type: String, default: "来源" }, top: { type: Boolean, default: false } } } </script> <style> .top_carout { background-color: #ffffff; margin: 20rpx; padding: 20rpx; height: 120rpx; color: #cacaca; border-radius: 20rpx; border: 2rpx solid #d8d8d8; } .top_body { display: flex; height: 80rpx; font-size: 39rpx; margin-bottom: 10rpx; color: #000000; } .top_feet { font-size: 30rpx; display: flex; justify-content: space-between } .top_content { display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical; width: 100%; /* margin-left: 20rpx; */ font-size: 30rpx; } .top_feettext_left { font-size: 20rpx; margin-right: 10rpx; } .top_feettext_right { font-size: 20rpx; } </style>
2401_83220332/SmartUI_wht027
components/cardTop.vue
Vue
unknown
1,765
<template> <view class="carout" :style="{'background-color': bgColor}"> <slot name="header"></slot> <view class="context"> <view class="imgbox"> <image :src="showImage" v-if="mode==2" @error="handleImageException()"></image> </view> <view> <text v-if="mode==3" style="color: #aaa;">{{title}}</text> <text v-else>{{title}}</text> </view> </view> <view class="adbox" v-if="mode==3" style="margin-top: 5rpx;"> <view v-for="(item,index) in images"> <image :src="item" mode="aspectFill" @error="handleImageError(index)"></image> </view> </view> <view class="second-text"> <view> <text v-if="isTop" style="color: red;">置顶</text> <text style="margin-left: 10rpx;">{{writer}}</text> <text style="margin-left: 10rpx;">{{comment}}</text> </view> <view> <text>{{time}}</text> </view> </view> <slot name="tips"></slot> <slot name="footer"></slot> </view> </template> <script> export default { name: "cardViewText", data() { return { defaultPic: "/static/default-image.png", failPic: "/static/fail-image.png", status: 'news', imageError: false }; }, computed: { showImage() { if (this.images[0]) { if (this.imageError) { console.log("showImage Error--> " + this.title); } return this.imageError ? this.failPic : this.images[0] } else { console.log("showImage Default--> " + this.title); return this.defaultPic } }, authorColor() { const colorMap = { news: '#aaa', ad: '#00f' } return { color: colorMap[this.status] || '#f33' } } }, mounted() { // console.log("NewsCardView--------mounted " + this.title); if (this.mode == 3) { this.status = "ad" } }, methods: { handleImageException() { // // 当图片加载失败时,将显示地址改为默认图片 console.log("handleImageException " + this.title); this.imageError = true; }, handleImageError(index) { // // 当图片加载失败时,将显示地址改为默认图片 console.log("handleImageError----->:" + this.title); console.log("handleImageError----->index:" + index); // 将对应索引的显示地址改为默认图片 //使用this.$set来确保"数组"的变动能被响应式系统检测到 this.$set(this.images, index, this.failPic); } }, props: { // 属性是数组的定义方式 // list:{ // type: Array, // default: () => [] // 默认值是一个空数组 // }, nid: { type: String, default: "000", require: true }, title: { type: String, default: "新闻标题", require: true }, mode: { type: Number, default: 1, require: true }, isTop: { type: Boolean, default: false, require: true }, author: { type: String, default: "来源", require: true }, comments: { type: Number, default: 0, require: true }, time: { type: String, default: "2025.1.1" }, images: { type: Array, default: () => [] }, showSearch: { type: Boolean, default: false }, bgColor: { type: String, default: '#fff' } } } </script> <style> .carout { background-color: #ffffff; margin: 20rpx; padding: 20rpx; border-radius: 20rpx; color: #cacaca; border-bottom: 2rpx solid #d8d8d8; } .context { display: flex; font-size: 39rpx; margin-bottom: 10rpx; color: #000000; } .second-text { font-size: 30rpx; display: flex; justify-content: space-between } .imgbox { margin-right: 10px; } image { width: 100px; height: 70px; border-radius: 10rpx; }.adbox { display: flex; flex-direction: row; justify-content: space-around } .titlebox { display: flex; flex-direction: row; padding-left: 10px; } .imgbox { margin-right: 10px; } image { width: 100px; height: 70px; border-radius: 10rpx; } .cardstyle { display: flex; flex-direction: column; text-align: left; background-color: #fff; border-radius: 10px; padding-top: 10px; padding-bottom: 10px; } .tipsbox { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-align: center; padding-left: 10px; margin-top: 5px; } .tipsbox text { margin-right: 10px; color: #aaa; font-size: 11px; } </style>
2401_83220332/SmartUI_wht027
components/cardViewText.vue
Vue
unknown
4,378
<template> <view class="content"> <text style="font-size: 50rpx;">子组件A</text> <view class="coma_box"> <text>父组件进来的值:</text> <text style="font-weight: bold;color: red;">{{intent}}</text> </view> <button style="margin: 0 0 50rpx;" type="primary" @click="sendData()">传值给CompB</button> </view> </template> <script> export default { props: ['intent'], data() { return { }; }, methods: { sendData() { console.warn("----CompA----sendData------>" + this.intent); uni.$emit('getIntent', this.intent); } } } </script> <style> .content { margin: 20rpx 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: orange; } .coma_box{ width: 100%; margin: 30rpx; } </style>
2401_83220332/SmartUI_wht027
components/compA.vue
Vue
unknown
805
<template> <view class="content"> <text style="font-size: 50rpx;">子组件B</text> <view class="b-box"> CompA传进来的值: <text style="background-color: blue;color: white;">{{result}}</text> </view> <view class="b-box" > <text>回传值:</text> <input type="text" v-model="callbackValue" style="color: yellow;background-color:darkgray;" /> <button @click="sendOutside()" size="mini">回传</button> </view> </view> </template> <script> export default { name: "compB", data() { return { result: '', // ✅初始化 result callbackValue: '' // ✅初始化 callbackValue }; }, created() { uni.$on('getIntent', (msg) => { console.log("----CompB----getIntent----->" + msg); this.result = msg; }); }, methods: { sendOutside() { console.warn("----ComB----sendOutside------>" + this.callbackValue); this.$emit('callBackFun', this.callbackValue); } } } </script> <style> .content { margin: 20rpx 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: orange; } .b-box { margin: 10rox 20rpx 50rpx; display: flex; width: 100%; margin: 30rpx; } </style>
2401_83220332/SmartUI_wht027
components/compB.vue
Vue
unknown
1,256
<template> <view class="card_carout"> <view class="card_body"> <image class="card_ima" :src="image"></image> <text class="card_content">{{title}}</text> </view> <view class="card_feet"> <view> <text class="card_feettext_left">{{category}}</text> <text class="card_feettext_left">新华社</text> </view> <view> <text class="card_feettext_right">{{time}}</text> </view> </view> </view> </template> <script> export default { data() { return { } }, methods: { }, props: { title: { type: String, default: "新闻标题" }, image: { type: String, default: "https://img.36krcdn.com/20191024/v2_1571894049839_img_jpg" }, time: { type: String, default: "2025-12-02 10:41:34" }, category: { type: String, default: "分类" }, views: { type: Number, default: 0 }, description: { type: String, default: "详细内容" }, url: { type: String, default: "地址" }, source: { type: String, default: "来源" }, top: { type: Boolean, default: false } } } </script> <style> .card_carout { background-color: #ffffff; margin: 20rpx; padding: 20rpx; height: 180rpx; border-radius: 20rpx; color: #cacaca; border: 2rpx solid #d8d8d8; } .card_body { display: flex; height: 150rpx; font-size: 39rpx; margin-bottom: 10rpx; color: #000000; } .card_feet { font-size: 30rpx; display: flex; justify-content: space-between } .card_ima { height: 100%; width: 30%; object-fit: fill; } .card_content { display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical; width: 65%; margin-left: 20rpx; font-size: 30rpx; } .card_feettext_left { font-size: 20rpx; margin-right: 10rpx; } .card_feettext_right { font-size: 20rpx; } </style>
2401_83220332/SmartUI_wht027
components/newsCard.vue
Vue
unknown
1,927
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8" /> <script> var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) document.write( '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />') </script> <title></title> <!--preload-links--> <!--app-context--> </head> <body> <div id="app"><!--app-html--></div> <script type="module" src="/main.js"></script> </body> </html>
2401_83220332/SmartUI_wht027
index.html
HTML
unknown
675
.smart-container{ padding: 15rpx; background-color: #bdbdbd; margin-bottom: 2px; } .smart-panel{ margin-bottom: 12px; } .smart-panel-title{ background-color: #eeeeee; font-size: 18px; font-weight: normal; padding: 5px; flex-direction: row; margin-bottom: 2px; } .smart-panel-h{ background-color: #eeeeee; flex-direction: row; align-items: center; padding: 5px; margin-bottom: 2px; } .smart-panel-head{ padding: 35prx; text-align: center; } .smart-panel-head-title{ font-size: 30rpx; height: 88rpx; line-height: 80rpx; color: #bebebe; border-bottom: 2rpx solid #d8d8d8; padding: 0 40rpx; box-sizing: border-box; display: inline-block; } .smart-flex{ display: flex; } .smart-row{ flex-direction: row; } .smart-padding-wrap{ padding: 0 30rpx; } .flex-item{ width: 33.3%; height: 200rpx; line-height: 200rpx; text-align: center; } .smart-bg-red{ background-color: #f76260; color: #FFFFFF; } .smart-bg-green{ background-color: #09bb07; color: #FFFFFF; } .smart-bg-orange{ background-color: #f3752c; color: #FFFFFF; } .smart-column{ flex-direction: column; } .flex-item-c{ width: 20%; height: 100rpx; line-height: 100rpx; text-align: center; margin: 0% auto; } .text{ margin: 15rpx 10rpx; padding: 0 20rpx; background-color: #ebebeb; height: 70rpx; line-height: 70rpx; color: #777; font-size: 26rpx; } /* scroll-view */ .scroll-view-tiem{ width: 100%; height: 200rpx; /* 每个item的高度 */ line-height: 200rpx; color: #FFFFFF; text-align: center; } .scroll-y{ height: 300rpx; /* scrollview的显示高度 */ } .scroll-x{ white-space: nowrap; /* 强制在同一行显示所有文本 */ width: 100%; } .scroll-view-tiem-h{ display: inline-block; height: 300rpx; width: 100%; line-height: 300rpx; text-align: center; } .swiper-item{ display: block; height: 300rpx; width: 100%; line-height: 300rpx; text-align: center; } .smart-bg-0{ background-color: #f76260; } .smart-bg-1{ background-color: #D8D8D8; } .smart-bg-2{ background-color: #AA99FF; } .smart-bg-3{ background-color: #007AFF; } /* textview */ .text-box{ margin-bottom: 40rpx; padding: 40rpx 0; display: flex; min-height: 300rpx; background-color: #d8d8d8; justify-content: center; /* 元素在主轴(横轴)方向上的对齐方式 */ text-align: center; font-size: 30rpx; color: #353535; line-height: 1.8; } .text-space{ background-color: #AA99FF; } .smart-input{ height: 28px; line-height: 28px; font-size: 15px; flex:1; background-color: #D8D8D8; padding: 3px; }
2401_83220332/SmartUI_wht027
lib/css/smart.css
CSS
unknown
2,525
import App from './App' // #ifndef VUE3 import Vue from 'vue' import './uni.promisify.adaptor' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) return { app } } // #endif
2401_83220332/SmartUI_wht027
main.js
JavaScript
unknown
352
<template> <view style="color:#fbffef"> <view v-for="item in newsList" > <cardT v-if="item.top==true" :title="item.title" :time="item.time" :category="item.category" :views="item.views" :description="item.description" :top="item.top"> </cardT> </view> <view v-for="item in newsList" class="home_newsList"> <card v-if="item.top==false" :title="item.title" :image="item.image" :time="item.time" :category="item.category" :views="item.views" :description="item.description" :top="item.top"> </card> </view> </view> </template> <script> import card from '../../../components/newsCard.vue' import cardT from '../../../components/cardTop.vue' import newsData from '../../../Data/news.json' export default { components: { card, cardT }, data() { return { newsList: newsData } }, onLoad() { }, methods: { } } </script> <style> .home_top{ background-color: #ffffff; margin: 20rpx; padding: 20rpx; height: 180rpx; border-radius: 20rpx; color: #cacaca; border: 2rpx solid #d8d8d8; } .home_newsList{ } </style>
2401_83220332/SmartUI_wht027
news_pages/Tabar/home/home.vue
Vue
unknown
1,101
<template> <view> </view> </template> <script> export default { data() { return { } }, methods: { } } </script> <style> </style>
2401_83220332/SmartUI_wht027
news_pages/Tabar/me/me.vue
Vue
unknown
162
<template> <view> </view> </template> <script> export default { data() { return { } }, methods: { } } </script> <style> </style>
2401_83220332/SmartUI_wht027
news_pages/Tabar/topic/topic.vue
Vue
unknown
162
<template> <view> </view> </template> <script> export default { data() { return { } }, methods: { } } </script> <style> </style>
2401_83220332/SmartUI_wht027
news_pages/Tabar/vedio/vedio.vue
Vue
unknown
162
<template> <view> <!-- 按钮,打印日志 --> <button @click="onLog()">Console.log</button> <button @click="onDebug()">Console.debug</button> <button @click="onInfo()">Console.info</button> <button @click="onWarm()">Console.warn</button> <button @click="onError()">Console.error</button> </view> </template> <script> export default { data() { return { name:"wht" } }, methods: { onLog(){ // 打印log日志 console.log("onLog()-->NAME:"+this.name,"这是一条log日志") }, onDebug(){ // 打印debug日志 console.debug("这是一条debug日志") }, onInfo(){ console.info("这是一条info日志") }, onWarm(){ console.warn("这是一条warn日志") if(true){ console.log("warn正确") }else{ console.warn("warn快出错了。。。。") } }, onError(){ console.error("这是一条error日志") // try{ // }caches } } } </script> <style> </style>
2401_83220332/SmartUI_wht027
pages/APIpages/LogPage/LogPage.vue
Vue
unknown
983
<template> <view> <button @click="callPullRef()">下拉刷新</button> <view v-for="index in count"> <view style="height: 100rpx;background-color: aquamarine; margin: 5rpx;">测试数据{{index}}</view> </view> <view style="color:#aaa; text-align: center;margin: 30rpx; height: 60rpx;"> ---真的到底了---</view> </view> </template> <script> export default { data() { return { count: 30 } }, onPullDownRefresh() { console.log("onPullDownRefresh--> 触发 下拉刷新开始"); setTimeout(function() { uni.stopPullDownRefresh(); console.log("onPullDownRefresh--> End下拉刷新动作完成"); }, 2000); }, onReachBottom() { console.log("onReachBottom---> 我已经到底了,请求加载更多数据吧" + this.count); if (this.count < 200) this.count = this.count + 30; }, methods: { callPullRef() { console.log("下拉自动刷新 callPullRef"); uni.startPullDownRefresh({ success() { console.log("startPullDownRefresh success"); }, fail() { console.log("startPullDownRefresh fail"); }, complete() { console.log("startPullDownRefresh complete"); } }) } } } </script> <style> button { margin: 30rpx; } </style>
2401_83220332/SmartUI_wht027
pages/APIpages/RefreshPage/RefreshPage.vue
Vue
unknown
1,256
<template> <view style="padding: 30rpx;"> <button @click="callSetStorage()">setStorage</button> <button @click="callGetStorage()">获取缓存</button> <button @click="callStoInfo()" type="primary">获取字段列表</button> <button @click="callRemove()" type="warn" plain="true">删除</button> <button @click="callClear()" type="warn">清空</button> </view> </template> <script> export default { data() { return { } }, methods: { callSetStorage() { console.log("callSetStorage--> userName chenyuanzhu"); uni.setStorage({ key: "className", data: "23计本", success() { console.log("存储userName 成功回调"); }, fail() { console.error("存储userName 成功失败"); } }) }, callGetStorage() { uni.getStorage({ key: "Account", success: function(result) { console.log("获取本地缓存成功 result.data:" + result.data); }, fail: function(result) { console.error("获取本地缓存失败:" + JSON.stringify(result)); console.error("获取本地缓存失败:" + result.errMsg); } }) }, callStoInfo() { console.log("callStoInfo-->"); uni.getStorageInfo({ success: function(result) { console.log("callStoInfo--> " + JSON.stringify(result)); console.log("callStoInfo--> " + result.keys); } }) }, callRemove(){ uni.removeStorage({ key:"xingming", success: () => { console.log("removeStorage success>"); }, fail: () => { console.log("removeStorage fail>"); } }) }, callClear(){ uni.clearStorage(); } } } </script> <style> button { margin: 30rpx; } </style>
2401_83220332/SmartUI_wht027
pages/APIpages/StoragePage/StoragePage.vue
Vue
unknown
1,717
<template> <view> <view>异步接口</view> <button @click="callStorageFun(1)">setStorage</button> <button @click="callStorageFun(2)" type="primary" plain="true">getStorage</button> <button @click="callStorageFun(3)" type="warm">取消计时器</button> <button @click="callStorageFun(1)" type="primary" plain="true">getStorage</button> <button @click="callStorageFun(1)" type="warm">clearStorage</button> </view> </template> <script> export default { data() { return { name: "ttttt" } }, methods: { callStorageFun(parm) { console.log("callStorageFun==> parm "+parm); switch(parm){ case 1: // 存某一个字段到本地 字段名:值 uni.setStorage({ key:'UserName', data:'wht', success(){ console.log("UserName 存储成功"); } }); console.log("调用存储完成"); break; case 2: uni.getStorage({ key:'UserName', // 回调接口 success:function(result){ console.log("读取成功"); }, fail() { console.error("读取失败"); } }); break; // case 3: // uni.getStorageInfo({ // success:function(result){ // } // }) } } } } </script> <style> </style>
2401_83220332/SmartUI_wht027
pages/APIpages/TimePage/TimePage.vue
Vue
unknown
1,277
<template> <view style="margin: 100rpx 50rpx auto;"> <view class="text-area"> <text>输入值:</text> <input type="text" v-model="title" style="color: red; background-color: darkgray;" /> </view> <view class="text-area"> <text>回传值:</text> <input type="text" :value="callBackValue" style="color: yellow; background-color: darkgray;" /> </view> <comA :intent="title"></comA> <comB @callBackFun="callBack"></comB> </view> </template> <script> import comA from '../../../components/compA.vue' import comB from '../../../components/compB.vue' export default { components: { comA, comB }, data() { return { title:this.title, callBackValue:' ' } }, methods: { callBack(msg) { console.warn('---index---callBack-->' + msg); this.callBackValue = msg; }, } } </script> <style> .text-area { display: flex; margin-top: 20rpx; } </style>
2401_83220332/SmartUI_wht027
pages/components/IntentPage/IntentPage.vue
Vue
unknown
917