"use strict";const e=require("../common/vendor.js");exports.useNav=function(){return{nav:n=>{n.call?e.index.makePhoneCall({phoneNumber:"4008005326"}):e.index.getStorageSync("token")?e.index["nav"!=n.type&&n.type&&"switchTab"==n.type?"switchTab":"navigateTo"]({url:n.path}):e.index.showModal({title:"提示",content:"为提供更好的服务，请前往登录",success:n=>{n.confirm?e.index.navigateTo({url:"/pages/login/login"}):n.cancel&&console.log("用户点击取消")}})},navTo:(n,o,t)=>{e.index.getStorageSync("token")?e.index.navigateTo({url:n}):e.index.showModal({title:"提示",content:"为提供更好的服务，请前往登录",success:n=>{n.confirm?e.index.navigateTo({url:"/pages/login/login"}):n.cancel&&console.log("用户点击取消")}})}}};
