"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const utils_navTo = require("../../utils/navTo.js");
if (!Array) {
  const _easycom_up_tabbar_item2 = common_vendor.resolveComponent("up-tabbar-item");
  const _easycom_up_tabbar2 = common_vendor.resolveComponent("up-tabbar");
  (_easycom_up_tabbar_item2 + _easycom_up_tabbar2)();
}
const _easycom_up_tabbar_item = () => "../../node-modules/uview-plus/components/u-tabbar-item/u-tabbar-item.js";
const _easycom_up_tabbar = () => "../../node-modules/uview-plus/components/u-tabbar/u-tabbar.js";
if (!Math) {
  (_easycom_up_tabbar_item + _easycom_up_tabbar)();
}
const _sfc_main = {
  __name: "tabBar",
  props: {
    value: {
      type: Number,
      default: 0
    }
  },
  setup(__props) {
    const handleClick = (e) => {
      if (e == 0) {
        utils_navTo.navTo({
          url: "/pages/index/index"
        });
      } else if (e == 1) {
        utils_navTo.navTo({
          url: "/pages/case/case"
        });
      } else if (e == 2) {
        utils_navTo.navTo({
          url: "/pages/caseTalk/caseTalk"
        });
      }
    };
    return (_ctx, _cache) => {
      return {
        a: common_vendor.o(handleClick),
        b: common_vendor.p({
          text: "临床病例库",
          activeIcon: common_vendor.unref(common_assets.ku_on),
          inactiveIcon: common_vendor.unref(common_assets.ku)
        }),
        c: common_vendor.o(handleClick),
        d: common_vendor.p({
          text: "互动病例",
          activeIcon: common_vendor.unref(common_assets.group_on),
          inactiveIcon: common_vendor.unref(common_assets.group)
        }),
        e: common_vendor.o(handleClick),
        f: common_vendor.p({
          text: "病例交流",
          activeIcon: common_vendor.unref(common_assets.talk_on),
          inactiveIcon: common_vendor.unref(common_assets.talk)
        }),
        g: common_vendor.p({
          value: __props.value,
          fixed: true,
          zIndex: 99,
          placeholder: false,
          activeColor: "#3CC7C0",
          safeAreaInsetBottom: false
        })
      };
    };
  }
};
wx.createComponent(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/tabBar/tabBar.js.map
