integral.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  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. this.getIntegralListAction();
  161. uni.setNavigationBarTitle({
  162. title: "参考分"
  163. })
  164. }
  165. if (option.type == 3) {
  166. this.getIntegralList();
  167. uni.setNavigationBarTitle({
  168. title: "消费分"
  169. })
  170. }
  171. if (option.type) {
  172. this.modelType = option.type;
  173. }
  174. if (option.numType) {
  175. this.numType = option.numType;
  176. }
  177. } else {
  178. toLogin()
  179. }
  180. },
  181. onShow() {
  182. uni.removeStorageSync('form_type_cart');
  183. },
  184. /**
  185. * 页面上拉触底事件的处理函数
  186. */
  187. onReachBottom: function() {
  188. this.getIntegralList();
  189. },
  190. methods: {
  191. /**
  192. * 授权回调
  193. */
  194. onLoadFun: function() {
  195. this.getUserInfo();
  196. this.getIntegralList();
  197. this.isShowAuth = false;
  198. },
  199. // 授权关闭
  200. authColse: function(e) {
  201. this.isShowAuth = e
  202. },
  203. // 立即出局
  204. out(item) {
  205. const that = this;
  206. uni.showModal({
  207. title: '提示',
  208. content: `是否立即提取${item.extract_num
  209. }参考分`,
  210. success: res => {
  211. if (res.confirm) {
  212. uni.showModal({
  213. title: '请输入登录密码确认',
  214. editable: true,
  215. success: res => {
  216. if (res.confirm) {
  217. getIntegralListActionOut({
  218. id: item.id,
  219. password: res.content,
  220. num: item.extract_num
  221. }).then((res) => {
  222. that.getIntegralListAction();
  223. uni.showToast({
  224. title: res.msg,
  225. });
  226. }).catch((err) => {
  227. uni.showToast({
  228. title: err,
  229. icon: 'error'
  230. });
  231. })
  232. }
  233. },
  234. });
  235. }
  236. },
  237. fail: () => {},
  238. complete: () => {}
  239. });
  240. },
  241. getUserInfo: function() {
  242. let that = this;
  243. getUserInfo({}).then(function(res) {
  244. console.log(res.data);
  245. res.data.integral_price = (+res.data.integral_price).toFixed(2);
  246. res.data.static_integral = (+res.data.static_integral).toFixed(2);
  247. res.data.action_integral = (+res.data.action_integral).toFixed(2);
  248. that.$set(that, 'userInfo', res.data);
  249. });
  250. },
  251. // 消费分记录
  252. getIntegralListAction: function() {
  253. let that = this.navList[this.current];
  254. const thatt = this;
  255. if (that.loading) return;
  256. if (that.loadend) return;
  257. that.loading = true;
  258. that.loadTitle = '';
  259. getIntegralListAction({
  260. page: that.page,
  261. limit: that.limit,
  262. type: this.current
  263. }).then(function(res) {
  264. let list = res.data.list.map((e) => {
  265. e.up_speed = +e.up_speed;
  266. e.day_send = +e.day_send;
  267. e.extract_num = +e.extract_num;
  268. e.sent_num = +e.sent_num;
  269. e.num = +e.num;
  270. e.extracted_num = +e.extracted_num;
  271. e.computedNum = 0;
  272. if (e.up_speed > 0) {
  273. if (e.send_day > e.sent_day) {
  274. e.computedNum = ((e.up_speed - e.up_speed_used) / (e.send_day - e
  275. .sent_day)).toFixed(2) * 1
  276. }
  277. }
  278. return e
  279. })
  280. thatt.addArray(that, list);
  281. }, function(res) {
  282. that.loading = false;
  283. that.loadTitle = '加载更多';
  284. });
  285. },
  286. /**
  287. * 获取积分明细
  288. */
  289. getIntegralList: function() {
  290. let that = this.navList[this.current];
  291. const thatt = this;
  292. if (that.loading) return;
  293. if (that.loadend) return;
  294. that.loading = true;
  295. that.loadTitle = '';
  296. getIntegralList({
  297. page: that.page,
  298. limit: that.limit,
  299. type: this.current
  300. }).then(function(res) {
  301. let list = res.data;
  302. thatt.addArray(that, list)
  303. }, function(res) {
  304. that.loading = false;
  305. that.loadTitle = '加载更多';
  306. });
  307. },
  308. addArray(that, list) {
  309. const SplitArray = this.$util.SplitArray;
  310. try {
  311. let loadend = list.length < that.limit;
  312. that.integralList = SplitArray(list, that.integralList);
  313. that.page = that.page + 1;
  314. that.loading = false;
  315. that.loadend = loadend;
  316. that.loadTitle = loadend ? '没有更多内容啦~' : "加载更多";
  317. } catch (e) {
  318. console.log(e);
  319. //TODO handle the exception
  320. }
  321. console.log(that.integralList, 'that.integralList')
  322. },
  323. nav: function(current) {
  324. this.current = current;
  325. this.getIntegralList();
  326. }
  327. }
  328. }
  329. </script>
  330. <style scoped lang="scss">
  331. .pageTop {
  332. }
  333. .integral-details {
  334. .header {
  335. // background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAHMAu4DAREAAhEBAxEB/8QAGQABAQEBAQEAAAAAAAAAAAAAAAECAwQF/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwUH/9oADAMBAAIQAxAAA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hug5sq3wj//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==');
  336. background-repeat: no-repeat;
  337. background-size: 100% 100%;
  338. width: 100%;
  339. height: 460rpx;
  340. font-size: 72rpx;
  341. color: #fff;
  342. padding: 31rpx 0 45rpx 0;
  343. box-sizing: border-box;
  344. text-align: center;
  345. font-family: 'Guildford Pro';
  346. // background-color: var(--view-theme);
  347. background-image: linear-gradient(45deg, rgb(255, 242, 232) 10%, #fff0f2 35%, rgb(255, 234, 247) 45%, #ffcdd3 75%, #ffb0b3);
  348. position: relative;
  349. padding-top: calc( var(--status-bar-height) + 50rpx );
  350. .currentScore {
  351. font-size: 26rpx;
  352. color: rgba(255, 255, 255, 0.8);
  353. text-align: center;
  354. margin-bottom: 11rpx;
  355. }
  356. .scoreNum {
  357. font-family: "Guildford Pro";
  358. }
  359. .line {
  360. width: 60rpx;
  361. height: 3rpx;
  362. background-color: #fff;
  363. margin: 20rpx auto 0 auto;
  364. }
  365. .nav {
  366. font-size: 22rpx;
  367. color: rgba(255, 255, 255, 0.8);
  368. flex: 1;
  369. margin-top: 94rpx;
  370. overflow: hidden;
  371. .item {
  372. width: 100%;
  373. text-align: center;
  374. font-weight: bold;
  375. font-size: 28rpx;
  376. color: #FFFFFF;
  377. .num {
  378. font-weight: 800;
  379. font-size: 63rpx;
  380. }
  381. }
  382. }
  383. }
  384. }
  385. .integral-details {
  386. .wrapper {
  387. position: relative;
  388. .nav {
  389. flex: 1;
  390. width: 690rpx;
  391. border-radius: 20rpx 20rpx 0 0;
  392. margin: -96rpx auto 0 auto;
  393. background-color: #f7f7f7;
  394. height: 96rpx;
  395. font-size: 30rpx;
  396. color: #bbb;
  397. overflow: hidden;
  398. .item {
  399. text-align: center;
  400. width: 33%;
  401. flex-grow: 1;
  402. &.on {
  403. background-color: #fff;
  404. color: var(--view-theme);
  405. font-weight: bold;
  406. }
  407. .iconfont {
  408. font-size: 38rpx;
  409. margin-right: 10rpx;
  410. }
  411. }
  412. .item:nth-of-type(1).on {
  413. border-radius: 20rpx 0 0 0;
  414. }
  415. .item:nth-of-type(3).on {
  416. border-radius: 0 20rpx 0 0;
  417. }
  418. }
  419. .list {
  420. background-color: #fff;
  421. padding: 24rpx 30rpx;
  422. .tip {
  423. font-size: 25rpx;
  424. width: 690rpx;
  425. min-height: 60rpx;
  426. border-radius: 50rpx;
  427. background-color: #fff5e2;
  428. border: 1rpx solid #ffeac1;
  429. color: #c8a86b;
  430. padding: 0 20rpx;
  431. box-sizing: border-box;
  432. margin-bottom: 24rpx;
  433. .tipCon {
  434. width: 595rpx;
  435. }
  436. .iconfont {
  437. font-size: 35rpx;
  438. margin-right: 15rpx;
  439. }
  440. }
  441. .item {
  442. min-height: 124rpx;
  443. border-bottom: 1rpx solid #eee;
  444. font-size: 24rpx;
  445. color: #999;
  446. padding: 20rpx 0;
  447. .state {
  448. font-size: 28rpx;
  449. color: #282828;
  450. margin-bottom: 8rpx;
  451. }
  452. .num {
  453. font-size: 36rpx;
  454. font-family: 'Guildford Pro';
  455. color: #16AC57;
  456. display: flex;
  457. flex-direction: column;
  458. align-items: flex-end;
  459. &.font-color {
  460. color: #E93323 !important;
  461. }
  462. .buttom {
  463. font-size: 24rpx;
  464. border-radius: 20rpx;
  465. line-height: 1;
  466. padding: 10rpx 20rpx;
  467. background-color: var(--view-theme);
  468. color: #FFF;
  469. }
  470. }
  471. }
  472. }
  473. }
  474. }
  475. .integral-details .wrapper .list2 {
  476. background-color: #fff;
  477. padding: 24rpx 0;
  478. }
  479. .integral-details .wrapper .list2 .item {
  480. background-image: linear-gradient(to right, #fff7e7 0%, #fffdf9 100%);
  481. width: 690rpx;
  482. height: 180rpx;
  483. position: relative;
  484. border-radius: 10rpx;
  485. margin: 0 auto 20rpx auto;
  486. padding: 0 25rpx 0 180rpx;
  487. box-sizing: border-box;
  488. }
  489. .integral-details .wrapper .list2 .item .pictrue {
  490. width: 90rpx;
  491. height: 150rpx;
  492. position: absolute;
  493. bottom: 0;
  494. left: 45rpx;
  495. }
  496. .integral-details .wrapper .list2 .item .pictrue image {
  497. width: 100%;
  498. height: 100%;
  499. }
  500. .integral-details .wrapper .list2 .item .name {
  501. width: 285rpx;
  502. font-size: 30rpx;
  503. font-weight: bold;
  504. color: #c8a86b;
  505. }
  506. .integral-details .wrapper .list2 .item .earn {
  507. font-size: 26rpx;
  508. color: #c8a86b;
  509. border: 2rpx solid #c8a86b;
  510. text-align: center;
  511. line-height: 52rpx;
  512. height: 52rpx;
  513. width: 160rpx;
  514. border-radius: 50rpx;
  515. }
  516. .target{
  517. position: absolute;
  518. bottom: 130rpx ;
  519. right: 0rpx;
  520. padding: 6rpx 30rpx;
  521. border: 1px solid #FFF;
  522. border-right: none;
  523. font-size: 30rpx;
  524. border-bottom-left-radius: 100rpx;
  525. border-top-left-radius: 100rpx;
  526. }
  527. </style>