初始化

This commit is contained in:
2024-12-06 16:18:22 +08:00
commit 884dd70d83
751 changed files with 60883 additions and 0 deletions
@@ -0,0 +1,66 @@
const {
etmsPost
} = require("../../com");
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
eamingsList: [],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(query) {
etmsPost(
app.globalData,
"openParent2/WxMiniUserAccountDetailGet", {
tenantId: query.tenantId,
type: query.type
},
(data) => {
this.setData({
eamingsList: data
});
}
);
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
});
@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "收益详情",
"usingComponents": {}
}
@@ -0,0 +1,13 @@
<view class="ed-page">
<view wx:for="{{eamingsList}}" wx:key="index" class="ed-info-card">
<image class="ed-head" src="{{item.avatarUrl}}" mode="aspectFill" />
<view class="ed-info-main">
<view class="ed-info-title">{{item.nickName}}</view>
<view class="ed-info-desc">{{item.activityDesc}}</view>
<view class="ed-info-date">{{item.otDesc}}</view>
</view>
<view class="ed-info-right">
<view class="ed-info-money">{{item.amount}}</view>
</view>
</view>
</view>
@@ -0,0 +1,52 @@
.ed-page {
min-height: 100vh;
background-color: #eee;
padding: 14px;
}
.ed-info-card {
background-color: #fff;
border-radius: 14px;
margin-bottom: 14px;
padding: 14px;
font-size: 14px;
color: #333;
display: flex;
}
.ed-info-main {
flex: auto;
}
.ed-info-title {
font-weight: bold;
font-size: 16px;
}
.ed-info-desc {
color: #666;
}
.ed-info-date {
color: #666;
}
.ed-info-money {
font-weight: bold;
font-size: 18px;
}
.ed-info-item {
display: flex;
}
.ed-info-item__title {
flex: 0 0 auto;
}
.ed-info-item__value {
flex: auto;
display: flex;
justify-content: flex-end;
}
.ed-head {
width: 32px;
height: 32px;
flex: 0 0 auto;
border-radius: 16px;
margin-right: 14px;
}