express-goods-card.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="slot">
  3. <view class="pic"><u-image width="180rpx" height="180rpx" :src="data.logo"></u-image></view>
  4. <view class="info">
  5. <view class="title">{{ data.expName }}</view>
  6. <view class="express">
  7. <view class="left">
  8. <text>运单号</text>
  9. <text>{{ data.number }}</text>
  10. </view>
  11. <view class="right" @click="$copyByUniappApi(data.number)">复制</view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'express-goods-card',
  19. props: {
  20. // 数据源
  21. data: {
  22. type: Object,
  23. default: () => {
  24. return {};
  25. }
  26. }
  27. },
  28. data() {
  29. return {};
  30. },
  31. methods: {
  32. }
  33. };
  34. </script>
  35. <style lang="scss" scoped>
  36. .slot {
  37. position: relative;
  38. padding: 30rpx;
  39. background-color: $app-theme-color;
  40. color: $app-theme-text-white-color;
  41. margin-bottom: 24rpx;
  42. display: flex;
  43. align-items: flex-start;
  44. .pic {
  45. border-radius: 16rpx;
  46. overflow: hidden;
  47. margin-right: 24rpx;
  48. }
  49. .info {
  50. .title {
  51. font-size: 28rpx;
  52. color: $app-theme-text-white-color;
  53. margin-bottom: 24rpx;
  54. }
  55. .express {
  56. display: flex;
  57. justify-content: space-between;
  58. align-items: center;
  59. .left {
  60. text:nth-child(1) {
  61. font-size: 24rpx;
  62. color: rgba($app-theme-text-white-color, 0.8);
  63. margin-right: 16rpx;
  64. }
  65. text:nth-child(2) {
  66. font-size: 24rpx;
  67. color: $app-theme-text-white-color;
  68. }
  69. }
  70. .right {
  71. font-size: 24rpx;
  72. color: rgba($app-theme-text-white-color, 0.8);
  73. }
  74. }
  75. }
  76. }
  77. </style>