|
|
|
|
@ -94,12 +94,23 @@
@@ -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 = () => {
@@ -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 = () => {
@@ -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 |
|
|
|
|
} |
|
|
|
|
|