index.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <template>
  2. <view>
  3. <view class='integral-details' :style="colorStyle">
  4. <view class='header'>
  5. <view class='currentScore'>{{$t(`当前积分`)}}</view>
  6. <view class="scoreNum">{{userInfo.integral}}</view>
  7. <view class='line'></view>
  8. <view class='nav acea-row'>
  9. <view class='item'>
  10. <view class='num'>{{userInfo.sum_integral}}</view>
  11. <view>{{$t(`累计积分`)}}</view>
  12. </view>
  13. <view class='item'>
  14. <view class='num'>{{userInfo.deduction_integral}}</view>
  15. <view>{{$t(`累计消费`)}}</view>
  16. </view>
  17. <view class='item'>
  18. <view class='num'>{{userInfo.frozen_integral}}</view>
  19. <view>{{$t(`冻结积分`)}}</view>
  20. </view>
  21. </view>
  22. <view class="apply">
  23. <view>
  24. <navigator url='/pages/users/privacy/index?type=6' hover-class="none">
  25. <view>{{$t(`积分规则`)}}</view>
  26. </navigator>
  27. </view>
  28. </view>
  29. </view>
  30. <view class='wrapper'>
  31. <view class='nav acea-row'>
  32. <view class='item acea-row row-center-wrapper' :class='current==index?"on":""'
  33. v-for="(item,index) in navList" :key='index' @click='nav(index)'><text class='iconfont'
  34. :class="item.icon"></text>{{item.name}}</view>
  35. </view>
  36. <view class='list' :hidden='current!=0'>
  37. <view class='tip acea-row row-middle' v-if="!isTime"><text
  38. class='iconfont icon-shuoming'></text>{{$t(`提示:积分数值的高低会直接影响您的会员等级`)}}</view>
  39. <view class='tip acea-row row-middle' v-else><text
  40. class='iconfont icon-shuoming'></text>{{$t(`提示:你有`)}}{{userInfo.clear_integral}}{{$t(`积分在`)}}{{ userInfo.clear_time | dateFormat }}{{$t(`过期,请尽快使用`)}}
  41. </view>
  42. <view class='item acea-row row-between-wrapper' v-for="(item,index) in integralList" :key="index">
  43. <view>
  44. <view class='state'>{{$t(item.mark)}}</view>
  45. <view>{{item.add_time}}</view>
  46. </view>
  47. <view class='num font-color' v-if="item.pm">+{{item.number}}</view>
  48. <view class='num' v-else>-{{item.number}}</view>
  49. </view>
  50. <view class='loadingicon acea-row row-center-wrapper' v-if="integralList.length>0">
  51. <text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
  52. </view>
  53. <view v-if="integralList.length == 0">
  54. <emptyPage :title="$t(`暂无积分记录哦~`)"></emptyPage>
  55. </view>
  56. </view>
  57. <view class='list2' :hidden='current!=1'>
  58. <navigator class='item acea-row row-between-wrapper' hover-class='none' open-type="switchTab"
  59. url='/pages/index/index'>
  60. <view class='pictrue'>
  61. <image src='../static/score.png'></image>
  62. </view>
  63. <view class='name'>{{$t(`购买商品可获得积分奖励`)}}</view>
  64. <view class='earn'>{{$t(`赚积分`)}}</view>
  65. </navigator>
  66. <navigator class='item acea-row row-between-wrapper' hover-class='none'
  67. url='/pages/users/user_sgin/index'>
  68. <view class='pictrue'>
  69. <image src='../static/score.png'></image>
  70. </view>
  71. <view class='name'>{{$t(`每日签到可获得积分奖励`)}}</view>
  72. <view class='earn'>{{$t(`赚积分`)}}</view>
  73. </navigator>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- #ifdef MP -->
  78. <!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
  79. <!-- #endif -->
  80. </view>
  81. </template>
  82. <script>
  83. import {
  84. postSignUser,
  85. getIntegralList
  86. } from '@/api/user.js';
  87. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  88. import {
  89. toLogin
  90. } from '@/libs/login.js';
  91. import {
  92. mapGetters
  93. } from "vuex";
  94. // #ifdef MP
  95. import authorize from '@/components/Authorize';
  96. // #endif
  97. import emptyPage from '@/components/emptyPage.vue';
  98. import colors from '@/mixins/color'
  99. export default {
  100. components: {
  101. // #ifdef MP
  102. authorize,
  103. // #endif
  104. emptyPage
  105. },
  106. filters: {
  107. dateFormat: function(value) {
  108. return dayjs(value * 1000).format('YYYY-MM-DD');
  109. }
  110. },
  111. mixins: [colors],
  112. data() {
  113. return {
  114. navList: [{
  115. 'name': this.$t(`分值明细`),
  116. 'icon': 'icon-mingxi'
  117. },
  118. {
  119. 'name': this.$t(`分值提升`),
  120. 'icon': 'icon-tishengfenzhi'
  121. }
  122. ],
  123. current: 0,
  124. page: 1,
  125. limit: 10,
  126. integralList: [],
  127. userInfo: {},
  128. loadend: false,
  129. loading: false,
  130. loadTitle: this.$t(`加载更多`),
  131. isAuto: false, //没有授权的不会自动授权
  132. isShowAuth: false, //是否隐藏授权
  133. isTime: 0
  134. };
  135. },
  136. computed: mapGetters(['isLogin']),
  137. watch: {
  138. isLogin: {
  139. handler: function(newV, oldV) {
  140. if (newV) {
  141. this.getUserInfo();
  142. this.getIntegralList();
  143. }
  144. },
  145. deep: true
  146. }
  147. },
  148. onLoad() {
  149. if (this.isLogin) {
  150. this.getUserInfo();
  151. this.getIntegralList();
  152. } else {
  153. toLogin();
  154. }
  155. },
  156. /**
  157. * 页面上拉触底事件的处理函数
  158. */
  159. onReachBottom: function() {
  160. this.getIntegralList();
  161. },
  162. methods: {
  163. /**
  164. * 授权回调
  165. */
  166. onLoadFun: function() {
  167. this.getUserInfo();
  168. this.getIntegralList();
  169. },
  170. // 授权关闭
  171. authColse: function(e) {
  172. this.isShowAuth = e
  173. },
  174. getUserInfo: function() {
  175. let that = this;
  176. postSignUser({
  177. sign: 1,
  178. integral: 1,
  179. all: 1
  180. }).then(function(res) {
  181. that.$set(that, 'userInfo', res.data);
  182. let clearTime = res.data.clear_time;
  183. let showTime = clearTime - (86400 * 14);
  184. let timestamp = Date.parse(new Date()) / 1000;
  185. if (showTime < timestamp) {
  186. that.isTime = 1
  187. } else {
  188. that.isTime = 0
  189. }
  190. });
  191. },
  192. /**
  193. * 获取积分明细
  194. */
  195. getIntegralList: function() {
  196. let that = this;
  197. if (that.loading) return;
  198. if (that.loadend) return;
  199. that.loading = true;
  200. that.loadTitle = '';
  201. getIntegralList({
  202. page: that.page,
  203. limit: that.limit
  204. }).then(function(res) {
  205. let list = res.data,
  206. loadend = list.length < that.limit;
  207. that.integralList = that.$util.SplitArray(list, that.integralList);
  208. that.$set(that, 'integralList', that.integralList);
  209. that.page = that.page + 1;
  210. that.loading = false;
  211. that.loadend = loadend;
  212. that.loadTitle = loadend ? that.$t(`我也是有底线的`) : that.$t(`加载更多`);
  213. }, function(res) {
  214. this.loading = false;
  215. that.loadTitle = that.$t(`加载更多`);
  216. });
  217. },
  218. nav: function(current) {
  219. this.current = current;
  220. }
  221. }
  222. }
  223. </script>
  224. <style scoped lang="scss">
  225. .integral-details .header {
  226. // background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAHMAu4DAREAAhEBAxEB/8QAGQABAQEBAQEAAAAAAAAAAAAAAAECAwQF/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwUH/9oADAMBAAIQAxAAAAD5nh/QwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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Z0pSlKXqt8l+NaUv47VGSKt1oujQhN3yLdLBctl06IxIxvwJzwrpz4Ifp+w+D24vVdUiH6aMGR/VaJMhOrPgmP0/YSaIzFfuapSlKUyMjIyMjIyMjIyKUpS/GU6vOwTxTq02n2n//EACQRAAMAAgICAgIDAQAAAAAAAAABERIgAjBQYAMQQFExQZCw/9oACAEDAQE/AP8AmZ5GRWVlZkUvqlL1UT9Qpe5OCfpre9RTIpVun6W3rS9FE9U/SW9W+xPVPxdKUpSmRkUpSlKZFRUVfgN9yeq8HSlL+RWVmTMjJFX29G98kZoyW6ei8BfC16PZ8/0Nt6JtC5/vZenz65cm+jjygtFovTnwTH8f6Hwa24P+tV9oqMkZGRWV9lKXzrSY/jQ/jaI198XVoil/IpfOvgmP42cE1/Pgr56E8DS/5/QhCEIQhCEIQhCEIQhCEIQhNqZGRkZFMjIyMi7YmJiYmJiYmJiYGBgYmJiYmJiQnlmtoTaE2S9La6IRE6EvTp3QXqEJ1JCXqs2S8T//2Q==');
  227. background-repeat: no-repeat;
  228. background-size: 100% 100%;
  229. width: 100%;
  230. height: 460rpx;
  231. font-size: 72rpx;
  232. color: #fff;
  233. padding: 31rpx 0 45rpx 0;
  234. box-sizing: border-box;
  235. text-align: center;
  236. font-family: 'Guildford Pro';
  237. background-color: var(--view-theme);
  238. }
  239. .integral-details .header .currentScore {
  240. font-size: 26rpx;
  241. color: rgba(255, 255, 255, 0.8);
  242. text-align: center;
  243. margin-bottom: 11rpx;
  244. }
  245. .integral-details .header .scoreNum {
  246. font-family: "Guildford Pro";
  247. }
  248. .integral-details .header .line {
  249. width: 60rpx;
  250. height: 3rpx;
  251. background-color: #fff;
  252. margin: 20rpx auto 0 auto;
  253. }
  254. .integral-details .header .nav {
  255. font-size: 22rpx;
  256. color: rgba(255, 255, 255, 0.8);
  257. flex: 1;
  258. margin-top: 35rpx;
  259. }
  260. .integral-details .header .nav .item {
  261. width: 33.33%;
  262. text-align: center;
  263. }
  264. .integral-details .header .nav .item .num {
  265. color: #fff;
  266. font-size: 40rpx;
  267. margin-bottom: 5rpx;
  268. font-family: 'Guildford Pro';
  269. }
  270. .integral-details .wrapper .nav {
  271. flex: 1;
  272. width: 690rpx;
  273. border-radius: 20rpx 20rpx 0 0;
  274. margin: -96rpx auto 0 auto;
  275. background-color: #f7f7f7;
  276. height: 96rpx;
  277. font-size: 30rpx;
  278. color: #bbb;
  279. }
  280. .integral-details .wrapper .nav .item {
  281. text-align: center;
  282. width: 50%;
  283. }
  284. .integral-details .wrapper .nav .item.on {
  285. background-color: #fff;
  286. color: var(--view-theme);
  287. font-weight: bold;
  288. border-radius: 20rpx 0 0 0;
  289. }
  290. .integral-details .wrapper .nav .item:nth-of-type(2).on {
  291. border-radius: 0 20rpx 0 0;
  292. }
  293. .integral-details .wrapper .nav .item .iconfont {
  294. font-size: 38rpx;
  295. margin-right: 10rpx;
  296. }
  297. .integral-details .wrapper .list {
  298. background-color: #fff;
  299. padding: 24rpx 30rpx;
  300. }
  301. .integral-details .wrapper .list .tip {
  302. font-size: 25rpx;
  303. width: 690rpx;
  304. height: 60rpx;
  305. border-radius: 50rpx;
  306. background-color: #fff5e2;
  307. border: 1rpx solid #ffeac1;
  308. color: #c8a86b;
  309. padding: 0 20rpx;
  310. box-sizing: border-box;
  311. margin-bottom: 24rpx;
  312. }
  313. .integral-details .wrapper .list .tip .iconfont {
  314. font-size: 35rpx;
  315. margin-right: 15rpx;
  316. }
  317. .integral-details .wrapper .list .item {
  318. height: 124rpx;
  319. border-bottom: 1rpx solid #eee;
  320. font-size: 24rpx;
  321. color: #999;
  322. }
  323. .integral-details .wrapper .list .item .state {
  324. font-size: 28rpx;
  325. color: #282828;
  326. margin-bottom: 8rpx;
  327. }
  328. .integral-details .wrapper .list .item .num {
  329. font-size: 36rpx;
  330. font-family: 'Guildford Pro';
  331. color: #16AC57;
  332. }
  333. .integral-details .wrapper .list .item .num.font-color {
  334. color: #E93323 !important;
  335. }
  336. .integral-details .wrapper .list2 {
  337. background-color: #fff;
  338. padding: 24rpx 0;
  339. }
  340. .integral-details .wrapper .list2 .item {
  341. background-image: linear-gradient(to right, #fff7e7 0%, #fffdf9 100%);
  342. width: 690rpx;
  343. height: 180rpx;
  344. position: relative;
  345. border-radius: 10rpx;
  346. margin: 0 auto 20rpx auto;
  347. padding: 0 25rpx 0 180rpx;
  348. box-sizing: border-box;
  349. }
  350. .integral-details .wrapper .list2 .item .pictrue {
  351. width: 90rpx;
  352. height: 150rpx;
  353. position: absolute;
  354. bottom: 0;
  355. left: 45rpx;
  356. }
  357. .integral-details .wrapper .list2 .item .pictrue image {
  358. width: 100%;
  359. height: 100%;
  360. }
  361. .integral-details .wrapper .list2 .item .name {
  362. width: 285rpx;
  363. font-size: 30rpx;
  364. font-weight: bold;
  365. color: #c8a86b;
  366. }
  367. .integral-details .wrapper .list2 .item .earn {
  368. font-size: 26rpx;
  369. color: #c8a86b;
  370. border: 2rpx solid #c8a86b;
  371. text-align: center;
  372. line-height: 52rpx;
  373. height: 52rpx;
  374. width: 160rpx;
  375. border-radius: 50rpx;
  376. }
  377. .apply {
  378. top: 52rpx;
  379. right: 0;
  380. position: absolute;
  381. width: max-content;
  382. height: 56rpx;
  383. padding: 0 14rpx;
  384. background-color: #fff1db;
  385. color: #a56a15;
  386. font-size: 22rpx;
  387. border-radius: 30rpx 0 0 30rpx;
  388. display: flex;
  389. align-items: center;
  390. justify-content: center;
  391. }
  392. </style>