orderdetail-goods-card.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="orderGoodsDetail" :style="showBorderBottom ? '' : 'border-bottom:none'">
  3. <view class="img"><u-image width="160rpx" height="160rpx" :src="data.goods_cover"></u-image></view>
  4. <view class="info">
  5. <view class="title">{{ data.goods_title }}</view>
  6. <view class="sku">
  7. <u-tag size="mini" type="info" :text="data.goods_sku"></u-tag>
  8. ×{{ data.goods_nums }}
  9. </view>
  10. <view class="price">
  11. <text>¥</text>
  12. <text>{{ data.actual_total_amount }}</text>
  13. </view>
  14. <!-- <view class="tag">不支持七天无理由退货</view> -->
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. name: 'submit-goods-card',
  21. props: {
  22. // 数据源
  23. data: {
  24. type: Object,
  25. default: () => {
  26. return {};
  27. }
  28. },
  29. // 是否显示底部边框
  30. showBorderBottom: {
  31. type: Boolean,
  32. default: false
  33. }
  34. }
  35. };
  36. </script>
  37. <style lang="scss" scoped>
  38. .orderGoodsDetail {
  39. display: flex;
  40. align-items: center;
  41. padding: 28rpx 0;
  42. border-bottom: 1rpx solid $app-theme-border-color;
  43. position: relative;
  44. .img {
  45. margin-right: 30rpx;
  46. }
  47. .info {
  48. width: 420rpx;
  49. position: relative;
  50. .title {
  51. width: 100%;
  52. font-size: 28rpx;
  53. color: $app-theme-text-black-color;
  54. padding-bottom: 16rpx;
  55. overflow: hidden;
  56. white-space: nowrap;
  57. text-overflow: ellipsis;
  58. }
  59. .sku {
  60. font-size: 24rpx;
  61. color: $app-theme-text-gray-color;
  62. }
  63. .price {
  64. padding-top: 8rpx;
  65. text:nth-child(1) {
  66. font-size: 20rpx;
  67. font-family: PingFangSC-Medium, PingFang SC;
  68. font-weight: 500;
  69. color: $app-theme-text-black-color;
  70. }
  71. text:nth-child(2) {
  72. font-size: 28rpx;
  73. font-family: PingFangSC-Regular, PingFang SC;
  74. font-weight: 400;
  75. color: $app-theme-text-black-color;
  76. }
  77. }
  78. .tag {
  79. margin-top: 8rpx;
  80. background: rgba($app-theme-text-money-color, 0.1);
  81. border-radius: 4rpx;
  82. color: $app-theme-text-money-color;
  83. padding: 4rpx;
  84. font-size: 20rpx;
  85. display: inline-block;
  86. }
  87. }
  88. .num {
  89. position: absolute;
  90. top: 60rpx;
  91. right: 30rpx;
  92. color: $app-theme-text-gray-color;
  93. }
  94. }
  95. </style>