增加新模块
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
contentList: [
|
||||
{
|
||||
id: 1,
|
||||
type: 1,
|
||||
// 1:提,2:奖
|
||||
name: "提现-中国银行5478",
|
||||
time: "01-01 14:10:10",
|
||||
amount: 1e3,
|
||||
typeName: "购物消费"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
type: 3,
|
||||
// 1:提,2:奖
|
||||
name: "奖励",
|
||||
time: "01-01 14:10:10",
|
||||
amount: 1e3,
|
||||
typeName: "奖励"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
type: 3,
|
||||
// 1:提,2:奖
|
||||
name: "奖励",
|
||||
time: "01-01 14:10:10",
|
||||
amount: 1e3,
|
||||
typeName: "奖励"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
type: 1,
|
||||
// 1:提,2:奖
|
||||
name: "提现-中国银行5478",
|
||||
time: "01-01 14:10:10",
|
||||
amount: 1e3,
|
||||
typeName: "购物消费"
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
type: 1,
|
||||
// 1:提,2:奖
|
||||
name: "提现-中国银行5478",
|
||||
time: "01-01 14:10:10",
|
||||
amount: 1e3,
|
||||
typeName: "购物消费"
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
_easycom_up_image2();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
if (!Math) {
|
||||
_easycom_up_image();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.f($data.contentList, (item, k0, i0) => {
|
||||
return {
|
||||
a: "f08a8d54-0-" + i0,
|
||||
b: common_vendor.p({
|
||||
src: item.type === 1 ? "/static/mine/purse_j.png" : "/static/mine/purse_t.png",
|
||||
width: "40",
|
||||
height: "40",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t(item.name),
|
||||
d: common_vendor.t(item.time),
|
||||
e: common_vendor.t(item.type === 1 ? "+" : "-"),
|
||||
f: common_vendor.t(item.amount),
|
||||
g: common_vendor.t(item.typeName),
|
||||
h: item.id
|
||||
};
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f08a8d54"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse_bonus/mine_purse_bonus.js.map
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的奖金",
|
||||
"navigationBarBackgroundColor": "#ff7c41",
|
||||
"navigationBarTextStyle": "white",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="mine_purse_bonus_warp data-v-f08a8d54"><view class="mine_purse_bonus_header data-v-f08a8d54"><view class="data-v-f08a8d54"><view class="header_title data-v-f08a8d54">可提现总额</view><view class="data-v-f08a8d54"><text class="data-v-f08a8d54" style="font-size:40rpx">¥</text><text class="data-v-f08a8d54" style="font-size:60rpx">585.</text><text class="data-v-f08a8d54" style="font-size:40rpx">84</text></view></view><view class="header_but data-v-f08a8d54">提现</view></view><view class="mine_purse_bonus_content data-v-f08a8d54"><view class="title data-v-f08a8d54">财务明细</view><view class="content_list data-v-f08a8d54"><view wx:for="{{a}}" wx:for-item="item" wx:key="h" class="content_item purse_info_item data-v-f08a8d54"><view class="purse_info_left data-v-f08a8d54"><up-image wx:if="{{item.b}}" class="data-v-f08a8d54" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="purse_data_warp data-v-f08a8d54"><view class="purse_info_name data-v-f08a8d54">{{item.c}}</view><view class="purse_info_value data-v-f08a8d54">{{item.d}}</view></view></view><view class="purse_info_right data-v-f08a8d54"><view class="purse_info_title data-v-f08a8d54">{{item.e}} {{item.f}}</view><view class="purse_info_value data-v-f08a8d54">{{item.g}}</view></view></view></view></view></view>
|
||||
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.mine_purse_bonus_warp.data-v-f08a8d54 {
|
||||
height: 100vh;
|
||||
background-color: #F5F5F5;
|
||||
overflow: hidden;
|
||||
}
|
||||
.mine_purse_bonus_header.data-v-f08a8d54 {
|
||||
background: #FF7C41;
|
||||
padding: 40rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.mine_purse_bonus_header .header_title.data-v-f08a8d54 {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #EEEEEE;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.mine_purse_bonus_header .header_but.data-v-f08a8d54 {
|
||||
background: #FFFFFF;
|
||||
border-radius: 25rpx;
|
||||
padding: 10rpx 30rpx;
|
||||
color: #FF7C41;
|
||||
font-weight: 500;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.mine_purse_bonus_content.data-v-f08a8d54 {
|
||||
padding: 20rpx;
|
||||
height: calc(100vh - 300rpx);
|
||||
overflow-y: auto;
|
||||
}
|
||||
.mine_purse_bonus_content .title.data-v-f08a8d54 {
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: #666666;
|
||||
}
|
||||
.mine_purse_bonus_content .content_item.data-v-f08a8d54 {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user