"use strict"; const common_vendor = require("../../common/vendor.js"); const pages_mixins_pullRefreshMixin = require("../mixins/pullRefreshMixin.js"); const _sfc_main = { mixins: [pages_mixins_pullRefreshMixin.pullRefreshMixin], data() { return { statusBarHeight: 0, bannerBaseHeight: 300, currentTab: "settlement", settlementRecords: [ { type: "回收结算", date: "04-27", amount: "100.24" }, { type: "回收结算", date: "04-23", amount: "171.42" }, { type: "回收结算", date: "04-17", amount: "122.02" }, { type: "回收结算", date: "04-12", amount: "128.87" }, { type: "回收结算", date: "04-12", amount: "106.37" }, { type: "佣金结算", date: "04-09", amount: "119.90" }, { type: "佣金结算", date: "04-09", amount: "160.76" }, { type: "佣金结算", date: "04-07", amount: "132.02" }, { type: "佣金结算", date: "03-29", amount: "172.29" } ], withdrawalRecords: [ { type: "提现记录", date: "04-27", amount: "10" }, { type: "提现记录", date: "04-23", amount: "60" }, { type: "提现记录", date: "04-17", amount: "10" }, { type: "提现记录", date: "04-12", amount: "110" }, { type: "提现记录", date: "04-12", amount: "180" }, { type: "提现记录", date: "04-09", amount: "30" }, { type: "提现记录", date: "04-09", amount: "130" }, { type: "提现记录", date: "04-07", amount: "160" }, { type: "提现记录", date: "03-29", amount: "170" } ] }; }, computed: { image() { const item = getApp().globalData.bannerList.find((i) => i.title === "我的-轮播图"); return item ? item.image : ""; } }, onLoad() { this.statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight; }, methods: { async onRefresh() { await new Promise((resolve) => setTimeout(resolve, 1e3)); common_vendor.index.stopPullRefresh(); }, goBack() { common_vendor.index.navigateBack(); }, switchTab(tab) { this.currentTab = tab; }, withdraw() { common_vendor.index.navigateTo({ url: "/pages/subcomponent/withdraw" }); } } }; if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); _easycom_uni_icons2(); } const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; if (!Math) { _easycom_uni_icons(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return common_vendor.e({ a: common_vendor.p({ type: "left", size: "25", color: "#fff" }), b: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)), c: $data.statusBarHeight + 88 + "rpx", d: $data.statusBarHeight + "px", e: $options.image, f: $data.statusBarHeight + 88 + "rpx", g: $data.bannerBaseHeight + $data.statusBarHeight + 88 + "rpx", h: common_vendor.o((...args) => $options.withdraw && $options.withdraw(...args)), i: $data.currentTab === "settlement" ? 1 : "", j: common_vendor.o(($event) => $options.switchTab("settlement")), k: $data.currentTab === "withdrawal" ? 1 : "", l: common_vendor.o(($event) => $options.switchTab("withdrawal")), m: $data.currentTab === "settlement" }, $data.currentTab === "settlement" ? { n: common_vendor.f($data.settlementRecords, (item, index, i0) => { return { a: common_vendor.t(item.type), b: common_vendor.t(item.amount), c: common_vendor.t(item.date), d: index }; }) } : { o: common_vendor.f($data.withdrawalRecords, (item, index, i0) => { return { a: common_vendor.t(item.type), b: common_vendor.t(item.amount), c: common_vendor.t(item.date), d: index }; }) }); } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a0e9f0c4"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/wallet.js.map