greed.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. <template>
  2. <!-- 积分详情 -->
  3. <view>
  4. <view class='integral-details' :style="colorStyle">
  5. <view class='header'>
  6. <view class="headerBox">
  7. <view>
  8. <view class='currentScore'>当前绿积分</view>
  9. <view class="scoreNum">{{userInfo.green_integral}}</view>
  10. </view>
  11. <view >
  12. <view class='currentScore'>当前母积分</view>
  13. <view class="scoreNum">{{userInfo.base_integral}}</view>
  14. </view>
  15. </view>
  16. <view class='line'></view>
  17. <!-- <view class='nav acea-row'>
  18. <view class='item'>
  19. <view class='num'>{{userInfo.sum_integral}}</view>
  20. <view>累计积分</view>
  21. </view>
  22. <view class='item'>
  23. <view class='num'>{{userInfo.deduction_integral}}</view>
  24. <view>累计消费</view>
  25. </view>
  26. <view class='item'>
  27. <view class='num'>{{userInfo.today_integral}}</view>
  28. <view>今日获得</view>
  29. </view>
  30. </view> -->
  31. </view>
  32. <view class='wrapper'>
  33. <view class='nav acea-row'>
  34. <view class='item acea-row row-center-wrapper' style='flex-grow:1' :class='current==index?"on":""'
  35. v-for="(item,index) in navList" :key='index' @click='nav(index)'><text class='iconfont'
  36. :class="item.icon"></text>{{item.name}}</view>
  37. </view>
  38. <view class='list' :hidden='current!=0'>
  39. <!-- <view class='tip acea-row row-between-wrapper' v-if="userInfo.clear_integral>0 && userInfo.clear_time>0">
  40. <text class='iconfont icon-shuoming'></text>
  41. <text class="tipCon">提示:你有{{userInfo.clear_integral}}积分在{{ userInfo.clear_time | dateFormat }}过期,请尽快使用</text>
  42. </view> -->
  43. <!-- <view class='tip acea-row row-middle' v-else><text
  44. class='iconfont icon-shuoming'></text>提示:积分数值的高低会直接影响您的会员等级</view> -->
  45. <view class='item' v-for="(item,index) in integralList" :key="index">
  46. <view style="flex-grow: 1;">
  47. <view class='state'>{{item.mark}}</view>
  48. <view>{{item.add_time}}</view>
  49. </view>
  50. <view class='num font-color' v-if="item.pm">+{{item.number}}</view>
  51. <view class='num' v-else>-{{item.number}}</view>
  52. </view>
  53. <view class='loadingicon acea-row row-center-wrapper' v-if="integralList.length>0">
  54. <text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
  55. </view>
  56. <view v-if="integralList.length == 0">
  57. <emptyPage title="暂无积分记录哦~"></emptyPage>
  58. </view>
  59. </view>
  60. <view class='list2' :hidden='current!=1'>
  61. <view class='borderRadius15'>
  62. <view class='item acea-row row-between-wrapper'>
  63. <view class='item-title'>转账ID</view>
  64. <input class="input" type='number' v-model="changeID" placeholder='请输入转账人ID'
  65. placeholder-class='placeholder' pattern="\d*"></input>
  66. </view>
  67. <view class='item acea-row row-between-wrapper'>
  68. <view class='item-title'>转账绿积分</view>
  69. <input class="input" type='number' v-model="changeMoney" placeholder='请输入转账绿积分个数'
  70. placeholder-class='placeholder' pattern="\d*"></input>
  71. </view>
  72. <view class='item acea-row row-between-wrapper'>
  73. <view class='item-title'>转账类型</view>
  74. <view class="input">
  75. <label class="radio" @click="checkedType=1">
  76. <radio :checked="checkedType === 1" />
  77. <text>绿积分</text>
  78. </label>
  79. <label class="radio" style="margin-left: 20rpx;" @click="checkedType=2">
  80. <radio :checked="checkedType === 2" />
  81. <text>母积分</text>
  82. </label>
  83. </view>
  84. </view>
  85. </view>
  86. <button class='keepBnt bg-color' @click="setGreedIntegralList">立即转账</button>
  87. <!-- <navigator url="./itemuser">
  88. <button class='keepBnt bg-color'>购买绿积分</button>
  89. </navigator> -->
  90. </view>
  91. </view>
  92. </view>
  93. <home v-if="navigation"></home>
  94. <!-- #ifdef MP -->
  95. <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize>
  96. <!-- #endif -->
  97. </view>
  98. </template>
  99. <script>
  100. import home from '@/components/home';
  101. import {
  102. postSignUser,
  103. getGreedIntegralList,
  104. setGreedIntegralList
  105. } from '@/api/user.js';
  106. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  107. import {
  108. toLogin
  109. } from '@/libs/login.js';
  110. import {
  111. mapGetters
  112. } from "vuex";
  113. import emptyPage from '@/components/emptyPage.vue';
  114. import colors from '@/mixins/color'
  115. export default {
  116. components: {
  117. emptyPage,
  118. home
  119. },
  120. filters: {
  121. dateFormat: function(value) {
  122. return dayjs(value * 1000).format('YYYY-MM-DD');
  123. }
  124. },
  125. mixins: [colors],
  126. data() {
  127. return {
  128. navList: [{
  129. 'name': '分值明细',
  130. 'icon': 'icon-mingxi'
  131. },
  132. {
  133. 'name': '绿积分转账',
  134. 'icon': 'icon-tishengfenzhi'
  135. }
  136. ],
  137. current: 0,
  138. page: 1,
  139. limit: 10,
  140. integralList: [],
  141. userInfo: {},
  142. loadend: false,
  143. loading: false,
  144. loadTitle: '加载更多',
  145. isShowAuth: false, //是否隐藏授权
  146. changeID: '',
  147. changeMoney: '',
  148. checkedType: 1
  149. };
  150. },
  151. computed: mapGetters(['isLogin']),
  152. watch: {
  153. isLogin: {
  154. handler: function(newV, oldV) {
  155. if (newV) {
  156. // #ifdef H5 || APP-PLUS
  157. this.getUserInfo();
  158. this.getIntegralList();
  159. // #endif
  160. }
  161. },
  162. deep: true
  163. }
  164. },
  165. onLoad() {
  166. if (this.isLogin) {
  167. this.getUserInfo();
  168. this.getIntegralList();
  169. } else {
  170. // #ifdef H5 || APP-PLUS
  171. toLogin()
  172. // #endif
  173. // #ifdef MP
  174. this.isShowAuth = true;
  175. // #endif
  176. }
  177. },
  178. onShow() {
  179. uni.removeStorageSync('form_type_cart');
  180. },
  181. /**
  182. * 页面上拉触底事件的处理函数
  183. */
  184. onReachBottom: function() {
  185. this.getIntegralList();
  186. },
  187. methods: {
  188. setGreedIntegralList() {
  189. const that = this;
  190. if (!that.changeID) {
  191. uni.showToast({
  192. title: '请填写转账ID',
  193. icon: "error",
  194. });
  195. return
  196. }
  197. if (!that.changeMoney) {
  198. uni.showToast({
  199. title: '请填写转账积分数',
  200. icon: "error",
  201. });
  202. return
  203. }
  204. if (+that.changeMoney > +this.userInfo.green_integral) {
  205. uni.showToast({
  206. title: '绿积分不足无法转账',
  207. icon: "error",
  208. });
  209. return
  210. }
  211. uni.showLoading({
  212. title: '转账中...',
  213. mask: true
  214. });
  215. uni.showModal({
  216. title: '积分转账',
  217. content: `是否转账给用户ID:${that.changeID}用户${ that.changeMoney }${that.checkedType==1?"绿":"母"}积分`,
  218. success: res => {
  219. if (res.confirm) {
  220. setGreedIntegralList({
  221. uid: that.changeID,
  222. num: that.changeMoney,
  223. type: that.checkedType
  224. }).then(function(res) {
  225. uni.hideLoading()
  226. that.changeID = '';
  227. that.changeMoney = '';
  228. uni.showToast({
  229. title: '转账成功'
  230. });
  231. that.page = 1;
  232. that.integralList = [];
  233. that.loadend = false;
  234. that.loading = false;
  235. that.getIntegralList()
  236. }).catch((res) => {
  237. uni.hideLoading();
  238. uni.showModal({
  239. title: '错误',
  240. content: res,
  241. showCancel: false,
  242. });
  243. });
  244. } else {
  245. uni.hideLoading()
  246. }
  247. },
  248. });
  249. },
  250. /**
  251. * 授权回调
  252. */
  253. onLoadFun: function() {
  254. this.getUserInfo();
  255. this.getIntegralList();
  256. this.isShowAuth = false;
  257. },
  258. // 授权关闭
  259. authColse: function(e) {
  260. this.isShowAuth = e
  261. },
  262. getUserInfo: function() {
  263. let that = this;
  264. postSignUser({
  265. sign: 1,
  266. integral: 1,
  267. all: 1
  268. }).then(function(res) {
  269. that.$set(that, 'userInfo', res.data);
  270. });
  271. },
  272. /**
  273. * 获取积分明细
  274. */
  275. getIntegralList: function() {
  276. let that = this;
  277. if (that.loading) return;
  278. if (that.loadend) return;
  279. that.loading = true;
  280. that.loadTitle = '';
  281. getGreedIntegralList({
  282. page: that.page,
  283. limit: that.limit
  284. }).then(function(res) {
  285. let list = res.data,
  286. loadend = list.length < that.limit;
  287. that.integralList = that.$util.SplitArray(list, that.integralList);
  288. that.$set(that, 'integralList', that.integralList);
  289. that.page = that.page + 1;
  290. that.loading = false;
  291. that.loadend = loadend;
  292. that.loadTitle = loadend ? '没有更多内容啦~' : "加载更多";
  293. }, function(res) {
  294. this.loading = false;
  295. that.loadTitle = '加载更多';
  296. });
  297. },
  298. nav: function(current) {
  299. this.current = current;
  300. }
  301. }
  302. }
  303. </script>
  304. <style scoped lang="scss">
  305. .headerBox{
  306. width: 100%;
  307. display: flex;
  308. justify-content: space-around;
  309. align-items: center;
  310. }
  311. .integral-details {
  312. .header {
  313. // background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAHMAu4DAREAAhEBAxEB/8QAGQABAQEBAQEAAAAAAAAAAAAAAAECAwQF/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwUH/9oADAMBAAIQAxAAAAD5nh/QwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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LD/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==');
  314. background-repeat: no-repeat;
  315. background-size: 100% 100%;
  316. width: 100%;
  317. height: 460rpx;
  318. font-size: 72rpx;
  319. color: #fff;
  320. padding: 31rpx 0 45rpx 0;
  321. box-sizing: border-box;
  322. text-align: center;
  323. font-family: 'Guildford Pro';
  324. background-color: var(--view-theme);
  325. padding-top: 100rpx;
  326. .currentScore {
  327. font-size: 26rpx;
  328. color: rgba(255, 255, 255, 0.8);
  329. text-align: center;
  330. margin-bottom: 11rpx;
  331. }
  332. .scoreNum {
  333. font-family: "Guildford Pro";
  334. }
  335. .line {
  336. width: 60rpx;
  337. height: 3rpx;
  338. background-color: #fff;
  339. margin: 20rpx auto 0 auto;
  340. }
  341. .nav {
  342. font-size: 22rpx;
  343. color: rgba(255, 255, 255, 0.8);
  344. flex: 1;
  345. margin-top: 35rpx;
  346. .item {
  347. width: 33.33%;
  348. text-align: center;
  349. .num {
  350. color: #fff;
  351. font-size: 40rpx;
  352. margin-bottom: 5rpx;
  353. font-family: 'Guildford Pro';
  354. }
  355. }
  356. }
  357. }
  358. .wrapper {
  359. .nav {
  360. flex: 1;
  361. width: 690rpx;
  362. border-radius: 20rpx 20rpx 0 0;
  363. margin: -96rpx auto 0 auto;
  364. background-color: #f7f7f7;
  365. height: 96rpx;
  366. font-size: 30rpx;
  367. color: #bbb;
  368. .item {
  369. text-align: center;
  370. width: 50%;
  371. &.on {
  372. background-color: #fff;
  373. color: var(--view-theme);
  374. font-weight: bold;
  375. border-radius: 20rpx 0 0 0;
  376. }
  377. &:nth-of-type(2) {
  378. &.on {
  379. border-radius: 0 20rpx 0 0;
  380. }
  381. }
  382. .iconfont {
  383. font-size: 38rpx;
  384. margin-right: 10rpx;
  385. }
  386. }
  387. }
  388. .list {
  389. background-color: #fff;
  390. padding: 24rpx 30rpx;
  391. .tip {
  392. font-size: 25rpx;
  393. width: 690rpx;
  394. min-height: 60rpx;
  395. border-radius: 50rpx;
  396. background-color: #fff5e2;
  397. border: 1rpx solid #ffeac1;
  398. color: #c8a86b;
  399. padding: 0 20rpx;
  400. box-sizing: border-box;
  401. margin-bottom: 24rpx;
  402. .tipCon {
  403. width: 595rpx;
  404. }
  405. .iconfont {
  406. font-size: 35rpx;
  407. margin-right: 15rpx;
  408. }
  409. }
  410. .item {
  411. border-bottom: 1rpx solid #eee;
  412. font-size: 24rpx;
  413. color: #999;
  414. min-width: 100%;
  415. display: flex;
  416. justify-content: space-between;
  417. align-items: center;
  418. padding: 20rpx 0;
  419. .state {
  420. width: 100%;
  421. font-size: 32rpx;
  422. color: #282828;
  423. padding-bottom: 8rpx;
  424. }
  425. .num {
  426. font-size: 36rpx;
  427. font-family: 'Guildford Pro';
  428. padding-left: 10rpx;
  429. color: #16AC57;
  430. flex-shrink: 0;
  431. &.font-color {
  432. color: #E93323 !important;
  433. }
  434. }
  435. }
  436. }
  437. .list2 {
  438. background-color: #fff;
  439. padding: 24rpx 0;
  440. // background-image: linear-gradient(to right, #fff7e7 0%, #fffdf9 100%);
  441. // height: 180rpx;
  442. position: relative;
  443. border-radius: 10rpx;
  444. padding: 20rpx 30rpx;
  445. box-sizing: border-box;
  446. border-bottom: 1px solid #e9e9e9;
  447. .keepBnt {
  448. width: 690rpx;
  449. height: 86rpx;
  450. border-radius: 50rpx;
  451. text-align: center;
  452. line-height: 86rpx;
  453. margin: 50rpx auto;
  454. font-size: 32rpx;
  455. color: #fff;
  456. }
  457. .item {
  458. // background-image: linear-gradient(to right, #fff7e7 0%, #fffdf9 100%);
  459. // height: 180rpx;
  460. position: relative;
  461. border-radius: 10rpx;
  462. padding: 20rpx 0;
  463. box-sizing: border-box;
  464. border-bottom: 1px solid #e9e9e9;
  465. .input {
  466. flex-grow: 1;
  467. display: flex;
  468. .radio {
  469. display: flex;
  470. line-height: 1;
  471. align-items: center;
  472. color: #bbb;
  473. }
  474. }
  475. .item-title {
  476. width: 150rpx;
  477. }
  478. .pictrue {
  479. width: 90rpx;
  480. height: 150rpx;
  481. position: absolute;
  482. bottom: 0;
  483. left: 45rpx;
  484. }
  485. .pictrue {
  486. image {
  487. width: 100%;
  488. height: 100%;
  489. }
  490. }
  491. }
  492. }
  493. }
  494. }
  495. </style>