diff --git a/src/views/cartoon/index.vue b/src/views/cartoon/index.vue index 22ef22e..7d971db 100644 --- a/src/views/cartoon/index.vue +++ b/src/views/cartoon/index.vue @@ -100,7 +100,7 @@ -
+
{{ toValueWithout("相框标题") }}
@@ -160,15 +160,17 @@ {{ toValueWithout("场景道具") }}
-
+
@@ -299,8 +301,7 @@ const getOrderStat = () => { mountsId.value = 0 getmountsList() } else if (res.type_id === 9) { - method.value = 1 - scenePropsInputs.value = [''] + scenePropsInputs.value = ['', '', '', ''] scene_prop.value = '' } }) @@ -323,6 +324,7 @@ const getKindList = () => { }).then((res: any) => { kindList.value = res.list kindId.value = res.list && res.list[0]?.id + count_prop.value = res.list && res.list[0]?.count_prop }) } @@ -398,11 +400,17 @@ const rideChange = (item: any) => { mountsId.value = item.id } -const scene_prop = ref('') // 最终存储的字符串,用逗号连接 +const scene_prop = ref('') // 四个输入框的值用;拼接后提交接口 -// 更新场景道具字符串 -const updateSceneProp = (value: string) => { - scene_prop.value = value +// 场景道具四个输入框 +const scenePropsInputs = ref(['', '', '', '']) + +// 四个输入框有值时,用;拼接更新到 scene_prop +const updateScenePropFromInputs = () => { + scene_prop.value = scenePropsInputs.value + .map(v => (v || '').trim()) + .filter(v => v) + .join(';') } const isLoading = ref(false) @@ -634,21 +642,6 @@ const sendToOss = async (src: string | Blob | File, url: string) => { if (--pendingUploads.value === 0 && !isAnotherAPICalled.value) { isAnotherAPICalled.value = true createLog() - // const params = { - // pid: pid.value, - // group: 1, - // prod_id: prodId.value, - // extend_value: -1, - // type_id: typeId.value, - // kind_id: kindId.value - // } - // badgeApi.putModeling(params).then(() => { - // createLog() - // }).catch((err) => { - // console.log('putModeling', err) - // }).finally(() => { - // closeToast() - // }) } } catch (err: any) { @@ -672,7 +665,6 @@ const createLog = () => { subject_id: subjectId.value, scene_prop: scene_prop.value ? scene_prop.value : undefined, mounts_id: mountsId.value || undefined, - method: method.value } badgeApi.createLog(params).then(() => { closeToast()