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

129 lines
2.3 KiB

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