|
@@ -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({
|