浏览代码

上架费

zhengjinyi 3 年之前
父节点
当前提交
4c00e14a5d

+ 2 - 2
src/main/resources/config/dev/application-dev.yml

@@ -54,8 +54,8 @@ logging:
 caimei:
   siteEnv: 0 #网站环境,(2:正式环境,1:测试环境,0:开发环境)
   #spiServer: http://192.168.2.68:8008
-#  coreServer: https://core-b.caimei365.com
-  coreServer: http://192.168.2.67:18002
+  coreServer: https://core-b.caimei365.com
+#  coreServer: http://192.168.2.67:18002
 #  coreServer: http://192.168.2.75:18002
   imageDomain: https://img-b.caimei365.com
   wwwDomain: http://localhost:8009

+ 2 - 1
src/main/resources/static/css/supplier-center/shop/goods.css

@@ -40,7 +40,8 @@ li{list-style: none}
     .goods-main  .tbody .good-name{margin-left: 8px;vertical-align: middle;word-break: break-all;overflow: hidden;text-overflow: ellipsis;display: -webkit-inline-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;width: 90px;}
     .goods-main  .tbody .good-handle{text-align: left;padding: 0 7px;line-height: 35px;position: absolute;width: 180px;top: 0;left: 30px;right: 0;bottom: 0;margin: auto;height: fit-content}
     .goods-main  .tbody .btn{padding: 0 11px;margin-right: 8px;height: 24px;background-color: #ffe6dc;border-radius: 2px;border: solid 1px #e15616;display: inline-block;line-height: 24px;color: #e15616;}
-    .goods-container .good-footer{width: 95%;height: 56px;float: left;padding: 20px}
+     .goods-main  .tbody .btn.none{background-color: #E1E1E1;border: 1px solid #FFFFFF;color: #FFFFFF;}
+     .goods-container .good-footer{width: 95%;height: 56px;float: left;padding: 20px}
     .goods-container .good-footer .footer-left{float: left;}
     .goods-container .good-footer .checkbox {line-height: 70px;}
     .goods-container .good-footer .checkbox .box{line-height: 74px;float: left;}

+ 9 - 2
src/main/resources/static/js/supplier-center/shop/goods.js

@@ -267,6 +267,7 @@ var myGoods = new Vue({
         },
         ItemDownshelf: function(pros){//下架商品
             var _this = this;
+            if(this.isForbid){ return }
             CAIMEI.Modal('确定下架该商品吗?','取消','确定',function () {
                  SupplierApi.SupplierSoldOut({productIds:pros.productId},function (response) {
                     if (response.code == 0){
@@ -282,6 +283,7 @@ var myGoods = new Vue({
         AddPushHotFn: function(pros){//添加主页推荐
             var _this = this;
             var num = 4-this.featuredNum;
+            if(this.isForbid){ return }
             CAIMEI.Modal('总共能添加4个主推商品,您还能添加'+num+'个确定将该商品添加为主推商品吗?','取消','确定',function () {
                  SupplierApi.SwitchFeatured({productId:pros.productId,featuredFlag:1,shopId:_this.shopId},function (response) {
                     if (response.code == 0){
@@ -296,7 +298,8 @@ var myGoods = new Vue({
         },
         DeletePushHotFn: function(pros){//删除主页推荐
             var _this = this;
-             CAIMEI.Modal('是否把该商品从主推商品中删除?','取消','确定',function () {
+            if(this.isForbid){ return }
+            CAIMEI.Modal('是否把该商品从主推商品中删除?','取消','确定',function () {
                   SupplierApi.SwitchFeatured({productId:pros.productId,featuredFlag:0,shopId:_this.shopId},function (response) {
                     if (response.code == 0){
                         CAIMEI.dialog('删除成功~');
@@ -306,16 +309,19 @@ var myGoods = new Vue({
                          CAIMEI.Alert(response.msg,'确定');
                     }
                 })
-             })
+            })
         },
         pageLinkDetils: function(pros){//预览商品
+            if(this.isForbid){ return }
             window.open('/product-'+pros.productId+'.html');
         },
         editGoodFn: function(pros){//编辑商品
+            if(this.isForbid){ return }
             location.href ='/supplier/release.html?productId='+pros.productId+'&type=edit';
         },
         ischeck: function(pros){//为未选中的时候改变为true,反之为true
             var _this = this;
+            if(this.isForbid){ return }
             pros.isChecked = !pros.isChecked;
             if(pros.isChecked){
                   _this.checkList.push(pros);
@@ -350,6 +356,7 @@ var myGoods = new Vue({
         },
         checkedAll: function() {
             var _this = this;
+            if(this.isForbid){ return }
             _this.isCheckedAll = !_this.isCheckedAll;
             if(_this.isCheckedAll){
                 _this.isProductChecked = true

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

@@ -177,11 +177,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="[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="isForbid? 'none':''" class="btn " href="javascript: void(0);" v-if="[0,1,2,3,8,9].indexOf(product.validFlag)!=-1" @click="editGoodFn(product)">编辑</a>
+                                        <a :class="isForbid? 'none':''" class="btn primary" href="javascript: void(0);" v-if="[2].indexOf(product.validFlag)!=-1" @click="pageLinkDetils(product)">查看</a>
+                                        <a :class="isForbid? 'none':''" class="btn " href="javascript: void(0);" v-if="[2].indexOf(product.validFlag)!=-1" @click="ItemDownshelf(product)">下架</a>
+                                        <a :class="isForbid? 'none':''" class="btn danger" href="javascript: void(0);" v-if="product.isDelFeatured" @click="DeletePushHotFn(product)">删除主页推荐</a>
+                                        <a :class="isForbid? 'none':''" class="btn success" href="javascript: void(0);" v-if="product.isAddFeatured" @click="AddPushHotFn(product)">添加主页推荐</a>
                                     </div>
                                 </li>
                             </ul>