1 line
7.6 KiB
JavaScript
1 line
7.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44463164"],{"1af7":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"informationadd"},[r("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[t._m(0),r("div",{staticClass:"mar_t20 flex-bet flex-y-top"},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"180px"}},[r("el-form-item",{attrs:{label:"资讯开关",required:!0}},[r("el-tooltip",{attrs:{content:1==t.form.display?"开启":"关闭",placement:"top"}},[r("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},model:{value:t.form.display,callback:function(e){t.$set(t.form,"display",e)},expression:"form.display"}})],1),r("div",{staticClass:"yb_margin lh16"},[t._v("如关闭此功能商家将不显示资讯内容")])],1),r("el-form-item",{attrs:{label:"资讯审核",required:!0}},[r("el-tooltip",{attrs:{content:1==t.form.display?"开启":"关闭",placement:"top"}},[r("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},model:{value:t.form.display,callback:function(e){t.$set(t.form,"display",e)},expression:"form.display"}})],1)],1)],1)],1)]),r("div",{staticClass:"mar_t20 ba_f pad_20 t_c"},[r("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("保存")])],1),r("attachment-img",{ref:"img1",attrs:{type:"img"},on:{attachment:t.imgadd1}})],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[t._v("资讯设置")])])])}],i=(r("c975"),r("a434"),r("96cf"),r("1da1")),o=r("7cb7"),s=r("ed08"),c=r("fc6e"),u=r("9893"),l={created:function(){this.$route.query.id&&(this.id=this.$route.query.id,this.edit())},components:{attachmentImg:c["a"],baiduUeditor:u["a"]},data:function(){return{form:{name:"",money:"",details:"",useType:"1"},money1:"",money2:"",money3:"",money4:"",numType:"1",timeData:[new Date,(new Date).setMonth((new Date).getMonth()+3)],collapseName:""}},methods:{getUeditor:function(t){this.form.details=t},edit:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["Y"])({id:t.id});case 2:r=e.sent,n=r.data,t.form2=t.form,t.form=Object.assign(t.form2,n),n.startTime&&(t.timeData=[n.startTime,n.endTime]);case 7:case"end":return e.stop()}}),e)})))()},enter:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.$refs["imgicon"+t].style.display="none"},leave:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.$refs["imgicon"+t].style.display="inline-block"},test:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;console.log(this.$refs,t),this.$refs["img"+t].dialogVisible=!0},imgadd1:function(t){this.form.icon=t.str},deleteMultiImage:function(t,e,r){if(Array.prototype.remove=function(t){var e=this.indexOf(t);e>-1&&this.splice(e,1)},"multigraph"==r)switch(e){case 2:this.form2.environment.remove(t);break}else switch(e){case 1:this.form.icon="";break}},submitForm:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$refs["form"].validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(r){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=10;break}return t.timeData&&(t.form.startTime=Object(s["a"])(t.timeData[0]),t.form.endTime=Object(s["a"])(t.timeData[1])),e.next=4,Object(o["uc"])(t.form);case 4:n=e.sent,a=n.msg,t.$baseMessage(a,"success"),t.$router.go(-1),e.next=11;break;case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)})))()}}},f=l,m=r("2877"),d=Object(m["a"])(f,n,a,!1,null,null,null);e["default"]=d.exports},"3bbe":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7156:function(t,e,r){var n=r("861d"),a=r("d2bb");t.exports=function(t,e,r){var i,o;return a&&"function"==typeof(i=e.constructor)&&i!==r&&n(o=i.prototype)&&o!==r.prototype&&a(t,o),t}},a434:function(t,e,r){"use strict";var n=r("23e7"),a=r("23cb"),i=r("a691"),o=r("50c4"),s=r("7b0b"),c=r("65f0"),u=r("8418"),l=r("1dde"),f=r("ae40"),m=l("splice"),d=f("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,h=9007199254740991,b="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!m||!d},{splice:function(t,e){var r,n,l,f,m,d,v=s(this),y=o(v.length),_=a(t,y),w=arguments.length;if(0===w?r=n=0:1===w?(r=0,n=y-_):(r=w-2,n=g(p(i(e),0),y-_)),y+r-n>h)throw TypeError(b);for(l=c(v,n),f=0;f<n;f++)m=_+f,m in v&&u(l,f,v[m]);if(l.length=n,r<n){for(f=_;f<y-n;f++)m=f+n,d=f+r,m in v?v[d]=v[m]:delete v[d];for(f=y;f>y-n+r;f--)delete v[f-1]}else if(r>n)for(f=y-n;f>_;f--)m=f+n-1,d=f+r-1,m in v?v[d]=v[m]:delete v[d];for(f=0;f<r;f++)v[f+_]=arguments[f+2];return v.length=y-n+r,l}})},a9e3:function(t,e,r){"use strict";var n=r("83ab"),a=r("da84"),i=r("94ca"),o=r("6eeb"),s=r("5135"),c=r("c6b6"),u=r("7156"),l=r("c04e"),f=r("d039"),m=r("7c73"),d=r("241c").f,p=r("06cf").f,g=r("9bf2").f,h=r("58a8").trim,b="Number",v=a[b],y=v.prototype,_=c(m(y))==b,w=function(t){var e,r,n,a,i,o,s,c,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=h(u),e=u.charCodeAt(0),43===e||45===e){if(r=u.charCodeAt(2),88===r||120===r)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+u}for(i=u.slice(2),o=i.length,s=0;s<o;s++)if(c=i.charCodeAt(s),c<48||c>a)return NaN;return parseInt(i,n)}return+u};if(i(b,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var M,N=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof N&&(_?f((function(){y.valueOf.call(r)})):c(r)!=b)?u(new v(w(e)),r,N):w(e)},x=n?d(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),I=0;x.length>I;I++)s(v,M=x[I])&&!s(N,M)&&g(N,M,p(v,M));N.prototype=y,y.constructor=N,o(a,b,N)}},bf19:function(t,e,r){"use strict";var n=r("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,r){var n=r("825a"),a=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(i){}return function(r,i){return n(r),a(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},ed08:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return i}));r("a9e3"),r("ac1f"),r("5319"),r("bf19");function n(t){var e=new Date(t).toJSON(),r=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return r}function a(t){var e=new Date(t),r=e.getFullYear(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,a=e.getDate()<10?"0"+e.getDate():e.getDate(),i=e.getHours()<10?"0"+e.getHours():e.getHours(),o=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return r+"-"+n+"-"+a+" "+i+":"+o+":"+s}function i(t){var e=new Date(1e3*Number(t)),r=e.getFullYear()+"-",n=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",a=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",i=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",o=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),c=r+n+a+i+o+s;return c}}}]); |