integral.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. <template>
  2. <!-- 积分详情 -->
  3. <view class="pageTop">
  4. <view class='integral-details' :style="colorStyle">
  5. <view class='header'>
  6. <view class='nav acea-row'>
  7. <!-- <view class='item'>
  8. <view class='num'>{{userInfo.action_integral}}</view>
  9. <view>贡献分</view>
  10. </view> -->
  11. <view class='item'>
  12. <view class='num'>{{userMoney}}</view>
  13. <view v-if="modelType==2">总参考分</view>
  14. <view v-else>当前余额</view>
  15. </view>
  16. </view>
  17. <navigator url="/pages/users/user_payment/integral" v-if="modelType==3">
  18. <view class="target">
  19. 消费分转账
  20. </view>
  21. </navigator>
  22. </view>
  23. <view class='wrapper'>
  24. <view class='nav acea-row'>
  25. <template v-for="(item,index) in navList">
  26. <view v-if="(modelType==3||modelType==2)&&index==0" class='item acea-row row-center-wrapper'
  27. :class='current==index?"on":""' :key='index' @click='nav(index)'><text class='iconfont'
  28. :class="item.icon"></text>{{item.name}}</view>
  29. </template>
  30. </view>
  31. <view class='list'>
  32. <view class='item acea-row row-between-wrapper'
  33. v-for="(item,index) in navList[current].integralList" :key="index">
  34. <view>
  35. <view class='state'>{{item.mark}}</view>
  36. <view v-if="modelType==2">
  37. 释放 {{(item.sent_day)}}/{{item.send_day}}天 释放值 {{item.day_send+item.computedNum}}
  38. </view>
  39. <view v-if="modelType==2">
  40. 提取 {{item.extracted_num}}/{{item.sent_num}} 复投 {{item.reorder_count}}次
  41. </view>
  42. <view v-if="modelType==2">{{item.add_time|dateFormat}}</view>
  43. <view v-else>{{item.add_time}}</view>
  44. </view>
  45. <view class='num font-color' style="flex-shrink: 0;">
  46. <view class="modelType" v-if="modelType==2">{{item.num}}</view>
  47. <view v-else>{{item.num}}</view>
  48. <!-- <view class='buttom' @click='out(item)'
  49. v-if="item.status==0&&modelType==2&&item.extract_num>0">立即提取</view> -->
  50. </view>
  51. </view>
  52. <view class='loadingicon acea-row row-center-wrapper' v-if="navList[current].integralList.length>0">
  53. <text class='loading iconfont icon-jiazai'
  54. :hidden='navList[current].loading==false'></text>{{navList[current].loadTitle}}
  55. </view>
  56. <view v-if="navList[current].integralList.length == 0">
  57. <emptyPage title="暂无记录哦~"></emptyPage>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <home v-if="navigation"></home>
  63. <!-- #ifdef MP -->
  64. <!-- <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize> -->
  65. <!-- #endif -->
  66. </view>
  67. </template>
  68. <script>
  69. import home from '@/components/home';
  70. import {
  71. getUserInfo,
  72. getIntegralListAction,
  73. getIntegralListActionOut,
  74. getIntegralList,
  75. } from '@/api/user.js';
  76. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  77. import {
  78. toLogin
  79. } from '@/libs/login.js';
  80. import {
  81. mapGetters
  82. } from "vuex";
  83. import emptyPage from '@/components/emptyPage.vue';
  84. import colors from '@/mixins/color'
  85. export default {
  86. components: {
  87. emptyPage,
  88. home
  89. },
  90. filters: {
  91. dateFormat: function(value) {
  92. return dayjs(value * 1000).format('YYYY-MM-DD hh:mm:ss');
  93. }
  94. },
  95. mixins: [colors],
  96. data() {
  97. return {
  98. modelType: 0,
  99. numType: '',
  100. navList: [{
  101. 'name': '全部',
  102. page: 1,
  103. limit: 10,
  104. integralList: [],
  105. loadend: false,
  106. loading: false,
  107. loadTitle: '加载更多',
  108. },
  109. {
  110. 'name': '收入',
  111. page: 1,
  112. limit: 10,
  113. integralList: [],
  114. loadend: false,
  115. loading: false,
  116. loadTitle: '加载更多',
  117. },
  118. {
  119. 'name': '支出',
  120. page: 1,
  121. limit: 10,
  122. integralList: [],
  123. loadend: false,
  124. loading: false,
  125. loadTitle: '加载更多',
  126. }
  127. ],
  128. current: 0,
  129. userInfo: {},
  130. isAuto: false, //没有授权的不会自动授权
  131. isShowAuth: false, //是否隐藏授权
  132. isTime: 0
  133. };
  134. },
  135. computed: {
  136. ...mapGetters(['isLogin']),
  137. userMoney() {
  138. if (this.numType) {
  139. return this.userInfo[this.numType]
  140. } else {
  141. return 0
  142. }
  143. }
  144. },
  145. watch: {
  146. isLogin: {
  147. handler: function(newV, oldV) {
  148. if (newV) {
  149. this.getUserInfo();
  150. this.getIntegralList();
  151. }
  152. },
  153. deep: true
  154. }
  155. },
  156. onLoad(option) {
  157. if (this.isLogin) {
  158. this.getUserInfo();
  159. if (option.type == 2) {
  160. uni.setNavigationBarTitle({
  161. title: "参考分"
  162. })
  163. }
  164. if (option.type == 3) {
  165. uni.setNavigationBarTitle({
  166. title: "消费分"
  167. })
  168. }
  169. if (option.type) {
  170. this.modelType = option.type;
  171. }
  172. if (option.numType) {
  173. this.numType = option.numType;
  174. }
  175. this.loadList();
  176. } else {
  177. toLogin()
  178. }
  179. },
  180. onShow() {
  181. uni.removeStorageSync('form_type_cart');
  182. },
  183. /**
  184. * 页面上拉触底事件的处理函数
  185. */
  186. onReachBottom: function() {
  187. this.loadList();
  188. },
  189. methods: {
  190. loadList() {
  191. if (this.modelType == 2) {
  192. this.getIntegralListAction();
  193. }
  194. if (this.modelType == 3) {
  195. this.getIntegralList();
  196. }
  197. },
  198. /**
  199. * 授权回调
  200. */
  201. onLoadFun: function() {
  202. this.getUserInfo();
  203. this.getIntegralList();
  204. this.isShowAuth = false;
  205. },
  206. // 授权关闭
  207. authColse: function(e) {
  208. this.isShowAuth = e
  209. },
  210. // 立即出局
  211. out(item) {
  212. const that = this;
  213. uni.showModal({
  214. title: '提示',
  215. content: `是否立即提取${item.extract_num
  216. }参考分`,
  217. success: res => {
  218. if (res.confirm) {
  219. uni.showModal({
  220. title: '请输入登录密码确认',
  221. editable: true,
  222. success: res => {
  223. if (res.confirm) {
  224. getIntegralListActionOut({
  225. id: item.id,
  226. password: res.content,
  227. num: item.extract_num
  228. }).then((res) => {
  229. that.getIntegralListAction();
  230. uni.showToast({
  231. title: res.msg,
  232. });
  233. }).catch((err) => {
  234. uni.showToast({
  235. title: err,
  236. icon: 'error'
  237. });
  238. })
  239. }
  240. },
  241. });
  242. }
  243. },
  244. fail: () => {},
  245. complete: () => {}
  246. });
  247. },
  248. getUserInfo: function() {
  249. let that = this;
  250. getUserInfo({}).then(function(res) {
  251. console.log(res.data);
  252. res.data.integral_price = (+res.data.integral_price).toFixed(2);
  253. res.data.static_integral = (+res.data.static_integral).toFixed(2);
  254. res.data.action_integral = (+res.data.action_integral).toFixed(2);
  255. that.$set(that, 'userInfo', res.data);
  256. });
  257. },
  258. // 消费分记录
  259. getIntegralListAction: function() {
  260. let that = this.navList[this.current];
  261. const thatt = this;
  262. if (that.loading) return;
  263. if (that.loadend) return;
  264. that.loading = true;
  265. that.loadTitle = '';
  266. getIntegralListAction({
  267. page: that.page,
  268. limit: that.limit,
  269. type: this.current
  270. }).then(function(res) {
  271. let list = res.data.list.map((e) => {
  272. e.up_speed = +e.up_speed;
  273. e.day_send = +e.day_send;
  274. e.extract_num = +e.extract_num;
  275. e.sent_num = +e.sent_num;
  276. e.num = +e.num;
  277. e.extracted_num = +e.extracted_num;
  278. e.computedNum = 0;
  279. if (e.up_speed > 0) {
  280. if (e.send_day > e.sent_day) {
  281. e.computedNum = ((e.up_speed - e.up_speed_used) / (e.send_day - e
  282. .sent_day)).toFixed(2) * 1
  283. }
  284. }
  285. return e
  286. })
  287. thatt.addArray(that, list);
  288. }, function(res) {
  289. that.loading = false;
  290. that.loadTitle = '加载更多';
  291. });
  292. },
  293. /**
  294. * 获取积分明细
  295. */
  296. getIntegralList: function() {
  297. let that = this.navList[this.current];
  298. const thatt = this;
  299. if (that.loading) return;
  300. if (that.loadend) return;
  301. that.loading = true;
  302. that.loadTitle = '';
  303. getIntegralList({
  304. page: that.page,
  305. limit: that.limit,
  306. type: this.current
  307. }).then(function(res) {
  308. let list = res.data;
  309. thatt.addArray(that, list)
  310. }, function(res) {
  311. that.loading = false;
  312. that.loadTitle = '加载更多';
  313. });
  314. },
  315. addArray(that, list) {
  316. const SplitArray = this.$util.SplitArray;
  317. try {
  318. let loadend = list.length < that.limit;
  319. that.integralList = SplitArray(list, that.integralList);
  320. that.page = that.page + 1;
  321. that.loading = false;
  322. that.loadend = loadend;
  323. that.loadTitle = loadend ? '没有更多内容啦~' : "加载更多";
  324. } catch (e) {
  325. console.log(e);
  326. //TODO handle the exception
  327. }
  328. console.log(that.integralList, 'that.integralList')
  329. },
  330. nav: function(current) {
  331. this.current = current;
  332. this.getIntegralList();
  333. }
  334. }
  335. }
  336. </script>
  337. <style scoped lang="scss">
  338. .pageTop {}
  339. .integral-details {
  340. .header {
  341. // background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAHMAu4DAREAAhEBAxEB/8QAGQABAQEBAQE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FJPU5JDxOWqc6+i3fS4ytE09dz5l8i589bdESnX6am0Rmn7zmkOTl9QU2hYie8XsvESHNv6qpyIuuhug5sq3wj//EACMRAAMAAgIBAwUAAAAAAAAAAAABERIgAmAwA1FwEFCAkLD/2gAIAQIBAT8A/mZ0pSlKXqt8l+NaUv47VGSKt1oujQhN3yLdLBctl06IxIxvwJzwrpz4Ifp+w+D24vVdUiH6aMGR/VaJMhOrPgmP0/YSaIzFfuapSlKUyMjIyMjIyMjIyKUpS/GU6vOwTxTq02n2n//EACQRAAMAAgICAgIDAQAAAAAAAAABERIgAjBQYAMQQFExQZCw/9oACAEDAQE/AP8AmZ5GRWVlZkUvqlL1UT9Qpe5OCfpre9RTIpVun6W3rS9FE9U/SW9W+xPVPxdKUpSmRkUpSlKZFRUVfgN9yeq8HSlL+RWVmTMjJFX29G98kZoyW6ei8BfC16PZ8/0Nt6JtC5/vZenz65cm+jjygtFovTnwTH8f6Hwa24P+tV9oqMkZGRWV9lKXzrSY/jQ/jaI198XVoil/IpfOvgmP42cE1/Pgr56E8DS/5/QhCEIQhCEIQhCEIQhCEIQhNqZGRkZFMjIyMi7YmJiYmJiYmJiYGBgYmJiYmJiQnlmtoTaE2S9La6IRE6EvTp3QXqEJ1JCXqs2S8T//2Q==');
  342. background-repeat: no-repeat;
  343. background-size: 100% 100%;
  344. width: 100%;
  345. height: 460rpx;
  346. font-size: 72rpx;
  347. color: #fff;
  348. padding: 31rpx 0 45rpx 0;
  349. box-sizing: border-box;
  350. text-align: center;
  351. font-family: 'Guildford Pro';
  352. // background-color: var(--view-theme);
  353. background-image: linear-gradient(45deg, rgb(255, 242, 232) 10%, #fff0f2 35%, rgb(255, 234, 247) 45%, #ffcdd3 75%, #ffb0b3);
  354. position: relative;
  355. padding-top: calc(var(--status-bar-height) + 50rpx);
  356. .currentScore {
  357. font-size: 26rpx;
  358. color: rgba(255, 255, 255, 0.8);
  359. text-align: center;
  360. margin-bottom: 11rpx;
  361. }
  362. .scoreNum {
  363. font-family: "Guildford Pro";
  364. }
  365. .line {
  366. width: 60rpx;
  367. height: 3rpx;
  368. background-color: #fff;
  369. margin: 20rpx auto 0 auto;
  370. }
  371. .nav {
  372. font-size: 22rpx;
  373. color: rgba(255, 255, 255, 0.8);
  374. flex: 1;
  375. margin-top: 94rpx;
  376. overflow: hidden;
  377. .item {
  378. width: 100%;
  379. text-align: center;
  380. font-weight: bold;
  381. font-size: 28rpx;
  382. color: #FFFFFF;
  383. .num {
  384. font-weight: 800;
  385. font-size: 63rpx;
  386. }
  387. }
  388. }
  389. }
  390. }
  391. .integral-details {
  392. .wrapper {
  393. position: relative;
  394. .nav {
  395. flex: 1;
  396. width: 690rpx;
  397. border-radius: 20rpx 20rpx 0 0;
  398. margin: -96rpx auto 0 auto;
  399. background-color: #f7f7f7;
  400. height: 96rpx;
  401. font-size: 30rpx;
  402. color: #bbb;
  403. overflow: hidden;
  404. .item {
  405. text-align: center;
  406. width: 33%;
  407. flex-grow: 1;
  408. &.on {
  409. background-color: #fff;
  410. color: var(--view-theme);
  411. font-weight: bold;
  412. }
  413. .iconfont {
  414. font-size: 38rpx;
  415. margin-right: 10rpx;
  416. }
  417. }
  418. .item:nth-of-type(1).on {
  419. border-radius: 20rpx 0 0 0;
  420. }
  421. .item:nth-of-type(3).on {
  422. border-radius: 0 20rpx 0 0;
  423. }
  424. }
  425. .list {
  426. background-color: #fff;
  427. padding: 24rpx 30rpx;
  428. .tip {
  429. font-size: 25rpx;
  430. width: 690rpx;
  431. min-height: 60rpx;
  432. border-radius: 50rpx;
  433. background-color: #fff5e2;
  434. border: 1rpx solid #ffeac1;
  435. color: #c8a86b;
  436. padding: 0 20rpx;
  437. box-sizing: border-box;
  438. margin-bottom: 24rpx;
  439. .tipCon {
  440. width: 595rpx;
  441. }
  442. .iconfont {
  443. font-size: 35rpx;
  444. margin-right: 15rpx;
  445. }
  446. }
  447. .item {
  448. min-height: 124rpx;
  449. border-bottom: 1rpx solid #eee;
  450. font-size: 24rpx;
  451. color: #999;
  452. padding: 20rpx 0;
  453. .state {
  454. font-size: 28rpx;
  455. color: #282828;
  456. margin-bottom: 8rpx;
  457. }
  458. .num {
  459. font-size: 36rpx;
  460. font-family: 'Guildford Pro';
  461. color: #16AC57;
  462. display: flex;
  463. flex-direction: column;
  464. align-items: flex-end;
  465. &.font-color {
  466. color: #E93323 !important;
  467. }
  468. .buttom {
  469. font-size: 24rpx;
  470. border-radius: 20rpx;
  471. line-height: 1;
  472. padding: 10rpx 20rpx;
  473. background-color: var(--view-theme);
  474. color: #FFF;
  475. }
  476. }
  477. }
  478. }
  479. }
  480. }
  481. .integral-details .wrapper .list2 {
  482. background-color: #fff;
  483. padding: 24rpx 0;
  484. }
  485. .integral-details .wrapper .list2 .item {
  486. background-image: linear-gradient(to right, #fff7e7 0%, #fffdf9 100%);
  487. width: 690rpx;
  488. height: 180rpx;
  489. position: relative;
  490. border-radius: 10rpx;
  491. margin: 0 auto 20rpx auto;
  492. padding: 0 25rpx 0 180rpx;
  493. box-sizing: border-box;
  494. }
  495. .integral-details .wrapper .list2 .item .pictrue {
  496. width: 90rpx;
  497. height: 150rpx;
  498. position: absolute;
  499. bottom: 0;
  500. left: 45rpx;
  501. }
  502. .integral-details .wrapper .list2 .item .pictrue image {
  503. width: 100%;
  504. height: 100%;
  505. }
  506. .integral-details .wrapper .list2 .item .name {
  507. width: 285rpx;
  508. font-size: 30rpx;
  509. font-weight: bold;
  510. color: #c8a86b;
  511. }
  512. .integral-details .wrapper .list2 .item .earn {
  513. font-size: 26rpx;
  514. color: #c8a86b;
  515. border: 2rpx solid #c8a86b;
  516. text-align: center;
  517. line-height: 52rpx;
  518. height: 52rpx;
  519. width: 160rpx;
  520. border-radius: 50rpx;
  521. }
  522. .target {
  523. position: absolute;
  524. bottom: 130rpx;
  525. right: 0rpx;
  526. padding: 6rpx 30rpx;
  527. border: 1px solid #FFF;
  528. border-right: none;
  529. font-size: 30rpx;
  530. border-bottom-left-radius: 100rpx;
  531. border-top-left-radius: 100rpx;
  532. }
  533. </style>