| | |
| | | </div> |
| | | <!-- 模板设置 --> |
| | | <div class="template-box template-right" v-if="showTemplateTool"> |
| | | <div class="tabs-2"> </div> |
| | | <div class="template-list"> |
| | | <div class="tabs-1"> |
| | | <div |
| | |
| | | |
| | | pptList.forEach((item) => { |
| | | const originalPPT = item.innerPicture?.src || item.pictureUrl |
| | | |
| | | if (template.showBackground) { |
| | | console.log(template) |
| | | item.pictureUrl = template.bgImage |
| | | item.digitalHuman.show = template.showDigitalHuman |
| | | item.digitalHuman.w = template.humanW |
| | | item.digitalHuman.h = template.humanH |
| | | item.digitalHuman.x = template.humanX |
| | | item.digitalHuman.y = template.humanY |
| | | PPTArr.value.forEach((otherItem) => { |
| | | if (otherItem.templateId === item.templateId) { |
| | | otherItem.width = item.width |
| | | otherItem.height = item.height |
| | | } |
| | | }) |
| | | if (template.showPpt) { |
| | | item.innerPicture = { |
| | | name: '画中画', |
| | |
| | | templateId: template.id |
| | | } |
| | | } |
| | | } else { |
| | | item.pictureUrl = originalPPT |
| | | item.innerPicture.src = '' |
| | | } |
| | | |
| | | item.digitalHuman.show = template.showDigitalHuman |
| | | item.digitalHuman.w = template.humanW |
| | | item.digitalHuman.h = template.humanH |
| | | item.digitalHuman.x = template.humanX |
| | | item.digitalHuman.y = template.humanY |
| | | |
| | | PPTArr.value.forEach((otherItem) => { |
| | | if (otherItem.templateId === item.templateId) { |
| | | otherItem.width = item.width |
| | | otherItem.height = item.height |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | |