ATFOrderInfo.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="order-info-container">
  3. <view style="color: #666666;">订单编号:{{ data.orderFormid }}</view>
  4. <!-- <view style="margin-top: 20upx;padding: 20upx;font-size: 26upx;background-color: #eeeeee;">
  5. <view>收货人:{{ data.consignee }}-{{ data.mobile }}</view>
  6. <view>{{ data.address }}</view>
  7. <view v-if="data.message">留言:{{ data.message }}</view>
  8. </view> -->
  9. <view style="margin-top: 20upx;padding: 0 20upx;">
  10. <view v-if="data.state">
  11. 订单状态:
  12. {{ orderTypeEnum[data.state] || '--' }}
  13. </view>
  14. <view v-if="data.shopName">商户:{{ data.shopName }}</view>
  15. <view v-if="data.logisticsPrice">快递运费:¥{{ data.logisticsPrice }}</view>
  16. <view v-if="data.discountPrice">平台优惠:-¥{{ data.discountPrice }}</view>
  17. </view>
  18. <view style="padding: 0 20upx;">
  19. <view style="display: flex;justify-content: space-between;">
  20. <view v-if="typeof data.orderPrice === 'number'">商品总价:<text style="color: red;">¥{{ data.orderPrice }}</text></view>
  21. <view v-if="typeof data.price === 'number'">实付款:<text style="color: red;">¥{{ data.price }}</text></view>
  22. </view>
  23. <view style="margin-top: 12upx;padding-top: 12upx;;border-top: 1px solid #dddddd;">
  24. <view style="display: flex;justify-content: space-between;font-size: 26upx;color: #999999;">
  25. <text>创建时间:</text>
  26. <text>{{ data.createTime }}</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import { orderTypeEnum } from './config'
  34. export default {
  35. name: 'ATFOrderInfo',
  36. props: {
  37. data: {
  38. type: Object,
  39. required: true
  40. }
  41. },
  42. data() {
  43. return {
  44. orderTypeEnum
  45. }
  46. },
  47. methods: {
  48. }
  49. }
  50. </script>
  51. <style lang="less" scoped>
  52. .order-info-container {
  53. }
  54. </style>