index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  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="openalert">互转</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="closealert">关闭</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. closealert(){
  229. this.$refs.popup.close()
  230. },
  231. openalert(){
  232. console.log('kaishi');
  233. this.$refs.popup.open();
  234. },
  235. // 转余额
  236. targetMoney(){
  237. const that = this;
  238. if (!that.change_target.id) {
  239. uni.showToast({
  240. title: '请填写转账ID',
  241. icon: "error",
  242. });
  243. return
  244. }
  245. if (!that.change_target.number) {
  246. uni.showToast({
  247. title: '请填写余额',
  248. icon: "error",
  249. });
  250. return
  251. }
  252. if (+that.change_target.number > +that.userInfo.now_money) {
  253. uni.showToast({
  254. title: '余额不足无法转账',
  255. icon: "error",
  256. });
  257. return
  258. }
  259. uni.showLoading({
  260. title: '转账中...',
  261. mask: true
  262. });
  263. uni.showModal({
  264. title: '积分转账',
  265. content: `是否转账给用户ID:${that.change_target.id}用户${that.change_target.number}余额`,
  266. success: res => {
  267. if (res.confirm) {
  268. changeMoneyTarget({
  269. uid: that.change_target.id,
  270. num: that.change_target.number,
  271. }).then(function(res) {
  272. uni.hideLoading()
  273. that.change_target.id = '';
  274. that.change_target.number = '';
  275. that.getUserInfo();
  276. uni.showToast({
  277. title: '转账成功'
  278. });
  279. }).catch((res) => {
  280. uni.hideLoading();
  281. uni.showModal({
  282. title: '错误',
  283. content: res,
  284. showCancel: false,
  285. });
  286. });
  287. } else {
  288. uni.hideLoading()
  289. }
  290. },
  291. });
  292. },
  293. onLoadFun: function() {
  294. this.getUserInfo();
  295. this.get_activity();
  296. this.isShowAuth = false;
  297. },
  298. // 授权关闭
  299. authColse: function(e) {
  300. this.isShowAuth = e
  301. },
  302. // #ifdef MP
  303. openSubscribe: function(page) {
  304. uni.showLoading({
  305. title: '正在加载',
  306. })
  307. openRechargeSubscribe().then(res => {
  308. uni.hideLoading();
  309. uni.navigateTo({
  310. url: page,
  311. });
  312. }).catch(() => {
  313. uni.hideLoading();
  314. });
  315. },
  316. // #endif
  317. /**
  318. * 获取用户详情
  319. */
  320. getUserInfo: function() {
  321. let that = this;
  322. getUserInfo().then(res => {
  323. that.$set(that, 'userInfo', res.data);
  324. that.recharge_switch = res.data.recharge_switch;
  325. });
  326. },
  327. /**
  328. * 获取活动可参与否
  329. */
  330. get_activity: function() {
  331. let that = this;
  332. userActivity().then(res => {
  333. that.$set(that, "activity", res.data);
  334. })
  335. },
  336. /**
  337. * 获取我的推荐
  338. */
  339. get_host_product: function() {
  340. let that = this;
  341. if (that.hotScroll) return
  342. getProductHot(
  343. that.hotPage,
  344. that.hotLimit,
  345. ).then(res => {
  346. that.hotPage++
  347. that.hotScroll = res.data.length < that.hotLimit
  348. that.hostProduct = that.hostProduct.concat(res.data)
  349. });
  350. }
  351. },
  352. onReachBottom() {
  353. this.get_host_product();
  354. }
  355. }
  356. </script>
  357. <style scoped lang="scss">
  358. .my-account .wrapper {
  359. background-color: #fff;
  360. padding: 32rpx 0 34rpx 0;
  361. margin-bottom: 14rpx;
  362. }
  363. .my-account .wrapper .header {
  364. width: 690rpx;
  365. height: 330rpx;
  366. // background-image: linear-gradient(to right, #f33b2b 0%, #f36053 100%);
  367. // background-image: var(--view-theme);
  368. background: var(--view-theme);
  369. border-radius: 16rpx;
  370. margin: 0 auto;
  371. box-sizing: border-box;
  372. color: rgba(255, 255, 255, 0.6);
  373. font-size: 24rpx;
  374. }
  375. .my-account .wrapper .header .headerCon {
  376. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAAFKCAYAAADhULxpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0Y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gwIWQAgSX3UtTQfdyFkAYAwPu5CyAIAcXzchZAFAOKMzcddCFkAIPD57vpZhCwAEMXHXQhZACBSzcUOjgEhCwAkOa8/ELIAQNQz3aUHCFkAII65WIQsABCnNhSYi0XIAgBRal+suViELAAQ9xy3LxYhCwDEqYg1F4uQBQCi1PWzJ8eAkAUAktSHXVZtIWQdAQDEMRcLQhYA4riCFoQsAMSpmdjJMYCQBYAktZ3ASAEIWQCIM3tug5AFgDQ1UuD2LhCyABDFSAEIWQCINHleg5AFgDRDs6UAhCwABFocAQhZAEhjpACELABEPp9nxwBCFgDS2FIAQhYA4oztbW8sIGQBIIadsSBkASDSvMYsIGQBIEbtjHUNLQhZAIhjpACELADEqTexg2MAIQsASWom1s5YELIAEGdqPvACIQsAgc/hyTGAkAWAND7wAiELAHFOzQ1eIGQBIJAPvEDIAkAc67ZAyAJAHOu2QMgCQCTrtkDIAkCcCtizYwAhCwBp5uZtLAhZAAh85nobC0IWAOL4wAuELADEqVVbo2MAIQsAaSZHAEIWANJ4GwtCFgAimY2FnfwSYABJ5w5fwq1SbwAAAABJRU5ErkJggg==');
  377. background-repeat: no-repeat;
  378. background-size: 100%;
  379. height: 100%;
  380. width: 100%;
  381. padding: 36rpx 0 29rpx 0;
  382. box-sizing: border-box;
  383. }
  384. .my-account .wrapper .header .headerCon .account {
  385. padding: 0 35rpx;
  386. }
  387. .my-account .wrapper .header .headerCon .account .assets .money {
  388. font-size: 72rpx;
  389. color: #fff;
  390. font-family: 'Guildford Pro';
  391. }
  392. .my-account .wrapper .header .headerCon .account .recharge {
  393. font-size: 28rpx;
  394. width: 150rpx;
  395. height: 54rpx;
  396. border-radius: 27rpx;
  397. background-color: #fff9f8;
  398. text-align: center;
  399. line-height: 54rpx;
  400. color: var(--view-theme);
  401. }
  402. .recharge-hz {
  403. margin-top: 10rpx;
  404. font-size: 28rpx;
  405. width: 150rpx;
  406. height: 54rpx;
  407. border-radius: 27rpx;
  408. background-color: #fff9f8;
  409. text-align: center;
  410. line-height: 54rpx;
  411. color: var(--view-theme);
  412. }
  413. .my-account .wrapper .header .headerCon .cumulative {
  414. margin-top: 46rpx;
  415. }
  416. .my-account .wrapper .header .headerCon .cumulative .item {
  417. flex: 1;
  418. padding-left: 35rpx;
  419. }
  420. .my-account .wrapper .header .headerCon .cumulative .item .money {
  421. font-size: 48rpx;
  422. font-family: 'Guildford Pro';
  423. color: #fff;
  424. margin-top: 6rpx;
  425. }
  426. .my-account .wrapper .nav {
  427. height: 155rpx;
  428. border-bottom: 1rpx solid #f5f5f5;
  429. }
  430. .my-account .wrapper .nav .item {
  431. flex: 1;
  432. text-align: center;
  433. font-size: 26rpx;
  434. color: #999;
  435. }
  436. .my-account .wrapper .nav .item .iconfont {
  437. font-size: 44rpx;
  438. margin: 0 auto;
  439. margin-bottom: 14rpx;
  440. color: var(--view-theme);
  441. }
  442. .my-account .wrapper .advert {
  443. padding: 0 30rpx;
  444. margin-top: 30rpx;
  445. }
  446. .my-account .wrapper .advert .item {
  447. background-color: #fff6d1;
  448. width: 332rpx;
  449. height: 118rpx;
  450. border-radius: 10rpx;
  451. padding: 0 27rpx 0 25rpx;
  452. box-sizing: border-box;
  453. font-size: 24rpx;
  454. color: #e44609;
  455. }
  456. .my-account .wrapper .advert .item.on {
  457. background-color: #fff3f3;
  458. color: #e96868;
  459. }
  460. .my-account .wrapper .advert .item .pictrue {
  461. width: 78rpx;
  462. height: 78rpx;
  463. }
  464. .my-account .wrapper .advert .item .pictrue image {
  465. width: 100%;
  466. height: 100%;
  467. }
  468. .my-account .wrapper .advert .item .text .name {
  469. font-size: 30rpx;
  470. font-weight: bold;
  471. color: #f33c2b;
  472. margin-bottom: 7rpx;
  473. }
  474. .my-account .wrapper .advert .item.on .text .name {
  475. color: #f64051;
  476. }
  477. .my-account .wrapper .list {
  478. padding: 0 30rpx;
  479. }
  480. .my-account .wrapper .list .item {
  481. margin-top: 44rpx;
  482. }
  483. .my-account .wrapper .list .item .picTxt .iconfont {
  484. width: 82rpx;
  485. height: 82rpx;
  486. border-radius: 50%;
  487. background-image: linear-gradient(to right, #ff9389 0%, #f9776b 100%);
  488. text-align: center;
  489. line-height: 82rpx;
  490. color: #fff;
  491. font-size: 40rpx;
  492. }
  493. .my-account .wrapper .list .item .picTxt .iconfont.yellow {
  494. background-image: linear-gradient(to right, #ffccaa 0%, #fea060 100%);
  495. }
  496. .my-account .wrapper .list .item .picTxt .iconfont.green {
  497. background-image: linear-gradient(to right, #a1d67c 0%, #9dd074 100%);
  498. }
  499. .my-account .wrapper .list .item .picTxt {
  500. width: 428rpx;
  501. font-size: 30rpx;
  502. color: #282828;
  503. }
  504. .my-account .wrapper .list .item .picTxt .text {
  505. width: 317rpx;
  506. }
  507. .my-account .wrapper .list .item .picTxt .text .infor {
  508. font-size: 24rpx;
  509. color: #999;
  510. margin-top: 5rpx;
  511. }
  512. .my-account .wrapper .list .item .bnt {
  513. font-size: 26rpx;
  514. color: #282828;
  515. width: 156rpx;
  516. height: 52rpx;
  517. border: 1px solid #ddd;
  518. border-radius: 26rpx;
  519. text-align: center;
  520. }
  521. .my-account .wrapper .list .item .bnt.end {
  522. font-size: 26rpx;
  523. color: #aaa;
  524. background-color: #f2f2f2;
  525. border-color: #f2f2f2;
  526. }
  527. .personal-data {
  528. padding:30rpx 0;
  529. .list {
  530. margin-top: 15rpx;
  531. background-color: #fff;
  532. .item {
  533. padding: 30rpx 30rpx 30rpx 0;
  534. border-bottom: 1rpx solid #f2f2f2;
  535. margin-left: 30rpx;
  536. font-size: 32rpx;
  537. color: #282828;
  538. .label {
  539. margin-right: 30rpx;
  540. }
  541. .phone {
  542. width: 160rpx;
  543. height: 56rpx;
  544. font-size: 24rpx;
  545. color: #fff;
  546. line-height: 56rpx;
  547. border-radius: 32rpx
  548. }
  549. .pictrue {
  550. width: 88rpx;
  551. height: 88rpx;
  552. image {
  553. width: 100%;
  554. height: 100%;
  555. border-radius: 50%;
  556. }
  557. }
  558. .input {
  559. width: 460rpx;
  560. text-align: right;
  561. color: #868686;
  562. input {
  563. text-align: right;
  564. }
  565. .picker {
  566. width: 400rpx;
  567. }
  568. .id {
  569. width: 414rpx;
  570. }
  571. .iconfont {
  572. font-size: 35rpx;
  573. color: #868686;
  574. }
  575. }
  576. }
  577. }
  578. .cartcolor {
  579. color: var(--view-theme);
  580. border: 1px solid var(--view-theme);
  581. }
  582. .modifyBnt {
  583. font-size: 32rpx;
  584. color: #fff;
  585. width: 690rpx;
  586. height: 90rpx;
  587. border-radius: 50rpx;
  588. text-align: center;
  589. line-height: 90rpx;
  590. margin: 76rpx auto 0 auto;
  591. }
  592. .logOut {
  593. font-size: 32rpx;
  594. text-align: center;
  595. width: 690rpx;
  596. height: 90rpx;
  597. border-radius: 45rpx;
  598. margin: 30rpx auto 0 auto;
  599. }
  600. }
  601. </style>