Compare commits
No commits in common. "b6c8c07cf0e04bd1431500ed5354d258cb884de9" and "2504148dab42781ba6b8623546e1bfbe69638618" have entirely different histories.
b6c8c07cf0
...
2504148dab
|
@ -31,7 +31,7 @@
|
|||
class="image"
|
||||
v-for="(v, i) in dataInfo.pictures"
|
||||
:key="i"
|
||||
:src="v.path"
|
||||
:src="BASE_URL + '/uploads/' + v.path"
|
||||
@click="previewImage(i)"
|
||||
></image>
|
||||
</view>
|
||||
|
@ -71,7 +71,9 @@ export default {
|
|||
// 预览图片
|
||||
previewImage(index) {
|
||||
uni.previewImage({
|
||||
urls: this.dataInfo.pictures.map((v) => v.path),
|
||||
urls: this.dataInfo.pictures.map(
|
||||
(v) => BASE_URL + "/uploads/" + v.path
|
||||
),
|
||||
current: index,
|
||||
});
|
||||
},
|
||||
|
|
|
@ -236,13 +236,28 @@ export default {
|
|||
// if (!res.succeed) return;
|
||||
// params.picturesDto = res.data;
|
||||
|
||||
params.picturesDto = this.imageList.map((item) => {
|
||||
return {
|
||||
path: item,
|
||||
};
|
||||
});
|
||||
|
||||
// params.picturesDto = this.imageList;
|
||||
params.picturesDto = this.imageList.map((item) => {
|
||||
return {
|
||||
path: item,
|
||||
};
|
||||
});
|
||||
// uni.showModal({
|
||||
// title: "查看imageList",
|
||||
// content: (JSON.stringify(params)),
|
||||
// showCancel: true,
|
||||
// success: function (res) {},
|
||||
// });
|
||||
// return
|
||||
const res2 = await UploadArea(params);
|
||||
uni.showModal({
|
||||
title: "查看imageList",
|
||||
content: (JSON.stringify(res2)),
|
||||
showCancel: true,
|
||||
success: function (res) {},
|
||||
});
|
||||
// return
|
||||
if (res2.succeed) {
|
||||
// 成功的处理
|
||||
uni.showToast({ title: "上传成功", icon: "success", duration: 1500 });
|
||||
|
|
Loading…
Reference in New Issue