This commit is contained in:
Vick Scarlet
2021-09-06 14:40:05 +08:00
parent 1b7ae5f1ff
commit 84785f3e40
2 changed files with 10 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -164,9 +164,10 @@ class App{
propertyPage.mounted = ()=>{ propertyPage.mounted = ()=>{
propertyPage propertyPage
.find('#talentSelectedView').append( .find('#talentSelectedView').append(
$(Array.from(this.#talentSelected) `<li>已选天赋</li>` +
Array.from(this.#talentSelected)
.map(({name,description})=>`<li class="grade0b">${name}(${description})</li>`) .map(({name,description})=>`<li class="grade0b">${name}(${description})</li>`)
.join('')) .join('')
) )
} }
const groups = {}; const groups = {};
@@ -321,9 +322,9 @@ class App{
// Update properties if not die yet // Update properties if not die yet
const property = this.#life.getLastRecord(); const property = this.#life.getLastRecord();
$("#lifeProperty").html(` $("#lifeProperty").html(`
<li>颜值:${property.CHR} </li> <li>颜值:${property.CHR} </li>
<li>智力:${property.INT} </li> <li>智力:${property.INT} </li>
<li>体质:${property.STR} </li> <li>体质:${property.STR} </li>
<li>家境:${property.MNY} </li> <li>家境:${property.MNY} </li>
<li>快乐:${property.SPR} </li>`); <li>快乐:${property.SPR} </li>`);
} }
@@ -407,6 +408,9 @@ class App{
page: propertyPage, page: propertyPage,
clear: ()=>{ clear: ()=>{
freshTotal(); freshTotal();
propertyPage
.find('#talentSelectedView')
.empty();
}, },
}, },
trajectory: { trajectory: {