import{g as e,r,a as s,P as o}from"./index-b1399800.js";const a=()=>!!(-1!=navigator.userAgent.toLowerCase().indexOf("micromessenger")),i=()=>{const o=e("bus_card_number"),a=e("bus-userInfo");if(o&&a){const e=JSON.parse(a),o=t();"教师"!==e.user_zz&&"临时人员"!==e.user_zz||"home"===o||"my"===o?"车队长"===e.user_zz&&"record"!==o&&"detail"!==o?r({url:"/pages/record/record"}):"司机"===e.user_zz&&"recordDriver"!==o&&"detailDriver"!==o&&r({url:"/pages/recordDriver/recordDriver"}):s({url:"/pages/home/home"})}else r({url:"/pages/index/index"})},t=()=>{let e=o();return e[e.length-1].route.split("/")[2]};export{i as f,a as i};
