增加新模块
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
"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"
|
||||
}
|
||||
],
|
||||
selInfo: 1,
|
||||
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: "收入到账"
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
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) {
|
||||
return {
|
||||
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)
|
||||
});
|
||||
}),
|
||||
c: common_vendor.f($data.orderList, (item, k0, i0) => {
|
||||
return {
|
||||
a: "00f7ce42-0-" + i0,
|
||||
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
|
||||
};
|
||||
})
|
||||
};
|
||||
}
|
||||
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
|
||||
Reference in New Issue
Block a user