order-information.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view class="order-information page-width">
  3. <view class="page-width information">
  4. <view class="top">
  5. <view class="item">
  6. <text class="gray">订单号:</text>
  7. <text class="black">{{order_no}}</text>
  8. </view>
  9. <view class="item">
  10. <text class="gray">付款时间:</text>
  11. <text class="black">{{pay_time}}</text>
  12. </view>
  13. </view>
  14. <view class="bottom">
  15. <view class="item">
  16. <text class="gray">礼物玩法:</text>
  17. <text class="black">{{type === 'direct_open'? '直接领取' : type === 'time_open' ? '定时开奖' : '满人开奖'}}</text>
  18. </view>
  19. <view class="item" v-if="type === 'time_open'">
  20. <text class="gray">开奖时间:</text>
  21. <text class="black">{{open_time}}</text>
  22. </view>
  23. <view class="item" v-else-if="type === 'num_open'">
  24. <text class="gray">开奖人数:</text>
  25. <text class="black">满{{open_num}}人</text>
  26. </view>
  27. <view class="item">
  28. <text class="gray">礼物状态:</text>
  29. <text class="black">{{status}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. name: 'order-information',
  38. props: [`status`, `order_no`, `type`, `pay_time`, `open_time`, `open_num`],
  39. }
  40. </script>
  41. <style scoped lang="scss">
  42. @import '../../css/gift.scss';
  43. /*订单信息*/
  44. .order-information {
  45. margin-top: #{24upx};
  46. padding: #{0 24upx};
  47. /*信息*/
  48. .information {
  49. background-color: #ffffff;
  50. border-radius: #{16upx};
  51. padding: #{28upx 24upx 12upx 24upx};
  52. /*订单号 下单时间*/
  53. .top {
  54. border-bottom: #{1upx} solid #e2e2e2;
  55. }
  56. /*订单状态*/
  57. .bottom {
  58. margin-top: #{16upx};
  59. }
  60. .item {
  61. font-size: #{24upx};
  62. line-height: 1;
  63. margin-bottom: #{16upx};
  64. }
  65. }
  66. }
  67. </style>