上传代码
This commit is contained in:
60
uniapp04/unpackage/dist/dev/mp-alipay/pages/fullOrder/fullOrder.js
vendored
Normal file
60
uniapp04/unpackage/dist/dev/mp-alipay/pages/fullOrder/fullOrder.js
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
"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: "未支付" },
|
||||
// 对应type=1
|
||||
{ name: "已支付" },
|
||||
// 对应type=2
|
||||
{ name: "已退款" },
|
||||
// 对应type=3
|
||||
{ name: "已出餐" },
|
||||
// 对应type=4
|
||||
{ name: "已完成" }
|
||||
// 对应type=5
|
||||
]);
|
||||
common_vendor.onLoad((options) => {
|
||||
if (options.type) {
|
||||
const typeNumber = parseInt(options.type);
|
||||
currentIndex.value = typeNumber - 1;
|
||||
}
|
||||
});
|
||||
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))
|
||||
};
|
||||
}),
|
||||
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 ? {} : {});
|
||||
};
|
||||
}
|
||||
});
|
||||
my.createPage(_sfc_main);
|
Reference in New Issue
Block a user