This commit is contained in:
wxd
2024-09-29 21:54:04 +08:00
parent 6566c6416c
commit 16d6416f73
7 changed files with 14 additions and 9 deletions

BIN
public/image/loading.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@@ -677,7 +677,7 @@ export default defineComponent({
if (key == "printboardFiles") {
imgWidth = canvasWH.value.width / 8;
}
if (key == "sketchboardFiles"||key == 'moodboardFiles') {
if (key == "sketchboardFiles"||key == 'moodboardFiles'||key == 'FinalizeImage') {
imgWidth =
(canvasWH.value.width -
(sketchGrouping - 1) * 20) /
@@ -781,6 +781,7 @@ export default defineComponent({
let num = 0;
for (let key in allBoardData.value) {
if (key !== "colorBoards" && key !== "moodTemplateId") {
if(!(allBoardData.value[key] instanceof Array)) continue
for (let item of allBoardData.value[key]) {
if (
key == "disposeMoodboard" &&

View File

@@ -104,6 +104,7 @@
<img v-if="isComparison" :src="scaleImageList[scaleImageIndex]?.sourceUrl">
<generalMiniCanvas v-if="isCanvas" :imgUrl="scaleImageList[scaleImageIndex]?.imgUrl" @submitBase64Data="submitBase64Data"></generalMiniCanvas>
<img v-else :src="scaleImageList[scaleImageIndex]?.imgUrl">
<div class="img_operate_block" v-if="isLike">
<i v-if="!scaleImageList[scaleImageIndex]?.like" class="fi fi-rr-heart operate_icon" @click.stop="LikeFile(scaleImageList[scaleImageIndex],'like')"></i>
<i v-else class="fi fi-sr-heart operate_icon" :adminLike="!!scaleImageList[scaleImageIndex]?.like" @click.stop="LikeFile(scaleImageList[scaleImageIndex],'noLike')"></i>
@@ -133,12 +134,11 @@
import { defineComponent, h, ref ,toRefs,createVNode,reactive, nextTick} from "vue";
import { Https } from "@/tool/https";
import { Modal } from "ant-design-vue";
// import domTurnImg from '@/tool/domTurnImg'
import { useStore } from "vuex";
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { downloadIamge } from "@/tool/util";
import { getCookie,setCookie } from "@/tool/cookie";
import { useI18n } from "vue-i18n";
import { useStore } from "vuex";
import generalMiniCanvas from "@/component/modules/generalMiniCanvas.vue";
export default defineComponent({
components:{generalMiniCanvas},
@@ -222,6 +222,7 @@ export default defineComponent({
Https.axiosPost(url, data).then(
(rv) => {
isShowMark.value = false
scaleImageList.value[scaleImageIndex.value].imgUrl = '/image/loading.gif'
let arr:any = []
rv.forEach((item:any)=>{
arr.push(item.taskId)
@@ -401,13 +402,14 @@ export default defineComponent({
document.removeEventListener('keydown',this.setKeydown)
},
lastStep(){
if(this.productimgIsProductimg) return
if(this.scaleImageIndex <= 0){
}else{
this.scaleImageIndex -= 1
}
},
nextStep(){
if(this.productimgIsProductimg) return
if(this.scaleImageIndex >= this.scaleImageList.length-1){
}else{
this.scaleImageIndex += 1
@@ -469,6 +471,7 @@ export default defineComponent({
img{
width: auto;
height: 100%;
max-width: 40rem;
}
&.active{
display: flex;

View File

@@ -62,8 +62,8 @@ export default defineComponent({
// let presentState = ref('paypal');
let liqufeaction = ref(false);
let liqufeactionData = reactive({
routes: 90,//移动框大小
density: 80,//移动大小
routes: 30,//移动框大小
density: 30,//移动大小
})
let arrows = ref({
show:false,

View File

@@ -344,7 +344,7 @@ export default {
SelectSuccessivelyOnTitle:'连续选色模式开启.',
SelectSuccessivelyOffTitle:'连续选色模式关闭.',
SelectSeparately:'单选',
ExtractColor:'提取颜色',
ExtractColor:'提取',
Single:'单色',
Gradual:'渐变',
Alignment:'线性',

View File

@@ -48,7 +48,7 @@ export default {
CanvasSize:'Canvas Size',
Height:'Height',
Width:'Width',
CanvasNav:'Canvas Nav',
CanvasNav:'Elements',
CanvasTool:'Canvas Tool',
Color:'Color',
Size:'Size',
@@ -522,7 +522,7 @@ export default {
},
works:{
all:'All',
FavoriteWorks:'Like The Works',
FavoriteWorks:'Like Works',
MyWorks:'My Works',
},
Publish:{

View File

@@ -40,6 +40,7 @@
"tests/**/*.tsx",
"src/**/*.js",
"src/**/*.svg",
"src/**/*.gif",
],
"exclude": [
"node_modules"