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/market.2fb7e55a.js

3 lines
111 KiB

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