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