|
@@ -79,6 +79,7 @@
|
|
:key="item.id"
|
|
:key="item.id"
|
|
class="history-person-card"
|
|
class="history-person-card"
|
|
:name="item.name"
|
|
:name="item.name"
|
|
|
|
+ :img="item.img"
|
|
:text="item.description || item.story"
|
|
:text="item.description || item.story"
|
|
:tall-or-fat="item.tallOrFat"
|
|
:tall-or-fat="item.tallOrFat"
|
|
:style="{
|
|
:style="{
|
|
@@ -187,6 +188,18 @@ export default {
|
|
stageItem.personList = res
|
|
stageItem.personList = res
|
|
const personWidth = spaceEachPerson
|
|
const personWidth = spaceEachPerson
|
|
stageItem.width = personWidth * res.length
|
|
stageItem.width = personWidth * res.length
|
|
|
|
+ }).then(() => {
|
|
|
|
+ // 获取各人物的照片
|
|
|
|
+ for (const personItem of stageItem.personList) {
|
|
|
|
+ api.getHistoryDetail(personItem.id).then((res) => {
|
|
|
|
+ try {
|
|
|
|
+ personItem.img = process.env.VUE_APP_API_ORIGIN + res.file[0].filePath
|
|
|
|
+ console.log(personItem.img)
|
|
|
|
+ } catch (e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
})).then((res) => {
|
|
})).then((res) => {
|
|
console.log(stageList)
|
|
console.log(stageList)
|