Compare commits

..

No commits in common. "b6c8c07cf0e04bd1431500ed5354d258cb884de9" and "2504148dab42781ba6b8623546e1bfbe69638618" have entirely different histories.

2 changed files with 24 additions and 7 deletions

View File

@ -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,
});
},

View File

@ -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 });