mall-laonong/unpackage/dist/dev/.sourcemap/mp-weixin/pagesA/distribution/distribution.js.map

1 line
25 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/Lee/mall-laonong/pagesA/distribution/distribution.vue?85d5","webpack:///D:/Lee/mall-laonong/pagesA/distribution/distribution.vue?ad3a","webpack:///D:/Lee/mall-laonong/pagesA/distribution/distribution.vue?524e","webpack:///D:/Lee/mall-laonong/pagesA/distribution/distribution.vue?b8c6","uni-app:///pagesA/distribution/distribution.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"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;AACA,WApBA;AAqBA,SA3BA,MA2BA;AACA;AACA,2BADA;AAEA,2BAFA;AAGA,6BAHA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA,6BADA;AAEA,qCAFA;AAGA,wCAHA;AAIA,6CAJA;AAKA,+BALA;AAMA,4EANA;;AAQA;AACA,eAVA;AAWA;AACA;AACA;AACA;AACA;AACA,WApBA;AAqBA;;AAEA;AACA;AACA;AACA,yBADA;AAEA,yBAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,2BADA;AAEA,mEAFA;AAGA,yBAHA;AAIA,2CAJA;AAKA,kCALA;AAMA,yBANA;;AAQA;AACA,aAVA;AAWA;AACA;AACA;AACA;AACA;AACA,SApBA;AAqBA;AACA;AACA;AACA,KApLA;;;AAuLA;AACA,YAxLA,sBAwLA;AACA;AACA,KA1LA;AA2LA;AACA,kBA5LA,4BA4LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OARA;AASA,KAtMA;AAuMA;AACA,YAxMA,sBAwMA;AACA;AACA;AACA,kCADA;AAEA,kCAFA;AAGA,yCAHA;AAIA,yCAJA;;AAMA;AACA;AACA;AACA;AACA;AACA,WAJA,MAIA;AACA;AACA;AACA;AACA;AACA,WAFA,EAEA,IAFA;AAGA,SAXA;AAYA;AACA,KA7NA;AA8NA;AACA,cA/NA,wBA+NA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA,KAvOA;;AAyOA;AACA,aA1OA,qBA0OA,KA1OA,EA0OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAlPA;AAmPA;AACA,cApPA,sBAoPA,KApPA,EAoPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA5PA;AA6PA;AACA,WA9PA,qBA8PA;AACA;AACA;AACA,KAjQA,EAhDA,E","file":"pagesA/distribution/distribution.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesA/distribution/distribution.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./distribution.vue?vue&type=template&id=b284b2aa&\"\nvar renderjs\nimport script from \"./distribution.vue?vue&type=script&lang=js&\"\nexport * from \"./distribution.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesA/distribution/distribution.vue\"\nexport default component.exports","export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./distribution.vue?vue&type=template&id=b284b2aa&\"","var components\ntry {\n components = {\n statusNav: function() {\n return import(\n /* webpackChunkName: \"components/status-nav/status-nav\" */ \"@/components/status-nav/status-nav.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./distribution.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./distribution.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pad-x150\" v-if=\"isLoading\">\r\n\t\t<status-nav :ifReturn=\"true\" navBarTitle=\"分销中心\" :marginBottom=\"0\"></status-nav>\r\n\t\t<!-- 分销概况 -->\r\n\t\t<view class=\"distribution border-box\">\r\n\t\t\t<view class=\"distribution-msg radius30 pad-all40 border-box\">\r\n\t\t\t\t<view class=\"distribution-txt border-box flex\">\r\n\t\t\t\t\t<view class=\"txt\">\r\n\t\t\t\t\t\t<view class=\"title font30 mar-x20\">我的佣金</view>\r\n\t\t\t\t\t\t<view class=\"price font60\"><text class=\"font48\">¥</text>{{commission}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"code-btn mar-s10\" @tap=\"openCode\">\r\n\t\t\t\t\t\t<image src=\"/static/icon/icon-code.png\" mode=\"widthFix\" style=\"width: 87rpx;height: 87rpx;\"></image>\r\n\t\t\t\t\t\t<view class=\"font24 mar-s10\">查看分销码</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"distribution-profit mar-s40 flex\">\r\n\t\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t\t<text class=\"font24\">累计收益</text>\r\n\t\t\t\t\t\t<view class=\"profit-price font36 mar-s10\">¥{{cumulative_income>0?cumulative_income:'0'}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"line\"></view>\r\n\t\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t\t<text class=\"font24\">累计提现</text>\r\n\t\t\t\t\t\t<view class=\"profit-price font36 mar-s10\">¥{{cumulative_withdrawal>0?cumulative_withdrawal:'0'}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"line\"></view>\r\n\t\t\t\t\t<view class=\"item\">\r\n\t\t\t\t\t\t<text class=\"font24\">我的团队</text>\r\n\t\t\t\t\t\t<view class=\"profit-price font36 mar-s10\">{{my_team}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 记录导航 -->\r\n\t\t<view class=\"record-nav border-box pad-zy20 flex\">\r\n\t\t\t<view class=\"item color-8c radius20 border-box\" :class=\"index==navIndex?'cur':''\" v-for=\"(item,index) in navList\" :key=\"index\" @tap=\"changeNav(index)\">{{item}}</view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<!-- 记录列表 -->\r\n\t\t<view class=\"record-list border-box\">\r\n\t\t\t<!-- 团队导航 -->\r\n\t\t\t<view class=\"team-nav mar-s30 flex\" v-if=\"navIndex==1\">\r\n\t\t\t\t<view class=\"item\" v-for=\"(item,index) in teamNav\" :key=\"index\" @tap=\"changeTeam(index)\">\r\n\t\t\t\t\t<view class=\"txt font30\">\r\n\t\t\t\t\t\t{{item.title}}\r\n\t\t\t\t\t\t<text class=\"font28\" style=\"margin-left: 5rpx;\">({{item.num}})</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"line mar-s15\" :class=\"index==teamIndex?'background-orange':''\"></view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t\t<view class=\"record-item border-box pad-sx40 flex\" v-for=\"(item,index) in recordList\" :key=\"index\">\r\n\t\t\t\t<view class=\"left flex\">\r\n\t\t\t\t\t<view class=\"img radius30\" v-if=\"navIndex!==2\">\r\n\t\t\t\t\t\t<image :src=\"item.cover==''?logoSrc:item.cover\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"txt\">\r\n\t\t\t\t\t\t<view class=\"font36 mar-x10\"><text class=\"font26\" v-if=\"navIndex==2\">¥</text>{{item.name==''?'系统':item.name}}</view>\r\n\t\t\t\t\t\t<view class=\"font24 color-99\">{{item.created_at}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t<view class=\"font24\" v-if=\"navIndex==2\">\r\n\t\t\t\t\t\t<text v-if=\"item.title=='待审批'\">{{item.title}}</text>\r\n\t\t\t\t\t\t<text class=\"color-red\" v-if=\"item.title=='已驳回'\">{{item.title}}</text>\r\n\t\t\t\t\t\t<text style=\"color: #7b7b7b;\" v-if=\"item.title=='已完成'\">{{item.title}}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"font24\" v-else>{{item.title}}</view>\r\n\t\t\t\t\t<view class=\"font30 color-red mar-s10\" v-if=\"item.price\">{{item.price>0&&navIndex==0?'+'+item.price:item.price}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 到底啦 -->\r\n\t\t\t<view class=\"no-more font24\" v-if=\"noMore\"><text>—— 到底啦 ——</text></view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<!-- 尾部 -->\r\n\t\t<view class=\"pull-btn border-box\" style=\"background-color: #f5f5f5; padding-top: 28rpx;\">\r\n\t\t\t<view class=\"btn background-orange font36 radius30 flex\" @tap=\"openWithdrawal\">立即提现</view>\r\n\t\t</view>\r\n\t\t<!-- 分销码 -->\r\n\t\t<view class=\"pull-bg\" style=\"background-color: rgba(0,0,0,.3);\" v-show=\"isShow || withdrawal\"></view>\r\n\t\t<view class=\"vip-box-bg border-box\" v-if=\"isShow\">\r\n\t\t\t<view class=\"vip-box radius20 background-white font30\">\r\n\t\t\t\t<view class=\"title\">分销二维码</view>\r\n\t\t\t\t<view class=\"vip-code flex\">\r\n\t\t\t\t\t<image :src=\"codeImg\" mode=\"widthFix\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"submit-btn font36 radius30 color-ff mar-s60 flex\" @tap=\"shareImgEv\" style=\"background-color: #00b809;position: relative;\">\r\n\t\t\t\t\t<image src=\"/static/icon/icon-wechat.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t<text>分享给朋友</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"close-btn\" @tap=\"closeEv\">\r\n\t\t\t\t\t<image src=\"/static/icon/close-btn.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 提现 -->\r\n\t\t<view class=\"vip-box-bg border-box\" v-if=\"withdrawal\">\r\n\t\t\t<view class=\"vip-box radius20 background-white font30\">\r\n\t\t\t\t<view class=\"title\">提现申请</view>\r\n\t\t\t\t<view class=\"vip-list\">\r\n\t\t\t\t\t<view class=\"vip-item mar-s20\">\r\n\t\t\t\t\t\t<view class=\"tips color-99\">提现金额</view>\r\n\t\t\t\t\t\t<input class=\"input\" type=\"number\" v-model=\"myPrice\" placeholder=\"请输入提现金额\" placeholder-style=\"color:#000000\">\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"vip-item mar-s40\">\r\n\t\t\t\t\t\t<view class=\"tips color-99\">姓名</view>\r\n\t\t\t\t\t\t<input class=\"input color-99\" type=\"text\" v-model=\"real_name\" disabled=\"true\">\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"vip-item mar-s40\">\r\n\t\t\t\t\t\t<view class=\"tips color-99\">开户行</view>\r\n\t\t\t\t\t\t<input class=\"input color-99\" type=\"number\" v-model=\"deposit_bank\" disabled=\"true\">\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"vip-item mar-s40\">\r\n\t\t\t\t\t\t<view class=\"tips color-99\">银行卡号</view>\r\n\t\t\t\t\t\t<input class=\"input color-99\" type=\"number\" v-model=\"bank_account\" disabled=\"true\">\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"submit-btn font36 background-orange radius30 mar-s60 flex\" @tap=\"submitEv\">立即提现</view>\r\n\t\t\t\t<view class=\"close-btn\" @tap=\"closeEv\">\r\n\t\t\t\t\t<image src=\"/static/icon/close-btn.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport { base64ToPath } from '@/jsFile/base64-src.js';\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tlogoSrc:'/static/img/logo.png', //商城logo\r\n\t\t\t\tisShow:false, //分销码弹窗\r\n\t\t\t\twithdrawal:false, //提现弹窗\r\n\t\t\t\tnavList:['返利记录','我的团队','提现记录'], //导航数据\r\n\t\t\t\tnavIndex:0, //导航当前\r\n\t\t\t\tteamNav:[\r\n\t\t\t\t\t{title:'经销商团队',num:0},\r\n\t\t\t\t\t{title:'我的消费团',num:0}\r\n\t\t\t\t], //团队导航\r\n\t\t\t\tteamIndex:0, //团队当前\r\n\t\t\t\trecordList:[], //记录列表\r\n\t\t\t\tcommission:0, //佣金金额\r\n\t\t\t\tcumulative_income:0, //累计收益\r\n\t\t\t\tcumulative_withdrawal:0, //累计提现\r\n\t\t\t\tmy_team:0, //我的团队\r\n\t\t\t\tcodeImg:'', //分销码\r\n\t\t\t\treal_name:'', //姓名\r\n\t\t\t\tbank_account:'',//卡号\r\n\t\t\t\tdeposit_bank:'', //银行\r\n\t\t\t\tmyPrice:'', //提现金额\r\n\t\t\t\tpage:1,\r\n\t\t\t\tsize:10,\r\n\t\t\t\tnoMore:false,\r\n\t\t\t\tflag:true,\r\n\t\t\t\tisLoading:false,\r\n\t\t\t\tshareFlag:true,\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\t// 获取分销码\r\n\t\t\tthis.getCodeEv();\r\n\t\t\t\r\n\t\t\t// 获取列表信息\r\n\t\t\tthis.getRecordList();\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t\tif(!this.noMor){\r\n\t\t\t\tthis.page++;\r\n\t\t\t\t// 获取列表信息\r\n\t\t\t\tthis.getRecordList();\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.getUserInfo();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 获取个人信息\r\n\t\t\tgetUserInfo(){\r\n\t\t\t\tthis.$requst.post('/api/user/info').then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tconsole.log(res,'用户信息');\r\n\t\t\t\t\t\tthis.commission = res.data.commission;\r\n\t\t\t\t\t\tthis.cumulative_income = this.$toolAll.tools.addXiaoShu(res.data.cumulative_income);\r\n\t\t\t\t\t\tthis.cumulative_withdrawal = this.$toolAll.tools.addXiaoShu(res.data.cumulative_withdrawal);\r\n\t\t\t\t\t\tthis.my_team = res.data.team.distributor_total+res.data.team.team_total;\r\n\t\t\t\t\t\tthis.teamNav[0].num = res.data.team.distributor_total;\r\n\t\t\t\t\t\tthis.teamNav[1].num = res.data.team.team_total;\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 获取分销码\r\n\t\t\tgetCodeEv(){\r\n\t\t\t\tthis.$requst.post('/api/user/my-distribution-code').then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tconsole.log(res,'分销码');\r\n\t\t\t\t\t\tthis.codeImg = this.$hostHttp + res.data.qr;\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 分享到微信\r\n\t\t\tshareImgEv(id){\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tif(this.shareFlag){\r\n\t\t\t\t\tthis.shareFlag = false;\r\n\t\t\t\t\twx.downloadFile({\r\n\t\t\t\t\t url: this.codeImg,\r\n\t\t\t\t\t success: (res) => {\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('正在调起分享...');\r\n\t\t\t\t\t wx.showShareImageMenu({\r\n\t\t\t\t\t path: res.tempFilePath\r\n\t\t\t\t\t })\r\n\t\t\t\t\t },\r\n\t\t\t\t\t fail: (res)=> {\r\n\t\t\t\t\t console.log(res)\r\n\t\t\t\t\t if( res.errMsg.indexOf('deny')!=-1||res.errMsg.indexOf('denied')!=-1 ){\r\n\t\t\t\t\t wx.showToast({\r\n\t\t\t\t\t title: '保存相册失败,请设置权限!',\r\n\t\t\t\t\t icon: 'none',\r\n\t\t\t\t\t duration: 2000,\r\n\t\t\t\t\t })\r\n\t\t\t\t\t\t\t\tthis.shareFlag = true;\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t wx.showToast({\r\n\t\t\t\t\t title: '保存相册失败,请重试!',\r\n\t\t\t\t\t icon: 'none',\r\n\t\t\t\t\t duration: 2000,\r\n\t\t\t\t\t });\r\n\t\t\t\t\t\t\t\tthis.shareFlag = true;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {this.$toolAll.tools.showToast('请勿重复点击');}\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 获取列表信息\r\n\t\t\tgetRecordList(){\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle:'加载中'\r\n\t\t\t\t})\r\n\t\t\t\tif(this.navIndex == 0){\r\n\t\t\t\t\tlet params = {\r\n\t\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\t\tsize:this.size,\r\n\t\t\t\t\t\ttype:'commission'\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$requst.post('/api/user/data-log-list',params).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\tconsole.log(res,'返利记录');\r\n\t\t\t\t\t\t\tlet recordArr = [];\r\n\t\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\tname:item.subAccount==null?'':item.subAccount.nickname,\r\n\t\t\t\t\t\t\t\t\tcover:item.subAccount==null?'':item.subAccount.headimgurl,\r\n\t\t\t\t\t\t\t\t\tcreated_at:item.created_at,\r\n\t\t\t\t\t\t\t\t\ttitle:item.name,\r\n\t\t\t\t\t\t\t\t\tprice:this.$toolAll.tools.addXiaoShu(item.num)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\trecordArr.push(obj);\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tif(recordArr.length==0){\r\n\t\t\t\t\t\t\t\tthis.noMor = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.recordList = this.recordList.concat(recordArr);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\tif(this.navIndex == 1){\r\n\t\t\t\t\tif(this.teamIndex == 0){\r\n\t\t\t\t\t\tlet params = {\r\n\t\t\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\t\t\tsize:this.size,\r\n\t\t\t\t\t\t\tis_distributor:1\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.$requst.post('/api/user/team-list',params).then(res=>{\r\n\t\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\t\tconsole.log(res,'经销商团队');\r\n\t\t\t\t\t\t\t\tlet recordArr = [];\r\n\t\t\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\t\tname:item.nickname,\r\n\t\t\t\t\t\t\t\t\t\tcover:item.headimgurl,\r\n\t\t\t\t\t\t\t\t\t\tcreated_at:item.created_at,\r\n\t\t\t\t\t\t\t\t\t\ttitle:'累计返利',\r\n\t\t\t\t\t\t\t\t\t\tprice:this.$toolAll.tools.addXiaoShu(item.contribution)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\trecordArr.push(obj);\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tif(recordArr.length==0){\r\n\t\t\t\t\t\t\t\t\tthis.noMor = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.recordList = this.recordList.concat(recordArr);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tlet params = {\r\n\t\t\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\t\t\tsize:this.size,\r\n\t\t\t\t\t\t\tis_distributor:0\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.$requst.post('/api/user/team-list',params).then(res=>{\r\n\t\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\t\tconsole.log(res,'我的消费团队');\r\n\t\t\t\t\t\t\t\tlet recordArr = [];\r\n\t\t\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\t\tname:item.nickname,\r\n\t\t\t\t\t\t\t\t\t\tcover:item.headimgurl,\r\n\t\t\t\t\t\t\t\t\t\tcreated_at:item.created_at,\r\n\t\t\t\t\t\t\t\t\t\ttitle:'累计返利',\r\n\t\t\t\t\t\t\t\t\t\tprice:this.$toolAll.tools.addXiaoShu(item.contribution)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\trecordArr.push(obj);\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tif(recordArr.length==0){\r\n\t\t\t\t\t\t\t\t\tthis.noMor = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.recordList = this.recordList.concat(recordArr);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif(this.navIndex == 2){\r\n\t\t\t\t\tlet params = {\r\n\t\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\t\tsize:this.size\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$requst.post('/api/user/withdrawal-commission-log-list',params).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\tconsole.log(res,'提现列表');\r\n\t\t\t\t\t\t\tlet recordArr = [];\r\n\t\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\tname:this.$toolAll.tools.addXiaoShu(item.number),\r\n\t\t\t\t\t\t\t\t\tcover:'',\r\n\t\t\t\t\t\t\t\t\tcreated_at:item.created_at,\r\n\t\t\t\t\t\t\t\t\ttitle:item.status,\r\n\t\t\t\t\t\t\t\t\tprice:''\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\trecordArr.push(obj);\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tif(recordArr.length==0){\r\n\t\t\t\t\t\t\t\tthis.noMor = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.recordList = this.recordList.concat(recordArr);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\tthis.isLoading = true;\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// 打开分销码\r\n\t\t\topenCode(){\r\n\t\t\t\tthis.isShow = true;\r\n\t\t\t},\r\n\t\t\t// 打开提现\r\n\t\t\topenWithdrawal(){\r\n\t\t\t\tthis.$requst.post('/api/user/get-deposit-bank-info').then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tconsole.log(res,'提现账户信息');\r\n\t\t\t\t\t\tthis.real_name = res.data.real_name;\r\n\t\t\t\t\t\tthis.bank_account =res.data.bank_account;\r\n\t\t\t\t\t\tthis.deposit_bank = res.data.deposit_bank;\r\n\t\t\t\t\t\tthis.withdrawal = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 发起提现\r\n\t\t\tsubmitEv(){\r\n\t\t\t\tif(this.checkEmpty() && this.flag){\r\n\t\t\t\t\tlet params = {\r\n\t\t\t\t\t\tcommission:this.myPrice,\r\n\t\t\t\t\t\tusername:this.real_name,\r\n\t\t\t\t\t\tdeposit_bank:this.deposit_bank,\r\n\t\t\t\t\t\tbank_account:this.bank_account\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$requst.post('/api/user/commission-withdrawal',params).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\tconsole.log(res,'提现成功');\r\n\t\t\t\t\t\t\tthis.withdrawal = false;\r\n\t\t\t\t\t\t\tthis.getUserInfo();\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\tthis.flag = true;\r\n\t\t\t\t\t\t},2000)\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 验证表单\r\n\t\t\tcheckEmpty(){\r\n\t\t\t\tlet result = false;\r\n\t\t\t\tif(!this.myPrice) {\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('请填写提现金额');\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult = true;\r\n\t\t\t\t}\r\n\t\t\t\treturn result;\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 切换导航\r\n\t\t\tchangeNav(index){\r\n\t\t\t\tif(index!==this.navIndex){\r\n\t\t\t\t\tthis.navIndex = index;\r\n\t\t\t\t\tthis.page = 0;\r\n\t\t\t\t\tthis.recordList = [];\r\n\t\t\t\t\t// 获取列表信息\r\n\t\t\t\t\tthis.getRecordList();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 切换团队\r\n\t\t\tchangeTeam(index){\r\n\t\t\t\tif(index!==this.teamIndex){\r\n\t\t\t\t\tthis.teamIndex = index;\r\n\t\t\t\t\tthis.page = 0;\r\n\t\t\t\t\tthis.recordList = [];\r\n\t\t\t\t\t// 获取列表信息\r\n\t\t\t\t\tthis.getRecordList();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 关闭弹窗\r\n\t\t\tcloseEv(){\r\n\t\t\t\tthis.isShow = false;\r\n\t\t\t\tthis.withdrawal =false;\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t\r\n</style>\r\n"],"sourceRoot":""}