3 lines
13 KiB
JavaScript
3 lines
13 KiB
JavaScript
(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<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=v,l(b,"constructor",v),l(v,"constructor",p),p.displayName=l(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,a,n,r,i){void 0===i&&(i=Promise);var o=new x(u(e,a,n,r),i);return t.isGeneratorFunction(a)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),l(b,c,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var a in t)e.push(a);return e.reverse(),function a(){for(;e.length;){var n=e.pop();if(n in t)return a.value=n,a.done=!1,a}return a.done=!0,a}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(a,n){return o.type="throw",o.arg=t,e.next=a,n&&(e.method="next",e.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=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<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=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.length<s)&&(a.finished=!0),(n=e).push.apply(n,Object(c["a"])(r.data)),a.page++})).catch((function(){a.loading=!1})))},getDividendData:function(){var t=arguments;return Object(s["a"])(Object(o["a"])().mark((function e(){var a,n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.length>0&&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})}}]); |