Compare commits
15 Commits
main
...
f2463da8cc
| Author | SHA1 | Date | |
|---|---|---|---|
| f2463da8cc | |||
| 6b8027f449 | |||
|
|
8c3fea8a24 | ||
|
|
819093db8c | ||
|
|
7dcfc3e705 | ||
|
|
7bb8b227b4 | ||
|
|
3d2fddbe7b | ||
|
|
9662610b1b | ||
|
|
56f958173b | ||
|
|
0e57e4de46 | ||
|
|
b0e365dcde | ||
|
|
5497f4fdbc | ||
|
|
3d6b622eef | ||
|
|
38ac7da504 | ||
|
|
1c895710d8 |
@@ -30,7 +30,7 @@
|
||||
:outputSize="option.size"
|
||||
:outputType="option.outputType"
|
||||
:auto-crop="option.autoCrop"
|
||||
:fixedBox="isRound"
|
||||
:fixedBox="!isRound"
|
||||
:movable="true"
|
||||
:fixed="isRound"
|
||||
:auto-crop-width="option.autoCropWidth"
|
||||
@@ -333,7 +333,6 @@ export default defineComponent({
|
||||
.cut_picture_review_block{
|
||||
width: 100%;
|
||||
height: calc(100% - 6.8rem*1.2);
|
||||
min-height: calc(100% - 6.8rem*1.2);
|
||||
margin: 0 auto;
|
||||
.next_step_button{
|
||||
margin-top: 2rem;
|
||||
|
||||
@@ -711,9 +711,10 @@ export default defineComponent({
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%,-50%);
|
||||
// float: left;
|
||||
// user-select:none;
|
||||
// -webkit-user-drag: none;
|
||||
float: left;
|
||||
object-fit: contain;
|
||||
user-select:none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
}
|
||||
.wh1{
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
</div>
|
||||
<!-- 取消请求 -->
|
||||
<scaleImage ref="scaleImage"></scaleImage>
|
||||
<Cropper ref="Cropper" @handleCropperSuccess="handleCropperSuccess" @closeCropper="deletUploadFile()" :cropperFileData="cropperFileData" :isRound="false" :isUpload="isUpload"></Cropper>
|
||||
<Cropper ref="Cropper" @handleCropperSuccess="handleCropperSuccess" @closeCropper="deletUploadFile()" :cropperFileData="cropperFileData" :isUpload="isUpload"></Cropper>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
<textarea
|
||||
ref="textareaRef"
|
||||
class="textarea"
|
||||
:placeholder="$t('Generate.inputContent1')"
|
||||
:placeholder="inputPlaceholder"
|
||||
@input="ifMaximumLength"
|
||||
@keydown.enter.prevent="getPrductimg()"
|
||||
v-model="productimgSearchName"
|
||||
@@ -379,7 +379,10 @@
|
||||
<div class="mark_loading" v-show="loadingShow">
|
||||
<a-spin size="large" />
|
||||
</div>
|
||||
<Prompt v-model:showModal="showPromptAssist" isDesignPage />
|
||||
<template>
|
||||
<Prompt v-if="scaleImageList[scaleImageIndex]?.resultType === 'ToProductImage'" v-model:showModal="showPromptAssist" isDesignPage />
|
||||
<PromptEditProduct v-if="scaleImageList[scaleImageIndex]?.resultType === 'Relight'" v-model:showModal="showPromptAssist" />
|
||||
</template>
|
||||
<Product
|
||||
v-model:showModal="showProductList"
|
||||
:frameList="fullProductImages"
|
||||
@@ -411,13 +414,14 @@ import { useStore } from 'vuex'
|
||||
import Prompt from '@/component/home/tools/toProduct/Prompt.vue'
|
||||
import promptInput from '@/component/home/tools/poseTransfer/promptInput.vue'
|
||||
import Product from '@/component/home/tools/poseTransfer/Product.vue'
|
||||
import PromptEditProduct from '@/component/home/tools/toProduct/PromptEditProduct.vue'
|
||||
import {
|
||||
getFirstFrame,
|
||||
getFirstAndLastFrame
|
||||
} from '@/component/home/tools/poseTransfer/prompt'
|
||||
|
||||
export default defineComponent({
|
||||
components: { Prompt, promptInput, Product },
|
||||
components: { Prompt, promptInput, Product, PromptEditProduct },
|
||||
props: {
|
||||
productData: {
|
||||
type: Object,
|
||||
@@ -1288,6 +1292,15 @@ export default defineComponent({
|
||||
'PoseTransfer'
|
||||
)
|
||||
})
|
||||
const inputPlaceholder = computed(() => {
|
||||
if (
|
||||
productimg.scaleImageList[productimg.scaleImageIndex]?.resultType === 'Relight'
|
||||
) {
|
||||
return t('ProductImg.relightInput')
|
||||
} else {
|
||||
return t('ProductImg.productInput')
|
||||
}
|
||||
})
|
||||
|
||||
const showCompare = computed(() => {
|
||||
// isComparison.value
|
||||
@@ -1360,7 +1373,8 @@ export default defineComponent({
|
||||
setNewVideoRef,
|
||||
handlePlayNewVideo,
|
||||
isNewVideoPlaying,
|
||||
showDropdown
|
||||
showDropdown,
|
||||
inputPlaceholder
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
@@ -388,9 +388,10 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@media (max-width: 768px) {
|
||||
justify-content: flex-start;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
.gallery_list_box{
|
||||
|
||||
@@ -561,7 +561,7 @@ export default defineComponent({
|
||||
const getIdExistToHistory = async () => {
|
||||
return await new Promise((resolve, reject) => {
|
||||
let value = {
|
||||
id: Number(route.params?.id || route.query?.history)
|
||||
id: Number(route.query?.id || route.query?.history)
|
||||
}
|
||||
Https.axiosPost(Https.httpUrls.historyProject, value)
|
||||
.then(rv => {
|
||||
@@ -582,9 +582,9 @@ export default defineComponent({
|
||||
}
|
||||
const key = Object.keys(query)?.[0]
|
||||
if (key) {
|
||||
if (route.params?.id && !query.tools) {
|
||||
if (query.id && !query.tools) {
|
||||
homeMainData.openType = 'history'
|
||||
homeMainData.openTypeChild = route.params?.id
|
||||
homeMainData.openTypeChild = query.id
|
||||
} else {
|
||||
homeMainData.openType = Object.keys(query)[0]
|
||||
homeMainData.openTypeChild = query[Object.keys(query)[0]]
|
||||
@@ -593,6 +593,10 @@ export default defineComponent({
|
||||
homeMainData.openTypeChild = ''
|
||||
homeMainData.openType = ''
|
||||
}
|
||||
if ((query?.id || query?.history) && !(await getIdExistToHistory())) {
|
||||
router.push('/home')
|
||||
return
|
||||
}
|
||||
} else {
|
||||
homeMainData.openType = ''
|
||||
homeMainData.openTypeChild = ''
|
||||
@@ -912,12 +916,12 @@ export default defineComponent({
|
||||
rv.content.forEach((item, index) => {
|
||||
let str = categorizeDate(item.updateTime) + 'list'
|
||||
homeMainData.navTypeList.history[str].push(item)
|
||||
if (item.id == (route.params?.id || route.query?.history)) {
|
||||
if (item.id == (route.query?.id || route.query?.history)) {
|
||||
existToHistoryIndex = rv.page * rv.size + index + 1 - rv.size
|
||||
}
|
||||
})
|
||||
homeMainData.historyData.isNull = false
|
||||
if ((route.params?.id || route.query?.history) && isFound < 1) setScrollTop()
|
||||
if ((route.query?.id || route.query?.history) && isFound < 1) setScrollTop()
|
||||
} else {
|
||||
homeMainData.historyData.isNoData = true
|
||||
}
|
||||
|
||||
@@ -788,7 +788,7 @@ export default defineComponent({
|
||||
padding: 0 1rem;
|
||||
|
||||
.operate_item {
|
||||
// font-size: 1.4rem;
|
||||
font-size: 1.6rem;
|
||||
font-family: Roboto;
|
||||
font-weight: 400;
|
||||
color: #007ee5;
|
||||
|
||||
Reference in New Issue
Block a user