新增:相框手办标题
continuous-integration/drone/push Build was killed
continuous-integration/drone/promote/prod Build is passing

This commit is contained in:
Linzm committed 2026-02-03 14:57:52 +08:00
1 parent d109b1dfd9
commit 6b2f588ea5
5 files changed
+37 -4

No files matched your search

+3
View File
@@ -203,5 +203,8 @@ const en = {
"选择": "Select",
"镜像处理": "Mirror Processing",
"确认选择后视图": "Confirm Rear View Selection",
"相框标题": "Frame Title",
"请输入相框标题": "Please enter frame title",
"相框标题将用于生成图片,请输入简洁明了的相框标题": "The frame title will be used to generate images. Please enter a concise and clear frame title",
}
export default en
+3
View File
@@ -203,5 +203,8 @@ const ko = {
"选择": "선택",
"镜像处理": "미러 처리",
"确认选择后视图": "후면 뷰 선택 확인",
"相框标题": "프레임 제목",
"请输入相框标题": "프레임 제목을 입력하세요",
"相框标题将用于生成图片,请输入简洁明了的相框标题": "프레임 제목은 이미지 생성에 사용됩니다. 간단하고 명확한 프레임 제목을 입력하세요",
}
export default ko
+3
View File
@@ -206,5 +206,8 @@ const zhCN = {
"选择": "选择",
"镜像处理": "镜像处理",
"确认选择后视图": "确认选择后视图",
"相框标题": "相框标题",
"请输入相框标题": "请输入相框标题",
"相框标题将用于生成图片,请输入简洁明了的相框标题": "相框标题将用于生成图片,请输入简洁明了的相框标题",
}
export default zhCN
+3
View File
@@ -203,5 +203,8 @@ const zhCT = {
"选择": "選擇",
"镜像处理": "鏡像處理",
"确认选择后视图": "確認選擇後視圖",
"相框标题": "相框標題",
"请输入相框标题": "請輸入相框標題",
"相框标题将用于生成图片,请输入简洁明了的相框标题": "相框標題將用於生成圖片,請輸入簡潔明了的相框標題",
}
export default zhCT
+25 -4
View File
@@ -94,12 +94,23 @@
</div>
<div class="kind-box">
<div class="kind-box-item" v-for="item in kindList" :key="item.id" :class="{ styleActive: kindId == item.id }">
<div class="kind-item-title" @click="kindChange(item.id)">
<div class="kind-item-title" @click="kindChange(item)">
{{ toValueWithout(item.name) }}
</div>
</div>
</div>
</div>
<div v-if="count_prop > 0 && typeId == 11">
<div :style="`font-size: 16px; color: ${config.styles.colors.textPrimary}; font-weight: bold; margin-top: ${config.styles.spacing.sectionMargin};padding: 0 ${config.styles.spacing.pagePadding};`">
{{ toValueWithout("相框标题") }}
</div>
<div :style="`padding: 10px ${config.styles.spacing.pagePadding};`">
<el-input type="text" v-model="scene_prop" maxlength="8" show-word-limit :placeholder="toValueWithout('请输入相框标题')" @input="scenePropInputText" />
<div class="photo-upload-tip" style="color: red;">
*{{ toValueWithout("相框标题将用于生成图片,请输入简洁明了的相框标题") }}
</div>
</div>
</div>
<div v-if="isViews == 1">
<div :style="`font-size: 16px; color: ${config.styles.colors.textPrimary}; font-weight: bold; margin-top: ${config.styles.spacing.sectionMargin};padding: 0 ${config.styles.spacing.pagePadding};`">
{{ toValueWithout("多视角参考图") }}
@@ -348,8 +359,18 @@ const getKindList = () => {
const kindId = ref(0)
const kindChange = (id: number) => {
kindId.value = id
const count_prop = ref(0)
const kindChange = (item: any) => {
kindId.value = item.id
count_prop.value = item.count_prop
}
// 限制最多 8 个字符,空格和特殊字符均计入,不做过滤
const scenePropInputText = (val: string) => {
if (val.length > 8) {
val = val.slice(0, 8)
}
scene_prop.value = val
}
// 形状列表相关
@@ -703,7 +724,7 @@ const createLog = () => {
type_id: typeId.value,
kind_id: kindId.value,
subject_id: subjectId.value,
scene_prop: typeId.value === 9 && method.value === 2 && scene_prop.value ? scene_prop.value : undefined,
scene_prop: scene_prop.value ? scene_prop.value : undefined,
mounts_id: mountsId.value || undefined,
method: method.value
}