Selaa lähdekoodia

供应商上架费弹窗控制

zhengjinyi 2 vuotta sitten
vanhempi
commit
ee89f6a6fc

+ 3 - 1
src/main/resources/static/js/supplier-center/dashboard.js

@@ -28,6 +28,9 @@
                      _this.userInfo = res.data.user;
                      _this.promotions = res.data.promotions;
                      _this.rankingList = res.data.salesRankingList;
+                     if(res.data.constraint === '1'){
+                         CAIMEI.Alert('您的供应商账号上架费将于30日后到期,到期后将无法发布和编辑商品,同时也会影响到其他采美提供的支持服务。请联系采美工作人员进行续费,联系电话0755-22907771 或15338851365', '确定', false);
+                     }
                      if (res.data.unReadMessageCount>99){
                          res.data.unReadMessageCount = '99+';
                          _this.msgFlag = true
@@ -193,7 +196,6 @@
         var _this = this;
         if(globalUserData) {
             _this.userId = globalUserData.userId;
-            CAIMEI.Alert('您的供应商账号上架费将于30日后到期,到期后将无法发布和编辑商品,同时也会影响到其他采美提供的支持服务。请联系采美工作人员进行续费,联系电话0755-22907771 或15338851365', '确定', false);
             this.dashboardDataInfo();
         };
     }

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

@@ -35,7 +35,7 @@ var myGoods = new Vue({
         isCheckedAll:false,
         noMore:false,
         check:false,
-        isForbid:true
+        isForbid:false
     },
     filters: {
         newvalidFlagFilters: function(value) {
@@ -94,6 +94,7 @@ var myGoods = new Vue({
                 if(response.code == 0){
                     _this.isRequest = true;
                     _this.featuredNum = response.data.featuredNum;
+                    _this.forbid = response.data.listingFee === 1 ? true : false
                     var data = response.data.productPage;
                     if(data.results && data.results.length>0){
                         _this.productsList = data.results;