1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-331cb1f2"],{"0386":function(t,n,e){},6935:function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"160px"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"积分:",prop:"integral_status"}},[e("el-radio-group",{model:{value:t.formValidate.integral_status,callback:function(n){t.$set(t.formValidate,"integral_status",n)},expression:"formValidate.integral_status"}},[e("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("关闭")]),t._v(" "),e("el-radio",{attrs:{label:1}},[t._v("开启")])],1),t._v(" "),e("span",{staticClass:"label_tip"},[t._v("(指平台积分功能的开启或关闭。开启:积分功能正常启用;关闭:积分功能不可使用,且前端不展示)")])],1)],1),t._v(" "),t.formValidate.integral_status>0?e("el-col",[e("el-form-item",{attrs:{label:"积分抵用金额:",prop:"integral_money"}},[e("el-input-number",{attrs:{min:0,size:"small",placeholder:"积分抵用金额"},model:{value:t.formValidate.integral_money,callback:function(n){t.$set(t.formValidate,"integral_money",n)},expression:"formValidate.integral_money"}}),t._v(" "),e("span",{staticClass:"label_tip"},[t._v("(指1积分抵用多少金额,单位: 元)")])],1)],1):t._e(),t._v(" "),t.formValidate.integral_status>0?e("el-col",[e("el-form-item",{attrs:{label:"下单赠送积分比例:",prop:"integral_order_rate"}},[e("el-input-number",{attrs:{min:0,size:"small",placeholder:"请输入赠送比例"},model:{value:t.formValidate.integral_order_rate,callback:function(n){t.$set(t.formValidate,"integral_order_rate",n)},expression:"formValidate.integral_order_rate"}}),t._v(" "),e("span",{staticClass:"label_tip"},[t._v("(指实际支付1 元赠送多少积分,单位: 分)")])],1)],1):t._e(),t._v(" "),t.formValidate.integral_status>0?e("el-col",[e("el-form-item",{attrs:{label:"下单赠送积分冻结期:",prop:"integral_freeze"}},[e("el-input-number",{attrs:{min:0,precision:0,step:1,size:"small",placeholder:"请输入冻结期限"},model:{value:t.formValidate.integral_freeze,callback:function(n){t.$set(t.formValidate,"integral_freeze",n)},expression:"formValidate.integral_freeze"}}),t._v(" "),e("span",{staticClass:"label_tip"},[t._v("(指下单所获赠送积分需冻结多少天后才可使用,单位:天;设置为0,即没有冻结期,积分冻结时间每20分钟更新一次)")])],1)],1):t._e(),t._v(" "),t.formValidate.integral_status>0?e("el-col",[e("el-form-item",{attrs:{label:"积分清除时间设置:",prop:"integral_clear_time"}},[e("el-input-number",{attrs:{min:0,precision:0,step:1,size:"small",placeholder:"请输入冻结期限"},model:{value:t.formValidate.integral_clear_time,callback:function(n){t.$set(t.formValidate,"integral_clear_time",n)},expression:"formValidate.integral_clear_time"}}),t._v(" "),e("span",{staticClass:"label_tip"},[t._v("(指累计积分的清除时间。单位:月;例如:设置为6,指每隔6个月清除前6个月的积分,比如6月30日,自动清除上一年7月1日-12月31日的积分。)")])],1)],1):t._e(),t._v(" "),t.formValidate.integral_status>0?e("el-col",[e("el-form-item",{attrs:{label:"邀请好友赠送积分:",prop:"integral_user_give"}},[e("el-input-number",{attrs:{min:0,precision:0,step:1,size:"small",placeholder:"请输入赠送积分数"},model:{value:t.formValidate.integral_user_give,callback:function(n){t.$set(t.formValidate,"integral_user_give",n)},expression:"formValidate.integral_user_give"}}),t._v(" "),e("span",{staticClass:"label_tip"},[t._v("(指邀请新人好友成功登录商城后,赠送给邀请人的积分数;单位:分)")])],1)],1):t._e()],1),t._v(" "),t.formValidate.integral_status>0?e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"积分说明:"}},[e("vue-ueditor-wrap",{attrs:{config:t.myConfig},on:{beforeInit:t.addCustomDialog},model:{value:t.formValidate.rule,callback:function(n){t.$set(t.formValidate,"rule",n)},expression:"formValidate.rule"}})],1)],1)],1):t._e(),t._v(" "),e("el-form-item",{staticStyle:{"margin-top":"30px"}},[t.formValidate.integral_status>0?e("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:t.preview}},[t._v("预览")]):t._e(),t._v(" "),e("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(n){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1)],1),t._v(" "),t.formValidate.integral_status>0?e("div",{staticClass:"Box"},[t.modals?e("el-dialog",{staticClass:"addDia",attrs:{visible:t.modals,title:"",height:"30%","custom-class":"dialog-scustom"},on:{"update:visible":function(n){t.modals=n}}},[e("div",{staticClass:"agreement"},[e("h3",[t._v("积分说明")]),t._v(" "),e("div",{staticClass:"content"},[e("div",{domProps:{innerHTML:t._s(t.formValidate.rule)}})])])]):t._e()],1):t._e()],1)},o=[],a=(e("7f7f"),e("c80c")),i=(e("96cf"),e("3b8d")),u=e("ef0d"),c=e("6625"),s=e.n(c),l=(e("2f62"),e("b7be")),d=e("83d6"),f=e("bbcc"),g=e("5f87"),p={integral_status:1,integral_user_give:.1,integral_freeze:1,integral_clear_time:6,integral_order_rate:0,integral_money:0,rule:""},m={name:"ProductProductAdd",components:{ueditorFrom:u["a"],VueUeditorWrap:s.a},data:function(){var t=f["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(g["a"])();return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]},roterPre:d["roterPre"],fullscreenLoading:!1,formValidate:Object.assign({},p),loading:!1,modals:!1,ruleValidate:{integral_status:[{required:!0,message:"请选择是否开启积分功能",trigger:"blur"}],integral_money:[{required:!0,message:"请输入积分抵用金额",trigger:"blur"}],integral_order_rate:[{required:!0,message:"请输入下单赠送积分比例",trigger:"blur"}],integral_freeze:[{required:!0,message:"请输入下单赠送积分冻结期",trigger:"blur"}],integral_clear_time:[{required:!0,message:"请输入积分清除时间",trigger:"blur"}],integral_user_give:[{required:!0,message:"请输入邀请好友赠送积分数",trigger:"blur"}]}}},computed:{},watch:{},created:function(){},mounted:function(){this.getInfo()},methods:{getInfo:function(){var t=this;this.fullscreenLoading=!0,Object(l["fb"])().then(function(){var n=Object(i["a"])(Object(a["a"])().mark((function n(e){return Object(a["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.formValidate=e.data,t.fullscreenLoading=!1;case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}()).catch((function(n){t.fullscreenLoading=!1,t.$message.error(n.message)}))},preview:function(){this.modals=!0},handleSubmit:function(t){var n=this;this.$refs[t].validate((function(t){t&&(n.fullscreenLoading=!0,n.loading=!0,Object(l["rc"])(n.formValidate).then(function(){var t=Object(i["a"])(Object(a["a"])().mark((function t(e){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.fullscreenLoading=!1,n.$message.success(e.message),n.loading=!1;case 3:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}()).catch((function(t){n.fullscreenLoading=!1,n.loading=!1,n.$message.error(t.message)})))}))},validate:function(t,n,e){!1===n&&this.$message.warning(e)},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,n){var e=new window.UE.ui.Dialog({iframeUrl:d["roterPre"]+"/admin/widget/image?field=dialog",editor:t,name:n,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=e;var r=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){e.render(),e.open()}});return r}),37),window.UE.registerUI("video-dialog",(function(t,n){var e=new window.UE.ui.Dialog({iframeUrl:d["roterPre"]+"/admin/widget/video?fodder=video",editor:t,name:n,title:"上传视频",cssRules:"width:600px;height:420px;padding:10px 20px 20px;"});this.dialog=e;var r=new window.UE.ui.Button({name:"video-button",title:"上传视频",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -320px -20px;",onclick:function(){e.render(),e.open()}});return r}),38)}}},b=m,_=(e("e139"),e("2877")),v=Object(_["a"])(b,r,o,!1,null,"4e3abcf0",null);n["default"]=v.exports},b7be:function(t,n,e){"use strict";e.d(n,"Qb",(function(){return o})),e.d(n,"Pb",(function(){return a})),e.d(n,"Lb",(function(){return i})),e.d(n,"Kb",(function(){return u})),e.d(n,"Jb",(function(){return c})),e.d(n,"Mb",(function(){return s})),e.d(n,"Nb",(function(){return l})),e.d(n,"Ob",(function(){return d})),e.d(n,"W",(function(){return f})),e.d(n,"R",(function(){return g})),e.d(n,"S",(function(){return p})),e.d(n,"U",(function(){return m})),e.d(n,"T",(function(){return b})),e.d(n,"Db",(function(){return _})),e.d(n,"Q",(function(){return v})),e.d(n,"x",(function(){return h})),e.d(n,"D",(function(){return w})),e.d(n,"v",(function(){return y})),e.d(n,"u",(function(){return k})),e.d(n,"w",(function(){return V})),e.d(n,"Eb",(function(){return x})),e.d(n,"Fb",(function(){return C})),e.d(n,"nc",(function(){return U})),e.d(n,"A",(function(){return j})),e.d(n,"z",(function(){return z})),e.d(n,"E",(function(){return O})),e.d(n,"i",(function(){return L})),e.d(n,"mc",(function(){return E})),e.d(n,"jc",(function(){return $})),e.d(n,"lc",(function(){return P})),e.d(n,"ic",(function(){return D})),e.d(n,"kc",(function(){return q})),e.d(n,"Zb",(function(){return F})),e.d(n,"oc",(function(){return I})),e.d(n,"y",(function(){return R})),e.d(n,"C",(function(){return S})),e.d(n,"B",(function(){return B})),e.d(n,"O",(function(){return A})),e.d(n,"G",(function(){return H})),e.d(n,"J",(function(){return M})),e.d(n,"K",(function(){return N})),e.d(n,"I",(function(){return J})),e.d(n,"L",(function(){return T})),e.d(n,"P",(function(){return W})),e.d(n,"N",(function(){return K})),e.d(n,"M",(function(){return Q})),e.d(n,"F",(function(){return X})),e.d(n,"H",(function(){return Y})),e.d(n,"V",(function(){return Z})),e.d(n,"pb",(function(){return G})),e.d(n,"ob",(function(){return tt})),e.d(n,"hc",(function(){return nt})),e.d(n,"fb",(function(){return et})),e.d(n,"rc",(function(){return rt})),e.d(n,"cb",(function(){return ot})),e.d(n,"ab",(function(){return at})),e.d(n,"bb",(function(){return it})),e.d(n,"gc",(function(){return ut})),e.d(n,"X",(function(){return ct})),e.d(n,"o",(function(){return st})),e.d(n,"n",(function(){return lt})),e.d(n,"m",(function(){return dt})),e.d(n,"l",(function(){return ft})),e.d(n,"k",(function(){return gt})),e.d(n,"Y",(function(){return pt})),e.d(n,"t",(function(){return mt})),e.d(n,"r",(function(){return bt})),e.d(n,"q",(function(){return _t})),e.d(n,"s",(function(){return vt})),e.d(n,"p",(function(){return ht})),e.d(n,"kb",(function(){return wt})),e.d(n,"ib",(function(){return yt})),e.d(n,"mb",(function(){return kt})),e.d(n,"jb",(function(){return Vt})),e.d(n,"lb",(function(){return xt})),e.d(n,"Z",(function(){return Ct})),e.d(n,"Bb",(function(){return Ut})),e.d(n,"Ab",(function(){return jt})),e.d(n,"yb",(function(){return zt})),e.d(n,"Cb",(function(){return Ot})),e.d(n,"eb",(function(){return Lt})),e.d(n,"xb",(function(){return Et})),e.d(n,"zb",(function(){return $t})),e.d(n,"wb",(function(){return Pt})),e.d(n,"sb",(function(){return Dt})),e.d(n,"ub",(function(){return qt})),e.d(n,"tb",(function(){return Ft})),e.d(n,"nb",(function(){return It})),e.d(n,"db",(function(){return Rt})),e.d(n,"qb",(function(){return St})),e.d(n,"vb",(function(){return Bt})),e.d(n,"rb",(function(){return At})),e.d(n,"a",(function(){return Ht})),e.d(n,"pc",(function(){return Mt})),e.d(n,"d",(function(){return Nt})),e.d(n,"f",(function(){return Jt})),e.d(n,"c",(function(){return Tt})),e.d(n,"j",(function(){return Wt})),e.d(n,"b",(function(){return Kt})),e.d(n,"h",(function(){return Qt})),e.d(n,"e",(function(){return Xt})),e.d(n,"g",(function(){return Yt})),e.d(n,"Sb",(function(){return Zt})),e.d(n,"ac",(function(){return Gt})),e.d(n,"Vb",(function(){return tn})),e.d(n,"Tb",(function(){return nn})),e.d(n,"Ub",(function(){return en})),e.d(n,"Wb",(function(){return rn})),e.d(n,"Yb",(function(){return on})),e.d(n,"gb",(function(){return an})),e.d(n,"hb",(function(){return un})),e.d(n,"dc",(function(){return cn})),e.d(n,"fc",(function(){return sn})),e.d(n,"Xb",(function(){return ln})),e.d(n,"cc",(function(){return dn})),e.d(n,"bc",(function(){return fn})),e.d(n,"ec",(function(){return gn}));var r=e("0c6d");function o(t){return r["a"].get("/store/coupon/platformLst",t)}function a(t){return r["a"].get("/store/coupon/update/".concat(t,"/form"))}function i(t){return r["a"].get("/store/coupon/show/".concat(t))}function u(t){return r["a"].delete("store/coupon/delete/".concat(t))}function c(t){return r["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function s(t){return r["a"].get("store/coupon/sys/issue",t)}function l(t,n){return r["a"].get("store/coupon/show_lst/".concat(t),n)}function d(t){return r["a"].get("/store/coupon/send/lst",t)}function f(t){return r["a"].post("store/coupon/send",t)}function g(t){return r["a"].get("store/coupon/detail/".concat(t))}function p(t){return r["a"].get("store/coupon/lst",t)}function m(t,n){return r["a"].post("store/coupon/status/".concat(t),{status:n})}function b(){return r["a"].get("store/coupon/create/form")}function _(t){return r["a"].get("store/coupon/issue",t)}function v(t){return r["a"].delete("store/coupon/delete/".concat(t))}function h(t){return r["a"].get("broadcast/room/lst",t)}function w(t,n){return r["a"].post("broadcast/room/status/".concat(t),n)}function y(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function k(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function V(t){return r["a"].get("broadcast/room/detail/".concat(t))}function x(t,n){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:n})}function C(t,n){return r["a"].post("broadcast/room/comment/".concat(t),{status:n})}function U(t,n){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:n})}function j(t){return r["a"].get("broadcast/goods/lst",t)}function z(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function O(t,n){return r["a"].post("broadcast/goods/status/".concat(t),n)}function L(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function E(){return r["a"].get("seckill/config/create/form")}function $(t){return r["a"].get("seckill/config/lst",t)}function P(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function D(t){return r["a"].delete("seckill/config/delete/".concat(t))}function q(t,n){return r["a"].post("seckill/config/status/".concat(t),{status:n})}function F(t,n){return r["a"].get("seckill/product/detail/".concat(t),n)}function I(t,n){return r["a"].get("broadcast/room/goods/".concat(t),n)}function R(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function S(t,n){return r["a"].post("broadcast/room/sort/".concat(t),n)}function B(t,n){return r["a"].post("broadcast/goods/sort/".concat(t),n)}function A(t){return r["a"].post("config/others/group_buying",t)}function H(){return r["a"].get("config/others/group_buying")}function M(t){return r["a"].get("store/product/group/lst",t)}function N(t){return r["a"].get("store/product/group/get/".concat(t))}function J(t){return r["a"].get("store/product/group/detail/".concat(t))}function T(t){return r["a"].post("store/product/group/status",t)}function W(t,n){return r["a"].post("store/product/group/is_show/".concat(t),{status:n})}function K(t){return r["a"].get("store/product/group/get/".concat(t))}function Q(t,n){return r["a"].post("store/product/group/update/".concat(t),n)}function X(t){return r["a"].get("store/product/group/buying/lst",t)}function Y(t,n){return r["a"].get("store/product/group/buying/detail/".concat(t),n)}function Z(t,n){return r["a"].get("store/coupon/product/".concat(t),n)}function G(){return r["a"].get("user/integral/title")}function tt(t){return r["a"].get("user/integral/lst",t)}function nt(t){return r["a"].get("user/integral/excel",t)}function et(){return r["a"].get("user/integral/config")}function rt(t){return r["a"].post("user/integral/config",t)}function ot(t){return r["a"].get("discounts/lst",t)}function at(t,n){return r["a"].post("discounts/status/".concat(t),{status:n})}function it(t){return r["a"].get("discounts/detail/".concat(t))}function ut(t){return r["a"].get("marketing/spu/lst",t)}function ct(t){return r["a"].post("activity/atmosphere/create",t)}function st(t,n){return r["a"].post("activity/atmosphere/update/".concat(t),n)}function lt(t){return r["a"].get("activity/atmosphere/lst",t)}function dt(t){return r["a"].get("activity/atmosphere/detail/".concat(t))}function ft(t,n){return r["a"].post("activity/atmosphere/status/".concat(t),{status:n})}function gt(t){return r["a"].delete("activity/atmosphere/delete/".concat(t))}function pt(t){return r["a"].post("activity/border/create",t)}function mt(t,n){return r["a"].post("activity/border/update/".concat(t),n)}function bt(t){return r["a"].get("activity/border/lst",t)}function _t(t){return r["a"].get("activity/border/detail/".concat(t))}function vt(t,n){return r["a"].post("activity/border/status/".concat(t),{status:n})}function ht(t){return r["a"].delete("activity/border/delete/".concat(t))}function wt(){return r["a"].get("points/cate/lst")}function yt(){return r["a"].get("points/cate/create/form")}function kt(t){return r["a"].get("points/cate/update/form/".concat(t))}function Vt(t){return r["a"].delete("points/cate/delete/".concat(t))}function xt(t,n){return r["a"].post("points/cate/status/".concat(t),{status:n})}function Ct(t){return r["a"].post("points/product/create",t)}function Ut(t,n){return r["a"].post("points/product/update/".concat(t),n)}function jt(t){return r["a"].get("points/product/lst",t)}function zt(t){return r["a"].delete("points/product/delete/".concat(t))}function Ot(t,n){return r["a"].post("points/product/status/".concat(t),{status:n})}function Lt(t,n){return r["a"].post("points/product/get_attr_value/".concat(t),n)}function Et(){return r["a"].get("points/cate/select")}function $t(t){return r["a"].get("points/product/detail/".concat(t))}function Pt(t){return r["a"].get("points/order/lst",t)}function Dt(t){return r["a"].get("points/order/detail/".concat(t))}function qt(t){return r["a"].get("points/order/express/".concat(t))}function Ft(t){return r["a"].get("points/order/excel",t)}function It(t,n){return r["a"].post("points/order/delivery/".concat(t),n)}function Rt(t){return r["a"].get("store/express/options",t)}function St(t){return r["a"].get("points/order/mark/".concat(t,"/form"))}function Bt(t,n){return r["a"].get("points/order/status/".concat(t),n)}function At(t){return r["a"].delete("points/order/delete/".concat(t))}function Ht(t){return r["a"].post("activity/form/create",t)}function Mt(){return r["a"].get("system/form/select")}function Nt(t){return r["a"].get("activity/form/lst",t)}function Jt(t,n){return r["a"].post("activity/form/status/".concat(t),{status:n})}function Tt(t){return r["a"].get("activity/form/detail/".concat(t))}function Wt(t,n){return r["a"].get("system/form/info/".concat(t),n)}function Kt(t){return r["a"].delete("activity/form/delete/".concat(t))}function Qt(t,n){return r["a"].get("activity/form/user/lst/".concat(t),n)}function Xt(t,n){return r["a"].get("activity/form/excel/".concat(t),n)}function Yt(t,n){return r["a"].post("activity/form/update/".concat(t),n)}function Zt(t){return r["a"].post("seckill/active/create",t)}function Gt(t){return r["a"].get("seckill/config/select",t)}function tn(t){return r["a"].get("seckill/active/lst",t)}function nn(t){return r["a"].delete("seckill/active/delete/".concat(t))}function en(t){return r["a"].get("seckill/active/detail/".concat(t))}function rn(t,n){return r["a"].post("seckill/active/update/".concat(t),n)}function on(t,n){return r["a"].post("seckill/active/update_status/".concat(t),{status:n})}function an(t){return r["a"].get("store/product/self_lst",t)}function un(t){return r["a"].get("seckill/product/list",t)}function cn(t){return r["a"].get("seckill/product/switchStatus/".concat(t,"/form"))}function sn(t,n){return r["a"].post("seckill/product/update/".concat(t),n)}function ln(t){return r["a"].get("seckill/active/chart_panel/".concat(t))}function dn(t,n){return r["a"].get("seckill/active/chart_people/".concat(t),n)}function fn(t,n){return r["a"].get("seckill/active/chart_order/".concat(t),n)}function gn(t,n){return r["a"].get("seckill/active/chart_product/".concat(t),n)}},e139:function(t,n,e){"use strict";e("0386")}}]); |