初代测试版本

This commit is contained in:
2023-10-12 17:09:05 +08:00
parent 268ffecff7
commit 76315492ad
14 changed files with 267 additions and 198 deletions

View File

@@ -314,12 +314,12 @@ export default defineComponent({
})
el.addEventListener('mousewheel',(e:MouseEvent)=>{
if(0>(e as WheelEvent).deltaY && width>parentWidth){
num+=15
num+=25
if(num >= 0){
num = 0
}
}else if(0<(e as WheelEvent).deltaY && width>parentWidth){
num-=15
num-=25
if(num<=parentWidth - width){
num = parentWidth - width
}
@@ -445,7 +445,7 @@ export default defineComponent({
rv.collectionId
);
this.store.commit("setDesignId", rv.designId);
this.designProgress = 0;
// this.designProgress = 0;
this.startDesignType = "design";
}
})
@@ -475,8 +475,8 @@ export default defineComponent({
"setDesignCollectionList",
rv.designCollectionItems
);
(this.designProgress = 0),
(this.startDesignType = "resDesign");
// this.designProgress = 0,
this.startDesignType = "resDesign";
}
})
.catch((res) => {
@@ -810,6 +810,8 @@ export default defineComponent({
imgUrl: URL.createObjectURL(blob),
name: "collection.png",
})
console.log(URL.createObjectURL(blob));
for (let key in allBoardData) {
if (key !== "colorBoards" && key !== "moodTemplateId") {
for (let item of allBoardData[key]) {

View File

@@ -239,11 +239,10 @@ export default defineComponent({
store
}
},
mounted(){
async mounted(){
this.uploadUrl = getUploadUrl()
this.getLibraryList()
this.getSex()
this.getPosition()
},
methods:{
@@ -260,6 +259,7 @@ export default defineComponent({
});
this.sex = arr[0].value
this.sexList = arr
this.getPosition()
}
})
},
@@ -303,8 +303,9 @@ export default defineComponent({
}
},
sexChange(){
this.getPosition()
async sexChange(){
await this.getPosition()
this.getLibraryList()
},
handleChange(){
this.getLibraryList()