Commit 8b1637e9 by chenjinjing

no message

parent d2614f9d
...@@ -22,7 +22,7 @@ export function getData(req, res) { ...@@ -22,7 +22,7 @@ export function getData(req, res) {
let zzzwpz = {dataList:[], titleList:zzzwpzTableData.titleList}; let zzzwpz = {dataList:[], titleList:zzzwpzTableData.titleList};
zzzwpzTableData.dataList.forEach(info => { zzzwpzTableData.dataList.forEach(info => {
let {A} = info; let {A} = info;
let imgUrl = `${systemConfig.imgPath}/${A}.png`; let imgUrl = `${systemConfig.imgPath}/蔬菜保供基地/${A}.png`;
info["F"] = imgUrl; info["F"] = imgUrl;
zzzwpz.dataList.push(info); zzzwpz.dataList.push(info);
}) })
......
...@@ -23,7 +23,7 @@ export function getData(req, res) { ...@@ -23,7 +23,7 @@ export function getData(req, res) {
let zzzwpz = {dataList:[], titleList:zzzwpzTableData.titleList}; let zzzwpz = {dataList:[], titleList:zzzwpzTableData.titleList};
zzzwpzTableData.dataList.forEach(info => { zzzwpzTableData.dataList.forEach(info => {
let {A} = info; let {A} = info;
let imgUrl = `${systemConfig.imgPath}/${A}.png`; let imgUrl = `${systemConfig.imgPath}/蔬菜保供基地/${A}.png`;
info["F"] = imgUrl; info["F"] = imgUrl;
zzzwpz.dataList.push(info); zzzwpz.dataList.push(info);
}) })
......
...@@ -191,7 +191,8 @@ export async function getData(req, res) { ...@@ -191,7 +191,8 @@ export async function getData(req, res) {
"风向":"", "风向":"",
"风力等级":"", "风力等级":"",
"湿度":"", "湿度":"",
"降水量":"" "降水量":"",
"图片":""
} }
if(weatherData) { if(weatherData) {
let observe = weatherData.body.data.observe; let observe = weatherData.body.data.observe;
...@@ -201,7 +202,8 @@ export async function getData(req, res) { ...@@ -201,7 +202,8 @@ export async function getData(req, res) {
"风向":observe.wind_direction_name, "风向":observe.wind_direction_name,
"风力等级":observe.wind_power, "风力等级":observe.wind_power,
"湿度":observe.humidity, "湿度":observe.humidity,
"降水量":observe.precipitation "降水量":observe.precipitation,
"图片":``
} }
} }
ret['weather'] = {title:"天气", dataList:weather}; ret['weather'] = {title:"天气", dataList:weather};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment