上传代码
This commit is contained in:
118
distribution/unpackage/dist/dev/mp-alipay/pages/purse/purse.acss
vendored
Normal file
118
distribution/unpackage/dist/dev/mp-alipay/pages/purse/purse.acss
vendored
Normal file
@ -0,0 +1,118 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.wallet-page.data-v-7378640c {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
.wallet-page .balance-section.data-v-7378640c {
|
||||
padding: 16px;
|
||||
background-color: #5e7dec;
|
||||
color: #fff;
|
||||
}
|
||||
.wallet-page .balance-section .balance-label.data-v-7378640c {
|
||||
margin-bottom: 8px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
.wallet-page .balance-section .balance-amount.data-v-7378640c {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.wallet-page .balance-section .balance-amount .amount.data-v-7378640c {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
padding: 20px;
|
||||
}
|
||||
.wallet-page .balance-section .balance-amount .view-detail.data-v-7378640c {
|
||||
margin: 0 20px;
|
||||
border-radius: 15px;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
color: #fff;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
line-height: inherit;
|
||||
padding: 8px 20px;
|
||||
/* 添加内边距 */
|
||||
}
|
||||
.wallet-page .balance-section .transactions-section.data-v-7378640c {
|
||||
padding: 16px;
|
||||
border-top: 1rpx solid #e0e0e0;
|
||||
}
|
||||
.wallet-page .balance-section .transactions-section .transaction-item.data-v-7378640c {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 5px;
|
||||
}
|
||||
.wallet-page .balance-section .transactions-section .transaction-item .transaction-label.data-v-7378640c {
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
.wallet-page .menu-section.data-v-7378640c {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.wallet-page .menu-section .menu-item.data-v-7378640c {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
padding: 16px;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.wallet-page .menu-section .menu-item .menu-title.data-v-7378640c {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.wallet-page .menu-section .menu-item .menu-subtitle.data-v-7378640c {
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
}
|
||||
.wallet-page .menu-section .menu-item .menu-icon.data-v-7378640c {
|
||||
margin-left: auto;
|
||||
}
|
||||
.wallet-page .menu-section .menu-item .subtitles-container.data-v-7378640c {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.wallet-page .menu-section .menu-item.today-bill .subtitles-container.data-v-7378640c {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.wallet-page .menu-section .menu-item.today-bill .view-history.data-v-7378640c {
|
||||
margin-left: 16px;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
}
|
||||
.wallet-page .no-bill-message.data-v-7378640c {
|
||||
text-align: center;
|
||||
padding: 16px;
|
||||
color: #999;
|
||||
background-color: #fff;
|
||||
}
|
1
distribution/unpackage/dist/dev/mp-alipay/pages/purse/purse.axml
vendored
Normal file
1
distribution/unpackage/dist/dev/mp-alipay/pages/purse/purse.axml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="wallet-page data-v-7378640c"><view class="balance-section data-v-7378640c"><text class="balance-label data-v-7378640c">钱包余额(元)</text><view class="balance-amount data-v-7378640c"><text class="amount data-v-7378640c">¥{{a}}</text><button class="view-detail data-v-7378640c" onTap="{{b}}">去提现</button></view><view class="transactions-section data-v-7378640c"><view class="transaction-item data-v-7378640c"><text class="transaction-label data-v-7378640c">未到账:0.00 ></text><text class="transaction-label data-v-7378640c">可提现:0.00 ></text></view><view class="transaction-item data-v-7378640c"><text class="transaction-label data-v-7378640c">已冻结:0.00 ></text></view></view></view><view class="menu-section data-v-7378640c"><view class="menu-item data-v-7378640c"><view class="data-v-7378640c"><text class="menu-title data-v-7378640c">慧民贷款</text><view class="subtitles-container data-v-7378640c"><text class="menu-subtitle data-v-7378640c">余额 <text class="data-v-7378640c" style="color:#3292bc">0.00</text></text><text class="menu-subtitle data-v-7378640c">未到账 <text class="data-v-7378640c" style="color:#3292bc">0.00</text></text></view></view><uni-icons class="menu-icon data-v-7378640c" u-i="7378640c-0" onVI="__l" u-p="{{c||''}}"></uni-icons></view><view class="menu-item data-v-7378640c"><text class="menu-title data-v-7378640c">保证金</text><uni-icons class="menu-icon data-v-7378640c" u-i="7378640c-1" onVI="__l" u-p="{{d||''}}"></uni-icons></view><view class="menu-item today-bill data-v-7378640c"><view class="data-v-7378640c"><text class="menu-title data-v-7378640c">今日账单</text><view class="subtitles-container data-v-7378640c"><text class="menu-subtitle data-v-7378640c">收入 <text class="data-v-7378640c" style="color:#3292bc">0.00</text></text><text class="menu-subtitle data-v-7378640c">支出 <text class="data-v-7378640c" style="color:#3292bc">0.00</text></text></view></view><text class="menu-subtitle view-history data-v-7378640c">查看历史账单 <uni-icons class="data-v-7378640c" u-i="7378640c-2" onVI="__l" u-p="{{e||''}}"></uni-icons></text><uni-icons class="menu-icon data-v-7378640c" u-i="7378640c-3" onVI="__l" u-p="{{f||''}}"></uni-icons></view></view><view class="no-bill-message data-v-7378640c"><text class="data-v-7378640c">今天还没有账单哦</text></view></view>
|
73
distribution/unpackage/dist/dev/mp-alipay/pages/purse/purse.js
vendored
Normal file
73
distribution/unpackage/dist/dev/mp-alipay/pages/purse/purse.js
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const API_api = require("../../API/api.js");
|
||||
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();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "purse",
|
||||
setup(__props) {
|
||||
const totalIncome = common_vendor.ref(0);
|
||||
common_vendor.onMounted(() => {
|
||||
getIncome();
|
||||
});
|
||||
const getIncome = () => {
|
||||
common_vendor.index.request({
|
||||
url: API_api.apiImageUrl + "/api/errandIncome/count/money",
|
||||
method: "POST",
|
||||
header: {
|
||||
"Content-Type": "application/json",
|
||||
"cookie": common_vendor.index.getStorageSync("cookie") || ""
|
||||
// 如果需要带上登录态
|
||||
},
|
||||
success: (res) => {
|
||||
console.log("接口返回:", res);
|
||||
if (res.data.code === 0 && res.data.data != null) {
|
||||
totalIncome.value = res.data.data;
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: res.data.message || "获取数据失败",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error("请求失败:", err);
|
||||
common_vendor.index.showToast({
|
||||
title: "网络错误,请检查连接",
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(totalIncome.value.toFixed(2)),
|
||||
b: common_vendor.o((...args) => _ctx.viewDetail && _ctx.viewDetail(...args)),
|
||||
c: common_vendor.p({
|
||||
type: "angle-right",
|
||||
size: "24"
|
||||
}),
|
||||
d: common_vendor.p({
|
||||
type: "angle-right",
|
||||
size: "24"
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
type: "right",
|
||||
size: "16"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
type: "angle-right",
|
||||
size: "24"
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7378640c"]]);
|
||||
my.createPage(MiniProgramPage);
|
7
distribution/unpackage/dist/dev/mp-alipay/pages/purse/purse.json
vendored
Normal file
7
distribution/unpackage/dist/dev/mp-alipay/pages/purse/purse.json
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"defaultTitle": "我的钱包",
|
||||
"titleBarColor": "#5e7dec",
|
||||
"usingComponents": {
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user