"use strict";const e=require("../common/vendor.js");require("../store/index.js").Store(),exports.useNav=function(){return{nav:n=>{e.index["nav"!=n.type&&n.type&&"switchTab"==n.type?"switchTab":"navigateTo"]({url:n.path})},navTo:(n,o,t)=>{if(t)return void e.index.makePhoneCall({phoneNumber:"17707569278"});const i=e.index.getStorageSync("Authorization")||"";if(o&&!i)return e.index.showModal({title:"提示",content:"你还未登录,是否前往登录?",success:function(n){n.confirm?e.index.navigateTo({url:"/pages/login/login"}):n.cancel&&console.log("用户点击取消")}});e.index.navigateTo({url:n})}}};
