first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:09:02 +08:00
commit dac42e3b0c
3512 changed files with 181637 additions and 0 deletions

View File

@@ -0,0 +1,147 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
require("../../uni_modules/uview-plus/index.js");
const api_api = require("../../api/api.js");
const hooks_useNav = require("../../hooks/useNav.js");
if (!Array) {
const _easycom_up_grid_item2 = common_vendor.resolveComponent("up-grid-item");
const _easycom_up_grid2 = common_vendor.resolveComponent("up-grid");
(_easycom_up_grid_item2 + _easycom_up_grid2)();
}
const _easycom_up_grid_item = () => "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item.js";
const _easycom_up_grid = () => "../../uni_modules/uview-plus/components/u-grid/u-grid.js";
if (!Math) {
(_easycom_up_grid_item + _easycom_up_grid)();
}
const _sfc_main = {
__name: "index",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let getInfo = common_vendor.ref({});
common_vendor.ref({});
let devices = common_vendor.ref(0);
let teamDevices = common_vendor.ref(0);
let wallet = common_vendor.ref(0);
let income = common_vendor.ref(0);
let money_list = common_vendor.ref([
{
name: "收益统计",
type: "收益",
data: {}
},
{
name: "推广统计",
type: "推广",
data: {}
}
// {
// name: '邀请统计',
// type: '邀请',
// data: {}
// }
]);
common_vendor.ref(1);
common_vendor.onShow(async () => {
let _res = await api_api.userInfo();
getInfo.value = _res;
userStatCou();
let _data = await api_api.freezeTotal();
income.value = _data.income;
wallet.value = _data.wallet;
});
let userStatCou = async () => {
let _res = await api_api.userStat();
devices.value = _res.devices;
teamDevices.value = _res.teamDevices;
money_list.value.map((item, index) => {
if (item.type == "推广") {
item.data = {
day_money: _res.ordersToday,
week_money1: _res.ordersLastWeek,
week_money0: _res.ordersThisWeek,
total_money: _res.orders30Days
};
}
if (item.type == "收益") {
item.data = {
day_money: _res.pointDeviceToday,
week_money1: _res.pointDeviceLastWeek,
week_money0: _res.pointDeviceThisWeek,
total_money: _res.pointDevice30Days
};
}
});
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(common_vendor.unref(getInfo).points2 || "0.00"),
b: common_assets._imports_0,
c: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/incomeList`, true)),
d: common_vendor.p({
bgColor: "#fff"
}),
e: common_assets._imports_1,
f: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/transferBalance`, true)),
g: common_vendor.p({
bgColor: "#fff"
}),
h: common_assets._imports_2,
i: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/toUser`, true)),
j: common_vendor.p({
bgColor: "#fff"
}),
k: common_assets._imports_3,
l: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
m: common_vendor.p({
bgColor: "#fff"
}),
n: common_assets._imports_4,
o: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
p: common_vendor.p({
bgColor: "#fff"
}),
q: common_assets._imports_5,
r: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/wallet/withdrawList`, true)),
s: common_vendor.p({
bgColor: "#fff"
}),
t: common_vendor.p({
border: false,
col: "4"
}),
v: common_vendor.unref(getInfo).point2Give && common_vendor.unref(getInfo).point2Give == 1
}, common_vendor.unref(getInfo).point2Give && common_vendor.unref(getInfo).point2Give == 1 ? {
w: common_assets._imports_6,
x: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pages/mine/toUser2`, true)),
y: common_vendor.p({
bgColor: "#fff"
}),
z: common_vendor.p({
border: false,
col: "4"
})
} : {}, {
A: common_vendor.t(common_vendor.unref(devices) || 0),
B: common_vendor.t(common_vendor.unref(teamDevices) || 0),
C: common_vendor.f(common_vendor.unref(money_list), (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.data.day_money || 0),
c: common_vendor.t(item.type),
d: common_vendor.t(item.data.week_money1 || 0),
e: common_vendor.t(item.type),
f: common_vendor.t(item.data.week_money0 || 0),
g: common_vendor.t(item.type),
h: common_vendor.t(item.data.total_money || 0),
i: common_vendor.t(item.type),
j: index
};
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
_sfc_main.__runtimeHooks = 1;
wx.createPage(MiniProgramPage);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "统计",
"usingComponents": {
"up-grid-item": "../../uni_modules/uview-plus/components/u-grid-item/u-grid-item",
"up-grid": "../../uni_modules/uview-plus/components/u-grid/u-grid"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,146 @@
.wallet_pall.data-v-1cf27b2a {
height: 200rpx;
border-radius: 16rpx;
padding: 40rpx;
background: linear-gradient(179deg, #5082ff 0%, #4278ff 100%);
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
border-bottom: 1rpx solid rgba(153, 153, 153, 0.6);
}
.wallet_pall_button.data-v-1cf27b2a {
padding: 10rpx 30rpx;
font-size: 28rpx;
color: #333;
background-color: #fff;
border-radius: 30rpx;
}
.wallet_pall_header.data-v-1cf27b2a {
font-weight: bold;
font-size: 26rpx;
color: #002ea4;
}
.wallet_pall_ye.data-v-1cf27b2a {
display: flex;
align-items: center;
justify-content: space-between;
height: 70%;
}
.wallet_pall_ye view.data-v-1cf27b2a:nth-child(1) {
font-weight: bold;
font-size: 68rpx;
color: #fff;
}
.wallet_pall_ye view.data-v-1cf27b2a:nth-child(2) {
width: 128rpx;
height: 58rpx;
background: rgba(0, 46, 164, 0.07);
border-radius: 32rpx 32rpx 32rpx 32rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #fff;
}
.wallet_pall_view.data-v-1cf27b2a {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.wallet_pall_view view.data-v-1cf27b2a:nth-child(1) {
font-weight: bold;
font-size: 45rpx;
color: #fff;
margin-bottom: 30rpx;
}
.wallet_pall_view view.data-v-1cf27b2a:nth-child(2) {
font-size: 28rpx;
color: #fff;
}
.wallet_list.data-v-1cf27b2a {
width: 690rpx;
height: 120rpx;
background: #ffffff;
border-radius: 8rpx 8rpx 8rpx 8rpx;
padding: 15rpx 30rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
}
.wallet_list_left view.data-v-1cf27b2a:nth-child(1) {
font-weight: bold;
font-size: 28rpx;
color: #232323;
margin-bottom: 10rpx;
}
.wallet_list_left view.data-v-1cf27b2a:nth-child(2) {
font-size: 24rpx;
color: #232323;
}
.wallet_list_right.data-v-1cf27b2a {
font-weight: bold;
font-size: 28rpx;
color: #ff2727;
}
.mine_block.data-v-1cf27b2a {
padding: 24rpx;
background-color: #fff;
border-radius: 12rpx 12rpx 12rpx 12rpx;
margin-bottom: 20rpx;
}
.mine_block_tit.data-v-1cf27b2a {
display: flex;
align-items: center;
justify-content: space-between;
}
.mine_block_tit_left.data-v-1cf27b2a {
font-weight: bold;
font-size: 28rpx;
color: #232323;
}
.mine_block_tit_right.data-v-1cf27b2a {
display: flex;
align-items: center;
font-size: 24rpx;
color: #cbd73b;
}
.mine_block_tit_right image.data-v-1cf27b2a {
width: 13rpx;
height: 22rpx;
margin-left: 15rpx;
margin-top: 6rpx;
}
.mine_block_view.data-v-1cf27b2a {
width: 100%;
min-height: 120rpx;
border-radius: 12rpx 12rpx 12rpx 12rpx;
border: 2rpx solid rgba(55, 112, 174, 0.1);
margin-top: 16rpx;
display: flex;
align-items: center;
font-size: 28rpx;
color: #232323;
padding: 20rpx 30rpx;
text-align: center;
}
.mine_block_view image.data-v-1cf27b2a {
width: 48rpx;
height: 48rpx;
margin-right: 25rpx;
}
.u-flex-y-center.data-v-1cf27b2a {
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
align-items: center;
}
.u-flex-between.data-v-1cf27b2a {
justify-content: space-between;
}
.u-flex-fill.data-v-1cf27b2a {
flex: 1 1 auto;
}