"use strict";const e=require("../vendor.js");exports.goto=function(o){e.index.navigateTo({url:o,fail:()=>e.index.switchTab({url:o})})},exports.showToast=function(o,t){e.index.showToast({title:o||"提交成功！",duration:1e3,icon:"none",success(){setTimeout(()=>null==t?void 0:t(!0),1e3)}})},exports.showToastBack=function(o,t=1,i=!0,n){e.index.showToast({title:o||"提交成功！",duration:1e3,icon:"none",success(){i?setTimeout(()=>{e.index.navigateBack({delta:t})},1e3):setTimeout(()=>null==n?void 0:n(),1e3)}})};
