app-order-list.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div class="list-module">
  3. <block v-if="!$util.isEmpty(info)">
  4. <div class="list-left">
  5. <div class="image">
  6. <image :src="imgUrl | default_img" mode="aspectFit" style="width:140upx; height:140upx;"></image>
  7. </div>
  8. <div class="list-msg">
  9. <div class="title">{{ info.goodsName || info.title }}</div>
  10. <block v-if="(info.goodsStyle && info.goodsStyle != '0') || (info.goodsStyleName && info.goodsStyleName != '0')">
  11. <div class="desc">{{ info.goodsStyle || info.goodsStyleName }}</div>
  12. </block>
  13. </div>
  14. </div>
  15. <div class="list-right">
  16. <div class="price">¥{{ info.price || info.unitPrice }}</div>
  17. <div class="num">*{{ info.buyNum || info.num }}</div>
  18. </div>
  19. </block>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. name: 'list-module',
  25. props: {
  26. info: {
  27. type: Object,
  28. default: () => {}
  29. }
  30. },
  31. data() {
  32. return {}
  33. },
  34. computed: {
  35. imgUrl() {
  36. if (this.$util.isEmpty(this.info)) return ''
  37. return this.info.smallCoverUrl ? this.info.smallCoverUrl : this.info.smallImgList[0]
  38. }
  39. },
  40. mounted() {
  41. },
  42. methods: {}
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .list-module {
  47. @include disFlex(center, space-between);
  48. padding: 20upx 0;
  49. border-bottom: 1upx solid $borderColor;
  50. .list-left {
  51. @include disFlex(flex-start, space-between);
  52. .image {
  53. width: 140upx;
  54. }
  55. .list-msg {
  56. margin-left: 20upx;
  57. .title {
  58. font-size: 28upx;
  59. color: $fontColor2;
  60. margin-bottom: 10upx;
  61. }
  62. .desc {
  63. color: $fontColor3;
  64. }
  65. }
  66. }
  67. .list-right {
  68. text-align: right;
  69. color: $fontColor2;
  70. .price {
  71. margin-bottom: 70upx;
  72. color: #333;
  73. }
  74. }
  75. }
  76. </style>