Parcourir la source

重复支付问题

hugeng il y a 4 ans
Parent
commit
78337c958e

+ 14 - 1
src/main/java/com/yc/education/controller/BaseController.java

@@ -284,8 +284,8 @@ public class BaseController {
             Users users = usersService.selectByKey(forum.getUsersid());
             forum.setUsers(users);
             try {
+                List<Htype> htypes = new ArrayList<>();
                 if (!StringUtils.isEmpty(forum.getTypes())) {
-                    List<Htype> htypes = new ArrayList<>();
                     if (forum.getTypes().contains(",")) {
                         String[] split = forum.getTypes().split(",");
                         for (String s : split) {
@@ -298,6 +298,19 @@ public class BaseController {
                     }
                     forum.setHtype(htypes);
                 }
+                if (!StringUtils.isEmpty(forum.getIda())) {
+                    if (forum.getIda().contains(",")) {
+                        String[] split = forum.getIda().split(",");
+                        for (String s : split) {
+                            Htype htype = htypeService.selectByKey(Integer.parseInt(s));
+                            htypes.add(htype);
+                        }
+                    } else {
+                        Htype htype = htypeService.selectByKey(Integer.parseInt(forum.getIda()));
+                        htypes.add(htype);
+                    }
+                    forum.setHtype(htypes);
+                }
             } catch (Exception e) {
                 e.printStackTrace();
             }

+ 33 - 23
src/main/java/com/yc/education/controller/ForumController.java

@@ -18,6 +18,7 @@ import sun.tools.tree.NullExpression;
 
 import javax.servlet.http.HttpSession;
 import java.util.Date;
+import java.util.List;
 
 import static com.yc.education.model.Users.userSessionname;
 
@@ -62,6 +63,9 @@ public class ForumController {
             String types = StringUtils.join(forum.getTypearr(), ",");
             boolean empty = StringUtils.isEmpty(types);
             if (!empty) forum.setTypes(types);
+            String idas = StringUtils.join(forum.getIdas(), ",");
+            boolean emptys = StringUtils.isEmpty(idas);
+            if (!emptys) forum.setIda(idas);
         } catch (Exception e) {
             e.printStackTrace();
         }
@@ -89,36 +93,42 @@ public class ForumController {
             try {
                 Forum forum = forumService.selectByKey(id);
                 Users user = (Users) attribute;
-                if (user.getMoeny() >= forum.getMoney()) {
-                    int rows = 0;
-                    int i = user.getMoeny() - forum.getMoney();
-                    user.setMoeny(i);
-                    rows = usersService.updateNotNull(user);
-                    httpSession.setAttribute(userSessionname, user);
-                    forum.setCounts(forum.getCounts() + 1);
-                    rows = rows + forumService.updateNotNull(forum);
-                    if (rows == 2) {
-                        Downloadlist downloadlist = new Downloadlist();
-                        downloadlist.setAddtime(new Date());
-                        downloadlist.setForumid(forum.getId());
-                        downloadlist.setUsersid(user.getId());
-                        downloadlist.setMoney(forum.getMoney());
-                        int save = downloadlistService.save(downloadlist);
-                        if (save > 0) {
-                            ajaxMessage.setIs(true);
-                            ajaxMessage.setData(forum.getFileurl());
-                            ajaxMessage.setMsg("购买成功!");
+                List<Downloadlist> downloadlists = downloadlistService.downloadListByUsersidOrForumid(user.getId(), id);
+                if (downloadlists.size() != 0) {
+                    ajaxMessage.setIs(false);
+                    ajaxMessage.setMsg("该产品已购买");
+                } else {
+                    if (user.getMoeny() >= forum.getMoney()) {
+                        int rows = 0;
+                        int i = user.getMoeny() - forum.getMoney();
+                        user.setMoeny(i);
+                        rows = usersService.updateNotNull(user);
+                        httpSession.setAttribute(userSessionname, user);
+                        forum.setCounts(forum.getCounts() + 1);
+                        rows = rows + forumService.updateNotNull(forum);
+                        if (rows == 2) {
+                            Downloadlist downloadlist = new Downloadlist();
+                            downloadlist.setAddtime(new Date());
+                            downloadlist.setForumid(forum.getId());
+                            downloadlist.setUsersid(user.getId());
+                            downloadlist.setMoney(forum.getMoney());
+                            int save = downloadlistService.save(downloadlist);
+                            if (save > 0) {
+                                ajaxMessage.setIs(true);
+                                ajaxMessage.setData(forum.getFileurl());
+                                ajaxMessage.setMsg("购买成功!");
+                            } else {
+                                ajaxMessage.setIs(false);
+                                ajaxMessage.setMsg("网络错误,请重试!");
+                            }
                         } else {
                             ajaxMessage.setIs(false);
                             ajaxMessage.setMsg("网络错误,请重试!");
                         }
                     } else {
                         ajaxMessage.setIs(false);
-                        ajaxMessage.setMsg("网络错误,请重试!");
+                        ajaxMessage.setMsg("余额不足!");
                     }
-                } else {
-                    ajaxMessage.setIs(false);
-                    ajaxMessage.setMsg("余额不足!");
                 }
             } catch (NullPointerException e) {
                 e.printStackTrace();

+ 120 - 8
src/main/java/com/yc/education/controller/IndexController.java

@@ -151,19 +151,34 @@ public class IndexController {
         }
         try {
             for (Forum forum : forums) {
-                if (forum.getTypes().contains(",")) {
-                    String[] split = forum.getTypes().split(",");
-                    for (String s : split) {
-                        if (s.equals(typeid)) {
+                if (!StringUtils.isEmpty(forum.getTypes()))
+                    if (forum.getTypes().contains(",")) {
+                        String[] split = forum.getTypes().split(",");
+                        for (String s : split) {
+                            if (s.equals(typeid)) {
+                                addforums.add(forum);
+                            }
+                        }
+                    } else {
+                        if (forum.getTypes().equals(typeid)) {
                             addforums.add(forum);
                         }
                     }
-                } else {
-                    if (forum.getTypes().equals(typeid)) {
-                        addforums.add(forum);
+                if (!StringUtils.isEmpty(forum.getIda()))
+                    if (forum.getIda().contains(",")) {
+                        String[] split = forum.getIda().split(",");
+                        for (String s : split) {
+                            if (s.equals(typeid)) {
+                                addforums.add(forum);
+                            }
+                        }
+                    } else {
+                        if (forum.getIda().equals(typeid)) {
+                            addforums.add(forum);
+                        }
                     }
-                }
             }
+
         } catch (Exception e) {
             e.printStackTrace();
         }
@@ -209,6 +224,103 @@ public class IndexController {
         return ajaxMessage;
     }
 
+    @RequestMapping("fenlei.html")
+    public ModelAndView fenLei(int type,
+                               @RequestParam(required = false, defaultValue = "1") int page,
+                               @RequestParam(required = false, defaultValue = "10") int rows,
+                               @RequestParam(required = false, defaultValue = "0") int id,
+                               @RequestParam(required = false, defaultValue = "0") int types,
+                               @RequestParam(required = false, defaultValue = "") String title,
+                               HttpSession httpSession,
+                               HttpServletRequest httpServletRequest) {
+        ModelAndView modelAndView = new ModelAndView();
+        List<Htype> htypes = htypeService.htypeList(1, 100, type);
+        List<Forum> forums = null;
+        List<Forum> forumss = new ArrayList<>();
+        try {
+            if (!StringUtils.isEmpty(title)) {
+                forums = forumService.forumListByUsersId(0, page, rows, title, types);
+                for (Forum forum : forums) {
+                    if (!forum.getIsdel().equals(0) || !forum.getStatus().equals(1)) {
+                        forums.remove(forum);
+                    }
+                }
+            } else {
+                forums = forumService.forumListByTypes(page, rows, type);
+            }
+            if (forums != null) {
+                selectForums(forums, usersService, htypeService);
+            }
+            if (type == 1) {
+                for (Forum forum : forums) {
+                    if (!StringUtils.isEmpty(forum.getTypes())) {
+                        if (forum.getTypes().contains(",")) {
+                            String[] split = forum.getTypes().split(",");
+                            for (String s : split) {
+                                if (!StringUtils.isEmpty(s)) {
+                                    if (Integer.parseInt(s) == id)
+                                        forumss.add(forum);
+                                }
+                            }
+                        } else {
+                            if (Integer.parseInt(forum.getTypes()) == id) {
+                                forumss.add(forum);
+                            }
+                        }
+                    }
+                }
+            } else {
+                for (Forum forum : forums) {
+                    if (!StringUtils.isEmpty(forum.getIda())) {
+                        if (forum.getIda().contains(",")) {
+                            String[] split = forum.getIda().split(",");
+                            for (String s : split) {
+                                if (!StringUtils.isEmpty(s)) {
+                                    if (Integer.parseInt(s) == id)
+                                        forumss.add(forum);
+                                }
+                            }
+                        } else {
+                            if (Integer.parseInt(forum.getIda()) == id) {
+                                forumss.add(forum);
+                            }
+                        }
+                    }
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        Object attribute = httpSession.getAttribute(userSessionname);
+        if (attribute != null) {
+            Users users = (Users) attribute;
+            List<Downloadlist> downloadlists = downloadlistService.downloadListByUsersidOrForumid(users.getId(), 0);
+            modelAndView.addObject("downloadlists", downloadlists);
+        }
+        boolean fag = false;
+        String ua = ((HttpServletRequest) httpServletRequest).getHeader("user-agent").toLowerCase();
+        if (ua.indexOf("micromessenger") > 0) {// 是微信浏览器
+            fag = true;
+        }
+        if (id != 0) {
+            forums.clear();
+            forums.addAll(forumss);
+        }
+        httpSession.setAttribute("fag", fag);
+        //判断电脑或手机
+        String userAgent = httpServletRequest.getHeader("USER-AGENT");
+        boolean isphone = CheckMobile.check(userAgent);
+        httpSession.setAttribute("isphone", isphone);
+        List<Banners> findall = bannersService.findall();
+        modelAndView.addObject("findall", findall);
+        modelAndView.addObject("pageInfo", new PageInfo<>(forums));
+        modelAndView.addObject("type", type);
+        modelAndView.addObject("title", title);
+        modelAndView.addObject("htypes", htypes);
+        modelAndView.addObject("id", id);
+        modelAndView.addObject("type", type);
+        return modelAndView;
+    }
 
 
 }

+ 2 - 2
src/main/java/com/yc/education/controller/OrderController.java

@@ -55,8 +55,8 @@ public class OrderController {
             order.setStatus(0);
 //            order.setMoneys(money);
             order.setMoneys(money);
-//            order.setPrices(new BigDecimal(money));
-            order.setPrices(new BigDecimal("0.01"));
+            order.setPrices(new BigDecimal(money));
+//            order.setPrices(new BigDecimal("0.01"));
             order.setUsersid(users.getId());
             order.setOrdersid(orderid);
             int save = orderService.save(order);

+ 11 - 0
src/main/java/com/yc/education/mapper/ForumMapper.java

@@ -71,6 +71,17 @@ public interface ForumMapper extends MyMapper<Forum> {
             "</script>")
     public List<Forum> forumListByType(@Param("type") int type);
 
+    @Select("<script> " +
+            " select * from forum where isdel = 0 and status = 1 " +
+            " <if test='type == 1'>" +
+            "   and types != ''" +
+            " </if>" +
+            " <if test='type == 2'>" +
+            "   and ida != ''" +
+            " </if>" +
+            "</script>")
+    public List<Forum> forumListByTypes(@Param("type") int type);
+
     @Select("select * FROM forum where usersid = #{usesrid} and YEAR(addtime) in (#{year}) and month(addtime) in (#{month})")
     public List<Forum> forumListByDate(@Param("usesrid") int usesrid, @Param("year") String year, @Param("month") String month);
 }

+ 0 - 6
src/main/java/com/yc/education/mapper/UsersMapper.java

@@ -39,12 +39,6 @@ public interface UsersMapper extends MyMapper<Users> {
     Users PhoneAndEmail(Users users);
 
 
-//    /**
-//     * @return
-//     */
-//    @Update("#{sql}")
-//    int upUsers(@Param("sql") String sql);
-
     @Select("select * from users where openid = #{0}")
     Users getUserByOpenId(String openid);
 

+ 5 - 0
src/main/java/com/yc/education/model/Forum.java

@@ -34,6 +34,8 @@ public class Forum {
 
     private String types;
 
+    private String ida;
+
     private Integer money;
 
     private Integer usersid;
@@ -57,6 +59,9 @@ public class Forum {
     @Transient
     private Users users;
 
+    @Transient
+    private String[] idas;
+
     @Transient
     private List<Htype> htype;
 

+ 10 - 0
src/main/java/com/yc/education/service/ForumService.java

@@ -38,6 +38,16 @@ public interface ForumService extends IService<Forum> {
      */
     public List<Forum> forumListByType(int page, int rows, int type);
 
+    /**
+     * 不同条件查询
+     *
+     * @param page
+     * @param rows
+     * @param type
+     * @return
+     */
+    public List<Forum> forumListByTypes(int page, int rows, int type);
+
     /**
      * 统计用户发布论坛个数
      */

+ 6 - 0
src/main/java/com/yc/education/service/impl/ForumServiceImpl.java

@@ -42,6 +42,12 @@ public class ForumServiceImpl extends BaseService<Forum> implements ForumService
         return forumMapper.forumListByType(type);
     }
 
+    @Override
+    public List<Forum> forumListByTypes(int page, int rows, int type) {
+        PageHelper.startPage(page, rows);
+        return forumMapper.forumListByTypes(type);
+    }
+
     @Override
     public int countForumList(int usersid) {
         return forumMapper.countForumList(usersid);

+ 4 - 4
src/main/webapp/WEB-INF/jsp/basic.jsp

@@ -198,10 +198,10 @@ To change this template use File | Settings | File Templates.
                                                     <td>
                                                         <label class="form-label"> 头像 </label>
                                                     </td>
-                                                    <td>
+                                                    <td style="position:relative">
                                                         <c:if test="${users.tximg == null || users.tximg == ''}">
-                                                            <div id="tx" class="act-avatar"
-                                                                 style="background: url('www.baidu.com/img/bd_logo1.png') center center no-repeat/100% auto;">
+                                                            <div id="tx" class="act-avatar" style="position:relative" 
+                                                                 style="background: url('${pageContext.request.contextPath}/static/images/mrtx.jpg') center center no-repeat/100% auto;">
                                                             </div>
                                                         </c:if>
                                                         <c:if test="${users.tximg != null && users.tximg != ''}">
@@ -209,7 +209,7 @@ To change this template use File | Settings | File Templates.
                                                                  style="background: url('${users.tximg}') center center no-repeat/100% auto;">
                                                             </div>
                                                         </c:if>
-                                                        <input type="file" name="img" id="tximg"/>
+                                                        <input type="file" name="img" id="tximg" style="position:absolute;left:0;top:0;width:50px;height:50px;opacity:0;" />
                                                         <input hidden name="tximg" id="tximgs"/>
                                                     </td>
                                                 </tr>

+ 10 - 2
src/main/webapp/WEB-INF/jsp/chongzhi_line.jsp

@@ -157,9 +157,9 @@ To change this template use File | Settings | File Templates.
                                                 </td>
                                                 <td>
                                                     <input type="text" id="money" class="form-field-tip"
-                                                           placeholder="填写金额(元)"
+                                                           placeholder="填写金额(元)" onBlur="chars(this)"
                                                            value="10"><span
-                                                        style="color: rgb(51, 51, 51);">元 = 10微小币</span>
+                                                        style="color: rgb(51, 51, 51);">元 = <span id="peice">10</span>金币</span>
                                                     <p style="color: red; font-size: 12px;">
                                                         至少充值10元
                                                     </p>
@@ -225,8 +225,14 @@ To change this template use File | Settings | File Templates.
 <script type="text/javascript" src="js/spark-md5.min.js"></script>
 <script type="text/javascript" src="js/animation.js"></script>
 <script type="text/javascript" src="js/tween.js"></script>
+<script src="static/js/layer/layer.js" type="text/javascript"></script>
 <script type="text/javascript">
 
+    function chars(obj) {
+        var val = $(obj).val();
+        $("#peice").text(val);
+    }
+
     function addorder(str) {
         var money = $("#money").val();
         if (money != null && money != '' && Number(money) >= 10) {
@@ -279,6 +285,8 @@ To change this template use File | Settings | File Templates.
                     }
                 }
             }, "json");
+        } else {
+            layer.msg("充值金额必须大于10元");
         }
     }
 

+ 4 - 2
src/main/webapp/WEB-INF/jsp/collect.jsp

@@ -407,7 +407,7 @@ To change this template use File | Settings | File Templates.
             </p>
             <p style="color: rgb(66, 165, 219);">
                 注:您购买的图纸,90个自然日内可以重复下载,超过时间后,普通会员或VIP均需重新购买,请妥善保存图纸,谢谢!<br>
-                此条款从微小网开办之日至今未改变,请知悉!
+                此条款从汽车数据之家开办之日至今未改变,请知悉!
             </p>
             <p style="color: rgb(66, 165, 219);">
             </p>
@@ -657,7 +657,7 @@ To change this template use File | Settings | File Templates.
 
 
     $("body").on('click', ".goum", function () {
-        $("#mibi").text($(this).attr('id') + "微小币");
+        $("#mibi").text($(this).attr('id') + "币");
         $("#gotozf").attr("title", $(this).attr('title'));
         $(".dialogboxbuy").show();
     })
@@ -692,6 +692,8 @@ To change this template use File | Settings | File Templates.
                     $(".pay_shibai").show();
                 } else if (data.msg == '请登录后操作!') {
                     layer.msg(data.msg);
+                } else if (data.msg = '该产品已购买') {
+                    layer.msg('该产品已购买过,请直接点击下载');
                 }
             }
         }, "json");

+ 4 - 2
src/main/webapp/WEB-INF/jsp/download.jsp

@@ -407,7 +407,7 @@ To change this template use File | Settings | File Templates.
             </p>
             <p style="color: rgb(66, 165, 219);">
                 注:您购买的图纸,90个自然日内可以重复下载,超过时间后,普通会员或VIP均需重新购买,请妥善保存图纸,谢谢!<br>
-                此条款从微小网开办之日至今未改变,请知悉!
+                此条款从汽车数据之家开办之日至今未改变,请知悉!
             </p>
             <p style="color: rgb(66, 165, 219);">
             </p>
@@ -648,7 +648,7 @@ To change this template use File | Settings | File Templates.
 
 
     $("body").on('click', ".goum", function () {
-        $("#mibi").text($(this).attr('id') + "微小币");
+        $("#mibi").text($(this).attr('id') + "币");
         $("#gotozf").attr("title", $(this).attr('title'));
         $(".dialogboxbuy").show();
     })
@@ -682,6 +682,8 @@ To change this template use File | Settings | File Templates.
                     $(".pay_shibai").show();
                 } else if (data.msg == '请登录后操作!') {
                     layer.msg(data.msg);
+                } else if (data.msg = '该产品已购买') {
+                    layer.msg('该产品已购买过,请直接点击下载');
                 }
             }
         }, "json");

+ 832 - 0
src/main/webapp/WEB-INF/jsp/fenlei.jsp

@@ -0,0 +1,832 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
+<%--
+Created by IntelliJ IDEA.
+User: edz
+Date: 2019-12-11
+Time: 10:05
+To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta http-equiv="window-target" content="_top">
+    <meta http-equiv="cache-control" content="max-age=600">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+    <meta name="keywords" content="">
+    <meta name="description" content="">
+    <link rel="stylesheet" href="css/amazeui.min.css"/>
+    <link rel="stylesheet" href="css/bootstrap.min.css">
+    <link rel="stylesheet" href="css/bootstrap-theme.min.css">
+    <link rel="stylesheet" type="text/css" href="css/main.63.css">
+    <link rel="stylesheet" type="text/css" href="css/react-datepicker.css">
+    <link rel="stylesheet" type="text/css" href="css/icon/iconfont.css">
+    <link rel="stylesheet" type="text/css" href="css/intro/introjs.css">
+    <!-- <script type="text/javascript">
+      var Sys = {};
+      var ua = navigator.userAgent.toLowerCase();
+      var s;
+      Sys.ie = (ua.match(/msie ([\d.]+)/) || ua.indexOf("rv:11.0") > -1) ? 1 : 0;
+      if (Sys.ie) {
+        alert("尊敬的用户,网站改版后,网站使用了新的WebGL,消息通讯技术,将无法支持Internet Explorer浏览器,推荐您使用最新的Google Chrome浏览器。如遇到QQ/微信第三方登录点击没反应的,请关闭浏览器弹窗/广告屏蔽,谢谢");
+      }
+    </script> -->
+    <title>汽车数据之家</title>
+    <meta name="description" content="" data-doc-meta="true">
+    <meta name="keywords" content="" data-doc-meta="true">
+</head>
+<body>
+<div>
+    <div style="height: 100%; position: relative;">
+        <!-- react-empty: 2 -->
+        <nav class="navbar navbar-fixed-top navstyle">
+            <div class="container-fluid" style="margin: 0px auto;">
+                <div class="navbar-header">
+                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
+                            data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
+                        <span class="tgl-bar"></span>
+                        <span class="tgl-bar"></span>
+                        <span class="tgl-bar"></span>
+                    </button>
+                    <a class="logo" href="index.html">汽车数据之家</a>
+                </div>
+                <div class="nav-menu clearfix">
+                    <ul class="nav navbar-nav navbar-left">
+                        <li><a href="fenlei.html?type=1">分类</a></li>
+                        <li><a href="fenlei.html?type=2">软件</a></li>
+                    </ul>
+                    <c:if test="${userSession == null}">
+                        <ul class="nav navbar-nav navbar-right">
+                            <li style="padding-left: 15px;"><a href="login.html">登录</a></li>
+                            <li style="padding-left: 15px;"><a href="register.html">注册</a></li>
+                        </ul>
+                    </c:if>
+                    <c:if test="${userSession != null}">
+                        <ul class="nav navbar-nav navbar-right">
+                            <li><a href="chongzhi_line.html"><strong class="iconfont"
+                                                                     style="margin-right: 4px;"></strong>微币</a>
+                            </li>
+                            <li class="setlist"><a><strong class="iconfont"></strong>
+                                <c:if test="${userSession.phone != null && userSession.phone != ''}">
+                                    ${userSession.phone}
+                                </c:if>
+                                <c:if test="${userSession.phone == null || userSession.phone == ''}">
+                                    <c:if test="${userSession.email != null  &&  userSession.email != ''}">
+                                        ${userSession.email}
+                                    </c:if>
+                                </c:if>
+                            </a>
+                                <ul class="setlist-menu">
+                                    <em class="tri"></em><em class="tri-bg"></em>
+                                    <li><a href="person.html?usesrid=${userSession.id}">我的主页</a></li>
+                                    <li><a href="basic.html">账号管理</a></li>
+                                    <li onclick="exits()"><a>退出</a></li>
+                                </ul>
+                            </li>
+                            </li>
+                        </ul>
+                    </c:if>
+                </div>
+            </div>
+        </nav>
+
+        <div class="index-container index-bg">
+            <div class="index-content">
+                <div class="index-center">
+                    <div class="sx_w">
+                        <ul class="pbl-sels clearfix">
+                            <%--<c:if test="${type == 1}">--%>
+                            <li <c:if test="${id == 0}"> class="cur" </c:if>><a
+                                    href="fenlei.html?type=${type}">不限行业</a></li>
+                            <c:forEach items="${htypes}" var="htypes">
+                                <li <c:if test="${id == htypes.id }"> class="cur" </c:if>><a
+                                        href="fenlei.html?type=${type}&id=${htypes.id}">${htypes.title}</a></li>
+                            </c:forEach>
+                        </ul>
+                    </div>
+                    <div class="mess-search clearfix">
+                        <div class="search-box" style="width:100%;">
+                            <a class="search_btn">
+                                <span class="search_text">全部</span><span class="caret"></span></a><input type="text"
+                                                                                                         value="${title}"
+                                                                                                         id="searchci"
+                                                                                                         class="sch-input sch-input2"
+                                                                                                         placeholder="输入感兴趣的关键字…"><a
+                                onclick="ses()"><i
+                                class="iconfont"
+                                style="font-size: 18px;"></i></a>
+                            <ul id="sch-cons" class="sch-cons" style="display: none;">
+                                <li type="searchtype"><a class="sch-current" type="3">全部</a></li>
+                                <li type="searchtype"><a type="1">标题</a></li>
+                                <li type="searchtype"><a type="2">正文</a></li>
+                                <%--<li type="searchtype"><a type="4">话题</a></li>--%>
+                            </ul>
+                        </div>
+                    </div>
+                    <div>
+
+
+                        <c:forEach items="${pageInfo.list}" var="itme">
+                            <div class="mess-item box-shadow img-transition">
+                                <div class="mess-author clearfix">
+                                    <span class="mess-title fl">
+                                      <span class="mess-title-left">
+                                        <span class="select">${itme.title}</span>
+                                          <c:if test="${itme.money != 0}">
+                                              <span class="mess-price">&nbsp;<i
+                                                      class="iconfont"></i>${itme.money}</span>
+                                          </c:if>
+                                      </span>
+                                            </span>
+
+                                    <span class="fl"><a
+                                            href="person.html?usesrid=${itme.users.id}"
+                                            class="mess-avatar"
+                                            style="background-image: url(${pageContext.request.contextPath}/${itme.users.tximg});"></a></span>
+                                    <div class="clearfix fl">
+                                        <div class="mess-meta-details fl">
+                                            <span>${itme.users.username}</span><span> | </span><span></span><span
+                                                class="addtime"><fmt:formatDate
+                                                value="${itme.addtime}"
+                                                pattern="yyyy-MM-dd"/></span>
+                                        </div>
+                                    </div>
+                                </div>
+                                <p class="mess-content select">
+                                        ${itme.contexts}
+                                </p>
+                                <c:if test="${itme.imgurl != null && itme.imgurl != ''}">
+                                    <ul class="img-mini clearfix" data-am-widget="gallery"
+                                        data-am-gallery="{ pureview: true }">
+                                        <c:if test="${itme.imgurl.contains(',')}">
+                                            <c:set value="${fn:split(itme.imgurl, ',') }" var="arr"/>
+                                            <c:forEach items="${arr}" var="arrs">
+                                                <li><img src="${arrs}">
+                                                </li>
+                                            </c:forEach>
+                                        </c:if>
+                                        <c:if test="${!itme.imgurl.contains(',')}">
+                                            <li><img src="${itme.imgurl}">
+                                            </li>
+                                        </c:if>
+                                    </ul>
+                                </c:if>
+                                <div class="mess-meta clearfix">
+                                    <c:forEach items="${itme.htype}" var="htypes">
+                                        <a class="mess-tag select" id="${htypes.id}">#${htypes.title}</a>
+                                    </c:forEach>
+                                </div>
+                                <div class="mess-meta mess-meta-cmt clearfix">
+                                    <a title="${itme.id}" style="display: block;" class="dz">
+                                        <c:if test="${userSession.uping.contains(',')}">
+                                            <c:set value="${fn:split(userSession.uping, ',') }" var="arr"/>
+                                            <c:set var="vals" value="1" scope="request"/>
+                                            <c:forEach items="${arr}" var="arrs">
+                                                <c:if test="${arrs == itme.id}">
+                                                    <c:set var="vals" value="2" scope="request"/>
+                                                </c:if>
+                                            </c:forEach>
+                                            <c:if test="${vals == 2}">
+                                                <i class="iconfont icon-dianzan-selected"></i>
+                                            </c:if>
+                                            <c:if test="${vals == 1}">
+                                                <i class="iconfont icon-dianzan-normal"></i>
+                                            </c:if>
+                                        </c:if>
+                                        <c:if test="${!userSession.uping.contains(',')}">
+                                            <c:if test="${userSession.uping == itme.id}">
+                                                <i class="iconfont icon-dianzan-selected"></i>
+                                            </c:if>
+                                            <c:if test="${userSession.uping != itme.id}">
+                                                <i class="iconfont icon-dianzan-normal"></i>
+                                            </c:if>
+                                        </c:if>
+                                        <span id="dianz">${itme.countup}</span></a>
+                                    <a title="${itme.id}" class="sc">
+                                        <c:if test="${userSession.loveing.contains(',')}">
+                                            <c:set value="${fn:split(userSession.loveing, ',') }" var="arr"/>
+                                            <c:set var="vals" value="1" scope="request"/>
+                                            <c:forEach items="${arr}" var="arrs">
+                                                <c:if test="${arrs == itme.id}">
+                                                    <c:set var="vals" value="2" scope="request"/>
+                                                </c:if>
+                                            </c:forEach>
+                                            <c:if test="${vals == 2}">
+                                                <i class="iconfont icon-shoucang"></i>
+                                            </c:if>
+                                            <c:if test="${vals == 1}">
+                                                <i class="iconfont icon-qupingfen"></i>
+                                            </c:if>
+                                        </c:if>
+                                        <c:if test="${!userSession.loveing.contains(',')}">
+                                            <c:if test="${userSession.loveing == itme.id}">
+                                                <i class="iconfont icon-shoucang"></i>
+                                            </c:if>
+                                            <c:if test="${userSession.loveing != itme.id}">
+                                                <i class="iconfont icon-qupingfen"></i>
+                                            </c:if>
+                                        </c:if>
+                                        <span id="loves">${itme.lovecount}</span></a>
+                                    <div class="mess-btn">
+                                        <c:if test="${itme.fileurl != null && itme.fileurl != ''}">
+                                            <c:if test="${downloadlists != null && downloadlists != ''}">
+                                                <c:set var="download" value="1" scope="session"/>
+                                                <c:forEach items="${downloadlists}" var="downloadlists">
+                                                    <c:if test="${downloadlists.forumid == itme.id}">
+                                                        <c:set var="download" value="2" scope="session"/>
+                                                    </c:if>
+                                                </c:forEach>
+                                                <c:if test="${download == 2}">
+                                                    <a class="my-download my-downloadbtn xiaz"
+                                                       id="${itme.fileurl}" title="${itme.id}"><i
+                                                            class="iconfont icon-xiazai"></i>下载
+                                                            ${itme.counts}</a>
+                                                </c:if>
+                                                <c:if test="${download != 2}">
+                                                    <c:if test="${itme.money != 0}">
+                                                        <a class="my-download buy-mdl goum" id="${itme.money}"
+                                                           title="${itme.id}"><i
+                                                                class="iconfont icon-goumai"></i>购买 ${itme.counts}
+                                                        </a>
+                                                    </c:if>
+                                                    <c:if test="${itme.money == 0}">
+                                                        <a class="my-download my-downloadbtn xiaz"
+                                                           id="${itme.fileurl}"
+                                                           title="${itme.id}"><i
+                                                                class="iconfont icon-xiazai"></i>下载
+                                                                ${itme.counts}</a>
+                                                    </c:if>
+                                                </c:if>
+                                            </c:if>
+                                            <c:if test="${downloadlists == null || downloadlists == ''}">
+                                                <c:if test="${itme.money == 0}">
+                                                    <a class="my-download my-downloadbtn xiaz"
+                                                       id="${itme.fileurl}" title="${itme.id}"><i
+                                                            class="iconfont icon-xiazai"></i>下载
+                                                            ${itme.counts}</a>
+                                                </c:if>
+                                                <c:if test="${itme.money != 0}">
+                                                    <a class="my-download buy-mdl goum" id="${itme.money}"
+                                                       title="${itme.id}"><i
+                                                            class="iconfont icon-goumai"></i>购买 ${itme.counts}
+                                                    </a>
+                                                </c:if>
+                                            </c:if>
+                                        </c:if>
+                                    </div>
+                                </div>
+                            </div>
+                        </c:forEach>
+                    </div>
+                    <div class="vx-timeline" style="display: block;">
+                        <ul id="timeline">
+                            <li
+                                    <c:if test="${data == '' || data == null}">class="current"</c:if>
+                                    onclick="searchdata('','12')"><a>最近</a></li>
+                            <li <c:if test="${data == '2019'}">class="current"</c:if>><a>2019</a>
+                                <ul class="vx-month">
+                                    <li onclick="searchdata('2019','12')"
+                                        <c:if test="${ri == '12'}">class="current"</c:if>><a><em
+                                            class="line-t"></em><em class="dot"></em><em
+                                            class="line-b"></em><span>12月</span></a></li>
+                                    <c:forEach items="${riqi}" var="rq">
+                                        <li onclick="searchdata('2019','${rq}')"
+                                            <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                class="line-t"></em><em
+                                                class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
+                                        </li>
+                                    </c:forEach>
+                                </ul>
+                            </li>
+                            <li <c:if test="${data == '2018'}">class="current"</c:if>><a>2018</a>
+                                <ul class="vx-month">
+                                    <li onclick="searchdata('2018','12')"
+                                        <c:if test="${ri == 12}">class="current"</c:if>><a><em class="line-t"></em><em
+                                            class="dot"></em><em class="line-b"></em><span>12月</span></a>
+                                    </li>
+                                    <c:forEach items="${riqi}" var="rq">
+                                        <li onclick="searchdata('2018','${rq}')"
+                                            <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                class="line-t"></em><em
+                                                class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
+                                        </li>
+                                    </c:forEach>
+                                </ul>
+                            </li>
+                            <li <c:if test="${data == '2017'}">class="current"</c:if>><a>2017</a>
+                                <ul class="vx-month">
+                                    <li onclick="searchdata('2017','12')"
+                                        <c:if test="${ri == 12}">class="current"</c:if>><a><em class="line-t"></em><em
+                                            class="dot"></em><em class="line-b"></em><span>12月</span></a>
+                                    </li>
+                                    <c:forEach items="${riqi}" var="rq">
+                                        <li onclick="searchdata('2017','${rq}')"
+                                            <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                class="line-t"></em><em
+                                                class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
+                                        </li>
+                                    </c:forEach>
+                                </ul>
+                            </li>
+                            <li <c:if test="${data == '2016'}">class="current"</c:if>><a>2016</a>
+                                <ul class="vx-month">
+                                    <li onclick="searchdata('2016','12')"
+                                        <c:if test="${ri == 12}">class="current"</c:if>><a><em class="line-t"></em><em
+                                            class="dot"></em><em class="line-b"></em><span>12月</span></a>
+                                    </li>
+                                    <c:forEach items="${riqi}" var="rq">
+                                        <li onclick="searchdata('2016','${rq}')"
+                                            <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                class="line-t"></em><em
+                                                class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
+                                        </li>
+                                    </c:forEach>
+                                </ul>
+                            </li>
+                            <li <c:if test="${data == '2015'}">class="current"</c:if>><a>2015</a>
+                                <ul class="vx-month">
+                                    <li onclick="searchdata('2015','12')"
+                                        <c:if test="${ri == 12}">class="current"</c:if>><a><em class="line-t"></em><em
+                                            class="dot"></em><em class="line-b"></em><span>12月</span></a>
+                                    </li>
+                                    <c:forEach items="${riqi}" var="rq">
+                                        <li onclick="searchdata('2015','${rq}')"
+                                            <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                class="line-t"></em><em
+                                                class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
+                                        </li>
+                                    </c:forEach>
+                                </ul>
+                            </li>
+                        </ul>
+                    </div>
+                    <c:if test="${pageInfo.total > 10}">
+                        <div class="load-more">
+                            <div class="load-more-content" style="display: block;">
+                                <i class="iconfont"></i><input type="button" onclick="getfourm()"
+                                                                class="load-more-content-btn"
+                                                                value="加载更多">
+                                <input hidden value="${pageInfo.nextPage}" id="pagenum"/>
+                            </div>
+                        </div>
+                    </c:if>
+                </div>
+
+            </div>
+        </div>
+    </div>
+
+    <div class="bottom">
+        <div id="footer">
+            <footer class="footcopy">
+                <div>
+                    <span>Copyright©  2012 - 2017 汽车数据之家 All Rights Reserved.</span>
+                    <a href="#" target="_blank">站点地图</a>
+                    <a href="#" target="_blank"> 联系我们 </a>
+                    <a href="#" target="_blank">沪ICP备14053256号</a>
+
+                    <a href="#" target="_blank">站长统计</a>
+                </div>
+            </footer>
+        </div>
+    </div>
+</div>
+</div>
+</div>
+
+<div class="dialogbox dialogboxbuy" style="display:none;">
+    <div class="filter">
+    </div>
+    <div class="publish-diag dld-diag clearfix">
+        <div>
+            <p class="sm-title">
+                付费下载
+            </p>
+        </div>
+        <i class="iconfont close"></i>
+        <div class="dld-content">
+            <span id="mibi"></span>
+            <p style="color: rgb(204, 204, 204);">
+                支付后即可查看所有信息及下载附件
+                <%--,文件大小(22.31MB)--%>
+            </p>
+            <p style="color: rgb(66, 165, 219);">
+                注:您购买的图纸,90个自然日内可以重复下载,超过时间后,普通会员或VIP均需重新购买,请妥善保存图纸,谢谢!<br>
+                此条款从汽车数据之家开办之日至今未改变,请知悉!
+            </p>
+            <p style="color: rgb(66, 165, 219);">
+            </p>
+            <p style="color: rgb(66, 165, 219); display:none;" class="pay_shibai">
+                <a href="${pageContext.request.contextPath}/chongzhi_line.html">购买失败,余额不足,请先充值</a>
+            </p>
+        </div>
+        <div class="mess-btn dload-btn">
+            <input type="button" class="go_pay" id="gotozf" onclick="gotozf(this)" value="去支付">
+            <a type="button" id="dload-url" disabled="" download class="null-url" value="下载">下载</a>
+        </div>
+        <div style="margin-top: 10px;">
+        </div>
+    </div>
+</div>
+
+
+<div class="dialogbox dialogboxdown" style="display:none;">
+    <div class="filter">
+    </div>
+    <div class="publish-diag dld-diag clearfix">
+        <div>
+            <p class="sm-title">
+                免费下载
+            </p>
+        </div>
+        <i class="iconfont close"></i>
+        <div class="dld-content">
+            <p style="color: rgb(204, 204, 204);">
+                支付后即可查看所有信息及下载附件
+                <%--,文件大小(188.15KB)--%>
+            </p>
+            <p style="color: rgb(66, 165, 219);">
+            </p>
+            <p style="color: rgb(66, 165, 219);">
+                <a href="/setting/currency"></a>
+            </p>
+        </div>
+        <div class="mess-btn dload-btn">
+            <a type="button" id="dload-urls" onclick="addcounts(this)" value="下载">下载</a>
+        </div>
+        <div style="margin-top: 10px;">
+            <!-- react-empty: 5894 -->
+        </div>
+    </div>
+</div>
+
+<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
+<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
+<script type="text/javascript" src="${pageContext.request.contextPath}/js/spark-md5.min.js"></script>
+<script type="text/javascript" src="${pageContext.request.contextPath}/js/animation.js"></script>
+<script type="text/javascript" src="${pageContext.request.contextPath}/js/tween.js"></script>
+<script type="text/javascript" src="${pageContext.request.contextPath}/js/amazeui.js"></script>
+<script src="${pageContext.request.contextPath}/static/js/layer/layer.js" type="text/javascript"></script>
+
+<script type="text/javascript">
+
+    function searchdata(data, riqi) {
+        window.location.href = 'person.html?usesrid=' + '${users.id}' + '&data=' + data + '&ri=' + riqi;
+    }
+
+
+    var downloadarr = new Array();
+    <c:forEach items='${downloadlists}' var="download">
+    downloadarr.push('${download}');
+    </c:forEach>
+
+    var uping = '${userSession.uping}';
+    var loveing = '${userSession.loveing}';
+
+
+    /**
+     *  分页ajax
+     */
+    function getfourm() {
+        var pagenum = $("#pagenum").val();
+        if (0 != pagenum) {
+            $.post("${pageContext.request.contextPath}/ajaxperson", {
+                "page": pagenum,
+                "rows": 2,
+                "types": 1,
+                "usersid": '${users.id}',
+            }, function (data) {
+                if (data.is) {
+                    $("#pagenum").val(data.data.nextPage);
+                    var html = '';
+                    var yhtml = $(".list-item").html();
+                    var list = data.data.list;
+                    console.log(list);
+                    for (var i = 0; i < list.length; i++) {
+                        var moneyhtml = '';
+                        var imgurlhtml = '';
+                        var htypehtml = '';
+                        var upinghtml = '';
+                        var loveinghtml = '';
+                        var fileurlhtml = '';
+                        var x = list[i];
+                        if (uping.indexOf(",")) {
+                            var uplist = uping.split(",");
+                            var vals = 1;
+                            for (var l = 0; l < uplist.length; l++) {
+                                var k = uplist[l];
+                                if (k == x.id) {
+                                    vals = 2;
+                                }
+                            }
+                            if (vals == 2) {
+                                upinghtml = '<i class="iconfont icon-dianzan-selected"></i>';
+                            } else {
+                                upinghtml = ' <i class="iconfont icon-dianzan-normal"></i>';
+                            }
+                        } else {
+                            if (uping == x.id) {
+                                upinghtml = '<i class="iconfont icon-dianzan-selected"></i>';
+                            } else {
+                                upinghtml = ' <i class="iconfont icon-dianzan-normal"></i>';
+                            }
+                        }
+                        upinghtml = upinghtml + '<span id="dianz">' + x.countup + '</span></a>';
+                        if (loveing.indexOf(",")) {
+                            var lovelist = loveing.split(",");
+                            var vals = 1;
+                            for (var y = 0; y < lovelist.length; y++) {
+                                var e = lovelist[y];
+                                if (e == x.id) {
+                                    vals = 2;
+                                }
+                            }
+                            if (vals == 2) {
+                                loveinghtml = '<i class="iconfont icon-shoucang"></i>';
+                            } else {
+                                loveinghtml = '<i class="iconfont icon-qupingfen"></i>';
+                            }
+                        } else {
+                            if (loveing == x.id) {
+                                loveinghtml = '<i class="iconfont icon-shoucang"></i>';
+                            } else {
+                                loveinghtml = '<i class="iconfont icon-qupingfen"></i>';
+                            }
+                        }
+                        loveinghtml = loveinghtml + '<span id="loves">' + x.lovecount + '</span></a>';
+                        var dateTime = getMyDate(parseInt(x.addtime));
+                        if (x.money != 0) {
+                            moneyhtml = '<span class="mess-price">&nbsp;<i class="iconfont"></i>' + x.money + '</span>'
+                        }
+                        if (x.imgurl != '' && x.imgurl != null) {
+                            imgurlhtml = '<ul class="img-mini clearfix" data-am-widget="gallery" data-am-gallery="{ pureview: true }">'
+                            if (x.imgurl.indexOf(',')) {
+                                var arr = x.imgurl.split(",");
+                                for (var j = 0; j < arr.length; j++) {
+                                    var t = arr[j];
+                                    imgurlhtml = imgurlhtml + '<li><img src="' + t + '"></li>'
+                                }
+                            } else {
+                                imgurlhtml = imgurlhtml + '<li><img src="' + x.imgurl + '"></li>'
+                            }
+                            imgurlhtml = imgurlhtml + '</ul>';
+                        }
+                        for (var p = 0; p < x.htype.length; p++) {
+                            if (x.htype[p] != null && x.htype[p] != '') {
+                                htypehtml = '<a class="mess-tag select" id=' + x.htype[p].id + ' >#' + x.htype[p].title + '</a>' + htypehtml;
+                            }
+                        }
+                        if (x.fileurl != null && x.fileurl != '') {
+                            if (downloadarr != null && downloadarr != '') {
+                                var vals = 1;
+                                for (var q = 0; q < downloadarr.length; q++) {
+                                    var w = downloadarr[q];
+                                    if (w.forumid == x.id) {
+                                        vals = 2;
+                                    }
+                                }
+                                if (vars = 2) {
+                                    fileurlhtml = '<a class="my-download my-downloadbtn xiaz" id="' + x.fileurl + '" title=' + x.id + '><i class="iconfont icon-xiazai"></i>下载 ' + x.counts + '</a>';
+                                } else {
+                                    if (x.money == 0) {
+                                        fileurlhtml = '<a class="my-download my-downloadbtn xiaz" id="' + x.fileurl + '" title=' + x.id + '><i class="iconfont icon-xiazai"></i>下载 ' + x.counts + '</a>';
+                                    } else {
+                                        fileurlhtml = '<a class="my-download buy-mdl goum" id="' + x.money + '" title="' + x.id + '" ><i  class="iconfont icon-goumai"></i>购买 ' + x.counts + ' </a>'
+                                    }
+                                }
+                            } else {
+                                if (x.money == 0) {
+                                    fileurlhtml = '<a class="my-download my-downloadbtn xiaz" id="' + x.fileurl + '" title=' + x.id + '><i class="iconfont icon-xiazai"></i>下载 ' + x.counts + '</a>';
+                                } else {
+                                    fileurlhtml = '<a class="my-download buy-mdl goum" id="' + x.money + '" title="' + x.id + '" ><i  class="iconfont icon-goumai"></i>购买 ' + x.counts + ' </a>'
+                                }
+                            }
+                        }
+                        html = '<div class="mess-item box-shadow img-transition">' +
+                            '<div class="mess-author clearfix"><span class="mess-title fl">' +
+                            '<span class="mess-title-left"><span class="select">' + x.title + '</span>' + moneyhtml +
+                            '</span></span><span class="fl">' +
+                            '<a href="person.html?usesrid=' + x.users.id + '" class="mess-avatar" style="background-image: url(' + x.users.tximg + ');"></a></span>' +
+                            '<div class="clearfix fl"><div class="mess-meta-details fl">' +
+                            '<span>' + x.users.username + '</span><span> | </span><span class="addtime">' + dateTime + '</span>' +
+                            ' </div></div></div><p class="mess-content select">' + x.contexts + '</p>' + imgurlhtml +
+                            '<div class="mess-meta clearfix">' + htypehtml + '</div>' +
+                            '<div class="mess-meta mess-meta-cmt clearfix"><a title="' + x.id + '" style="display: block;" class="dz">' + upinghtml +
+                            '<a class="sc" title=' + x.id + '>' + loveinghtml + '<div class="mess-file-tree no-response"><div class="no-response">' +
+                            '<p class="no-response"><i class="iconfont icon-fujian no-response"></i>附件信息</p>' +
+                            '</div></div><div class="mess-btn">' + fileurlhtml + '</div></div></div>' + html;
+                    }
+                    $(".list-item").html(yhtml + html);
+                }
+            }, "json")
+        }
+    }
+
+    function getMyDate(str) {
+        var oDate = new Date(str),
+            oYear = oDate.getFullYear(),
+            oMonth = oDate.getMonth() + 1,
+            oDay = oDate.getDate(),
+            oHour = oDate.getHours(),
+            oTime = oYear + '-' + addZero(oMonth) + '-' + addZero(oDay)
+        return oTime;
+    }
+
+    //补零操作
+    function addZero(num) {
+        if (parseInt(num) < 10) {
+            num = '0' + num;
+        }
+        return num;
+    }
+
+    /**
+     * 退出登录
+     */
+    function exits() {
+        $.post("exits", {}, function (data) {
+            window.location.href = 'login.html';
+        });
+    }
+
+    /**
+     * 下载
+     * fileurl 文件路径
+     */
+    $("body").on('click', ".xiaz", function () {
+        $(".dialogboxdown").show();
+        $("#dload-urls").attr("href", $(this).attr("id"));
+        $("#dload-urls").attr("download", $(this).attr('id'));
+        $("#dload-urls").attr("title", $(this).attr('title'));
+    })
+
+
+    $("body").on('click', ".goum", function () {
+        $("#mibi").text($(this).attr('id') + "金币");
+        $("#gotozf").attr("title", $(this).attr('title'));
+        $(".dialogboxbuy").show();
+    })
+
+
+    var users = '${userSession}';
+
+    /**
+     * 下载文件
+     */
+    function addcounts(obj) {
+        if (users != null) {
+            $.post("${pageContext.request.contextPath}/downloadForum", {"id": $(obj).attr("title")}, function (data) {
+            });
+        } else {
+            layer.msg("请登录后操作");
+        }
+    }
+
+    /**
+     * 支付
+     */
+    function gotozf(obj) {
+        var title = $(obj).attr("title");
+        $.post("${pageContext.request.contextPath}/payforum", {"id": title}, function (data) {
+            if (data.is) {
+                layer.msg(data.msg, {time: 1000});
+                // window.location.href = window.location.href;
+            } else {
+                console.log(data.msg)
+                if (data.msg == '余额不足!') {
+                    $(".pay_shibai").show();
+                } else if (data.msg == '请登录后操作!') {
+                    layer.msg(data.msg);
+                } else if (data.msg = '该产品已购买') {
+                    layer.msg('该产品已购买过,请直接点击下载');
+                }
+            }
+        }, "json");
+    }
+
+    /**
+     *  搜索
+     */
+    function ses() {
+        var typee = '${type}';
+        var val = $("#searchci").val();
+        var type = $(".sch-current").attr("type");
+        if (typee != null && typee != '') {
+            window.location.href = "fenlei.html?title=" + val + "&types=" + type + '&type=' + typee;
+        } else {
+            window.location.href = "fenlei.html?title=" + val + "&types=" + type;
+        }
+
+        // if (val == null || val == '') {
+        //     layer.msg("关键词不能为空");
+        //     return false;
+        // }
+    }
+
+    $(function () {
+
+        $(".setlist").click(function () {
+            if ($(this).children(".setlist-menu").hasClass("open")) {
+                $(this).children(".setlist-menu").removeClass("open")
+            } else {
+                $(this).children(".setlist-menu").addClass("open")
+            }
+        });
+
+        $('body').on("click", '.dz', function () {
+            if ($(this).children("i").hasClass("icon-dianzan-selected")) {
+                var that = $(this);
+                $.post("${pageContext.request.contextPath}/addcountForum", {
+                    "id": $(this).attr("title"),
+                    "type": 1,
+                    "status": 2
+                }, function (data) {
+                    if (data.is) {
+                        that.find('span').text(data.data);
+                        that.children("i").removeClass("icon-dianzan-selected")
+                        that.children("i").addClass("icon-dianzan-normal");
+                    } else {
+                        layer.msg(data.msg);
+                    }
+                }, 'json')
+            } else {
+                var that = $(this);
+                $.post("${pageContext.request.contextPath}/addcountForum", {
+                    "id": $(this).attr("title"),
+                    "type": 1,
+                    "status": 1
+                }, function (data) {
+                    if (data.is) {
+                        that.find('span').text(data.data);
+                        that.children("i").addClass("icon-dianzan-selected");
+                        that.children("i").removeClass("icon-dianzan-normal");
+                    } else {
+                        layer.msg(data.msg);
+                    }
+                }, 'json')
+            }
+        });
+
+        $('body').on("click", '.sc', function () {
+            if ($(this).children("i").hasClass("icon-shoucang")) {
+                var that = $(this);
+                $.post("${pageContext.request.contextPath}/addcountForum", {
+                    "id": $(this).attr("title"),
+                    "type": 2,
+                    "status": 2
+                }, function (data) {
+                    if (data.is) {
+                        that.find('span').text(data.data);
+                        that.children("i").removeClass("icon-shoucang")
+                        that.children("i").addClass("icon-qupingfen")
+                    } else {
+                        layer.msg(data.msg);
+                    }
+                }, 'json')
+            } else {
+                var that = $(this);
+                $.post("${pageContext.request.contextPath}/addcountForum", {
+                    "id": $(this).attr("title"),
+                    "type": 2,
+                    "status": 1
+                }, function (data) {
+                    if (data.is) {
+                        that.find('span').text(data.data);
+                        that.children("i").addClass("icon-shoucang");
+                        that.children("i").removeClass("icon-qupingfen");
+                    } else {
+                        layer.msg(data.msg);
+                    }
+                }, 'json')
+            }
+        });
+
+
+        $("#timeline li").click(function () {
+            $(this).addClass("current");
+            $(this).siblings().removeClass("current");
+        });
+
+
+        $(".close").click(function () {
+            $(".dialogboxbuy").hide();
+        });
+
+
+        $(".close").click(function () {
+            $(".dialogboxdown").hide();
+
+        });
+
+        $(".dload-btn").click(function () {
+            $(".dialogboxdown").hide();
+
+        });
+    })
+</script>
+</body>
+</html>

+ 41 - 5
src/main/webapp/WEB-INF/jsp/forget.jsp

@@ -38,7 +38,7 @@ To change this template use File | Settings | File Templates.
     <meta name="description" content="${findseoid.description}" data-doc-meta="true">
     <meta name="keywords" content="${findseoid.keywords}" data-doc-meta="true">
 </head>
-<body>
+<body style="background:url(img/bg1.jpg) no-repeat center center/cover">
 <div>
     <div data-reactroot="" style="height: 100%; position: relative;">
         <!-- react-empty: 2 -->
@@ -57,10 +57,37 @@ To change this template use File | Settings | File Templates.
                     <!-- <ul class="nav navbar-nav navbar-left">
                       <li><a href="index.html">首页</a></li>
                     </ul> -->
-                    <ul class="nav navbar-nav navbar-right">
-                        <li style="padding-left: 15px;"><a href="login.html">登录</a></li>
-                        <li style="padding-left: 15px;"><a href="register.html">注册</a></li>
-                    </ul>
+                    <c:if test="${userSession == null}">
+                        <ul class="nav navbar-nav navbar-right">
+                            <li style="padding-left: 15px;"><a href="login.html">登录</a></li>
+                            <li style="padding-left: 15px;"><a href="register.html">注册</a></li>
+                        </ul>
+                    </c:if>
+                    <c:if test="${userSession != null}">
+                        <ul class="nav navbar-nav navbar-right">
+                            <li><a href="chongzhi_line.html"><strong class="iconfont"
+                                                                     style="margin-right: 4px;"></strong>微币</a>
+                            </li>
+                            <li class="setlist"><a><strong class="iconfont"></strong>
+                                <c:if test="${userSession.phone != null && userSession.phone != ''}">
+                                    ${userSession.phone}
+                                </c:if>
+                                <c:if test="${userSession.phone == null || userSession.phone == ''}">
+                                    <c:if test="${userSession.email != null  &&  userSession.email != ''}">
+                                        ${userSession.email}
+                                    </c:if>
+                                </c:if>
+                            </a>
+                                <ul class="setlist-menu">
+                                    <em class="tri"></em><em class="tri-bg"></em>
+                                    <li><a href="person.html?usesrid=${userSession.id}">我的主页</a></li>
+                                    <li><a href="basic.html">账号管理</a></li>
+                                    <li onclick="exits()"><a>退出</a></li>
+                                </ul>
+                            </li>
+                            </li>
+                        </ul>
+                    </c:if>
                 </div>
             </div>
         </nav>
@@ -197,6 +224,15 @@ To change this template use File | Settings | File Templates.
         }
     }
 
+    /**
+     * 退出登录
+     */
+    function exits() {
+        $.post("exits", {}, function (data) {
+            window.location.href = 'login.html';
+        });
+    }
+
 
     $(function () {
 

+ 79 - 29
src/main/webapp/WEB-INF/jsp/index.jsp

@@ -69,9 +69,10 @@ To change this template use File | Settings | File Templates.
                     <a class="logo" href="index.html">汽车数据之家</a>
                 </div>
                 <div class="nav-menu clearfix">
-                    <!-- <ul class="nav navbar-nav navbar-left">
-                      <li><a href="index.html">首页</a></li>
-                    </ul> -->
+                    <ul class="nav navbar-nav navbar-left">
+                        <li><a href="fenlei.html?type=1">分类</a></li>
+                        <li><a href="fenlei.html?type=2">软件</a></li>
+                    </ul>
                     <c:if test="${userSession == null}">
                         <ul class="nav navbar-nav navbar-right">
                             <li style="padding-left: 15px;"><a href="login.html">登录</a></li>
@@ -137,14 +138,6 @@ To change this template use File | Settings | File Templates.
 
                             <div class="func-area clearfix">
                                 <div class="publish issue">
-                                    <%--<a class="limits"><span>公开</span><i class="iconfont"></i>--%>
-                                    <%--<div id="limits" class="pub-sel">--%>
-                                    <%--<ul>--%>
-                                    <%--<li><span><i class="iconfont"></i>公开</span></li>--%>
-                                    <%--<li><span><i class="iconfont"></i>私有</span></li>--%>
-                                    <%--</ul>--%>
-                                    <%--</div>--%>
-                                    <%--</a>--%>
                                     <a class="mes-btn" data-step="12" id="mits"
                                        data-intro="全部编辑完了,点击发布吧,公开发布的消息将立即展示在网站上"><span
                                             class="smt-btn">发布</span></a>
@@ -170,9 +163,6 @@ To change this template use File | Settings | File Templates.
                                                     <p class="hint">
                                                         压缩包限制大小500M
                                                     </p>
-                                                    <p class="hint">
-                                                        压缩包中包含完整的3D模型文件
-                                                    </p>
                                                     <p id="fileup">
                                                         未上传
                                                     </p>
@@ -232,7 +222,7 @@ To change this template use File | Settings | File Templates.
                                                 class="iconfont close"></i>
                                             <ul class="face">
                                                 <div class="index-uld">
-                                                    <div class="sels-box">
+                                                    <div class="sels-box boxs">
                                                         <span>最多选择三个行业</span>
                                                     </div>
                                                     <br>
@@ -253,6 +243,35 @@ To change this template use File | Settings | File Templates.
                                         </div>
                                     </a>
 
+                                    <a class="addition"><span class="click_this"><i
+                                            class="iconfont icon-fenlei1"></i>软件</span>
+                                        <div class="face-content" style="left: 50.8px;">
+                                            <em class="tri-bg" style="left:105.6px;"></em><em class="tri"
+                                                                                              style="left:105.6px;"></em><i
+                                                class="iconfont close"></i>
+                                            <ul class="face">
+                                                <div class="index-uld">
+                                                    <div class="sels-box boxss">
+                                                        <span>最多选择三个分类</span>
+                                                    </div>
+                                                    <br>
+                                                    <ul class="pbl-sels">
+                                                        <c:forEach items="${htypes}" var="htypes">
+                                                            <c:if test="${htypes.type == 2}">
+                                                                <li data-code="${htypes.id}"
+                                                                    onclick="addlebs('${htypes.title}',${htypes.id})">${htypes.title}
+                                                                </li>
+                                                            </c:if>
+                                                        </c:forEach>
+                                                        <c:if test="${htypes == null || htypes == ''}">
+                                                            暂无软件分类
+                                                        </c:if>
+                                                    </ul>
+                                                </div>
+                                            </ul>
+                                        </div>
+                                    </a>
+
 
                                     <a class="addition"><span class="click_this"><i
                                             class="iconfont icon-jinbi"></i>售价<span
@@ -266,7 +285,7 @@ To change this template use File | Settings | File Templates.
                                                     <div class="set-price">
                                                         <input type="text" name="money" id="money" maxlength="4"
                                                                value="0"
-                                                               placeholder="输入0~9999"><span>微小币</span>
+                                                               placeholder="输入0~9999"><span>币</span>
                                                         <input type="button" class="min-btn" onclick="queding()"
                                                                value="确定">
                                                     </div>
@@ -277,12 +296,12 @@ To change this template use File | Settings | File Templates.
                                                     </div>
                                                     <div>
                                                         <ul class="pic-list clearfix">
-                                                            <li onclick="addmoney(1)">1微小币</li>
-                                                            <li onclick="addmoney(2)">2微小币</li>
-                                                            <li onclick="addmoney(5)">5微小币</li>
-                                                            <li onclick="addmoney(10)">10微小币</li>
-                                                            <li onclick="addmoney(50)">50微小币</li>
-                                                            <li onclick="addmoney(100)">100微小币</li>
+                                                            <li onclick="addmoney(1)">1币</li>
+                                                            <li onclick="addmoney(2)">2币</li>
+                                                            <li onclick="addmoney(5)">5币</li>
+                                                            <li onclick="addmoney(10)">10币</li>
+                                                            <li onclick="addmoney(50)">50币</li>
+                                                            <li onclick="addmoney(100)">100币</li>
                                                         </ul>
                                                     </div>
                                                 </div>
@@ -322,8 +341,6 @@ To change this template use File | Settings | File Templates.
                                     class="line"></em></a></li>
                             <li <c:if test="${type == 2}">class="active"</c:if>><a href="index.html?type=2">热门<em
                                     class="line"></em></a></li>
-                            <%--<li <c:if test="${type == 3}">class="active"</c:if>><a href="index.html?type=3">推荐<em class="line"></em></a></li>--%>
-                            <%--<li <c:if test="${type == 4}">class="active"</c:if>><a href="index.html?type=4">问答<em class="line"></em></a></li>--%>
                         </ul>
                     </div>
                     <div>
@@ -415,6 +432,10 @@ To change this template use File | Settings | File Templates.
                                                         class="addtimeshort"><fmt:formatDate value="${itme.addtime }"
                                                                                              pattern="yyyy-MM-dd"/></span>
                                                 </div>
+                                                    <%--<ul class="mess-meta-tag clearfix fl">--%>
+                                                    <%--<li class="ind">机械设备</li>--%>
+                                                    <%--<li class="soft">SolidWorks</li>--%>
+                                                    <%--</ul>--%>
                                             </div>
                                         </div>
 
@@ -769,14 +790,14 @@ To change this template use File | Settings | File Templates.
         </div>
         <i class="iconfont close"></i>
         <div class="dld-content">
-            <span>10 微小币</span>
+            <span id="mibi">10 金币</span>
             <p style="color: rgb(204, 204, 204);">
                 支付后即可查看所有信息及下载附件
                 <%--,文件大小(22.31MB)--%>
             </p>
             <p style="color: rgb(66, 165, 219);">
                 注:您购买的图纸,90个自然日内可以重复下载,超过时间后,普通会员或VIP均需重新购买,请妥善保存图纸,谢谢!<br>
-                此条款从微小网开办之日至今未改变,请知悉!
+                此条款从汽车数据之家开办之日至今未改变,请知悉!
             </p>
             <p style="color: rgb(66, 165, 219);">
             </p>
@@ -1041,7 +1062,7 @@ To change this template use File | Settings | File Templates.
 
 
     $("body").on('click', ".goum", function () {
-        $("#mibi").text($(this).attr('id') + "微小币");
+        $("#mibi").text($(this).attr('id') + "币");
         $("#gotozf").attr("title", $(this).attr('title'));
         $(".dialogboxbuy").show();
     })
@@ -1107,6 +1128,8 @@ To change this template use File | Settings | File Templates.
                     $(".pay_shibai").show();
                 } else if (data.msg == '请登录后操作!') {
                     layer.msg(data.msg);
+                } else if (data.msg = '该产品已购买') {
+                    layer.msg('该产品已购买过,请直接点击下载');
                 }
             }
         }, "json");
@@ -1116,7 +1139,7 @@ To change this template use File | Settings | File Templates.
      *  分类
      */
     function addleb(msg, id) {
-        $(".sels-box>span").remove();
+        $(".boxs>span").remove();
         var clas = $(".val");
         var html = '';
         console.log(clas.length);
@@ -1136,7 +1159,34 @@ To change this template use File | Settings | File Templates.
                 html = '<div class="tag"><input hidden="hidden" class="val" name="typearr" value="' + id + '" /><span><a>' + msg + '</a></span><a><i class="iconfont icon-guanbi rm-tpc"></i></a></div>';
             }
         }
