"use strict"; const common_vendor = require("../../common/vendor.js"); const compontent_public_issame = require("./issame.js"); if (!Array) { const _component_donghua = common_vendor.resolveComponent("donghua"); _component_donghua(); } const _sfc_main = { __name: "yuangongdownmenu", props: { itemTarget: { type: Number, required: true, // 如果必须传 default: -1 // 如果您想给默认值 } }, setup(__props) { const props = __props; const playing = common_vendor.ref(-1); const photoplay = common_vendor.ref(false); const itemArray = ["NU", "动态", "我的"]; const donghuaArray = [compontent_public_issame.genPaths( "/static/donghua/home", "home", 19, // 张数 "png", 0, // 起始索引 false // 不补零 ), compontent_public_issame.genPaths( "/static/donghua/new", "new", 18, // 张数 "png", 0, // 起始索引 false // 不补零 ), compontent_public_issame.genPaths( "/static/donghua/my", "my", 14, // 张数 "png", 0, // 起始索引 false // 不补零 )]; common_vendor.onMounted(() => { photoplay.value = true; playing.value = props.itemTarget; }); const jumpto = (index) => { if (index != props.itemTarget) { switch (index) { case 0: common_vendor.index.reLaunch({ url: `/pages/yuangongindex/index` }); break; case 1: break; case 2: common_vendor.index.reLaunch({ url: `/pages/yuangongindex/mine` }); break; } } }; return (_ctx, _cache) => { return { a: common_vendor.f(itemArray, (item, index, i0) => { return { a: "913baf50-0-" + i0, b: common_vendor.p({ width: `60rpx`, height: `60rpx`, links: donghuaArray[index], playing: playing.value == index, interval: 50 }), c: common_vendor.t(item), d: common_vendor.n(__props.itemTarget === index ? `bottom-button-target` : `bottom-button`), e: common_vendor.o(($event) => jumpto(index), index), f: index }; }) }; }; } }; const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-913baf50"]]); wx.createComponent(Component); //# sourceMappingURL=../../../.sourcemap/mp-weixin/compontent/public/yuangongdownmenu.js.map