…'),0!==a.groups&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),skip:function(){return['到第','','页',""].join("")}()};return['',function(){var e=[];return layui.each(a.layout,function(a,t){r[t]&&e.push(r[t])}),e.join("")}(),"
"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,n=t.config,i=e.children,u=e[r]("button")[0],p=e[r]("input")[0],l=e[r]("select")[0],o=function(){var e=0|p.value.replace(/\s|\D/g,"");e&&(n.curr=e,t.render())};if(a)return o();for(var c=0,g=i.length;cn.pages||(n.curr=e,t.render())});l&&s.on(l,"change",function(){var e=this.value;n.curr*e>n.count&&(n.curr=Math.ceil(n.count/e)),n.limit=e,t.render()}),u&&s.on(u,"click",function(){o()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[r]("input")[0];t&&s.on(t,"keyup",function(t){var r=this.value,n=t.keyCode;/^(37|38|39|40)$/.test(n)||(/\D/.test(r)&&(this.value=r.replace(/\D/,"")),13===n&&a.jump(e,!0))})}},u.prototype.render=function(e){var r=this,n=r.config,i=r.type(),u=r.view();2===i?n.elem&&(n.elem.innerHTML=u):3===i?n.elem.html(u):a[t](n.elem)&&(a[t](n.elem).innerHTML=u),n.jump&&n.jump(n,e);var s=a[t]("layui-laypage-"+n.index);r.jump(s),n.hash&&!e&&(location.hash="!"+n.hash+"="+n.curr),r.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(n,s)});
--------------------------------------------------------------------------------
/WebRoot/layui/frame/layui/lay/modules/laytpl.js:
--------------------------------------------------------------------------------
1 | /** layui-v2.0.2 MIT License By http://www.layui.com */
2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},n={exp:function(e){return new RegExp(e,"g")},query:function(e,n,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return c((n||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var n="Laytpl Error:";return"object"==typeof console&&console.error(n+e+"\n"+(r||"")),n+e}},c=n.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=c("^"+r.open+"#",""),l=c(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(c(r.open+"#"),r.open+"# ").replace(c(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(/(?="|')/g,"\\").replace(n.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(n.query(1),function(e){var n='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(c(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),n='"+_escape_('),n+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,n.escape)}catch(u){return delete o.cache,n.error(u,p)}},t.pt.render=function(e,r){var c,t=this;return e?(c=t.cache?t.cache(e,n.escape):t.parse(t.tpl,e),r?void r(c):c):n.error("no data")};var o=function(e){return"string"!=typeof e?n.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var n in e)r[n]=e[n]},o.v="1.2.0",e("laytpl",o)});
--------------------------------------------------------------------------------
/WebRoot/layui/frame/layui/lay/modules/tree.js:
--------------------------------------------------------------------------------
1 | /** layui-v2.0.2 MIT License By http://www.layui.com */
2 | ;layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o(''),s=o(["",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return r.check?''+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),""].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeClass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addClass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o(''));e.preventDefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addClass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(i),e.to&&e.to.elem.children("a").removeClass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addClass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeClass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})});
--------------------------------------------------------------------------------
/WebRoot/layui/frame/layui/lay/modules/util.js:
--------------------------------------------------------------------------------
1 | /** layui-v2.0.2 MIT License By http://www.layui.com */
2 | ;layui.define("jquery",function(e){"use strict";var o=layui.$,t={fixbar:function(e){var t,a,i="layui-fixbar",l="layui-fixbar-top",r=o(document),c=o("body");e=o.extend({showHeight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var n=[e.bar1,e.bar2,""],u=o(['',e.bar1?'- '+n[0]+"
":"",e.bar2?'- '+n[1]+"
":"",'- '+n[2]+"
","
"].join("")),s=u.find("."+l),b=function(){var o=r.scrollTop();o>=e.showHeight?t||(s.show(),t=1):t&&(s.hide(),t=0)};o("."+i)[0]||("object"==typeof e.css&&u.css(e.css),c.append(u),b(),u.find("li").on("click",function(){var t=o(this),a=t.attr("lay-type");"top"===a&&o("html,body").animate({scrollTop:0},200),e.click&&e.click.call(this,a)}),r.on("scroll",function(){clearTimeout(a),a=setTimeout(function(){b()},100)}))},countdown:function(e,o,t){var a=this,i="function"==typeof o,l=new Date(e).getTime(),r=new Date(!o||i?(new Date).getTime():o).getTime(),c=l-r,n=[Math.floor(c/864e5),Math.floor(c/36e5)%24,Math.floor(c/6e4)%60,Math.floor(c/1e3)%60];i&&(t=o);var u=setTimeout(function(){a.countdown(e,r+1e3,t)},1e3);return t&&t(c>0?n:[0,0,0,0],o,u),c<=0&&clearTimeout(u),u},timeAgo:function(e,o){var t=(new Date).getTime()-new Date(e).getTime();return t>2592e6?(t=new Date(e).toLocaleString(),o&&(t=t.replace(/\s[\S]+$/g,"")),t):t>=864e5?(t/1e3/60/60/24|0)+"天前":t>=36e5?(t/1e3/60/60|0)+"小时前":t>=18e4?(t/1e3/60|0)+"分钟前":t<0?"未来":"刚刚"}};e("util",t)});
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/css/Login.css:
--------------------------------------------------------------------------------
1 | @charset "utf-8";
2 |
3 | /* CSS Document */
4 |
5 | A {
6 | text-decoration: NONE
7 | }
8 |
9 | * {
10 | margin: 0;
11 | padding: 0;
12 | }
13 |
14 | .H {
15 | width: 800px;
16 | padding-top: 2px;
17 | margin-left: 600px;
18 | }
19 |
20 | .H div {
21 | padding-top: 30px;
22 | text-align: center;
23 | }
24 |
25 | .H div .i {
26 | margin-top: 0px;
27 | padding-top: 0px;
28 | display: block;
29 | float: right;
30 | }
31 |
32 | .H input {
33 | text-align: left;
34 | border: 1px solid #000000
35 | }
36 |
37 | .bk {
38 | width: 700px;
39 | margin-top: 300px;
40 | margin-left: 10px;
41 | border: 2px solid #000000;
42 | }
43 |
44 | .zh,
45 | .mm {
46 | width: 350px;
47 | height: 30px;
48 | }
49 |
50 | .fx {
51 | margin-left: 30px;
52 | }
53 |
54 | .H div .an {
55 | width: 350px;
56 | height: 70px;
57 | text-align: center;
58 | font-size: 20px;
59 | background: #3fa8c8;
60 | border-radius: 10px;
61 | border-color: transparent;
62 | box-shadow: none;
63 | }
64 |
65 | .an:hover {
66 | background: #49bde0;
67 | }
68 |
69 | .zc a {
70 | margin-left: 500px;
71 | color: #000;
72 | }
73 |
74 | .zc a:hover {
75 | color: #49bde0;
76 | }
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/image/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaGraduationProject/HomeApplianceShoppingMallManagementSystem/e733c18219fefbf6cdb901689594921562ed10d7/WebRoot/layui/frame/static/image/bg.png
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/image/code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaGraduationProject/HomeApplianceShoppingMallManagementSystem/e733c18219fefbf6cdb901689594921562ed10d7/WebRoot/layui/frame/static/image/code.png
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/image/v.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaGraduationProject/HomeApplianceShoppingMallManagementSystem/e733c18219fefbf6cdb901689594921562ed10d7/WebRoot/layui/frame/static/image/v.png
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/image/wx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaGraduationProject/HomeApplianceShoppingMallManagementSystem/e733c18219fefbf6cdb901689594921562ed10d7/WebRoot/layui/frame/static/image/wx.png
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/image/zfb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JavaGraduationProject/HomeApplianceShoppingMallManagementSystem/e733c18219fefbf6cdb901689594921562ed10d7/WebRoot/layui/frame/static/image/zfb.png
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/js/vip_nav.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2017/5/20.
3 | * @name: vip-admin 后台模板 菜单navJS
4 | * @author: 随丶
5 | */
6 | layui.define(['layer', 'element'], function (exports) {
7 | // 操作对象
8 | var layer = layui.layer
9 | , element = layui.element
10 | , $ = layui.jquery;
11 |
12 | // 封装方法
13 | var mod = {
14 | // 添加 HTMl
15 | addHtml: function (addr, obj, treeStatus, data) {
16 | // 请求数据
17 | $.get(addr, data, function (res) {
18 | var view = "";
19 | if (res.data) {
20 | $(res.data).each(function (k, v) {
21 | v.subset && treeStatus ? view += '' : view += '';
22 | if (v.subset) {
23 | view += '' + v.icon + '' + v.text + '';
24 | $(v.subset).each(function (ko, vo) {
25 | view += '- ';
26 | if(vo.target){
27 | view += '';
28 | }else{
29 | view += '';
30 | }
31 | view += '' + vo.icon + '' + vo.text + '
';
32 | });
33 | view += '';
34 | } else {
35 | if (v.target) {
36 | view += '';
37 | } else {
38 | view += '';
39 | }
40 | view += '' + v.icon + '' + v.text + '';
41 | }
42 | view += '
';
43 | });
44 | } else {
45 | layer.msg('接受的菜单数据不符合规范,无法解析');
46 | }
47 | // 添加到 HTML
48 | $(document).find(".layui-nav[lay-filter=" + obj + "]").html(view);
49 | // 更新渲染
50 | element.init();
51 | },'json');
52 | }
53 | // 左侧主体菜单 [请求地址,过滤ID,是否展开,携带参数]
54 | , main: function (addr, obj, treeStatus, data) {
55 | // 添加HTML
56 | this.addHtml(addr, obj, treeStatus, data);
57 | }
58 | // 顶部左侧菜单 [请求地址,过滤ID,是否展开,携带参数]
59 | , top_left: function (addr, obj, treeStatus, data) {
60 | // 添加HTML
61 | this.addHtml(addr, obj, treeStatus, data);
62 | }
63 | /*// 顶部右侧菜单
64 | ,top_right: function(){
65 |
66 | }*/
67 | };
68 |
69 | // 输出
70 | exports('vip_nav', mod);
71 | });
72 |
73 |
74 |
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/js/vip_tab.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2017/05/20 1582.
3 | * @name: vip-admin 后台模板 选项卡JS操作
4 | * @author: 随丶
5 | */
6 | layui.define('layer', function (exports) {
7 |
8 | // 封装方法
9 | var mod = {
10 | // 添加选项卡 [操作对象,标签标题,url地址]
11 | add: function (elem, tit, url) {
12 | parent.addTab(elem, tit, url);
13 | }
14 | // 获取当前选中的选项卡的lay-id
15 | ,getThisTabId: function () {
16 | // 获取并返回 id
17 | return parent.getThisTabID();
18 | }
19 | // 删除选项卡[标签lay-id]
20 | ,del: function (id) {
21 | parent.delTab(id);
22 | }
23 | };
24 |
25 | // 输出
26 | exports('vip_tab', mod);
27 | });
28 |
29 |
30 |
--------------------------------------------------------------------------------
/WebRoot/layui/frame/static/js/vip_table.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2017/08/25.
3 | * @name: vip-admin 后台模板 表格JS功能
4 | * @author: 随丶
5 | */
6 | layui.define(['layer', 'element'], function (exports) {
7 |
8 | var $ = layui.jquery;
9 |
10 | // 封装方法
11 | var mod = {
12 | // 删除公共方法 deleteAll(ids,请求的url,操作成功跳转url,操作失败跳转url)
13 | deleteAll: function (ids, url, sUrl, eUrl) {
14 | // ids不能为空
15 | if (ids == null || ids == '') {
16 | layer.msg('请选择要删除的数据', {time: 2000});
17 | return false;
18 | } else {
19 | layer.confirm('确认删除选中数据?', {
20 | title: '删除',
21 | btn: ['确认', '取消'] // 按钮
22 | }, function (index, layero) {
23 | // 确认
24 | $.post(url, {ids: ids}, function (res) {
25 | // 大于0表示删除成功
26 | if (res.status > 0) {
27 | // 提示信息并跳转
28 | layer.msg(res.msg, {time: 1500}, function () {
29 | location.href = sUrl;
30 | })
31 | } else {
32 | // 提示信息并跳转
33 | layer.msg(res.msg, {time: 1500}, function () {
34 | location.href = eUrl;
35 | })
36 | }
37 | });
38 | }, function (index) {
39 | // 关闭
40 | layer.close(index);
41 | });
42 | }
43 | }
44 | // 转换时间戳为日期时间(时间戳,是否只显示年月日时分,8)
45 | ,unixToDate: function (unixTime, isFull, timeZone) {
46 | if (unixTime == '' || unixTime == null) {
47 | return '';
48 | }
49 | if (typeof (timeZone) == 'number') {
50 | unixTime = parseInt(unixTime) + parseInt(timeZone) * 60 * 60;
51 | }
52 | var time = new Date(unixTime * 1000);
53 | var ymdhis = "";
54 | var year, month, date, hours, minutes, seconds;
55 | if (time.getUTCFullYear() < 10) {
56 | year = '0' + time.getUTCFullYear();
57 | } else {
58 | year = time.getUTCFullYear();
59 | }
60 | if ((time.getUTCMonth() + 1) < 10) {
61 | month = '0' + (time.getUTCMonth() + 1);
62 | } else {
63 | month = (time.getUTCMonth() + 1);
64 | }
65 | if (time.getUTCDate() < 10) {
66 | date = '0' + time.getUTCDate();
67 | } else {
68 | date = time.getUTCDate();
69 | }
70 | ymdhis += year + "-";
71 | ymdhis += month + "-";
72 | ymdhis += date;
73 | if (isFull === true) {
74 | if (time.getUTCHours() < 10) {
75 | hours = '0' + time.getUTCHours();
76 | } else {
77 | hours = time.getUTCHours();
78 | }
79 | if (time.getUTCMinutes() < 10) {
80 | minutes = '0' + time.getUTCMinutes();
81 | } else {
82 | minutes = time.getUTCMinutes();
83 | }
84 | if (time.getUTCSeconds() < 10) {
85 | seconds = '0' + time.getUTCSeconds();
86 | } else {
87 | seconds = time.getUTCSeconds();
88 | }
89 | ymdhis += " " + hours + ":";
90 | ymdhis += minutes;
91 | // ymdhis += seconds;
92 | }
93 | return ymdhis;
94 | }
95 | // 批量删除 返回需要的 ids
96 | ,getIds: function (o, str) {
97 | var obj = o.find('tbody tr td:first-child input[type="checkbox"]:checked');
98 | var list = '';
99 | obj.each(function (index, elem) {
100 | list += $(elem).attr(str) + ',';
101 | });
102 | // 去除最后一位逗号
103 | list = list.substr(0, (list.length - 1));
104 | return list;
105 | }
106 | // 获取高度
107 | ,getFullHeight: function(){
108 | return $(window).height() - ( $('.my-btn-box').outerHeight(true) ? $('.my-btn-box').outerHeight(true) + 35 : 40 );
109 | }
110 | };
111 |
112 | // 输出
113 | exports('vip_table', mod);
114 | });
115 |
116 |
--------------------------------------------------------------------------------
/WebRoot/layui/js/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Administrator on 2017/8/25.
3 | */
4 | // 配置扩展方法路径
5 | layui.config({
6 | base: './../frame/static/js/' // 模块目录
7 | }).extend({ // 模块别名
8 | vip_nav: 'vip_nav'
9 | , vip_tab: 'vip_tab'
10 | , vip_table: 'vip_table'
11 | });
--------------------------------------------------------------------------------
/WebRoot/layui/js/readme.txt:
--------------------------------------------------------------------------------
1 | js文件夹
--------------------------------------------------------------------------------
/WebRoot/login.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 |
7 | 登录
8 |
9 |
10 |
11 |
12 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |

66 |
欢迎登录商城账户
67 |
68 |
69 |
70 |
71 |
72 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
--------------------------------------------------------------------------------
/WebRoot/myorder.jsp:
--------------------------------------------------------------------------------
1 | 。<%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 |
5 |
6 |
7 |
8 |
11 |
14 | 我的订单
15 |
16 |
18 |
20 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
39 |
40 |
41 |
77 |
78 |
79 |
80 |
81 | -
82 |
83 | 首页
85 | -
86 |
87 |
88 | 购物篮
91 |
92 |
93 | 购物篮
96 |
97 |
98 |
99 |
100 |
101 |
102 |
104 |
105 |