小程序端工程代码
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.

40 lines
829 B

  1. <template>
  2. <view class="min-goods" @tap="jump('/pages/activity/GroupDetails/index', { id: detail.id })">
  3. <view class="img-box">
  4. <view class="tag" >{{ detail.people}}人团</view>
  5. <image class="img" :src="detail.image" mode="widthFix"></image>
  6. </view>
  7. <view class="price-box">
  8. <view class="y-f">
  9. <text class="seckill-current">{{ detail.price }}</text>
  10. <text class="original">销量{{ detail.sales }}{{detail.unitName}}</text>
  11. </view>
  12. </view>
  13. <view class="title"><slot name="titleText"></slot></view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. components: {},
  19. data() {
  20. return {};
  21. },
  22. props: {
  23. detail: Object
  24. },
  25. computed: {},
  26. methods: {
  27. // 路由跳转
  28. jump(path, query) {
  29. this.$yrouter.push({
  30. path,
  31. query
  32. });
  33. }
  34. }
  35. };
  36. </script>
  37. <style lang="scss">
  38. </style>