-        $(".sels-box").append(html);
+        $(".boxs").append(html);
+    }
+
+
+    /**
+     *  分类
+     */
+    function addlebs(msg, id) {
+        $(".boxss>span").remove();
+        var clas = $(".vals");
+        var html = '';
+        if (clas.length < 3) {
+            if (clas.length != 0) {
+                var b = 0
+                for (var i = 0; i < clas.length; i++) {
+                    var x = clas[i];
+                    if ($(x).val() == id) {
+                        b = 1
+                    }
+                }
+                if (b == 0) {
+                    html = '<div class="tag"><input hidden="hidden" class="vals" name="idas" value="' + id + '" /><span><a>' + msg + '</a></span><a><i class="iconfont icon-guanbi rm-tpc"></i></a></div>';
+                }
+            } else {
+                html = '<div class="tag"><input hidden="hidden" class="vals" name="idas" value="' + id + '" /><span><a>' + msg + '</a></span><a><i class="iconfont icon-guanbi rm-tpc"></i></a></div>';
+            }
+        }
+        $(".boxss").append(html);
     }
 
     $("body").on("click", ".icon-guanbi", function () {

+ 36 - 13
src/main/webapp/WEB-INF/jsp/person.jsp

@@ -292,14 +292,19 @@ To change this template use File | Settings | File Templates.
                             </div>
                             <div class="vx-timeline" style="display: block;">
                                 <ul id="timeline">
-                                    <li <c:if test="${data == '' || data == null}">class="current"</c:if>  onclick="searchdata('','12')"><a>最近</a></li>
+                                    <li
+                                            <c:if test="${data == '' || data == null}">class="current"</c:if>
+                                            onclick="searchdata('','12')"><a>最近</a></li>
                                     <li <c:if test="${data == '2019'}">class="current"</c:if>><a>2019</a>
                                         <ul class="vx-month">
-                                            <li onclick="searchdata('2019','12')" <c:if test="${ri == '12'}">class="current"</c:if>><a><em
+                                            <li onclick="searchdata('2019','12')"
+                                                <c:if test="${ri == '12'}">class="current"</c:if>><a><em
                                                     class="line-t"></em><em class="dot"></em><em
                                                     class="line-b"></em><span>12月</span></a></li>
                                             <c:forEach items="${riqi}" var="rq">
-                                                <li onclick="searchdata('2019','${rq}')" <c:if test="${ri == rq}">class="current"</c:if>><a><em class="line-t"></em><em
+                                                <li onclick="searchdata('2019','${rq}')"
+                                                    <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                        class="line-t"></em><em
                                                         class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
                                                 </li>
                                             </c:forEach>
@@ -307,11 +312,15 @@ To change this template use File | Settings | File Templates.
                                     </li>
                                     <li <c:if test="${data == '2018'}">class="current"</c:if>><a>2018</a>
                                         <ul class="vx-month">
-                                            <li onclick="searchdata('2018','12')" <c:if test="${ri == 12}">class="current"</c:if>><a><em class="line-t"></em><em
+                                            <li onclick="searchdata('2018','12')"
+                                                <c:if test="${ri == 12}">class="current"</c:if>><a><em
+                                                    class="line-t"></em><em
                                                     class="dot"></em><em class="line-b"></em><span>12月</span></a>
                                             </li>
                                             <c:forEach items="${riqi}" var="rq">
-                                                <li onclick="searchdata('2018','${rq}')" <c:if test="${ri == rq}">class="current"</c:if>><a><em class="line-t"></em><em
+                                                <li onclick="searchdata('2018','${rq}')"
+                                                    <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                        class="line-t"></em><em
                                                         class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
                                                 </li>
                                             </c:forEach>
@@ -319,11 +328,15 @@ To change this template use File | Settings | File Templates.
                                     </li>
                                     <li <c:if test="${data == '2017'}">class="current"</c:if>><a>2017</a>
                                         <ul class="vx-month">
-                                            <li onclick="searchdata('2017','12')" <c:if test="${ri == 12}">class="current"</c:if>><a><em class="line-t"></em><em
+                                            <li onclick="searchdata('2017','12')"
+                                                <c:if test="${ri == 12}">class="current"</c:if>><a><em
+                                                    class="line-t"></em><em
                                                     class="dot"></em><em class="line-b"></em><span>12月</span></a>
                                             </li>
                                             <c:forEach items="${riqi}" var="rq">
-                                                <li onclick="searchdata('2017','${rq}')" <c:if test="${ri == rq}">class="current"</c:if>><a><em class="line-t"></em><em
+                                                <li onclick="searchdata('2017','${rq}')"
+                                                    <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                        class="line-t"></em><em
                                                         class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
                                                 </li>
                                             </c:forEach>
@@ -331,11 +344,15 @@ To change this template use File | Settings | File Templates.
                                     </li>
                                     <li <c:if test="${data == '2016'}">class="current"</c:if>><a>2016</a>
                                         <ul class="vx-month">
-                                            <li onclick="searchdata('2016','12')" <c:if test="${ri == 12}">class="current"</c:if>><a><em class="line-t"></em><em
+                                            <li onclick="searchdata('2016','12')"
+                                                <c:if test="${ri == 12}">class="current"</c:if>><a><em
+                                                    class="line-t"></em><em
                                                     class="dot"></em><em class="line-b"></em><span>12月</span></a>
                                             </li>
                                             <c:forEach items="${riqi}" var="rq">
-                                                <li onclick="searchdata('2016','${rq}')" <c:if test="${ri == rq}">class="current"</c:if>><a><em class="line-t"></em><em
+                                                <li onclick="searchdata('2016','${rq}')"
+                                                    <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                        class="line-t"></em><em
                                                         class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
                                                 </li>
                                             </c:forEach>
@@ -343,11 +360,15 @@ To change this template use File | Settings | File Templates.
                                     </li>
                                     <li <c:if test="${data == '2015'}">class="current"</c:if>><a>2015</a>
                                         <ul class="vx-month">
-                                            <li onclick="searchdata('2015','12')" <c:if test="${ri == 12}">class="current"</c:if>><a><em class="line-t"></em><em
+                                            <li onclick="searchdata('2015','12')"
+                                                <c:if test="${ri == 12}">class="current"</c:if>><a><em
+                                                    class="line-t"></em><em
                                                     class="dot"></em><em class="line-b"></em><span>12月</span></a>
                                             </li>
                                             <c:forEach items="${riqi}" var="rq">
-                                                <li onclick="searchdata('2015','${rq}')" <c:if test="${ri == rq}">class="current"</c:if>><a><em class="line-t"></em><em
+                                                <li onclick="searchdata('2015','${rq}')"
+                                                    <c:if test="${ri == rq}">class="current"</c:if>><a><em
+                                                        class="line-t"></em><em
                                                         class="dot"></em><em class="line-b"></em><span>${rq}月</span></a>
                                                 </li>
                                             </c:forEach>
@@ -407,7 +428,7 @@ To change this template use File | Settings | File Templates.
             </p>
             <p style="color: rgb(66, 165, 219);">
                 注:您购买的图纸,90个自然日内可以重复下载,超过时间后,普通会员或VIP均需重新购买,请妥善保存图纸,谢谢!<br>
-                此条款从微小网开办之日至今未改变,请知悉!
+                此条款从汽车数据之家开办之日至今未改变,请知悉!
             </p>
             <p style="color: rgb(66, 165, 219);">
             </p>
@@ -657,7 +678,7 @@ To change this template use File | Settings | File Templates.
 
 
     $("body").on('click', ".goum", function () {
-        $("#mibi").text($(this).attr('id') + "微小币");
+        $("#mibi").text($(this).attr('id') + "币");
         $("#gotozf").attr("title", $(this).attr('title'));
         $(".dialogboxbuy").show();
     })
@@ -693,6 +714,8 @@ To change this template use File | Settings | File Templates.
                     $(".pay_shibai").show();
                 } else if (data.msg == '请登录后操作!') {
                     layer.msg(data.msg);
+                } else if (data.msg = '该产品已购买') {
+                    layer.msg('该产品已购买过,请直接点击下载');
                 }
             }
         }, "json");

+ 1 - 1
src/main/webapp/WEB-INF/jsp/register.jsp

@@ -35,7 +35,7 @@ To change this template use File | Settings | File Templates.
     <meta name="description" content="${findseoid.description}" data-doc-meta="true">
     <meta name="keywords" content="${findseoid.keywords}" data-doc-meta="true">
 </head>
-<body>
+<body style="background:url(img/bg1.jpg) no-repeat center center/cover">
 <div>
     <div data-reactroot="" style="height: 100%; position: relative;">
 

+ 5 - 3
src/main/webapp/WEB-INF/jsp/sechindex.jsp

@@ -355,14 +355,14 @@ To change this template use File | Settings | File Templates.
         </div>
         <i class="iconfont close"></i>
         <div class="dld-content">
-            <span>10 微小币</span>
+            <span>10 币</span>
             <p style="color: rgb(204, 204, 204);">
                 支付后即可查看所有信息及下载附件
                 <%--,文件大小(22.31MB)--%>
             </p>
             <p style="color: rgb(66, 165, 219);">
                 注:您购买的图纸,90个自然日内可以重复下载,超过时间后,普通会员或VIP均需重新购买,请妥善保存图纸,谢谢!<br>
-                此条款从微小网开办之日至今未改变,请知悉!
+                此条款从汽车数据之家开办之日至今未改变,请知悉!
             </p>
             <p style="color: rgb(66, 165, 219);">
             </p>
@@ -627,7 +627,7 @@ To change this template use File | Settings | File Templates.
 
 
     $("body").on('click', ".goum", function () {
-        $("#mibi").text($(this).attr('id') + "微小币");
+        $("#mibi").text($(this).attr('id') + "币");
         $("#gotozf").attr("title", $(this).attr('title'));
         $(".dialogboxbuy").show();
     })
@@ -681,6 +681,8 @@ To change this template use File | Settings | File Templates.
                     $(".pay_shibai").show();
                 } else if (data.msg == '请登录后操作!') {
                     layer.msg(data.msg);
+                } else if (data.msg = '该产品已购买') {
+                    layer.msg('该产品已购买过,请直接点击下载');
                 }
             }
         }, "json");

+ 47 - 1
src/main/webapp/css/main.63.css

@@ -7,7 +7,7 @@
 }
 
 body {
-    font-family: "Open Sans", '思源黑体', '思源宋体', sans-serif;
+    font-family: "微软雅黑";
     line-height: 1.42857143;
     background-size: cover;
 }
@@ -7982,4 +7982,50 @@ input.btn:hover {
     background: #42A5DB;
     color: #fff;
     border-color: #42A5DB;
+}
+
+#my-list {
+    min-height: 600px;
+}
+
+.sx_w {
+    width: 100%;
+    height: auto;
+    background: #fff;
+    padding: 20px;
+}
+
+.sx_w .pbl-sels li {
+    display: inline-block;
+    margin: 5px 10px;
+}
+
+.sx_w .pbl-sels li a {
+    color: #333;
+}
+
+.sx_w .pbl-sels li.cur a {
+    color: #42A5DB;
+}
+
+.mess-search > .search-box > .sch-input2 {
+    width: 731px;
+}
+
+@media screen and (max-width: 1200px) {
+    .mess-search > .search-box > .sch-input2 {
+        width: 480px;
+    }
+}
+
+@media screen and (max-width: 992px) {
+    .mess-search > .search-box > .sch-input2 {
+        width: 368px;
+    }
+}
+
+@media screen and (max-width: 768px) {
+    .mess-search > .search-box > .sch-input2 {
+        width: 75%;
+    }
 }

+ 4 - 0
src/main/webapp/css/style.css

@@ -3,6 +3,7 @@
 }
 body{
     background-color:#42A5DB;
+    font-family:"微软雅黑";
 }
 a{
     text-decoration: none;
@@ -36,6 +37,9 @@ div.main > div.content{
     background-color: #fff;
     padding:20px;
 }
+div.main > div.content img{
+    max-width:100%;
+}
 
 .left{
     width:200px;