earn_details.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view class="dt-page">
  3. <view class="container">
  4. <view class="goods-info" v-for="item,index in data.orderItems" :key="index">
  5. <image :src="item.thumbnail?item.thumbnail:''" mode="widthFix"></image>
  6. <view class="goods-right">
  7. <view class="goods-name">{{item.name}}</view>
  8. <view class="goods-spec">
  9. <text class="text">规格:<text v-for="child in item.specification" style="margin-left: 8upx;">{{child}}</text></text>
  10. </view>
  11. <view class="goods-bottom">
  12. <view>{{`¥${item.price}`}}</view>
  13. <view>{{`×${item.num}`}}</view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="order-info">
  18. <view class="item">
  19. <text class="item-title">订单状态</text>
  20. <text class="item-value">{{data.orderStatusTxt}}</text>
  21. </view>
  22. <view class="item">
  23. <text class="item-title">购买用户</text>
  24. <text class="item-value">{{data.buyUserName}}</text>
  25. </view>
  26. <view class="item">
  27. <text class="item-title">商品总价</text>
  28. <text class="item-value">{{data.orderAmt}}</text>
  29. </view>
  30. <view class="item">
  31. <text class="item-title">运费</text>
  32. <text class="item-value">{{data.orderFreight}}</text>
  33. </view>
  34. <view class="item">
  35. <text class="item-title">实付金额</text>
  36. <text class="item-value">{{data.orderAmtPaid}}</text>
  37. </view>
  38. <view class="item">
  39. <text class="item-title">佣金</text>
  40. <text class="item-value">{{data.commission}}</text>
  41. </view>
  42. <view class="item">
  43. <text class="item-title">订单编号</text>
  44. <text class="item-value">{{data.sn}}</text>
  45. </view>
  46. <view class="item">
  47. <text class="item-title">交易日期</text>
  48. <text class="item-value">{{data.createdDate}}</text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import DtEmpty from '../comps/dt_empty.vue'
  56. export default {
  57. components:{
  58. DtEmpty
  59. },
  60. data() {
  61. return {
  62. id:null,
  63. data:null
  64. };
  65. },
  66. methods:{
  67. onLoadPage(options) {
  68. this.id = options.id || null;
  69. this.getData()
  70. },
  71. async getData(){
  72. let resp = await this.$api.getMyDistributionCommissionDetails({
  73. _isShowLoading: true,
  74. id:this.id,
  75. })
  76. this.data = resp
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .dt-page{
  83. min-height: 100vh;
  84. .container{
  85. padding: 21upx;
  86. .goods-info{
  87. display: flex;
  88. padding: 24upx;
  89. margin-bottom: 21upx;
  90. background:rgba(255,255,255,1);
  91. box-shadow:0px 0px 10upx 0px rgba(21,20,80,0.07);
  92. border-radius:20upx;
  93. image{
  94. width:170upx;
  95. height:170upx;
  96. background:#f7f7f7;
  97. border-radius:10upx;
  98. display: block;
  99. margin-right: 24upx;
  100. }
  101. .goods-right{
  102. flex:1;
  103. .goods-name{
  104. height:60upx;
  105. line-height: 60upx;
  106. font-size:36upx;
  107. font-family:PingFang SC;
  108. font-weight:400;
  109. color:rgba(51,51,51,1);
  110. }
  111. .goods-spec{
  112. .text{
  113. display: inline-block;
  114. height:38upx;
  115. line-height:38upx;
  116. background:rgba(238,238,238,1);
  117. border-radius:19upx;
  118. font-size:24upx;
  119. color:rgba(153,153,153,1);
  120. padding: 0 12upx;
  121. }
  122. }
  123. .goods-bottom{
  124. margin-top: 35upx;
  125. flex:1;
  126. display: flex;
  127. justify-content: space-between;
  128. view{
  129. height:19upx;
  130. font-size:24upx;
  131. font-family:PingFang SC;
  132. font-weight:400;
  133. color:rgba(232,46,46,1);
  134. }
  135. }
  136. }
  137. }
  138. .order-info{
  139. padding: 24upx;
  140. background:rgba(255,255,255,1);
  141. box-shadow:0upx 0upx 10upx 0upx rgba(21,20,80,0.07);
  142. border-radius:20upx;
  143. .item{
  144. display: flex;
  145. justify-content: space-between;
  146. line-height: 50upx;
  147. height: 50upx;
  148. .item-title{
  149. font-size:24upx;
  150. font-family:PingFang SC;
  151. font-weight:400;
  152. color:rgba(51,51,51,1);
  153. }
  154. .item-value{
  155. font-size:24upx;
  156. font-family:PingFang SC;
  157. font-weight:400;
  158. color:rgba(102,102,102,1);
  159. text-align: right;
  160. }
  161. }
  162. }
  163. }
  164. }
  165. </style>