incomingTransferLog.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <view class="">
  3. <public-module></public-module>
  4. <u-sticky h5-nav-height="0">
  5. <view class="headers dis a-c j-start">
  6. <u-icon name="arrow-left" color="#333" size="38" @click="back"></u-icon>
  7. <text style="margin: auto;">转入记录</text>
  8. </view>
  9. <view class="filterTime dis j-s a-c ">
  10. <view class=" dis a-c " @click="searchPopup">
  11. <text>{{pageQuery.startTime && pageQuery.endTime ? pageQuery.startTime + '-' + pageQuery.endTime : '时间筛选' }}</text>
  12. <text>▼</text>
  13. </view>
  14. <view class=" dis a-c " @click="statusFilterShow=true">
  15. <text>{{ pageQuery.appStatus == '0'?'正常':pageQuery.appStatus == '1'?'已冻结':pageQuery.appStatus == '2'?'已失效':'全部' }}</text>
  16. <text>▼</text>
  17. </view>
  18. </view>
  19. <view class="performance dis a-c j-c ">
  20. 共有 5笔订单,保费5元,佣金5元
  21. </view>
  22. </u-sticky>
  23. <view class="content">
  24. <view class="item" v-for="(item, index) in transferRecords" @click="toReacors(item.id)">
  25. <view class="info">
  26. <view class="name">{{ item.grade }}</view>
  27. <view class="time">{{ item.startTime }}</view>
  28. </view>
  29. <view class="amount">{{ item.amount }}</view>
  30. </view>
  31. </view>
  32. <!-- 筛选组件 -->
  33. <uni-popup :show="statusFilterShow" @close='statusFilterShow=false' headerTitle="筛选状态"
  34. :statusList="quickOptions" contentType="status" @statusConfirm="statusFilterConfirm">
  35. </uni-popup>
  36. <u-loadmore v-if="userlist.length!=0" :status="status" />
  37. <my-date-picker ref="datePicker" @confirmPickDate="confirmPickDate" />
  38. </view>
  39. </template>
  40. <script>
  41. import myDatePicker from '../components/todaydate-picker.vue';
  42. export default {
  43. components: {
  44. myDatePicker
  45. },
  46. data() {
  47. return {
  48. referrerInfo: {}, //个人信息
  49. userlist: [],
  50. pageQuery: {
  51. id: "",
  52. endTime: "",
  53. startTime: "",
  54. appStatus: '',
  55. pageNum: 1,
  56. pageSize: 10,
  57. },
  58. status: 'loadmore',
  59. totalPages: 0,
  60. parentStatus: "",
  61. transferRecords: [
  62. {
  63. grade: '工作室',
  64. startTime: '2025-09-06',
  65. amount: 10
  66. },
  67. {
  68. grade: '工作室',
  69. startTime: '2025-09-06',
  70. amount: 10
  71. },
  72. {
  73. grade: '工作室',
  74. startTime: '2025-09-06',
  75. amount: 10
  76. }
  77. ],
  78. statusFilterShow: false,
  79. quickOptions: [{
  80. label: "全部",
  81. value: null,
  82. },
  83. {
  84. label: "正常",
  85. value: "0",
  86. },
  87. {
  88. label: "已冻结",
  89. value: "1",
  90. },
  91. {
  92. label: "已失效",
  93. value: "2",
  94. }
  95. ],
  96. }
  97. },
  98. onReachBottom() {
  99. // if (this.pageQuery.pageNum >= this.totalPages) return;
  100. // this.status = 'loading';
  101. // this.pageQuery.pageNum = ++this.pageQuery.pageNum;
  102. // setTimeout(async () => {
  103. // let res = await this.$http.post('/newAppPartner/selectByIdList', this.pageQuery);
  104. // if (res.code == '200') {
  105. // this.userlist = [...this.userlist, ...res.data.list.records];
  106. // }
  107. // if (this.pageQuery.pageNum >= this.totalPages) this.status = 'nomore';
  108. // else this.status = 'loading';
  109. // }, 1000)
  110. },
  111. onLoad(options) {
  112. this.pageQuery.id = options.id;
  113. this.querydata();
  114. },
  115. methods: {
  116. back() {
  117. uni.navigateBack({
  118. delta: 1, // 返回的页面数,如果是1表示返回上一页
  119. success: function() {}
  120. });
  121. },
  122. async querydata() {
  123. let res = await this.$http.post('/partnerExtractHistory/query', {
  124. ...this.pageQuery,
  125. grage: Number(this.$route.query.grade)
  126. })
  127. console.log(12312321, res)
  128. },
  129. toReacors(id) {
  130. uni.navigateTo({
  131. url: "/pages/institutional/accountFreezeRecord?id="+id + '&&grade=' + this.$route.query.grade + '&&type=2'
  132. })
  133. },
  134. //激活时间选择组件
  135. searchPopup() {
  136. this.$refs.datePicker.open()
  137. },
  138. //日期选择回调
  139. confirmPickDate(startdate, enddate) {
  140. this.pageQuery.startTime = startdate;
  141. this.pageQuery.endTime = enddate;
  142. },
  143. statusFilterConfirm(item) {
  144. this.pageQuery.appStatus = item.value;
  145. this.querydata();
  146. this.statusFilterShow = false;
  147. },
  148. }
  149. }
  150. </script>
  151. <style lang="scss" scoped>
  152. .headers {
  153. width: 100%;
  154. z-index: 999999;
  155. padding: 30rpx;
  156. padding-top: 50px;
  157. background: linear-gradient(180deg, #D1EFFE 0%, #FFFFFF 100%);
  158. border-bottom: 1rpx solid #f2f2f2;
  159. text {
  160. font-size: 36rpx;
  161. font-weight: bold;
  162. color: #000;
  163. }
  164. .right {
  165. position: absolute;
  166. right: 30rpx;
  167. image {
  168. width: 28rpx;
  169. height: 28rpx;
  170. margin-right: 4rpx;
  171. }
  172. text {
  173. font-weight: 400;
  174. color: #000;
  175. font-size: 24rpx;
  176. }
  177. }
  178. }
  179. //业绩
  180. .performance {
  181. width: 100%;
  182. height: 60rpx;
  183. background: #EBF4FF;
  184. border-radius: 0rpx 0rpx 0rpx 0rpx;
  185. font-size: 30rpx;
  186. color: #2B67EF;
  187. }
  188. //时间筛选
  189. .filterTime {
  190. width: 100%;
  191. background: #fff;
  192. border-radius: 0rpx 0rpx 0rpx 0rpx;
  193. padding: 20rpx 30rpx;
  194. box-sizing: border-box;
  195. text:first-child {
  196. font-size: 26rpx;
  197. color: #333;
  198. }
  199. text:last-child {
  200. font-size: 19rpx;
  201. color: #666;
  202. margin-left: 4rpx;
  203. }
  204. }
  205. .content {
  206. margin: 20rpx 30rpx;
  207. box-sizing: border-box;
  208. background-color: #FFFFFF;
  209. border-radius: 10rpx 10rpx 10rpx 10rpx;
  210. padding: 30rpx;
  211. box-sizing: border-box;
  212. .item{
  213. display: flex;
  214. align-items: center;
  215. justify-content: space-between;
  216. padding:24rpx 0 30rpx;
  217. border-bottom: 1rpx solid #eee;
  218. .info{
  219. .name{
  220. font-size: 30rpx;
  221. color: #333;
  222. }
  223. .time{
  224. font-size: 20rpx;
  225. color: #999;
  226. }
  227. }
  228. .amount{
  229. font-size: 30rpx;
  230. color: #333;
  231. font-weight: 500;
  232. }
  233. }
  234. }
  235. </style>