12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <template>
- <div class="image-text-recommend-image-card">
- <div class="header">
- <div class="title">{{ info.title }}</div>
- <div class="info">
- <img class="app-logo" :src="info.app_logo" alt="" />
- <div class="app-name">{{ info.app_name }}</div>
- <div class="time">{{ info.release_time }}</div>
- <img class="vip" v-if="!!info.is_vip" src="@/assets/icon/vip.png" />
- </div>
- </div>
- <div
- class="cover-box"
- v-if="info.images_arr && !info.images_arr.length < 2"
- >
- <img
- v-for="item in info.images_arr.slice(0, 3)"
- class="cover"
- :src="item"
- alt=""
- />
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "ImageTextRecommendImageCard",
- props: {
- info: {
- type: Object,
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .image-text-recommend-image-card {
- width: calc(100% - 40px);
- background-color: white;
- padding: 20px;
- box-sizing: border-box;
- cursor: default;
- .header {
- .title {
- font-size: 22px;
- font-weight: 400;
- color: #222222;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .info {
- display: flex;
- align-items: center;
- margin: 10px 0;
- .app-logo {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- }
- .app-name {
- font-size: 18px;
- font-weight: 500;
- color: #131415;
- margin-left: 10px;
- }
- .time {
- margin-left: 10px;
- font-size: 14px;
- font-weight: 400;
- color: #444444;
- }
- .vip {
- width: 30px;
- height: 15px;
- margin-left: 10px;
- }
- }
- }
- .cover-box {
- display: flex;
- height: 200px;
- .cover {
- flex: 1;
- height: 200px;
- object-fit: cover;
- }
- .cover:not(:last-child) {
- margin-right: 20px;
- }
- }
- }
- </style>
|