1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <template>
- <view class="content">
- <view class="header">
- <text class="num">XXX </text>共有<text class="num"> 2 </text>次爱心捐助
- </view>
- <view class="detail" v-for="item in list" :key="item.id">
- <view class="date">
- {{ item.date }}
- </view>
- <view class="main">
- <view class="activities">
- <view class="title">活动</view>
- <view class="info">{{ item.activities}}
- </view>
- </view>
- <view class="activities">
- <view class="title">参与</view>
- <view class="info">{{ item.join }}
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default{
- data(){
- return{
- list:[
- { id:0, date:'2019.4.23 14:10星期二', activities:'小天使在行动·关爱自闭症儿童',money:2000,join:'志愿者'},
- { id:1, date:'2019.4.23 14:10星期二', activities:'爱心捐赠',money:2000,join:'参与者'},
- { id:2, date:'2019.4.23 14:10星期二', activities:'小天使在行动·关爱自闭症儿童',money:2000,join:'志愿者'},
- ]
- }
- }
- }
- </script>
- <style lang="scss">
- .content{
- background-color: f8f8f8;
- width: 750rpx;
- height: 100%;
- .header{
- background-color: #A31314;
- height: 80rpx;
- width: 750rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- .num{
- color: #FFFFFF;
- }
- }
- .detail{
- .date{
- padding:0 24rpx;
- width: 100%;
- height: 80rpx;
- background-color: #E9E6EA;
- display: flex;
- // justify-content: center;
- align-items: center;
- }
- .main{
- padding:0 24rpx;
- .activities{
- margin: 44rpx 0;
- .title{
- color:#CB131C;
- font-size: 32rpx;
- padding-bottom: 12rpx;
- border-bottom: 1rpx solid #E9E6EA;
- }
- .info{
- color:#000000;
- font-size: 28rpx;
- padding-top: 12rpx;
- }
- }
-
- }
- }
- }
- </style>
|