This commit is contained in:
X1627315083
2025-07-24 20:15:39 +08:00
parent e203861586
commit 46b1c5cd71
22 changed files with 1002 additions and 284 deletions

View File

@@ -201,8 +201,8 @@ export default defineComponent({
}
.custom-tool-btn {
position: relative;
width: 36px;
height: 36px;
width: 3.6rem;
height: 3.6rem;
display: flex;
align-items: center;
justify-content: center;
@@ -210,7 +210,7 @@ export default defineComponent({
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
font-size: 1.6rem;
color: #333;
transition: all 0.2s ease;
i{
@@ -234,30 +234,30 @@ export default defineComponent({
}
.tool-tooltip {
display: none;
position: absolute;
left: 100%;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 4px 8px;
border-radius: 4px;
margin-left: 8px;
white-space: nowrap;
font-size: 12px;
z-index: 10;
display: none;
position: absolute;
left: 100%;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: .4rem .8rem;
border-radius: .4rem;
margin-left: .8rem;
white-space: nowrap;
font-size: 1.2rem;
z-index: 10;
}
.tool-tooltip:before {
content: "";
position: absolute;
top: 50%;
right: 100%;
margin-top: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent rgba(0, 0, 0, 0.7) transparent transparent;
content: "";
position: absolute;
top: 50%;
right: 100%;
margin-top: -.5rem;
border-width: .5rem;
border-style: solid;
border-color: transparent rgba(0, 0, 0, 0.7) transparent transparent;
}
}
</style>

View File

@@ -147,7 +147,7 @@ export default defineComponent({
default:'',
},
},
emits:[],
emit:['unLike'],
setup(props,{emit}) {
const {t} = useI18n()
const store = useStore();
@@ -474,6 +474,9 @@ export default defineComponent({
projectId:store.state.Workspace.probjects.id,
collectionSortParentId:props.isDesignPage?item.parentId:'',
}
if(props.isDesignPage){
emit('unLike',item)
}
}
Https.axiosPost(Https.httpUrls.poselikeOrDisike, {},{params:value}).then(
(rv) => {

View File

@@ -237,6 +237,7 @@ export default defineComponent({
default:false,
},
},
emit:['unLike'],
setup(props,{emit}) {
const store = useStore();
let userDetail:any= computed(()=>{
@@ -476,7 +477,6 @@ export default defineComponent({
})
}
let likeFile = (item:any,str:any,index:any) =>{
console.log(item)
let url
let data = {
toProductImageResultId:[item.id],
@@ -487,6 +487,9 @@ export default defineComponent({
url = Https.httpUrls.productImageLike
}else{
url = Https.httpUrls.productImageUnLike
if(props.isDesignPage){
emit('unLike',item)
}
}
Https.axiosPost(url, data).then(
(rv) => {