金诚优选前端代码
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.

67 lines
1.3 KiB

  1. <template>
  2. <view class="content">
  3. <view class="left" @click="$url(cubeData[0].link)">
  4. <image class="left-img" :src="cubeData[0].image"></image>
  5. </view>
  6. <view class="right">
  7. <view class="right-img" @click="$url(cubeData[1].link)">
  8. <image :src="cubeData[1].image"></image>
  9. </view>
  10. <view class="right-img" @click="$url(cubeData[2].link)">
  11. <image :src="cubeData[2].image"></image>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. props: {
  19. cubeData: {
  20. type: Array,
  21. default: []
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="scss" scoped="scoped">
  27. .content{
  28. width: 750rpx;
  29. height: max-content;
  30. box-sizing: border-box;
  31. padding: 60rpx 32rpx 0rpx;
  32. display: flex;
  33. justify-content: space-between;
  34. .left{
  35. width: 436rpx;
  36. height: 436rpx;
  37. .left-img{
  38. width: 100%;
  39. height: 100%;
  40. background: #D8D8D8;
  41. border-radius: 20rpx 0rpx 0rpx 20rpx;
  42. }
  43. }
  44. .right{
  45. width: 228rpx;
  46. height: 436rpx;
  47. .right-img{
  48. width: 228rpx;
  49. height: 208rpx;
  50. background: #D8D8D8;
  51. &:nth-child(1n){
  52. border-radius: 0rpx 20rpx 0rpx 0rpx;
  53. }
  54. &:nth-child(2n){
  55. margin-top: 20rpx;
  56. border-radius: 0rpx 0rpx 20rpx 0rpx;
  57. }
  58. &>image{
  59. width: 100%;
  60. height: 100%;
  61. }
  62. }
  63. }
  64. }
  65. </style>