lishanshan 1 месяц назад
Родитель
Сommit
c7a93d4c8b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      pages/product/creatProduct.vue

+ 2 - 2
pages/product/creatProduct.vue

@@ -48,14 +48,14 @@
 						商品封面图<span>*</span>
 					</view>
 					<view class="tips">
-						支持jpg、png格式
+						支持jpg、png格式,大小在2M以内
 					</view>
 					<view v-if="tabIndex==1">
 						<image v-for="(val,index) in fmImageList" :key="index" :src="val.url" mode=""
 							style="width: 140rpx;height:140rpx;border-radius: 4px; border: 1px solid #ebecee;margin-right:20rpx;margin-bottom:10rpx">
 						</image>
 					</view>
-					<u-upload v-else ref="uUpload" :action="action" :file-list="fmImageList" @on-success="handleSuccess"
+					<u-upload v-else ref="uUpload" :action="action" :file-list="fmImageList" :max-size="2 * 1024 * 1024" @on-success="handleSuccess"
 						@on-remove=" handleRemove" max-count="1" width="140rpx" height="140rpx"></u-upload>
 				</view>
 				<view class="item upload">