chunk-9b878236.3a137a0a.js 13 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-9b878236"],{"2c3e":function(t,e,a){"use strict";var i=a("83ab"),n=a("9f7f").MISSED_STICKY,r=a("c6b6"),l=a("edd0"),o=a("69f3").get,s=RegExp.prototype,c=TypeError;i&&n&&l(s,"sticky",{configurable:!0,get:function(){if(this!==s){if("RegExp"===r(this))return!!o(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,a){"use strict";var i=a("83ab"),n=a("da84"),r=a("e330"),l=a("94ca"),o=a("7156"),s=a("9112"),c=a("241c").f,u=a("3a9b"),d=a("44e7"),f=a("577e"),m=a("90d8"),p=a("9f7f"),h=a("aeb0"),g=a("cb2d"),b=a("d039"),v=a("1a2d"),w=a("69f3").enforce,y=a("2626"),_=a("b622"),x=a("fce3"),k=a("107c"),V=_("match"),S=n.RegExp,E=S.prototype,O=n.SyntaxError,j=r(E.exec),L=r("".charAt),R=r("".replace),M=r("".indexOf),$=r("".slice),C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,W=/a/g,N=/a/g,I=(a=new S(W)!==W,p.MISSED_STICKY),T=p.UNSUPPORTED_Y;_=i&&(!a||I||x||k||b((function(){return N[V]=!1,S(W)!==W||S(N)===N||"/a/i"!==String(S(W,"i"))})));if(l("RegExp",_)){for(var D=function(t,e){var a,i,n=u(E,this),r=d(t),l=void 0===e,c=[],p=t;if(!n&&r&&l&&t.constructor===D)return t;if((r||u(E,t))&&(t=t.source,l)&&(e=m(p)),t=void 0===t?"":f(t),e=void 0===e?"":f(e),p=t,r=e=x&&"dotAll"in W&&(a=!!e&&-1<M(e,"s"))?R(e,/s/g,""):e,I&&"sticky"in W&&(i=!!e&&-1<M(e,"y"))&&T&&(e=R(e,/y/g,"")),k&&(t=(l=function(t){for(var e,a=t.length,i=0,n="",r=[],l={},o=!1,s=!1,c=0,u="";i<=a;i++){if("\\"===(e=L(t,i)))e+=L(t,++i);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:j(C,$(t,i+1))&&(i+=2,s=!0),n+=e,c++;continue;case">"===e&&s:if(""===u||v(l,u))throw new O("Invalid capture group name");l[u]=!0,s=!(r[r.length]=[u,c]),u="";continue}s?u+=e:n+=e}return[n,r]}(t))[0],c=l[1]),l=o(S(t,e),n?this:E,D),(a||i||c.length)&&(e=w(l),a&&(e.dotAll=!0,e.raw=D(function(t){for(var e,a=t.length,i=0,n="",r=!1;i<=a;i++)"\\"===(e=L(t,i))?n+=e+L(t,++i):r||"."!==e?("["===e?r=!0:"]"===e&&(r=!1),n+=e):n+="[\\s\\S]";return n}(t),r)),i&&(e.sticky=!0),c.length)&&(e.groups=c),t!==p)try{s(l,"source",""===p?"(?:)":p)}catch(t){}return l},z=c(S),A=0;z.length>A;)h(D,S,z[A++]);(E.constructor=D).prototype=E,g(n,"RegExp",D,{constructor:!0})}y("RegExp")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"c",(function(){return s})),a.d(e,"b",(function(){return c}));var i=a("ade3"),n=a("5530");function r(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,i,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in n)new RegExp("(".concat(a,")")).test(e)&&(i=n[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?i:("00"+i).substr(i.length)));return e}a("ac1f"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("498a"),a("d3b7"),a("13d5"),a("b64b"),a("99af");var l={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function o(t,e){t.message=function(t){return e.replace("%s",t||"")}}function s(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(n.a)({required:!0,message:t,type:"string"},e)}function c(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}o(s,"请输入%s"),o(c,"%s格式不正确");var u=Object.keys(l).reduce((function(t,e){return t[e]=function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},l="range"===e?{min:t[0],max:t[1]}:Object(i.a)({},e,t);return Object(n.a)(Object(n.a)({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},l),r)},o(t[e],l[e]),t}),{})},"7bec":function(t,e,a){"use strict";a("e687")},a21a:function(t,e,a){"use strict";a.r(e);var i=a("c7eb"),n=a("1da1"),r=a("5530"),l=(a("a15b"),a("2f62")),o=a("61f7"),s=a("b7be");r={name:"bargainList",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(o.a)(t,"yyyy-MM-dd hh:mm")}},data:function(){return{cardLists:[],modals:!1,fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},grid:{xl:7,lg:10,md:12,sm:12,xs:24},loading:!1,formValidate:{status:"",data:"",page:1,limit:15},columns1:[{title:"头像",slot:"avatar",minWidth:100},{title:"发起用户",slot:"nickname",minWidth:150},{title:"开启时间",key:"add_time",minWidth:150},{title:"预售商品",key:"title",minWidth:300},{title:"最低价",key:"bargain_price_min",minWidth:120},{title:"当前价",key:"now_price",minWidth:100},{title:"总预售次数",key:"people_num",minWidth:100},{title:"剩余预售次数",key:"num",minWidth:100},{title:"结束时间",key:"datatime",minWidth:150},{title:"状态",slot:"status",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:170}],tableList:[],total:0,timeVal:[],loading2:!1,tabList3:[],rows:{}}},computed:Object(r.a)(Object(r.a)({},Object(l.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{Info:function(t){var e=this;this.modals=!0,this.rows=t,Object(s.g)(t.id).then(function(){var t=Object(n.a)(Object(i.a)().mark((function t(a){var n;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=a.data,e.tabList3=n.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)}))},onchangeTime:function(t){this.timeVal=t||[],this.formValidate.data=this.timeVal[0]&&this.timeVal?this.timeVal.join("-"):"",this.formValidate.page=1,this.getList()},selectChange:function(t){this.formValidate.page=1,this.formValidate.data=t,this.timeVal=[],this.getList()},getList:function(){var t=this;this.loading=!0,this.formValidate.status=this.formValidate.status||"",Object(s.h)(this.formValidate).then(function(){var e=Object(n.a)(Object(i.a)().mark((function e(a){var n;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.tableList=n.list,t.total=a.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()}}},a("7bec"),l=a("2877"),a=Object(l.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-manager"},[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"时间选择:"}},[e("el-radio-group",{staticClass:"mr",attrs:{type:"button"},on:{input:function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(a,i){return e("el-radio",{key:i,attrs:{label:a.val}},[t._v(t._s(a.text))])})),1),e("el-date-picker",{attrs:{clearable:"",editable:!1,format:"yyyy/MM/dd",type:"daterange","value-format":"yyyy/MM/dd","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1),e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"预售状态:"}},[e("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[e("el-option",{attrs:{value:1,label:"进行中"}}),e("el-option",{attrs:{value:2,label:"已失败"}}),e("el-option",{attrs:{value:3,label:"已成功"}})],1)],1)],1)],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"mt14",attrs:{data:t.tableList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"头像","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.avatar,expression:"scope.row.avatar"}]})])]}}])}),e("el-table-column",{attrs:{label:"发起用户","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.nickname+" / "+a.row.uid))])]}}])}),e("el-table-column",{attrs:{label:"开启时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.add_time))])]}}])}),e("el-table-column",{attrs:{label:"预售商品","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.title))])]}}])}),e("el-table-column",{attrs:{label:"最低价","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.bargain_price_min))])]}}])}),e("el-table-column",{attrs:{label:"当前价","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.now_price))])]}}])}),e("el-table-column",{attrs:{label:"总预售次数","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.people_num))])]}}])}),e("el-table-column",{attrs:{label:"剩余预售次数","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.num))])]}}])}),e("el-table-column",{attrs:{label:"结束时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.datatime))])]}}])}),e("el-table-column",{attrs:{label:"状态","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tag",{directives:[{name:"show",rawName:"v-show",value:1===a.row.status,expression:"scope.row.status === 1"}],attrs:{color:"blue"}},[t._v("进行中")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:2===a.row.status,expression:"scope.row.status === 2"}],attrs:{color:"volcano"}},[t._v("已失败")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:3===a.row.status,expression:"scope.row.status === 3"}],attrs:{color:"cyan"}},[t._v("已成功")])]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.Info(a.row)}}},[t._v("查看详情")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1),e("el-dialog",{staticClass:"tableBox",attrs:{visible:t.modals,title:"查看详情","close-on-click-modal":!1,width:"720px"},on:{"update:visible":function(e){t.modals=e}}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading2,expression:"loading2"}],ref:"selection",attrs:{data:t.tabList3,"empty-text":"暂无数据","highlight-current-row":"","max-height":"600",size:"small"}},[e("el-table-column",{attrs:{label:"用户ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.uid))])]}}])}),e("el-table-column",{attrs:{label:"用户头像","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.avatar,expression:"scope.row.avatar"}]})])]}}])}),e("el-table-column",{attrs:{label:"用户名称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.nickname+" / "+a.row.uid))])]}}])}),e("el-table-column",{attrs:{label:"预售金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.price))])]}}])}),e("el-table-column",{attrs:{label:"预售时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.add_time))])]}}])})],1)],1)],1)}),[],!1,null,"eb060402",null);e.default=a.exports},c607:function(t,e,a){"use strict";var i=a("83ab"),n=a("fce3"),r=a("c6b6"),l=a("edd0"),o=a("69f3").get,s=RegExp.prototype,c=TypeError;i&&n&&l(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===r(this))return!!o(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},e687:function(t,e,a){}}]);