acdr-ui/dist/dev/mp-weixin/modules/mall/user/wallet/money.js.map

1 line
12 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"money.js","sources":["../../../../../../../src/modules/mall/user/wallet/money.vue","../../../../../../../uniPage:/bW9kdWxlc1xtYWxsXHVzZXJcd2FsbGV0XG1vbmV5LnZ1ZQ"],"sourcesContent":["<!-- 我的钱包 -->\r\n<template>\r\n <s-layout class=\"wallet-wrap\" title=\"钱包\">\r\n <!-- 钱包卡片 -->\r\n <view class=\"header-box ss-flex ss-row-center ss-col-center\">\r\n <view class=\"card-box ui-BG-Main ui-Shadow-Main\">\r\n <view class=\"card-head ss-flex ss-col-center\">\r\n <view class=\"card-title ss-m-r-10\">钱包余额(元)</view>\r\n <view\r\n @tap=\"state.showMoney = !state.showMoney\"\r\n class=\"ss-eye-icon\"\r\n :class=\"state.showMoney ? 'cicon-eye' : 'cicon-eye-off'\"\r\n />\r\n </view>\r\n <view class=\"ss-flex ss-row-between ss-col-center ss-m-t-64\">\r\n <view class=\"money-num\">\r\n {{ state.showMoney ? fen2yuan(userWallet.balance) : '*****' }}\r\n </view>\r\n <button\r\n class=\"ss-reset-button topup-btn\"\r\n @tap=\"sheep.$router.go('/modules/mall/pay/recharge')\"\r\n >\r\n 充值\r\n </button>\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <su-sticky>\r\n <!-- 统计 -->\r\n <view class=\"filter-box ss-p-x-30 ss-flex ss-col-center ss-row-between\">\r\n <uni-datetime-picker\r\n v-model=\"state.data\"\r\n type=\"daterange\"\r\n @change=\"onChangeTime\"\r\n :end=\"state.today\"\r\n >\r\n <button class=\"ss-reset-button date-btn\">\r\n <text>{{ dateFilterText }}</text>\r\n <text class=\"cicon-drop-down ss-seldate-icon\"></text>\r\n </button>\r\n </uni-datetime-picker>\r\n <view class=\"total-box\">\r\n <view class=\"ss-m-b-10\">总收入¥{{ fen2yuan(state.summary.totalIncome) }}</view>\r\n <view>总支出¥{{ fen2yuan(state.summary.totalExpense) }}</view>\r\n </view>\r\n </view>\r\n <su-tabs\r\n :list=\"tabMaps\"\r\n @change=\"onChange\"\r\n :scrollable=\"false\"\r\n :current=\"state.currentTab\"\r\n ></su-tabs>\r\n </su-sticky>\r\n <s-empty v-if=\"state.pagination.total === 0\" text=\"暂无数据\" icon=\"/static/data-empty.png\" />\r\n\r\n <!-- 钱包记录 -->\r\n <view v-if=\"state.pagination.total > 0\">\r\n <view\r\n class=\"wallet-list ss-flex border-bottom\"\r\n v-for=\"item in state.pagination.list\"\r\n :key=\"item.id\"\r\n >\r\n <view class=\"list-content\">\r\n <view class=\"title-box ss-flex ss-row-between ss-m-b-20\">\r\n <text class=\"title ss-line-1\">\r\n {{ item.title }}\r\n </text>\r\n <view class=\"money\">\r\n <text v-if=\"item.price >= 0\" class=\"add\">+{{ fen2yuan(item.price) }}</text>\r\n <text v-else class=\"minus\">{{ fen2yuan(item.price) }}</text>\r\n </view>\r\n </view>\r\n <text class=\"time\">\r\n {{ sheep.$helper.timeFormat(state.createTime, 'yyyy-mm-dd hh:MM:ss') }}\r\n </text>\r\n </view>\r\n </view>\r\n </view>\r\n <uni-load-more\r\n v-if=\"state.pagination.total > 0\"\r\n :status=\"state.loadStatus\"\r\n :content-text=\"{\r\n contentdown: '上拉加载更多',\r\n }\"\r\n />\r\n </s-layout>\r\n</template>\r\n\r\n<script setup>\r\nimport { computed, reactive } from 'vue'\r\nimport { onLoad, onReachBottom } from '@dcloudio/uni-app'\r\nimport sheep from '@/sheep'\r\nimport dayjs from 'dayjs'\r\nimport _ from 'lodash-es'\r\nimport PayWalletApi from '@/sheep/api/pay/wallet'\r\nimport { fen2yuan } from '@/sheep/hooks/useGoods'\r\nimport { resetPagination } from '@/sheep/util'\r\n\r\nconst headerBg = sheep.$url.css('/static/img/shop/user/wallet_card_bg.png')\r\n\r\n// 数据\r\nconst state = reactive({\r\n showMoney: false,\r\n date: [], // 筛选的