(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c18c0702"],{1757:function(t,e,a){"use strict";a("784e")},"1da1":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("d3b7");function n(t,e,a,n,r,i,o){try{var s=t[i](o),c=s.value}catch(l){return void a(l)}s.done?e(c):Promise.resolve(c).then(n,r)}function r(t){return function(){var e=this,a=arguments;return new Promise((function(r,i){var o=t.apply(e,a);function s(t){n(o,r,i,s,c,"next",t)}function c(t){n(o,r,i,s,c,"throw",t)}s(void 0)}))}}},"24ca":function(t,e,a){"use strict";a("e096")},"45cb":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".header-member[data-v-012258e6]{padding:35px 25px;color:#fff;text-align:left;background:#ee2e2b}.header-member-nickname[data-v-012258e6]{display:inline-block;vertical-align:top;margin-left:11px;max-width:82%;color:#fff}.header-member-amount[data-v-012258e6]{padding:15px 14px;margin-bottom:10px;font-size:16px;color:#333;text-align:left;background-color:#fff}.header-member-amount span[data-v-012258e6]{color:#ee2e2b}.data-list[data-v-012258e6]{display:block;background-color:#fff}.data-item[data-v-012258e6]:first-of-type{padding:23px 14px 13px;margin:0}",""]),t.exports=e},"784e":function(t,e,a){var n=a("45cb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("28dd678e",n,!0,{sourceMap:!1,shadowMode:!1})},c7eb:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),a("b636"),a("944a"),a("0c47"),a("23dc"),a("d9e2"),a("3410"),a("159b"),a("b0c0"),a("131a"),a("fb6a");var n=a("53ca");function r(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ r=function(){return t};var t={},e=Object.prototype,a=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(j){l=function(t,e,a){return t[e]=a}}function u(t,e,a,n){var r=e&&e.prototype instanceof h?e:h,i=Object.create(r.prototype),o=new L(n||[]);return i._invoke=function(t,e,a){var n="suspendedStart";return function(r,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw i;return E()}for(a.method=r,a.arg=i;;){var o=a.delegate;if(o){var s=_(o,a);if(s){if(s===f)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===n)throw n="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n="executing";var c=d(t,e,a);if("normal"===c.type){if(n=a.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(n="completed",a.method="throw",a.arg=c.arg)}}}(t,a,o),i}function d(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(j){return{type:"throw",arg:j}}}t.wrap=u;var f={};function h(){}function p(){}function v(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(P([])));y&&y!==e&&a.call(y,o)&&(m=y);var b=v.prototype=h.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,s,c){var l=d(t[i],t,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Object(n["a"])(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}var i;this._invoke=function(t,a){function n(){return new e((function(e,n){r(t,a,e,n)}))}return i=i?i.then(n,n):n()}}function _(t,e){var a=t.iterator[e.method];if(void 0===a){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=d(a,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var r=n.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),D(a),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var n=a.completion;if("throw"===n.type){var r=n.arg;D(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:P(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=void 0),f}},t}},c9dc:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"merchants-commissioner"},[a("d-title",{attrs:{title:t.pageTitle}}),a("div",{staticClass:"header"},[t.memberInfo?a("div",{staticClass:"header-member"},[a("van-image",{attrs:{round:"",src:t.memberInfo["avatar_image"],width:"46",height:"46"}}),a("div",{staticClass:"header-member-nickname van-ellipsis"},[t._v(t._s(t.memberInfo.nickname))])],1):t._e(),a("div",{staticClass:"header-member-amount van-ellipsis"},[t._v(" 累计金额: "),a("span",[t._v(t._s(t.cumulativeAmount))])])]),a("van-tabs",{on:{change:t.switchDataTabs},model:{value:t.showDataType,callback:function(e){t.showDataType=e},expression:"showDataType"}},[a("van-tab",{attrs:{title:"全部",name:"1"}},[a("d-list",{staticClass:"data-list",attrs:{loading:t.allPagination.loading,finished:t.allPagination.finished},on:{load:t.loadData}},t._l(t.allData,(function(t){return a("data-item",{key:t.order_sn,staticClass:"data-item",attrs:{data:t}})})),1)],1),a("van-tab",{attrs:{title:"自提点",name:"2"}},[a("d-list",{staticClass:"data-list",attrs:{loading:t.selfPickupPagination.loading,finished:t.selfPickupPagination.finished},on:{load:t.loadData}},t._l(t.selfPickupData,(function(t){return a("data-item",{key:t.order_sn,staticClass:"data-item",attrs:{data:t}})})),1)],1),a("van-tab",{attrs:{title:"区域",name:"3"}},[a("d-list",{staticClass:"data-list",attrs:{loading:t.areaPagination.loading,finished:t.areaPagination.finished},on:{load:t.loadData}},t._l(t.areaData,(function(t){return a("data-item",{key:t.order_sn,staticClass:"data-item",attrs:{data:t}})})),1)],1)],1)],1)},r=[],i=(a("4056"),a("44bf")),o=a("c7eb"),s=a("1da1"),c=a("2909"),l=(a("b680"),a("a9e3"),a("f773")),u=a("94b4"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-header"},[a("div",{staticClass:"data-order-sn van-ellipsis"},[t._v(t._s(t.data.order_sn))]),a("span",{staticClass:"data-status van-ellipsis"},[t._v("¥"+t._s(t.data.dividend_amount))])]),a("div",{staticClass:"data-footer"},[a("span",{staticClass:"data-date"},[t._v(t._s(t.data.created_at))]),a("span",{staticClass:"data-type van-ellipsis"},[t._v(t._s(t.data.bonus_type_name))])])])},f=[],h={props:["data"]},p=h,v=(a("24ca"),a("2877")),m=Object(v["a"])(p,d,f,!1,null,"e1c67f6e",null),g=m.exports,y={data:function(){return{pageTitle:null,memberInfo:null,cumulativeAmount:0,showDataType:"1",allData:[],allPagination:{page:1,finished:!1,loading:!1},selfPickupData:[],selfPickupPagination:{page:1,finished:!1,loading:!1},areaData:[],areaPagination:{page:1,finished:!1,loading:!1}}},activated:function(){this.getMemberInfo(),this.loadData()},methods:{getMemberInfo:function(){var t=this;$http.get("plugin.invest-people.frontend.index.member-info").then((function(e){var a=e.data,n=a.member,r=a.grand_total_amount,i=a.plugin_name;t.memberInfo=n,t.cumulativeAmount=Number(r).toFixed(2),t.$set(t,"pageTitle",i),t.fun.setWXTitle(i)}))},switchDataTabs:function(){switch(this.showDataType){case"1":if(this.allData.length>0)return;break;case"2":if(this.selfPickupData.length>0)return;break;case"3":if(this.areaData.length>0)return;break}this.loadData()},loadData:function(){var t=null,e=this.allData,a=this.allPagination;switch(this.showDataType){case"2":e=this.selfPickupData,a=this.selfPickupPagination,t="packageDeliver";break;case"3":e=this.areaData,a=this.areaPagination,t="areaDividend";break}a.loading||a.finished||(a.loading=!0,this.getDividendData(t,{page:a.page}).then((function(t){var n,r=t.data,i=t.current_page,o=t.last_page,s=t.per_page;a.loading=!1,(i==o||r.length0&&void 0!==t[0]?t[0]:null,n={},a&&(n["bonus_type"]=a),e.abrupt("return",$http.get("plugin.invest-people.frontend.index.dividend",n));case 4:case"end":return e.stop()}}),e)})))()}},components:{DTitle:l["a"],DList:u["a"],VanImage:i["a"],dataItem:g}},b=y,w=(a("1757"),Object(v["a"])(b,n,r,!1,null,"012258e6",null));e["default"]=w.exports},d792:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".data-item[data-v-e1c67f6e]{padding:13px 0;margin:0 14px;font-size:13px;color:#333;border-top:1px solid #ebebeb}.data-item>div[data-v-e1c67f6e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}.data-footer[data-v-e1c67f6e]{margin-top:12px}.data-order-sn[data-v-e1c67f6e]{max-width:60%}.data-order-sn[data-v-e1c67f6e],.data-status[data-v-e1c67f6e]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.data-status[data-v-e1c67f6e]{margin-left:5px;max-width:40%;color:#f15353}.data-date[data-v-e1c67f6e]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-right:10px;font-size:12px}",""]),t.exports=e},e096:function(t,e,a){var n=a("d792");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("0b9eac60",n,!0,{sourceMap:!1,shadowMode:!1})}}]);