take-order.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <view class="page">
  3. <view class="card u-border-bottom">
  4. <text>{{vuex_orderInfo.store.shopName}}</text>
  5. <view class="">
  6. <view class="cuIcon cu-btn sm btn-icon">
  7. <u-icon name="phone-fill" color="#FF9447"></u-icon>
  8. </view>
  9. <view class="cuIcon cu-btn sm btn-icon margin-left-30">
  10. <u-icon name="map-fill" color="#FF9447"></u-icon>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="card" style="flex-direction: column;">
  15. <view class="center text-bold margin-50" style="font-size: 66rpx;">
  16. <text>2874</text>
  17. </view>
  18. <view class="cu-steps steps-arrow ">
  19. <view class="cu-item" :class="index>0?'text-default':'text-base'" v-for="(item,index) in stepList" :key="index">
  20. <text style="font-size: 80rpx;margin-bottom: 20rpx;margin-right: 10rpx;" :class="'cuIcon-' + item.icon"></text>
  21. <text >{{item.name}}</text>
  22. </view>
  23. </view>
  24. <view class="center text-gray margin-50">
  25. <text>您前面还有4单待制作</text>
  26. </view>
  27. <u-read-more ref="uReadMore" close-text="展开更多" show-height="500" color="#999">
  28. <view v-for="(item,index) in vuex_orderInfo.cart" :key="index" class="cart">
  29. <view class="flex" style="width: 70%;">
  30. <image :src="item.image" mode=""></image>
  31. <view class="item-content " style="justify-content: flex-start;text-align: left;">
  32. <text class="text-cut-1">{{item.name}}</text>
  33. <text class="text-cut-1">{{item.propertyStr ? item.propertyStr : item.name}}</text>
  34. </view>
  35. </view>
  36. <view class="item-data">
  37. <view class="">
  38. <text class="text-sm">x</text>
  39. <text class="text-lg" style="margin-left: 6rpx;">{{item.number}}</text>
  40. </view>
  41. <text class="text-price text-lg">{{item.realPrice / 100}}</text>
  42. </view>
  43. </view>
  44. </u-read-more>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. name: '',
  51. data() {
  52. return {
  53. stepList:[{
  54. name:'待付款',
  55. icon:'recharge'
  56. },
  57. {
  58. name:'制作中',
  59. icon:'time'
  60. },
  61. {
  62. name:'已完成',
  63. icon:'roundcheck'
  64. }]
  65. };
  66. }
  67. };
  68. </script>
  69. <style lang="scss" scoped>
  70. .page{
  71. margin: 20rpx;
  72. }
  73. .text-default{
  74. color: #ffbf91;
  75. }
  76. .btn-icon{
  77. background-color: rgba(255, 148, 71,.3);
  78. color: #FF9447;
  79. }
  80. .card {
  81. padding: 30rpx;
  82. background-color: #FFFFFF;
  83. border-bottom: 1rpx solid #f1f1f1;
  84. display: flex;
  85. justify-content: space-between;
  86. }
  87. .cart {
  88. border-bottom: 1rpx solid #f1f1f1;
  89. display: flex;
  90. background-color: #FFFFFF;
  91. image {
  92. width: 120rpx;
  93. height: 120rpx;
  94. }
  95. .item-content {
  96. background-color: #007AFF;
  97. width: calc(100% - 120rpx);
  98. display: flex;
  99. flex-direction: column;
  100. justify-content: space-between;
  101. justify-content: flex-start;
  102. align-items: flex-start;
  103. text:first-child {
  104. font-size: 32rpx;
  105. padding-top: 10rpx;
  106. }
  107. text:last-child {
  108. font-size: 26rpx;
  109. color: #999;
  110. font-weight: 400;
  111. padding-bottom: 10rpx;
  112. }
  113. }
  114. .item-data {
  115. display: flex;
  116. align-items: center;
  117. width: 30%;
  118. justify-content: space-between;
  119. margin-right: 20rpx;
  120. }
  121. }
  122. .cart:last-child {
  123. border: none;
  124. }
  125. </style>