NotRecorded.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <view class="NotRecorded">
  3. <view class="top-money-view">
  4. <view class="money-num">{{ waitMoney || 0 }}</view>
  5. <view class="add-up-label">{{ text_set.commission_r || '待入账佣金' }}(元)</view>
  6. </view>
  7. <view class="order-list">
  8. <view v-for="(item, index) in orderList" :key="index" class="order-item" @click="goPage(`/pagesT/Distribution/DorderDetail?id=` + item.id)">
  9. <view class="clearfix order-no-view">
  10. <text class="float_left order-no-text">{{ $_utils.formatDate(item.createTime) }}</text>
  11. <text class="float_right order-status-text">
  12. {{ text_set.commission || '佣金' }}:
  13. <text class="rmb-ic">¥</text>
  14. <text class="price-num">{{ item.retMoney || 0 }}</text>
  15. </text>
  16. </view>
  17. <view class="goods-ul">
  18. <view class="goods-li clearfix" v-for="(it, gindex) in item.orderGoods" :key="gindex">
  19. <image class="goods-img float_left" :src="it.goodsImages" mode="aspectFit"></image>
  20. <view class="float_right goods-right">
  21. <view class="goods-name">{{ it.goodsName }}</view>
  22. <view class="goods-descrip">
  23. 规格:
  24. <text style="padding-right: 6upx;">{{ it.unitName }}</text>
  25. <block v-for="(ip, indexSp) in it.specGroup" :key="indexSp">
  26. <text v-if="indexSp > 0">-</text>
  27. <text>{{ ip.specValueName }}</text>
  28. </block>
  29. </view>
  30. <view class="goods-price clearfix">
  31. <view class="float_left">
  32. <text class="price" style="color: fa3534">¥{{ it.price || 0 }}</text>
  33. </view>
  34. <view class="float_right">
  35. <text class="icon-jia">*</text>
  36. <text class="goods-num">{{ it.buyNum }}</text>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <u-loadmore v-if="orderList.length" :status="loading_status" />
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. loading_status: 'loadmore',
  52. orderList: [],
  53. text_set: {},
  54. isLoding: false,
  55. page: 1,
  56. pageSize: 10,
  57. pageTotal: 0,
  58. waitMoney: 0
  59. };
  60. },
  61. onLoad(options) {
  62. uni.setNavigationBarColor({
  63. frontColor: '#ffffff',
  64. backgroundColor: '#fb604e'
  65. });
  66. this.text_set = this.$store.state.distributionTextSet;
  67. if (this.text_set.commission_r) {
  68. uni.setNavigationBarTitle({
  69. title: this.text_set.commission_r || '待入账佣金'
  70. });
  71. }
  72. this.waitMoney = options.waitMoney || 0;
  73. },
  74. onShow() {
  75. this.getCommissionOrder();
  76. },
  77. onReachBottom() {
  78. if (this.pageTotal / this.pageSize > this.page) {
  79. this.page += 1;
  80. this.getOrderSelect();
  81. }
  82. },
  83. methods: {
  84. // 订单
  85. getCommissionOrder() {
  86. this.loading_status = 'loading';
  87. this.$u.api.getCommissionOrder({
  88. page: this.page,
  89. pageSize: this.pageSize,
  90. orderStatus: [2, 3, 4]
  91. }).then(data=>{
  92. if (this.page === 1) {
  93. this.orderList = data.data;
  94. } else {
  95. this.orderList = this.orderList.concat(data.data);
  96. }
  97. this.pageTotal = data.pageTotal;
  98. this.loading_status = this.$_utils.loadStatus(this.page, this.pageSize, this.pageTotal);
  99. });
  100. }
  101. }
  102. };
  103. </script>
  104. <style lang="scss">
  105. body {
  106. background: $page-color-base;
  107. }
  108. .top-money-view {
  109. background: #fb604e;
  110. padding: 50upx 0;
  111. text-align: center;
  112. .money-num {
  113. font-size: 64upx;
  114. color: #ffffff;
  115. padding-bottom: 20upx;
  116. }
  117. .add-up-label {
  118. color: #ffffff;
  119. opacity: 0.5;
  120. font-size: 24upx;
  121. }
  122. }
  123. .order-item {
  124. margin: 24upx 0;
  125. // padding: 0 30upx;
  126. background-color: #fff;
  127. border-bottom: 2upx solid #f5f5f5;
  128. .order-no-view {
  129. font-size: 24upx;
  130. padding: 24upx 30upx;
  131. color: #666;
  132. font-weight: 300;
  133. border-bottom: 1upx solid #eee;
  134. .order-status-text {
  135. font-weight: 400;
  136. color: #999;
  137. .rmb-ic {
  138. color: #fa3534;
  139. font-size: 22upx;
  140. }
  141. .price-num {
  142. color: #fa3534;
  143. font-size: 28upx;
  144. margin-left: 6upx;
  145. }
  146. }
  147. }
  148. .goods-li {
  149. // background: #fafafa;
  150. border-bottom: 1upx solid #eee;
  151. padding: 30upx 20upx;
  152. margin-bottom: 20upx;
  153. .goods-img {
  154. width: 180upx;
  155. height: 180upx;
  156. }
  157. .goods-right {
  158. width: 500upx;
  159. margin-left: 20upx;
  160. .goods-name {
  161. color: #333;
  162. font-size: 32upx;
  163. margin-bottom: 19upx;
  164. text-overflow: -o-ellipsis-lastline;
  165. overflow: hidden;
  166. text-overflow: ellipsis;
  167. display: -webkit-box;
  168. -webkit-line-clamp: 1;
  169. line-clamp: 1;
  170. -webkit-box-orient: vertical;
  171. }
  172. .goods-descrip {
  173. font-size: 22upx;
  174. color: #999;
  175. margin-bottom: 28upx;
  176. // font-weight: 300;
  177. text-overflow: -o-ellipsis-lastline;
  178. overflow: hidden;
  179. text-overflow: ellipsis;
  180. display: -webkit-box;
  181. -webkit-line-clamp: 1;
  182. line-clamp: 1;
  183. -webkit-box-orient: vertical;
  184. }
  185. .goods-price {
  186. .price {
  187. color: $price-color;
  188. font-size: 40upx;
  189. }
  190. .sku {
  191. font-size: 22upx;
  192. font-weight: 300;
  193. color: #666;
  194. }
  195. .icon-jia {
  196. color: #666;
  197. font-size: 24upx;
  198. }
  199. .goods-num {
  200. font-size: 24upx;
  201. }
  202. }
  203. }
  204. }
  205. .goods-li:last-child {
  206. margin-bottom: 0;
  207. border-bottom: 0 none;
  208. }
  209. }
  210. </style>