main.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view class="shop-item row">
  3. <view class="layout-shop-image relative overflow">
  4. <v-image :src="item.image" class="screen_all"></v-image>
  5. </view>
  6. <view class="flex-all-1 flex shop-item-content overflow">
  7. <view class="shop-item-title line-2">{{item.title || '商品名称,商品名称'}}</view>
  8. <view class="flex-all-1"></view>
  9. <view class="row aCenter">
  10. <view class="flex-all-1">
  11. <text class="shop-price-group"><text class="shop-price-em">¥</text><text>{{item.price || '48.00'}}</text></text>
  12. </view>
  13. <text v-if="number" class="row aCenter shop-close-container">
  14. <text class="iconfont-close iconfont shop-close"></text>
  15. <text>1</text>
  16. </text>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import vImage from '@/components/v-image/main.vue';
  23. import { mapState } from 'vuex';
  24. import props from './props';
  25. export default {
  26. name: "layout-ui-shop-item",
  27. computed:{
  28. ...mapState(['config'])
  29. },
  30. props,
  31. components:{
  32. vImage
  33. }
  34. }
  35. </script>
  36. <style scoped lang="scss" src="./style.scss"></style>