代码提交
This commit is contained in:
parent
1b85112ddd
commit
4d3c0c59fb
|
@ -32,7 +32,7 @@
|
||||||
<script>
|
<script>
|
||||||
import MinxinItem from "./mixins"
|
import MinxinItem from "./mixins"
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import {getWather} from "./api/index.js";
|
import {getWather,Weather} from "./api/index.js";
|
||||||
export default {
|
export default {
|
||||||
name: 'home',
|
name: 'home',
|
||||||
mixins:[MinxinItem],
|
mixins:[MinxinItem],
|
||||||
|
@ -60,9 +60,8 @@ export default {
|
||||||
handleWather(){
|
handleWather(){
|
||||||
// axios({url:"http://www.jcznedu.com:5000/weather/prediction/?city=盐都&&limit=3",methods:'GET'}).then(res=>{
|
// axios({url:"http://www.jcznedu.com:5000/weather/prediction/?city=盐都&&limit=3",methods:'GET'}).then(res=>{
|
||||||
// })
|
// })
|
||||||
getWather({
|
Weather({
|
||||||
city:'盐都',
|
|
||||||
limit:'3'
|
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
this.weatherArr = res.data.data.daly;
|
this.weatherArr = res.data.data.daly;
|
||||||
this.weatherArr[0].date = '今天';
|
this.weatherArr[0].date = '今天';
|
||||||
|
|
|
@ -55,9 +55,15 @@ export const getPbtyqk = (params) => {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
// //查询天气
|
||||||
|
// export const getWather = (params) => {
|
||||||
|
// return axios.get('aps/weather/prediction/', {
|
||||||
|
// params
|
||||||
|
// })
|
||||||
|
// };
|
||||||
//查询天气
|
//查询天气
|
||||||
export const getWather = (params) => {
|
export const Weather = (params) => {
|
||||||
return axios.get('aps/weather/prediction/', {
|
return axios.get('api/Handler/Weather.ashx', {
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
};
|
};
|
|
@ -458,6 +458,7 @@ export default {
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
let dataPbty = [];
|
let dataPbty = [];
|
||||||
dataPbty = res.data.data
|
dataPbty = res.data.data
|
||||||
|
console.log(dataPbty,'dataPbty');
|
||||||
this.detailedFive(dataPbty);
|
this.detailedFive(dataPbty);
|
||||||
let dataPb = [];
|
let dataPb = [];
|
||||||
let dataCf = [];
|
let dataCf = [];
|
||||||
|
|
|
@ -23,15 +23,15 @@ module.exports = {
|
||||||
'^/api':'',
|
'^/api':'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/aps': { //代理的名字
|
// '/aps': { //代理的名字
|
||||||
target:'http://www.jcznedu.com:5000/',
|
// target:'http://www.jcznedu.com:5000/',
|
||||||
// target: 'http://172.16.1.254:3111/',
|
// // target: 'http://172.16.1.254:3111/',
|
||||||
ws: true,
|
// ws: true,
|
||||||
changeOrigin: true,
|
// changeOrigin: true,
|
||||||
pathRewrite:{
|
// pathRewrite:{
|
||||||
'^/aps':'',
|
// '^/aps':'',
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue