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.
3 lines
73 KiB
3 lines
73 KiB
9 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["groupon"],{"0ef9":function(e,t,a){},"115f":function(e,t,a){"use strict";a("0ef9")},"1da1":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("d3b7");function r(e,t,a,r,i,o,n){try{var s=e[o](n),l=s.value}catch(u){return void a(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,a=arguments;return new Promise((function(i,o){var n=e.apply(t,a);function s(e){r(n,i,o,s,l,"next",e)}function l(e){r(n,i,o,s,l,"throw",e)}s(void 0)}))}}},2485:function(e,t,a){},"27ae":function(e,t,a){"use strict";a("8b7c")},"448a":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("d3b7"),a("25f0");var r=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("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[t("a-form-item",{attrs:{label:"商品信息",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[e.goods?t("GoodsItem",{attrs:{data:{image:e.goods.goods_image,imageAlt:"商品图片",title:e.goods.goods_name,subtitle:"¥".concat(e.goods.goods_price_min)},subTitleColor:!0}}):e._e()],1),t("a-form-item",{attrs:{label:"活动时间",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime",{initialValue:e.defaultDate,rules:[{required:!0,message:"请选择有效期范围"}]}],expression:"['betweenTime', { initialValue: defaultDate, rules: [{ required: true, message: '请选择有效期范围' }] }]"}],attrs:{format:"YYYY-MM-DD HH:mm:ss","show-time":{defaultValue:e.moment("00:00:00","HH:mm:ss")}}})],1),t("a-form-item",{attrs:{label:"拼团类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("a-tooltip",[t("template",{slot:"title"},[e._v("拼团类型创建后不允许修改")]),t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["active_type",{initialValue:10,rules:[{required:!0}]}],expression:"['active_type', { initialValue: 10, rules: [{ required: true }] }]"}],attrs:{disabled:!0}},e._l(e.ActiveTypeEnum.data,(function(a,r){return t("a-radio",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],2),t("p",{staticClass:"form-item-help"},[e.record.active_type==e.ActiveTypeEnum.NORMAL.value?t("small",[e._v("用户下单开团后,邀请好友拼团,以优惠价格购买,提升店铺转化")]):e._e(),e.record.active_type==e.ActiveTypeEnum.PULL_NEW.value?t("small",[e._v("新老用户都可下单开团,但仅限新用户参团;新用户定义: 从未下单付款过的用户")]):e._e(),e.record.active_type==e.ActiveTypeEnum.STEPS.value?t("small",[e._v("人数越多价格越低,用低价刺激用户发起拉人更多的拼团,高效裂变")]):e._e()])],1),t("a-form-item",{attrs:{label:"拼单有效期",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["group_time",{initialValue:24,rules:[{required:!0,message:"请输入拼团有效期"}]}],expression:"['group_time', { initialValue: 24, rules: [{ required: true, message: '请输入拼团有效期' }] }]"}],attrs:{min:1,precision:0}}),t("span",{staticClass:"ml-8"},[e._v("小时")]),t("p",{staticClass:"form-item-help"},[t("small",[e._v("自用户成功发起拼团到拼单截止的周期")])])],1),t("a-form-item",{attrs:{label:"参团人数",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[e.record.active_type==e.ActiveTypeEnum.STEPS.value?t("div",[e._l(e.record.steps_config,(function(a,r){return t("a-form-item",{key:r},[t("span",{staticClass:"mr-10"},[e._v("第"+e._s(r+1)+"阶梯人数")]),t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["steps_config[".concat(r,"]"),{initialValue:a?a.toString():"",validateTrigger:["blur"],rules:[{required:!0,message:"参团人数不能为空"},{validator:e.validatorStepsConfig}]}],expression:"[`steps_config[${index}]`, {\n initialValue: value ? value.toStr
|
||
|
/*! 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,a=t.hasOwnProperty,o=Object.defineProperty||function(e,t,a){e[t]=a.value},n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(O){c=function(e,t,a){return e[t]=a}}function d(e,t,a,r){var i=t&&t.prototype instanceof v?t:v,n=Object.create(i.prototype),s=new q(r||[]);return o(n,"_invoke",{value:k(e,a,s)}),n}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(O){return{type:"throw",arg:O}}}e.wrap=d;var m={};function v(){}function f(){}function h(){}var g={};c(g,s,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(E([])));b&&b!==t&&a.call(b,s)&&(g=b);var y=h.prototype=v.prototype=Object.create(g);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(o,n,s,l){var u=p(e[o],e,n);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==Object(r["a"])(d)&&a.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 n;o(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){i(e,a,t,r)}))}return n=n?n.then(r,r):r()}})}function k(e,t,a){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(a.method=i,a.arg=o;;){var n=a.delegate;if(n){var s=S(n,a);if(s){if(s===m)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var l=p(e,t,a);if("normal"===l.type){if(r=a.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(r="completed",a.method="throw",a.arg=l.arg)}}}function S(e,t){var a=t.method,r=e.iterator[a];if(void 0===r)return t.delegate=null,"throw"===a&&e.iterator["return"]&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),m;var i=p(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function x(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 q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(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 r=-1,i=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return f.prototype=h,o(y,"constructor",{value:h,configurable:!0}),o(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"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(y),e},e.awrap=function(e){return{__await:e}},C(w.prototype),c(w.prototype,l,(function(){return this})),e.AsyncIterator=w,e.async=function(t,a,r,i,o){void 0===o&&(o=Promise);var n=new w(d(t,a,r,i),o);return e.isGeneratorFunction(a)?n:n.next().then((function(e){return e.done?e.val
|