parent
68b1786b58
commit
79957d07d2
|
@ -239,6 +239,9 @@ INSERT INTO `sys_notice` VALUES (5, '测试标题', '测试内容', '1', 9, 1607
|
||||||
INSERT INTO `sys_notice` VALUES (7, '测试标题', '测试内容', '2', 2, 1607238284600);
|
INSERT INTO `sys_notice` VALUES (7, '测试标题', '测试内容', '2', 2, 1607238284600);
|
||||||
INSERT INTO `sys_notice` VALUES (8, '测试标题', '测试内容', '2', 3, 1607238284601);
|
INSERT INTO `sys_notice` VALUES (8, '测试标题', '测试内容', '2', 3, 1607238284601);
|
||||||
INSERT INTO `sys_notice` VALUES (9, '测试标题', '测试内容', '2', 4, 1607238284601);
|
INSERT INTO `sys_notice` VALUES (9, '测试标题', '测试内容', '2', 4, 1607238284601);
|
||||||
|
INSERT INTO `sys_notice` VALUES (11, '测试标题2', '测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2', '2', 3, 1609926809535);
|
||||||
|
INSERT INTO `sys_notice` VALUES (12, '测试标题2', '测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2', '2', 4, 1609926809536);
|
||||||
|
INSERT INTO `sys_notice` VALUES (13, '测试标题2', '测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2测试内容2', '2', 5, 1609926809536);
|
||||||
INSERT INTO `sys_notice` VALUES (14, '测试群发系统消息', '测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息', '2', 1, 1610251470774);
|
INSERT INTO `sys_notice` VALUES (14, '测试群发系统消息', '测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息', '2', 1, 1610251470774);
|
||||||
INSERT INTO `sys_notice` VALUES (15, '测试群发系统消息', '测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息', '2', 3, 1610251470775);
|
INSERT INTO `sys_notice` VALUES (15, '测试群发系统消息', '测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息', '2', 3, 1610251470775);
|
||||||
INSERT INTO `sys_notice` VALUES (16, '测试群发系统消息', '测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息', '2', 4, 1610251470776);
|
INSERT INTO `sys_notice` VALUES (16, '测试群发系统消息', '测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息测试群发系统消息', '2', 4, 1610251470776);
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>您还未拥有此权限!</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<script>
|
|
||||||
alert("您还未拥有此权限!");
|
|
||||||
history.back();
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -80,16 +80,12 @@
|
||||||
<script th:src="@{/js/user/home/vendor/modernizr-2.8.3.min.js}"></script>
|
<script th:src="@{/js/user/home/vendor/modernizr-2.8.3.min.js}"></script>
|
||||||
<style>
|
<style>
|
||||||
table {
|
table {
|
||||||
background: #bcc2e4;
|
background: #bcc2d8;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
width: 85%;
|
width: 85%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
color: darkslategrey;
|
color: darkslategrey;
|
||||||
}
|
}
|
||||||
pre {
|
|
||||||
background: #bcc2e4;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
.context{
|
.context{
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
|
@ -138,10 +134,8 @@
|
||||||
<table th:each="notice : ${noticeList}">
|
<table th:each="notice : ${noticeList}">
|
||||||
<tr style="height: 36px">
|
<tr style="height: 36px">
|
||||||
<td style="width: 50px;"></td>
|
<td style="width: 50px;"></td>
|
||||||
<td style="position:relative;font-size: 24px">
|
<td style="position:relative;font-size: 24px"
|
||||||
<br/><br/>
|
th:text="${notice.getTitle()}">
|
||||||
<b>[[${notice.getTitle()}]]</b>
|
|
||||||
<br/><br/>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="#" th:onclick="delNotice('[[${notice.getId()}]]')" style="font-weight: bold;font-size: 30px;float: right;
|
<a href="#" th:onclick="delNotice('[[${notice.getId()}]]')" style="font-weight: bold;font-size: 30px;float: right;
|
||||||
|
@ -167,14 +161,12 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<hr style="color: black"/>
|
<hr/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="overflow-x: hidden;">
|
<tr style="overflow-x: hidden;">
|
||||||
<td style="width: 50px;"></td>
|
<td style="width: 50px;"></td>
|
||||||
<td class="context">
|
<td class="context" th:text="'系统消息:'+${notice.getContext()}"></td>
|
||||||
<pre>[[${notice.getContext()}]]</pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
|
|
|
@ -1,325 +1,325 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org">
|
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||||
<head>
|
<head>
|
||||||
<!-- Basic page needs
|
<!-- Basic page needs
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
<title>[[${merchant.getName()}]]</title>
|
<title>[[${merchant.getName()}]]</title>
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
|
|
||||||
|
<!-- Mobile specific metas
|
||||||
|
============================================ -->
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<!-- fonts
|
||||||
|
============================================ -->
|
||||||
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
<!-- Mobile specific metas
|
<!-- Favicon
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<link rel="shortcut icon" type="image/x-icon" th:href="@{/image/user/home/favicon.png}">
|
||||||
|
|
||||||
<!-- fonts
|
<!-- CSS -->
|
||||||
============================================ -->
|
|
||||||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
|
|
||||||
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
|
|
||||||
|
|
||||||
<!-- Favicon
|
<!-- Bootstrap CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="shortcut icon" type="image/x-icon" th:href="@{/image/user/home/favicon.png}">
|
<link rel="stylesheet" th:href="@{/css/user/home/bootstrap.min.css}">
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- font-awesome CSS
|
||||||
|
============================================ -->
|
||||||
|
<link rel="stylesheet" th:href="@{/css/user/home/font-awesome.min.css}">
|
||||||
|
|
||||||
<!-- Bootstrap CSS
|
<!-- owl.carousel CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/bootstrap.min.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/owl.carousel.css}">
|
||||||
|
|
||||||
<!-- font-awesome CSS
|
<!-- owl.theme CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/font-awesome.min.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/owl.theme.css}">
|
||||||
|
|
||||||
<!-- owl.carousel CSS
|
<!-- owl.transitions CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/owl.carousel.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/owl.transitions.css}">
|
||||||
|
|
||||||
<!-- owl.theme CSS
|
<!-- fancybox CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/owl.theme.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/fancybox/jquery.fancybox.css}">
|
||||||
|
|
||||||
<!-- owl.transitions CSS
|
<!-- animate CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/owl.transitions.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/animate.css}">
|
||||||
|
|
||||||
<!-- fancybox CSS
|
<!-- meanmenu CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/fancybox/jquery.fancybox.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/meanmenu.min.css}" media="all" />
|
||||||
|
|
||||||
<!-- animate CSS
|
<!-- normalize CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/animate.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/normalize.css}">
|
||||||
|
|
||||||
<!-- meanmenu CSS
|
<!-- RS-slider CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/meanmenu.min.css}" media="all" />
|
<link rel="stylesheet" type="text/css" th:href="@{/lib/user/home/rs-plugin/css/settings.css}" media="screen" />
|
||||||
|
|
||||||
<!-- normalize CSS
|
<!-- main CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/normalize.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/main.css}">
|
||||||
|
|
||||||
<!-- RS-slider CSS
|
<!-- style CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" type="text/css" th:href="@{/lib/user/home/rs-plugin/css/settings.css}" media="screen" />
|
<link rel="stylesheet" th:href="@{/css/user/home/style.css}">
|
||||||
|
|
||||||
<!-- main CSS
|
<!-- responsive CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/main.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/responsive.css}">
|
||||||
|
|
||||||
<!-- style CSS
|
<!-- modernizr js
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/style.css}">
|
<script th:src="@{/js/user/home/vendor/modernizr-2.8.3.min.js}"></script>
|
||||||
|
|
||||||
<!-- responsive CSS
|
<!-- jquery-ui CSS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/responsive.css}">
|
<link rel="stylesheet" th:href="@{/css/user/home/jquery-ui.css}">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!--[if lt IE 8]>
|
||||||
|
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
<!-- modernizr js
|
<!-- Add your site or application content here -->
|
||||||
============================================ -->
|
|
||||||
<script th:src="@{/js/user/home/vendor/modernizr-2.8.3.min.js}"></script>
|
|
||||||
|
|
||||||
<!-- jquery-ui CSS
|
<!-- header start -->
|
||||||
============================================ -->
|
<header class="header-home" th:include="user/common/model::header"></header>
|
||||||
<link rel="stylesheet" th:href="@{/css/user/home/jquery-ui.css}">
|
<!-- header end -->
|
||||||
</head>
|
<!-- shop-header-area start -->
|
||||||
<body>
|
<div class="shop-header-area" style="position: relative;top: 200px">
|
||||||
<!--[if lt IE 8]>
|
<div class="container">
|
||||||
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
<div class="row">
|
||||||
<![endif]-->
|
<div class="col-md-12 col-sm-12">
|
||||||
|
<div class="shop-header-title">
|
||||||
<!-- Add your site or application content here -->
|
<h3>
|
||||||
|
<img width="50px" style="border-radius: 100%" th:src="@{${merchant.getHeader()}}">
|
||||||
<!-- header start -->
|
[[${merchant.getName()}]]
|
||||||
<header class="header-home" th:include="user/common/model::header"></header>
|
</h3>
|
||||||
<!-- header end -->
|
<div class="title-icon">
|
||||||
<!-- shop-header-area start -->
|
<span><i class="fa fa-angle-left"></i> <i class="fa fa-angle-right"></i></span>
|
||||||
<div class="shop-header-area" style="position: relative;top: 200px">
|
</div>
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12 col-sm-12">
|
|
||||||
<div class="shop-header-title">
|
|
||||||
<h3>
|
|
||||||
<img width="50px" style="border-radius: 100%" th:src="@{${merchant.getHeader()}}">
|
|
||||||
[[${merchant.getName()}]]
|
|
||||||
</h3>
|
|
||||||
<div class="title-icon">
|
|
||||||
<span><i class="fa fa-angle-left"></i> <i class="fa fa-angle-right"></i></span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- shop-header-area end -->
|
||||||
<!-- shop-header-area end -->
|
<!-- breadcrumb-area start -->
|
||||||
<!-- breadcrumb-area start -->
|
<div class="breadcrumb-area" style="position: relative;top: 200px">
|
||||||
<div class="breadcrumb-area" style="position: relative;top: 200px">
|
<div class="container">
|
||||||
<div class="container">
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col-md-12">
|
||||||
<div class="col-md-12">
|
<div class="breadcrumb">
|
||||||
<div class="breadcrumb">
|
<ul>
|
||||||
<ul>
|
<li><a th:href="@{/}">商城主页</a> <i class="fa fa-angle-right"></i></li>
|
||||||
<li><a th:href="@{/}">商城主页</a> <i class="fa fa-angle-right"></i></li>
|
<li>[[${merchant.getName()}]]</li>
|
||||||
<li>[[${merchant.getName()}]]</li>
|
</ul>
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- breadcrumb-area end -->
|
||||||
<!-- breadcrumb-area end -->
|
<!-- blog-area start -->
|
||||||
<!-- blog-area start -->
|
<div class="shop-area" style="position: relative;top: 200px">
|
||||||
<div class="shop-area" style="position: relative;top: 200px">
|
<div class="container">
|
||||||
<div class="container">
|
<div class="row">
|
||||||
<div class="row">
|
<!-- shop-left-sidebar start -->
|
||||||
<!-- shop-left-sidebar start -->
|
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
|
||||||
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
|
<!-- widget-recent start -->
|
||||||
<!-- widget-recent start -->
|
<aside class="widget top-product-widget">
|
||||||
<aside class="widget top-product-widget">
|
<h3 class="sidebar-title">店内推荐</h3>
|
||||||
<h3 class="sidebar-title">店内推荐</h3>
|
<ul>
|
||||||
<ul>
|
<li th:if="${randGoodsMap.size()!=0}" th:each="randGoods : ${randGoodsMap.values()}">
|
||||||
<li th:if="${randGoodsMap.size()!=0}" th:each="randGoods : ${randGoodsMap.values()}">
|
<div class="single-product">
|
||||||
<div class="single-product">
|
<div class="product-img">
|
||||||
<div class="product-img">
|
<a href="#">
|
||||||
<a href="#">
|
<img class="primary-image" th:src="@{${randGoods.getImg()}}" alt="" />
|
||||||
<img class="primary-image" th:src="@{${randGoods.getImg()}}" alt="" />
|
<img class="secondary-image" th:src="@{${randGoods.getImg()}}" alt="" />
|
||||||
<img class="secondary-image" th:src="@{${randGoods.getImg()}}" alt="" />
|
</a>
|
||||||
</a>
|
</div>
|
||||||
|
<div class="product-content">
|
||||||
|
<div class="pro-info">
|
||||||
|
<h2 class="product-name">
|
||||||
|
<a th:href="@{/user/product(id=${randGoods.getId()})}">
|
||||||
|
[[${randGoods.getName()}]]
|
||||||
|
</a>
|
||||||
|
</h2>
|
||||||
|
<div class="price-box">
|
||||||
|
<span class="new-price">¥[[${randGoods.getPrice()}]]</span>
|
||||||
|
<span class="old-price">¥9999.99</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="product-content">
|
</li>
|
||||||
<div class="pro-info">
|
</ul>
|
||||||
|
</aside>
|
||||||
|
<!-- widget-recent end -->
|
||||||
|
</div>
|
||||||
|
<!-- blog-left-sidebar end -->
|
||||||
|
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
|
||||||
|
<!-- toolbar start -->
|
||||||
|
<div class="toolbar">
|
||||||
|
<div class="view-mode">
|
||||||
|
<a class="active"><i class="fa fa-th-large"></i></a>
|
||||||
|
</div>
|
||||||
|
<div class="toolbar-form">
|
||||||
|
<form action="#">
|
||||||
|
<div class="tolbar-select">
|
||||||
|
<select>
|
||||||
|
<option value="volvo">Sort by popularity</option>
|
||||||
|
<option value="saab">Default sorting</option>
|
||||||
|
<option value="mercedes">Sort by average rating</option>
|
||||||
|
<option value="audi">Sort by newness</option>
|
||||||
|
<option value="audi">Sort by price: low to high</option>
|
||||||
|
<option value="audi">Sort by price: high to low</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- toolbar end -->
|
||||||
|
<div class="clear"></div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="grid-view">
|
||||||
|
<div th:if="${goodsMap.size()==0}">
|
||||||
|
<table style="border: 1px solid grey;text-align: center;width: 100%">
|
||||||
|
<tr height="300px">
|
||||||
|
<td style="font-size: 16px">
|
||||||
|
这里是空的!!!
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<!-- single-product start -->
|
||||||
|
<div th:if="${goodsMap.size()!=0}" th:each="goods : ${goodsMap.values()}" class="col-lg-4 col-md-4 col-sm-4">
|
||||||
|
<div class="single-product">
|
||||||
|
<div class="product-img">
|
||||||
|
<a th:href="@{/user/product(id=${goods.getId()})}">
|
||||||
|
<img class="primary-image" th:src="@{${goods.getImg()}}" alt="" />
|
||||||
|
<img class="secondary-image" th:src="@{${goods.getImg()}}" alt="" />
|
||||||
|
</a>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="action-buttons">
|
||||||
|
<div class="add-to-cart">
|
||||||
|
<a th:href="@{/user/product(id=${goods.getId()})}"> 点击查看详情 </a>
|
||||||
|
</div>
|
||||||
|
<div class="add-to-cart">
|
||||||
|
<a th:href="@{/user/add-cart(id=${goods.getId()},num=1)}"> 加入到购物车 </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-content">
|
||||||
<h2 class="product-name">
|
<h2 class="product-name">
|
||||||
<a th:href="@{/user/product(id=${randGoods.getId()})}">
|
<a th:href="@{/user/product(id=${goods.getId()})}">
|
||||||
[[${randGoods.getName()}]]
|
[[${goods.getName()}]]
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="pro-rating">
|
||||||
|
<a><i class="fa fa-star"></i></a>
|
||||||
|
<a><i class="fa fa-star"></i></a>
|
||||||
|
<a><i class="fa fa-star"></i></a>
|
||||||
|
<a><i class="fa fa-star"></i></a>
|
||||||
|
<a><i class="fa fa-star"></i></a>
|
||||||
|
</div>
|
||||||
<div class="price-box">
|
<div class="price-box">
|
||||||
<span class="new-price">¥[[${randGoods.getPrice()}]]</span>
|
<span class="new-price">¥[[${goods.getPrice()}]]</span>
|
||||||
<span class="old-price">¥9999.99</span>
|
<span class="old-price">¥9999.99</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</aside>
|
|
||||||
<!-- widget-recent end -->
|
|
||||||
</div>
|
|
||||||
<!-- blog-left-sidebar end -->
|
|
||||||
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
|
|
||||||
<!-- toolbar start -->
|
|
||||||
<div class="toolbar">
|
|
||||||
<div class="view-mode">
|
|
||||||
<a class="active"><i class="fa fa-th-large"></i></a>
|
|
||||||
</div>
|
|
||||||
<div class="toolbar-form">
|
|
||||||
<form action="#">
|
|
||||||
<div class="tolbar-select">
|
|
||||||
<select>
|
|
||||||
<option value="volvo">Sort by popularity</option>
|
|
||||||
<option value="saab">Default sorting</option>
|
|
||||||
<option value="mercedes">Sort by average rating</option>
|
|
||||||
<option value="audi">Sort by newness</option>
|
|
||||||
<option value="audi">Sort by price: low to high</option>
|
|
||||||
<option value="audi">Sort by price: high to low</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- toolbar end -->
|
|
||||||
<div class="clear"></div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="grid-view">
|
|
||||||
<div th:if="${goodsMap.size()==0}">
|
|
||||||
<table style="border: 1px solid grey;text-align: center;width: 100%">
|
|
||||||
<tr height="300px">
|
|
||||||
<td style="font-size: 16px">
|
|
||||||
这里是空的!!!
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- single-product start -->
|
</div>
|
||||||
<div th:if="${goodsMap.size()!=0}" th:each="goods : ${goodsMap.values()}" class="col-lg-4 col-md-4 col-sm-4">
|
<!-- pagination start -->
|
||||||
<div class="single-product">
|
<div th:if="${goodsMap.size()!=0}" class="shop-pagination">
|
||||||
<div class="product-img">
|
<div class="pagination">
|
||||||
<a th:href="@{/user/product(id=${goods.getId()})}">
|
<ul>
|
||||||
<img class="primary-image" th:src="@{${goods.getImg()}}" alt="" />
|
<li th:each="curPage : ${#numbers.sequence(1,allPage)}">
|
||||||
<img class="secondary-image" th:src="@{${goods.getImg()}}" alt="" />
|
<a th:if="${page==curPage}" th:href="@{/user/shop(id=${merchant.getId()},page=${curPage})}" style="background: orangered;color: white">
|
||||||
|
<b>[[${page}]]</b>
|
||||||
</a>
|
</a>
|
||||||
<div class="actions">
|
<a th:if="${page!=curPage}" th:href="@{/user/shop(id=${merchant.getId()},page=${curPage})}">
|
||||||
<div class="action-buttons">
|
[[${page}]]
|
||||||
<div class="add-to-cart">
|
</a>
|
||||||
<a th:href="@{/user/product(id=${goods.getId()})}"> 点击查看详情 </a>
|
</li>
|
||||||
</div>
|
<li>
|
||||||
<div class="add-to-cart">
|
<a th:if="${page < allPage}" th:href="@{/user/shop(id=${merchant.getId()},page=${page+1})}">
|
||||||
<a th:href="@{/user/add-cart(id=${goods.getId()},num=1)}"> 加入到购物车 </a>
|
<i class="fa fa-chevron-right"></i>
|
||||||
</div>
|
</a>
|
||||||
</div>
|
<a th:unless="${page < allPage}" onclick="alert('当前已是最后一页')">
|
||||||
</div>
|
<i class="fa fa-chevron-right"></i>
|
||||||
</div>
|
</a>
|
||||||
<div class="product-content">
|
</li>
|
||||||
<h2 class="product-name">
|
</ul>
|
||||||
<a th:href="@{/user/product(id=${goods.getId()})}">
|
</div>
|
||||||
[[${goods.getName()}]]
|
|
||||||
</a>
|
|
||||||
</h2>
|
|
||||||
<div class="pro-rating">
|
|
||||||
<a><i class="fa fa-star"></i></a>
|
|
||||||
<a><i class="fa fa-star"></i></a>
|
|
||||||
<a><i class="fa fa-star"></i></a>
|
|
||||||
<a><i class="fa fa-star"></i></a>
|
|
||||||
<a><i class="fa fa-star"></i></a>
|
|
||||||
</div>
|
|
||||||
<div class="price-box">
|
|
||||||
<span class="new-price">¥[[${goods.getPrice()}]]</span>
|
|
||||||
<span class="old-price">¥9999.99</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- pagination end -->
|
||||||
</div>
|
</div>
|
||||||
<!-- pagination start -->
|
|
||||||
<div th:if="${goodsMap.size()!=0}" class="shop-pagination">
|
|
||||||
<div class="pagination">
|
|
||||||
<ul>
|
|
||||||
<li th:each="curPage : ${#numbers.sequence(1,allPage)}">
|
|
||||||
<a th:if="${page==curPage}" th:href="@{/user/shop(id=${merchant.getId()},page=${curPage})}" style="background: orangered;color: white">
|
|
||||||
<b>[[${curPage}]]</b>
|
|
||||||
</a>
|
|
||||||
<a th:if="${page!=curPage}" th:href="@{/user/shop(id=${merchant.getId()},page=${curPage})}">
|
|
||||||
[[${curPage}]]
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a th:if="${page < allPage}" th:href="@{/user/shop(id=${merchant.getId()},page=${page+1})}">
|
|
||||||
<i class="fa fa-chevron-right"></i>
|
|
||||||
</a>
|
|
||||||
<a th:unless="${page < allPage}" onclick="alert('当前已是最后一页')">
|
|
||||||
<i class="fa fa-chevron-right"></i>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- pagination end -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
|
||||||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
|
<!-- blog-area end -->
|
||||||
<!-- blog-area end -->
|
<!-- brand-area start -->
|
||||||
<!-- brand-area start -->
|
<div th:include="user/common/model::brand"></div>
|
||||||
<div th:include="user/common/model::brand"></div>
|
<!-- brand-area end -->
|
||||||
<!-- brand-area end -->
|
|
||||||
|
|
||||||
<!-- footer start -->
|
<!-- footer start -->
|
||||||
<footer th:include="user/common/model::footer"></footer>
|
<footer th:include="user/common/model::footer"></footer>
|
||||||
<!-- footer end -->
|
<!-- footer end -->
|
||||||
|
|
||||||
<!-- JS -->
|
<!-- JS -->
|
||||||
|
|
||||||
<!-- jquery js -->
|
<!-- jquery js -->
|
||||||
<script th:src="@{/js/user/home/vendor/jquery-1.12.0.min.js}"></script>
|
<script th:src="@{/js/user/home/vendor/jquery-1.12.0.min.js}"></script>
|
||||||
|
|
||||||
<!-- price-slider js -->
|
<!-- price-slider js -->
|
||||||
<script th:src="@{/js/user/home/price-slider.js}"></script>
|
<script th:src="@{/js/user/home/price-slider.js}"></script>
|
||||||
|
|
||||||
<!-- bootstrap js -->
|
<!-- bootstrap js -->
|
||||||
<script th:src="@{/js/user/home/bootstrap.min.js}"></script>
|
<script th:src="@{/js/user/home/bootstrap.min.js}"></script>
|
||||||
|
|
||||||
<!-- owl.carousel.min js -->
|
<!-- owl.carousel.min js -->
|
||||||
<script th:src="@{/js/user/home/owl.carousel.min.js}"></script>
|
<script th:src="@{/js/user/home/owl.carousel.min.js}"></script>
|
||||||
|
|
||||||
<!-- jquery.scrollUp js -->
|
<!-- jquery.scrollUp js -->
|
||||||
<script th:src="@{/js/user/home/jquery.scrollUp.min.js}"></script>
|
<script th:src="@{/js/user/home/jquery.scrollUp.min.js}"></script>
|
||||||
|
|
||||||
<!-- mixitup js -->
|
<!-- mixitup js -->
|
||||||
<script th:src="@{/js/user/home/jquery.mixitup.min.js}"></script>
|
<script th:src="@{/js/user/home/jquery.mixitup.min.js}"></script>
|
||||||
|
|
||||||
<!-- fancybox js -->
|
<!-- fancybox js -->
|
||||||
<script th:src="@{/js/user/home/fancybox/jquery.fancybox.pack.js}"></script>
|
<script th:src="@{/js/user/home/fancybox/jquery.fancybox.pack.js}"></script>
|
||||||
|
|
||||||
<!-- jquery-counterup js -->
|
<!-- jquery-counterup js -->
|
||||||
<script th:src="@{/js/user/home/jquery.counterup.min.js}"></script>
|
<script th:src="@{/js/user/home/jquery.counterup.min.js}"></script>
|
||||||
<script th:src="@{/js/user/home/waypoints.min.js}"></script>
|
<script th:src="@{/js/user/home/waypoints.min.js}"></script>
|
||||||
|
|
||||||
<!-- jquery-meanmenu js -->
|
<!-- jquery-meanmenu js -->
|
||||||
<script th:src="@{/js/user/home/jquery.meanmenu.js}"></script>
|
<script th:src="@{/js/user/home/jquery.meanmenu.js}"></script>
|
||||||
|
|
||||||
<!-- RS-Plugin JS
|
<!-- RS-Plugin JS
|
||||||
============================================ -->
|
============================================ -->
|
||||||
<script type="text/javascript" th:src="@{/lib/user/home/rs-plugin/js/jquery.themepunch.tools.min.js}"></script>
|
<script type="text/javascript" th:src="@{/lib/user/home/rs-plugin/js/jquery.themepunch.tools.min.js}"></script>
|
||||||
<script type="text/javascript" th:src="@{/lib/user/home/rs-plugin/js/jquery.themepunch.revolution.min.js}"></script>
|
<script type="text/javascript" th:src="@{/lib/user/home/rs-plugin/js/jquery.themepunch.revolution.min.js}"></script>
|
||||||
<script th:src="@{/lib/user/home/rs-plugin/rs.home.js}"></script>
|
<script th:src="@{/lib/user/home/rs-plugin/rs.home.js}"></script>
|
||||||
|
|
||||||
<!-- plugins js -->
|
<!-- plugins js -->
|
||||||
<script th:src="@{/js/user/home/plugins.js}"></script>
|
<script th:src="@{/js/user/home/plugins.js}"></script>
|
||||||
|
|
||||||
<!-- main js -->
|
<!-- main js -->
|
||||||
<script th:src="@{/js/user/home/main.js}"></script>
|
<script th:src="@{/js/user/home/main.js}"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue