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