金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
3.5 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="订单详情" :showIcon="true"></lf-nav>
  4. <view class="card" v-if="type == 'default'">
  5. <view class="lf-font-28">
  6. <text class="lf-color-222 lf-font-bold">王小二</text>
  7. <text class="lf-color-777 lf-m-l-20">18284385380</text>
  8. </view>
  9. <view class="lf-font-28 lf-color-333 lf-m-t-20">
  10. <text>广西壮族自治区-南宁市-青秀区-民族大道民族大道民族大道民族大道民族大道民族大道15号</text>
  11. </view>
  12. </view>
  13. <view class="card goods">
  14. <view>
  15. <text class="lf-iconfont icon-Group- lf-font-30"></text>
  16. <text class="shop-name">精品超市</text>
  17. <text class="lf-iconfont icon-xiangyou lf-font-24"></text>
  18. </view>
  19. <view class="lf-flex lf-m-t-20">
  20. <image class="goods-img"></image>
  21. <view class="info">
  22. <view class="lf-font-26 lf-color-333 lf-line-1">爱他美较大婴儿配方奶粉较大配方奶粉较2段 </view>
  23. <view class="lf-font-24 lf-color-777">500g</view>
  24. <view class="lf-row-between" style="line-height: 1;">
  25. <text class="price">¥385</text>
  26. <text class="lf-font-28 lf-color-777">x 2</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="card" v-if="type == 'point'">
  32. <view class="lf-row-between lf-font-28">
  33. <text class="lf-color-777">积分数量</text>
  34. <text class="lf-color-222">385</text>
  35. </view>
  36. </view>
  37. <view class="card" v-if="type == 'default'">
  38. <view class="lf-row-between lf-font-28">
  39. <text class="lf-color-777">订单总价</text>
  40. <text class="lf-color-222">¥385</text>
  41. </view>
  42. <view class="lf-row-between lf-font-28 lf-m-t-30">
  43. <text class="lf-color-777">优惠券</text>
  44. <text style="color: #F63434;">-¥20</text>
  45. </view>
  46. </view>
  47. <view class="card">
  48. <view class="lf-row-between lf-font-28">
  49. <text class="lf-color-777">商品订单编号</text>
  50. <text class="lf-color-222">75894375395739345</text>
  51. </view>
  52. <view class="lf-row-between lf-font-28 lf-m-t-30">
  53. <text class="lf-color-777">订单编号</text>
  54. <text class="lf-color-222">75894375395739345</text>
  55. </view>
  56. <view class="lf-row-between lf-font-28 lf-m-t-30">
  57. <text class="lf-color-777">创建时间</text>
  58. <text class="lf-color-222">2021-09-07 10:21:38</text>
  59. </view>
  60. <view class="lf-row-between lf-font-28 lf-m-t-30" v-if="type == 'point'">
  61. <text class="lf-color-777">兑换状态</text>
  62. <text class="lf-color-222">兑换成功</text>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. data(){
  70. return {
  71. type: 'default' // point积分订单详情, default默认普通商品订单详情
  72. }
  73. },
  74. onLoad(options){
  75. this.type = options.type || this.type;
  76. },
  77. methods: {
  78. }
  79. }
  80. </script>
  81. <style>
  82. page{
  83. background-color: #F8F8F8;
  84. }
  85. </style>
  86. <style lang="scss" scoped="scoped">
  87. .card{
  88. height: max-content;
  89. width: 750rpx;
  90. padding: 30rpx 32rpx;
  91. background-color: #FFFFFF;
  92. &:nth-child(n+2){
  93. margin-top: 20rpx;
  94. }
  95. }
  96. .goods{
  97. .shop-name{
  98. font-size: 28rpx;
  99. color: #222222;
  100. font-weight: bold;
  101. margin: 0 15rpx;
  102. }
  103. .goods-img{
  104. width: 130rpx;
  105. height: 130rpx;
  106. border-radius: 4rpx;
  107. margin-right: 15rpx;
  108. background-color: #EEEEEE;
  109. }
  110. .info{
  111. width: 540rpx;
  112. height: 130rpx;
  113. display: flex;
  114. flex-direction: column;
  115. justify-content: space-around;
  116. .price{
  117. font-size: 32rpx;
  118. color: #F63434;
  119. font-weight: bold;
  120. }
  121. }
  122. .order-num{
  123. font-size: 24rpx;
  124. color: #999999;
  125. display: flex;
  126. justify-content: space-between;
  127. margin-top: 28rpx;
  128. }
  129. }
  130. </style>