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.
yanzong/public/store/js/bargain.027c2e96.js

3 lines
41 KiB

9 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bargain"],{"0b50":function(e,t,r){"use strict";r("d6e7")},"0b9f":function(e,t,r){},"15a4":function(e,t,r){"use strict";r.r(t);r("ac1f"),r("841c");var a=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",[t("a-col",{staticClass:"flex flex-x-end"},[t("a-select",{staticStyle:{width:"220px","margin-right":"20px"},attrs:{placeholder:"是否购买"},model:{value:e.queryParam.isBuy,callback:function(t){e.$set(e.queryParam,"isBuy",t)},expression:"queryParam.isBuy"}},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:0}},[e._v("未购买")]),t("a-select-option",{attrs:{value:1}},[e._v("已购买")])],1),t("a-select",{staticStyle:{width:"220px","margin-right":"20px"},attrs:{placeholder:"任务状态"},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:1}},[e._v("进行中")]),t("a-select-option",{attrs:{value:0}},[e._v("已结束")])],1),t("a-input-search",{staticStyle:{"max-width":"300px","min-width":"150px"},attrs:{placeholder:"请输入会员昵称/商品名称"},on:{search:e.onSearch},model:{value:e.queryParam.search,callback:function(t){e.$set(e.queryParam,"search",t)},expression:"queryParam.search"}})],1)],1)],1),t("s-table",{ref:"table",attrs:{rowKey:"task_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15,scroll:{x:1400}},scopedSlots:e._u([{key:"goods",fn:function(e){return[t("GoodsItem",{attrs:{data:{image:e.goods_image,imageAlt:"商品图片",title:e.goods_name,subtitle:"¥".concat(e.goods_price_min)},subTitleColor:!0}})]}},{key:"user",fn:function(e){return[t("UserItem",{attrs:{user:e}})]}},{key:"price",fn:function(r){return[t("p",{staticClass:"c-p",style:{textDecoration:"line-through"}},[e._v("¥"+e._s(r.goods_price))]),t("p",{staticClass:"c-p"},[e._v("¥"+e._s(r.floor_price))])]}},{key:"cut_money",fn:function(r){return[t("p",{staticClass:"c-p"},[e._v("¥"+e._s(r))])]}},{key:"peoples",fn:function(r){return[t("p",[e._v(e._s(r.peoples)+"人")]),t("p",[e._v(e._s(r.cut_people)+"人")])]}},{key:"is_buy",fn:function(r){return[t("a-tag",{attrs:{color:r?"green":""}},[e._v(e._s(r?"已购买":"未购买"))])]}},{key:"status",fn:function(r){return[t("a-tag",{attrs:{color:r?"green":""}},[e._v(e._s(r?"进行中":"已结束"))])]}},{key:"time",fn:function(r){return[t("p",[e._v(e._s(r.create_time))]),t("p",[e._v(e._s(r.end_time))])]}},{key:"action",fn:function(r,a){return t("span",{staticClass:"actions"},[t("a",{directives:[{name:"action",rawName:"v-action:help",arg:"help"}],on:{click:function(t){return e.handleHelp(a)}}},[e._v("砍价榜")]),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")])])}}])}),t("HelpModal",{ref:"HelpModal"})],1)},i=[],n=r("5530"),o=(r("d3b7"),r("b775")),s={list:"/bargain.task/list",help:"/bargain.task/help",delete:"/bargain.task/delete"};function l(e){return Object(o["b"])({url:s.list,method:"get",params:e})}function u(e,t){return Object(o["b"])({url:s.help,method:"get",params:Object(n["a"])({taskId:e},t)})}function c(e,t){return Object(o["b"])({url:s.delete,method:"post",data:Object(n["a"])({taskId:e},t)})}var d=r("ab09"),m=function(){var e=this,t=e._self._c;return t("a-modal",{staticClass:"noborder",attrs:{title:e.title,width:820,visible:e.visible,isLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleCancel,cancel:e.handleCancel}},[t("s-table",{ref:"table",attrs:{rowKey:"help_id",scroll:{y:"420px",scrollToFirstRowOnChange:!0},loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15},scopedSlots:e._u([{key:"user",fn:function(e){return[t("UserItem",{attrs:{user:e}})]}},{key:"mobile",fn:function(r){return[t("span",[e._v(e._s(r.user.mobile?r.user.mobile:"--"))])]}},{key:"cut_money",fn:function(
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(V){c=function(e,t,r){return e[t]=r}}function d(e,t,r,a){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),s=new j(a||[]);return n(o,"_invoke",{value:x(e,r,s)}),o}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(V){return{type:"throw",arg:V}}}e.wrap=d;var p={};function f(){}function v(){}function h(){}var b={};c(b,s,(function(){return this}));var g=Object.getPrototypeOf,_=g&&g(g(O([])));_&&_!==t&&r.call(_,s)&&(b=_);var w=h.prototype=f.prototype=Object.create(b);function y(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function i(n,o,s,l){var u=m(e[n],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==Object(a["a"])(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,l)}))}l(u.arg)}var o;n(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){i(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(i,n){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===i)throw n;return S()}for(r.method=i,r.arg=n;;){var o=r.delegate;if(o){var s=q(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var l=m(e,t,r);if("normal"===l.type){if(a=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a="completed",r.method="throw",r.arg=l.arg)}}}function q(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=void 0,q(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=m(a,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var n=i.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function t(){for(;++a<e.length;)if(r.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return v.prototype=h,n(w,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:v,configurable:!0}),v.displayName=c(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},y(C.prototype),c(C.prototype,l,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,a,i,n){void 0===n&&(n=Promise);var o=new C(d(t,r,a,i),n);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.val