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
12 KiB
1 lines
12 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cf355870"],{"2c3e":function(t,e,a){"use strict";var n=a("83ab"),i=a("9f7f").MISSED_STICKY,r=a("c6b6"),s=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;n&&i&&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){"use strict";var n=a("83ab"),i=a("da84"),r=a("e330"),s=a("94ca"),o=a("7156"),l=a("9112"),c=a("241c").f,u=a("3a9b"),d=a("44e7"),f=a("577e"),m=a("90d8"),p=a("9f7f"),g=a("aeb0"),h=a("cb2d"),b=a("d039"),v=a("1a2d"),w=a("69f3").enforce,_=a("2626"),y=a("b622"),x=a("fce3"),k=a("107c"),S=y("match"),V=i.RegExp,O=V.prototype,E=i.SyntaxError,j=r(O.exec),R=r("".charAt),L=r("".replace),M=r("".indexOf),$=r("".slice),C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,N=/a/g,z=(a=new V(I)!==I,p.MISSED_STICKY),D=p.UNSUPPORTED_Y;y=n&&(!a||z||x||k||b((function(){return N[S]=!1,V(I)!==I||V(N)===N||"/a/i"!==String(V(I,"i"))})));if(s("RegExp",y)){for(var T=function(t,e){var a,n,i=u(O,this),r=d(t),s=void 0===e,c=[],p=t;if(!i&&r&&s&&t.constructor===T)return t;if((r||u(O,t))&&(t=t.source,s)&&(e=m(p)),t=void 0===t?"":f(t),e=void 0===e?"":f(e),p=t,r=e=x&&"dotAll"in I&&(a=!!e&&-1<M(e,"s"))?L(e,/s/g,""):e,z&&"sticky"in I&&(n=!!e&&-1<M(e,"y"))&&D&&(e=L(e,/y/g,"")),k&&(t=(s=function(t){for(var e,a=t.length,n=0,i="",r=[],s={},o=!1,l=!1,c=0,u="";n<=a;n++){if("\\"===(e=R(t,n)))e+=R(t,++n);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:j(C,$(t,n+1))&&(n+=2,l=!0),i+=e,c++;continue;case">"===e&&l:if(""===u||v(s,u))throw new E("Invalid capture group name");s[u]=!0,l=!(r[r.length]=[u,c]),u="";continue}l?u+=e:i+=e}return[i,r]}(t))[0],c=s[1]),s=o(V(t,e),i?this:O,T),(a||n||c.length)&&(e=w(s),a&&(e.dotAll=!0,e.raw=T(function(t){for(var e,a=t.length,n=0,i="",r=!1;n<=a;n++)"\\"===(e=R(t,n))?i+=e+R(t,++n):r||"."!==e?("["===e?r=!0:"]"===e&&(r=!1),i+=e):i+="[\\s\\S]";return i}(t),r)),n&&(e.sticky=!0),c.length)&&(e.groups=c),t!==p)try{l(s,"source",""===p?"(?:)":p)}catch(t){}return s},A=c(V),Y=0;A.length>Y;)g(T,V,A[Y++]);(O.constructor=T).prototype=O,h(i,"RegExp",T,{constructor:!0})}_("RegExp")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"c",(function(){return l})),a.d(e,"b",(function(){return c}));var n=a("ade3"),i=a("5530");function r(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,n,i={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in i)new RegExp("(".concat(a,")")).test(e)&&(n=i[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?n:("00"+n).substr(n.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 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(i.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(n.a)({},e,t);return Object(i.a)(Object(i.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}),{})},"6e4f":function(t,e,a){},"7c4e":function(t,e,a){"use strict";a.r(e);var n=a("c7eb"),i=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(function(){var t=Object(i.a)(Object(n.a)().mark((function t(a){var i;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=a.data,e.tabList3=i.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(l.h)(this.formValidate).then(function(){var e=Object(i.a)(Object(n.a)().mark((function e(a){var i;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=a.data,t.tableList=i.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)}))},userSearchs:function(){this.formValidate.page=1,this.getList()}}},a("ea32"),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",{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,"e53a4da4",null);e.default=a.exports},c607:function(t,e,a){"use strict";var n=a("83ab"),i=a("fce3"),r=a("c6b6"),s=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;n&&i&&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")}}})},ea32:function(t,e,a){"use strict";a("6e4f")}}]); |