x-productList.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <!-- 商品信息 -->
  3. <view class="product_card">
  4. <view class="item_product" v-for="(item,index) in list" :key="index">
  5. <view>
  6. <view class="names_goods">{{item.physic_name}}</view>
  7. <view class="tag_goods_card">
  8. <u-tag size="mini" :text="item.physic_type_desc" plain plainFill shape="circle"></u-tag>
  9. </view>
  10. <view class="title_goods">包装规格:{{item.pkg_spec_crit}}</view>
  11. <view class="title_goods">生产厂家:<span>{{item.ent_name}}</span></view>
  12. </view>
  13. <!-- <image class="goods_image" :src="item.medicinePicture" mode=""></image> -->
  14. <view style="position: absolute;top: 0;right: 0;">
  15. <view class="card_allot" v-if="item.isAssignment"></view>
  16. <view class="card_title_allot">已分配</view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'x-productList',
  24. props: {
  25. list: {
  26. type: Array,
  27. default () {
  28. return []
  29. }
  30. },
  31. },
  32. data() {
  33. return {
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. .product_card {
  40. border-radius: 10rpx;
  41. overflow: hidden;
  42. background-color: #fff;
  43. }
  44. .item_product {
  45. position: relative;
  46. display: flex;
  47. overflow: hidden;
  48. padding: 30rpx 20rpx 20rpx 20rpx;
  49. border-bottom: 1px solid #f4f4f5;
  50. // border-top: 1px solid #f4f4f5;
  51. }
  52. .card_allot {
  53. position: absolute;
  54. top: 0;
  55. right: 0;
  56. border-top: 90rpx solid #67C23A;
  57. border-left: 90rpx solid transparent;
  58. }
  59. .card_title_allot {
  60. color: #fff;
  61. width: 80rpx;
  62. text-align: center;
  63. transform: rotate(45deg);
  64. position: absolute;
  65. right: -10rpx;
  66. top: 16rpx;
  67. font-size: 22rpx;
  68. }
  69. // .item_product:last-child {
  70. // border-bottom: unset;
  71. // }
  72. .goods_image {
  73. flex: none;
  74. width: 180rpx;
  75. height: 150rpx;
  76. border-radius: 10rpx;
  77. }
  78. .names_goods {
  79. font-size: 34rpx;
  80. font-weight: bold;
  81. }
  82. .tag_goods_card {
  83. display: flex;
  84. padding-top: 10rpx;
  85. }
  86. .title_goods {
  87. color: #606266;
  88. font-size: 30rpx;
  89. padding-top: 10rpx;
  90. }
  91. </style>