order_list.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <template>
  2. <view class="order_list">
  3. <view class="order_header">
  4. <view class="header_img">
  5. <image :src="`../../static/shop/icon_${item.channel}.png`" class="img"></image>
  6. </view>
  7. <view class="create_time">
  8. <trans _t="创建时间" />: {{ useGlobal().$format(item.indate) }}
  9. </view>
  10. </view>
  11. <view class="order_item">
  12. <view class="order_item_wrapper" v-for="val, num in item.goods" :key="num">
  13. <view class="_item_wrapper">
  14. <view class="thumb_img">
  15. <image :src="val.pic_url" class="_img"></image>
  16. </view>
  17. <view class="goods_info">
  18. <view class="info_name">
  19. <view class="_name">{{ val.goodTitle }}</view>
  20. <view class="_price">{{ symbol.symbol }}&nbsp;{{ Moneyhtml(val.price) }}</view>
  21. </view>
  22. <view class="spec_info">
  23. <view class="spec_desc">{{ val.sku_desc }}</view>
  24. <view class="spec_num">x{{ val.total }}</view>
  25. </view>
  26. <view class="no_return">
  27. <trans _t="不支退货换货" />
  28. </view>
  29. </view>
  30. </view>
  31. <view class="order_status">
  32. <text>{{ item.status_txt }}&nbsp;</text>
  33. <!-- <i class="icon-font icon-question2"></i> -->
  34. </view>
  35. </view>
  36. <view class="order_footer">
  37. <view class="order_price">
  38. <view class="price_text">
  39. <trans _t="小计" />:
  40. </view>
  41. <text>{{ symbol.symbol }}{{ Moneyhtml(item.amount) }}</text>
  42. </view>
  43. <view class="order_price">
  44. <view class="price_text">
  45. <trans _t="国内货运" />:
  46. </view>
  47. <text>{{ symbol.symbol }}{{ '0.00' }}</text>
  48. </view>
  49. <view class="order_price">
  50. <view class="price_text">
  51. <trans _t="订单补充付款" />:
  52. </view>
  53. <text>{{ symbol.symbol }}{{ '0.00' }}</text>
  54. </view>
  55. <view class="order_price">
  56. <view class="price_text">
  57. <trans _t="涉及增值服务费" />:
  58. </view>
  59. <text>{{ symbol.symbol }}{{ '0.00' }}</text>
  60. </view>
  61. <view class="order_price all_price">
  62. <view class="price_text">
  63. <trans _t="总价" />:
  64. </view>
  65. <text>{{ symbol.symbol }}{{ Moneyhtml(item.amount) }}</text>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </template>
  71. <script setup>
  72. import { ref, computed } from "vue";
  73. import { t } from "@/locale"
  74. import { useGlobal, Toast, Moneyhtml } from "@/utils"
  75. import { useSystemStore } from "@/store";
  76. const useSystem = useSystemStore();
  77. const props = defineProps({
  78. item: {
  79. type: Object,
  80. default: () => ({})
  81. },
  82. })
  83. const symbol = computed(() => useSystem.getSymbol);
  84. </script>
  85. <style lang="less" scoped>
  86. @import url('@/style.less');
  87. .order_list {
  88. margin-top: 24rpx;
  89. padding: 16rpx 24rpx;
  90. background-color: var(--light);
  91. border-radius: 16rpx;
  92. .order_header {
  93. .ver();
  94. margin-bottom: 16rpx;
  95. .header_img {
  96. width: 48rpx;
  97. height: 48rpx;
  98. .img {
  99. width: inherit;
  100. height: inherit;
  101. border-radius: 8rpx;
  102. }
  103. }
  104. .create_time {
  105. margin-left: 16rpx;
  106. .size(24rpx);
  107. color: var(--text);
  108. font-weight: 700;
  109. text {
  110. font-weight: 500;
  111. }
  112. }
  113. }
  114. .order_item {
  115. &_wrapper {
  116. margin-top: 16rpx;
  117. ._item_wrapper {
  118. .flex();
  119. .thumb_img {
  120. width: 140rpx;
  121. height: 140rpx;
  122. ._img {
  123. width: inherit;
  124. height: inherit;
  125. border-radius: 16rpx;
  126. }
  127. }
  128. .goods_info {
  129. margin-left: 16rpx;
  130. flex: 1;
  131. .info_name {
  132. color: var(--text);
  133. .size(24rpx);
  134. font-weight: 700;
  135. line-height: 44rpx;
  136. .ver();
  137. ._name {
  138. flex: 1;
  139. .ellipsis();
  140. margin-right: 8rpx;
  141. }
  142. }
  143. .spec_info {
  144. .flex();
  145. flex: 1;
  146. margin-top: 8rpx;
  147. color: var(--text-01);
  148. .size(24rpx);
  149. line-height: 40rpx;
  150. .spec_desc {
  151. flex: 1;
  152. margin-right: 8rpx;
  153. }
  154. }
  155. .no_return {
  156. border: var(--danger-bor);
  157. border-radius: 40rpx;
  158. color: var(--danger);
  159. cursor: pointer;
  160. .size(24rpx);
  161. line-height: 40rpx;
  162. margin-top: 16rpx;
  163. padding: 0 24rpx;
  164. width: max-content;
  165. }
  166. }
  167. }
  168. .order_status {
  169. color: var(--primary);
  170. .size(24rpx);
  171. height: 40rpx;
  172. .flex_position(flex-end);
  173. margin-top: 16rpx;
  174. .icon-question2 {
  175. .size(36rpx);
  176. }
  177. }
  178. }
  179. .order_footer {
  180. margin-top: 16rpx;
  181. border-top: var(--bor);
  182. .order_price {
  183. .flex_position(flex-end);
  184. color: var(--text);
  185. .size(28rpx);
  186. height: 64rpx;
  187. line-height: 60rpx;
  188. &:first-child {
  189. padding-top: 16rpx;
  190. }
  191. }
  192. .all_price {
  193. font-weight: 700;
  194. color: var(--red);
  195. .price_text {
  196. color: var(--text);
  197. }
  198. }
  199. }
  200. }
  201. }
  202. </style>