accountFreezeRecord.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  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;">{{ title }}</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. <uni-collapse ref="collapse">
  20. <uni-collapse-item v-if="recordType=='1'" :title="collapseTitle" :open="true" :show-arrow="true">
  21. <view class="content">
  22. <text class="text">因您的职级在考核期内,未达成考核任务,按照规则,此部分收益将冻结,考核任务达成后即可提现,在规定期间内未达成考核任务,收益将过期。</text>
  23. </view>
  24. </uni-collapse-item>
  25. <uni-collapse-item v-if="recordType=='2'" :title="collapseTitle" :open="true" :show-arrow="true">
  26. <view class="content">
  27. <text class="text">因您的职级处于冻结状态,且在该职级考核期区间内未完成解锁条件和申请解锁,按照规则,此部分收益已过期,无法再进行领取。</text>
  28. </view>
  29. </uni-collapse-item>
  30. </uni-collapse>
  31. </u-sticky>
  32. <view class="content" v-if="recordType == '1'">
  33. <view class="item" v-for="(item, index) in transferRecords" @click="toReacors(item.id)">
  34. <view class="info">
  35. <view class="name">工作室</view>
  36. <view class="time">{{ item.startTime }}</view>
  37. </view>
  38. <view class="amount">{{ item.amount }}</view>
  39. </view>
  40. </view>
  41. <view class="content" v-if="recordType == '2'">
  42. <view class="cold" v-for="(item, index) in transferRecords" @click="toReacors(item.id)">
  43. <view class="rows">
  44. <view class="left name">工作室</view>
  45. <view class="right amount">{{ item.amount }}</view>
  46. </view>
  47. <view class="rows">
  48. <view class="left">考核时间</view>
  49. <view class="right" style="white-space: pre-line;">
  50. 起{{ item.startTime }}
  51. 止{{ item.endTime }}
  52. </view>
  53. </view>
  54. <view class="rows">
  55. <view class="left">冻结时间</view>
  56. <view class="right">{{ item.freezeTime }}</view>
  57. </view>
  58. <view class="rows">
  59. <view class="left">过期时间</view>
  60. <view class="right">{{ item.expireTime }}</view>
  61. </view>
  62. </view>
  63. </view>
  64. <u-loadmore v-if="userlist.length!=0" :status="status" />
  65. <!-- 筛选组件 -->
  66. <uni-popup :show="statusFilterShow" @close='statusFilterShow=false' headerTitle="筛选状态"
  67. :statusList="quickOptions" contentType="status" @statusConfirm="statusFilterConfirm">
  68. </uni-popup>
  69. <my-date-picker ref="datePicker" @confirmPickDate="confirmPickDate" />
  70. </view>
  71. </template>
  72. <script>
  73. import myDatePicker from '../components/todaydate-picker.vue';
  74. export default {
  75. components: {
  76. myDatePicker
  77. },
  78. data() {
  79. return {
  80. title: '过期记录',
  81. referrerInfo: {}, //个人信息
  82. userlist: [],
  83. pageQuery: {
  84. id: "",
  85. endTime: "",
  86. startTime: "",
  87. appStatus: '',
  88. pageNum: 1,
  89. pageSize: 10,
  90. },
  91. status: 'loadmore',
  92. totalPages: 0,
  93. parentStatus: "",
  94. transferRecords: [
  95. {
  96. grade: '1',
  97. startTime: '2025-09-06',
  98. amount: 10,
  99. endTime: '2025-09-07',
  100. freezeTime: '2025-09-09',
  101. expireTime: '2025-09-08'
  102. },
  103. {
  104. grade: '1',
  105. startTime: '2025-09-06',
  106. amount: 10,
  107. endTime: '2025-09-07',
  108. freezeTime: '2025-09-09',
  109. expireTime: '2025-09-08'
  110. },
  111. {
  112. grade: '1',
  113. startTime: '2025-09-06',
  114. amount: 10,
  115. endTime: '2025-09-07',
  116. freezeTime: '2025-09-09',
  117. expireTime: '2025-09-08'
  118. }
  119. ],
  120. recordType: '',
  121. collapseTitle: '',
  122. statusFilterShow: false,
  123. quickOptions: [{
  124. label: "全部",
  125. value: null,
  126. },
  127. {
  128. label: "正常",
  129. value: "0",
  130. },
  131. {
  132. label: "已冻结",
  133. value: "1",
  134. },
  135. {
  136. label: "已失效",
  137. value: "2",
  138. }
  139. ],
  140. }
  141. },
  142. onReachBottom() {
  143. if (this.pageQuery.pageNum >= this.totalPages) return;
  144. this.status = 'loading';
  145. this.pageQuery.pageNum = ++this.pageQuery.pageNum;
  146. setTimeout(async () => {
  147. let res = await this.$http.post('/newAppPartner/selectByIdList', this.pageQuery);
  148. if (res.code == '200') {
  149. this.userlist = [...this.userlist, ...res.data.list.records];
  150. }
  151. if (this.pageQuery.pageNum >= this.totalPages) this.status = 'nomore';
  152. else this.status = 'loading';
  153. }, 1000)
  154. },
  155. onLoad(options) {
  156. this.pageQuery.id = options.id;
  157. this.recordType = this.$route.query.type
  158. this.title = this.$route.query.type == '1'?'过期记录':this.$route.query.type == '2'?'冻结记录':''
  159. this.collapseTitle = this.$route.query.type == '1'?`共有${this.transferRecords.length}过期记录`:this.$route.query.type == '2'?`共有${this.transferRecords.length}冻结记录`:''
  160. this.querydata();
  161. },
  162. methods: {
  163. back() {
  164. uni.navigateBack({
  165. delta: 1, // 返回的页面数,如果是1表示返回上一页
  166. success: function() {}
  167. });
  168. },
  169. async querydata() {
  170. let res = await this.$http.post('/newAppPartner/selectByIdList', this.pageQuery);
  171. if (res.code == '200') {
  172. this.referrerInfo = res.data.referrer;
  173. this.userlist = res.data.list.records;
  174. this.parentStatus = res.data.parentStatus;
  175. this.totalPages = res.data.list.totalPages;
  176. }
  177. },
  178. //激活时间选择组件
  179. searchPopup() {
  180. this.$refs.datePicker.open()
  181. },
  182. //日期选择回调
  183. confirmPickDate(startdate, enddate) {
  184. this.pageQuery.startTime = startdate;
  185. this.pageQuery.endTime = enddate;
  186. },
  187. statusFilterConfirm(item) {
  188. this.pageQuery.appStatus = item.value;
  189. this.querydata();
  190. this.statusFilterShow = false;
  191. },
  192. }
  193. }
  194. </script>
  195. <style lang="scss" scoped>
  196. .headers {
  197. width: 100%;
  198. z-index: 999999;
  199. padding: 30rpx;
  200. padding-top: 50px;
  201. background: linear-gradient(180deg, #D1EFFE 0%, #FFFFFF 100%);
  202. border-bottom: 1rpx solid #f2f2f2;
  203. text {
  204. font-size: 36rpx;
  205. font-weight: bold;
  206. color: #000;
  207. }
  208. .right {
  209. position: absolute;
  210. right: 30rpx;
  211. image {
  212. width: 28rpx;
  213. height: 28rpx;
  214. margin-right: 4rpx;
  215. }
  216. text {
  217. font-weight: 400;
  218. color: #000;
  219. font-size: 24rpx;
  220. }
  221. }
  222. }
  223. //头部背景
  224. .homeBackground {
  225. position: fixed;
  226. top: 0;
  227. left: 0;
  228. z-index: 999;
  229. width: 100%;
  230. height: 176rpx;
  231. background: linear-gradient(180deg, #D1EFFE 0%, #FFFFFF 100%);
  232. border-bottom: 1rpx solid #f2f2f2;
  233. }
  234. //业绩
  235. .performance {
  236. width: 100%;
  237. height: 60rpx;
  238. background: #EBF4FF;
  239. border-radius: 0rpx 0rpx 0rpx 0rpx;
  240. font-size: 30rpx;
  241. color: #2B67EF;
  242. }
  243. //时间筛选
  244. .filterTime {
  245. width: 100%;
  246. background: #fff;
  247. border-radius: 0rpx 0rpx 0rpx 0rpx;
  248. padding: 20rpx 30rpx;
  249. box-sizing: border-box;
  250. text:first-child {
  251. font-size: 26rpx;
  252. color: #333;
  253. }
  254. text:last-child {
  255. font-size: 19rpx;
  256. color: #666;
  257. margin-left: 4rpx;
  258. }
  259. }
  260. .intro {
  261. position: fixed;
  262. top: 176rpx;
  263. left: 0;
  264. z-index: 999;
  265. width: 100%;
  266. padding: 25rpx 30rpx;
  267. box-sizing: border-box;
  268. background-color: #FFFFFF;
  269. image {
  270. width: 128rpx;
  271. height: 128rpx;
  272. }
  273. text {
  274. font-size: 28rpx;
  275. color: #666;
  276. }
  277. .title {
  278. font-size: 32rpx;
  279. color: #333;
  280. font-weight: bold;
  281. }
  282. .level {
  283. padding: 0 10rpx;
  284. box-sizing: border-box;
  285. font-size: 22rpx;
  286. color: #2D6DFF;
  287. border: 1rpx solid #2D6DFF;
  288. border-radius: 4rpx;
  289. margin-left: 20rpx;
  290. background: rgba(45, 109, 255, 0.1);
  291. }
  292. }
  293. //列表数据
  294. .card {
  295. position: relative;
  296. background: #FFFFFF;
  297. border-radius: 10rpx;
  298. background-image: url("/static/card.png");
  299. background-size: 100% 100%;
  300. border-top: 1px solid;
  301. border-image: linear-gradient(270deg, rgba(45, 109, 255, 0), rgba(45, 109, 255, 1), rgba(45, 109, 255, 0)) 1 1;
  302. padding: 20rpx 30rpx 30rpx;
  303. .card-title {
  304. .avatar {
  305. width: 40rpx;
  306. height: 40rpx;
  307. border-radius: 50%;
  308. image {
  309. width: 100%;
  310. height: 100%;
  311. }
  312. }
  313. >text {
  314. font-size: 24rpx;
  315. color: #666;
  316. }
  317. .name {
  318. font-size: 30rpx;
  319. color: #333;
  320. font-weight: bold;
  321. }
  322. }
  323. .card-data {
  324. .view {
  325. width: 33.33%;
  326. text:first-child {
  327. font-size: 30rpx;
  328. color: #333;
  329. font-weight: bold;
  330. }
  331. text:last-child {
  332. font-size: 24rpx;
  333. color: #999;
  334. }
  335. }
  336. .view:nth-child(2) {
  337. border-left: 1rpx solid #eee;
  338. border-right: 1rpx solid #eee;
  339. }
  340. }
  341. }
  342. .content {
  343. margin: 20rpx 30rpx;
  344. box-sizing: border-box;
  345. background-color: #FFFFFF;
  346. border-radius: 10rpx 10rpx 10rpx 10rpx;
  347. padding: 30rpx;
  348. box-sizing: border-box;
  349. .item{
  350. display: flex;
  351. align-items: center;
  352. justify-content: space-between;
  353. padding:24rpx 0 30rpx;
  354. border-bottom: 1rpx solid #eee;
  355. .info{
  356. .name{
  357. font-size: 30rpx;
  358. color: #333;
  359. }
  360. .time{
  361. font-size: 20rpx;
  362. color: #999;
  363. }
  364. }
  365. .amount{
  366. font-size: 30rpx;
  367. color: #333;
  368. font-weight: 500;
  369. }
  370. }
  371. .cold{
  372. padding: 30rpx 0;
  373. border-bottom: 1rpx solid #eee;
  374. .rows{
  375. display: flex;
  376. justify-content: space-between;
  377. .amount{
  378. font-size: 30rpx;
  379. color: #333;
  380. }
  381. .left{
  382. font-size: 28rpx;
  383. color: #999;
  384. }
  385. .name{
  386. font-size: 30rpx;
  387. color: #333;
  388. }
  389. .right{
  390. font-size: 28rpx;
  391. color: #333;
  392. }
  393. }
  394. }
  395. }
  396. ::v-deep .uni-collapse-cell__title{
  397. background-color: #EBF4FF;
  398. height: 60rpx;
  399. padding: 0 30rpx;
  400. color: #2B67EF;
  401. }
  402. ::v-deep .uni-collapse-cell--hide{
  403. height: 60rpx;
  404. }
  405. ::v-deep .uni-collapse-cell__wrapper .content{
  406. margin: 0;
  407. background-color: #EBF4FF;
  408. color: #2B67EF;
  409. padding: 10rpx 30rpx;
  410. }
  411. ::v-deep .uni-collapse-cell__title::after {
  412. content: ''; /* 确保内容不为空 */
  413. border-width: 4rpx 4rpx 0 0; /* 根据实际需要调整边框宽度 */
  414. border-style: solid;
  415. border-color: #2B67EF; /* 箭头颜色 */
  416. width: 16rpx; /* 箭头宽度 */
  417. height: 16rpx; /* 箭头高度 */
  418. transform: rotate(134deg); /* 旋转角度 */
  419. display: inline-block; /* 确保以块级元素显示 */
  420. margin-left: 10px; /* 根据需要调整边距 */
  421. }
  422. </style>