Browse Source

新增:相框手办标题

master
Linzm 6 days ago
parent
commit
6b2f588ea5
  1. 3
      src/lang/data/en.ts
  2. 3
      src/lang/data/ko.ts
  3. 3
      src/lang/data/zh-CN.ts
  4. 3
      src/lang/data/zh-TW.ts
  5. 29
      src/views/cartoon/index.vue

3
src/lang/data/en.ts

@ -203,5 +203,8 @@ const en = {
"选择": "Select", "选择": "Select",
"镜像处理": "Mirror Processing", "镜像处理": "Mirror Processing",
"确认选择后视图": "Confirm Rear View Selection", "确认选择后视图": "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 export default en

3
src/lang/data/ko.ts

@ -203,5 +203,8 @@ const ko = {
"选择": "선택", "选择": "선택",
"镜像处理": "미러 처리", "镜像处理": "미러 처리",
"确认选择后视图": "후면 뷰 선택 확인", "确认选择后视图": "후면 뷰 선택 확인",
"相框标题": "프레임 제목",
"请输入相框标题": "프레임 제목을 입력하세요",
"相框标题将用于生成图片,请输入简洁明了的相框标题": "프레임 제목은 이미지 생성에 사용됩니다. 간단하고 명확한 프레임 제목을 입력하세요",
} }
export default ko export default ko

3
src/lang/data/zh-CN.ts

@ -206,5 +206,8 @@ const zhCN = {
"选择": "选择", "选择": "选择",
"镜像处理": "镜像处理", "镜像处理": "镜像处理",
"确认选择后视图": "确认选择后视图", "确认选择后视图": "确认选择后视图",
"相框标题": "相框标题",
"请输入相框标题": "请输入相框标题",
"相框标题将用于生成图片,请输入简洁明了的相框标题": "相框标题将用于生成图片,请输入简洁明了的相框标题",
} }
export default zhCN export default zhCN

3
src/lang/data/zh-TW.ts

@ -203,5 +203,8 @@ const zhCT = {
"选择": "選擇", "选择": "選擇",
"镜像处理": "鏡像處理", "镜像处理": "鏡像處理",
"确认选择后视图": "確認選擇後視圖", "确认选择后视图": "確認選擇後視圖",
"相框标题": "相框標題",
"请输入相框标题": "請輸入相框標題",
"相框标题将用于生成图片,请输入简洁明了的相框标题": "相框標題將用於生成圖片,請輸入簡潔明了的相框標題",
} }
export default zhCT export default zhCT

29
src/views/cartoon/index.vue

@ -94,12 +94,23 @@
</div> </div>
<div class="kind-box"> <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-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) }} {{ toValueWithout(item.name) }}
</div> </div>
</div> </div>
</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 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};`"> <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("多视角参考图") }} {{ toValueWithout("多视角参考图") }}
@ -348,8 +359,18 @@ const getKindList = () => {
const kindId = ref(0) const kindId = ref(0)
const kindChange = (id: number) => { const count_prop = ref(0)
kindId.value = id 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, type_id: typeId.value,
kind_id: kindId.value, kind_id: kindId.value,
subject_id: subjectId.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, mounts_id: mountsId.value || undefined,
method: method.value method: method.value
} }

Loading…
Cancel
Save