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
72 KiB
3 lines
72 KiB
11 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["market"],{"052a":function(e,t,r){"use strict";r.r(t);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("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form-model",{ref:"myForm",staticClass:"my-form",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-form-model-item",{attrs:{label:"开启商品推荐",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("a-radio-group",{model:{value:e.record.enabled,callback:function(t){e.$set(e.record,"enabled",t)},expression:"record.enabled"}},[t("a-radio",{attrs:{value:1}},[e._v("开启")]),t("a-radio",{attrs:{value:0}},[e._v("关闭")])],1),t("p",{staticClass:"form-item-help"},[t("small",[e._v("开启后将在用户端购物车页底部、个人中心页底部显示推荐的商品列表")])])],1),t("a-form-model-item",{attrs:{label:"商品来源",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("a-radio-group",{model:{value:e.record.params.source,callback:function(t){e.$set(e.record.params,"source",t)},expression:"record.params.source"}},[t("a-radio",{attrs:{value:"auto"}},[e._v("自动获取")]),t("a-radio",{attrs:{value:"choice"}},[e._v("手动选择")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"auto"===e.record.params.source,expression:"record.params.source === 'auto'"}]},[t("a-form-model-item",{attrs:{label:"商品分类",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("SelectCategory",{model:{value:e.record.params.auto.category,callback:function(t){e.$set(e.record.params.auto,"category",t)},expression:"record.params.auto.category"}})],1),t("a-form-model-item",{attrs:{label:"商品排序",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("a-radio-group",{model:{value:e.record.params.auto.goodsSort,callback:function(t){e.$set(e.record.params.auto,"goodsSort",t)},expression:"record.params.auto.goodsSort"}},[t("a-radio",{attrs:{value:"all"}},[e._v("默认")]),t("a-radio",{attrs:{value:"sales"}},[e._v("销量")]),t("a-radio",{attrs:{value:"price"}},[e._v("价格")])],1)],1),t("a-form-model-item",{attrs:{label:"显示数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("a-input-number",{attrs:{min:0,max:50,autocomplete:"off"},model:{value:e.record.params.auto.showNum,callback:function(t){e.$set(e.record.params.auto,"showNum",t)},expression:"record.params.auto.showNum"}}),t("span",{staticClass:"ml-10"},[e._v("件")])],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"choice"===e.record.params.source,expression:"record.params.source === 'choice'"}]},[t("a-form-model-item",{attrs:{label:"选择的商品",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("SelectGoods",{attrs:{defaultList:e.choiceGoodsList},model:{value:e.record.params.goodsIds,callback:function(t){e.$set(e.record.params,"goodsIds",t)},expression:"record.params.goodsIds"}})],1)],1),t("a-divider",{attrs:{orientation:"left"}},[e._v("样式设置")]),t("a-form-model-item",{attrs:{label:"标题内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("a-input",{model:{value:e.record.style.title,callback:function(t){e.$set(e.record.style,"title",t)},expression:"record.style.title"}}),t("div",{staticClass:"form-item-help"},[t("small",[e._v("例如:商品推荐、精选好物、为你推荐")])])],1),t("a-form-model-item",{attrs:{label:"商品分列",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("a-radio-group",{model:{value:e.record.style.column,callback:function(t){e.$set(e.record.style,"column",t)},expression:"record.style.column"}},[t("a-radio",{attrs:{value:1}},[e._v("单列")]),t("a-radio",{attrs:{value:2}},[e._v("两列")]),t("a-radio",{attrs:{value:3}},[e._v("三列")])],1)],1),t("a-form-model-item",{attrs:{label:"商品内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[t("a-checkbox-group",{model:{value:e.record.style.show,callback:function(t){e.$set(e.record.style,"show",t)},expression:"record.style.sh
|
||
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
|
o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",u=n.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(O){c=function(e,t,r){return e[t]=r}}function d(e,t,r,a){var o=t&&t.prototype instanceof f?t:f,n=Object.create(o.prototype),s=new S(a||[]);return i(n,"_invoke",{value:x(e,r,s)}),n}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}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(N([])));_&&_!==t&&r.call(_,s)&&(b=_);var C=h.prototype=f.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function o(i,n,s,l){var u=m(e[i],e,n);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){o("next",e,s,l)}),(function(e){o("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return o("throw",e,s,l)}))}l(u.arg)}var n;i(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){o(e,r,t,a)}))}return n=n?n.then(a,a):a()}})}function x(e,t,r){var a="suspendedStart";return function(o,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===o)throw i;return F()}for(r.method=o,r.arg=i;;){var n=r.delegate;if(n){var s=L(n,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 L(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,L(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=m(a,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function q(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function N(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,o=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 o.next=o}}return{next:F}}function F(){return{value:void 0,done:!0}}return v.prototype=h,i(C,"constructor",{value:h,configurable:!0}),i(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(C),e},e.awrap=function(e){return{__await:e}},w(y.prototype),c(y.prototype,l,(function(){return this})),e.AsyncIterator=y,e.async=function(t,r,a,o,i){void 0===i&&(i=Promise);var n=new y(d(t,r,a,o),i);return e.isGeneratorFunction(r)?n:n.next().then((function(e){return e.done?e.val
|