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

597 lines
28 KiB
JavaScript
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.

(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/distribution/distribution"],{
/***/ 77:
/*!***********************************************************************************!*\
!*** D:/Lee/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 */ 78));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"]))
/***/ }),
/***/ 78:
/*!****************************************************************!*\
!*** D:/Lee/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& */ 79);
/* harmony import */ var _distribution_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./distribution.vue?vue&type=script&lang=js& */ 81);
/* 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);
/***/ }),
/***/ 79:
/*!***********************************************************************************************!*\
!*** D:/Lee/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& */ 80);
/* 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"]; });
/***/ }),
/***/ 80:
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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:/Lee/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 */ 155))
}
}
} 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
/***/ }),
/***/ 81:
/*!*****************************************************************************************!*\
!*** D:/Lee/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& */ 82);
/* 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);
/***/ }),
/***/ 82:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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:/Lee/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 _base64Src = __webpack_require__(/*! @/jsFile/base64-src.js */ 83); //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = { data: function data() {return { logoSrc: '/static/img/logo.png', //商城logo
isShow: false, //分销码弹窗
withdrawal: false, //提现弹窗
navList: ['返利记录', '我的团队', '提现记录'], //导航数据
navIndex: 0, //导航当前
teamNav: [{ title: '经销商团队', num: 0 }, { title: '我的消费团', num: 0 }], //团队导航
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, shareFlag: true };}, onLoad: function onLoad(op) {// 获取分销码
this.getCodeEv(); // 获取列表信息
this.getRecordList();}, 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.team.distributor_total + res.data.team.team_total;_this.teamNav[0].num = res.data.team.distributor_total;_this.teamNav[1].num = res.data.team.team_total;}});}, // 获取分销码
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;}});}, // 分享到微信
shareImgEv: function shareImgEv(id) {var _this3 = this;var that = this;if (this.shareFlag) {this.shareFlag = false;wx.downloadFile({ url: this.codeImg, success: function success(res) {_this3.$toolAll.tools.showToast('正在调起分享...');wx.showShareImageMenu({ path: res.tempFilePath });}, fail: function fail(res) {console.log(res);if (res.errMsg.indexOf('deny') != -1 || res.errMsg.indexOf('denied') != -1) {wx.showToast({ title: '保存相册失败,请设置权限!', icon: 'none', duration: 2000 });_this3.shareFlag = true;} else {wx.showToast({ title: '保存相册失败,请重试!', icon: 'none', duration: 2000 });_this3.shareFlag = true;}} });} else {this.$toolAll.tools.showToast('请勿重复点击');}}, // 获取列表信息
getRecordList: function getRecordList() {var _this4 = 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: _this4.$toolAll.tools.addXiaoShu(item.num) };recordArr.push(obj);});if (recordArr.length == 0) {_this4.noMor = true;}_this4.recordList = _this4.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: _this4.$toolAll.tools.addXiaoShu(item.contribution) };
recordArr.push(obj);
});
if (recordArr.length == 0) {
_this4.noMor = true;
}
_this4.recordList = _this4.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: _this4.$toolAll.tools.addXiaoShu(item.contribution) };
recordArr.push(obj);
});
if (recordArr.length == 0) {
_this4.noMor = true;
}
_this4.recordList = _this4.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: _this4.$toolAll.tools.addXiaoShu(item.number),
cover: '',
created_at: item.created_at,
title: item.status,
price: '' };
recordArr.push(obj);
});
if (recordArr.length == 0) {
_this4.noMor = true;
}
_this4.recordList = _this4.recordList.concat(recordArr);
}
});
}
uni.hideLoading();
this.isLoading = true;
},
// 打开分销码
openCode: function openCode() {
this.isShow = true;
},
// 打开提现
openWithdrawal: function openWithdrawal() {var _this5 = this;
this.$requst.post('/api/user/get-deposit-bank-info').then(function (res) {
if (res.code == 0) {
console.log(res, '提现账户信息');
_this5.real_name = res.data.real_name;
_this5.bank_account = res.data.bank_account;
_this5.deposit_bank = res.data.deposit_bank;
_this5.withdrawal = true;
}
});
},
// 发起提现
submitEv: function submitEv() {var _this6 = 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, '提现成功');
_this6.withdrawal = false;
_this6.getUserInfo();
} else {
_this6.$toolAll.tools.showToast(res.msg);
}
setTimeout(function () {
_this6.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"]))
/***/ })
},[[77,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/distribution/distribution.js.map