1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-676f2c0e"],{1704:function(t,a,e){},"5dd9":function(t,a,e){"use strict";var n=e("fd59");e.n(n).a},a584:function(t,a,e){"use strict";var n;function i(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}var s=(i(n={name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),i(n,"methods",{}),i(n,"created",(function(){})),n),r=(e("5dd9"),e("2877")),o=Object(r.a)(s,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(a,n){return e("Col",{key:n,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:a.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}},[a.type?e("span",{staticClass:"iconfont",class:a.className}):e("Icon",{attrs:{type:a.className}})],1)]),e("div",{staticClass:"card_box_txt"},[e("span",{staticClass:"sp1",domProps:{textContent:t._s(a.count||0)}}),e("span",{staticClass:"sp2",domProps:{textContent:t._s(a.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);a.a=o.exports},f71c:function(t,a,e){"use strict";var n=e("1704");e.n(n).a},fd59:function(t,a,e){},fea0:function(t,a,e){"use strict";e.r(a);var n=e("a34a"),i=e.n(n),s=e("a584"),r=e("b7be"),o=e("d708"),l=e("2f62");function c(t,a,e,n,i,s,r){try{var o=t[s](r),l=o.value}catch(t){return void e(t)}o.done?a(l):Promise.resolve(l).then(n,i)}function u(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,n)}return e}function d(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}var p={name:"index",components:{cardsData:s.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:function(t){for(var a=1;a<arguments.length;a++){var e=null!=arguments[a]?arguments[a]:{};a%2?u(e,!0).forEach((function(a){d(t,a,e[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(e).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))}))}return t}({},Object(l.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 a=this;Object(r.O)(t).then((function(t){var e=["people_count","spread_count","start_count","success_count","pay_price","pay_count","pay_rate"];a.cardLists.map((function(a,n){a.count=t.data[e[n]]}))}))},getList:function(t){var a=this;this.loading=!0,0==this.type?Object(r.Q)(this.id,this.pagination).then((function(t){a.loading=!1;var e=t.data,n=e.count,i=e.list;a.total=n,a.tbody=i})):Object(r.P)(this.id,this.pagination).then((function(t){a.loading=!1;var e=t.data,n=e.count,i=e.list;a.total=n,a.tbody=i}))},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 a=this;this.modals=!0,this.rows=t,Object(r.m)(t.id).then(function(){var t,e=(t=i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.data,a.tabList3=n.list,a.loading=!1;case 3:case"end":return t.stop()}}),t)})),function(){var a=this,e=arguments;return new Promise((function(n,i){var s=t.apply(a,e);function r(t){c(s,n,i,r,o,"next",t)}function o(t){c(s,n,i,r,o,"throw",t)}r(void 0)}))});return function(t){return e.apply(this,arguments)}}()).catch((function(t){a.loading=!1,a.$Message.error(t.msg)}))}}},m=(e("f71c"),e("2877")),v=Object(m.a)(p,(function(){var t=this,a=t.$createElement,e=t._self._c||a;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: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(a){t.currentTab=a},expression:"currentTab"}},t._l(t.tabs,(function(t,a){return e("TabPane",{key:a,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(a){t.$set(t.pagination,"status",a)},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(a){t.$set(t.pagination,"real_name",a)},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 a=t.row;return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.avatar,expression:"row.avatar"}]})])]}},{key:"num",fn:function(a){var n=a.row;return[e("span",[t._v(" "+t._s(n.already_num+" / "+n.people_num))])]}},{key:"status",fn:function(a){var n=a.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(a){var n=a.row;return[e("a",{on:{click:function(a){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(a){t.modals=a},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(a){var n=a.row;return[e("span",[t._v(" "+t._s(n.nickname+" / "+n.uid))])]}},{key:"avatar",fn:function(t){var a=t.row;return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.avatar,expression:"row.avatar"}]})])]}},{key:"action",fn:function(a){var n=a.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);a.default=v.exports}}]);
|