Kaynağa Gözat

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

chao 4 yıl önce
ebeveyn
işleme
33508a1d8b

+ 2 - 2
src/main/resources/static/css/base/base.pc.css

@@ -169,8 +169,8 @@ iframe{width:320px !important;height: 280px !important}
 .classifyBox .clsTab a{display:inline-block;height:100%;padding:0 10px 0 10px;font-size:15px;font-weight:bold;color:#2D3036;border-bottom:1px solid transparent;margin-right: 30px}
 .classifyBox .clsTab a:hover,.classifyBox .clsTab a.on{color:#E15616;border-color:#E15616}
 .classifyBox .clsCon{padding:20px 0;box-sizing: border-box;}
-.classifyBox .tabItem_lift{width: 127px;float: left;border-right: 1px solid #FFE6DC;}
-.classifyBox .tabItem_lift a{display:inline-block;width:100%;line-height:40px;box-sizing:border-box;color: #627386;padding:10px 0 10px 15px;float: left;transform: translateX(-3px);}
+.classifyBox .tabItem_lift{width: 175px;float: left;border-right: 1px solid #FFE6DC;}
+.classifyBox .tabItem_lift a{display:inline-block;width:100%;line-height:40px;box-sizing:border-box;color: #627386;padding:10px 0 10px 25px;float: left;transform: translateX(-3px);}
 .classifyBox .tabItem_lift .tabItem_lift_icon{width: 20px;height: 20px;display: block;float: left;margin-top: 10px;margin-right: 5px;}
 .classifyBox .tabItem_lift .tabItem_lift_p{float: left;margin-left: 8px;line-height: 20px;}
 .classifyBox .tabItem_lift a.on{background: #fef6f3;color: #E15616;border-color: #ffffff;transform: translateX(0);transition: all 0.8s;}

+ 5 - 6
src/main/resources/static/css/index/index_new.pc.css

@@ -129,7 +129,7 @@ li{list-style:none;}
     height: 42px;
     float: left;
     box-sizing: border-box;
-    margin-top: 8px;
+    margin-top: 5px;
     padding: 0 8px;
     white-space: normal;
     word-break: break-all;
@@ -200,7 +200,7 @@ li{list-style:none;}
     height: 22px;
     box-sizing: border-box;
     float: left;
-    margin-top: 3px;
+    margin-top: 0px;
 }
 .section_page .page_main_price .price_text_tag .listTag{
     margin:0;
@@ -208,13 +208,13 @@ li{list-style:none;}
 }
 .section_page .page_main_price .main_price_none{
     width: 100%;
-    height: 54px;
+    height: 24px;
     box-sizing: border-box;
     float: left;
-    margin-top: 2px;
+    margin-top: 5px;
 }
 .section_page .page_main_price .main_price_none.sec{
-    margin-top: 20px;
+    margin-top: 25px;
 }
 .section_page .page_main_price .main_price_none .listTag{
     margin:0;
@@ -488,7 +488,6 @@ li{list-style:none;}
 .section_right  .item_text:hover .item_text_name:before{
     background-color: #E15616;
 }
-.price_grade .bold{font-weight: bold}
 #recommendBox .swiper-pagination{
     width:100%;
     padding:10px 0;

+ 3 - 2
src/main/resources/static/css/product/instruement.css

@@ -64,9 +64,10 @@
     .brand{color: #9aa5b5;margin: 10px 8px;border: 1px solid #e3ebf7;display: inline-block;padding: 0 10px;border-radius: 2px}
     .item_icon{ width: 100%;height: 36px;padding: 12px 0 8px 0;}
     .item_icon img{width: 36px;height: 36px;display: block;margin: 0 auto;}
-    .productItem .price em{font-weight: normal;margin: 0;}
-    .productItem .price em.bold{font-weight: bold;margin: 0}
+    .productItem .price .price_grade{font-weight: normal;margin: 0;}
+    .productItem .price .price_grade .bold{margin: 0}
     .price .right-box{margin:12px 0 0 0}
+    .productItem .price .price_grade.sec{display: block;margin-top: 15px}
 }
 
 

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

@@ -64,6 +64,7 @@ var productList = new Vue({
            var _self=this;
            ProductApi.GetSearchProduct(_self.params,function (res) {
                if( res.code==0){
+                     _self.listData=[];
                      var result = JSON.parse(res.data);
                       _self.listRecord = result.total;
                        var resultData = setSearchProductList(result.items, _self.userId, function(){
@@ -76,7 +77,6 @@ var productList = new Vue({
                         if(isPC){
                             _self.listData = resultData;
                         }else{
-                            _self.listData=[],
                             _self.listData = _self.listData.concat(resultData);
                             console.log(_self.listData)
                         }
@@ -155,6 +155,7 @@ var productList = new Vue({
                     this.params.id = item.tinyTypeID;
                     break;
             }
+           this.listData=[];
            this.getproductList();
         },
     },

+ 0 - 27
src/main/resources/static/js/supplier-center/shop/goods.js

@@ -231,33 +231,6 @@ var myGoods = new Vue({
                         })
                     })
                 }
-            }else {
-            console.log(_this.checkList);
-             _this.checkList.map(function(el){
-                    if(el.validFlag != 2){ isValidFlag = true; }
-                });
-                 if(isValidFlag){
-                    CAIMEI.Alert('部分选中的商品暂未上架,不能进行下架操作','确定');
-                    return;
-                }else {
-                    CAIMEI.Modal('确定下架选中的商品吗?','取消','确定',function () {
-                          var shelProductsList='';
-                        _this.checkList.map(function(el){
-                            if(el.validFlag == 2){
-                                shelProductsList += el.productID+','
-                            }
-                        });
-                        SupplierApi.SupplierSoldOut({productIds:shelProductsList,},function (response) {
-                            if (response.code == 0){
-                                CAIMEI.dialog('下架成功!');
-                                _this.productsList = [];
-                                _this.GetMyproductDataInfo();
-                            }else{
-                                 CAIMEI.Alert(response.msg,'确定');
-                            }
-                        })
-                    })
-                }
             }
         },
         ItemDownshelf: function(pros){//下架商品

+ 1 - 1
src/main/resources/templates/index.html

@@ -764,7 +764,7 @@
                             <div class="floorCon">
                                 <div class="hotList swiper-container-floor" id="recommendBox">
                                     <div class="section_page_main type_08 clear mfw swiper-wrapper recommendBox-wrapper" :class="page.isPageMore ? 'max' : ''">
-                                        <a class="page_main_item swiper-slide" :href="pros.link"  v-for="(pros,index) in page.floorImageList" target="_blank">
+                                        <a class="page_main_item ad_04 swiper-slide" :href="pros.link"  v-for="(pros,index) in page.floorImageList" target="_blank">
                                             <img class="page_main_image" src="/img/base/placeholder.png" :data-original="pros.image" :alt="pros.name">
                                             <div class="page_main_tag" v-if="pros.listType == 2">{{ pros.label }}</div>
                                             <div class="page_main_text" target="_blank">{{pros.name}}</div>

+ 82 - 42
src/main/resources/templates/product/instrument.html

@@ -79,28 +79,33 @@
                                                             </template>
                                                             <template v-else-if="pros.product.price1TextFlag==2 && pros.product.userIdentity==4">
                                                                 <div class="price_text_tag">
-                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                    <p class="listTag"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
                                                                 </div>
                                                                 <div class="main_price_unde">¥会员可见</div>
                                                             </template>
                                                             <template v-else>
-                                                                <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                                <span class="listTag right-box" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                                <div class="price_text_tag" >
+                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                </div>
+                                                                <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                             </template>
                                                         </template>
                                                     </template>
                                                     <template v-else>
+                                                          <div class="price_text_tag"></div>
                                                           <div class="main_price_show" v-if="pros.product.detailTalkFlag == '2'">¥价格详聊</div>
                                                           <div class="main_price_show" v-else>¥{{ pros.product.retailPrice | NumFormat  }}</div>
                                                     </template>
                                                 </template>
                                                 <template v-else>
                                                     <template v-if="pros.product.productCategory == 1">
-                                                        <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                        <span class="listTag right-box"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                        <div class="price_text_tag" >
+                                                            <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                        </div>
+                                                        <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                     </template>
                                                     <template v-else>
-                                                            <em class="price_grade">¥登录可见</em>
+                                                            <em class="price_grade sec">¥登录可见</em>
                                                     </template>
                                                 </template>
                                              </div>
@@ -144,28 +149,33 @@
                                                             </template>
                                                             <template v-else-if="pros.product.price1TextFlag==2 && pros.product.userIdentity==4">
                                                                 <div class="price_text_tag">
-                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                    <p class="listTag" v-if="pros.product.actStatus==1" >{{pros.product.promotions.name}}</p>
                                                                 </div>
                                                                 <div class="main_price_unde">¥会员可见</div>
                                                             </template>
                                                             <template v-else>
-                                                                <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                                <span class="listTag right-box" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                                <div class="price_text_tag">
+                                                                    <p class="listTag"  v-if="pros.product.actStatus==1" >{{pros.product.promotions.name}}</p>
+                                                                 </div>
+                                                                <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                             </template>
                                                         </template>
                                                     </template>
                                                     <template v-else>
+                                                          <div class="price_text_tag"></div>
                                                           <div class="main_price_show" v-if="pros.product.detailTalkFlag == '2'">¥价格详聊</div>
                                                           <div class="main_price_show"  v-else>¥{{ pros.product.retailPrice | NumFormat  }}</div>
                                                     </template>
                                                 </template>
                                                 <template v-else>
                                                     <template v-if="pros.product.productCategory == 1">
-                                                        <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                        <span class="listTag right-box"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                        <div class="price_text_tag">
+                                                            <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                        </div>
+                                                        <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                     </template>
                                                     <template v-else>
-                                                            <em class="price_grade">¥登录可见</em>
+                                                            <em class="price_grade sec">¥登录可见</em>
                                                     </template>
                                                 </template>
                                              </div>
@@ -214,23 +224,28 @@
                                                                 <div class="main_price_unde">¥会员可见</div>
                                                             </template>
                                                             <template v-else>
-                                                                <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                                <span class="listTag right-box" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                                <div class="price_text_tag ">
+                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                </div>
+                                                              <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                             </template>
                                                         </template>
                                                     </template>
                                                     <template v-else>
+                                                          <div class="price_text_tag"></div>
                                                           <div class="main_price_show" v-if="pros.product.detailTalkFlag == '2'">¥价格详聊</div>
                                                           <div class="main_price_show" v-else>¥{{ pros.product.retailPrice | NumFormat  }}</div>
                                                     </template>
                                                 </template>
                                                 <template v-else>
                                                     <template v-if="pros.product.productCategory == 1">
-                                                        <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                        <span class="listTag right-box"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                        <div class="price_text_tag ">
+                                                            <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                        </div>
+                                                       <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                     </template>
                                                     <template v-else>
-                                                            <em class="price_grade">¥登录可见</em>
+                                                            <em class="price_grade sec">¥登录可见</em>
                                                     </template>
                                                 </template>
                                              </div>
@@ -280,23 +295,28 @@
                                                                 <div class="main_price_unde">¥会员可见</div>
                                                             </template>
                                                             <template v-else>
-                                                                <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                                <span class="listTag right-box" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                                <div class="price_text_tag">
+                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                </div>
+                                                                <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                             </template>
                                                         </template>
                                                     </template>
                                                     <template v-else>
+                                                          <div class="price_text_tag"></div>
                                                           <div class="main_price_show" v-if="pros.product.detailTalkFlag == '2'">¥价格详聊</div>
                                                           <div class="main_price_show" v-else>¥{{ pros.product.retailPrice | NumFormat  }}</div>
                                                     </template>
                                                 </template>
                                                 <template v-else>
                                                     <template v-if="pros.product.productCategory == 1">
-                                                        <em>¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                        <span class="listTag right-box"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                        <div class="price_text_tag ">
+                                                            <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                        </div>
+                                                        <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                     </template>
                                                     <template v-else>
-                                                            <em class="price_grade">¥登录可见</em>
+                                                            <em class="price_grade sec">¥登录可见</em>
                                                     </template>
                                                 </template>
                                              </div>
@@ -344,23 +364,28 @@
                                                                 <div class="main_price_unde">¥会员可见</div>
                                                             </template>
                                                             <template v-else>
-                                                                <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                                <span class="listTag right-box" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                                <div class="price_text_tag">
+                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                </div>
+                                                                <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                             </template>
                                                         </template>
                                                     </template>
                                                     <template v-else>
+                                                          <div class="price_text_tag"></div>
                                                           <div class="main_price_show" v-if="pros.product.detailTalkFlag == '2'">¥价格详聊</div>
                                                           <div class="main_price_show" v-else>¥{{ pros.product.retailPrice | NumFormat  }}</div>
                                                     </template>
                                                 </template>
                                                 <template v-else>
                                                     <template v-if="pros.product.productCategory == 1">
-                                                        <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                        <span class="listTag right-box"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                        <div class="price_text_tag">
+                                                            <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                        </div>
+                                                       <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                     </template>
                                                     <template v-else>
-                                                            <em class="price_grade">¥登录可见</em>
+                                                            <em class="price_grade sec">¥登录可见</em>
                                                     </template>
                                                 </template>
                                              </div>
@@ -407,23 +432,28 @@
                                                                 <div class="main_price_unde">¥会员可见</div>
                                                             </template>
                                                             <template v-else>
-                                                                <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                                <span class="listTag right-box" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                                <div class="price_text_tag">
+                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                </div>
+                                                               <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                             </template>
                                                         </template>
                                                     </template>
                                                     <template v-else>
+                                                          <div class="price_text_tag"></div>
                                                           <div class="main_price_show" v-if="pros.product.detailTalkFlag == '2'">¥价格详聊</div>
                                                           <div class="main_price_show" v-else>¥{{ pros.product.retailPrice | NumFormat  }}</div>
                                                     </template>
                                                 </template>
                                                 <template v-else>
                                                     <template v-if="pros.product.productCategory == 1">
-                                                        <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                        <span class="listTag right-box"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                        <div class="price_text_tag">
+                                                            <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                        </div>
+                                                        <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                     </template>
                                                     <template v-else>
-                                                            <em class="price_grade">¥登录可见</em>
+                                                            <em class="price_grade sec">¥登录可见</em>
                                                     </template>
                                                 </template>
                                              </div>
@@ -471,23 +501,28 @@
                                                                 <div class="main_price_unde">¥会员可见</div>
                                                             </template>
                                                             <template v-else>
-                                                                <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                                <span class="listTag right-box" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                                <div class="price_text_tag">
+                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                </div>
+                                                               <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                             </template>
                                                         </template>
                                                     </template>
                                                     <template v-else>
+                                                          <div class="price_text_tag"></div>
                                                           <div class="main_price_show" v-if="pros.product.detailTalkFlag == '2'">¥价格详聊</div>
                                                           <div class="main_price_show" v-else>¥{{ pros.product.retailPrice | NumFormat  }}</div>
                                                     </template>
                                                 </template>
                                                 <template v-else>
                                                     <template v-if="pros.product.productCategory == 1">
-                                                        <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                        <span class="listTag right-box"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                        <div class="price_text_tag">
+                                                            <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                        </div>
+                                                        <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                     </template>
                                                     <template v-else>
-                                                            <em class="price_grade">¥登录可见</em>
+                                                            <em class="price_grade sec">¥登录可见</em>
                                                     </template>
                                                 </template>
                                              </div>
@@ -534,23 +569,28 @@
                                                                 <div class="main_price_unde">¥会员可见</div>
                                                             </template>
                                                             <template v-else>
-                                                                <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                                <span class="listTag right-box" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                                <div class="price_text_tag">
+                                                                    <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                                </div>
+                                                                <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                             </template>
                                                         </template>
                                                     </template>
                                                     <template v-else>
+                                                          <div class="price_text_tag"></div>
                                                           <div class="main_price_show" v-if="pros.product.detailTalkFlag == '2'">¥价格详聊</div>
                                                           <div class="main_price_show" v-else>¥{{ pros.product.retailPrice | NumFormat  }}</div>
                                                     </template>
                                                 </template>
                                                 <template v-else>
                                                     <template v-if="pros.product.productCategory == 1">
-                                                        <em class="bold">¥<i :class="'icon mIcon i'+pros.product.price1Grade"></i></em>
-                                                        <span class="listTag right-box"  v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</span>
+                                                        <div class="price_text_tag" >
+                                                            <p class="listTag" v-if="pros.product.actStatus==1">{{pros.product.promotions.name}}</p>
+                                                        </div>
+                                                        <div class=" price_grade"><span class="bold">¥</span><i :class="'icon mIcon i'+pros.product.price1Grade"></i></div>
                                                     </template>
                                                     <template v-else>
-                                                            <em class="price_grade">¥登录可见</em>
+                                                            <em class="price_grade sec">¥登录可见</em>
                                                     </template>
                                                 </template>
                                              </div>

+ 9 - 21
src/main/resources/templates/supplier-center/shop/goods.html

@@ -144,18 +144,11 @@
                                 </li>
                                 <li>
                                     <div class="good-handle">
-                                        <a class="btn " href="javascript: void(0);"
-                                           v-if="['0','1','2','3','8','9'].indexOf(product.validFlag)!=-1"
-                                           @click="editGoodFn(product)">编辑</a>
-                                            <a class="btn primary" href="javascript: void(0);"
-                                           v-if="['1','2'].indexOf(product.validFlag)!=-1"
-                                           @click="pageLinkDetils(product)">预览商品</a>
-                                           <a class="btn " href="javascript: void(0);"
-                                           v-if="['2'].indexOf(product.validFlag)!=-1" @click="ItemDownshelf(product)">下架</a>
-                                           <a class="btn danger" href="javascript: void(0);" v-if="product.isDelFeatured"
-                                           @click="DeletePushHotFn(product)">删除主页推荐</a>
-                                           <a class="btn success" href="javascript: void(0);" v-if="product.isAddFeatured"
-                                           @click="AddPushHotFn(product)">添加主页推荐</a>
+                                        <a class="btn " href="javascript: void(0);" v-if="['0','1','2','3','8','9'].indexOf(product.validFlag)!=-1" @click="editGoodFn(product)">编辑</a>
+                                        <a class="btn primary" href="javascript: void(0);" v-if="['2'].indexOf(product.validFlag)!=-1" @click="pageLinkDetils(product)">预览商品</a>
+                                        <a class="btn " href="javascript: void(0);" v-if="['2'].indexOf(product.validFlag)!=-1" @click="ItemDownshelf(product)">下架</a>
+                                        <a class="btn danger" href="javascript: void(0);" v-if="product.isDelFeatured" @click="DeletePushHotFn(product)">删除主页推荐</a>
+                                        <a class="btn success" href="javascript: void(0);" v-if="product.isAddFeatured" @click="AddPushHotFn(product)">添加主页推荐</a>
                                     </div>
                                 </li>
                             </ul>
@@ -222,15 +215,10 @@
                                     </div>
                                 </div>
                                 <div class="good-handle">
-                                        <a class="btn down" href="javascript: void(0);"
-                                           v-if="['2'].indexOf(product.validFlag)!=-1" @click="ItemDownshelf(product)">下架</a>
-                                        <a class="btn success" href="javascript: void(0);" v-if="product.isAddFeatured"
-                                           @click="AddPushHotFn(product)">添加主页推荐</a>
-                                        <a class="btn danger" href="javascript: void(0);" v-if="product.isDelFeatured"
-                                           @click="DeletePushHotFn(product)">删除主页推荐</a>
-                                        <a class="btn primary" href="javascript: void(0);"
-                                           v-if="['1','2'].indexOf(product.validFlag)!=-1"
-                                           @click="pageLinkDetils(product)">预览商品</a>
+                                        <a class="btn down" href="javascript: void(0);" v-if="['2'].indexOf(product.validFlag)!=-1" @click="ItemDownshelf(product)">下架</a>
+                                        <a class="btn success" href="javascript: void(0);" v-if="product.isAddFeatured" @click="AddPushHotFn(product)">添加主页推荐</a>
+                                        <a class="btn danger" href="javascript: void(0);" v-if="product.isDelFeatured" @click="DeletePushHotFn(product)">删除主页推荐</a>
+                                        <a class="btn primary" href="javascript: void(0);" v-if="['1','2'].indexOf(product.validFlag)!=-1" @click="pageLinkDetils(product)">预览商品</a>
                                     </div>
                             </div>
                           </div>

+ 8 - 3
src/main/resources/templates/supplier-center/shop/preview.html

@@ -35,9 +35,14 @@
                 <div class="preview-info-title">
                     <p class="info-p classly">
                         <span>所属分类:</span>
-                        <span>{{shopInfo.firstClassifyName}}</span> >
-                        <span v-if="shopInfo.threeClassifyName!=''">{{shopInfo.twoClassifyName}}</span> >
-                        <span v-else>{{shopInfo.twoClassifyName}}</span>
+                        <template>
+                            <span v-if="shopInfo.twoClassifyName!=''">{{shopInfo.firstClassifyName}}</span> >
+                            <span v-else>{{shopInfo.firstClassifyName}}</span>
+                        </template>
+                        <template>
+                            <span v-if="shopInfo.threeClassifyName!=''">{{shopInfo.twoClassifyName}}</span> >
+                            <span v-else>{{shopInfo.twoClassifyName}}</span>
+                        </template>
                         <span>{{shopInfo.threeClassifyName}}</span>
                     </p>
                     <p class="info-p name">{{shopInfo.aliasName}}</p>

BIN
target/www-0.0.1-SNAPSHOT.jar