Explorar o código

Merge remote-tracking branch 'origin/developerC' into developerC

zhengjinyi %!s(int64=4) %!d(string=hai) anos
pai
achega
905af15ced
Modificáronse 28 ficheiros con 256 adicións e 205 borrados
  1. 2 2
      src/main/java/com/caimei/www/controller/RedirectController.java
  2. 1 1
      src/main/java/com/caimei/www/controller/unlimited/EquipmentController.java
  3. 2 0
      src/main/java/com/caimei/www/controller/unlimited/ProductController.java
  4. 1 0
      src/main/java/com/caimei/www/mapper/SinglePageDao.java
  5. 1 0
      src/main/java/com/caimei/www/service/page/SinglePageService.java
  6. 8 0
      src/main/java/com/caimei/www/service/page/impl/SinglePageServiceImpl.java
  7. 3 0
      src/main/resources/mapper/SinglePageMapper.xml
  8. 2 2
      src/main/resources/static/css/product/qualityauthorize.css
  9. 3 3
      src/main/resources/static/js/base.js
  10. 8 2
      src/main/resources/static/js/center.js
  11. 14 17
      src/main/resources/static/js/index.js
  12. 4 0
      src/main/resources/static/js/product/detail.js
  13. 1 1
      src/main/resources/static/js/product/instruement.js
  14. 80 75
      src/main/resources/static/js/product/list.js
  15. 32 32
      src/main/resources/static/js/product/produce-list.js
  16. 16 3
      src/main/resources/static/js/supplier-center/shop/release.js
  17. 5 0
      src/main/resources/static/lib/vue2.6.12.min.js
  18. 2 2
      src/main/resources/templates/account/login.html
  19. 1 1
      src/main/resources/templates/components/foot-link.html
  20. 1 1
      src/main/resources/templates/document/components/document-link.html
  21. 1 1
      src/main/resources/templates/equipment/list.html
  22. 4 4
      src/main/resources/templates/product/detail.html
  23. 4 4
      src/main/resources/templates/product/instruelist.html
  24. 2 2
      src/main/resources/templates/product/instrument.html
  25. 53 47
      src/main/resources/templates/product/list.html
  26. 2 2
      src/main/resources/templates/product/qualityauthorize.html
  27. 3 3
      src/main/resources/templates/supplier/list.html
  28. BIN=BIN
      target/www-0.0.1-SNAPSHOT.jar

+ 2 - 2
src/main/java/com/caimei/www/controller/RedirectController.java

