mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-27 14:10:35 +00:00
1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-636127c6"],{7443:function(t,e,a){"use strict";var r=a("b627");a.n(r).a},"7f88":function(t,e,a){},a584:function(t,e,a){"use strict";var r={name:"cards",data:function(){return{}},props:{cardLists:Array},methods:{},created:function(){}};a("7443"),a=a("2877"),a=Object(a.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:10}},t._l(t.cardLists,(function(e,r){return a("Col",{key:r,staticClass:"ivu-mb",attrs:{xl:e.col,lg:6,md:12,sm:24,xs:24}},[a("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[a("Icon",{attrs:{type:e.className}})],1)]),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"e3e38522",null);e.a=a.exports},b627:function(t,e,a){},d2d3:function(t,e,a){"use strict";a.r(e),a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),a("b636"),a("944a"),a("0c47"),a("23dc"),a("3410"),a("d9e2"),a("159b"),a("b0c0"),a("131a"),a("fb6a");var r=a("0122"),n=a("c964"),o=(a("d81d"),a("a584")),i=a("b7be");function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,a=e.hasOwnProperty,n=Object.defineProperty||function(t,e,a){t[e]=a.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(e){u=function(t,e,a){return t[e]=a}}function d(t,e,a,r){var o,i,s,c;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),r=new k(r||[]);return n(e,"_invoke",{value:(o=t,i=a,s=r,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return C()}for(s.method=t,s.arg=e;;){var a=s.delegate;if(a&&(a=function t(e,a){var r=a.method,n=e.iterator[r];return void 0===n?(a.delegate=null,"throw"===r&&e.iterator.return&&(a.method="return",a.arg=void 0,t(e,a),"throw"===a.method)||"return"!==r&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p):(r=h(n,e.iterator,a.arg),"throw"===r.type?(a.method="throw",a.arg=r.arg,a.delegate=null,p):(n=r.arg,n?n.done?(a[e.resultName]=n.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=void 0),a.delegate=null,p):n:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,p)))}(a,s),a)){if(a===p)continue;return a}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",a=h(o,i,s),"normal"===a.type){if(c=s.done?"completed":"suspendedYield",a.arg===p)continue;return{value:a.arg,done:s.done}}"throw"===a.type&&(c="completed",s.method="throw",s.arg=a.arg)}})}),e}function h(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var p={};function f(){}function v(){}function m(){}o={};var g=(u(o,i,(function(){return this})),Object.getPrototypeOf),y=(g=g&&g(g(L([]))),g&&g!==e&&a.call(g,i)&&(o=g),m.prototype=f.prototype=Object.create(o));function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function s(){return new e((function(o,s){!function n(o,i,s,c){var l;o=h(t[o],t,i);if("throw"!==o.type)return(i=(l=o.arg).value)&&"object"==Object(r.a)(i)&&a.call(i,"__await")?e.resolve(i.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(i).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}));c(o.arg)}(n,i,o,s)}))}return o=o?o.then(s,s):s()}})}function _(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var e,r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(r=function r(){for(;++e<t.length;)if(a.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r}).next=r}return{next:C}}function C(){return{value:void 0,done:!0}}return n(y,"constructor",{value:v.prototype=m,configurable:!0}),n(m,"constructor",{value:v,configurable:!0}),v.displayName=u(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),u(b.prototype,c,(function(){return this})),t.AsyncIterator=b,t.async=function(e,a,r,n,o){void 0===o&&(o=Promise);var i=new b(d(e,a,r,n),o);return t.isGeneratorFunction(a)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(y),u(y,l,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,a=Object(t),r=[];for(e in a)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in a)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=L,k.prototype={constructor:k,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(x),!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 r(a,r){return i.type="throw",i.arg=t,e.next=a,r&&(e.method="next",e.arg=void 0),!!r}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},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),p},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),x(a),p}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var a,r,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(a=n.completion).type&&(r=a.arg,x(n)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:L(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=void 0),p}},t}o={name:"index",components:{cardsData:o.a},data:function(){return{modals:!1,grid:{xl:7,lg:7,md:12,sm:24,xs:24},id:0,tbody:[],labelWidth:75,total:0,tabs:[{type:"",label:"活动参与人"},{type:"",label:"活动订单"}],currentTab:0,loading:!1,thead:[{title:"头像",slot:"avatar"},{title:"发起用户",key:"nickname"},{title:"开团时间",key:"_add_time"},{title:"拼团人数",slot:"people"},{title:"结束时间",key:"_stop_time"},{title:"拼团状态",slot:"status"},{title:"操作",slot:"action"}],thead2:[{title:"订单号",key:"order_id"},{title:"用户",key:"real_name"},{title:"订单状态",key:"status"},{title:"订单支付金额",key:"pay_price"},{title:"订单商品数",key:"total_num"},{title:"下单时间",key:"add_time"},{title:"支付时间",key:"pay_time"}],cardLists:[{col:6,count:0,name:"活动参与人数(人)",className:"ios-speedometer-outline"},{col:6,count:0,name:"推广人数(人)",className:"ios-speedometer-outline"},{col:6,count:0,name:"发起拼团数",className:"ios-speedometer-outline"},{col:6,count:0,name:"成团数",className:"ios-speedometer-outline"},{col:6,count:0,name:"支付订单额(元)",className:"ios-speedometer-outline"},{col:6,count:0,name:"支付人数(人)",className:"ios-speedometer-outline"}],pagination:{page:1,limit:15,real_name:"",status:""},type:0,loading2:!1,tabList3:[],columns2:[{title:"ID",key:"id",width:80},{title:"用户名称",slot:"nickname",minWidth:100},{title:"用户头像",slot:"avatar"},{title:"订单编号",key:"order_id"},{title:"金额",key:"total_price"},{title:"订单状态",slot:"action"}]}},created:function(){this.id=this.$route.params.id,this.getStatistics(this.id),this.getList(this.id)},methods:{getStatistics:function(t){var e=this;Object(i.F)(t).then((function(t){var a=["people_count","spread_count","start_count","success_count","pay_price","pay_count"];e.cardLists.map((function(e,r){e.count=t.data[a[r]]}))}))},getList:function(t){var e=this;this.loading=!0,0==this.type?Object(i.H)(this.id,this.pagination).then((function(t){e.loading=!1;t=t.data;var a=t.count;t=t.list;e.total=a,e.tbody=t})):Object(i.G)(this.id,this.pagination).then((function(t){e.loading=!1;t=t.data;var a=t.count;t=t.list;e.total=a,e.tbody=t}))},onClickTab:function(){this.type=this.currentTab,this.getList(this.id)},searchList:function(){this.pagination.page=1,this.getList(this.id)},pageChange:function(t){this.pagination.page=t,this.getList(this.id)},Info:function(t){var e=this;this.modals=!0,this.rows=t,Object(i.Y)(t.id).then(function(){var t=Object(n.a)(s().mark((function t(a){var r;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=a.data,e.tabList3=r.list,e.loading=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))}}},a("f036"),a=a("2877"),a=Object(a.a)(o,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"i-layout-page-header header-title"},[a("div",{staticClass:"fl_header"},[a("span",[a("Button",{attrs:{icon:"ios-arrow-back",size:"small",type:"text"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("返回")])],1),a("Divider",{attrs:{type:"vertical"}}),a("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])],1)]),0<=t.cardLists.length?a("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),a("div",[a("Tabs",{on:{"on-click":t.onClickTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.tabs,(function(t,e){return a("TabPane",{key:e,attrs:{label:t.label,name:t.type}})})),1)],1),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"pagination",attrs:{model:t.pagination,"label-width":t.labelWidth,"label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{type:"flex",gutter:24}},[1==t.type?a("Col",{attrs:{span:"6"}},[a("FormItem",{attrs:{label:"订单状态:","label-for":"status"}},[a("Select",{attrs:{placeholder:"请选择订单状态",clearable:""},on:{"on-change":t.searchList},model:{value:t.pagination.status,callback:function(e){t.$set(t.pagination,"status",e)},expression:"pagination.status"}},[a("Option",{attrs:{value:"0"}},[t._v("未支付")]),a("Option",{attrs:{value:"1"}},[t._v("待发货")]),a("Option",{attrs:{value:"2"}},[t._v("待收货")]),a("Option",{attrs:{value:"3"}},[t._v("待评价")]),a("Option",{attrs:{value:"4"}},[t._v("交易完成")])],1)],1)],1):t._e(),a("Col",{attrs:{span:"6"}},[a("FormItem",{attrs:{label:"搜索:","label-for":"title"}},[a("Input",{attrs:{search:"","enter-button":"",placeholder:1==t.type?"请输入用户|订单号|UID":"请输入用户姓名|UID"},on:{"on-search":t.searchList},model:{value:t.pagination.real_name,callback:function(e){t.$set(t.pagination,"real_name",e)},expression:"pagination.real_name"}})],1)],1)],1)],1),a("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.type?t.thead2:t.thead,data:t.tbody,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"avatar",fn:function(t){return t=t.row,[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.avatar,expression:"row.avatar"}]})])]}},{key:"people",fn:function(e){return e=e.row,[a("span",[t._v(" "+t._s(e.count_people+" / "+e.people))])]}},{key:"status",fn:function(e){return e=e.row,[a("Tag",{directives:[{name:"show",rawName:"v-show",value:1===e.status,expression:"row.status === 1"}],attrs:{color:"blue"}},[t._v("进行中")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:3===e.status,expression:"row.status === 3"}],attrs:{color:"volcano"}},[t._v("已失败")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:2===e.status,expression:"row.status === 2"}],attrs:{color:"cyan"}},[t._v("已成功")])]}},{key:"action",fn:function(e){var r=e.row;return[a("a",{on:{click:function(e){return t.Info(r)}}},[t._v("查看详情")])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.pagination.page,"show-elevator":"","show-total":"","page-size":t.pagination.limit},on:{"on-change":t.pageChange}})],1)],1),a("Modal",{staticClass:"tableBox",attrs:{scrollable:"","footer-hide":"",closable:"",title:"查看详情","mask-closable":!1,width:"750"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("Table",{ref:"selection",attrs:{columns:t.columns2,data:t.tabList3,loading:t.loading2,"no-data-text":"暂无数据","highlight-row":"","max-height":"600",size:"small","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"nickname",fn:function(e){return e=e.row,[a("span",[t._v(" "+t._s(e.nickname+" / "+e.uid))])]}},{key:"avatar",fn:function(t){return t=t.row,[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.avatar,expression:"row.avatar"}]})])]}},{key:"action",fn:function(e){return e=e.row,[a("Tag",{directives:[{name:"show",rawName:"v-show",value:0!=e.is_refund,expression:"row.is_refund != 0"}],attrs:{color:"volcano"}},[t._v("已退款")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:0===e.is_refund,expression:"row.is_refund === 0"}],attrs:{color:"cyan"}},[t._v("未退款")])]}}])})],1)],1)}),[],!1,null,"55d57b04",null),e.default=a.exports},f036:function(t,e,a){"use strict";var r=a("7f88");a.n(r).a}}]); |