吉光研途前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.8 KiB

1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="flex card" @click="jumpToDetail(data.id)">
  3. <view class="flex main" style="opacity: 0;">
  4. <view class="left">
  5. <thesisInfoView :data="data"></thesisInfoView>
  6. </view>
  7. <view class="right">
  8. <image class="img" :src="data.paperImage" mode="aspectFill"></image>
  9. </view>
  10. </view>
  11. <view class="bg">
  12. <image class="img" src="@/static/image/card-bg-icon.png" mode="widthFix"></image>
  13. </view>
  14. <view class="flex main" style="position: absolute; left: 0; top: 0;">
  15. <view class="left">
  16. <thesisInfoView :data="data"></thesisInfoView>
  17. </view>
  18. <view class="right">
  19. <image class="img" :src="data.paperImage" mode="aspectFill"></image>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import thesisInfoView from './thesisInfoView.vue';
  26. export default {
  27. components: {
  28. thesisInfoView,
  29. },
  30. props: {
  31. data: {
  32. type: Object,
  33. default() {
  34. return {}
  35. }
  36. }
  37. },
  38. methods: {
  39. jumpToDetail(thesisId) {
  40. this.$emit('jumpToDetail')
  41. },
  42. },
  43. }
  44. </script>
  45. <style scoped lang="scss">
  46. .card {
  47. position: relative;
  48. background: linear-gradient(to right, rgba($color: #C8C3FD, $alpha: 0.22), #FFFFFF);
  49. .bg {
  50. position: absolute;
  51. bottom: 0;
  52. left: 4rpx;
  53. font-size: 0;
  54. .img {
  55. width: 206rpx;
  56. height: auto;
  57. }
  58. }
  59. .main {
  60. // align-items: flex-start;
  61. width: 100%;
  62. }
  63. .left {
  64. flex: 1;
  65. position: relative;
  66. }
  67. .right {
  68. padding: 16rpx 18rpx 14rpx 0;
  69. box-sizing: border-box;
  70. .img {
  71. // $w: 225rpx;
  72. // width: 225rpx;
  73. // height: calc(#{$w} * 1184 / 750);
  74. width: 184rpx;
  75. height: 290rpx;
  76. }
  77. }
  78. }
  79. </style>