文件
mashangyoujiu/Public/DIY/js/chunk-3d22e760.ecef2ea3.js

1 行
4.9 KiB
JavaScript
可执行文件

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d22e760"],{"1c69":function(o,t,e){"use strict";e.r(t);e("b0c0");var n=function(){var o=this,t=o._self._c;return t("div",{attrs:{id:"diy-coupon"}},[t("el-form",{attrs:{model:o.componentData,"label-width":"80px","label-position":"top"}},[t("el-form-item",{staticClass:"form-item-content-inline",attrs:{label:"上边距"}},[t("div",{staticStyle:{width:"100%","padding-left":"50px"}},[t("el-slider",{attrs:{max:50},model:{value:o.componentData.marginTop,callback:function(t){o.$set(o.componentData,"marginTop",t)},expression:"componentData.marginTop"}})],1)]),t("el-form-item",{staticClass:"form-item-content-inline",attrs:{label:"下边距"}},[t("div",{staticStyle:{width:"100%","padding-left":"50px"}},[t("el-slider",{attrs:{max:50},model:{value:o.componentData.marginBottom,callback:function(t){o.$set(o.componentData,"marginBottom",t)},expression:"componentData.marginBottom"}})],1)]),t("el-form-item",{staticClass:"form-item-content-inline",attrs:{label:"优惠券背景"}},[t("el-color-picker",{attrs:{"show-alpha":"",predefine:this.$root.predefineColors},on:{"active-change":o.backgroundColorChange},model:{value:o.componentData.backgroundColor,callback:function(t){o.$set(o.componentData,"backgroundColor",t)},expression:"componentData.backgroundColor"}}),t("el-link",{attrs:{type:"primary"},on:{click:o.backgroundColorReset}},[o._v("重置")])],1),t("el-form-item",{staticClass:"form-item-content-inline",attrs:{label:"优惠券文字颜色"}},[t("el-color-picker",{attrs:{"show-alpha":"",predefine:this.$root.predefineColors},on:{"active-change":o.colorChange},model:{value:o.componentData.color,callback:function(t){o.$set(o.componentData,"color",t)},expression:"componentData.color"}}),t("el-link",{attrs:{type:"primary"},on:{click:o.colorReset}},[o._v("重置")])],1),t("el-form-item",{staticClass:"form-item-content-inline",attrs:{label:"领取按钮背景颜色"}},[t("el-color-picker",{attrs:{"show-alpha":"",predefine:this.$root.predefineColors},on:{"active-change":o.receiveButtonBackgroundColorChange},model:{value:o.componentData.receiveButtonBackgroundColor,callback:function(t){o.$set(o.componentData,"receiveButtonBackgroundColor",t)},expression:"componentData.receiveButtonBackgroundColor"}}),t("el-link",{attrs:{type:"primary"},on:{click:o.receiveButtonBackgroundColorReset}},[o._v("重置")])],1),t("el-form-item",{staticClass:"form-item-content-inline",attrs:{label:"领取按钮文字颜色"}},[t("el-color-picker",{attrs:{"show-alpha":"",predefine:this.$root.predefineColors},on:{"active-change":o.receiveButtonColorChange},model:{value:o.componentData.receiveButtonColor,callback:function(t){o.$set(o.componentData,"receiveButtonColor",t)},expression:"componentData.receiveButtonColor"}}),t("el-link",{attrs:{type:"primary"},on:{click:o.receiveButtonColorReset}},[o._v("重置")])],1),t("el-form-item",{staticClass:"form-item-content-inline",attrs:{label:"查看更多文字颜色"}},[t("el-color-picker",{attrs:{"show-alpha":"",predefine:this.$root.predefineColors},on:{"active-change":o.moreColorChange},model:{value:o.componentData.moreColor,callback:function(t){o.$set(o.componentData,"moreColor",t)},expression:"componentData.moreColor"}}),t("el-link",{attrs:{type:"primary"},on:{click:o.moreColorReset}},[o._v("重置")])],1),o.componentData.couponTypeData?t("el-form-item",{staticClass:"form-item-content-inline",attrs:{label:"优惠券类型"}},[t("el-radio-group",{attrs:{size:"mini"},on:{change:o.setCouponType},model:{value:o.componentData.type,callback:function(t){o.$set(o.componentData,"type",t)},expression:"componentData.type"}},[o._l(o.componentData.couponTypeData,(function(e){return[t("el-radio",{key:e.type,staticStyle:{margin:"8px"},attrs:{label:e.type,border:"",disabled:1!=e.status}},[o._v(" "+o._s(e["name"])+" ")])]}))],2)],1):o._e(),t("div",{staticClass:"tip"},[o._v('提示:"查看更多"颜色变化时组件将自动横向滚动至最后,以确保能够实时预览颜色变更效果。')])],1)],1)},a=[],r={name:"diy-coupon",props:["componentData"],methods:{backgroundColorChange:function(o){this.componentData.backgroundColor=o},backgroundColorReset:function(){this.componentData.backgroundColor="#ff5c6d"},colorChange:function(o){this.componentData.color=o},colorReset:function(){this.componentData.color="#FFF"},receiveButtonBackgroundColorChange:function(o){this.componentData.receiveButtonBackgroundColor=o},receiveButtonBackgroundColorReset:function(){this.componentData.receiveButtonBackgroundColor="#FFF"},receiveButtonColorChange:function(o){this.componentData.receiveButtonColor=o},receiveButtonColorReset:function(){this.componentData.receiveButtonColor="#ff5c6d"},moreColorChange:function(o){this.componentData.moreColor=o},moreColorReset:function(){this.componentData.moreColor="#AAA"},setCouponType:function(o){this.componentData.type=o}}},c=r,i=(e("2cd1"),e("2877")),l=Object(i["a"])(c,n,a,!1,null,"4c5f16fa",null);t["default"]=l.exports},"2cd1":function(o,t,e){"use strict";e("63da")},"63da":function(o,t,e){}}]);