myCollection.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="page">
  3. <view class="item-wrap" v-for="(item,idx) in 3" :key="idx">
  4. <view class="ic-wrap align-center justify-center">
  5. <!-- <image src="/static/love.png" mode="widthFix" class="ic"></image> -->
  6. <image src="/static/c-lovefull.png" mode="widthFix" class="ic"></image>
  7. </view>
  8. <view class="t align-center">
  9. <image src="/static/temp/pro.png" mode="aspectFill" class="img"></image>
  10. <view class="info">
  11. <view class="name clamp">
  12. 幸福西饼万达店
  13. </view>
  14. <view class="loc clamp">
  15. 河东区万达广场1F东门入口
  16. </view>
  17. </view>
  18. </view>
  19. <view class="b">
  20. 距离您 <text class="m">864m</text>
  21. </view>
  22. </view>
  23. <safe-area bgColor="#f8f8f8" />
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. };
  31. }
  32. }
  33. </script>
  34. <style lang="scss">
  35. page{
  36. background-color: #f8f8f8;
  37. }
  38. .page{
  39. padding: 30rpx;
  40. }
  41. .item-wrap{
  42. width: 690rpx;
  43. // height: 186rpx;
  44. background: #FFFFFF;
  45. box-shadow: 0rpx 6rpx 10rpx 0rpx rgba(42,42,42,0.08);
  46. border-radius: 20rpx;
  47. position: relative;
  48. margin-bottom: 24rpx;
  49. padding-bottom: 30rpx;
  50. .ic-wrap{
  51. width: 70rpx;
  52. height: 70rpx;
  53. position: absolute;
  54. z-index: 2;
  55. top: 0;
  56. right: 0;
  57. .ic{
  58. width: 30rpx;
  59. height: 30rpx;
  60. }
  61. }
  62. .t{
  63. height: 133rpx;
  64. padding: 0 24rpx;
  65. .img{
  66. width: 68rpx;
  67. height: 68rpx;
  68. border-radius: 68rpx;
  69. margin-right: 16rpx;
  70. flex-shrink: 0;
  71. }
  72. .name{
  73. width: 500rpx;
  74. font-size: 30rpx;
  75. font-family: PingFang SC;
  76. font-weight: bold;
  77. color: #333333;
  78. }
  79. .loc{
  80. width: 500px;
  81. font-size: 24rpx;
  82. font-family: PingFang SC;
  83. font-weight: 500;
  84. color: #999999;
  85. margin-top: 20rpx;
  86. }
  87. }
  88. .b{
  89. font-size: 24rpx;
  90. font-family: PingFang SC;
  91. font-weight: 500;
  92. color: #999999;
  93. max-width: 500rpx;
  94. padding: 0 27rpx;
  95. .m{
  96. color:#92B99C;
  97. }
  98. }
  99. }
  100. </style>