新增导出模特图
This commit is contained in:
@@ -204,7 +204,6 @@ function removeDiv(element){
|
|||||||
|
|
||||||
const openGuide = () =>{
|
const openGuide = () =>{
|
||||||
let isBeginner = JSON.parse(getCookie('isBeginner'))
|
let isBeginner = JSON.parse(getCookie('isBeginner'))
|
||||||
console.log(isBeginner);
|
|
||||||
// console.log(isBeginner);
|
// console.log(isBeginner);
|
||||||
let isBeginnerNum = JSON.parse(getCookie('isBeginnerNum')?getCookie('isBeginnerNum'):'0')
|
let isBeginnerNum = JSON.parse(getCookie('isBeginnerNum')?getCookie('isBeginnerNum'):'0')
|
||||||
let data
|
let data
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ export const Https = {
|
|||||||
reDesignCollection:`/api/design/reDesignCollection`,//重新设计 Conllection
|
reDesignCollection:`/api/design/reDesignCollection`,//重新设计 Conllection
|
||||||
countDesignProcess:'/api/design/countDesignProcess', //统计design进度
|
countDesignProcess:'/api/design/countDesignProcess', //统计design进度
|
||||||
designProcess:`/api/design/designProcess`, //统计design进度
|
designProcess:`/api/design/designProcess`, //统计design进度
|
||||||
|
designGetModel:`/api/design/getModel`, //导出获取模特链接
|
||||||
|
|
||||||
getRgbByHsvBatch:`/api/element/getRgbByHsvBatch`, //通过hsv值数组批量获取潘通信息
|
getRgbByHsvBatch:`/api/element/getRgbByHsvBatch`, //通过hsv值数组批量获取潘通信息
|
||||||
designLike:`/api/design/like`, //Design Like
|
designLike:`/api/design/like`, //Design Like
|
||||||
|
|||||||
@@ -912,7 +912,7 @@ export default defineComponent({
|
|||||||
// this.isShowMark = true;
|
// this.isShowMark = true;
|
||||||
let img:any = []
|
let img:any = []
|
||||||
await html2canvas(collectionReview, { useCORS: true, scale: 3 }).then(
|
await html2canvas(collectionReview, { useCORS: true, scale: 3 }).then(
|
||||||
(canvas) => {
|
async (canvas) => {
|
||||||
let blob: any = dataURLtoBlob(
|
let blob: any = dataURLtoBlob(
|
||||||
canvas.toDataURL("image/png")
|
canvas.toDataURL("image/png")
|
||||||
);
|
);
|
||||||
@@ -963,15 +963,17 @@ export default defineComponent({
|
|||||||
index++;
|
index++;
|
||||||
})
|
})
|
||||||
let mannequinList:any = []
|
let mannequinList:any = []
|
||||||
// Https.axiosPost(Https.httpUrls.designLike, dataList)
|
await Https.axiosPost(Https.httpUrls.designGetModel, dataList)
|
||||||
// .then((rv: any) => {
|
.then((rv: any) => {
|
||||||
// })
|
mannequinList = rv
|
||||||
// .catch((rv) => {
|
})
|
||||||
// });
|
.catch((rv) => {
|
||||||
|
});
|
||||||
|
|
||||||
mannequinList.forEach((item:any) => {
|
mannequinList.forEach((item:any) => {
|
||||||
let nameTail = item?.imgUrl?.split(".").pop().split("?").shift();
|
let nameTail = item?.split(".").pop().split("?").shift();
|
||||||
let data = {
|
let data = {
|
||||||
imgUrl: item.imgUrl,
|
imgUrl: item,
|
||||||
name:
|
name:
|
||||||
'mannequin' +
|
'mannequin' +
|
||||||
index +
|
index +
|
||||||
@@ -981,10 +983,6 @@ export default defineComponent({
|
|||||||
img.push(data);
|
img.push(data);
|
||||||
index++;
|
index++;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// a.setAttribute('href', URL.createObjectURL(blob));
|
// a.setAttribute('href', URL.createObjectURL(blob));
|
||||||
// a.setAttribute('download', `collection.png`);
|
// a.setAttribute('download', `collection.png`);
|
||||||
// a.click();
|
// a.click();
|
||||||
@@ -1012,6 +1010,7 @@ export default defineComponent({
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// );
|
// );
|
||||||
|
// return
|
||||||
this.downImg(img);
|
this.downImg(img);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user