canyin-project/ybcy/views/channel/index/static/js/chunk-72118ce6.90519b26.js

1 line
30 KiB
JavaScript
Raw Permalink Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72118ce6"],{"2b21":function(e,t,a){},"39d7":function(e,t,a){},"3bbe":function(e,t,a){var r=a("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"578d":function(e,t,a){"use strict";var r=a("39d7"),n=a.n(r);n.a},"6ea5":function(e,t,a){"use strict";var r=a("798c"),n=a.n(r);n.a},7156:function(e,t,a){var r=a("861d"),n=a("d2bb");e.exports=function(e,t,a){var s,o;return n&&"function"==typeof(s=t.constructor)&&s!==a&&r(o=s.prototype)&&o!==a.prototype&&n(e,o),e}},"798c":function(e,t,a){},"894e":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[e._m(0),a("div",{staticClass:"mar_t20 flex-bet flex-y-top"},[a("div",{staticClass:"flex-g-1"},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"活动名称",required:!0,prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入活动名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"活动时间",required:!0}},[a("el-date-picker",{attrs:{type:"datetimerange",align:"right","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["08:00:00","20:00:00"]},model:{value:e.timeData,callback:function(t){e.timeData=t},expression:"timeData"}})],1),a("el-form-item",{attrs:{label:"适用门店",required:!0}},[a("el-radio-group",{model:{value:e.form.storeType,callback:function(t){e.$set(e.form,"storeType",t)},expression:"form.storeType"}},[a("el-radio",{attrs:{label:"1"}},[e._v("仅本店可用")]),a("el-radio",{attrs:{label:"2"}},[e._v("全店通用")]),a("el-radio",{attrs:{label:"3"}},[e._v("指定门店可用")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==e.form.storeType,expression:"form.storeType=='3'"}]},[a("el-scrollbar",[a("div",{staticClass:"recordBox"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.shopTable,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"name",label:"门店名称"}}),a("el-table-column",{attrs:{prop:"address",label:"门店地址"}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"textbutton"},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return e.open2(t.row,t.$index)}}},[e._v("删除")])],1)]}}])})],1)],1)]),a("div",{staticClass:"addgoods textbutton"},[a("i",{staticClass:"el-icon-plus subjectcolor2"}),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addshop(e.shopTable)}}},[e._v("添加门店")])],1)],1),a("div",{staticClass:"yb_margin lh16"},[e._v("全店通用、指定门店可用不适用于门店模式三")])],1),a("el-form-item",{attrs:{label:"适用场景",required:!0}},[a("el-checkbox-group",{model:{value:e.form.useType,callback:function(t){e.$set(e.form,"useType",t)},expression:"form.useType"}},[a("el-checkbox",{attrs:{label:"1"}},[e._v("外卖")]),a("el-checkbox",{attrs:{label:"2"}},[e._v("堂食")]),a("el-checkbox",{attrs:{label:"3"}},[e._v("快餐")])],1)],1),a("el-form-item",{attrs:{label:"每天限购次数",required:!0}},[a("div",{staticClass:"time_item"},[a("el-radio",{attrs:{label:"1"},model:{value:e.form.limitType,callback:function(t){e.$set(e.form,"limitType",t)},expression:"form.limitType"}},[e._v("不限次数")]),a("el-radio",{attrs:{label:"2"},model:{value:e.form.limitType,callback:function(t){e.$set(e.form,"limitType",t)},expression:"form.limitType"}},[e._v("每天换购")]),"2"==e.form.limitType?a("span",[a("el-input-number",{attrs:{"controls-position":"right",min:1,max:1e6},model:{value:e.form.num,callback:function(t){e.$set(e.form,"num",t)},expression:"form.num"}}),a("span",{staticClass:"mar_l10"},[e._v("次")])],1):e._e(),a("div",{staticClass:"yb_margin lh16"},[e._v("每个用户每天换购的次数")])],1)]),e.form.useType.indexOf("1")>-1?a("el-f