1 line
4.5 KiB
Plaintext
1 line
4.5 KiB
Plaintext
|
{"version":3,"file":"account-info.js","sources":["../../../../../../../src/modules/mall/commission/components/account-info.vue","../../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9tb2R1bGVzL21hbGwvY29tbWlzc2lvbi9jb21wb25lbnRzL2FjY291bnQtaW5mby52dWU"],"sourcesContent":["<!-- 分销账户:展示基本统计信息 -->\r\n<template>\r\n <view class=\"account-card\">\r\n <view class=\"account-card-box\">\r\n <view class=\"ss-flex ss-row-between card-box-header\">\r\n <view class=\"ss-flex\">\r\n <view class=\"header-title ss-m-r-16\">账户信息</view>\r\n <button\r\n class=\"ss-reset-button look-btn ss-flex\"\r\n @tap=\"state.showMoney = !state.showMoney\"\r\n >\r\n <uni-icons\r\n :type=\"state.showMoney ? 'eye-filled' : 'eye-slash-filled'\"\r\n color=\"#A57A55\"\r\n size=\"20\"\r\n />\r\n </button>\r\n </view>\r\n <view class=\"ss-flex\" @tap=\"sheep.$router.go('/modules/mall/commission/wallet')\">\r\n <view class=\"header-title ss-m-r-4\">查看明细</view>\r\n <text class=\"cicon-play-arrow\" />\r\n </view>\r\n </view>\r\n\r\n <!-- 收益 -->\r\n <view class=\"card-content ss-flex\">\r\n <view class=\"ss-flex-1 ss-flex-col ss-col-center\">\r\n <view class=\"item-title\">当前佣金(元)</view>\r\n <view class=\"item-detail\">\r\n {{ state.showMoney ? fen2yuan(state.summary.brokeragePrice || 0) : '***' }}\r\n </view>\r\n </view>\r\n <view class=\"ss-flex-1 ss-flex-col ss-col-center\">\r\n <view class=\"item-title\">昨天的佣金(元)</view>\r\n <view class=\"item-detail\">\r\n {{ state.showMoney ? fen2yuan(state.summary.yesterdayPrice || 0) : '***' }}\r\n </view>\r\n </view>\r\n <view class=\"ss-flex-1 ss-flex-col ss-col-center\">\r\n <view class=\"item-title\">累计已提(元)</view>\r\n <view class=\"item-detail\">\r\n {{ state.showMoney ? fen2yuan(state.summary.withdrawPrice || 0) : '***' }}\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\nimport sheep from '@/sheep'\r\nimport { computed, reactive, onMounted } from 'vue'\r\nimport BrokerageApi from '@/sheep/api/trade/brokerage'\r\nimport { fen2yuan } from '@/sheep/hooks/useGoods'\r\n\r\nconst userInfo = computed(() => sheep.$store('user').userInfo)\r\n\r\nconst state = reactive({\r\n showMoney: false,\r\n summary: {},\r\n})\r\n\r\nonMounted(async () => {\r\n const { code, data } = await BrokerageApi.getBrokerageUserSummary()\r\n if (code === 0) {\r\n state.summary = data || {}\r\n }\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.account-card {\r\n position: relative;\r\n z-index: 3;\r\n width: 694rpx;\r\n padding: 2rpx;\r\n margin: 0 auto;\r\n background: linear-gradient(180deg, #ffffff 0.88%, #fff9ec 100%);\r\n border-radius: 12rpx;\r\n\r\n .account-card-box {\r\n background: #ffefd6;\r\n\r\n .card-box-header {\r\n height: 72rpx;\r\n padding: 0 30rpx;\r\n box-shadow: 0px 2px 6px #f2debe;\r\n\r\n .header-title {\r\n font-size: 24rpx;\r\n font-weight: 500;\r\n line-height: 30rpx;\r\n color: #a17545;\r\n }\r\n\r\n .cicon-play-arrow {\r\n font-size: 24rpx;\r\n line-height: 30rpx;\r\n color: #a17545;\r\n }\r\n }\r\n\r\n .card-content {\r\n height: 190rpx;\r\n background: #fdfae9;\r\n\r\n .item-title {\r\n margin-bottom: 24rpx;\r\n font-size: 24rpx;\r\n font-weight: 500;\r\n line-height: 30rpx;\r\n color: #cba67e;\r\n }\r\n\r\n .item-detail {\r\n font-family: OPPOSANS;\r\n font-size: 36rpx;\r\n font-weight: bold;\r\n line-height: 30rpx;\r\n color: #692e04;\r\n }\r\n }\r\n }\r\n}\r\n</style>\r\n","import Component from
|