在ID为 STS__NEARBY 的区域显示 附近厕所 #4
Labels
No Label
area/smartpanel
bug
done-waiting-confirmed
kind/feature
page/admin
page/simplepage
page/tab-admin
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: smartoilets-front/projects#4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
默认显示为和当前页面相同房间类型的数据, 例如女厕页面只显示女厕的附近厕所信息
从附近厕所接口获取数据
还会涉及显示附近厕所对应的空闲厕位数据,看下这个显示空闲数据的命名如何定义好? (例如格式还有可能是 空闲/总数量 ) @ginfone 暂时没想到
数字需要前端计算的, 还需要考虑只显示位置级别的可用数量,(参考 panel 页面),
Format:
STS__COUNTER_V2:{EVENT_NAME}:{EVENT_KEY}:{counter_type}:{?nearby_toilets_index}
eg.
当前位置的 : STS__COUNTER_V2:WC_OCCUPY:data.female.Closestool:vacant
附近位置为1 的: STS__COUNTER_V2:WC_OCCUPY:data.female.Closestool:vacant:1
nearby_toilets_index 不传的话,默认取当前的
假如是要实现 female 级别的,只要将原来的 data.female.Closestool 改为 data.female 就可以实现