collageMall.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="box">
  3. <view v-if="flag == 1" class="boxlist">
  4. <view @click="nextTo(item)" class="bb vidLi dfsb" v-for="(item, ind) in list" :key="ind">
  5. <view class="imgbox">
  6. <image :src="item.goods_img" mode=""></image>
  7. <!-- <text class="left-img" v-if="ind < 3">第{{ ind + 1 }}名</text> -->
  8. </view>
  9. <view class="dffd flex1">
  10. <view class="title elli">{{item.goods_name}}</view>
  11. <view class="price dfsb">
  12. <view class="textgrey">单独购买: <text class="del">¥{{item.goods_price}}</text></view>
  13. <text class="textgrey">{{item.group_success}}人已拼团成功</text>
  14. </view>
  15. <view class="auth dfsb">
  16. <view class="prosecond">拼团价: <text class="priceDan">{{item.group_price}}</text></view>
  17. <text class="btn">去拼团</text>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {};
  28. },
  29. props: {
  30. list: {
  31. type: Array,
  32. default: []
  33. },
  34. flag: {
  35. type: [String, Number],
  36. default: 1
  37. }
  38. },
  39. methods: {
  40. nextTo(item) {
  41. uni.navigateTo({
  42. url: '/pagesA/mall/collInfo?flag=2&id='+item.id
  43. });
  44. }
  45. }
  46. };
  47. </script>
  48. <style scoped lang="scss">
  49. .boxlist {
  50. .vidLi {
  51. width: 100%;
  52. padding: 15rpx;
  53. background-color: #fff;
  54. margin-bottom: 20rpx;
  55. .imgbox {
  56. position: relative;
  57. width: 200rpx;
  58. height: 200rpx;
  59. margin-right: 28rpx;
  60. // .left-img {
  61. // position: absolute;
  62. // top: 0;
  63. // left: 0;
  64. // height: 33rpx;
  65. // line-height: 33rpx;
  66. // font-size: 18rpx;
  67. // color: #fff;
  68. // padding: 0 5rpx;
  69. // background: #e84325;
  70. // border-radius: 7rpx;
  71. // }
  72. image {
  73. width: 100%;
  74. height: 100%;
  75. }
  76. }
  77. .title {
  78. font-size: 26rpx;
  79. line-height: 40rpx;
  80. margin-bottom: 12rpx;
  81. }
  82. .price{
  83. width: 100%;
  84. .textgrey,text{
  85. font-size: 20rpx;
  86. }
  87. }
  88. .auth {
  89. margin-top: 15rpx;
  90. width: 100%;
  91. .prosecond{
  92. font-size: 20rpx;
  93. }
  94. .btn{
  95. width: 120rpx;
  96. height: 44rpx;
  97. line-height: 44rpx;
  98. text-align: center;
  99. background: #ED742F;
  100. border-radius: 22rpx;
  101. color: #fff;
  102. font-size: 20rpx;
  103. }
  104. }
  105. }
  106. }
  107. </style>