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.d895d563.js

3 lines
41 KiB

10 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bargain"],{"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(r){return[t("span",{staticClass:"c-p"},[e._v("¥"+e._s(r))])]}},{key:"ti
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function m(e,t,r,a){var i=t&&t.prototype instanceof _?t:_,n=Object.create(i.prototype),s=new N(a||[]);return o(n,"_invoke",{value:O(e,r,s)}),n}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var f="suspendedStart",v="suspendedYield",h="executing",b="completed",g={};function _(){}function w(){}function y(){}var C={};d(C,l,(function(){return this}));var x=Object.getPrototypeOf,q=x&&x(x(D([])));q&&q!==r&&n.call(q,l)&&(C=q);var k=y.prototype=_.prototype=Object.create(C);function L(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function r(i,o,s,l){var u=p(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==Object(a["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,a){function n(){return new t((function(t,i){r(e,a,t,i)}))}return i=i?i.then(n,n):n()}})}function O(t,r,a){var i=f;return function(n,o){if(i===h)throw new Error("Generator is already running");if(i===b){if("throw"===n)throw o;return{value:e,done:!0}}for(a.method=n,a.arg=o;;){var s=a.delegate;if(s){var l=S(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===f)throw i=b,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=h;var u=p(t,r,a);if("normal"===u.type){if(i=a.done?b:v,u.arg===g)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(i=b,a.method="throw",a.arg=u.arg)}}}function S(t,r){var a=r.method,i=t.iterator[a];if(i===e)return r.delegate=null,"throw"===a&&t.iterator["return"]&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var n=p(i,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,g;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function V(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(Object(a["a"])(t)+" is not iterable")}return w.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:w,configurable:!0}),w.displayName=d(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},L(j.prototype),d(j.prototype,u,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,a,i,n){void 0===n&&(n=Promise);var o=new j(m(e,r,a,i),n);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},L(k),d(k,c,"Generat