108 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			108 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <div class="Summary11">
 | |
|     <div class="summary5-item" v-for="(item, index) in data" :key="index">
 | |
|       <img class="left" src="https://cdn.cunwuyun.cn/dvcp/dv/img/ms.png">
 | |
|       <div class="middle">
 | |
|         <h2>{{ item[keys] }}</h2>
 | |
|         <p>{{ item[value] }}</p>
 | |
|         <img src="https://cdn.cunwuyun.cn/dvcp/dv/img/dh.svg">
 | |
|       </div>
 | |
|       <img class="right" src="https://cdn.cunwuyun.cn/dvcp/dv/img/ms.png">
 | |
|     </div>
 | |
|   </div>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
|   export default {
 | |
|     name: 'Summary11',
 | |
| 
 | |
|     props: {
 | |
|       data: {
 | |
|         type: Array,
 | |
|         default: () => []
 | |
|       },
 | |
| 
 | |
|       keys: {
 | |
|         type: String,
 | |
|         default: 'key'
 | |
|       },
 | |
| 
 | |
|       value: {
 | |
|         type: String,
 | |
|         default: 'value'
 | |
|       }
 | |
|     },
 | |
| 
 | |
|     data () {
 | |
|       return {
 | |
|       }
 | |
|     },
 | |
| 
 | |
|     mounted () {
 | |
|     },
 | |
| 
 | |
|     methods: {
 | |
|     }
 | |
|   }
 | |
| </script>
 | |
| 
 | |
| <style lang="scss" scoped>
 | |
|   .Summary11 {
 | |
|     display: flex;
 | |
|     flex-wrap: wrap;
 | |
|     justify-content: space-between;
 | |
|     align-items: center;
 | |
|     width: 100%;
 | |
|     height: 100%;
 | |
| 
 | |
|     div {
 | |
|       box-sizing: border-box;
 | |
|     }
 | |
| 
 | |
|     .summary5-item {
 | |
|       display: flex;
 | |
|       position: relative;
 | |
|       align-items: center;
 | |
| 
 | |
|       & > img {
 | |
|         width: 50px;
 | |
|         height: 102px;
 | |
|       }
 | |
| 
 | |
|       .right {
 | |
|         position: relative;
 | |
|         transform: rotateY(180deg);
 | |
|       }
 | |
| 
 | |
|       .middle {
 | |
|         flex: 1;
 | |
|         // padding: 0 8px;
 | |
|         text-align: center;
 | |
| 
 | |
|         h2 {
 | |
|           height: 27px;
 | |
|           font-size: 20px;
 | |
|           color: #CEE1FF;
 | |
|           line-height: 27px;
 | |
|           text-shadow: 0px 4px 4px rgba(86, 0, 0, 0.1);
 | |
|           background: linear-gradient(180deg, #FFF6C7 0%, #FF9A02 100%);
 | |
|           -webkit-background-clip: text;
 | |
|           -webkit-text-fill-color: transparent;
 | |
|         }
 | |
| 
 | |
|         p {
 | |
|           margin: 8px 0 4px;
 | |
|           font-size: 32px;
 | |
|           font-weight: bold;
 | |
|           color: #CEE1FF;
 | |
|           line-height: 35px;
 | |
|           text-shadow: 0px 4px 4px rgba(117, 9, 9, 0.1);
 | |
|           background: linear-gradient(180deg, #FFF6C7 0%, #FF9A02 100%);
 | |
|           -webkit-background-clip: text;
 | |
|           -webkit-text-fill-color: transparent;
 | |
|         }
 | |
|       }
 | |
|     }
 | |
|   }
 | |
| </style>
 |