order.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view class="center">
  3. <view class="input-box flex">
  4. <view class=" input-content flex">
  5. <view class="iconfont iconsearch"></view>
  6. <view class="input"><input type="text" disabled placeholder="输入关键字" /></view>
  7. </view>
  8. </view>
  9. <view class="main" v-for="(item, index) in list" :key="index">
  10. <view class="top flex">
  11. <view class="userinfo clamp">用户ID:{{ item.userID }}</view>
  12. <view class="type">{{ item.type == 1 ? '待收货' : item.type == 2 ? '待发货' : item.type == 3 ? '待付款' : '已完成' }}</view>
  13. </view>
  14. <view class="mainbox">
  15. <view class="bg"><image src="" mode=""></image></view>
  16. <view class="main-info flex">
  17. <view class="main-left">
  18. <view class="name clamp">{{ item.name }}</view>
  19. <view class="order">订单编号:{{ item.orderID }}</view>
  20. <view class="ordertype">{{ item.store_type == 1 ? '别店订单' : '本店订单' }}</view>
  21. </view>
  22. <view class="main-right">
  23. <view class="price">¥{{ item.price }}</view>
  24. <view class="num">x{{ item.num }}</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="item-btm">共一件商品 合计:¥{{ item.sum }}</view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. list: [
  37. {
  38. name: '满园春防脱发保湿滋养护法素',
  39. price: '24.9',
  40. num: '1',
  41. orderID: '55648785545',
  42. userID: '李丹丹',
  43. sum: '24.9',
  44. type: 1,
  45. store_type: 1
  46. },
  47. {
  48. name: '满园春防脱发保湿滋养护法素',
  49. price: '24.9',
  50. num: '1',
  51. orderID: '55648785545',
  52. userID: '李丹丹',
  53. sum: '24.9',
  54. type: 1,
  55. store_type: 1
  56. }
  57. ]
  58. };
  59. },
  60. onLoad() {},
  61. methods: {}
  62. };
  63. </script>
  64. <style lang="scss">
  65. page {
  66. height: 100%;
  67. background: #f6f4f4;
  68. }
  69. .input-box {
  70. width: 100%;
  71. padding: 25rpx;
  72. background-color: #52c696;
  73. z-index: 999;
  74. height: 60px;
  75. .iconsearch {
  76. padding-left: 30%;
  77. font-size: 50rpx;
  78. color: #9f9f9f;
  79. }
  80. .input-content {
  81. border-radius: 99rpx;
  82. color: #9f9f9f;
  83. flex-grow: 1;
  84. padding: 10rpx 30rpx;
  85. background-color: #ffffff;
  86. .input {
  87. flex-grow: 1;
  88. input {
  89. font-size: $font-lg;
  90. }
  91. }
  92. }
  93. .input-button {
  94. padding-left: 20rpx;
  95. font-size: $font-lg;
  96. height: 100%;
  97. }
  98. }
  99. .main {
  100. padding: 30rpx 30rpx 60rpx 30rpx;
  101. width: 700rpx;
  102. margin: 20rpx auto 0;
  103. background: #ffffff;
  104. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  105. border-radius: 10rpx;
  106. .top {
  107. align-items: center;
  108. .userinfo {
  109. max-width: 70%;
  110. font-size: 24rpx;
  111. font-family: PingFang SC;
  112. font-weight: 400;
  113. color: #666666;
  114. }
  115. .type {
  116. font-size: 28rpx;
  117. font-family: PingFang SC;
  118. font-weight: 500;
  119. color: #52c696;
  120. }
  121. }
  122. .mainbox {
  123. display: flex;
  124. flex-direction: row;
  125. justify-content: flex-start;
  126. margin-top: 30rpx;
  127. align-items: flex-start;
  128. .bg {
  129. flex-shrink: 0;
  130. width: 160rpx;
  131. height: 160rpx;
  132. background: #4cd964;
  133. image {
  134. width: 100%;
  135. height: 100%;
  136. }
  137. }
  138. .main-info {
  139. justify-content: space-between;
  140. align-items: flex-start;
  141. width: 100%;
  142. .main-left {
  143. padding-left: 10rpx;
  144. .name {
  145. max-width: 338rpx;
  146. font-size: 26rpx;
  147. font-family: PingFang SC;
  148. font-weight: 500;
  149. color: #3f454b;
  150. }
  151. .order {
  152. margin-top: 10rpx;
  153. font-size: 24rpx;
  154. font-family: PingFang SC;
  155. font-weight: 400;
  156. color: #666666;
  157. }
  158. .ordertype {
  159. width: 120rpx;
  160. margin-top: 10rpx;
  161. background: #ffeae5;
  162. border-radius: 5rpx;
  163. font-size: 20rpx;
  164. font-family: PingFang SC;
  165. font-weight: 500;
  166. color: #ff6f0f;
  167. text-align: center;
  168. }
  169. }
  170. .main-right {
  171. text-align: right;
  172. padding-top: 6rpx;
  173. .price {
  174. font-size: 26rpx;
  175. font-family: PingFang SC;
  176. font-weight: 500;
  177. color: #333333;
  178. }
  179. .num {
  180. font-size: 26rpx;
  181. font-family: PingFang SC;
  182. font-weight: 500;
  183. color: #666666;
  184. }
  185. }
  186. }
  187. }
  188. .item-btm {
  189. text-align: right;
  190. font-size: 26rpx;
  191. font-family: PingFang SC;
  192. font-weight: 500;
  193. color: #333333;
  194. }
  195. }
  196. </style>