OrderInfo.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view class="order-info" @click="navigateTo('/pages/Storesdetails?status=' + status)">
  3. <view class="order-top">
  4. <view class="status">接单中</view>
  5. <text class="time">{{ status ? '2021-05-20 07:52' : '剩余50分钟' }}</text>
  6. </view>
  7. <view class="products">
  8. <view class="address">
  9. <view class="name">{{ status ? '用户信息' : '配送地址' }}</view>
  10. <view>
  11. <view class="name" v-if="!status">南京**江宁校区-4号宿舍楼</view>
  12. <view class="name name1">奶盖 18789898888</view>
  13. </view>
  14. </view>
  15. <view class="content">
  16. <view class="text1">{{ status ? '用户要求' : '自取时间' }}</view>
  17. <view class="text2">08:50送达</view>
  18. </view>
  19. <view class="content" v-if="!status">
  20. <view class="text1">买家留言</view>
  21. <view class="text2">麻烦送到宿舍楼下的桌子上</view>
  22. </view>
  23. <view class="content content2">
  24. <view class="text1">买家已支付:</view>
  25. <view class="text3">¥34</view>
  26. </view>
  27. </view>
  28. <view class="btn1">
  29. <u-button block type="primary" @click="submit">接单</u-button>
  30. <u-button block class="btn2" @click="submit2">联系买家</u-button>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. name: 'OrderInfo',
  37. props: {
  38. status: {
  39. type: Boolean,
  40. default: false
  41. }
  42. },
  43. data() {
  44. return {};
  45. },
  46. methods:{}
  47. };
  48. </script>
  49. <style lang="scss" scoped>
  50. .order-info {
  51. background: #ffffff;
  52. border-radius: 12px;
  53. padding: 16px 12px;
  54. }
  55. /deep/ .u-btn {
  56. width: 80px;
  57. height: 36px;
  58. font-size: 14px;
  59. font-weight: 400;
  60. margin: 0;
  61. color: #ffffff;
  62. border-radius: 4px;
  63. }
  64. .order-top {
  65. display: flex;
  66. justify-content: space-between;
  67. align-items: center;
  68. padding-bottom: 10px;
  69. border-bottom: 1px solid #f5f7fa;
  70. .status {
  71. font-size: 14px;
  72. font-weight: bold;
  73. color: $u-type-primary;
  74. line-height: 24px;
  75. }
  76. .time {
  77. font-size: 14px;
  78. color: #c8c9cc;
  79. line-height: 24px;
  80. }
  81. }
  82. .btn1 {
  83. display: flex;
  84. align-items: center;
  85. place-content: flex-end;
  86. margin-top: 10px;
  87. .btn2 {
  88. color: #214bbe;
  89. margin-left: 16px;
  90. }
  91. }
  92. .products {
  93. .address {
  94. height: 78px;
  95. display: flex;
  96. align-items: center;
  97. justify-content: space-between;
  98. border-bottom: 1px solid #f5f7fa;
  99. .name {
  100. font-size: 14px;
  101. font-weight: 400;
  102. color: #000000;
  103. line-height: 24px;
  104. &.name1{
  105. text-align: right;
  106. }
  107. }
  108. }
  109. .content {
  110. height: 46px;
  111. display: flex;
  112. align-items: center;
  113. justify-content: space-between;
  114. border-bottom: 1px solid #f5f7fa;
  115. &.content2{
  116. border: 0;
  117. }
  118. .text1 {
  119. font-size: 13px;
  120. font-weight: 400;
  121. color: #939599;
  122. line-height: 24px;
  123. }
  124. .text2 {
  125. font-size: 14px;
  126. font-weight: 400;
  127. color: #ff7f1f;
  128. line-height: 24px;
  129. }
  130. .text3 {
  131. font-size: 16px;
  132. font-weight: bold;
  133. color: #000000;
  134. line-height: 24px;
  135. }
  136. }
  137. }
  138. </style>