This commit is contained in:
X1627315083
2024-06-18 10:45:15 +08:00
parent 0dc1ffdf89
commit 814dd1205c
13 changed files with 803 additions and 11 deletions

View File

@@ -391,6 +391,7 @@ export default defineComponent({
this.printModel = value
},
getgenerate(){
this.isTextarea = false
if(this.isGenerate)return
clearInterval(this.remGenerateTime)
if(this.searchPictureName){

View File

@@ -703,6 +703,7 @@ export default defineComponent({
.modal_imgItem{
position: relative;
overflow: hidden;
text-align: center;
img{
position: absolute;
top: 50%;

View File

@@ -918,6 +918,7 @@ export default defineComponent({
border: 1px solid #f5f5f5;
position: relative;
cursor: pointer;
text-align: center;
img{
object-fit: cover;
height: 100%;

View File

@@ -794,6 +794,7 @@ export default defineComponent({
border: 1px solid #f5f5f5;
position: relative;
cursor: pointer;
text-align: center;
&:hover .delete_like_file_block{
display: block;
opacity: 1;

View File

@@ -107,7 +107,7 @@ export default defineComponent({
let canvasWH = ref(0);
let textData = reactive({
fill:'#000000',
fontSize:'20',
fontSize:'35',
fontFamily:'Arial',
textAlign:'left',
overline: false,

View File

@@ -209,6 +209,9 @@ export default defineComponent({
}
Https.axiosPost(Https.httpUrls.productImageLikeList, data).then(
(rv) => {
rv.forEach((item:any) => {
item.imgUrl = item.url
});
productImgData.likeList.push(...rv)
}
).catch(res=>{

View File

@@ -297,8 +297,13 @@ export default defineComponent({
imgData.loadingShow = false
imgData.scaleImageData = rv
let canvasUrl = [rv.canvasUrl]
var findUrl = rv.designPythonOutfitList.map((obj:any) => obj.designUrl);
var findUrl = []
if(rv.designPythonOutfitList){
findUrl = rv.designPythonOutfitList.map((obj:any) => obj.designUrl);
}
imgData.scaleImageList = canvasUrl.concat(findUrl);
console.log(imgData.scaleImageList);
imgData.scaleImageIndex = 0
imgData.getCommentData.portfolioId = rv.id
if(str == 'zan'){
@@ -319,7 +324,10 @@ export default defineComponent({
if(imgData.scaleImageData.openSource == 0){
return message.info('作者不允许二次创作哦')
}
router.push({name:'homePage',params: {id:imgData.scaleImageData.userLikeGroupSourceId,type:'Works'}})
console.log(imgData.scaleImageData);
router.push({name:'homePage',params: {id:imgData.scaleImageData.id,type:'Works'}})
// router.push({name:'homePage',params: {id:imgData.scaleImageData.userLikeGroupSourceId,type:'Works'}})
}
let setCommentReply = (value:any,str:any)=>{
imgData.commentReply.leve1Id = value.id