除了数据分析和底边登录其余完成

This commit is contained in:
2026-04-15 00:40:21 +08:00
parent 4b6a45afb3
commit c87a4f63e3
11 changed files with 246 additions and 47 deletions

View File

@@ -39,7 +39,7 @@
data() {
const imagepath = Array.from({
length: 4
}).map((_, x) => `../../static/c${x+1}.png`)
}).map((_, x) => `../../static/a${x+1}.png`)
const textarray = ["首页", "公益", "心得", "我的"]
const endbottom = imagepath.map((value, index) => [value, textarray[index]])
console.log(endbottom)
@@ -60,12 +60,42 @@
}
},
insertShow() {
this.write_none =true;
this.write_none = true;
},
if_none() {
this.write_none =false;
this.write_none = false;
this.useInput = ""
},
async requests(updown,path) {
let response
if (updown == "up") {
response = await fetch(`http://124.93.196.45:10091/Neusoft/times-model${path}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"password": "0CYdq6Hn",
"username": "6dOMIgIU"
})
})
} else if (updown == "down") {
response = await fetch(`http://124.93.196.45:10091/Neusoft/times-model${path}`, {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": (await this.requests("up", "/app/login")).token
},
})
}
const data = await response.json()
console.log(data)
return data
}
},
async mounted(){
await this.requests("down","/appStudy/app/deleteStatement")
}
}
</script>
@@ -118,4 +148,4 @@
.nav_bottom:nth-child(3) p {
color: #C2050F;
}
</style>
</style>