freshDetail.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="c-list" v-if="goodsObjact.net_quantity||goodsObjact.storage_condition||goodsObjact.expiration_date">
  3. <view class="c-row title b-b">规格</view>
  4. <view class="c-row b-b" v-if="goodsObjact.net_quantity">
  5. <text class="tit">净含量</text>
  6. <text class="con t-r">{{ goodsObjact.net_quantity }}</text>
  7. </view>
  8. <view class="c-row b-b" v-if="goodsObjact.storage_condition">
  9. <text class="tit">保存条件</text>
  10. <text class="con t-r">{{ goodsObjact.storage_condition }}</text>
  11. </view>
  12. <view class="c-row b-b" v-if="goodsObjact.expiration_date">
  13. <text class="tit">保质期</text>
  14. <text class="con t-r">{{ goodsObjact.expiration_date }}</text>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. props: {
  21. goodsObjact: {
  22. type: Object,
  23. default: function () {
  24. return {
  25. }
  26. }
  27. },
  28. },
  29. data() {
  30. return {
  31. };
  32. },
  33. };
  34. </script>
  35. <style lang="scss">
  36. .c-list {
  37. font-size: $font-sm + 2rpx;
  38. color: $font-color-base;
  39. background: #fff;
  40. .title {
  41. color: #333333;
  42. font-size: 32rpx;
  43. font-weight: bold;
  44. }
  45. .c-row {
  46. display: flex;
  47. align-items: center;
  48. padding: 20rpx 30rpx;
  49. position: relative;
  50. }
  51. .tit {
  52. width: 140rpx;
  53. }
  54. .con {
  55. flex: 1;
  56. color: $font-color-dark;
  57. .selected-text {
  58. margin-right: 10rpx;
  59. }
  60. }
  61. .bz-list {
  62. height: 40rpx;
  63. font-size: $font-sm + 2rpx;
  64. color: $font-color-dark;
  65. text {
  66. display: inline-block;
  67. margin-right: 30rpx;
  68. }
  69. }
  70. .con-list {
  71. flex: 1;
  72. display: flex;
  73. flex-direction: column;
  74. color: $font-color-dark;
  75. line-height: 40rpx;
  76. }
  77. .red {
  78. color: #fb6d24;
  79. }
  80. }
  81. </style>