You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
crmeb_php/public/system/js/chunk-eae5da00.52de6ac0.js

1 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eae5da00"],{6935:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"160px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-row",{attrs:{gutter:24}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"积分:",prop:"integral_status"}},[n("el-radio-group",{model:{value:t.formValidate.integral_status,callback:function(e){t.$set(t.formValidate,"integral_status",e)},expression:"formValidate.integral_status"}},[n("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("关闭")]),t._v(" "),n("el-radio",{attrs:{label:1}},[t._v("开启")])],1),t._v(" "),n("span",{staticClass:"label_tip"},[t._v("(指平台积分功能的开启或关闭。开启:积分功能正常启用;关闭:积分功能不可使用,且前端不展示)")])],1)],1),t._v(" "),t.formValidate.integral_status>0?n("el-col",[n("el-form-item",{attrs:{label:"积分抵用金额:",prop:"integral_money"}},[n("el-input-number",{attrs:{min:0,placeholder:"积分抵用金额"},model:{value:t.formValidate.integral_money,callback:function(e){t.$set(t.formValidate,"integral_money",e)},expression:"formValidate.integral_money"}}),t._v(" "),n("span",{staticClass:"label_tip"},[t._v("(指1积分抵用多少金额,单位: 元)")])],1)],1):t._e(),t._v(" "),t.formValidate.integral_status>0?n("el-col",[n("el-form-item",{attrs:{label:"下单赠送积分比例:",prop:"integral_order_rate"}},[n("el-input-number",{attrs:{min:0,placeholder:"请输入赠送比例"},model:{value:t.formValidate.integral_order_rate,callback:function(e){t.$set(t.formValidate,"integral_order_rate",e)},expression:"formValidate.integral_order_rate"}}),t._v(" "),n("span",{staticClass:"label_tip"},[t._v("(指实际支付1 元赠送多少积分,单位: 分)")])],1)],1):t._e(),t._v(" "),t.formValidate.integral_status>0?n("el-col",[n("el-form-item",{attrs:{label:"下单赠送积分冻结期:",prop:"integral_freeze"}},[n("el-input-number",{attrs:{min:0,precision:0,step:1,placeholder:"请输入冻结期限"},model:{value:t.formValidate.integral_freeze,callback:function(e){t.$set(t.formValidate,"integral_freeze",e)},expression:"formValidate.integral_freeze"}}),t._v(" "),n("span",{staticClass:"label_tip"},[t._v("(指下单所获赠送积分需冻结多少天后才可使用,单位:天;设置为0,即没有冻结期,积分冻结时间每20分钟更新一次)")])],1)],1):t._e(),t._v(" "),t.formValidate.integral_status>0?n("el-col",[n("el-form-item",{attrs:{label:"积分清除时间设置:",prop:"integral_clear_time"}},[n("el-input-number",{attrs:{min:0,precision:0,step:1,placeholder:"请输入冻结期限"},model:{value:t.formValidate.integral_clear_time,callback:function(e){t.$set(t.formValidate,"integral_clear_time",e)},expression:"formValidate.integral_clear_time"}}),t._v(" "),n("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?n("el-col",[n("el-form-item",{attrs:{label:"邀请好友赠送积分:",prop:"integral_user_give"}},[n("el-input-number",{attrs:{min:0,precision:0,step:1,placeholder:"请输入赠送积分数"},model:{value:t.formValidate.integral_user_give,callback:function(e){t.$set(t.formValidate,"integral_user_give",e)},expression:"formValidate.integral_user_give"}}),t._v(" "),n("span",{staticClass:"label_tip"},[t._v("(指邀请新人好友成功登录商城后,赠送给邀请人的积分数;单位:分)")])],1)],1):t._e()],1),t._v(" "),t.formValidate.integral_status>0?n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"积分说明:"}},[n("vue-ueditor-wrap",{attrs:{config:t.myConfig},on:{beforeInit:t.addCustomDialog},model:{value:t.formValidate.rule,callback:function(e){t.$set(t.formValidate,"rule",e)},expression:"formValidate.rule"}})],1)],1)],1):t._e(),t._v(" "),n("el-form-item",{staticStyle:{"margin-top":"30px"}},[t.formValidate.integral_status>0?n("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:t.preview}},[t._v("预览")]):t._e(),t._v(" "),n("el-button",{staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1)],1),t._v(" "),t.formValidate.integral_status>0?n("div",{staticClass:"Box"},[t.modals?n("el-dialog",{staticClass:"addDia",attrs:{visible:t.modals,title:"",height:"30%","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[n("div",{staticClass:"agreement"},[n("h3",[t._v("积分说明")]),t._v(" "),n("div",{staticClass:"content"},[n("div",{domProps:{innerHTML:t._s(t.formValidate.rule)}})])])]):t._e()],1):t._e()],1)},o=[],a=(n("7f7f"),n("c80c")),i=(n("96cf"),n("3b8d")),u=n("ef0d"),c=n("6625"),s=n.n(c),l=(n("2f62"),n("b7be")),d=n("83d6"),f=n("bbcc"),g=n("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["T"])().then(function(){var e=Object(i["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.formValidate=n.data,t.fullscreenLoading=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},preview:function(){this.modals=!0},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t&&(e.fullscreenLoading=!0,e.loading=!0,Object(l["rb"])(e.formValidate).then(function(){var t=Object(i["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(n.message),e.loading=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.loading=!1,e.$message.error(t.message)})))}))},validate:function(t,e,n){!1===e&&this.$message.warning(n)},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var n=new window.UE.ui.Dialog({iframeUrl:d["roterPre"]+"/admin/widget/image?field=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=n;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(){n.render(),n.open()}});return r}),37),window.UE.registerUI("video-dialog",(function(t,e){var n=new window.UE.ui.Dialog({iframeUrl:d["roterPre"]+"/admin/widget/video?fodder=video",editor:t,name:e,title:"上传视频",cssRules:"width:600px;height:420px;padding:10px 20px 20px;"});this.dialog=n;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(){n.render(),n.open()}});return r}),38)}}},b=m,_=(n("f7b0"),n("2877")),v=Object(_["a"])(b,r,o,!1,null,"4782d0ce",null);e["default"]=v.exports},b7be:function(t,e,n){"use strict";n.d(e,"gb",(function(){return o})),n.d(e,"fb",(function(){return a})),n.d(e,"bb",(function(){return i})),n.d(e,"ab",(function(){return u})),n.d(e,"Z",(function(){return c})),n.d(e,"cb",(function(){return s})),n.d(e,"db",(function(){return l})),n.d(e,"eb",(function(){return d})),n.d(e,"N",(function(){return f})),n.d(e,"I",(function(){return g})),n.d(e,"J",(function(){return p})),n.d(e,"L",(function(){return m})),n.d(e,"K",(function(){return b})),n.d(e,"W",(function(){return _})),n.d(e,"H",(function(){return v})),n.d(e,"o",(function(){return h})),n.d(e,"u",(function(){return w})),n.d(e,"m",(function(){return V})),n.d(e,"l",(function(){return y})),n.d(e,"n",(function(){return x})),n.d(e,"X",(function(){return k})),n.d(e,"Y",(function(){return C})),n.d(e,"pb",(function(){return U})),n.d(e,"r",(function(){return j})),n.d(e,"q",(function(){return O})),n.d(e,"v",(function(){return L})),n.d(e,"a",(function(){return $})),n.d(e,"ob",(function(){return E})),n.d(e,"lb",(function(){return z})),n.d(e,"nb",(function(){return P})),n.d(e,"kb",(function(){return q})),n.d(e,"mb",(function(){return D})),n.d(e,"hb",(function(){return I})),n.d(e,"qb",(function(){return R})),n.d(e,"p",(function(){return F})),n.d(e,"t",(function(){return B})),n.d(e,"s",(function(){return H})),n.d(e,"F",(function(){return S})),n.d(e,"x",(function(){return A})),n.d(e,"A",(function(){return M})),n.d(e,"B",(function(){return N})),n.d(e,"z",(function(){return T})),n.d(e,"C",(function(){return J})),n.d(e,"G",(function(){return W})),n.d(e,"E",(function(){return K})),n.d(e,"D",(function(){return G})),n.d(e,"w",(function(){return Q})),n.d(e,"y",(function(){return X})),n.d(e,"M",(function(){return Y})),n.d(e,"V",(function(){return Z})),n.d(e,"U",(function(){return tt})),n.d(e,"jb",(function(){return et})),n.d(e,"T",(function(){return nt})),n.d(e,"rb",(function(){return rt})),n.d(e,"S",(function(){return ot})),n.d(e,"Q",(function(){return at})),n.d(e,"R",(function(){return it})),n.d(e,"ib",(function(){return ut})),n.d(e,"O",(function(){return ct})),n.d(e,"f",(function(){return st})),n.d(e,"e",(function(){return lt})),n.d(e,"d",(function(){return dt})),n.d(e,"c",(function(){return ft})),n.d(e,"b",(function(){return gt})),n.d(e,"P",(function(){return pt})),n.d(e,"k",(function(){return mt})),n.d(e,"i",(function(){return bt})),n.d(e,"h",(function(){return _t})),n.d(e,"j",(function(){return vt})),n.d(e,"g",(function(){return ht}));var r=n("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,e){return r["a"].get("store/coupon/show_lst/".concat(t),e)}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,e){return r["a"].post("store/coupon/status/".concat(t),{status:e})}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,e){return r["a"].post("broadcast/room/status/".concat(t),e)}function V(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function y(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function x(t){return r["a"].get("broadcast/room/detail/".concat(t))}function k(t,e){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function C(t,e){return r["a"].post("broadcast/room/comment/".concat(t),{status:e})}function U(t,e){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function j(t){return r["a"].get("broadcast/goods/lst",t)}function O(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function L(t,e){return r["a"].post("broadcast/goods/status/".concat(t),e)}function $(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function E(){return r["a"].get("seckill/config/create/form")}function z(t){return r["a"].get("seckill/config/lst",t)}function P(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function q(t){return r["a"].delete("seckill/config/delete/".concat(t))}function D(t,e){return r["a"].post("seckill/config/status/".concat(t),{status:e})}function I(t,e){return r["a"].get("seckill/product/detail/".concat(t),e)}function R(t,e){return r["a"].get("broadcast/room/goods/".concat(t),e)}function F(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function B(t,e){return r["a"].post("broadcast/room/sort/".concat(t),e)}function H(t,e){return r["a"].post("broadcast/goods/sort/".concat(t),e)}function S(t){return r["a"].post("config/others/group_buying",t)}function A(){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 T(t){return r["a"].get("store/product/group/detail/".concat(t))}function J(t){return r["a"].post("store/product/group/status",t)}function W(t,e){return r["a"].post("store/product/group/is_show/".concat(t),{status:e})}function K(t){return r["a"].get("store/product/group/get/".concat(t))}function G(t,e){return r["a"].post("store/product/group/update/".concat(t),e)}function Q(t){return r["a"].get("store/product/group/buying/lst",t)}function X(t,e){return r["a"].get("store/product/group/buying/detail/".concat(t),e)}function Y(t,e){return r["a"].get("store/coupon/product/".concat(t),e)}function Z(){return r["a"].get("user/integral/title")}function tt(t){return r["a"].get("user/integral/lst",t)}function et(t){return r["a"].get("user/integral/excel",t)}function nt(){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,e){return r["a"].post("discounts/status/".concat(t),{status:e})}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,e){return r["a"].post("activity/atmosphere/update/".concat(t),e)}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,e){return r["a"].post("activity/atmosphere/status/".concat(t),{status:e})}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,e){return r["a"].post("activity/border/update/".concat(t),e)}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,e){return r["a"].post("activity/border/status/".concat(t),{status:e})}function ht(t){return r["a"].delete("activity/border/delete/".concat(t))}},f7b0:function(t,e,n){"use strict";n("fa45")},fa45:function(t,e,n){}}]);