pro.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="flex-row pro-item">
  3. <image src="/static/temp/pro.png" class="image" mode="aspectFill" />
  4. <view class="flex-col group_5">
  5. <text class="text_9 clamp">幸福西饼Rice盲盒</text>
  6. <view class="group_6"><text class="text_11">随机获得四拼蛋糕,奶油慕斯蛋糕二选一精致蛋挞、南瓜蛋糕二选一</text></view>
  7. </view>
  8. <view class="flex-col items-end group_7">
  9. <text class="text_17">¥80.40</text>
  10. <text class="text_19">×1</text>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. props: {
  17. //请求数据
  18. sendData:{
  19. type:Object,
  20. default:()=>({})
  21. },
  22. //请求地址
  23. url:{
  24. type:String,
  25. default:''
  26. }
  27. },
  28. data() {
  29. return {
  30. }
  31. },
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .pro-item{
  36. margin-top: 23rpx;
  37. padding-left: 24rpx;
  38. padding-right: 17rpx;
  39. .image {
  40. flex-shrink: 0;
  41. width: 154rpx;
  42. height: 154rpx;
  43. border-radius: 10rpx;
  44. }
  45. .group_5 {
  46. margin-left: 23rpx;
  47. margin-bottom: 5rpx;
  48. flex: 1 1 auto;
  49. }
  50. .text_9 {
  51. align-self: flex-start;
  52. color: #333333;
  53. font-size: 30rpx;
  54. font-family: PingFang;
  55. max-width: 360rpx;
  56. }
  57. .group_6 {
  58. margin-top: 15.5rpx;
  59. line-height: 37rpx;
  60. }
  61. .text_11 {
  62. color: #999999;
  63. font-size: 24rpx;
  64. font-family: PingFang;
  65. line-height: 37rpx;
  66. }
  67. .group_7 {
  68. margin-left: 3rpx;
  69. flex-shrink: 0;
  70. }
  71. .text_17 {
  72. color: #ff3e3e;
  73. font-size: 30rpx;
  74. font-family: PingFang;
  75. line-height: 23rpx;
  76. }
  77. .text_19 {
  78. margin-right: 14rpx;
  79. margin-top: 16rpx;
  80. color: #999999;
  81. font-size: 24rpx;
  82. font-family: PingFang;
  83. line-height: 18rpx;
  84. }
  85. }
  86. </style>