Files
frontend-app/unpackage/dist/dev/mp-weixin/pages/mine_coupon/mine_coupon.js
T
2025-05-07 10:09:55 +08:00

62 lines
1.8 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
selectType: 0,
// 0:待使用,1:已使用,2:已过期
tabList: [
{
id: 0,
name: "全部"
},
{
id: 1,
name: "优惠卷"
},
{
id: 2,
name: "平台"
}
],
selTab: 0
//
};
},
methods: {
checkType(tab) {
this.selectType = tab;
},
jumpTab(item) {
this.selTab = item.id;
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $data.selectType === 0
}, $data.selectType === 0 ? {} : {}, {
b: common_vendor.n($data.selectType === 0 ? "tab_item tab_item_sel" : "tab_item"),
c: common_vendor.o(($event) => $options.checkType(0)),
d: $data.selectType === 1
}, $data.selectType === 1 ? {} : {}, {
e: common_vendor.n($data.selectType === 1 ? "tab_item tab_item_sel" : "tab_item"),
f: common_vendor.o(($event) => $options.checkType(1)),
g: $data.selectType === 2
}, $data.selectType === 2 ? {} : {}, {
h: common_vendor.n($data.selectType === 2 ? "tab_item tab_item_sel" : "tab_item"),
i: common_vendor.o(($event) => $options.checkType(2)),
j: common_vendor.f($data.tabList, (item, k0, i0) => {
return {
a: common_vendor.t(item.name),
b: item.id,
c: common_vendor.n($data.selTab === item.id ? "tab_item tab_item_sel" : "tab_item"),
d: common_vendor.o(($event) => $options.jumpTab(item), item.id)
};
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_coupon/mine_coupon.js.map