You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
2.7 KiB
110 lines
2.7 KiB
export const STATES = {
|
|
selectFloor: "selectFloor",
|
|
startScan: "startScan",
|
|
fail5s: "fail5s",
|
|
fail8s: "fail8s",
|
|
successPrompt: "successPrompt",
|
|
wrongLocation: "wrongLocation",
|
|
badConnection: "badConnection",
|
|
arriveEscalator: "arriveEscalator",
|
|
arriveElevator: "arriveElevator",
|
|
arriveMall: "arriveMall",
|
|
arrivePark: "arrivePark",
|
|
requestEnd: "requestEnd",
|
|
inNav: "inNav",
|
|
noCamera: "noCamera",
|
|
tomap: "tomap",
|
|
arriveEnd: "arriveEnd",
|
|
bluetoothRequired: "bluetoothRequired",
|
|
};
|
|
export const promptIcons = {
|
|
info: "info",
|
|
escalator: "escalator",
|
|
elevator: "elevator",
|
|
question: "question",
|
|
tomap: "tomap",
|
|
mall: "mall",
|
|
park: "park",
|
|
end: "end",
|
|
bluetooth: "bluetooth",
|
|
};
|
|
export const promptStateMap = {
|
|
bluetoothRequired: {
|
|
icon: promptIcons.bluetooth,
|
|
title: "开启蓝牙 精准导航",
|
|
meta: "请在系统设置打开蓝牙",
|
|
btn3: "退出导航",
|
|
},
|
|
noCamera: {
|
|
icon: promptIcons.info,
|
|
title: "相机未授权",
|
|
meta: "AR导航需要相机权限",
|
|
btn1: "打开设置",
|
|
btn2: "退出导航",
|
|
},
|
|
fail8s: {
|
|
icon: promptIcons.info,
|
|
title: "定位失败",
|
|
meta: "请确认您是否在正确楼层",
|
|
btn1: "重新定位",
|
|
btn2: "选择楼层",
|
|
btn3: "退出导航",
|
|
},
|
|
wrongLocation: {
|
|
icon: promptIcons.info,
|
|
title: "当前位置无法导航",
|
|
meta: "导航有效区域:无锡荟聚",
|
|
btn1: "退出导航",
|
|
},
|
|
badConnection: {
|
|
icon: promptIcons.info,
|
|
title: "网络信号差",
|
|
meta: "请检查网络连接是否正常",
|
|
btn1: "重新定位",
|
|
},
|
|
arriveEscalator: {
|
|
icon: promptIcons.escalator,
|
|
title: "",
|
|
meta: "请注意乘梯安全",
|
|
btn1: "已到达目标楼层",
|
|
},
|
|
arriveElevator: {
|
|
icon: promptIcons.elevator,
|
|
title: "",
|
|
meta: "请注意乘梯安全",
|
|
btn1: "已到达目标楼层",
|
|
},
|
|
arriveMall: {
|
|
icon: promptIcons.mall,
|
|
title: "请步行至商场区域",
|
|
meta: "请注意安全",
|
|
btn1: "已到达目标商场",
|
|
},
|
|
arrivePark: {
|
|
icon: promptIcons.park,
|
|
title: "请步行至停车场",
|
|
meta: "请注意安全",
|
|
btn1: "已到达目标停车场",
|
|
},
|
|
requestEnd: {
|
|
icon: promptIcons.question,
|
|
title: "是否退出导航?",
|
|
meta: "退出导航后 将返回首页",
|
|
btn1: "确定",
|
|
btn2: "取消",
|
|
},
|
|
tomap: {
|
|
icon: promptIcons.tomap,
|
|
title: `即将离开AR导航
|
|
进入模拟导航`,
|
|
meta: "是否要继续?",
|
|
btn1: "确定",
|
|
btn2: "取消",
|
|
},
|
|
arriveEnd: {
|
|
icon: promptIcons.end,
|
|
title: `已到达终点,是否退出导航`,
|
|
meta: "退出导航后将返回首页",
|
|
btn1: "确定",
|
|
},
|
|
};
|
|
|