index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. <template>
  2. <!-- 我的余额模块 -->
  3. <view :style="colorStyle">
  4. <view class='my-account'>
  5. <view class='wrapper'>
  6. <view class='header'>
  7. <view class='headerCon'>
  8. <view class='account acea-row row-top row-between'>
  9. <view class='assets'>
  10. <view>总资产(元)</view>
  11. <view class='money'>{{userInfo.now_money || 0}}</view>
  12. </view>
  13. <view class="">
  14. <!-- #ifdef APP-PLUS || H5 -->
  15. <navigator url="/pages/users/user_payment/index" hover-class="none" class='recharge'>充值
  16. </navigator>
  17. <!-- #endif -->
  18. <!-- #ifdef MP -->
  19. <view v-if="recharge_switch" @click="openSubscribe('/pages/users/user_payment/index')"
  20. class='recharge'>充值</view>
  21. <!-- #endif -->
  22. <view class='recharge-hz' @click="$refs.popup.open">互转</view>
  23. </view>
  24. </view>
  25. <view class='cumulative acea-row row-top'>
  26. <!-- #ifdef APP-PLUS || H5 -->
  27. <view class='item'>
  28. <view>累计充值(元)</view>
  29. <view class='money'>{{userInfo.recharge || 0}}</view>
  30. </view>
  31. <!-- #endif -->
  32. <!-- #ifdef MP -->
  33. <view class='item' v-if="recharge_switch">
  34. <view>累计充值(元)</view>
  35. <view class='money'>{{userInfo.recharge || 0}}</view>
  36. </view>
  37. <!-- #endif -->
  38. <view class='item'>
  39. <view>累计消费(元)</view>
  40. <view class='money'>{{userInfo.orderStatusSum || 0}}</view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class='nav acea-row row-middle'>
  46. <navigator class='item' hover-class='none' url='/pages/users/user_bill/index'>
  47. <view class='iconfont icon-s-zhangdanjilu'></view>
  48. <view>账单记录</view>
  49. </navigator>
  50. <navigator class='item' hover-class='none' url='/pages/users/user_bill/index?type=1'>
  51. <view class='iconfont icon-s-xiaofeijilu'></view>
  52. <view>消费记录</view>
  53. </navigator>
  54. <navigator class='item' hover-class='none' url='/pages/users/user_bill/index?type=2'
  55. v-if="recharge_switch">
  56. <view class='iconfont icon-s-chongzhijilu'></view>
  57. <view>充值记录</view>
  58. </navigator>
  59. <navigator class='item' hover-class='none' url='/pages/users/user_integral/index'>
  60. <view class='iconfont icon-jifenzhongxin'></view>
  61. <view>积分中心</view>
  62. </navigator>
  63. </view>
  64. <view class='advert acea-row row-between-wrapper'>
  65. <navigator class='item acea-row row-between-wrapper' hover-class='none'
  66. url='/pages/users/user_sgin/index'>
  67. <view class='text'>
  68. <view class='name'>签到领积分</view>
  69. <view>赚积分抵现金</view>
  70. </view>
  71. <view class='pictrue'>
  72. <image src='../static/gift.png'></image>
  73. </view>
  74. </navigator>
  75. <navigator class='item on acea-row row-between-wrapper' hover-class='none'
  76. url='/pages/users/user_get_coupon/index'>
  77. <view class='text'>
  78. <view class='name'>领取优惠券</view>
  79. <view>满减享优惠</view>
  80. </view>
  81. <view class='pictrue'>
  82. <image src='../static/money.png'></image>
  83. </view>
  84. </navigator>
  85. </view>
  86. <view class='list'>
  87. <view class='item acea-row row-between-wrapper'>
  88. <view class='picTxt acea-row row-between-wrapper'>
  89. <view class='iconfont icon-hebingxingzhuang'></view>
  90. <view class='text'>
  91. <view class='line1'>最新拼团活动</view>
  92. <view class='infor line1'>最新的优惠商品上架拼团</view>
  93. </view>
  94. </view>
  95. <navigator hover-class='none' url='/pages/activity/goods_combination/index'
  96. class='bnt acea-row row-center-wrapper' v-if="activity.is_pink">立即参与</navigator>
  97. <view class='bnt acea-row row-center-wrapper end' v-else>已结束</view>
  98. </view>
  99. <view class='item acea-row row-between-wrapper'>
  100. <view class='picTxt acea-row row-between-wrapper'>
  101. <view class='iconfont icon-miaosha yellow'></view>
  102. <view class='text'>
  103. <view class='line1'>当前限时秒杀</view>
  104. <view class='infor line1'>最新商品秒杀进行中</view>
  105. </view>
  106. </view>
  107. <navigator hover-class='none' url='/pages/activity/goods_seckill/index'
  108. class='bnt acea-row row-center-wrapper' v-if="activity.is_seckill">立即参与</navigator>
  109. <view class='bnt acea-row row-center-wrapper end' v-else>已结束</view>
  110. </view>
  111. <view class='item acea-row row-between-wrapper'>
  112. <view class='picTxt acea-row row-between-wrapper'>
  113. <view class='iconfont icon-kanjia1 green'></view>
  114. <view class='text'>
  115. <view class='line1'>砍价活动</view>
  116. <view class='infor line1'>呼朋唤友来砍价</view>
  117. </view>
  118. </view>
  119. <navigator hover-class='none' url='/pages/activity/goods_bargain/index'
  120. class='bnt acea-row row-center-wrapper' v-if="activity.is_bargin">立即参与</navigator>
  121. <view class='bnt acea-row row-center-wrapper end' v-else>已结束</view>
  122. </view>
  123. </view>
  124. </view>
  125. <recommend :hostProduct="hostProduct"></recommend>
  126. </view>
  127. <!-- <home v-if="navigation"></home> -->
  128. <!-- #ifdef MP -->
  129. <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize>
  130. <!-- #endif -->
  131. <uni-popup ref="popup" type="bottom" background-color="#fff">
  132. <view class="personal-data">
  133. <view class='list'>
  134. <view class='item acea-row row-between-wrapper'>
  135. <view>余额</view>
  136. <view class='input'><input type='number' placeholder="请输入要转的余额"
  137. v-model='change_target.number'></input>
  138. </view>
  139. </view>
  140. <view class='item acea-row row-between-wrapper'>
  141. <view>互转ID</view>
  142. <view class='input'><input type='number' placeholder="请输入要转的用户ID"
  143. v-model='change_target.id'></input>
  144. </view>
  145. </view>
  146. </view>
  147. <view class="modifyBnt bg-color cartcolor acea-row row-center-wrapper" @click="targetMoney">转余额</view>
  148. <view class="logOut cartcolor acea-row row-center-wrapper" @click="$refs.popup.close">关闭</view>
  149. </view>
  150. </uni-popup>
  151. </view>
  152. </template>
  153. <script>
  154. import {
  155. getProductHot
  156. } from '@/api/store.js';
  157. import {
  158. openRechargeSubscribe
  159. } from '@/utils/SubscribeMessage.js';
  160. import {
  161. getUserInfo,
  162. userActivity,
  163. changeMoneyTarget
  164. } from '@/api/user.js';
  165. import {
  166. toLogin
  167. } from '@/libs/login.js';
  168. import {
  169. mapGetters
  170. } from "vuex";
  171. import recommend from '@/components/recommend/index';
  172. import home from '@/components/home';
  173. import colors from "@/mixins/color";
  174. export default {
  175. components: {
  176. recommend,
  177. home
  178. },
  179. mixins: [colors],
  180. data() {
  181. return {
  182. userInfo: {},
  183. hostProduct: [],
  184. isClose: false,
  185. recharge_switch: 0,
  186. activity: {},
  187. isAuto: false, //没有授权的不会自动授权
  188. isShowAuth: false, //是否隐藏授权
  189. hotScroll: false,
  190. hotPage: 1,
  191. hotLimit: 10,
  192. change_target: {
  193. id: '',
  194. number: ''
  195. } //互转
  196. };
  197. },
  198. computed: mapGetters(['isLogin']),
  199. watch: {
  200. isLogin: {
  201. handler: function(newV, oldV) {
  202. if (newV) {
  203. this.getUserInfo();
  204. this.get_activity();
  205. }
  206. },
  207. deep: true
  208. }
  209. },
  210. onLoad() {
  211. this.get_host_product();
  212. if (this.isLogin) {
  213. this.getUserInfo();
  214. this.get_activity();
  215. } else {
  216. //#ifndef MP
  217. toLogin();
  218. //#endif
  219. //#ifdef MP
  220. this.isShowAuth = true;
  221. //#endif
  222. }
  223. },
  224. onShow() {
  225. uni.removeStorageSync('form_type_cart');
  226. },
  227. methods: {
  228. // 转余额
  229. targetMoney(){
  230. const that = this;
  231. if (!that.change_target.id) {
  232. uni.showToast({
  233. title: '请填写转账ID',
  234. icon: "error",
  235. });
  236. return
  237. }
  238. if (!that.change_target.number) {
  239. uni.showToast({
  240. title: '请填写余额',
  241. icon: "error",
  242. });
  243. return
  244. }
  245. if (+that.change_target.number > +that.userInfo.now_money) {
  246. uni.showToast({
  247. title: '余额不足无法转账',
  248. icon: "error",
  249. });
  250. return
  251. }
  252. uni.showLoading({
  253. title: '转账中...',
  254. mask: true
  255. });
  256. uni.showModal({
  257. title: '积分转账',
  258. content: `是否转账给用户ID:${that.change_target.id}用户${that.change_target.number}余额`,
  259. success: res => {
  260. if (res.confirm) {
  261. changeMoneyTarget({
  262. uid: that.change_target.id,
  263. num: that.change_target.number,
  264. }).then(function(res) {
  265. uni.hideLoading()
  266. that.change_target.id = '';
  267. that.change_target.number = '';
  268. that.getUserInfo();
  269. uni.showToast({
  270. title: '转账成功'
  271. });
  272. }).catch((res) => {
  273. uni.hideLoading();
  274. uni.showModal({
  275. title: '错误',
  276. content: res,
  277. showCancel: false,
  278. });
  279. });
  280. } else {
  281. uni.hideLoading()
  282. }
  283. },
  284. });
  285. },
  286. onLoadFun: function() {
  287. this.getUserInfo();
  288. this.get_activity();
  289. this.isShowAuth = false;
  290. },
  291. // 授权关闭
  292. authColse: function(e) {
  293. this.isShowAuth = e
  294. },
  295. // #ifdef MP
  296. openSubscribe: function(page) {
  297. uni.showLoading({
  298. title: '正在加载',
  299. })
  300. openRechargeSubscribe().then(res => {
  301. uni.hideLoading();
  302. uni.navigateTo({
  303. url: page,
  304. });
  305. }).catch(() => {
  306. uni.hideLoading();
  307. });
  308. },
  309. // #endif
  310. /**
  311. * 获取用户详情
  312. */
  313. getUserInfo: function() {
  314. let that = this;
  315. getUserInfo().then(res => {
  316. that.$set(that, 'userInfo', res.data);
  317. that.recharge_switch = res.data.recharge_switch;
  318. });
  319. },
  320. /**
  321. * 获取活动可参与否
  322. */
  323. get_activity: function() {
  324. let that = this;
  325. userActivity().then(res => {
  326. that.$set(that, "activity", res.data);
  327. })
  328. },
  329. /**
  330. * 获取我的推荐
  331. */
  332. get_host_product: function() {
  333. let that = this;
  334. if (that.hotScroll) return
  335. getProductHot(
  336. that.hotPage,
  337. that.hotLimit,
  338. ).then(res => {
  339. that.hotPage++
  340. that.hotScroll = res.data.length < that.hotLimit
  341. that.hostProduct = that.hostProduct.concat(res.data)
  342. });
  343. }
  344. },
  345. onReachBottom() {
  346. this.get_host_product();
  347. }
  348. }
  349. </script>
  350. <style scoped lang="scss">
  351. .my-account .wrapper {
  352. background-color: #fff;
  353. padding: 32rpx 0 34rpx 0;
  354. margin-bottom: 14rpx;
  355. }
  356. .my-account .wrapper .header {
  357. width: 690rpx;
  358. height: 330rpx;
  359. // background-image: linear-gradient(to right, #f33b2b 0%, #f36053 100%);
  360. // background-image: var(--view-theme);
  361. background: var(--view-theme);
  362. border-radius: 16rpx;
  363. margin: 0 auto;
  364. box-sizing: border-box;
  365. color: rgba(255, 255, 255, 0.6);
  366. font-size: 24rpx;
  367. }
  368. .my-account .wrapper .header .headerCon {
  369. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAAFKCAYAAADhULxpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy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BSzcUOjgEhCwAkOa8/ELIAQNQz3aUHCFkAII65WIQsABCnNhSYi0XIAgBRal+suViELAAQ9xy3LxYhCwDEqYg1F4uQBQCi1PWzJ8eAkAUAktSHXVZtIWQdAQDEMRcLQhYA4riCFoQsAMSpmdjJMYCQBYAktZ3ASAEIWQCIM3tug5AFgDQ1UuD2LhCyABDFSAEIWQCINHleg5AFgDRDs6UAhCwABFocAQhZAEhjpACELABEPp9nxwBCFgDS2FIAQhYA4oztbW8sIGQBIIadsSBkASDSvMYsIGQBIEbtjHUNLQhZAIhjpACELADEqTexg2MAIQsASWom1s5YELIAEGdqPvACIQsAgc/hyTGAkAWAND7wAiELAHFOzQ1eIGQBIJAPvEDIAkAc67ZAyAJAHOu2QMgCQCTrtkDIAkCcCtizYwAhCwBp5uZtLAhZAAh85nobC0IWAOL4wAuELADEqVVbo2MAIQsAaSZHAEIWANJ4GwtCFgAimY2FnfwSYABJ5w5fwq1SbwAAAABJRU5ErkJggg==');
  370. background-repeat: no-repeat;
  371. background-size: 100%;
  372. height: 100%;
  373. width: 100%;
  374. padding: 36rpx 0 29rpx 0;
  375. box-sizing: border-box;
  376. }
  377. .my-account .wrapper .header .headerCon .account {
  378. padding: 0 35rpx;
  379. }
  380. .my-account .wrapper .header .headerCon .account .assets .money {
  381. font-size: 72rpx;
  382. color: #fff;
  383. font-family: 'Guildford Pro';
  384. }
  385. .my-account .wrapper .header .headerCon .account .recharge {
  386. font-size: 28rpx;
  387. width: 150rpx;
  388. height: 54rpx;
  389. border-radius: 27rpx;
  390. background-color: #fff9f8;
  391. text-align: center;
  392. line-height: 54rpx;
  393. color: var(--view-theme);
  394. }
  395. .recharge-hz {
  396. margin-top: 10rpx;
  397. font-size: 28rpx;
  398. width: 150rpx;
  399. height: 54rpx;
  400. border-radius: 27rpx;
  401. background-color: #fff9f8;
  402. text-align: center;
  403. line-height: 54rpx;
  404. color: var(--view-theme);
  405. }
  406. .my-account .wrapper .header .headerCon .cumulative {
  407. margin-top: 46rpx;
  408. }
  409. .my-account .wrapper .header .headerCon .cumulative .item {
  410. flex: 1;
  411. padding-left: 35rpx;
  412. }
  413. .my-account .wrapper .header .headerCon .cumulative .item .money {
  414. font-size: 48rpx;
  415. font-family: 'Guildford Pro';
  416. color: #fff;
  417. margin-top: 6rpx;
  418. }
  419. .my-account .wrapper .nav {
  420. height: 155rpx;
  421. border-bottom: 1rpx solid #f5f5f5;
  422. }
  423. .my-account .wrapper .nav .item {
  424. flex: 1;
  425. text-align: center;
  426. font-size: 26rpx;
  427. color: #999;
  428. }
  429. .my-account .wrapper .nav .item .iconfont {
  430. font-size: 44rpx;
  431. margin: 0 auto;
  432. margin-bottom: 14rpx;
  433. color: var(--view-theme);
  434. }
  435. .my-account .wrapper .advert {
  436. padding: 0 30rpx;
  437. margin-top: 30rpx;
  438. }
  439. .my-account .wrapper .advert .item {
  440. background-color: #fff6d1;
  441. width: 332rpx;
  442. height: 118rpx;
  443. border-radius: 10rpx;
  444. padding: 0 27rpx 0 25rpx;
  445. box-sizing: border-box;
  446. font-size: 24rpx;
  447. color: #e44609;
  448. }
  449. .my-account .wrapper .advert .item.on {
  450. background-color: #fff3f3;
  451. color: #e96868;
  452. }
  453. .my-account .wrapper .advert .item .pictrue {
  454. width: 78rpx;
  455. height: 78rpx;
  456. }
  457. .my-account .wrapper .advert .item .pictrue image {
  458. width: 100%;
  459. height: 100%;
  460. }
  461. .my-account .wrapper .advert .item .text .name {
  462. font-size: 30rpx;
  463. font-weight: bold;
  464. color: #f33c2b;
  465. margin-bottom: 7rpx;
  466. }
  467. .my-account .wrapper .advert .item.on .text .name {
  468. color: #f64051;
  469. }
  470. .my-account .wrapper .list {
  471. padding: 0 30rpx;
  472. }
  473. .my-account .wrapper .list .item {
  474. margin-top: 44rpx;
  475. }
  476. .my-account .wrapper .list .item .picTxt .iconfont {
  477. width: 82rpx;
  478. height: 82rpx;
  479. border-radius: 50%;
  480. background-image: linear-gradient(to right, #ff9389 0%, #f9776b 100%);
  481. text-align: center;
  482. line-height: 82rpx;
  483. color: #fff;
  484. font-size: 40rpx;
  485. }
  486. .my-account .wrapper .list .item .picTxt .iconfont.yellow {
  487. background-image: linear-gradient(to right, #ffccaa 0%, #fea060 100%);
  488. }
  489. .my-account .wrapper .list .item .picTxt .iconfont.green {
  490. background-image: linear-gradient(to right, #a1d67c 0%, #9dd074 100%);
  491. }
  492. .my-account .wrapper .list .item .picTxt {
  493. width: 428rpx;
  494. font-size: 30rpx;
  495. color: #282828;
  496. }
  497. .my-account .wrapper .list .item .picTxt .text {
  498. width: 317rpx;
  499. }
  500. .my-account .wrapper .list .item .picTxt .text .infor {
  501. font-size: 24rpx;
  502. color: #999;
  503. margin-top: 5rpx;
  504. }
  505. .my-account .wrapper .list .item .bnt {
  506. font-size: 26rpx;
  507. color: #282828;
  508. width: 156rpx;
  509. height: 52rpx;
  510. border: 1px solid #ddd;
  511. border-radius: 26rpx;
  512. text-align: center;
  513. }
  514. .my-account .wrapper .list .item .bnt.end {
  515. font-size: 26rpx;
  516. color: #aaa;
  517. background-color: #f2f2f2;
  518. border-color: #f2f2f2;
  519. }
  520. .personal-data {
  521. padding:30rpx 0;
  522. .list {
  523. margin-top: 15rpx;
  524. background-color: #fff;
  525. .item {
  526. padding: 30rpx 30rpx 30rpx 0;
  527. border-bottom: 1rpx solid #f2f2f2;
  528. margin-left: 30rpx;
  529. font-size: 32rpx;
  530. color: #282828;
  531. .label {
  532. margin-right: 30rpx;
  533. }
  534. .phone {
  535. width: 160rpx;
  536. height: 56rpx;
  537. font-size: 24rpx;
  538. color: #fff;
  539. line-height: 56rpx;
  540. border-radius: 32rpx
  541. }
  542. .pictrue {
  543. width: 88rpx;
  544. height: 88rpx;
  545. image {
  546. width: 100%;
  547. height: 100%;
  548. border-radius: 50%;
  549. }
  550. }
  551. .input {
  552. width: 460rpx;
  553. text-align: right;
  554. color: #868686;
  555. input {
  556. text-align: right;
  557. }
  558. .picker {
  559. width: 400rpx;
  560. }
  561. .id {
  562. width: 414rpx;
  563. }
  564. .iconfont {
  565. font-size: 35rpx;
  566. color: #868686;
  567. }
  568. }
  569. }
  570. }
  571. .cartcolor {
  572. color: var(--view-theme);
  573. border: 1px solid var(--view-theme);
  574. }
  575. .modifyBnt {
  576. font-size: 32rpx;
  577. color: #fff;
  578. width: 690rpx;
  579. height: 90rpx;
  580. border-radius: 50rpx;
  581. text-align: center;
  582. line-height: 90rpx;
  583. margin: 76rpx auto 0 auto;
  584. }
  585. .logOut {
  586. font-size: 32rpx;
  587. text-align: center;
  588. width: 690rpx;
  589. height: 90rpx;
  590. border-radius: 45rpx;
  591. margin: 30rpx auto 0 auto;
  592. }
  593. }
  594. </style>