zhengjinyi 7 ヶ月 前
コミット
1c441a6266
1 ファイル変更10 行追加8 行削除
  1. 10 8
      src/main/resources/static/js/flea-market/form.js

+ 10 - 8
src/main/resources/static/js/flea-market/form.js

@@ -372,14 +372,16 @@ var fleaMarketForm = new Vue({
                     },3000);
                     return
              }
-            if(_this.GoodsImagesList ===''){
-                _this.vShow_GoodsImages = true;
-                _this.fromMessage = '请上传图片';
-                _this.scrollIntoView('vShow_Address');
-                setTimeout(function(){
-                    _this.vShow_GoodsImages = false;
-                },3000);
-                return;
+            if(_this.secondParams.buyFlag === 1){
+                 if(_this.GoodsImagesList ===''){
+                     _this.vShow_GoodsImages = true;
+                     _this.fromMessage = '请上传图片';
+                     _this.scrollIntoView('vShow_Address');
+                     setTimeout(function(){
+                         _this.vShow_GoodsImages = false;
+                     },3000);
+                     return;
+                 }
             }
             if(!_this.checkbox){
                 _this.vShow_checkBox = true;