增加新功能

This commit is contained in:
hejiangming
2025-03-23 20:36:06 +08:00
parent 2ae62b59ed
commit 78270eeda0
184 changed files with 2690 additions and 1496 deletions
+62 -5
View File
@@ -23,9 +23,13 @@ const _sfc_main = {
{
id: 5,
name: "HMC"
},
{
id: 6,
name: "抽奖"
}
],
selInfo: 1,
selInfo: 6,
orderList: [
{
id: 1,
@@ -72,7 +76,35 @@ const _sfc_main = {
amount: 1e3,
typeName: "收入到账"
}
],
// 其他列表
prizeDrawList: [
{
id: 1,
name: "20元优惠券",
time: "01-01 14:10:10",
isGet: false,
// 未领取
isShowGet: true
},
{
id: 2,
name: "20元优惠券",
time: "01-01 14:10:10",
isGet: true,
// 已领取
isShowGet: true
},
{
id: 3,
name: "20元优惠券",
time: "01-01 14:10:10",
isGet: false,
// 已领取
isShowGet: false
}
]
// 抽奖列表
};
},
methods: {
@@ -96,7 +128,7 @@ if (!Math) {
_easycom_up_image();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
return common_vendor.e({
a: common_vendor.o((...args) => $options.jumpBonus && $options.jumpBonus(...args)),
b: common_vendor.f($data.infoList, (item, k0, i0) => {
return common_vendor.e({
@@ -108,9 +140,34 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
e: common_vendor.o(($event) => $options.selectInfo(item), item.id)
});
}),
c: common_vendor.f($data.orderList, (item, k0, i0) => {
return {
c: $data.selInfo === 6
}, $data.selInfo === 6 ? {
d: common_vendor.f($data.prizeDrawList, (item, k0, i0) => {
return common_vendor.e({
a: "00f7ce42-0-" + i0,
b: common_vendor.t(item.name),
c: common_vendor.t(item.time),
d: item.isShowGet
}, item.isShowGet ? {
e: item.isGet
} : {}, {
f: item.isShowGet
}, item.isShowGet ? {
g: !item.isGet
} : {}, {
h: item.id
});
}),
e: common_vendor.p({
src: "/static/mine/purse_sf.png",
width: "40",
height: "40",
bgColor: "#f1f6ff00"
})
} : {
f: common_vendor.f($data.orderList, (item, k0, i0) => {
return {
a: "00f7ce42-1-" + i0,
b: common_vendor.p({
src: item.type === 1 ? "/static/mine/purse_sf.png" : "/static/mine/purse_xf.png",
width: "40",
@@ -125,7 +182,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
h: item.id
};
})
};
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-00f7ce42"]]);
wx.createPage(MiniProgramPage);