155 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Vue
		
	
	
	
			
		
		
	
	
			155 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Vue
		
	
	
	
| <template>
 | |
| 	<view class="content">
 | |
| 		<view class="themain">
 | |
| 			<view class="main_top">
 | |
| 				<view class="topimg">
 | |
| 					<image class="images1" :src="theData.thisAvatarUrl" mode=""></image>
 | |
| 				</view>
 | |
| 				<view class="top_title" :style="{color:theData.color}">
 | |
| 					{{ theData.thisAwardsName }}
 | |
| 				</view>
 | |
| 
 | |
| 			</view>
 | |
| 			<view class="main_bottom">
 | |
| 				<view class="awards-list" v-for="(item,index) in theData.awardsList">
 | |
| 					<view class="awards-img" v-if="item.image">
 | |
| 						<img :src="item.image">
 | |
| 					</view>
 | |
| 					<view class="award-name">{{ item.awardsName }}</view>
 | |
| 					<view class="height" :style="{height:item.awardsValue*index+300+'rpx',background:item.color}">
 | |
| 
 | |
| 						<view class="price">
 | |
| 							{{item.communityCheckStr}}
 | |
| 						</view>
 | |
| 						<view class=" bottom-s" :style="{fontSize:item.size}"
 | |
| 							v-if="item.textContent && index<5 && item.awardsValue>=15">{{ item.textContent }}</view>
 | |
| 						<view class="bottom" :style="{fontSize:item.size}"
 | |
| 							v-if="item.textContent && index>=5 && item.awardsValue>=15">{{ item.textContent }}</view>
 | |
| 
 | |
| 					</view>
 | |
| 				</view>
 | |
| 			</view>
 | |
| 		</view>
 | |
| 	</view>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| 	import * as bal from '@/config/balance.js'
 | |
| 	export default {
 | |
| 		data() {
 | |
| 			return {
 | |
| 				theData: {}
 | |
| 			}
 | |
| 		},
 | |
| 		onLoad() {
 | |
| 			this.getList();
 | |
| 		},
 | |
| 		methods: {
 | |
| 			getList() {
 | |
| 				bal.getGrowUpAwards().then((res) => {
 | |
| 					if (res.code == 200) {
 | |
| 						this.theData = res.data;
 | |
| 					}
 | |
| 				});
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| </script>
 | |
| 
 | |
| <style lang="scss" scoped>
 | |
| 	.content {
 | |
| 		padding: 20rpx 24rpx;
 | |
| 		background: #F9F9F9;
 | |
| 
 | |
| 		.themain {
 | |
| 			background: #FFFFFF;
 | |
| 			box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(204, 204, 204, 0.4);
 | |
| 			border-radius: 20rpx 20rpx 20rpx 20rpx;
 | |
| 
 | |
| 			.main_top {
 | |
| 				padding: 40rpx 0 20rpx 0;
 | |
| 				border-bottom: 8rpx solid rgba(0, 0, 0, 0.05);
 | |
| 				text-align: center;
 | |
| 
 | |
| 				.topimg {
 | |
| 
 | |
| 					.images1 {
 | |
| 						width: 124rpx;
 | |
| 						height: 124rpx;
 | |
| 					}
 | |
| 				}
 | |
| 
 | |
| 				.top_title {
 | |
| 					font-size: 40rpx;
 | |
| 					font-weight: 600;
 | |
| 					margin-top: 20rpx;
 | |
| 				}
 | |
| 
 | |
| 				.top_name {
 | |
| 					font-size: 28rpx;
 | |
| 					color: #666666;
 | |
| 					margin-top: 8rpx;
 | |
| 				}
 | |
| 			}
 | |
| 
 | |
| 			.main_bottom {
 | |
| 				padding: 40rpx 20rpx;
 | |
| 				display: flex;
 | |
| 				align-items: flex-end;
 | |
| 
 | |
| 				.awards-list {
 | |
| 					margin: 0 8rpx;
 | |
| 					width: 44rpx;
 | |
| 					text-align: center;
 | |
| 
 | |
| 					.awards-img {
 | |
| 						img {
 | |
| 							width: 56rpx;
 | |
| 							height: 56rpx;
 | |
| 						}
 | |
| 					}
 | |
| 
 | |
| 					.award-name {
 | |
| 						text-align: center;
 | |
| 						font-size: 20rpx;
 | |
| 						font-weight: 400;
 | |
| 						color: #333333;
 | |
| 					}
 | |
| 
 | |
| 					.height {
 | |
| 						// border-radius: 8rpx;
 | |
| 						width: 44rpx;
 | |
| 						margin-top: 20rpx;
 | |
| 						text-align: center;
 | |
| 
 | |
| 						font-weight: 400;
 | |
| 						color: #333333;
 | |
| 						display: flex;
 | |
| 						flex-direction: column;
 | |
| 						justify-content: space-between;
 | |
| 
 | |
| 						.price {
 | |
| 							font-size: 16rpx;
 | |
| 							// padding: 20rpx;
 | |
| 							color: #ffffff;
 | |
| 							word-wrap: break-word;
 | |
| 						}
 | |
| 
 | |
| 						.bottom-s {
 | |
| 							color: #fff;
 | |
| 							margin-bottom: 36rpx;
 | |
| 							font-size: 16rpx;
 | |
| 						}
 | |
| 
 | |
| 						.bottom {
 | |
| 							font-size: 28rpx;
 | |
| 							color: #ffffff;
 | |
| 							margin-bottom: 36rpx;
 | |
| 
 | |
| 						}
 | |
| 					}
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| </style> |