xiaokuaisong-xiaochengxu/uniapp04/unpackage/dist/dev/mp-weixin/pages/fullOrder/fullOrder.js
2025-04-11 14:42:29 +08:00

50 lines
1.7 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Math) {
(orderStateVue + orderStateZeroVue + common_vendor.unref(orderStateOneNvue) + orderStateThree + orderStateFiveVue)();
}
const orderStateVue = () => "./orderState.js";
const orderStateZeroVue = () => "./orderStateZero.js";
const orderStateOneNvue = () => "./orderStateOne.js";
const orderStateThree = () => "./orderStateThree.js";
const orderStateFiveVue = () => "./orderStateFive.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "fullOrder",
setup(__props) {
const currentIndex = common_vendor.ref(0);
const tabs = common_vendor.ref([
{ name: "未支付" },
{ name: "已支付" },
{ name: "已退款" },
{ name: "已出餐" },
{ name: "已完成" }
]);
const switchTab = (index) => {
currentIndex.value = index;
};
common_vendor.index.getSystemInfoSync();
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.f(tabs.value, (tab, index, i0) => {
return {
a: common_vendor.t(tab.name),
b: index,
c: currentIndex.value === index ? 1 : "",
d: common_vendor.o(($event) => switchTab(index), index)
};
}),
b: currentIndex.value === 0
}, currentIndex.value === 0 ? {} : {}, {
c: currentIndex.value === 1
}, currentIndex.value === 1 ? {} : {}, {
d: currentIndex.value === 2
}, currentIndex.value === 2 ? {} : {}, {
e: currentIndex.value === 3
}, currentIndex.value === 3 ? {} : {}, {
f: currentIndex.value === 4
}, currentIndex.value === 4 ? {} : {});
};
}
});
wx.createPage(_sfc_main);