purchase-let/unpackage/dist/dev/mp-weixin/pagesOrder/order/order.js

104 lines
3.2 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs");
const _easycom_up_sticky2 = common_vendor.resolveComponent("up-sticky");
const _easycom_up_empty2 = common_vendor.resolveComponent("up-empty");
(_easycom_up_search2 + _easycom_up_tabs2 + _easycom_up_sticky2 + _easycom_up_empty2)();
}
const _easycom_up_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
const _easycom_up_tabs = () => "../../uni_modules/uview-plus/components/u-tabs/u-tabs.js";
const _easycom_up_sticky = () => "../../uni_modules/uview-plus/components/u-sticky/u-sticky.js";
const _easycom_up_empty = () => "../../uni_modules/uview-plus/components/u-empty/u-empty.js";
if (!Math) {
(_easycom_up_search + _easycom_up_tabs + _easycom_up_sticky + good + _easycom_up_empty)();
}
const good = () => "./component/good.js";
const _sfc_main = {
__name: "order",
setup(__props) {
const tabsActive = common_vendor.ref(0);
const changeTab = ({ index }) => {
tabsActive.value = index;
swiperCurrent.value = index;
};
const tablist = common_vendor.ref([
{ name: "全部" },
{ name: "待付款" },
{ name: "待收货" }
// { name: '退款/售后' },
]);
const swiperCurrent = common_vendor.ref(0);
const animationfinish = ({ detail: { current } }) => {
swiperCurrent.value = current;
tabsActive.value = current;
};
common_vendor.onLoad((options) => {
if (options.type) {
tabsActive.value = +options.type;
swiperCurrent.value = +options.type;
}
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
shape: "round",
actionStyle: {
color: "#20b128"
}
}),
b: common_vendor.o(changeTab),
c: common_vendor.p({
current: tabsActive.value,
list: tablist.value,
lineColor: "#20b128",
scrollable: false,
activeStyle: {
color: "#20b128",
fontWeight: "bold"
}
}),
d: common_vendor.p({
bgColor: "#fff"
})
}, {
e: common_vendor.f(10, (item, index, i0) => {
return {
a: index,
b: "aea1ad54-3-" + i0
};
}),
f: common_vendor.p({
type: 0
})
}, {
h: common_vendor.f(10, (item, index, i0) => {
return {
a: index,
b: "aea1ad54-5-" + i0
};
}),
i: common_vendor.p({
type: 1
})
}, {
k: common_vendor.f(10, (item, index, i0) => {
return {
a: index,
b: "aea1ad54-7-" + i0
};
}),
l: common_vendor.p({
type: 2
})
}, {
n: swiperCurrent.value,
o: common_vendor.o(animationfinish)
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/里海数字乡村/purchase-let/pagesOrder/order/order.vue"]]);
wx.createPage(MiniProgramPage);