除了数据分析和底边登录其余完成
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user