(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/distribution/distribution"],{ /***/ 73: /*!************************************************************************************!*\ !*** D:/老农商城/mall-laonong/main.js?{"page":"pagesA%2Fdistribution%2Fdistribution"} ***! \************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5); var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4)); var _distribution = _interopRequireDefault(__webpack_require__(/*! ./pagesA/distribution/distribution.vue */ 74));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_distribution.default); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"])) /***/ }), /***/ 74: /*!*****************************************************************!*\ !*** D:/老农商城/mall-laonong/pagesA/distribution/distribution.vue ***! \*****************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _distribution_vue_vue_type_template_id_b284b2aa___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./distribution.vue?vue&type=template&id=b284b2aa& */ 75); /* harmony import */ var _distribution_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./distribution.vue?vue&type=script&lang=js& */ 77); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _distribution_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _distribution_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11); var renderjs /* normalize component */ var component = Object(_HBuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( _distribution_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _distribution_vue_vue_type_template_id_b284b2aa___WEBPACK_IMPORTED_MODULE_0__["render"], _distribution_vue_vue_type_template_id_b284b2aa___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, null, false, _distribution_vue_vue_type_template_id_b284b2aa___WEBPACK_IMPORTED_MODULE_0__["components"], renderjs ) component.options.__file = "pagesA/distribution/distribution.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 75: /*!************************************************************************************************!*\ !*** D:/老农商城/mall-laonong/pagesA/distribution/distribution.vue?vue&type=template&id=b284b2aa& ***! \************************************************************************************************/ /*! exports provided: render, staticRenderFns, recyclableRender, components */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _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___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../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??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??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& */ 76); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _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___WEBPACK_IMPORTED_MODULE_0__["render"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _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___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _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___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _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___WEBPACK_IMPORTED_MODULE_0__["components"]; }); /***/ }), /***/ 76: /*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/老农商城/mall-laonong/pagesA/distribution/distribution.vue?vue&type=template&id=b284b2aa& ***! \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns, recyclableRender, components */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; }); var components try { components = { statusNav: function() { return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 134)) } } } catch (e) { if ( e.message.indexOf("Cannot find module") !== -1 && e.message.indexOf(".vue") !== -1 ) { console.error(e.message) console.error("1. 排查组件名称拼写是否正确") console.error( "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom" ) console.error( "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件" ) } else { throw e } } var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h } var recyclableRender = false var staticRenderFns = [] render._withStripped = true /***/ }), /***/ 77: /*!******************************************************************************************!*\ !*** D:/老农商城/mall-laonong/pagesA/distribution/distribution.vue?vue&type=script&lang=js& ***! \******************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _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___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??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??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& */ 78); /* harmony import */ var _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___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_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___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _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___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _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___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_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___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ 78: /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/老农商城/mall-laonong/pagesA/distribution/distribution.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // var _default = { data: function data() { return { isShow: false, //分销码弹窗 withdrawal: false, //提现弹窗 navList: ['返利记录', '我的团队', '提现记录'], //导航数据 navIndex: 0, //导航当前 teamNav: ['经销商团队', '我的消费团'], //团队导航 teamIndex: 0, //团队当前 recordList: [], //记录列表 commission: 0, //佣金金额 cumulative_income: 0, //累计收益 cumulative_withdrawal: 0, //累计提现 my_team: 0, //我的团队 codeImg: '', //分销码 real_name: '', //姓名 bank_account: '', //卡号 deposit_bank: '', //银行 myPrice: '', //提现金额 page: 1, size: 10, noMore: false, flag: true, isLoading: false }; }, onLoad: function onLoad(op) { // // 调用返利记录列表 // this.getRebateEv(); // // 调用我的团队列表 // this.getMyTeam(); // // 调用获取提现记录列表 // this.getWithdrawal(); // 获取分销码 this.getCodeEv(); // 获取列表信息 this.getRecordList(); }, // 分享到微信 onShareAppMessage: function onShareAppMessage(res) { this.isShow = false; if (res.from === 'button') {//分享按钮 return { title: '分销二维码', imageUrl: this.codeImg, success: function success(res) { if (res.errMsg == 'shareAppMessage:ok') { console.log("成功", res); } }, fail: function fail(res) { console.log("失败", res); } }; } }, onReachBottom: function onReachBottom() { if (!this.noMor) { this.page++; // 获取列表信息 this.getRecordList(); } }, onShow: function onShow() { this.getUserInfo(); }, methods: { // 获取个人信息 getUserInfo: function getUserInfo() {var _this = this; this.$requst.post('/api/user/info').then(function (res) { if (res.code == 0) { console.log(res, '用户信息'); _this.commission = res.data.commission; _this.cumulative_income = _this.$toolAll.tools.addXiaoShu(res.data.cumulative_income); _this.cumulative_withdrawal = _this.$toolAll.tools.addXiaoShu(res.data.cumulative_withdrawal); _this.my_team = res.data.my_team; } }); }, // 获取分销码 getCodeEv: function getCodeEv() {var _this2 = this; this.$requst.post('/api/user/my-distribution-code').then(function (res) { if (res.code == 0) { console.log(res, '分销码'); _this2.codeImg = _this2.$hostHttp + res.data.qr; } }); }, // 获取列表信息 getRecordList: function getRecordList() {var _this3 = this; uni.showLoading({ title: '加载中' }); if (this.navIndex == 0) { var params = { page: this.page, size: this.size, type: 'commission' }; this.$requst.post('/api/user/data-log-list', params).then(function (res) { if (res.code == 0) { console.log(res, '返利记录'); var recordArr = []; res.data.forEach(function (item) { var obj = { id: item.id, name: item.subAccount == null ? '' : item.subAccount.nickname, cover: item.subAccount == null ? '' : item.subAccount.headimgurl, created_at: item.created_at, title: item.name, price: _this3.$toolAll.tools.addXiaoShu(item.num) }; recordArr.push(obj); }); if (recordArr.length == 0) { _this3.noMor = true; } _this3.recordList = _this3.recordList.concat(recordArr); } }); } if (this.navIndex == 1) { if (this.teamIndex == 0) { var _params = { page: this.page, size: this.size, is_distributor: 1 }; this.$requst.post('/api/user/team-list', _params).then(function (res) { if (res.code == 0) { console.log(res, '经销商团队'); var recordArr = []; res.data.forEach(function (item) { var obj = { id: item.id, name: item.nickname, cover: item.headimgurl, created_at: item.created_at, title: '累计返利', price: _this3.$toolAll.tools.addXiaoShu(item.contribution) }; recordArr.push(obj); }); if (recordArr.length == 0) { _this3.noMor = true; } _this3.recordList = _this3.recordList.concat(recordArr); } }); } else { var _params2 = { page: this.page, size: this.size, is_distributor: 0 }; this.$requst.post('/api/user/team-list', _params2).then(function (res) { if (res.code == 0) { console.log(res, '我的消费团队'); var recordArr = []; res.data.forEach(function (item) { var obj = { id: item.id, name: item.nickname, cover: item.headimgurl, created_at: item.created_at, title: '累计返利', price: _this3.$toolAll.tools.addXiaoShu(item.contribution) }; recordArr.push(obj); }); if (recordArr.length == 0) { _this3.noMor = true; } _this3.recordList = _this3.recordList.concat(recordArr); } }); } } if (this.navIndex == 2) { var _params3 = { page: this.page, size: this.size }; this.$requst.post('/api/user/withdrawal-commission-log-list', _params3).then(function (res) { if (res.code == 0) { console.log(res, '提现列表'); var recordArr = []; res.data.forEach(function (item) { var obj = { id: item.id, name: _this3.$toolAll.tools.addXiaoShu(item.number), cover: '', created_at: item.created_at, title: item.status, price: '' }; recordArr.push(obj); }); if (recordArr.length == 0) { _this3.noMor = true; } _this3.recordList = _this3.recordList.concat(recordArr); } }); } uni.hideLoading(); this.isLoading = true; }, // 打开分销码 openCode: function openCode() { this.isShow = true; }, // 打开提现 openWithdrawal: function openWithdrawal() {var _this4 = this; this.$requst.post('/api/user/get-deposit-bank-info').then(function (res) { if (res.code == 0) { console.log(res, '提现账户信息'); _this4.real_name = res.data.real_name; _this4.bank_account = res.data.bank_account; _this4.deposit_bank = res.data.deposit_bank; _this4.withdrawal = true; } }); }, // 发起提现 submitEv: function submitEv() {var _this5 = this; if (this.checkEmpty() && this.flag) { var params = { commission: this.myPrice, username: this.real_name, deposit_bank: this.deposit_bank, bank_account: this.bank_account }; this.$requst.post('/api/user/commission-withdrawal', params).then(function (res) { if (res.code == 0) { console.log(res, '提现成功'); _this5.withdrawal = false; _this5.getUserInfo(); } else { _this5.$toolAll.tools.showToast(res.msg); } setTimeout(function () { _this5.flag = true; }, 2000); }); } }, // 验证表单 checkEmpty: function checkEmpty() { var result = false; if (!this.myPrice) { this.$toolAll.tools.showToast('请填写提现金额'); } else { result = true; } return result; }, // 切换导航 changeNav: function changeNav(index) { if (index !== this.navIndex) { this.navIndex = index; this.page = 0; this.recordList = []; // 获取列表信息 this.getRecordList(); } }, // 切换团队 changeTeam: function changeTeam(index) { if (index !== this.teamIndex) { this.teamIndex = index; this.page = 0; this.recordList = []; // 获取列表信息 this.getRecordList(); } }, // 关闭弹窗 closeEv: function closeEv() { this.isShow = false; this.withdrawal = false; } } };exports.default = _default; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"])) /***/ }) },[[73,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/distribution/distribution.js.map