chunk-e317e47c.d56a84de.js 12 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e317e47c"],{"15f2":function(t,e,a){},"226f":function(t,e,a){a("15f2")},"2c3e":function(t,e,a){var i=a("83ab"),n=a("9f7f").MISSED_STICKY,r=a("c6b6"),s=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;i&&n&&s(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===r(this))return!!o(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,a){var i=a("83ab"),n=a("cfe9"),r=a("e330"),s=a("94ca"),o=a("7156"),l=a("9112"),c=a("7c73"),u=a("241c").f,d=a("3a9b"),f=a("44e7"),m=a("577e"),p=a("90d8"),g=a("9f7f"),h=a("aeb0"),b=a("cb2d"),v=a("d039"),w=a("1a2d"),_=a("69f3").enforce,y=a("2626"),x=a("b622"),k=a("fce3"),S=a("107c"),V=x("match"),O=n.RegExp,E=O.prototype,j=n.SyntaxError,R=r(E.exec),L=r("".charAt),M=r("".replace),$=r("".indexOf),C=r("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,z=/a/g,D=(a=new O(I)!==I,g.MISSED_STICKY),T=g.UNSUPPORTED_Y;x=i&&(!a||D||k||S||v((function(){return z[V]=!1,O(I)!==I||O(z)===z||"/a/i"!==String(O(I,"i"))})));if(s("RegExp",x)){for(var A=function(t,e){var a,i,n=d(E,this),r=f(t),s=void 0===e,u=[],g=t;if(!n&&r&&s&&t.constructor===A)return t;if((r||d(E,t))&&(t=t.source,s)&&(e=p(g)),t=void 0===t?"":m(t),e=void 0===e?"":m(e),g=t,r=e=k&&"dotAll"in I&&(a=!!e&&-1<$(e,"s"))?M(e,/s/g,""):e,D&&"sticky"in I&&(i=!!e&&-1<$(e,"y"))&&T&&(e=M(e,/y/g,"")),S&&(t=(s=(t=>{for(var e,a=t.length,i=0,n="",r=[],s=c(null),o=!1,l=!1,u=0,d="";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:if(n+=e,"?:"===C(t,i+1,i+3))continue;R(N,C(t,i+1))&&(i+=2,l=!0),u++;continue;case">"===e&&l:if(""===d||w(s,d))throw new j("Invalid capture group name");s[d]=!0,l=!(r[r.length]=[d,u]),d="";continue}l?d+=e:n+=e}return[n,r]})(t))[0],u=s[1]),s=o(O(t,e),n?this:E,A),(a||i||u.length)&&(e=_(s),a&&(e.dotAll=!0,e.raw=A((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),u.length)&&(e.groups=u),t!==g)try{l(s,"source",""===g?"(?:)":g)}catch(t){}return s},Y=u(O),q=0;Y.length>q;)h(A,O,Y[q++]);(E.constructor=A).prototype=E,b(n,"RegExp",A,{constructor:!0})}y("RegExp")},"61f7":function(t,e,a){a.d(e,"a",(function(){return r})),a.d(e,"c",(function(){return l})),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("99af"),a("13d5"),a("e9f5"),a("9485"),a("b64b"),a("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("00b4"),a("25f0"),a("5319"),a("498a");var s={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 l(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(l,"请输入%s"),o(c,"%s格式不正确");var u=Object.keys(s).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]:{},s="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"},s),r)},o(t[e],s[e]),t}),{})},"7c4e":function(t,e,a){a.r(e);var i=a("c14f"),n=a("1da1"),r=a("5530"),s=(a("a15b"),a("2f62")),o=a("61f7"),l=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,pickerOptions:this.$timeOptions,loading:!1,formValidate:{status:"",data:"",page:1,limit:15},tableList:[],total:0,timeVal:[],loading2:!1,tabList3:[],rows:{}}},computed:Object(r.a)(Object(r.a)({},Object(s.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(l.g)(t.id).then((()=>{var t=Object(n.a)(Object(i.a)().m((function t(a){var n;return Object(i.a)().w((function(t){for(;;)switch(t.n){case 0:n=a.data,e.tabList3=n.list,e.loading=!1;case 1:return t.a(2)}}),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(l.h)(this.formValidate).then((()=>{var e=Object(n.a)(Object(i.a)().m((function e(a){var n;return Object(i.a)().w((function(e){for(;;)switch(e.n){case 0:n=a.data,t.tableList=n.list,t.total=a.data.count,t.loading=!1;case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}})()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getList()}}},a("226f"),s=a("2877"),a=Object(s.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","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":"right",inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"时间选择:"}},[e("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),e("el-form-item",{attrs:{label:"砍价状态:"}},[e("el-select",{staticClass:"form_content_width",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)]),e("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.tableList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"头像",width:"80"},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":"100"},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":"110"},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":"60"},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":"60"},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":"70"},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":"100"},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":"150"},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":"100"},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:{size:"medium",type:"info"}},[t._v("进行中")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:2===a.row.status,expression:"scope.row.status === 2"}],attrs:{size:"medium",type:"danger"}},[t._v("已失败")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:3===a.row.status,expression:"scope.row.status === 3"}],attrs:{size:"medium"}},[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":"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":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(" "+t._s(a.row.nickname))])]}}])}),e("el-table-column",{attrs:{label:"砍价金额","min-width":"100"},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,"daef2ea8",null);e.default=a.exports},c607:function(t,e,a){var i=a("83ab"),n=a("fce3"),r=a("c6b6"),s=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;i&&n&&s(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===r(this))return!!o(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})}}]);