猫妈狗爸伴宠师小程序前端代码
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.

120 lines
2.2 KiB

4 months ago
  1. <template>
  2. <!-- <div>宠物信息</div> -->
  3. <view class="box box-size">
  4. <view class="box-item box-size" :style="{borderRadius:'16rpx'}">
  5. <view class="level flex">
  6. <view class="img" :style="{borderRadius:'100rpx'}">
  7. <image src="" mode=""></image>
  8. </view>
  9. <view class="top">
  10. <view class="name level">
  11. <view>
  12. 小咪
  13. </view>
  14. <view class="img_" :style="{borderRadius:'20rpx'}">
  15. <image src="" mode=""></image>
  16. </view>
  17. </view>
  18. <view>
  19. 银渐层短毛猫 | 1 | 体重2kg
  20. </view>
  21. </view>
  22. </view>
  23. <view class="character box-size" :style="{borderRadius:'5rpx'}">
  24. 性格活泼开朗对人友好
  25. </view>
  26. <view class="buttom" :style="{borderRadius:'27rpx'}">
  27. <!-- <button>查看详细信息</button> -->
  28. 查看详细信息
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. </script>
  35. <style lang="scss">
  36. .box {
  37. width: 100vw;
  38. height: 100vh;
  39. padding: 1% 3%;
  40. .box-item {
  41. width: 710rpx;
  42. height: 359rpx;
  43. background-image: linear-gradient(to bottom, #FFF6F7, #FFFFFF);
  44. padding: 3% 2%;
  45. position: relative;
  46. .img {
  47. width: 142rpx;
  48. height: 142rpx;
  49. background-color: red;
  50. margin: 0 20rpx 20rpx 0;
  51. }
  52. .top {
  53. font-size: 28rpx;
  54. color: #999999;
  55. }
  56. .name {
  57. font-size: 30rpx;
  58. color: #000000;
  59. }
  60. .img_ {
  61. width: 35rpx;
  62. height: 35rpx;
  63. background-color: red;
  64. margin-left: 10rpx;
  65. }
  66. .character {
  67. width: 678rpx;
  68. height: 65rpx;
  69. background-color: #F9F9F9;
  70. // background-color: green;
  71. color: #999999;
  72. font-size: 28rpx;
  73. line-height: 65rpx;
  74. padding: 0 10rpx;
  75. }
  76. .buttom {
  77. width: 188rpx;
  78. height: 54rpx;
  79. border: 2rpx solid #FFBF60;
  80. color: #FFBF60;
  81. font-size: 22rpx;
  82. line-height: 54rpx;
  83. justify-content: center;
  84. display: grid;
  85. position: absolute;
  86. bottom: 25rpx;
  87. right: 25rpx;
  88. // .buttom buttom {
  89. // color: #FFBF60;
  90. // font-size: 22rpx;
  91. // line-height: 54rpx;
  92. // display: grid;
  93. // justify-content: center;
  94. // }
  95. }
  96. }
  97. }
  98. .box-size {
  99. box-sizing: border-box;
  100. }
  101. .level {
  102. display: flex;
  103. }
  104. .flex {
  105. align-items: center;
  106. }
  107. </style>