"use strict"; const common_vendor = require("../../common/vendor.js"); const _sfc_main = { props: { tip: { default: () => { return 0; } } }, data() { return { cdnBaseImg: this.G.store().cdnBaseImg, list: [], current: 0, isTip: 0 }; }, watch: { "tip"(val) { this.isTip = val; } }, created() { let that = this; that.isTip = that.tip; common_vendor.index.__f__("log", "at components/panel/tabbar.vue:32", "creatd tabbar", this.tip); that.init(); }, methods: { init() { let that = this; if (common_vendor.index.getStorageSync("apply-supplierAccount") == 1) { that.list = [ { iconPath: this.cdnBaseImg + "home.png", selectedIconPath: this.cdnBaseImg + "homeActive.png", text: "首页", customIcon: false, pagePath: "/pages/home/index" }, { iconPath: this.cdnBaseImg + "person.png", selectedIconPath: this.cdnBaseImg + "personActive.png", text: "我的", customIcon: false, pagePath: "/pages/person/index", isDot: that.isTip ? true : false } ]; } else { that.list = [ { iconPath: this.cdnBaseImg + "home.png", selectedIconPath: this.cdnBaseImg + "homeActive.png", text: "首页", customIcon: false, pagePath: "/pages/home/index" }, { iconPath: this.cdnBaseImg + "person.png", selectedIconPath: this.cdnBaseImg + "personActive.png", text: "我的", customIcon: false, pagePath: "/pages/person/index", isDot: that.isTip ? true : false } ]; } }, handleTab(e) { let that = this; that.G.Get( that.api.bind_getWaitNum + "/2", { type: 2 }, (res) => { that.isTip = res.unread; that.init(); } ); } } }; if (!Array) { const _easycom_u_tabbar2 = common_vendor.resolveComponent("u-tabbar"); _easycom_u_tabbar2(); } const _easycom_u_tabbar = () => "../../uni_modules/vk-uview-ui/components/u-tabbar/u-tabbar.js"; if (!Math) { _easycom_u_tabbar(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.o($options.handleTab), b: common_vendor.o(($event) => $data.current = $event), c: common_vendor.p({ list: $data.list, ["active-color"]: "#00b666", modelValue: $data.current }) }; } const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); wx.createComponent(Component); //# sourceMappingURL=../../../.sourcemap/mp-weixin/components/panel/tabbar.js.map