"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
  props: {
    active: { type: String, default: "order" }
  },
  data() {
    return {};
  },
  methods: {
    switchTab(code) {
      let url = "";
      switch (code) {
        case "home":
          url = "/pages/index/index";
          break;
        case "order":
          url = "/pages/order/order";
          break;
        case "mine":
          url = "/pages/mine/mine";
          break;
      }
      if (url)
        common_vendor.index.reLaunch({ url });
    }
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return {
    a: $props.active === "home" ? "/static/tabs/home_active.png" : "/static/tabs/home.png",
    b: common_vendor.o(($event) => $options.switchTab("home"), "1d"),
    c: $props.active === "home" ? 1 : "",
    d: $props.active === "order" ? "/static/tabs/order_active.png" : "/static/tabs/order.png",
    e: common_vendor.o(($event) => $options.switchTab("order"), "6a"),
    f: $props.active === "order" ? 1 : "",
    g: $props.active === "mine" ? "/static/tabs/mine_active.png" : "/static/tabs/mine.png",
    h: common_vendor.o(($event) => $options.switchTab("mine"), "75"),
    i: $props.active === "mine" ? 1 : ""
  };
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e7719d4f"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/erp-tab-bar/erp-tab-bar.js.map
