This commit is contained in:
X1627315083
2023-12-04 11:48:17 +08:00
parent c2399fd4e4
commit bcb6483ce0
25 changed files with 148 additions and 81 deletions

View File

@@ -119,19 +119,19 @@ export default defineComponent({
sketch1.num = 0
sketch2.num = 1
sketch3.num = 2
let aaa = JSON.parse(JSON.stringify(this.sketchList))
if(this.sketchList){
for (let i = 0; i < this.sketchList.length; i++) {
for (let i = 0; i < aaa.length; i++) {
let arr = [sketch1,sketch2,sketch3]
let image = new Image()
image.src = this.sketchList[i].urlWithWhiteSide
image.src = aaa[i].urlWithWhiteSide
arr.sort((a,b)=>{
var a_num = a["height"];
var b_num = b["height"];
return a_num - b_num;
})
// console.log(arr);
this.sketch[arr[0].num]?.push(this.sketchList[i])
this.sketch[arr[0].num]?.push(aaa[i])
// console.log([sketch1.height,sketch2.height,sketch3.height]);
await new Promise((resolve:any)=>{
image.onload = ()=>{
@@ -149,6 +149,7 @@ export default defineComponent({
})
}
this.store.commit('setshowSketchList', this.sketch)
}
})
}
@@ -275,6 +276,9 @@ export default defineComponent({
height: auto;
>div{
margin-bottom: 2rem;
img{
width: 100%;
}
}
}
>div:nth-child(1){