You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.1 KiB
JavaScript
102 lines
3.1 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
if (!Array) {
|
|
const _easycom_navigationStyle2 = common_vendor.resolveComponent("navigationStyle");
|
|
_easycom_navigationStyle2();
|
|
}
|
|
const _easycom_navigationStyle = () => "../../components/navigationStyle/navigationStyle.js";
|
|
if (!Math) {
|
|
_easycom_navigationStyle();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "Coupons",
|
|
setup(__props) {
|
|
const headerindex = common_vendor.ref(1);
|
|
const demos = common_vendor.ref([
|
|
{
|
|
id: 1,
|
|
msgCode: 1,
|
|
status: 1,
|
|
price: 0,
|
|
min: 0,
|
|
oldPrice: 0,
|
|
diPrice: 0,
|
|
times: "2024-05-06"
|
|
},
|
|
{
|
|
id: 2,
|
|
msgCode: 2,
|
|
status: 2,
|
|
price: 20,
|
|
min: 0,
|
|
oldPrice: 20,
|
|
diPrice: 0,
|
|
times: "2024-05-06"
|
|
},
|
|
{
|
|
id: 3,
|
|
msgCode: 3,
|
|
status: 1,
|
|
price: 20,
|
|
diPrice: 0,
|
|
min: 0,
|
|
oldPrice: 20,
|
|
times: "2024-05-06"
|
|
}
|
|
]);
|
|
const titles = common_vendor.ref("优惠券");
|
|
const bgcolor = common_vendor.ref("#fff");
|
|
const color = common_vendor.ref("#000");
|
|
const remo = () => {
|
|
headerindex.value = 1;
|
|
};
|
|
const add = () => {
|
|
headerindex.value = 2;
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.p({
|
|
titles: titles.value,
|
|
bgcolor: bgcolor.value,
|
|
color: color.value
|
|
}),
|
|
b: headerindex.value == 1 ? 1 : "",
|
|
c: common_vendor.o(remo),
|
|
d: headerindex.value == 2 ? 1 : "",
|
|
e: common_vendor.o(add),
|
|
f: common_vendor.f(demos.value, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
a: item.status === 1 && headerindex.value === 1
|
|
}, item.status === 1 && headerindex.value === 1 ? common_vendor.e({
|
|
b: item.msgCode === 1
|
|
}, item.msgCode === 1 ? {} : {}, {
|
|
c: item.msgCode === 2
|
|
}, item.msgCode === 2 ? {} : {}, {
|
|
d: item.msgCode === 3
|
|
}, item.msgCode === 3 ? {} : {}, {
|
|
e: item.status === 1
|
|
}, item.status === 1 ? {} : {}, {
|
|
f: item.status === 2
|
|
}, item.status === 2 ? {} : {}) : {}, {
|
|
g: item.status === 2 && headerindex.value === 2
|
|
}, item.status === 2 && headerindex.value === 2 ? common_vendor.e({
|
|
h: item.msgCode === 1
|
|
}, item.msgCode === 1 ? {} : {}, {
|
|
i: item.msgCode === 2
|
|
}, item.msgCode === 2 ? {} : {}, {
|
|
j: item.msgCode === 3
|
|
}, item.msgCode === 3 ? {} : {}, {
|
|
k: item.status === 1 && headerindex.value === 1
|
|
}, item.status === 1 && headerindex.value === 1 ? {} : {}, {
|
|
l: item.status === 2 && headerindex.value === 2
|
|
}, item.status === 2 && headerindex.value === 2 ? {} : {}) : {}, {
|
|
m: item.id
|
|
});
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/carwashingThree/pages/Coupons/Coupons.vue"]]);
|
|
wx.createPage(MiniProgramPage);
|