瑶都万能墙
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.

105 lines
1.8 KiB

4 months ago
  1. <template>
  2. <view class="grid">
  3. <view class="item" style="--color : #5baaff">
  4. <!-- <image src="/static/image/activity/h.png" mode=""></image> -->
  5. <uv-icon size="40rpx" color="#5baaff" name="tags"></uv-icon>
  6. <view class="text">
  7. {{ item.type }}
  8. </view>
  9. </view>
  10. <view class="item"
  11. style="--color : #f56c6c">
  12. <!-- <image src="/static/image/activity/price.png" mode=""></image> -->
  13. <uv-icon size="40rpx" color="#f56c6c" name="integral"></uv-icon>
  14. <view class="text"
  15. v-if="item.price">
  16. {{ item.price }}/
  17. </view>
  18. <view class="text"
  19. v-else>
  20. 免费
  21. </view>
  22. </view>
  23. <view class="item" style="--color : #5ac725">
  24. <uv-icon size="40rpx" color="#5ac725" name="account"></uv-icon>
  25. <view class="text"
  26. v-if="item.sum">
  27. {{ item.num }}/{{ item.sum }}
  28. </view>
  29. <view class="text"
  30. v-else>
  31. {{ item.num }}/不限
  32. </view>
  33. </view>
  34. <view class="addUser" @click.stop="addUser">
  35. <uv-icon size="40rpx" color="#5baaff" name="plus-circle"></uv-icon>
  36. 加入
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. props: {
  43. item: {},
  44. },
  45. data() {
  46. return {
  47. }
  48. },
  49. methods: {
  50. addUser() {
  51. uni.makePhoneCall({
  52. phoneNumber: this.item.phone,
  53. })
  54. },
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .grid {
  60. display: flex;
  61. align-items: center;
  62. justify-content: space-between;
  63. padding: 20rpx 0;
  64. image {
  65. width: 30rpx;
  66. height: 30rpx;
  67. }
  68. .item {
  69. display: flex;
  70. align-items: center;
  71. font-size: 26rpx;
  72. color: var(--color);
  73. .text {
  74. margin-left: 4rpx;
  75. }
  76. }
  77. .addUser {
  78. display: flex;
  79. align-items: center;
  80. font-size: 26rpx;
  81. color: $uni-color;
  82. margin-left: 10rpx;
  83. background: rgba($uni-color, 0.2);
  84. padding: 10rpx 20rpx;
  85. border-radius: 20rpx;
  86. .text {
  87. margin-left: 4rpx;
  88. }
  89. }
  90. }
  91. </style>