Browse Source

图片上传一张

chenrui 10 months ago
parent
commit
d68be7cad4

+ 1 - 1
src/views/promotionRulesManagement/promotionManagement/detailModal.vue

@@ -32,7 +32,7 @@
               v-for="(con,i) in imageSet"
               v-for="(con,i) in imageSet"
               style="margin-right:10px;object-fit: cover;"
               style="margin-right:10px;object-fit: cover;"
               :key="i"/>
               :key="i"/>
-            <div class="upload-desc">说明:单张大小小于10Mb,最多10张;建议尺寸:宽(420px)*高(230px)</div>
+            <div class="upload-desc">说明:单张大小小于10Mb;建议尺寸:宽(420px)*高(230px)</div>
           </a-form-model-item>
           </a-form-model-item>
           <a-form-model-item label="内容类型" prop="contentType">
           <a-form-model-item label="内容类型" prop="contentType">
             {{ form.contentType==='IMAGE_CONTENT'?'图文展示':form.contentType==='VIDEO'?'视频展示':'跳转链接' }}
             {{ form.contentType==='IMAGE_CONTENT'?'图文展示':form.contentType==='VIDEO'?'视频展示':'跳转链接' }}

+ 2 - 2
src/views/promotionRulesManagement/promotionManagement/edit.vue

@@ -52,7 +52,7 @@
                   v-model="form.imageSet"
                   v-model="form.imageSet"
                   ref="imageSet"
                   ref="imageSet"
                   :fileSize="10"
                   :fileSize="10"
-                  :maxNums="10"
+                  :maxNums="1"
                   @change="changeImage"
                   @change="changeImage"
                   listType="picture-card"></Upload>
                   listType="picture-card"></Upload>
                 <div v-else>
                 <div v-else>
@@ -65,7 +65,7 @@
                     style="margin-right:10px;object-fit: cover;"
                     style="margin-right:10px;object-fit: cover;"
                     :key="i" />
                     :key="i" />
                 </div>
                 </div>
-                <span class="upload-desc">说明:单张大小小于10Mb,最多10张;建议尺寸:宽(420px)*高(230px)</span>
+                <span class="upload-desc">说明:单张大小小于10Mb;建议尺寸:宽(420px)*高(230px)</span>
               </a-form-model-item>
               </a-form-model-item>
             </a-col>
             </a-col>
             <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
             <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">