| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-164cb734"],{"088b":function(t,e,n){"use strict";n("abfc")},"722a":function(t,e,n){"use strict";n.d(e,"f",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"h",(function(){return d})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"i",(function(){return f})),n.d(e,"a",(function(){return m})),n.d(e,"e",(function(){return l})),n.d(e,"j",(function(){return p})),n.d(e,"b",(function(){return g}));n("d3b7");var a=n("bc3a"),o=n.n(a),c=n("f64c");function r(t){return new Promise((function(e,n){o()({url:"/api/manager/ComponentElement/getComponent",method:"post",data:t}).then((function(t){1==t.data.code?e(t.data.data):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function i(t){return new Promise((function(e,n){o()({url:"/api/manager/ComponentElement/getComponentElement",method:"post",data:t}).then((function(t){1==t.data.code?e(t.data.data):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function d(t){return new Promise((function(e,n){o()({url:"/api/manager/ComponentElement/saveItem",method:"post",data:t}).then((function(t){1==t.data.code?(c["a"].success(t.data.msg),e(t.data.data)):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function u(t){return new Promise((function(e,n){o()({url:"/api/manager/ComponentElement/delete",method:"post",data:t}).then((function(t){1==t.data.code?(c["a"].success(t.data.msg),e(t.data.data)):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function s(t){return new Promise((function(e,n){o()({url:"/api/manager/ActivityHot/getList",method:"post",data:t}).then((function(t){1==t.data.code?e(t.data.data):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function f(t){return new Promise((function(e,n){o()({url:"/api/manager/ActivityHot/saveItem",method:"post",data:t}).then((function(t){1==t.data.code?(c["a"].success(t.data.msg),e(t.data.data)):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function m(t){return new Promise((function(e,n){o()({url:"/api/manager/ActivityHot/delete",method:"post",data:t}).then((function(t){1==t.data.code?(c["a"].success(t.data.msg),e(t.data.data)):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function l(t){return new Promise((function(e,n){o()({url:"/api/manager/ActivitySeckill/getList",method:"post",data:t}).then((function(t){1==t.data.code?e(t.data.data):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function p(t){return new Promise((function(e,n){o()({url:"/api/manager/ActivitySeckill/saveItem",method:"post",data:t}).then((function(t){1==t.data.code?(c["a"].success(t.data.msg),e(t.data.data)):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}function g(t){return new Promise((function(e,n){o()({url:"/api/manager/ActivitySeckill/delete",method:"post",data:t}).then((function(t){1==t.data.code?(c["a"].success(t.data.msg),e(t.data.data)):n(new Error(t.data.msg))})).catch((function(t){n(t)}))}))}},"8dac":function(t,e,n){"use strict";n.r(e);n("b0c0");var a=n("7a23"),o=Object(a["withScopeId"])("data-v-b95dd7c4");Object(a["pushScopeId"])("data-v-b95dd7c4");var c={class:"page-warp"},r=Object(a["createTextVNode"])("开启"),i=Object(a["createTextVNode"])("关闭"),d=Object(a["createTextVNode"])("保存");Object(a["popScopeId"])();var u=o((function(t,e,n,u,s,f){var m=Object(a["resolveComponent"])("a-radio"),l=Object(a["resolveComponent"])("a-radio-group"),p=Object(a["resolveComponent"])("a-form-item"),g=Object(a["resolveComponent"])("a-input"),h=Object(a["resolveComponent"])("a-button"),b=Object(a["resolveComponent"])("a-form"),v=Object(a["resolveComponent"])("a-card");return Object(a["openBlock"])(),Object(a["createBlock"])("div",c,[Object(a["createVNode"])(v,{title:"页面布局",class:"content-wrap",bordered:!1},{default:o((function(){return[Object(a["createVNode"])(b,{"label-col":{span:3},"wrapper-col":{span:21}},{default:o((function(){return[Object(a["createVNode"])(p,{label:"wifi优惠券:"},{default:o((function(){return[Object(a["createVNode"])(l,{value:s.form.config.status,"onUpdate:value":e[1]||(e[1]=function(t){return s.form.config.status=t})},{default:o((function(){return[Object(a["createVNode"])(m,{value:1},{default:o((function(){return[r]})),_:1}),Object(a["createVNode"])(m,{value:2},{default:o((function(){return[i]})),_:1})]})),_:1},8,["value"])]})),_:1}),1==s.form.config.status?(Object(a["openBlock"])(),Object(a["createBlock"])(p,{key:0,label:"组件标题:"},{default:o((function(){return[Object(a["createVNode"])(g,{"allow-clear":"",placeholder:"请输入组件标题",value:s.form.config.name,"onUpdate:value":e[2]||(e[2]=function(t){return s.form.config.name=t})},null,8,["value"])]})),_:1})):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(p,{"wrapper-col":{offset:3,xl:{offset:2}}},{default:o((function(){return[Object(a["createVNode"])(h,{type:"primary",onClick:f.save,loading:s.saveLoading},{default:o((function(){return[d]})),_:1},8,["onClick","loading"])]})),_:1})]})),_:1})]})),_:1})])})),s=(n("d3b7"),n("722a")),f={name:"popupAdvertising",data:function(){return{saveLoading:!1,component_id:"",form:{id:"",component_id:"",sort:1,config:{image_url:"",status:2,type:"",target_name_simple:"",target_id:"",target_name:"",name:""}}}},created:function(){this.initData()},methods:{initData:function(){var t=this;Object(s["f"])({type:7,sign:1}).then((function(e){t.component_id=e.id,t.reloadElement()}))},reloadElement:function(){var t=this;Object(s["g"])({component_id:this.component_id}).then((function(e){if(e&&e.length>0){var n=e[0];t.form={id:n.id,component_id:n.component_id,sort:1,config:{image_url:n.config.image_url,status:n.config.status,type:n.config.type,target_name_simple:n.config.target_name_simple,target_id:n.config.target_id,target_name:n.config.target_name,name:n.config.name}}}else t.form={component_id:t.component_id,sort:1,config:{image_url:"",status:2,type:"",target_name_simple:"",target_id:"",target_name:""}}}))},save:function(){var t=this;if(!this.form.component_id)return this.$message.error("页面组件缺失,请刷新重试!"),!1;this.form.config.type||(this.form.config.type=0),this.saveLoading=!0,Object(s["h"])(this.form).then((function(){t.reloadElement()})).finally((function(){t.saveLoading=!1}))}}},m=(n("088b"),n("6b0d")),l=n.n(m);const p=l()(f,[["render",u],["__scopeId","data-v-b95dd7c4"]]);e["default"]=p},abfc:function(t,e,n){}}]);
|