|
@@ -55,7 +55,7 @@ let ctx = null;
|
|
|
let data = {year:props.photo.uploadDate.substring(0,4),
|
|
|
monthDay:dateFormat(new Date(props.photo.uploadDate),'mm/dd'),
|
|
|
address:props.photo.district.replaceAll("\"","") + props.photo.gardenName,
|
|
|
- tempImg:imageCache.get("temp"),temp:"10°C-20°C",wendu:"适宜",
|
|
|
+ tempImg:imageCache.get("temp"),temp:"10°C-20°C适宜",
|
|
|
feiniao:imageCache.get("feiniao"),
|
|
|
baseMap:imageCache.get("base_map_"+props.photo.treeId),
|
|
|
fusheImg:imageCache.get("fushe"),fushe:"光照优",
|
|
@@ -74,16 +74,17 @@ async function drawWatermark(event) {
|
|
|
if(!watermark.value){
|
|
|
let param = {farmId:props.farmId, date: props.photo.uploadDate}
|
|
|
let weather = null
|
|
|
- VE_API.image.findSuitabilityByPoint(param).then((res)=>{
|
|
|
- if(res.code === 0){
|
|
|
- weather = res.data
|
|
|
- drawWatermark2(img,weather)
|
|
|
- }else{
|
|
|
- drawWatermark2(img,null)
|
|
|
- }
|
|
|
- }).catch((err)=>{
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
+ // VE_API.miniimage.findSuitabilityByPoint(param).then((res)=>{
|
|
|
+ // if(res.code === 0){
|
|
|
+ // weather = res.data
|
|
|
+ // drawWatermark2(img,weather)
|
|
|
+ // }else{
|
|
|
+ // drawWatermark2(img,null)
|
|
|
+ // }
|
|
|
+ // }).catch((err)=>{
|
|
|
+ // console.error(err)
|
|
|
+ // })
|
|
|
+ drawWatermark2(img,null)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -145,7 +146,7 @@ const drawBottom = (imgWidth, imgHeight, weather) => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-const showTagBox = ref(true); // 控制 tag-box 的显示状态
|
|
|
+const showTagBox = ref(false); // 控制 tag-box 的显示状态
|
|
|
const hideTagBox = (event) => {
|
|
|
event.stopPropagation();
|
|
|
showTagBox.value = false; // 隐藏 tag-box
|