@@ -55,11 +55,11 @@ public class RedirectController {
      */
     @GetMapping("/cmpage/info-2-{id}.html")
     public String toequipment(@PathVariable("id") Integer equipmentId) {
-        return "redirect:/equipment/"+equipmentId+".html";
+        return "redirect:/equipment-"+equipmentId+".html";
     }
     @GetMapping("/equipment/detail.html")
     public String toequipment2(@RequestParam("id") Integer equipmentId) {
-        return "redirect:/equipment/"+equipmentId+".html";
+        return "redirect:/equipment-"+equipmentId+".html";
     }
     /**
      * 直播页面【旧】

+ 1 - 1
src/main/java/com/caimei/www/controller/unlimited/EquipmentController.java

@@ -46,7 +46,7 @@ public class EquipmentController extends BaseController {
     /**
      * 项目仪器详情页
      */
-    @GetMapping("/equipment/{id}.html")
+    @GetMapping("/equipment-{id}.html")
     public String home(final Model model, @PathVariable("id") Integer equipmentId) {
         PageContent detail = equipmentService.getEquipmentById(equipmentId);
         if(detail== null){

+ 2 - 0
src/main/java/com/caimei/www/controller/unlimited/ProductController.java

@@ -85,7 +85,9 @@ public class ProductController extends BaseController {
         if (pageId == null) {
             return super.errorPath();
         }
+        String title = singlePageService.getPageTitleById(id);
         model.addAttribute("pageId", id);
+        model.addAttribute("pageTitle", title);
         return INSTRUMENT_PAGE_PATH;
     }
 

+ 1 - 0
src/main/java/com/caimei/www/mapper/SinglePageDao.java

@@ -94,6 +94,7 @@ public interface SinglePageDao {
      * 产品仪器页
      */
     Integer getInstrumentPageIdById(Integer id);
+    String getPageTitleById(Integer id);
     /**
      * 活动专题页
      */

+ 1 - 0
src/main/java/com/caimei/www/service/page/SinglePageService.java

@@ -33,6 +33,7 @@ public interface SinglePageService {
      * @return
      */
     Integer getInstrumentPageIdById(Integer id);
+    String getPageTitleById(Integer id);
     /**
      * 活动专题页
      */

+ 8 - 0
src/main/java/com/caimei/www/service/page/impl/SinglePageServiceImpl.java

@@ -110,6 +110,14 @@ public class SinglePageServiceImpl implements SinglePageService {
         return pageId;
     }
 
+    @Override
+    public String getPageTitleById(Integer id) {
+        if (id == null) {
+            return null;
+        }
+        return singlePageDao.getPageTitleById(id);
+    }
+
     @Override
     public Integer getActivityPageIdById(Integer id) {
         if (id == null) {

+ 3 - 0
src/main/resources/mapper/SinglePageMapper.xml

@@ -82,6 +82,9 @@
             a.type=5 and a.enabledStatus=1
             and a.id=#{id}
     </select>
+    <select id="getPageTitleById" resultType="java.lang.String">
+        select title from cm_page where id=#{id}
+    </select>
     <select id="getActivityPageIdById" resultType="java.lang.Integer">
         select id from cm_page a
         where

+ 2 - 2
src/main/resources/static/css/product/qualityauthorize.css

@@ -64,7 +64,7 @@ ul{margin:0;padding:0;list-style-type:none}
 .close{position:absolute;display:block;width:32px;height:32px;background:url(/img/quality/mb-close.png) no-repeat center;cursor:pointer;z-index:999;background-size:32px;right:0;top:-50px}
 .container-main .sq-book{position:absolute;width:149px;height:112px;bottom:20px;left:30px;z-index:10;cursor: pointer;}
 .sq-book-modal{width:100%;height:100vh;position:fixed;z-index:997;top:0;left:0;background:rgba(0,0,0,.7);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}
-.sq-book-img{width:622px;height:467px;-webkit-box-shadow:0 10px 28px rgba(255,199,30,.26);box-shadow:0 10px 28px rgba(255,199,30,.26);position:fixed;left:0;right:0;margin:0 auto;top:20%;z-index:998}
+.sq-book-img{width:622px;/*height:467px;*/-webkit-box-shadow:0 10px 28px rgba(255,199,30,.26);box-shadow:0 10px 28px rgba(255,199,30,.26);position:fixed;left:0;right:0;margin:0 auto;top:20%;z-index:998}
 .sq-book-img img{width:100%;height:auto}
 }@media screen and (max-width:768px){body{background:#fff}
 .container{font-size:3.6vw;color:#101010}
@@ -106,7 +106,7 @@ ul{margin:0;padding:0;list-style-type:none}
 .close{position:absolute;display:block;width:7.2vw;height:7.2vw;background:url(/img/quality/mb-close.png) no-repeat center;cursor:pointer;z-index:999;background-size:7.2vw;right:0;top:-11.5vw}
 .container-main .sq-book{position:absolute;width:27.2vw;height:20.6vw;bottom:4.1vw;left:4vw;z-index:10;cursor: pointer}
 .sq-book-modal{width:100%;height:100vh;position:fixed;z-index:997;top:0;left:0;background:rgba(0,0,0,.7)}
-.sq-book-img{z-index:998;display:block;width:92vw;height:69vw;position:fixed;top:41.2vw;left:0;right:0;margin:0 auto;-webkit-box-shadow:0 10px 28px rgba(255,199,30,.26);box-shadow:0 10px 28px rgba(255,199,30,.26)}
+.sq-book-img{z-index:998;display:block;width:92vw;/*height:69vw;*/position:fixed;top:41.2vw;left:0;right:0;margin:0 auto;-webkit-box-shadow:0 10px 28px rgba(255,199,30,.26);box-shadow:0 10px 28px rgba(255,199,30,.26)}
 .sq-book-img img{width:100%}
 }.myZoomIn{-webkit-animation:zoomIn 1s ease;animation:zoomIn 1s ease}
 .myZoomOut{-webkit-animation:zoomOut 1s ease;animation:zoomOut 1s ease}

+ 3 - 3
src/main/resources/static/js/base.js

@@ -188,7 +188,7 @@ var globalHead = new Vue({
             this.userIdentity = userData.userIdentity;
             this.shopId = userData.shopId;
         }
-        if($(window).width() > 1400){
+        if($(window).height() > 750){
             $(window).on('scroll', function() {
                 var scrollTop = $(this).scrollTop();
                 if(scrollTop>200){
@@ -346,8 +346,8 @@ $(function(){
     $('#topSearch').on("click", '.searchBtn', function(){
         var type = isPC ? $('#topSearch').find('[data-select]').attr("data-select")*1 : $('#topSearch').find('select').val()*1;
         var keyword = $.trim($('#topSearch').find('.keyword').val());
-        // 商品
-        if (keyword.length < 2) {
+        // 商品,文章
+        if (keyword.length < 2 && (type === 0 || type > 2)) {
             $.confirm({
                 useBootstrap: false,
                 boxWidth: (isPC?'300px':'70%'),

+ 8 - 2
src/main/resources/static/js/center.js

@@ -3,11 +3,17 @@ $(function(){
     //GLOBAL_USER_IDENTITY: 2-会员机构;3-供应商;4-普通机构
     var pageFlag = window.location.pathname.split("/")[1];
     if (pageFlag == "supplier" && (GLOBAL_USER_IDENTITY=== 2 || GLOBAL_USER_IDENTITY===4)) {
+        // 机构访问供应商页面直接跳转机构个人中心
         window.location.href = "/user/dashboard.html";
     }else if (pageFlag == "user" && (GLOBAL_USER_IDENTITY === 1 || GLOBAL_USER_IDENTITY===3)) {
+        // 供应商访问机构页面直接跳转供应商个人中心
         window.location.href = "/supplier/dashboard.html";
-    }else{
-        return;
+    }
+    // 登录状态判断
+    if (!globalUserData || !GLOBAL_USER_ID){
+        CAIMEI.Alert("登录已失效,请重新登录", '确定', true, function(){
+            window.location.href = "/login.html";
+        });
     }
 });
 

+ 14 - 17
src/main/resources/static/js/index.js

@@ -220,7 +220,7 @@ var homeData = new Vue({
                     $(".price_grade_shop").hide();
                     $(".main_price_login").show();
                     priceList.map(function(price){
-                        // 用户身份 0、个人 1、协销 2、会员机构 3、供应商 4,普通机构
+                        // userIdentity用户身份: 0、个人 1、协销 2、会员机构 3、供应商 4,普通机构
                         // priceFlag: 0公开价格 1不公开价格 2仅对会员机构公开
                         var parent = $(".main_price_text.product_"+ price.productId);
                         var priceFlag = parent.find(".main_price_login").attr('data-id')*1;
@@ -297,10 +297,9 @@ var homeData = new Vue({
                         }
                     });
                     // 侧边模块固定 fixed
-                    if($('#fixed-wrap').length>0 && $(window).width()>1400) {
-                        var tocWrap = $('#fixed-wrap'),
-                            changeSize = $("#globalHead").outerHeight() + $("#swiper-container").outerHeight() + $("#sidebar").outerHeight();
-                            //changeSize = document.getElementById("header").offsetHeight + document.getElementById("sidebar").offsetHeight;
+                    if($('#fixed-wrap').length>0 && $(window).height()>750) {
+                        var tocWrap = $('#fixed-wrap');
+                        var changeSize = $("#globalHead").outerHeight() + $("#swiper-container").outerHeight() + $("#sidebar").outerHeight();
                         scrollSize >= changeSize ? tocWrap.addClass("fixed") : tocWrap.removeClass("fixed");
                     }
                 }
@@ -321,17 +320,15 @@ var homeData = new Vue({
         $('#advertising').on('click','.close',function () {
             $(this).parents('.item').hide();
         });
-        // var isActivityStatus =  localStorage.getItem('isActivityStatus');
-        // //新加优惠券弹窗
-        // if(isActivityStatus){
-        //     var  lockTime = localStorage.getItem('lockTime');
-        //     var  eTime = this.diffTime(lockTime);
-        //     _this.showflag = eTime;
-        // }else{
-        //     setTimeout(function () {
-        //          _this.showflag = true;
-        //     },1000);
-        // }
+        var isActivityStatus =  localStorage.getItem('isActivityStatus');
+        //新加优惠券弹窗
+        if(isActivityStatus){
+            var  lockTime = localStorage.getItem('lockTime');
+            _this.popupFlag = this.diffTime(lockTime);
+        }else{
+            setTimeout(function () {
+                 _this.popupFlag = true;
+            },1000);
+        }
     }
 });
-

+ 4 - 0
src/main/resources/static/js/product/detail.js

@@ -187,6 +187,10 @@ var productDetail = new Vue({
         toLogin: function() {
             setBeforeUrl();
             window.location.href = '/login.html';
+        },
+        toUpgrade: function() {
+            setBeforeUrl();
+            window.location.href = '/user/setting/upgrade.html';
         },
 		addShopCart: function(){ //加入购物车
 		    var _self = this;

+ 1 - 1
src/main/resources/static/js/product/instruement.js

@@ -50,7 +50,7 @@
             }
         },
         toserch:function(item){
-            window.location.href='/product/classify-'+this.typeSort+'-'+item.bigTypeID+'.html?name='+this.nav_linkName
+            window.location.href='/product/classify-'+this.typeSort+'-'+item.bigTypeId+'.html?name='+this.nav_linkName
         },
         seeMore:function(page){
              page.isPageMore = !page.isPageMore;

+ 80 - 75
src/main/resources/static/js/product/list.js

@@ -1,7 +1,7 @@
 var productList = new Vue({
     el: "#productList",
     data: {
-        searchFlag: false,
+        // searchFlag: false,
         listLoading: true,
         requestFlag: true,
         noMore: false,
@@ -11,9 +11,9 @@ var productList = new Vue({
             keyword: "",
             sortField: "",
             sortType: 1, // 1降序,其他升序
-            bid: "",
-            sid: "",
-            tid: ""
+            // bid: "",
+            // sid: "",
+            // tid: ""
         },
         classify: [],
         listData: [], //priceflag 0公开价格 1不公开价格 2仅对会员机构公开,//userIdentity: 2-会员机构, 4-普通机构
@@ -103,37 +103,37 @@ var productList = new Vue({
                 }
             });
         },
-        getListByCategory: function (path, categoryId) {
-            var _self = this;
-            $.getJSON(spiServer+"/search/query/product/"+ path ,{
-                id: categoryId,
-                identity: GLOBAL_USER_IDENTITY,
-                pageSize: this.params.size,
-                pageNum: this.params.num,
-                sortField: this.params.sortField,
-                sortType: this.params.sortType
-            }, function (r) {
-                if (r.code === 0 && r.data) {
-                    var result = JSON.parse(r.data);
-                    _self.listRecord = result.total;
-                    var resultData = setSearchProductList(result.items, _self.userId, function(){
-                        _self.$forceUpdate();
-                        setTimeout(function(){
-                            // 图片懒加载
-                            $("img[data-original]").lazyload();
-                        },500);
-                    });
-                    if(isPC){
-                        _self.listData = resultData;
-                    }else{
-                        _self.listData = _self.listData.concat(resultData);
-                    }
-                    console.log(_self.listData)
-                }
-                _self.listLoading = false;
-                _self.requestFlag = true;
-            })
-        }
+        // getListByCategory: function (path, categoryId) {
+        //     var _self = this;
+        //     $.getJSON(spiServer+"/search/query/product/"+ path ,{
+        //         id: categoryId,
+        //         identity: GLOBAL_USER_IDENTITY,
+        //         pageSize: this.params.size,
+        //         pageNum: this.params.num,
+        //         sortField: this.params.sortField,
+        //         sortType: this.params.sortType
+        //     }, function (r) {
+        //         if (r.code === 0 && r.data) {
+        //             var result = JSON.parse(r.data);
+        //             _self.listRecord = result.total;
+        //             var resultData = setSearchProductList(result.items, _self.userId, function(){
+        //                 _self.$forceUpdate();
+        //                 setTimeout(function(){
+        //                     // 图片懒加载
+        //                     $("img[data-original]").lazyload();
+        //                 },500);
+        //             });
+        //             if(isPC){
+        //                 _self.listData = resultData;
+        //             }else{
+        //                 _self.listData = _self.listData.concat(resultData);
+        //             }
+        //             console.log(_self.listData)
+        //         }
+        //         _self.listLoading = false;
+        //         _self.requestFlag = true;
+        //     })
+        // }
     },
     created: function () {
         if(isPC){
@@ -150,7 +150,7 @@ var productList = new Vue({
         $('#topSearch').find('.keyword').val(getUrlParam("keyword"));
         this.params.sortField = getUrlParam("sortField") ? getUrlParam("sortField") : "";
         this.params.sortType = getUrlParam("sortType") ? getUrlParam("sortType") * 1 : 1;
-        this.searchFlag = (this.params.keyword !== "");
+        // this.searchFlag = (this.params.keyword !== "");
         if(globalUserData){
             this.userId = globalUserData.userId;
             this.userIdentity = globalUserData.identity;
@@ -161,32 +161,35 @@ var productList = new Vue({
             this.userId = JSON.parse(userInfo).userId;
             this.shopID = JSON.parse(userInfo).shopId;
         }
-        if (this.searchFlag) {
-            // 获取列表数据
-            this.getListByKeyword();
-        } else {
-            // category=1000-1001-1005
-            if (!getUrlParam("category")) {
-                this.listLoading = false;
-                return false;
-            }
-            var category = getUrlParam("category").split("-");
-            this.params.bid = category[0];
-            this.params.sid = category[1];
-            this.params.tid = category[2];
-            // 根据分类获取数据
-            if (this.params.tid && this.params.tid>0) {
-                this.getListByCategory("tinyType", this.params.tid);
-            } else if (this.params.sid && this.params.sid>0){
-                this.getListByCategory("smallType", this.params.sid);
-            } else if (this.params.bid && this.params.bid>0) {
-                this.getListByCategory("bigType", this.params.bid);
-            } else {
-                alertInfo("URL参数异常!", function(){
-                    window.location.href = "/";
-                });
-            }
-        }
+        // 获取列表数据
+        this.getListByKeyword();
+
+        // if (this.searchFlag) {
+        //     // 获取列表数据
+        //     this.getListByKeyword();
+        // } else {
+        //     // category=1000-1001-1005
+        //     if (!getUrlParam("category")) {
+        //         this.listLoading = false;
+        //         return false;
+        //     }
+        //     var category = getUrlParam("category").split("-");
+        //     this.params.bid = category[0];
+        //     this.params.sid = category[1];
+        //     this.params.tid = category[2];
+        //     // 根据分类获取数据
+        //     if (this.params.tid && this.params.tid>0) {
+        //         this.getListByCategory("tinyType", this.params.tid);
+        //     } else if (this.params.sid && this.params.sid>0){
+        //         this.getListByCategory("smallType", this.params.sid);
+        //     } else if (this.params.bid && this.params.bid>0) {
+        //         this.getListByCategory("bigType", this.params.bid);
+        //     } else {
+        //         alertInfo("URL参数异常!", function(){
+        //             window.location.href = "/";
+        //         });
+        //     }
+        // }
     },
     mounted: function () {
         var _self = this;
@@ -204,19 +207,21 @@ var productList = new Vue({
                     if(next <= totalPage){
                         if (_self.requestFlag){
                             _self.params.num = next;
-                            if (_self.searchFlag) {
-                                // 获取列表数据
-                                _self.getListByKeyword();
-                            } else {
-                                // 根据分类获取数据
-                                if (_self.params.tid && _self.params.tid>0) {
-                                    _self.getListByCategory("tinyType", _self.params.tid);
-                                } else if (_self.params.sid && _self.params.sid>0){
-                                    _self.getListByCategory("smallType", _self.params.sid);
-                                } else if (_self.params.bid && _self.params.bid>0) {
-                                    _self.getListByCategory("bigType", _self.params.bid);
-                                }
-                            }
+                            // 获取列表数据
+                            _self.getListByKeyword();
+                            // if (_self.searchFlag) {
+                            //     // 获取列表数据
+                            //     _self.getListByKeyword();
+                            // } else {
+                            //     // 根据分类获取数据
+                            //     if (_self.params.tid && _self.params.tid>0) {
+                            //         _self.getListByCategory("tinyType", _self.params.tid);
+                            //     } else if (_self.params.sid && _self.params.sid>0){
+                            //         _self.getListByCategory("smallType", _self.params.sid);
+                            //     } else if (_self.params.bid && _self.params.bid>0) {
+                            //         _self.getListByCategory("bigType", _self.params.bid);
+                            //     }
+                            // }
                         }
                         _self.requestFlag = false;
                     }else{

+ 32 - 32
src/main/resources/static/js/product/produce-list.js

@@ -13,9 +13,9 @@ var productList = new Vue({
         bigName:'',
         smallName:'',
         tinyName:'',
-        bigTypeID:'',
-        smallTypeID:'',//二级分类id
-        tinyTypeID:'',//三级分类id
+        bigTypeId:'',
+        smallTypeId:'',//二级分类id
+        tinyTypeId:'',//三级分类id
         listRecord: 0,
         pageInput: '1',
         source:'www',
@@ -59,7 +59,7 @@ var productList = new Vue({
     methods:{
         getclassify:function(){
             var _self = this;
-            ProductApi.GetbigTypeclassify({ typeId:_self.bigTypeID, idType:1, source:_self.source },function (res) {
+            ProductApi.GetbigTypeclassify({ typeId:_self.bigTypeId, idType:1, source:_self.source },function (res) {
                 if(res.code==0){
                     _self.smalltypeList = res.data.smallTypeList;
                 }else {
@@ -119,14 +119,14 @@ var productList = new Vue({
             switch (index) {
                 case 1:
                     this.smallName = '';
-                    this.params.id = this.bigTypeID;
-                    this.smallTypeID='';
+                    this.params.id = this.bigTypeId;
+                    this.smallTypeId='';
                     this.getproductList();
                     break;
                 case 2:
                     this.tinyName = '';
-                    this.params.id = this.smallTypeID;
-                    this.tinyTypeID='';
+                    this.params.id = this.smallTypeId;
+                    this.tinyTypeId='';
                     this.getproductList();
                     break;
             }
@@ -149,26 +149,26 @@ var productList = new Vue({
                 case 1://选择1集分类查询
                     this.bigName=item.name;
                     this.smallName = '';
-                    this.bigTypeID = item.bigTypeId;
+                    this.bigTypeId = item.bigTypeId;
                     this.params.id = item.bigTypeId;
                     this.smallName ='';
                     this.tinyName ='';
-                    this.smallTypeID='';
-                    this.tinyTypeID='';
+                    this.smallTypeId='';
+                    this.tinyTypeId='';
                     this.tinytypeList=[];
                     this.getclassify();
                     break;
                 case 2://选择二级分类查询
                     this.smallName = item.name;
                     this.tinyName = '';
-                    this.smallTypeID = item.smallTypeId;
+                    this.smallTypeId = item.smallTypeId;
                     this.params.id = item.smallTypeId;
-                    this.tinyTypeID='';
+                    this.tinyTypeId='';
                     this.tinytypeList =item.tinytypeList;
                     break;
                 case 3://选择三级分类查询
                     this.tinyName = item.name;
-                    this.tinyTypeID = item.tinyTypeId;
+                    this.tinyTypeId = item.tinyTypeId;
                     this.params.id = item.tinyTypeId;
                     break;
             }
@@ -185,28 +185,28 @@ var productList = new Vue({
     mounted:function () {
         var _self = this;
         this.nav_linkName = decodeURI(CAIMEI.getUrlParam('name'));
-        // this.bigTypeID = getUrlParam('bigTypeID');
-        // this.smallTypeID = getUrlParam('smallTypeID');
-        // this.tinyTypeID = getUrlParam('tinyTypeID');
+        // this.bigTypeId = getUrlParam('bigTypeId');
+        // this.smallTypeId = getUrlParam('smallTypeId');
+        // this.tinyTypeId = getUrlParam('tinyTypeId');
         // var typeSort =  getUrlParam('typeSort');
         var paramsArr = window.location.pathname.split(".")[0].split("-");
         var typeSort =  paramsArr.length>=1 ? paramsArr[1] : '';
-        this.bigTypeID = paramsArr.length>=2 ? paramsArr[2] : '';
-        this.smallTypeID = paramsArr.length>=3 ? paramsArr[3] : '';
-        this.tinyTypeID = paramsArr.length>=4 ? paramsArr[4] : '';
-        console.log( this.smallTypeID)
-        console.log( this.tinyTypeID)
-        if(this.tinyTypeID==null &&  this.smallTypeID==null){
-            this.params.id=this.bigTypeID;
+        this.bigTypeId = paramsArr.length>=2 ? paramsArr[2] : '';
+        this.smallTypeId = paramsArr.length>=3 ? paramsArr[3] : '';
+        this.tinyTypeId = paramsArr.length>=4 ? paramsArr[4] : '';
+        console.log( this.smallTypeId)
+        console.log( this.tinyTypeId)
+        if(this.tinyTypeId==null &&  this.smallTypeId==null){
+            this.params.id=this.bigTypeId;
             this.params.idType = 1;
-        }else if(this.tinyTypeID==null){
-            this.params.id=this.smallTypeID;
+        }else if(this.tinyTypeId==null){
+            this.params.id=this.smallTypeId;
             this.params.idType = 2;
-        }else if(this.smallTypeID==null){
-            this.params.id=this.bigTypeID;
+        }else if(this.smallTypeId==null){
+            this.params.id=this.bigTypeId;
             this.params.idType = 1;
         }else {
-            this.params.id=this.tinyTypeID;
+            this.params.id=this.tinyTypeId;
             this.params.idType = 3;
         }
 
@@ -215,17 +215,17 @@ var productList = new Vue({
                 if (res.code==0){
                     _self.classify = res.data;
                     _self.classify.forEach(function (item) {
-                        if(_self.bigTypeID == item.bigTypeId){
+                        if(_self.bigTypeId == item.bigTypeId){
                             _self.bigName = item.name;
                             if (item.smallTypeList!='' && item.smallTypeList!=null){
                                 _self.smalltypeList= item.smallTypeList;
                                 _self.smalltypeList.forEach(function (pros) {
-                                    if(_self.smallTypeID == pros.smallTypeId){
+                                    if(_self.smallTypeId == pros.smallTypeId){
                                         _self.smallName = pros.name;
                                         if(pros.tinyTypeList!=''&&pros.tinyTypeList!=null){
                                             _self.tinytypeList = pros.tinyTypeList;
                                             _self.tinytypeList.forEach(function (thiny) {
-                                                if (thiny.tinyTypeId ==_self.tinyTypeID){
+                                                if (thiny.tinyTypeId ==_self.tinyTypeId){
                                                     _self.tinyName=thiny.name;
                                                 }
                                             })

+ 16 - 3
src/main/resources/static/js/supplier-center/shop/release.js

@@ -208,6 +208,16 @@ var releaseContainer = new Vue({
                     }else{
                         _this.paramKeyList = data.parametersList;
                     }
+                    // 下拉列表初始化
+                    setTimeout(function(){
+                        _this.ChangeClassificationFirst({bigTypeId:data.bigTypeId, name:data.bigTypeName});
+                        setTimeout(function(){
+                            _this.ChangeClassificationTwo({smallTypeId:data.smallTypeId, name:data.smallTypeName});
+                            setTimeout(function(){
+                                _this.ChangeClassificationThree({tinyTypeId:data.tinyTypeId, name:data.tinyTypeName});
+                            },500);
+                        },500);
+                    },500);
                 }else{
                     CAIMEI.Alert(response.msg, '确定', false);
                 }
@@ -425,7 +435,7 @@ var releaseContainer = new Vue({
             _this.classificationThreeList =[];
             _this.isSelectActive = 0;
             if(_this.releaseParams.bigTypeId!=''){
-                 _this.GetTwoClassFn(_this.releaseParams.bigTypeId);
+                 _this.GetTwoClassFn(option.bigTypeId);
             }
         },
         ChangeClassificationTwo: function(option){//选择二级分类
@@ -436,7 +446,7 @@ var releaseContainer = new Vue({
             _this.releaseParams.smallTypeId = option.smallTypeId;
             _this.releaseParams.twoClassifyName = option.name;
             _this.isSelectActive = 0;
-            _this.GetThreeClassFn(_this.releaseParams.smallTypeId);
+            _this.GetThreeClassFn(option.smallTypeId);
         },
         ChangeClassificationThree: function(option){//选择三级分类
             var _this = this;
@@ -1108,6 +1118,10 @@ var releaseContainer = new Vue({
             this.newNum = value;
         },
     },
+    created: function () {
+        // 获取初始一级分类菜单
+        this.GetFistClassFn(this.releaseParams.commodityType);
+    },
     mounted: function () {
         var _this = this;
         // var NODE_ENV_BASE_URL = $('#spiServer').val();
@@ -1122,6 +1136,5 @@ var releaseContainer = new Vue({
                 _this.GetEditReleaseProductInfo(_this.productId);
             }
         }
-         _this.GetFistClassFn(_this.releaseParams.commodityType)
     }
 });

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 5 - 0
src/main/resources/static/lib/vue2.6.12.min.js


+ 2 - 2
src/main/resources/templates/account/login.html

@@ -22,12 +22,12 @@
             </div>
             <form v-show="!qrCodeLogin">
                 <div class="formLine">
-                    <input type="text" v-model="loginAccount" placeholder="请输入邮箱或手机号" :rule="rule.account" maxlength="30" @blur="blurHandle($event)" needverify>
+                    <input type="text" v-model.trim="loginAccount" placeholder="请输入邮箱或手机号" :rule="rule.account" maxlength="30" @blur="blurHandle($event)" needverify>
                     <i class="checked icon mIcon"></i>
                     <span class="errTips icon mIcon" tips="请提供正确的邮箱或手机号码"></span>
                 </div>
                 <div class="formLine">
-                    <input type="password" v-model="loginPassword" placeholder="请输入密码" :rule="rule.password" maxlength="30" @blur="blurHandle($event)" needverify>
+                    <input type="password" v-model.trim="loginPassword" placeholder="请输入密码" :rule="rule.password" maxlength="30" @blur="blurHandle($event)" needverify>
                     <i class="checked icon mIcon"></i>
                     <span class="errTips icon mIcon" tips="请输入正确的密码"></span>
                     <i class="icon showPwd" @click="showPassword($event)"></i>

+ 1 - 1
src/main/resources/templates/components/foot-link.html

@@ -3,7 +3,7 @@
 <script charset="utf-8" type="text/javascript" src="/lib/swiper.min.js"></script>
 <script charset="utf-8" type="text/javascript" src="/lib/viewer.min.js"></script>
 <script charset="utf-8" type="text/javascript" src="/lib/jquery-confirm.min.js"></script>
-<script charset="utf-8" type="text/javascript" src="/lib/vue2.6.11.min.js"></script>
+<script charset="utf-8" type="text/javascript" src="/lib/vue2.6.12.min.js"></script>
 <script charset="utf-8" type="text/javascript" src="/lib/lazyload.js"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/common/ajax.service.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/utils.service.js(v=${version})}"></script>

+ 1 - 1
src/main/resources/templates/document/components/document-link.html

@@ -3,7 +3,7 @@
 <script charset="utf-8" type="text/javascript" src="/lib/swiper.min.js"></script>
 <script charset="utf-8" type="text/javascript" src="/lib/viewer.min.js"></script>
 <script charset="utf-8" type="text/javascript" src="/lib/jquery-confirm.min.js"></script>
-<script charset="utf-8" type="text/javascript" src="/lib/vue2.6.11.min.js"></script>
+<script charset="utf-8" type="text/javascript" src="/lib/vue2.6.12.min.js"></script>
 <script charset="utf-8" type="text/javascript" src="/lib/lazyload.js"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/common/locallhostAjax.service.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/utils.js(v=${version})}"></script>

+ 1 - 1
src/main/resources/templates/equipment/list.html

@@ -28,7 +28,7 @@
     <div v-else class="equipmentList">
         <ul class="clear mfw">
             <li class="equipmentItem" v-for="ins in listData">
-                <a :href="'/equipment/'+ins.id+'.html" target="_blank">
+                <a :href="'/equipment-'+ins.id+'.html'" target="_blank">
                     <img src="/img/base/placeholder.png" :data-original="ins.image">
                     <span class="name" v-html="ins.name"></span>
                 </a>

+ 4 - 4
src/main/resources/templates/product/detail.html

@@ -40,7 +40,7 @@
             </div>
             <div class="detailBox" th:object="${product}">
                 <div class="crumbs">
-                    <span>所属分类:{{ productTypeName }}</span>
+                    <span v-text="'所属分类:'+productTypeName"></span>
                 </div>
                 <div class="Beautyfair">
                     <span class="tag" v-if="beautyActFlag==1">美博会</span>
@@ -72,7 +72,7 @@
                     </div>
                     <template v-if="GLOBAL_USER_ID && GLOBAL_USER_ID>0 && priceObj.normalPrice>0 && ((priceObj.priceFlag==0 && priceObj.userIdentity!=3) || (priceObj.priceFlag==2 && priceObj.userIdentity==2) || (priceObj.userIdentity==3 && priceObj.shopId==GLOBAL_SHOP_ID))">
                         <div class="row"> <span class="l">市场价</span><i>:</i>
-                             <em><del>¥{{priceObj.normalPrice.toFixed(2)}}</del></em>
+                             <em><del v-text="'¥'+priceObj.normalPrice.toFixed(2)"></del></em>
                         </div>
                     </template>
                     <div class="row actStatus" v-if="priceObj.actStatus==1||priceObj.ladderPriceFlag==1" ><span class="l">促销</span><i>:</i>
@@ -131,8 +131,8 @@
                                         <p class="c"><a class="close" @click="hideThisLadder($event)" href="JavaScript:void(0);">了解</a></p>
                                     </div>
                                     <div v-else>
-                                        <p v-if="priceObj.ladderPriceFlag==1"><em @click="toLogin">升级会员</em>,享受阶梯价格优惠</p>
-                                        <p v-if="priceObj.actStatus==1"><em @click="toLogin">升级会员</em>,参与促销活动</p>
+                                        <p v-if="priceObj.ladderPriceFlag==1 && priceObj.userIdentity==4"><em @click="toUpgrade">升级会员</em>,享受阶梯价格优惠</p>
+                                        <p v-if="priceObj.actStatus==1 && priceObj.userIdentity==4"><em @click="toUpgrade">升级会员</em>,参与促销活动</p>
                                         <p class="c"><a class="close" @click="hideThisLadder($event)" href="JavaScript:void(0);">了解</a></p>
                                     </div>
                                 </div>

+ 4 - 4
src/main/resources/templates/product/instruelist.html

@@ -32,19 +32,19 @@
             <div class="classification">
                 <div class="class-title">分类</div>
                 <div class="class-nav-main">
-                    <div v-for="item in classify" @click="checkedClasslyFn(item,1)" :class="{'on':item.bigTypeId == bigTypeID}">{{item.name}}</div>
+                    <div v-for="item in classify" @click="checkedClasslyFn(item,1)" :class="{'on':item.bigTypeId == bigTypeId}">{{item.name}}</div>
                 </div>
             </div>
             <div class="classification" v-if="smalltypeList!='' && smalltypeList!=null">
                 <div class="class-title">二级</div>
                 <div class="class-nav-main">
-                    <div v-for="item in smalltypeList" @click="checkedClasslyFn(item,2)" :class="{'on':item.smallTypeId == smallTypeID}">{{item.name}}</div>
+                    <div v-for="item in smalltypeList" @click="checkedClasslyFn(item,2)" :class="{'on':item.smallTypeId == smallTypeId}">{{item.name}}</div>
                 </div>
             </div>
-            <div class="classification" v-if="params.smallTypeID!=''&& tinytypeList!=''&& tinytypeList!=null">
+            <div class="classification" v-if="params.smallTypeId!=''&& tinytypeList!=''&& tinytypeList!=null">
                 <div class="class-title">三级</div>
                 <div class="class-nav-main">
-                    <div v-for="item in tinytypeList" @click="checkedClasslyFn(item,3)" :class="{'on':item.tinyTypeId == tinyTypeID}">{{item.name}}</div>
+                    <div v-for="item in tinytypeList" @click="checkedClasslyFn(item,3)" :class="{'on':item.tinyTypeId == tinyTypeId}">{{item.name}}</div>
                 </div>
             </div>
         </template>

+ 2 - 2
src/main/resources/templates/product/instrument.html

@@ -2,12 +2,12 @@
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://www.thymeleaf.org ">
 <head>
-    <title>采美365网-仪器</title>
+    <title th:text="'采美365网-'+${pageTitle}">采美365网-产品/仪器</title>
     <template th:replace="components/head-link"></template>
     <link th:href="@{/css/product/instruement.css(v=${version})}" rel="stylesheet" type="text/css">
     <template th:replace="components/analysis"></template>
 </head>
-<body >
+<body>
     <!-- 引用头部 -->
     <template th:replace="components/header"></template>
     <div id="container">

+ 53 - 47
src/main/resources/templates/product/list.html

@@ -13,53 +13,59 @@
 
 <!-- 商品列表 -->
 <div id="productList">
-    <template v-if="isPC && listData && listData.length>0">
-        <!-- 面包屑 -->
-        <div v-if="searchFlag" class="crumbs">
-            <span>搜索结果</span>
-            <span>&gt;</span> <a href="javascript:void(0);" @click="toPagination(1)" v-text="params.keyword"></a>
-        </div>
-        <div v-else class="crumbs">
-            <a href="/">首页</a>
-            <template v-if="params.bid && params.bid>0">
-                <template v-if="params.sid && params.sid>0">
-                    <span>&gt;</span> <a :href="'/product/list.html?category='+params.bid+'-0-0'" v-text="bigType"></a>
-                    <template v-if="params.tid && params.tid>0">
-                        <span>&gt;</span> <a :href="'/product/list.html?category='+params.bid+'-'+params.sid+'-0'" v-text="smallType"></a>
-                        <span>&gt;</span> <span v-text="tinyType"></span>
-                    </template>
-                    <template v-else>
-                        <span>&gt;</span> <span v-text="smallType"></span>
-                    </template>
-                </template>
-                <template v-else>
-                    <span>&gt;</span> <span v-text="bigType"></span>
-                </template>
-            </template>
-        </div>
-        <!--分类-->
-        <div v-if="(!searchFlag)" id="listClassify" class="classifyBox">
-            <div class="clsTab">
-                <template v-for="(big,i) in classify">
-                    <a :class="{'on': params.bid==big.bigTypeID}" v-if="big.validFlag==1" href="javascript:void(0);" v-text="big.name"></a>
-                </template>
-            </div>
-            <div class="clsCon">
-                <div class="tabItem" v-for="big in classify" :bid="big.bigTypeID" style="display: none;">
-                    <div class="line" :class="{'on': params.sid==small.smallTypeID}" v-for="small in big.smalltypeList" v-if="small.validFlag==1">
-                        <div class="lft" :class="{'on': params.sid==small.smallTypeID}">
-                            <a :href="'/product/list.html?category='+big.bigTypeID+'-'+small.smallTypeID+'-0'" v-text="small.name"></a>
-                        </div>
-                        <div class="rgt">
-                            <template v-for="tiny in small.tinytypeList">
-                                <a v-if="tiny.validFlag==1" :class="{'on': params.tid==tiny.tinyTypeID}" :href="'/product/list.html?category='+big.bigTypeID+'-'+small.smallTypeID+'-'+tiny.tinyTypeID" v-text="tiny.name"></a>
-                            </template>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </template>
+    <!-- 面包屑 -->
+    <div v-if="isPC && listData && listData.length>0" class="crumbs">
+        <span>搜索结果</span>
+        <span>&gt;</span> <a href="javascript:void(0);" @click="toPagination(1)" v-text="params.keyword"></a>
+    </div>
+
+<!--    <template v-if="isPC && listData && listData.length>0">-->
+<!--        &lt;!&ndash; 面包屑 &ndash;&gt;-->
+<!--        <div v-if="searchFlag" class="crumbs">-->
+<!--            <span>搜索结果</span>-->
+<!--            <span>&gt;</span> <a href="javascript:void(0);" @click="toPagination(1)" v-text="params.keyword"></a>-->
+<!--        </div>-->
+<!--        <div v-else class="crumbs">-->
+<!--            <a href="/">首页</a>-->
+<!--            <template v-if="params.bid && params.bid>0">-->
+<!--                <template v-if="params.sid && params.sid>0">-->
+<!--                    <span>&gt;</span> <a :href="'/product/list.html?category='+params.bid+'-0-0'" v-text="bigType"></a>-->
+<!--                    <template v-if="params.tid && params.tid>0">-->
+<!--                        <span>&gt;</span> <a :href="'/product/list.html?category='+params.bid+'-'+params.sid+'-0'" v-text="smallType"></a>-->
+<!--                        <span>&gt;</span> <span v-text="tinyType"></span>-->
+<!--                    </template>-->
+<!--                    <template v-else>-->
+<!--                        <span>&gt;</span> <span v-text="smallType"></span>-->
+<!--                    </template>-->
+<!--                </template>-->
+<!--                <template v-else>-->
+<!--                    <span>&gt;</span> <span v-text="bigType"></span>-->
+<!--                </template>-->
+<!--            </template>-->
+<!--        </div>-->
+<!--        &lt;!&ndash;分类&ndash;&gt;-->
+<!--        <div v-if="(!searchFlag)" id="listClassify" class="classifyBox">-->
+<!--            <div class="clsTab">-->
+<!--                <template v-for="(big,i) in classify">-->
+<!--                    <a :class="{'on': params.bid==big.bigTypeID}" v-if="big.validFlag==1" href="javascript:void(0);" v-text="big.name"></a>-->
+<!--                </template>-->
+<!--            </div>-->
+<!--            <div class="clsCon">-->
+<!--                <div class="tabItem" v-for="big in classify" :bid="big.bigTypeID" style="display: none;">-->
+<!--                    <div class="line" :class="{'on': params.sid==small.smallTypeID}" v-for="small in big.smalltypeList" v-if="small.validFlag==1">-->
+<!--                        <div class="lft" :class="{'on': params.sid==small.smallTypeID}">-->
+<!--                            <a :href="'/product/list.html?category='+big.bigTypeID+'-'+small.smallTypeID+'-0'" v-text="small.name"></a>-->
+<!--                        </div>-->
+<!--                        <div class="rgt">-->
+<!--                            <template v-for="tiny in small.tinytypeList">-->
+<!--                                <a v-if="tiny.validFlag==1" :class="{'on': params.tid==tiny.tinyTypeID}" :href="'/product/list.html?category='+big.bigTypeID+'-'+small.smallTypeID+'-'+tiny.tinyTypeID" v-text="tiny.name"></a>-->
+<!--                            </template>-->
+<!--                        </div>-->
+<!--                    </div>-->
+<!--                </div>-->
+<!--            </div>-->
+<!--        </div>-->
+<!--    </template>-->
     <!--loading-->
     <div v-if="listLoading" class="loading">
         <img src="/img/base/loading.gif">

+ 2 - 2
src/main/resources/templates/product/qualityauthorize.html

@@ -28,7 +28,7 @@
                     <img class="product-img" :src="isPC?parameters.pcImage:parameters.appletsImage">
                     <div class="origin-logo-box"><img class="product-brand" :src="parameters.authLogo"></div>
                     <img class="product-authorize" src="/img/quality/pro-authorization.png">
-                    <img class="sq-book" @click="showSqBookModal" v-show="!isShowSqBookModal" :src="isPC?parameters.pcCertificateImage:parameters.appletsCertificateImage">
+                    <img class="sq-book" @click="showSqBookModal" v-show="!isShowSqBookModal" :src="isPC?parameters.appletsCertificateImage:parameters.appletsCertificateImage">
                 </div>
                 <!-- 商品介绍区域 -->
                 <div class="product-desc">
@@ -105,7 +105,7 @@
         <transition enter-active-class="myZoomIn" leave-active-class="myZoomOut">
             <div class="sq-book-img myZoomIn"  v-show="isShowSqBookModal">
                     <i class="close" @click="hideSqBookModal"></i>
-                    <img :src="isPC?parameters.pcCertificateImage:parameters.appletsCertificateImage">
+                    <img :src="isPC?parameters.appletsCertificateImage:parameters.appletsCertificateImage">
             </div>
         </transition>
     </template>

+ 3 - 3
src/main/resources/templates/supplier/list.html

@@ -28,10 +28,10 @@
     <ul v-else class="supplierList">
         <li class="supplierItem clear" v-for="shop in listData">
             <div class="left">
-                <a :href="'/supplier-'+shop.id+'.html'" target="_blank" class="logo">
+                <a :href="'/supplier-'+shop.shopId+'.html'" target="_blank" class="logo">
                     <img :src="shop.logo" onerror="javascript:this.src='/img/default/suppliver.jpg';">
                 </a>
-                <h5><a :href="'/supplier-'+shop.id+'.html'" :title="shop.name" target="_blank">
+                <h5><a :href="'/supplier-'+shop.shopId+'.html'" :title="shop.name" target="_blank">
                     <span v-html="shop.name"></span>
                 </a>
                 <a v-if="shop.license" :href="shop.license" target="_blank" class="icon mIcon shop"></a>
@@ -55,7 +55,7 @@
                     </template>
                     <li v-else-if="isPC" v-for="i in 3"></li>
                 </ul>
-                <a v-if="isPC" :href="'/supplier-'+shop.id+'.html'" target="_blank" class="four">进入本店铺>>></a>
+                <a v-if="isPC" :href="'/supplier-'+shop.shopId+'.html'" target="_blank" class="four">进入本店铺>>></a>
             </div>
         </li>
     </ul>

BIN=BIN
target/www-0.0.1-SNAPSHOT.jar


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio