index.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <view class="actdetail-ward">
  3. <view class="actdetail-ward-tbg">
  4. <view class="actdetail-ward-top">
  5. <view class="money">{{ detailInfo.cash }}</view>
  6. <view class="u-border-right pd">佣金金额</view>
  7. <view class="op8">
  8. {{ ["冻结", "正常", "退款"][detailInfo.cashStatus - 1] }}
  9. </view>
  10. </view>
  11. </view>
  12. <view class="actdetail-ward-main">
  13. <view class="detail-box">
  14. <view class="title">活动详情</view>
  15. <view class="fl lebel">
  16. <view>所属订单</view>
  17. <view>{{ detailInfo.orderSn }}</view>
  18. </view>
  19. <view class="fl lebel">
  20. <view>所属活动</view>
  21. <view>{{ detailInfo.distributionName }}</view>
  22. </view>
  23. <view class="fl lebel">
  24. <view>下单人</view>
  25. <view>{{ detailInfo.orderUserName }}</view>
  26. </view>
  27. <view class="u-border-bottom" style="margin: 12rpx 0 32rpx"></view>
  28. <view class="fl lebel">
  29. <view>订单时间</view>
  30. <view>{{ detailInfo.orderTime | formate("yyyy-mm-dd hh:mm") }}</view>
  31. </view>
  32. <view class="fl lebel">
  33. <view>订单金额</view>
  34. <view>{{ detailInfo.orderPrice }}元</view>
  35. </view>
  36. </view>
  37. <view class="detail-box">
  38. <view class="title">佣金信息</view>
  39. <view class="fl lebel">
  40. <view>分成方式</view>
  41. <view>{{ ["百分比", "固定金额"][detailInfo.cashType - 1] }}</view>
  42. </view>
  43. <view class="fl lebel">
  44. <view>数值</view>
  45. <view>
  46. {{ detailInfo.cashRatio }}{{ detailInfo.cashType == 1 ? "%" : "" }}
  47. </view>
  48. </view>
  49. <view class="fl lebel">
  50. <view>佣金金额</view>
  51. <view>{{ detailInfo.cash }}元</view>
  52. </view>
  53. <view class="fl lebel">
  54. <view>结算时间</view>
  55. <view>{{ detailInfo.cashTime | formate("yyyy-mm-dd hh:mm") }}</view>
  56. </view>
  57. <view class="fl lebel">
  58. <view>佣金状态</view>
  59. <view>{{ ["冻结", "正常", "退款"][detailInfo.cashStatus - 1] }}</view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. import { getComDetail } from "@/utils/commission";
  67. export default {
  68. data() {
  69. return {
  70. detailInfo: {},
  71. };
  72. },
  73. onLoad(options) {
  74. this.getComDetail(options.id);
  75. },
  76. methods: {
  77. getComDetail(id) {
  78. getComDetail(id).then((res) => {
  79. this.detailInfo = res;
  80. });
  81. },
  82. },
  83. };
  84. </script>
  85. <style lang="scss" scoped>
  86. page {
  87. background-color: #f6f7fb;
  88. }
  89. .actdetail-ward {
  90. .actdetail-ward-tbg {
  91. width: 100%;
  92. height: 429rpx;
  93. top: 80rpx;
  94. background: linear-gradient(180deg, #3f8dfd 49%, rgba(0, 105, 255, 0) 100%);
  95. padding: 80rpx 24rpx 0;
  96. box-sizing: border-box;
  97. .actdetail-ward-top {
  98. color: #eee;
  99. font-size: 28rpx;
  100. view {
  101. display: inline-block;
  102. margin-right: 16rpx;
  103. }
  104. .money {
  105. font-size: 72rpx;
  106. color: #ffffff;
  107. }
  108. .pd {
  109. line-height: 28rpx;
  110. padding-right: 16rpx;
  111. }
  112. }
  113. }
  114. .actdetail-ward-main {
  115. padding: 24rpx;
  116. position: absolute;
  117. top: 180rpx;
  118. width: 100%;
  119. box-sizing: border-box;
  120. .actdetail-ward-goods {
  121. .goods-list {
  122. .goods-list-item {
  123. background: #fafafa;
  124. border-radius: 8rpx;
  125. padding: 32rpx 32rpx 0;
  126. color: #7e7d83;
  127. font-size: 26rpx;
  128. margin-bottom: 24rpx;
  129. .lebel {
  130. align-items: flex-start;
  131. view {
  132. margin-bottom: 20rpx;
  133. &:nth-of-type(1) {
  134. width: 170rpx;
  135. }
  136. &:nth-of-type(2) {
  137. flex: 1;
  138. line-height: 40rpx;
  139. }
  140. }
  141. }
  142. }
  143. }
  144. }
  145. .detail-box {
  146. background: #ffffff;
  147. border-radius: 16rpx;
  148. padding: 32rpx 24rpx 10rpx;
  149. margin-bottom: 24rpx;
  150. .title {
  151. font-weight: bold;
  152. color: #24263d;
  153. font-size: 32rpx;
  154. margin-bottom: 32rpx;
  155. }
  156. .desc {
  157. padding-bottom: 40rpx;
  158. .desc-title {
  159. padding: 32rpx 0 24rpx;
  160. }
  161. text {
  162. color: #484848;
  163. font-size: 28rpx;
  164. opacity: 0.7;
  165. }
  166. }
  167. .lebel {
  168. color: #484848;
  169. font-size: 28rpx;
  170. width: 100%;
  171. view {
  172. margin-bottom: 20rpx;
  173. &:nth-of-type(1) {
  174. width: 188rpx;
  175. }
  176. &:nth-of-type(2) {
  177. flex: 1;
  178. line-height: 40rpx;
  179. }
  180. }
  181. }
  182. }
  183. }
  184. }
  185. </style>