Browse Source

++临时保存

GGDemo 2 months ago
parent
commit
ffb160ea46
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pages/instock/index.vue

+ 3 - 1
pages/instock/index.vue

@@ -33,7 +33,6 @@
 							<view v-for="(img, index) in images" :key="index" class="image-container">
 								<image :src="img.path" class="preview-image" mode="aspectFill"
 									@click="openPreview(img.path)" />
-
 								<progress :percent="img.progress || 0" :activeColor="
                     Number(img.progress || 0) === 100 ? '#00ff00' : '#10AEFF'
                   " stroke-width="3" />
@@ -775,6 +774,7 @@
 				rawFile.name,
 			dir: signature.dir,
 			host: signature.host,
+			file: rawFile
 		};
 
 		const uploadTask = uni.uploadFile({
@@ -792,7 +792,9 @@
 		// 可选:监听上传进度变化
 		uploadTask.onProgressUpdate((progressEvent) => {
 			rawFile.progress = progressEvent.progress;
+			// images.value[index].progress = progressEvent.progress;
 		});
+		console.log('images.value+++', images.value);
 	};
 	const chooseImage = () => {
 		uni.chooseImage({