none data,complete all
This commit is contained in:
@@ -49,6 +49,15 @@
|
|||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/index/dataprocess",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
|
|||||||
50
pages/index/dataprocess.vue
Normal file
50
pages/index/dataprocess.vue
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async requests(gest,path){
|
||||||
|
let test
|
||||||
|
if(gest=="get"){
|
||||||
|
let text = await fetch(`http://124.93.196.45:10091/Neusoft/times-model${path}`,{
|
||||||
|
method:"GET",
|
||||||
|
headers:{
|
||||||
|
"Content-Type":"application/json",
|
||||||
|
"Authorization":(await this.requests("POST","/app/login"))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else if(gest="POST"){
|
||||||
|
let text = await fetch(`http://124.93.196.45:10091/Neusoft/times-model${path}`,{
|
||||||
|
method:"GET",
|
||||||
|
headers:{
|
||||||
|
"Content-Type":"application/json",
|
||||||
|
},
|
||||||
|
body:JSON.stringify({
|
||||||
|
"password": "0CYdq6Hn",
|
||||||
|
"username": "6dOMIgIU"
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const data = await text
|
||||||
|
console.log(data);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async mounted(){
|
||||||
|
let get=[]
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user