2025-03-20 08:46:07 +08:00
|
|
|
"use strict";
|
|
|
|
|
const common_vendor = require("../../common/vendor.js");
|
|
|
|
|
const _sfc_main = {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
infoList: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "余额"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
name: "奖金"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
name: "兑换券"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
name: "HM"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 5,
|
|
|
|
|
name: "HMC"
|
2025-03-23 20:36:06 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 6,
|
|
|
|
|
name: "抽奖"
|
2025-03-20 08:46:07 +08:00
|
|
|
}
|
|
|
|
|
],
|
2025-03-23 20:36:06 +08:00
|
|
|
selInfo: 6,
|
2025-03-20 08:46:07 +08:00
|
|
|
orderList: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
type: 0,
|
|
|
|
|
// 0:消,1:收
|
|
|
|
|
name: "购物",
|
|
|
|
|
time: "01-01 14:10:10",
|
|
|
|
|
amount: 1e3,
|
|
|
|
|
typeName: "购物消费"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
type: 1,
|
|
|
|
|
// 0:消,1:收
|
|
|
|
|
name: "卖出HM-到账",
|
|
|
|
|
time: "01-01 14:10:10",
|
|
|
|
|
amount: 1e3,
|
|
|
|
|
typeName: "收入到账"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
type: 1,
|
|
|
|
|
// 0:消,1:收
|
|
|
|
|
name: "卖出HM-到账",
|
|
|
|
|
time: "01-01 14:10:10",
|
|
|
|
|
amount: 1e3,
|
|
|
|
|
typeName: "收入到账"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
type: 1,
|
|
|
|
|
// 0:消,1:收
|
|
|
|
|
name: "卖出HM-到账",
|
|
|
|
|
time: "01-01 14:10:10",
|
|
|
|
|
amount: 1e3,
|
|
|
|
|
typeName: "收入到账"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 5,
|
|
|
|
|
type: 1,
|
|
|
|
|
// 0:消,1:收
|
|
|
|
|
name: "卖出HM-到账",
|
|
|
|
|
time: "01-01 14:10:10",
|
|
|
|
|
amount: 1e3,
|
|
|
|
|
typeName: "收入到账"
|
|
|
|
|
}
|
2025-03-23 20:36:06 +08:00
|
|
|
],
|
|
|
|
|
// 其他列表
|
|
|
|
|
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
|
|
|
|
|
}
|
2025-03-20 08:46:07 +08:00
|
|
|
]
|
2025-03-23 20:36:06 +08:00
|
|
|
// 抽奖列表
|
2025-03-20 08:46:07 +08:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
selectInfo(item) {
|
|
|
|
|
this.selInfo = item.id;
|
|
|
|
|
},
|
|
|
|
|
// 跳转到奖金
|
|
|
|
|
jumpBonus() {
|
|
|
|
|
common_vendor.index.navigateTo({
|
|
|
|
|
url: "/pages/mine_purse_bonus/mine_purse_bonus"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
if (!Array) {
|
|
|
|
|
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
|
|
|
|
_easycom_up_image2();
|
|
|
|
|
}
|
|
|
|
|
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
|
|
|
|
if (!Math) {
|
|
|
|
|
_easycom_up_image();
|
|
|
|
|
}
|
|
|
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
2025-03-23 20:36:06 +08:00
|
|
|
return common_vendor.e({
|
2025-03-20 08:46:07 +08:00
|
|
|
a: common_vendor.o((...args) => $options.jumpBonus && $options.jumpBonus(...args)),
|
|
|
|
|
b: common_vendor.f($data.infoList, (item, k0, i0) => {
|
|
|
|
|
return common_vendor.e({
|
|
|
|
|
a: common_vendor.t(item.name),
|
|
|
|
|
b: $data.selInfo === item.id
|
|
|
|
|
}, $data.selInfo === item.id ? {} : {}, {
|
|
|
|
|
c: common_vendor.n($data.selInfo === item.id ? "info_title_item_warp info_title_item_sel_warp" : "info_title_item_warp"),
|
|
|
|
|
d: item.id,
|
|
|
|
|
e: common_vendor.o(($event) => $options.selectInfo(item), item.id)
|
|
|
|
|
});
|
|
|
|
|
}),
|
2025-03-23 20:36:06 +08:00
|
|
|
c: $data.selInfo === 6
|
|
|
|
|
}, $data.selInfo === 6 ? {
|
|
|
|
|
d: common_vendor.f($data.prizeDrawList, (item, k0, i0) => {
|
|
|
|
|
return common_vendor.e({
|
2025-03-20 08:46:07 +08:00
|
|
|
a: "00f7ce42-0-" + i0,
|
2025-03-23 20:36:06 +08:00
|
|
|
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,
|
2025-03-20 08:46:07 +08:00
|
|
|
b: common_vendor.p({
|
|
|
|
|
src: item.type === 1 ? "/static/mine/purse_sf.png" : "/static/mine/purse_xf.png",
|
|
|
|
|
width: "40",
|
|
|
|
|
height: "40",
|
|
|
|
|
bgColor: "#f1f6ff00"
|
|
|
|
|
}),
|
|
|
|
|
c: common_vendor.t(item.name),
|
|
|
|
|
d: common_vendor.t(item.time),
|
|
|
|
|
e: common_vendor.t(item.type === 1 ? "+" : "-"),
|
|
|
|
|
f: common_vendor.t(item.amount),
|
|
|
|
|
g: common_vendor.t(item.typeName),
|
|
|
|
|
h: item.id
|
|
|
|
|
};
|
|
|
|
|
})
|
2025-03-23 20:36:06 +08:00
|
|
|
});
|
2025-03-20 08:46:07 +08:00
|
|
|
}
|
|
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-00f7ce42"]]);
|
|
|
|
|
wx.createPage(MiniProgramPage);
|
|
|
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse/mine_purse.js.map
|