You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
18 KiB
1 lines
18 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3cd67514"],{"1cde":function(t,e,r){},"5da6":function(t,e,r){},"5ea6":function(t,e,r){"use strict";r("5da6")},"607d":function(t,e,r){"use strict";r("1cde")},a584:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=a(a(a({name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),"methods",{}),"created",(function(){})),i=(r("607d"),r("2877")),s=Object(i.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(r,n){return e("Col",{key:n,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:r.col}}},[e("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[e("div",{staticClass:"card_box"},[e("div",{staticClass:"card_box_cir",class:{one:n%5==0,two:n%5==1,three:n%5==2,four:n%5==3,five:n%5==4}},[e("div",{staticClass:"card_box_cir1",class:{one1:n%5==0,two1:n%5==1,three1:n%5==2,four1:n%5==3,five1:n%5==4}},[r.type?e("span",{staticClass:"iconfont",class:r.className}):e("Icon",{attrs:{type:r.className}})],1)]),e("div",{staticClass:"card_box_txt"},[e("span",{staticClass:"sp1",domProps:{textContent:t._s(r.count||0)}}),e("span",{staticClass:"sp2",domProps:{textContent:t._s(r.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=s.exports},fea0:function(t,e,r){"use strict";r.r(e);var n=r("a584"),a=r("b7be"),o=r("d708"),i=r("2f62");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),s=new T(n||[]);return a(i,"_invoke",{value:C(t,r,s)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,i,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(I([])));O&&O!==r&&n.call(O,i)&&(x=O);var L=_.prototype=b.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(a,o,i,c){var l=p(t[a],t,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==s(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return o=o?o.then(a,a):a()}})}function C(e,r,n){var a=d;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var c=S(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var l=p(e,r,n);if("normal"===l.type){if(a=n.done?y:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=y,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(s(e)+" is not iterable")}return w.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,l,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new P(h(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(L),f(L,u,"Generator"),f(L,i,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):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),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;N(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function l(t,e,r,n,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,a)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={name:"index",components:{cardsData:n.a},data:function(){return{roterPre:o.a.roterPre,modals:!1,tabList3:[],loading2:!1,grid:{xl:7,lg:7,md:12,sm:24,xs:24},id:0,tbody:[],total:0,tabs:[{type:"",label:"活动参与人"},{type:"",label:"活动订单"}],currentTab:0,loading:!1,thead:[{title:"头像",slot:"avatar"},{title:"发起用户",key:"nickname"},{title:"发起时间",key:"add_time"},{title:"帮砍人数",slot:"num"},{title:"结束时间",key:"datatime"},{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:4,count:0,name:"活动参与人数(人)",className:"iconcanyurenshu",type:!0},{col:4,count:0,name:"推广人数(人)",className:"icontuiguangrenshu",type:!0},{col:4,count:0,name:"发起砍价数",className:"iconfaqirenshu",type:!0},{col:4,count:0,name:"砍价成功数",className:"iconkanjiachenggong",type:!0},{col:4,count:0,name:"支付订单额(元)",className:"iconzhifudingdan",type:!0},{col:4,count:0,name:"支付人数(人)",className:"iconzhifurenshu",type:!0}],pagination:{page:1,limit:15,real_name:"",status:""},type:0,columns2:[{title:"用户ID",key:"uid",width:80},{title:"用户头像",slot:"avatar"},{title:"用户名称",slot:"nickname",minWidth:100},{title:"砍价金额",key:"price"},{title:"砍价时间",key:"add_time",minWidth:100}]}},computed:f(f({},Object(i.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.id=this.$route.params.id,this.getStatistics(this.id),this.getList(this.id)},methods:{getStatistics:function(t){var e=this;Object(a.R)(t).then((function(t){var r=["people_count","spread_count","start_count","success_count","pay_price","pay_count","pay_rate"];e.cardLists.map((function(e,n){e.count=t.data[r[n]]}))}))},getList:function(t){var e=this;this.loading=!0,0==this.type?Object(a.T)(this.id,this.pagination).then((function(t){e.loading=!1;var r=t.data,n=r.count,a=r.list;e.total=n,e.tbody=a})):Object(a.S)(this.id,this.pagination).then((function(t){e.loading=!1;var r=t.data,n=r.count,a=r.list;e.total=n,e.tbody=a}))},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(a.n)(t.id).then(function(){var t,r=(t=c().mark((function t(r){var n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.data,e.tabList3=n.list,e.loading=!1;case 3:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function i(t){l(o,n,a,i,s,"next",t)}function s(t){l(o,n,a,i,s,"throw",t)}i(void 0)}))});return function(t){return r.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))}}},d=(r("5ea6"),r("2877")),v=Object(d.a)(p,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-submit"},[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/marketing/store_bargain/index")}}},[e("div",{staticClass:"font-sm after-line"},[e("span",{staticClass:"iconfont iconfanhui"}),e("span",{staticClass:"pl10"},[t._v("返回")])])]),e("span",{staticClass:"mr20 ml16",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])],1),t.cardLists.length>=0?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("Tabs",{on:{"on-click":t.onClickTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.tabs,(function(t,r){return e("TabPane",{key:r,attrs:{label:t.label,name:t.type}})})),1),e("Form",{ref:"pagination",attrs:{model:t.pagination,"label-width":t.labelWidth,inline:"","label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[1==t.type?e("FormItem",{attrs:{label:"订单状态:","label-for":"status"}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择订单状态"},model:{value:t.pagination.status,callback:function(e){t.$set(t.pagination,"status",e)},expression:"pagination.status"}},[e("Option",{attrs:{value:""}},[t._v("全部")]),e("Option",{attrs:{value:"0"}},[t._v("未支付")]),e("Option",{attrs:{value:"1"}},[t._v("待发货")]),e("Option",{attrs:{value:"2"}},[t._v("待收货")]),e("Option",{attrs:{value:"3"}},[t._v("待评价")]),e("Option",{attrs:{value:"4"}},[t._v("交易完成")])],1)],1):t._e(),e("FormItem",{attrs:{label:"搜索:","label-for":"title"}},[e("Input",{staticClass:"input-add",attrs:{search:"","enter-button":"",placeholder:"请输入用户姓名/手机号/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),e("Table",{ref:"table",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){var r=t.row;return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.avatar,expression:"row.avatar"}]})])]}},{key:"num",fn:function(r){var n=r.row;return[e("span",[t._v(" "+t._s(n.already_num+" / "+n.people_num))])]}},{key:"status",fn:function(r){var n=r.row;return[e("Tag",{directives:[{name:"show",rawName:"v-show",value:1===n.status,expression:"row.status === 1"}],attrs:{color:"blue"}},[t._v("进行中")]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:2===n.status,expression:"row.status === 2"}],attrs:{color:"volcano"}},[t._v("已失败")]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:3===n.status,expression:"row.status === 3"}],attrs:{color:"cyan"}},[t._v("已成功")])]}},{key:"action",fn:function(r){var n=r.row;return[e("a",{on:{click:function(e){return t.Info(n)}}},[t._v("查看详情")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("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),e("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"}},[e("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(r){var n=r.row;return[e("span",[t._v(" "+t._s(n.nickname+" / "+n.uid))])]}},{key:"avatar",fn:function(t){var r=t.row;return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.avatar,expression:"row.avatar"}]})])]}},{key:"action",fn:function(r){var n=r.row;return[e("Tag",{directives:[{name:"show",rawName:"v-show",value:1===n.is_refund,expression:"row.is_refund === 1"}],attrs:{color:"cyan"}},[t._v("已退款")]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:0===n.is_refund,expression:"row.is_refund === 0"}],attrs:{color:"volcano"}},[t._v("未退款")])]}}])})],1)],1)}),[],!1,null,"4a514e24",null);e.default=v.exports}}]); |