0&&void 0!==arguments[0]?arguments[0]:void 0;return At=At||kt.newInstance({closable:!0,maskClosable:!0,footerHide:!0,render:t}),At}function _t(t){var e="render"in t?t.render:void 0,n=xt(e);t.onRemove=function(){At=null},n.show(t)}var wt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{width:"700"},n=e.width,a=void 0===n?"700":n;return new Promise((function(e){var n=yt["Message"].loading({content:"Loading...",duration:0});t.then((function(t){var o,c=t.data;if(!1===c.status)return n(),yt["Notice"].warning({title:c.title,duration:3,desc:c.info,render:function(t){return t("div",[t("a",{attrs:{href:"http://www.crmeb.com"}},c.info)])}});c.config={},c.config.global={upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:yt["Message"].error(t.msg)}}},frame:{props:{closeBtn:!1,okBtn:!1}}},c.config.onSubmit=function(t,n){n.btn.loading(!0),n.btn.disabled(!0),ht["a"][c.method.toLowerCase()](c.action,t).then((function(t){At.remove(),yt["Message"].success(t.msg||"提交成功"),e(t)})).catch((function(t){yt["Message"].error(t.msg||"提交失败")})).finally((function(){n.btn.loading(!1),n.btn.disabled(!1)}))},c.config.submitBtn=!1,c.config.resetBtn=!1,c.config.form||(c.config.form={}),c=i["default"].observable(c),_t({title:c.title,width:a,loading:!1,render:function(t){return t("div",{class:"common-form-create"},[t("formCreate",{props:{rule:c.rules,option:c.config},on:{mounted:function(t){o=t,n()}}}),t("Button",{class:"common-form-button",props:{type:"primary",long:!0},on:{click:function(){o.submit()}}},["提交"])])}})})).catch((function(t){yt["Spin"].hide(),n(),yt["Message"].error(t.msg||"表单加载失败")}))}))},jt=(n("a481"),n("7f7f"),n("cea2")),Ot=n("3438"),Ct=n.n(Ot),Nt=n("bc3a"),Lt=n.n(Nt),St={videoUpload:function(t){return"COS"===t.type?this.cosUpload(t.evfile,t.res.data,t.uploading):"OSS"===t.type?this.ossHttp(t.evfile,t.res,t.uploading):this.qiniuHttp(t.evfile,t.res,t.uploading)},cosUpload:function(t,e,n){var a=new Ct.a({getAuthorization:function(t,n){n({TmpSecretId:e.credentials.tmpSecretId,TmpSecretKey:e.credentials.tmpSecretKey,XCosSecurityToken:e.credentials.sessionToken,ExpiredTime:e.expiredTime})}}),i=t.target.files[0],o=i.name,c=o.lastIndexOf("."),r="";-1!==c&&(r=o.substring(c));var s=(new Date).getTime()+r;return new Promise((function(t,o){a.sliceUploadFile({Bucket:e.bucket,Region:e.region,Key:s,Body:i,onProgress:function(t){n(t)}},(function(e,n){e?o({msg:e}):t({url:"http://"+n.Location,ETag:n.ETag})}))}))},cosHttp:function(t,e,n){var a=function(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},i=t.target.files[0],o=i.name,c=o.lastIndexOf("."),r="";-1!==c&&(r=o.substring(c));var s=(new Date).getTime()+r,u=e.data,l=u.credentials.sessionToken,d=u.url+a(s).replace(/%2F/g,"/"),m=new XMLHttpRequest;return m.open("PUT",d,!0),l&&m.setRequestHeader("x-cos-security-token",l),m.upload.onprogress=function(t){var e=Math.round(t.loaded/t.total*1e4)/100;n(!0,e)},new Promise((function(t,e){m.onload=function(){if(/^2\d\d$/.test(""+m.status)){var a=m.getResponseHeader("etag");n(!1,0),t({url:d,ETag:a})}else e({msg:"文件 "+s+" 上传失败,状态码:"+m.statu})},m.onerror=function(){e({msg:"文件 "+s+"上传失败,请检查是否没配置 CORS 跨域规"})},m.send(i),m.onreadystatechange=function(){}}))},ossHttp:function(t,e,n){var a=t.target.files[0],i=a.name,o=i.lastIndexOf("."),c="";-1!==o&&(c=i.substring(o));var r=(new Date).getTime()+c,s=new FormData,u=e.data;s.append("key",r),s.append("OSSAccessKeyId",u.accessid),s.append("policy",u.policy),s.append("Signature",u.signature),s.append("file",a),s.append("success_action_status",200);var l=u.host,d=l+"/"+r;return n(!0,100),new Promise((function(t,e){Lt.a.defaults.withCredentials=!1,Lt.a.post(l,s).then((function(){n(!1,0),t({url:d})})).catch((function(t){e({msg:t})}))}))},qiniuHttp:function(t,e,n){var a=e.data.token,i=t.target.files[0],o=i.name,c=o.lastIndexOf("."),r="";-1!==c&&(r=o.substring(c));var s=(new Date).getTime()+r,u=e.data.domain+"/"+s,l={useCdnDomain:!0},d={fname:"",params:{},mimeType:null},m=jt["upload"](i,s,a,d,l);return new Promise((function(t,e){m.subscribe({next:function(t){var e=Math.round(t.total.loaded/t.total.size);n(!0,e)},error:function(t){e({msg:t})},complete:function(e){n(!1,0),t({url:u})}})}))}},Dt=(n("96cf"),n("3b8d")),It=n("2934");function Tt(t){var e=this;return new Promise((function(n,a){var i="";i=void 0!==t.info?"".concat(t.title,"
").concat(t.info,"
"):"确定要".concat(t.title,"吗?
").concat(t.title,"后将无法恢复,请谨慎操作!
"),e.$Modal.confirm({title:t.title,content:i,loading:!0,onOk:function(){setTimeout((function(){e.$Modal.remove(),t.success?t.success.then(function(){var t=Object(Dt["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n(e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){a(t)})):Object(It["c"])(t).then(function(){var t=Object(Dt["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n(e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){a(t)}))}),300)},onCancel:function(){e.$Message.info("取消成功")}})}))}function Et(t){var e=this;return new Promise((function(n,a){e.$Notice.warning({title:t.title,duration:3,desc:t.info,render:function(e){return e("div",[e("a",{attrs:{href:"http://www.crmeb.com"}},t.info)])}})}))}var Bt=n("a74e"),Pt={install:function(){var t=Object(Dt["a"])(regeneratorRuntime.mark((function t(e,n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.directive("auth",{inserted:function(t,e,n){var a=e.value,i=A["a"].state.userInfo.access;if(a&&a instanceof Array&&a.length&&i&&i.length){var o=Object(Bt["a"])(a,i);o||t.parentNode&&t.parentNode.removeChild(t)}}});case 1:case"end":return t.stop()}}),t)})));function e(e,n){return t.apply(this,arguments)}return e}()},Mt=n("8f94"),Rt=n.n(Mt),Vt=n("2a95"),Ut=n("69ae"),zt={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]},Ft=[],Qt=function(t,e){Ft.push({dom:t,fn:e}),e._index=Ft.length-1};Qt.remove=function(t){t._index&&Ft.splice(t._index,1)};var Gt={addHandler:function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},listenTouchDirection:function(){this.addHandler(window,"scroll",(function(){var t=window.innerHeight,e=window.scrollY;Ft.filter((function(t){return t.dom.scrollHeight&&t.dom.scrollHeight>0})).forEach((function(n){var a=n.dom.scrollHeight,i=Math.ceil(e/(a-t)*100);i>85&&n.fn()}))}))}};Gt.listenTouchDirection();var qt=Qt,Wt=n("c1df"),Zt=n.n(Wt);function Jt(t){var e={101:"直播中",102:"未开始",103:"已结束",104:"已结束",105:"直播中",106:"直播中",107:"已结束"};return e[t]}function Yt(t){var e={0:"未审核 ",1:"审核中",2:"审核通过",3:"审核失败"};return e[t]}function Ht(t){var e=new Date(t),n=e.getFullYear()+"-",a=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",i=e.getDate()<10?"0"+e.getDate():e.getDate(),o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",c=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",r=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return n+a+i+" "+o+c+r}function Xt(t){var e={0:"手机直播",1:"推流"};return e[t]}function Kt(t){return t?"✔":"✖"}function $t(t){var e={0:"竖屏",1:"横屏"};return e[t]}function te(t){var e="-";return t?(e=t,e):e}function ee(t){var e={routine:"小程序","wechat ":"微信",h5:"H5"};return e[t]}function ne(t){var e={0:"PC端",1:"公众号",2:"小程序",3:"H5"};return e[t]}var ae=n("77a0"),ie=n.n(ae);i["default"].prototype.bus=new i["default"],i["default"].prototype.$moment=Zt.a,Zt.a.locale("zh-cn");var oe=x["a"].prototype.push;x["a"].prototype.push=function(t){return oe.call(this,t).catch((function(t){return t}))},window.Promise=Promise,i["default"].prototype.$modalForm=wt,i["default"].prototype.$modalSure=Tt,i["default"].prototype.$videoCloud=St,i["default"].prototype.$authLapse=Et,i["default"].prototype.$wechat=O,i["default"].prototype.$dialog=Ut["a"],i["default"].prototype.$timeOptions=zt,i["default"].prototype.$scroll=qt,i["default"].prototype.$validator=function(t){return new Vt["a"](t)},i["default"].prototype.$tools=F,i["default"].use(y.a,{i18n:function(t,e){return U.t(t,e)}}),i["default"].use(Pt),i["default"].use(ft.a),i["default"].use(Rt.a),i["default"].use(dt.a),i["default"].use(tt.a),i["default"].use(nt.a),i["default"].use(it.a),i["default"].use(rt.a),i["default"].use(ot["a"],{preLoad:1.3,error:n("4fb4"),loading:n("7153"),attempt:1,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"]}),i["default"].use(ut.a,{defaultOptions:{zIndex:9999}}),Object(K["default"])(i["default"]),i["default"].config.productionTip=!1,i["default"].prototype.$config=z["a"],H(i["default"]),i["default"].directive("clickOutside",X["a"]),i["default"].use(ie.a),Object.keys(a).forEach((function(t){i["default"].filter(t,a[t])}));var ce=ce||[];(function(){var t=document.createElement("script");t.src="https://cdn.oss.9gt.net/js/es.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)})(),v["a"].beforeEach((function(t,e,n){ce&&t.path&&ce.push(["_trackPageview","/#"+t.fullPath]),n()}));var re=document.createElement("script");re.src="".concat(location.origin,"/api/get_script"),document.head.appendChild(re),new i["default"]({el:"#app",router:v["a"],i18n:U,store:A["a"],render:function(t){return t(b)},watch:{$route:function(t,e){t.meta.kefu?document.getElementsByTagName("body")[0].className="kf_mobile":document.getElementsByTagName("body")[0].className=""}}})},5723:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return s}));var a=n("6b6c");function i(t){return Object(a["a"])({url:"/login",method:"post",data:t})}function o(){return Object(a["a"])({url:"/setting/admin/logout",method:"get"})}function c(){return Object(a["a"])({url:"/login/info",method:"get"})}function r(){return Object(a["a"])({url:"/menus",method:"get"})}function s(){return Object(a["a"])({url:"/menusList",method:"get"})}},"584f":function(t,e,n){t.exports=n.p+"img/sheet_messenger_64_indexed_128.68a885d7.png"},5950:function(t,e,n){},"5aa1":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.configData[this.configNum]?n("div",{staticClass:"c_row-item"},[n("Col",{staticClass:"c_label",attrs:{span:"8"}},[t._v(t._s(t.configData[this.configNum][t.name].title))]),n("Col",{staticClass:"color-box",attrs:{span:"14"}},t._l(t.configData[this.configNum][t.name].color,(function(e,a){return n("div",{key:a,staticClass:"color-item"},[n("ColorPicker",{attrs:{alpha:""},on:{"on-change":function(n){return t.changeColor(n,e)}},model:{value:e.item,callback:function(n){t.$set(e,"item",n)},expression:"color.item"}}),n("span",{on:{click:function(n){return t.resetBgA(e,t.index,a)}}},[t._v("重置")])],1)})),0)],1):t._e()])},i=[],o=(n("7f7f"),n("c5f6"),{name:"c_bg_color",props:{configData:{type:Object},name:{type:String},configNum:{type:Number|String,default:"default"}},data:function(){return{defaults:{},bgColor:{bgStar:"",bgEnd:""},oldColor:{bgStar:"",bgEnd:""},index:0}},created:function(){this.defaults=this.configData[this.configNum][this.configNum]},watch:{configData:{handler:function(t,e){this.defaults=t[this.configNum]},immediate:!0,deep:!0}},methods:{changeColor:function(t,e){t||(e.item="transparent")},resetBgA:function(t,e,n){t.item=this.configData[this.configNum][this.name].default[n].item}}}),c=o,r=(n("18df"),n("2877")),s=Object(r["a"])(c,a,i,!1,null,"fac3ddd2",null);e["default"]=s.exports},"5ada":function(t,e,n){"use strict";var a=n("6320"),i=n.n(a);i.a},"5c24":function(t,e,n){},"617e":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"line-box"},[n("div",{staticClass:"title"},[n("p",[t._v("搜索热词")]),n("span",[t._v(t._s(t.datas[t.name].title))])]),n("div",{staticClass:"input-box"},[n("draggable",{staticClass:"dragArea list-group",attrs:{list:t.datas[t.name].list,group:"peoples",handle:".icon"}},t._l(t.datas[t.name].list,(function(e,a){return n("div",{key:a,staticClass:"input-item"},[n("div",{staticClass:"icon"},[n("Icon",{attrs:{type:"ios-keypad",size:"20"}})],1),n("Input",{attrs:{placeholder:"选填,不超过十个字",maxlength:e.maxlength||10},model:{value:e.val,callback:function(n){t.$set(e,"val",n)},expression:"item.val"}}),n("div",{staticClass:"close",on:{click:function(e){return t.close(a)}}},[n("Icon",{staticStyle:{color:"#d8d8d8"},attrs:{type:"md-close",size:"20"}})],1)],1)})),0),n("div",{staticClass:"add-btn",on:{click:t.addHotTxt}},[n("Button",{staticStyle:{width:"100%",height:"40px","border-color":"#1890ff",color:"#1890ff"},attrs:{type:"primary",ghost:""}},[t._v("添加热词")])],1)],1)])},i=[],o=(n("7f7f"),n("c5f6"),n("310e")),c=n.n(o),r={name:"c_hot_word",props:{name:{type:String},configData:{type:null},configNum:{type:Number|String,default:"default"}},components:{draggable:c.a},data:function(){return{hotWordList:[],hotIndex:1,defaults:{},datas:this.configData[this.configNum]}},mounted:function(){},watch:{configData:{handler:function(t,e){this.datas=t[this.configNum]},deep:!0}},methods:{addHotTxt:function(){var t={val:""};console.log(this.datas[this.name].list),this.datas[this.name].list.length<20?this.datas[this.name].list.push(t):this.$Message.warning("最多添加20个热词")},close:function(t){this.datas[this.name].list.splice(t,1)}}},s=r,u=(n("d548"),n("2877")),l=Object(u["a"])(s,a,i,!1,null,"e5210180",null);e["default"]=l.exports},"61bb":function(t,e,n){},6320:function(t,e,n){},"679f":function(t,e,n){"use strict";var a=n("1481"),i=n.n(a);i.a},"69ae":function(t,e,n){"use strict";n.d(e,"b",(function(){return u}));n("8e6e");var a=n("bd86"),i=(n("ac6a"),n("456d"),n("c908"));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function c(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"message";return r[e](t.errors[0].message)}Object.keys(s).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(a){Object(i["Toast"])(c({mes:t||s[e],timeout:1e3,icon:e,callback:function(){a()}},n))}))},t}),r),r.message=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"操作失败",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n){Object(i["Toast"])(c({mes:t,timeout:1e3,callback:function(){n()}},e))}))},r.validateError=function(){u.apply(void 0,arguments)},e["a"]=r},"6aed":function(t,e,n){},"6b6c":function(t,e,n){"use strict";n("a481");var a=n("bc3a"),i=n.n(a),o=n("e069"),c=n("c276"),r=n("d708"),s=n("a18c"),u=i.a.create({baseURL:r["a"].apiBaseURL,timeout:1e4});i.a.defaults.withCredentials=!0,u.interceptors.request.use((function(t){if(t.kefu){var e=r["a"].apiBaseURL.replace(/adminapi/,"kefuapi");t.baseURL=e}else t.baseURL=r["a"].apiBaseURL;var n=Object(c["d"])("token"),a=Object(c["d"])("kefu_token");return(n||a)&&(t.headers["Authori-zation"]=t.kefu?"Bearer "+a:"Bearer "+n),t}),(function(t){return Promise.reject(t)})),u.interceptors.response.use((function(t){var e=t.data?t.data.status:0,n=e;switch(n){case 200:return t.data;case 400:case 400011:case 400012:return Promise.reject(t.data||{msg:"未知错误"});case 41e4:case 410001:case 410002:localStorage.clear(),Object(c["m"])("token"),Object(c["m"])("expires_time"),Object(c["m"])("uuid"),s["a"].replace({path:"/admin/login"});break;case 410003:Object(c["m"])("kefuInfo"),Object(c["m"])("kefu_token"),Object(c["m"])("kefu_expires_time"),Object(c["m"])("kefu_uuid"),s["a"].replace({path:"/kefu"});default:break}}),(function(t){return o["Message"].error(t.msg),Promise.reject(t)})),e["a"]=u},"6e6e":function(t,e){t.exports="data:image/png;base64,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"},"6feb":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.datas?n("div",{staticClass:"box"},[n("vue-ueditor-wrap",{staticStyle:{width:"100%",height:"60%"},attrs:{config:t.myConfig},on:{beforeInit:t.addCustomDialog},model:{value:t.datas.val,callback:function(e){t.$set(t.datas,"val",e)},expression:"datas.val"}})],1):t._e()},i=[],o=(n("7f7f"),n("c5f6"),n("6625")),c=n.n(o),r={name:"c_page_ueditor",props:{name:{type:String},configData:{type:null},configNum:{type:Number|String,default:"default"}},components:{VueUeditorWrap:c.a},data:function(){return{myConfig:{autoHeightEnabled:!1,initialFrameHeight:350,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/admin/UEditor/",serverUrl:""},datas:{}}},created:function(){this.datas=this.configData[this.configNum][this.name]},watch:{configData:{handler:function(t,e){this.datas=t[this.configNum][this.name]},immediate:!0,deep:!0}},methods:{addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var n=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:960px;height:550px;padding:20px;"});this.dialog=n;var a=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 a}),37),window.UE.registerUI("video-dialog",(function(t,e){var n=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.video/index.html?fodder=video",editor:t,name:e,title:"上传视频",cssRules:"width:1000px;height:500px;padding:20px;"});this.dialog=n;var a=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 a}),38)}}},s=r,u=n("2877"),l=Object(u["a"])(s,a,i,!1,null,"30f482ce",null);e["default"]=l.exports},7153:function(t,e){t.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMuaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0OCA3OS4xNjQwMzYsIDIwMTkvMDgvMTMtMDE6MDY6NTcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNENTU5QTc5RkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNENTU5QTdBRkRFMTExRTlBQTQ0OEFDOUYyQTQ3RkZFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0Q1NTlBNzdGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0Q1NTlBNzhGREUxMTFFOUFBNDQ4QUM5RjJBNDdGRkUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAABAQEBAQEBAQEBAQEBAQEB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"},7199:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.datas[t.name]?n("div",{staticClass:"numbox"},[n("div",{staticClass:"c_row-item"},[n("Col",{staticClass:"label",attrs:{span:"4"}},[t.datas[t.name].show?n("span",[t._v(t._s(t.datas[t.name].title))]):n("span",[t._v("数量")])]),n("Col",{staticClass:"slider-box",attrs:{span:"19"}},[n("Input",{staticStyle:{"text-align":"right",width:"350px"},attrs:{type:"number",placeholder:"请输入数量"},on:{"on-blur":function(e){return t.numberVal(t.datas[t.name].val)},"on-change":function(e){return t.maxNum(t.datas[t.name].val)}},model:{value:t.datas[t.name].val,callback:function(e){t.$set(t.datas[t.name],"val",e)},expression:"datas[name].val"}})],1)],1)]):t._e()},i=[],o=(n("7f7f"),n("c5f6"),{name:"c_input_number",props:{name:{type:String},configData:{type:null},configNum:{type:Number|String,default:"default"}},data:function(){return{defaults:{},sliderWidth:0,datas:this.configData[this.configNum]}},mounted:function(){},watch:{configData:{handler:function(t,e){this.datas=t[this.configNum]},immediate:!0,deep:!0}},methods:{numberVal:function(t){var e=/^\+?[1-9][0-9]*$/;e.test(t)||(this.datas[this.name].val=3)},maxNum:function(t){t>=50&&(this.datas[this.name].val=50)}}}),c=o,r=(n("5239"),n("2877")),s=Object(r["a"])(c,a,i,!1,null,"60133abe",null);e["default"]=s.exports},7272:function(t,e,n){t.exports=n.p+"img/foo1-01.003b4be4.png"},"73cb":function(t,e,n){},7715:function(t,e,n){},"7a3c":function(t,e,n){},"7af3":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Modal",{attrs:{scrollable:"",closable:"",title:"选择链接","mask-closable":!1,width:"860"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[n("div",{staticClass:"table_box"},[n("div",{staticClass:"left_box"},[n("Tree",{attrs:{data:t.categoryData},on:{"on-select-change":t.handleCheckChange}})],1),"link"==t.currenType?n("div",{staticClass:"right_box"},[t.basicsList.length?n("div",[n("div",{staticClass:"cont"},[t._v("基础链接")]),n("div",{staticClass:"Box"},t._l(t.basicsList,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e(),t.userList.length?n("div",[n("div",{staticClass:"cont"},[t._v("个人中心")]),n("div",{staticClass:"Box"},t._l(t.userList,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e(),t.distributionList.length?n("div",[n("div",{staticClass:"cont"},[t._v("分销")]),n("div",{staticClass:"Box"},t._l(t.distributionList,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e()]):t._e(),"marketing_link"==t.currenType?n("div",{staticClass:"right_box"},[t.coupon.length?n("div",[n("div",{staticClass:"cont"},[t._v("优惠券")]),n("div",{staticClass:"Box"},t._l(t.coupon,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e(),t.basicsList.length?n("div",[n("div",{staticClass:"cont"},[t._v("秒杀")]),n("div",{staticClass:"Box"},t._l(t.basicsList,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e(),t.distributionList.length?n("div",[n("div",{staticClass:"cont"},[t._v("砍价")]),n("div",{staticClass:"Box"},t._l(t.distributionList,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e(),t.userList.length?n("div",[n("div",{staticClass:"cont"},[t._v("拼团")]),n("div",{staticClass:"Box"},t._l(t.userList,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e(),t.integral.length?n("div",[n("div",{staticClass:"cont"},[t._v("积分")]),n("div",{staticClass:"Box"},t._l(t.integral,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e(),t.luckDraw.length?n("div",[n("div",{staticClass:"cont"},[t._v("抽奖")]),n("div",{staticClass:"Box"},t._l(t.luckDraw,(function(e,a){return n("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(n){return t.getUrl(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)]):t._e()]):t._e(),"special"==t.currenType||"product_category"==t.currenType||"product"==t.currenType||"seckill"==t.currenType||"bargain"==t.currenType||"combination"==t.currenType||"news"==t.currenType||"advance"==t.currenType||"integral"==t.currenType?n("div",{staticClass:"right_box"},["product"==t.currenType?n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate}},[n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",[n("FormItem",{attrs:{label:"","label-for":"pid"}},[n("Select",{staticStyle:{width:"230px"},attrs:{clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}},t._l(t.treeSelect,(function(e){return n("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.html+e.cate_name)+"\n ")])})),1)],1)],1),n("Col",[n("FormItem",{attrs:{label:"","label-for":"store_name"}},[n("Input",{staticStyle:{width:"250px"},attrs:{search:"","enter-button":"",placeholder:"请输入商品名称,关键字,编号"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1)],1)],1):t._e(),n("Table",{ref:"table",attrs:{"row-key":"id","no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果",columns:"special"==t.currenType?t.columns:"product_category"==t.currenType?t.columns7:"bargain"==t.currenType||"combination"==t.currenType||"advance"==t.currenType||"integral"==t.currenType?t.bargain:"news"==t.currenType?t.news:t.columns8,data:t.tableList,loading:t.loading,"max-height":"product_category"==t.currenType?"410":"product"==t.currenType||"seckill"==t.currenType||"bargain"==t.currenType||"advance"==t.currenType||"combination"==t.currenType||"news"==t.currenType||"integral"==t.currenType?"400":""},scopedSlots:t._u([{key:"pic",fn:function(t){var e=t.row;t.index;return e.hasOwnProperty("pic")?[n("viewer",[n("div",{staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.pic,expression:"row.pic"}]})])])]:void 0}},{key:"image",fn:function(t){var e=t.row;t.index;return e.hasOwnProperty("image")?[n("viewer",[n("div",{staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})])])]:void 0}},{key:"image_input",fn:function(t){var e=t.row;t.index;return e.hasOwnProperty("image_input")?[n("viewer",[n("div",{staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image_input[0],expression:"row.image_input[0]"}]})])])]:void 0}}],null,!0)}),"product"==t.currenType||"seckill"==t.currenType||"bargain"==t.currenType||"advance"==t.currenType||"combination"==t.currenType||"news"==t.currenType||"integral"==t.currenType?n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1):t._e()],1):t._e(),"custom"==t.currenType?n("div",{staticClass:"right_box"},[n("div",{staticStyle:{width:"340px",margin:"150px 100px 0 120px"}},[n("Form",{ref:"customdate",attrs:{model:t.customdate,rules:t.ruleValidate,"label-width":88}},[n("FormItem",{attrs:{label:"跳转路径:",prop:"url"}},[n("Input",{attrs:{placeholder:"请输入跳转路径"},model:{value:t.customdate.url,callback:function(e){t.$set(t.customdate,"url",e)},expression:"customdate.url"}})],1)],1)],1)]):t._e()]),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("Button",{on:{click:t.cancel}},[t._v("取消")]),"custom"==t.currenType?n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("customdate")}}},[t._v("确定")]):n("Button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确定")])],1)])],1)},i=[],o=(n("ac6a"),n("96cf"),n("3b8d")),c=(n("7f7f"),n("f478")),r=n("c4c8"),s=n("b7be"),u=n("1336"),l={name:"linkaddress",data:function(){return{modals:!1,categoryData:[],currenType:"link",columns:[{title:"ID",key:"id",width:60},{title:"页面名称",key:"name",width:150},{title:"页面链接",key:"url"}],columns7:[{title:"ID",key:"id",width:60},{title:"分类名称",key:"cate_name",tree:!0},{title:"分类图标",slot:"pic"}],columns8:[{title:"ID",key:"id",width:60},{title:"商品图片",slot:"image",width:90},{title:"商品名称",key:"store_name"}],bargain:[{title:"ID",key:"id",width:60},{title:"商品图片",slot:"image",width:90},{title:"商品名称",key:"title"}],news:[{title:"ID",key:"id",width:60},{title:"文章图片",slot:"image_input",width:90},{title:"文章名称",key:"title"}],formValidate:{page:1,limit:15,cate_id:"",store_name:""},total:0,basicsList:[],userList:[],distributionList:[],coupon:[],luckDraw:[],integral:[],currenId:"",currenUrl:"",loading:!1,tableList:[],presentId:0,categoryId:"",treeSelect:[],customdate:{url:""},customNum:1,ruleValidate:{name:[{required:!0,message:"请输入链接名称",trigger:"blur"}],url:[{required:!0,message:"请输入跳转路径",trigger:"blur"}]}}},computed:{},created:function(){var t=this;this.getSort(),this.goodsCategory();var e={width:60,align:"center",render:function(e,n){var a=n.row.id,i=!1;i=t.presentId===a;var o=t;return e("div",[e("Radio",{props:{value:i},on:{"on-change":function(){o.presentId=a,t.currenUrl=n.row.url}}})])}};this.columns.unshift(e),this.columns7.unshift(e),this.columns8.unshift(e),this.bargain.unshift(e),this.news.unshift(e)},methods:{delLink:function(t,e,n){var a=this,i={title:e,num:n,url:"diy/del_link/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(i).then((function(t){a.$Message.success(t.msg),a.tableList.splice(n,1),a.tableList.length||(a.customNum=2)})).catch((function(t){a.$Message.error(t.msg)}))},customLink:function(){this.customNum=2},customList:function(){this.customNum=1},getCustomList:function(){var t=this;Object(c["o"])(this.categoryId).then((function(e){e.data.list.length||(t.customNum=2),t.tableList=e.data.list})).catch((function(e){t.$Message.error(e.msg)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.$emit("linkUrl",e.customdate.url),e.modals=!1,e.reset()):e.$Message.error("请填写信息")}))},handleReset:function(t){this.$refs[t].resetFields()},pageChange:function(t){this.formValidate.page=t,this.getList()},goodsCategory:function(){var t=this;Object(r["F"])(1).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getList()},reset:function(){this.currenUrl="",this.presentId=0,this.currenId="",this.customdate.url=""},getUrl:function(t){this.currenId=t.id,this.currenUrl=t.url},getSort:function(){var t=this;Object(c["n"])().then((function(e){e.data[0].children[0].selected=!0,t.categoryData=e.data,t.handleCheckChange("",e.data[0].children[0])})).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,"product"==this.currenType?Object(r["c"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,a.list.forEach((function(t){t.url="/pages/goods_details/index?id=".concat(t.id)})),t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"seckill"==this.currenType?Object(s["W"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,a.list.forEach((function(t){t.url="/pages/activity/goods_seckill_details/index?id=".concat(t.id,"&status=1")})),t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"advance"==this.currenType?Object(s["Q"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,a.list.forEach((function(t){t.url="/pages/activity/presell/index?id=".concat(t.id,"&status=1")})),t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg),advance})):"bargain"==this.currenType?Object(s["d"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,a.list.forEach((function(t){t.url="/pages/activity/goods_bargain_details/index?id=".concat(t.id)})),t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"combination"==this.currenType?Object(s["j"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,a.list.forEach((function(t){t.url="/pages/activity/goods_combination_details/index?id=".concat(t.id)})),t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"news"==this.currenType?Object(u["e"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,a.list.forEach((function(t){t.url="/pages/news_details/index?id=".concat(t.id)})),t.tableList=a.list,t.total=a.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"integral"==this.currenType&&Object(s["I"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=n.data,a.list.forEach((function(t){t.url="/pages/points_mall/integral_goods_details?id=".concat(t.id)})),t.tableList=a.list,t.total=n.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},handleCheckChange:function(t,e){var n=this;this.reset();var a="";if(!e.pid)return!1;a=e.id,this.categoryId=e.id,this.loading=!0,this.currenType=e.type,"product"==this.currenType||"seckill"==this.currenType||"bargain"==this.currenType||"combination"==this.currenType||"news"==this.currenType||"advance"==this.currenType||"integral"==this.currenType?this.getList():"custom"==this.currenType?this.getCustomList():Object(c["o"])(a).then((function(t){n.loading=!1;var e=t.data.list;if("marketing_link"==n.currenType||"link"==n.currenType){var a=[],i=[],o=[],c=[],r=[],s=[];e.forEach((function(t){1==t.type?a.push(t):2==t.type?i.push(t):3==t.type?o.push(t):4==t.type?c.push(t):5==t.type?r.push(t):s.push(t)})),n.basicsList=a,n.distributionList=i,n.userList=o,n.coupon=s,n.luckDraw=r,n.integral=c}else if("special"==n.currenType){var u=[];e.forEach((function(t){t.url="/pages/annex/special/index?id=".concat(t.id),t.is_diy&&u.push(t)})),n.tableList=u}else"product_category"==n.currenType&&(e.forEach((function(t){t.hasOwnProperty("children")&&t.children.forEach((function(t){t.url="/pages/goods_list/index?sid=".concat(t.id,"&title=").concat(t.cate_name)})),t.url="/pages/goods_list/index?cid=".concat(t.id,"&title=默认")})),n.tableList=e)})).catch((function(t){n.loading=!1,n.$Message.error(t.msg)}))},ok:function(){if(""==this.currenUrl)return this.$Message.warning("请选择链接");this.$emit("linkUrl",this.currenUrl),this.modals=!1,this.reset()},cancel:function(){this.modals=!1,this.reset()}}},d=l,m=(n("2346"),n("2877")),f=Object(m["a"])(d,a,i,!1,null,"d2775fa0",null);e["a"]=f.exports},"7c55":function(t,e,n){"use strict";var a=n("2395"),i=n.n(a);i.a},"81da":function(t,e,n){},"836c":function(t,e,n){"use strict";var a=n("f4d1"),i=n.n(a);i.a},"839c":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"hot_imgs"},[n("div",{staticClass:"title"},[t._v("\n "+t._s(t.datas[t.name].title)+"\n ")]),n("div",{staticClass:"list-box"},[n("draggable",{staticClass:"dragArea list-group",attrs:{list:t.datas[t.name].list,group:"peoples",handle:".move-icon"}},t._l(t.datas[t.name].list,(function(e,a){return n("div",{key:a,staticClass:"item"},[n("div",{staticClass:"move-icon"},[n("span",{staticClass:"iconfont icondrag2"})]),n("div",{staticClass:"img-box",on:{click:function(e){return t.modalPicTap("单选",a)}}},[e.img?n("img",{attrs:{src:e.img,alt:""}}):n("div",{staticClass:"upload-box"},[n("Icon",{attrs:{type:"ios-camera-outline",size:"36"}})],1),t.datas[t.name].isDelete?t._e():n("div",{staticClass:"delect-btn",on:{click:function(n){return n.stopPropagation(),t.bindDelete(e,a)}}},[n("Icon",{attrs:{type:"md-close-circle",size:"26"}})],1)]),n("div",{staticClass:"info"},t._l(e.info,(function(e,i){return n("div",{key:i,staticClass:"info-item"},["链接"===e.title?n("div",{staticClass:"info-item"},[n("span",[t._v(t._s(e.title))]),n("div",{staticClass:"input-box",on:{click:function(e){return t.getLink(a,i)}}},[n("Input",{attrs:{placeholder:e.tips,maxlength:e.maxlength,icon:"ios-arrow-forward",readonly:""},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"infos.value"}})],1)]):n("div",{staticClass:"info-item"},[n("span",[t._v(t._s(e.title))]),n("div",{staticClass:"input-box"},[n("Input",{attrs:{placeholder:e.tips,maxlength:e.maxlength,width:"250px"},model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"infos.value"}})],1)])])})),0)])})),0),n("div",[n("Modal",{attrs:{width:"950px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":888},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?n("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)],1),t.datas[t.name]?[t.datas[t.name].list.length-1&&i.push(o)}return i},c=function(t,e){return Array.from(new Set([].concat(Object(a["a"])(t),Object(a["a"])(e))))},r=function(t,e){return t.some((function(t){return e.indexOf(t)>-1}))};function s(t,e){for(var n=0;n10},l=function(t,e){return t59&&i<=3599?Math.floor(i/60)+"分钟"+c:i>3599&&i<=86399?Math.floor(i/3600)+"小时"+c:i>86399&&i<=2623859?Math.floor(i/86400)+"天"+c:i>2623859&&i<=31567859&&a?m(t):m(t,"year"),o},h=function(){var t=window.navigator.userAgent,e=function(e){return t.indexOf(e)>-1};return e("MSIE")?"IE":e("Firefox")?"Firefox":e("Chrome")?"Chrome":e("Opera")?"Opera":e("Safari")?"Safari":void 0},p=function(){return document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)}}(),g=function(){return document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)}}(),b=function(t,e){if(e)return e in t;var n=Object.keys(t);return n.length},v=function(t,e){var n=Object.keys(t),a=Object.keys(e);return n.length===a.length&&(0===n.length&&0===a.length||!n.some((function(n){return t[n]!=e[n]})))},A=function(t,e){var n=0,a=t.toString(),i=e.toString();try{n+=a.split(".")[1].length}catch(o){}try{n+=i.split(".")[1].length}catch(o){}return Number(a.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)}},"91bf":function(t,e,n){"use strict";var a=n("eb5c"),i=n.n(a);i.a},"91e5":function(t,e,n){t.exports=n.p+"img/sheet_twitter_64_indexed_128.0ebbf2e8.png"},9753:function(t,e,n){},"989b":function(t,e,n){},"9b75":function(t,e,n){"use strict";var a=n("3502"),i=n.n(a);i.a},"9bdb":function(t,e,n){t.exports=n.p+"img/sheet_apple_64_indexed_256colors.f99f1af2.png"},"9d64":function(t,e,n){t.exports=n.p+"img/logo.eb6eba32.png"},a18c:function(t,e,n){"use strict";n("96cf");var a=n("3b8d"),i=n("2b0e"),o=n("8c4f"),c=n("75fc"),r=(n("a481"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Layout",{staticClass:"main",staticStyle:{height:"100%"}},[n("Sider",{staticClass:"left-sider",style:{overflow:"hidden"},attrs:{"hide-trigger":"",collapsible:"",width:200,"collapsed-width":t.isMobile?0:80},model:{value:t.collapsed,callback:function(e){t.collapsed=e},expression:"collapsed"}},[n("side-menu",{ref:"sideMenu",attrs:{accordion:"","active-name":t.$route.path,collapsed:t.collapsed,"menu-list":t.menuList},on:{"on-select":t.turnToPage}},[n("div",{staticClass:"logo-con"},[n("img",{directives:[{name:"show",rawName:"v-show",value:!t.collapsed,expression:"!collapsed"}],key:"max-logo",attrs:{src:t.maxLogo}}),n("img",{directives:[{name:"show",rawName:"v-show",value:t.collapsed,expression:"collapsed"}],key:"min-logo",attrs:{src:t.minLogo}})])])],1),n("Layout",[n("Header",{staticClass:"header-con"},[n("header-bar",{attrs:{collapsed:t.collapsed},on:{"on-coll-change":t.handleCollapsedChange,"on-reload":t.handleReload}},[n("user",{attrs:{"message-unread-count":t.unreadCount,"user-avatar":t.userAvatar}}),t.$config.useI18n?n("language",{staticStyle:{"margin-right":"10px"},attrs:{lang:t.local},on:{"on-lang-change":t.setLocal}}):t._e(),n("header-notice"),n("fullscreen",{staticStyle:{"margin-right":"10px"},model:{value:t.isFullscreen,callback:function(e){t.isFullscreen=e},expression:"isFullscreen"}}),t.$config.plugin["error-store"]&&t.$config.plugin["error-store"].showInHeader?n("error-store",{attrs:{"has-read":t.hasReadErrorPage,count:t.errorCount}}):t._e(),n("header-search")],1)],1),n("Content",{staticClass:"main-content-con"},[n("Layout",{staticClass:"main-layout-con"},[n("div",{staticClass:"tag-nav-wrapper"},[n("tags-nav",{attrs:{value:t.$route,list:t.tagNavList},on:{input:t.handleClick,"on-close":t.handleCloseTag}})],1),n("Content",{staticClass:"content-wrapper"},[t.reload?n("router-view",{staticStyle:{"min-height":"600px"}}):t._e()],1),n("i-copyright")],1)],1)],1)],1)}),s=[],u=(n("8e6e"),n("456d"),n("7514"),n("ac6a"),n("7f7f"),n("bd86")),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ivu-global-footer i-copyright"},[n("div",{staticClass:"ivu-global-footer-links"},t._l(t.links,(function(e,a){return n("a",{key:a,attrs:{href:e.href,target:"_blank"}},[t._v(t._s(e.title))])})),0),n("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s(t.copyright))])])},d=[],m={name:"i-copyright",data:function(){return{links:[{title:"官网",key:"官网",href:"https://www.crmeb.com"},{title:"社区",key:"社区",href:"http://bbs.crmeb.net"},{title:"文档",key:"文档",href:"https://help.crmeb.net"}],copyright:"Copyright © 2021 | 西安众邦网络科技有限公司"}},mounted:function(){this.getVersion()},methods:{getVersion:function(){var t=this.$store.state.userInfo.version;this.copyright+=t?" | "+t:""}}},f=m,h=(n("1bb0"),n("2877")),p=Object(h["a"])(f,l,d,!1,null,null,null),g=p.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"side-menu-wrapper"},[t._t("default"),n("Menu",{directives:[{name:"show",rawName:"v-show",value:!t.collapsed,expression:"!collapsed"}],ref:"menu",attrs:{"active-name":t.activeName,"open-names":t.openMenus,accordion:t.accordion,theme:t.theme,width:"auto"},on:{"on-open-change":t.openNameData,"on-select":t.handleSelect}},[t._l(t.menuList,(function(e){return[e.children&&1===e.children.length?[t.showChildren(e)?n("side-menu-item",{key:"menu-"+e.path,attrs:{"parent-item":e}}):n("menu-item",{key:"menu-"+e.children[0].path,attrs:{name:e.path}},[n("common-icon",{attrs:{type:e.children[0].icon||""}}),n("span",[t._v(t._s(e.children[0].title))])],1)]:[t.showChildren(e)?n("side-menu-item",{key:"menu"+e.path,attrs:{"parent-item":e}}):n("menu-item",{key:"menu"+e.path,attrs:{name:e.path}},[n("common-icon",{attrs:{type:e.icon||""}}),n("span",[t._v(t._s(e.title))])],1)]]}))],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.collapsed,expression:"collapsed"}],staticClass:"menu-collapsed",attrs:{list:t.menuList}},[t._l(t.menuList,(function(e){return[e.children&&e.children.length>0?n("collapsed-menu",{key:"drop-menu-"+e.path,attrs:{"hide-title":"","root-icon-size":t.rootIconSize,"icon-size":t.iconSize,theme:t.theme,"parent-item":e},on:{"on-click":t.handleSelect}}):n("Tooltip",{key:"drop-menu-"+e.path,attrs:{transfer:"",content:e.title,placement:"right"}},[n("a",{staticClass:"drop-menu-a",style:{textAlign:"center"},on:{click:function(n){t.handleSelect(t.getNameOrHref(e,!0))}}},[n("common-icon",{attrs:{size:t.rootIconSize,color:t.textColor,type:e.icon||e.children&&e.children[0].icon}})],1)])]}))],2)],2)},v=[],A=(n("c5f6"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Submenu",{attrs:{name:t.parentItem.path}},[n("template",{slot:"title"},[n("common-icon",{attrs:{type:t.parentItem.icon||""}}),n("span",[t._v(t._s(t.parentItem.title))])],1),t._l(t.children,(function(e){return[void 0===e.auth?[e.children&&1===e.children.length?[t.showChildren(e)?n("side-menu-item",{key:"menu"+e.path,attrs:{"parent-item":e}}):n("menu-item",{key:"menu"+e.children[0].path,attrs:{name:e.path}},[n("common-icon",{attrs:{type:e.children[0].icon||""}}),n("span",[t._v(t._s(e.children[0].title))])],1)]:[t.showChildren(e)?n("side-menu-item",{key:"menu"+e.path,attrs:{"parent-item":e}}):n("menu-item",{key:"menu"+e.path,attrs:{name:e.path}},[n("common-icon",{attrs:{type:e.icon||""}}),n("span",[t._v(t._s(e.title))])],1)]]:t._e()]}))],2)}),k=[],y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.iconType,{tag:"component",attrs:{type:t.iconName,color:t.iconColor,size:t.iconSize}})},x=[],_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("i",{class:"iconfont icon-"+t.type,style:t.styles})},w=[],j={name:"Icons",props:{type:{type:String,required:!0},color:{type:String,default:"#5c6b77"},size:{type:Number,default:16}},computed:{styles:function(){return{fontSize:"".concat(this.size,"px"),color:this.color}}}},O=j,C=Object(h["a"])(O,_,w,!1,null,null,null),N=C.exports,L=N,S={name:"CommonIcon",components:{Icons:L},props:{type:{type:String,required:!0},color:String,size:Number},computed:{iconType:function(){return 0===this.type.indexOf("_")?"Icons":"Icon"},iconName:function(){return"Icons"===this.iconType?this.getCustomIconName(this.type):this.type},iconSize:function(){return this.size||("Icons"===this.iconType?12:void 0)},iconColor:function(){return this.color||""}},methods:{getCustomIconName:function(t){return t.slice(1)}}},D=S,I=Object(h["a"])(D,y,x,!1,null,null,null),T=I.exports,E=T,B=n("c276"),P={components:{CommonIcon:E},methods:{showTitle:function(t){return Object(B["t"])(t,this)},showChildren:function(t){return t.children&&t.children.length},getNameOrHref:function(t,e){return t.href?"isTurnByHref_".concat(t.href):e?t.children[0].path:t.path}}},M={props:{parentItem:{type:Object,default:function(){}},theme:String,iconSize:Number},computed:{parentName:function(){return this.parentItem.name},children:function(){return this.parentItem.children},textColor:function(){return"dark"===this.theme?"#fff":"#495060"}}},R={name:"SideMenuItem",mixins:[P,M]},V=R,U=Object(h["a"])(V,A,k,!1,null,null,null),z=U.exports,F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Dropdown",{ref:"dropdown",class:t.hideTitle?"":"collased-menu-dropdown",attrs:{transfer:t.hideTitle,placement:t.placement},on:{"on-click":t.handleClick}},[n("a",{staticClass:"drop-menu-a",style:{textAlign:t.hideTitle?"":"left"},attrs:{type:"text"},on:{mouseover:function(e){return t.handleMousemove(e,t.children)}}},[n("common-icon",{attrs:{size:t.rootIconSize,color:t.textColor,type:t.parentItem.icon}}),t.hideTitle?t._e():n("span",{staticClass:"menu-title"},[t._v(t._s(t.parentItem.title))]),t.hideTitle?t._e():n("Icon",{staticStyle:{float:"right"},attrs:{type:"ios-arrow-forward",size:16}})],1),n("DropdownMenu",{ref:"dropdown",attrs:{slot:"list"},slot:"list"},[t._l(t.children,(function(e){return[void 0===e.auth?[t.showChildren(e)?n("collapsed-menu",{key:"drop-"+e.path,attrs:{"icon-size":t.iconSize,"parent-item":e}}):n("DropdownItem",{key:"drop-"+e.path,attrs:{name:e.path}},[n("common-icon",{attrs:{size:t.iconSize,type:e.icon}}),n("span",{staticClass:"menu-title"},[t._v(t._s(e.title))])],1)]:t._e()]}))],2)],1)},Q=[],G={name:"CollapsedMenu",mixins:[P,M],props:{hideTitle:{type:Boolean,default:!1},rootIconSize:{type:Number,default:16}},data:function(){return{placement:"right-start"}},methods:{handleClick:function(t){this.$emit("on-click",t)},handleMousemove:function(t,e){var n=t.pageY,a=38*e.length,i=n+a0&&t.forEach((function(t){n.forEach((function(e){t===e.path&&a.push(e)}))})),a},crumbPast:function(){var t=this,e=t.$store.state.menus.menusName,n=Object(B["a"])(e,[]),a=[];return n.length>0&&n.forEach((function(e){t.$route.path===e.path&&a.push(e)})),a}},mounted:function(){},methods:{handleCollpasedChange:function(t){this.$emit("on-coll-change",t)},handleReload:function(){this.$emit("on-reload")}}}),kt=At,yt=(n("bbe3"),Object(h["a"])(kt,at,it,!1,null,"be55525c",null)),xt=yt.exports,_t=xt,wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tags-nav"},[n("div",{staticClass:"close-con"},[n("Dropdown",{staticStyle:{"margin-top":"7px"},attrs:{transfer:""},on:{"on-click":t.handleTagsOption}},[n("Button",{attrs:{size:"small",type:"text"}},[n("Icon",{attrs:{size:18,type:"ios-close-circle-outline"}})],1),n("DropdownMenu",{staticClass:"close",attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"close-all"}},[t._v("关闭所有")]),n("DropdownItem",{attrs:{name:"close-others"}},[t._v("关闭其他")])],1)],1)],1),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:t.contextMenuLeft+"px",top:t.contextMenuTop+"px"}},t._l(t.menuList,(function(e,a){return n("li",{key:a,on:{click:function(e){return t.handleTagsOption(a)}}},[t._v(t._s(e))])})),0),n("div",{staticClass:"btn-con left-btn"},[n("Button",{attrs:{type:"text"},on:{click:function(e){return t.handleScroll(240)}}},[n("Icon",{attrs:{size:18,type:"ios-arrow-back"}})],1)],1),n("div",{staticClass:"btn-con right-btn"},[n("Button",{attrs:{type:"text"},on:{click:function(e){return t.handleScroll(-240)}}},[n("Icon",{attrs:{size:18,type:"ios-arrow-forward"}})],1)],1),n("div",{ref:"scrollOuter",staticClass:"scroll-outer",on:{DOMMouseScroll:t.handlescroll,mousewheel:t.handlescroll}},[n("div",{ref:"scrollBody",staticClass:"scroll-body",style:{left:t.tagBodyLeft+"px"}},[n("transition-group",{attrs:{name:"taglist-moving-animation"}},t._l(t.list,(function(e,a){return n("Tag",{key:"tag-nav-"+a,ref:"tagsPageOpened",refInFor:!0,attrs:{type:"dot",name:e.name,"data-route-item":e,closable:e.name!==t.$config.homeName,color:t.isCurrentTag(e)?"primary":"default"},on:{"on-close":function(n){return t.handleClose(e)}},nativeOn:{click:function(n){return t.handleClick(e)},contextmenu:function(n){return n.preventDefault(),t.contextMenu(e,n)}}},[t._v(t._s(t.showTitleInside(e)))])})),1)],1)])])},jt=[],Ot=(n("6762"),n("2fdb"),n("e069"),void 0),Ct={before_close_normal:function(t){Ot.$Modal.confirm({title:"确定要关闭这一页吗",onOk:function(){t(!0)},onCancel:function(){t(!1)}})}},Nt=Ct,Lt={name:"TagsNav",props:{value:Object,list:{type:Array,default:function(){return[]}}},data:function(){return{tagBodyLeft:0,rightOffset:40,outerPadding:4,contextMenuLeft:0,contextMenuTop:0,visible:!1,menuList:{others:"关闭其他",all:"关闭所有"}}},computed:{currentRouteObj:function(){var t=this.value,e=t.name,n=t.params,a=t.query;return{name:e,params:n,query:a}}},methods:{handlescroll:function(t){var e=t.type,n=0;"DOMMouseScroll"!==e&&"mousewheel"!==e||(n=t.wheelDelta?t.wheelDelta:40*-(t.detail||0)),this.handleScroll(n)},handleScroll:function(t){var e=this.$refs.scrollOuter.offsetWidth,n=this.$refs.scrollBody.offsetWidth;t>0?this.tagBodyLeft=Math.min(0,this.tagBodyLeft+t):e-this.tagBodyLeft&&t.offsetLeft+t.offsetWidth<-this.tagBodyLeft+e?this.tagBodyLeft=Math.min(0,e-t.offsetWidth-t.offsetLeft-this.outerPadding):this.tagBodyLeft=-(t.offsetLeft-(e-this.outerPadding-t.offsetWidth))},getTagElementByRoute:function(t){var e=this;this.$nextTick((function(){e.refsTag=e.$refs.tagsPageOpened,e.refsTag.forEach((function(n,a){if(Object(B["n"])(t,n.$attrs["data-route-item"])){var i=e.refsTag[a].$el;e.moveToView(i)}}))}))},contextMenu:function(t,e){if(t.name!==this.$config.homeName){this.visible=!0;var n=this.$el.getBoundingClientRect().left;this.contextMenuLeft=e.clientX-n+10,this.contextMenuTop=e.clientY-64}},closeMenu:function(){this.visible=!1}},watch:{$route:function(t){this.getTagElementByRoute(t)},visible:function(t){t?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},mounted:function(){var t=this;setTimeout((function(){t.getTagElementByRoute(t.$route)}),200)}},St=Lt,Dt=(n("37a8"),Object(h["a"])(St,wt,jt,!1,null,null,null)),It=Dt.exports,Tt=It,Et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-avatar-dropdown"},[n("Dropdown",{on:{"on-click":t.handleClick}},[n("span",[t._v(t._s(t.info.account))]),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"userCenter"}},[n("Icon",{staticClass:"iconImg",attrs:{type:"ios-contact-outline"}}),t._v("个人中心")],1),n("DropdownItem",{attrs:{name:"logout"}},[n("Icon",{staticClass:"iconImg",attrs:{type:"ios-log-out"}}),t._v("退出登录")],1)],1)],1)],1)},Bt=[],Pt=(n("3daa"),n("5723")),Mt={name:"User",data:function(){return{info:""}},props:{userAvatar:{type:String,default:""},messageUnreadCount:{type:Number,default:0}},mounted:function(){this.info=this.$store.state.userInfo.userInfo},methods:{logout:function(){var t=this;this.$Modal.confirm({title:"退出登录确认",content:"您确定退出当前账户吗?",onOk:function(){Object(Pt["b"])().then((function(e){t.$Message.success("您已成功退出"),t.$router.replace("/admin/login"),localStorage.clear(),Object(B["m"])("token"),Object(B["m"])("expires_time"),Object(B["m"])("uuid")})).catch((function(t){}))}})},userCenter:function(){this.$router.push("/admin/system/user")},message:function(){this.$router.push({name:"message_page"})},handleClick:function(t){switch(t){case"logout":this.logout();break;case"userCenter":this.userCenter();break;case"message":this.message();break}}}},Rt=Mt,Vt=(n("52c8"),Object(h["a"])(Rt,Et,Bt,!1,null,"e96e2250",null)),Ut=Vt.exports,zt=Ut,Ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes,style:t.styles,on:{click:t.back}},[t._t("default",[n("div",{class:t.innerClasses},[n("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-up"})])])],2)},Qt=[],Gt="ivu-back-top",qt={name:"ABackTop",props:{height:{type:Number,default:400},bottom:{type:Number,default:30},right:{type:Number,default:30},duration:{type:Number,default:1e3},container:{type:null,default:window}},data:function(){return{backTop:!1}},mounted:function(){Object(J["on"])(this.containerEle,"scroll",this.handleScroll),Object(J["on"])(this.containerEle,"resize",this.handleScroll)},beforeDestroy:function(){Object(J["off"])(this.containerEle,"scroll",this.handleScroll),Object(J["off"])(this.containerEle,"resize",this.handleScroll)},computed:{classes:function(){return["".concat(Gt),Object(u["a"])({},"".concat(Gt,"-show"),this.backTop)]},styles:function(){return{bottom:"".concat(this.bottom,"px"),right:"".concat(this.right,"px")}},innerClasses:function(){return"".concat(Gt,"-inner")},containerEle:function(){return this.container===window?window:document.querySelector(this.container)}},methods:{handleScroll:function(){this.backTop=this.containerEle.scrollTop>=this.height},back:function(){var t="string"===typeof this.container?this.containerEle:document.documentElement||document.body,e=t.scrollTop;Object(B["p"])(this.containerEle,e,0,this.duration),this.$emit("on-click")}}},Wt=qt,Zt=Object(h["a"])(Wt,Ft,Qt,!1,null,null,null),Jt=Zt.exports,Yt=Jt,Ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showFullScreenBtn?n("div",{staticClass:"full-screen-btn-con"},[n("Tooltip",{attrs:{content:t.value?"退出全屏":"全屏",placement:"bottom"}},[n("Icon",{attrs:{type:t.value?"ios-contract":"ios-qr-scanner",size:23},nativeOn:{click:function(e){return t.handleChange(e)}}})],1)],1):t._e()},Xt=[],Kt={name:"Fullscreen",computed:{showFullScreenBtn:function(){return window.navigator.userAgent.indexOf("MSIE")<0}},props:{value:{type:Boolean,default:!1}},methods:{handleFullscreen:function(){var t=document.body;this.value?document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},handleChange:function(){this.handleFullscreen()}},mounted:function(){var t=this,e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;e=!!e,document.addEventListener("fullscreenchange",(function(){t.$emit("input",!t.value),t.$emit("on-change",!t.value)})),document.addEventListener("mozfullscreenchange",(function(){t.$emit("input",!t.value),t.$emit("on-change",!t.value)})),document.addEventListener("webkitfullscreenchange",(function(){t.$emit("input",!t.value),t.$emit("on-change",!t.value)})),document.addEventListener("msfullscreenchange",(function(){t.$emit("input",!t.value),t.$emit("on-change",!t.value)})),this.$emit("input",e)}},$t=Kt,te=(n("e282"),Object(h["a"])($t,Ht,Xt,!1,null,null,null)),ee=te.exports,ne=ee,ae=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.selectLang}},[n("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n "+t._s(t.title)+"\n "),n("Icon",{attrs:{size:18,type:"md-arrow-dropdown"}})],1),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.localList,(function(e,a){return n("DropdownItem",{key:"lang-"+a,attrs:{name:a}},[t._v(t._s(e))])})),1)],1)],1)},ie=[],oe={name:"Language",props:{lang:String},data:function(){return{langList:{"zh-CN":"语言","zh-TW":"語言","en-US":"Lang"},localList:{"zh-CN":"中文简体","zh-TW":"中文繁体","en-US":"English"}}},watch:{lang:function(t){this.$i18n.locale=t}},computed:{title:function(){return this.langList[this.lang]}},methods:{selectLang:function(t){this.$emit("on-lang-change",t)}}},ce=oe,re=Object(h["a"])(ce,ae,ie,!1,null,null,null),se=re.exports,ue=se,le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},de=[],me={},fe=Object(h["a"])(me,le,de,!1,null,null,null),he=fe.exports,pe=he,ge=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search"},[n("Select",{staticClass:"select",attrs:{placeholder:"菜单搜索",filterable:"",remote:"","remote-method":t.remoteMethod,loading:t.loading},model:{value:t.currentVal,callback:function(e){t.currentVal=e},expression:"currentVal"}},t._l(t.menusList,(function(e,a){return n("Option",{key:a,attrs:{value:e.menu_path,disabled:1===e.type}},[t._v(t._s(e.menu_name))])})),1)],1)},be=[],ve={name:"iHeaderSearch",data:function(){return{currentVal:"",loading:!1,menusList:[]}},computed:{},created:function(){this.getMenusList()},methods:{getMenusList:function(){var t=this;this.loading=!0,Object(Pt["e"])().then((function(e){t.loading=!1,t.menusList=e.data}))},remoteMethod:function(){this.$router.push({path:this.currentVal})}}},Ae=ve,ke=(n("380f"),Object(h["a"])(Ae,ge,be,!1,null,null,null)),ye=ke.exports,xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header-notice"},[n("Dropdown",{on:{"on-click":t.jumpUrl}},[n("div",[n("Badge",{attrs:{dot:"",count:t.needList.length?t.needList.length:0}},[n("Icon",{attrs:{type:"ios-notifications-outline",size:"26"}})],1)],1),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.needList,(function(e,a){return n("DropdownItem",{key:a,attrs:{name:e.url}},[n("Icon",{staticClass:"iconImg",style:"background-color:"+e.iconColor,attrs:{type:e.icon}}),t._v(t._s(e.title))],1)})),1)],1)],1)},_e=[],we=n("2934"),je=n("49ea"),Oe=new Audio(n("d635")),Ce={name:"User",data:function(){return{needList:[],newOrderAudioLink:null}},mounted:function(){var t=this;this.getNotict(),this.newOrderAudioLink=Oe,je["b"].then((function(e){e.send({type:"login",data:Object(B["d"])("token")});var n=t;e.$on("ADMIN_NEW_PUSH",(function(t){n.getNotict()})),e.$on("NEW_ORDER",(function(t){n.$Notice.info({title:"新订单",duration:8,desc:"您有一个新的订单,ID为("+t.order_id+"),请注意查看"}),this.newOrderAudioLink&&this.newOrderAudioLink.play(),n.messageList.push({title:"新订单提醒",icon:"md-bulb",iconColor:"#87d068",time:0,read:0})})),e.$on("NEW_REFUND_ORDER",(function(t){n.$Notice.warning({title:"退款订单提醒",duration:8,desc:"您有一个订单申请退款,ID为("+t.order_id+"),请注意查看"}),window.newOrderAudioLink&&this.newOrderAudioLink.play(),n.messageList.push({title:"退款订单提醒",icon:"md-information",iconColor:"#fe5c57",time:0,read:0})})),e.$on("WITHDRAW",(function(t){n.$Notice.warning({title:"提现提醒",duration:8,desc:"有用户申请提现,编号为("+t.id+"),请注意查看"}),n.messageList.push({title:"退款订单提醒",icon:"md-people",iconColor:"#f06292",time:0,read:0})})),e.$on("STORE_STOCK",(function(t){n.$Notice.warning({title:"库存预警",duration:8,desc:"商品ID为("+t.id+")的库存不足啦,请注意查看~"}),n.messageList.push({title:"库存预警",icon:"md-information",iconColor:"#fe5c57",time:0,read:0})})),e.$on("PAY_SMS_SUCCESS",(function(t){n.$Notice.info({title:"短信充值成功",duration:8,desc:"恭喜您充值"+t.price+"元,获得"+t.number+"条短信"}),n.messageList.push({title:"短信充值成功",icon:"md-bulb",iconColor:"#87d068",time:0,read:0})}))}))},methods:{getNotict:function(){var t=this;Object(we["b"])().then((function(e){t.needList=e.data||[]})).catch((function(){}))},jumpUrl:function(t){this.$router.push({path:t})}}},Ne=Ce,Le=(n("91bf"),Object(h["a"])(Ne,xe,_e,!1,null,null,null)),Se=Le.exports,De=n("d708"),Ie=n("f66a"),Te=n.n(Ie),Ee=n("9d64"),Be=n.n(Ee);n("7a3c");function Pe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function Me(t){for(var e=1;e0?n("p",{staticClass:"number"},[n("Badge",{attrs:{count:e.num,type:"error",offset:[11,12]}},[n("a",{staticClass:"demo-badge",attrs:{href:"#"}})])],1):t._e(),n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.satt_dir,expression:"item.satt_dir"}],class:e.isSelect?"on":"",on:{click:function(n){return n.stopPropagation(),t.changImage(e,a,t.pictrueList)}}}),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"},on:{mouseenter:function(n){return t.enterLeave(e)},mouseleave:function(n){return t.enterLeave(e)}}},[e.isEdit?n("Input",{staticStyle:{width:"80%"},attrs:{size:"small",type:"text"},on:{"on-blur":function(n){return t.bindTxt(e)}},model:{value:e.real_name,callback:function(n){t.$set(e,"real_name",n)},expression:"item.real_name"}}):n("p",{staticStyle:{width:"80%"}},[t._v("\n "+t._s(e.editName)+"\n ")]),e.isShowEdit?n("span",{staticClass:"iconfont iconbianji1",on:{click:function(t){e.isEdit=!e.isEdit}}}):t._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.realName&&e.real_name,expression:"item.realName && item.real_name"}],staticClass:"nameStyle"},[t._v("\n "+t._s(e.real_name)+"\n ")])])})),0)])],1),n("div",{staticClass:"footer acea-row row-right"},[n("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.fileData.limit},on:{"on-change":t.pageChange}})],1)])])],1)],1)},i=[],o=(n("28a5"),n("ac6a"),n("75fc")),c=(n("96cf"),n("3b8d")),r=(n("6b54"),n("c5f6"),n("6b6c"));function s(t){return Object(r["a"])({url:"file/category",method:"get",params:t})}function u(t){return Object(r["a"])({url:"file/category/create",method:"get",params:t})}function l(t){return Object(r["a"])({url:"file/category/".concat(t,"/edit"),method:"get"})}function d(t){return Object(r["a"])({url:"file/file",method:"get",params:t})}function m(t){return Object(r["a"])({url:"file/file/do_move",method:"put",data:t})}function f(t,e){return Object(r["a"])({url:"file/file/update/"+t,method:"put",data:e})}var h=n("d708"),p=n("c276"),g={name:"uploadPictures",props:{isChoice:{type:String,default:""},gridBtn:{type:Object,default:null},gridPic:{type:Object,default:null},isShow:{type:Number,default:1}},data:function(){return{spinShow:!1,fileUrl:h["a"].apiBaseURL+"/file/upload",modalPic:!1,treeData:[],treeData2:[],pictrueList:[],uploadData:{},checkPicList:[],uploadName:{name:""},FromData:null,treeId:0,isJudge:!1,buttonProps:{type:"default",size:"small"},fileData:{pid:0,page:1,limit:18},total:0,pids:0,list:[],modalTitleSs:"",isShowPic:!1,header:{},ids:[]}},mounted:function(){this.getToken(),this.getList(),this.getFileList()},methods:{enterMouse:function(t){t.realName=!t.realName},enterLeave:function(t){t.isShowEdit=!t.isShowEdit},getToken:function(){this.header["Authori-zation"]="Bearer "+Object(p["d"])("token")},renderContent:function(t,e){var n=this,a=e.root,i=e.node,o=e.data,c=[];return 0==o.pid&&c.push(t("div",{class:["ivu-dropdown-item"],on:{click:function(){n.append(a,i,o)}}},"添加分类")),""!==o.id&&c.push(t("div",{class:["ivu-dropdown-item"],on:{click:function(){n.editPic(a,i,o)}}},"编辑分类"),t("div",{class:["ivu-dropdown-item"],on:{click:function(){n.remove(a,i,o,"分类")}}},"删除分类")),t("span",{class:["ivu-span"],style:{display:"inline-block",width:"88%",height:"32px",lineHeight:"32px",position:"relative",color:"rgba(0,0,0,0.6)",cursor:"pointer"},on:{mouseenter:function(){n.onMouseOver(a,i,o)},mouseleave:function(){n.onMouseOver(a,i,o)}}},[t("span",{on:{click:function(t){n.appendBtn(a,i,o,t)}}},o.title),t("div",{style:{display:"inline-block",float:"right"}},[t("Icon",{props:{type:"ios-more"},style:{marginRight:"8px",fontSize:"20px",display:"inline"},on:{click:function(t){n.onClick(a,i,o,t)}}}),t("div",{class:["right-menu ivu-poptip-inner"],style:{width:"80px",position:"absolute",zIndex:"9",top:"0",right:"0",display:o.flag2?"block":"none"}},c)])])},renderContentSel:function(t,e){var n=this,a=e.root,i=e.node,o=e.data;return t("div",{style:{display:"inline-block",width:"90%"}},[t("span",[t("span",{style:{cursor:"pointer"},class:["ivu-tree-title"],on:{click:function(t){n.handleCheckChange(a,i,o,t)}}},o.title)])])},handleCheckChange:function(t,e,n,a){this.list=[];var i=n.id,o=n.title;this.list.push({value:i,title:o}),this.ids.length?(this.pids=i,this.getMove()):this.$Message.warning("请先选择图片");for(var c=this.$refs.reference.$el.querySelectorAll(".ivu-tree-title-selected"),r=0;r1)return this.$Message.warning("最多只能选一张图片");this.$emit("getPic",this.checkPicList[0])}else{var t=this.$route.query.maxLength;if(void 0!=t&&this.checkPicList.length>Number(t))return this.$Message.warning("最多只能选"+t+"张图片");this.$emit("getPicD",this.checkPicList)}},editName:function(t){var e=t.real_name.split("."),n=void 0==e[1]?[]:e[1],a=e[0].length+n.length;t.editName=a<10?t.real_name:t.real_name.substr(0,2)+"..."+t.real_name.substr(-5,5)},bindTxt:function(t){var e=this;""==t.real_name&&this.$Message.error("请填写内容"),f(t.att_id,{real_name:t.real_name}).then((function(n){e.editName(t),t.isEdit=!1,e.$Message.success(n.msg)})).catch((function(t){e.$Message.error(t.msg)}))}}},b=g,v=(n("ce34"),n("2877")),A=Object(v["a"])(b,a,i,!1,null,"0cd74d4c",null);e["a"]=A.exports},b2ab:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"upload_img"},[n("div",{staticClass:"title"},[t._v(t._s(t.datas[t.name].title))]),n("div",{staticClass:"box",on:{click:function(e){return t.modalPicTap("单选")}}},[t.datas[t.name].url?n("img",{attrs:{src:t.datas[t.name].url,alt:""}}):n("div",{staticClass:"upload-box"},[n("Icon",{attrs:{type:"ios-camera-outline",size:"36"}})],1)]),n("div",[n("Modal",{attrs:{width:"950px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":888},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?n("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)])},i=[],o=(n("7f7f"),n("c5f6"),n("b0e7")),c={name:"c_upload_img",components:{uploadPictures:o["a"]},computed:{},props:{name:{type:String},configData:{type:null},configNum:{type:Number|String,default:"default"}},data:function(){return{defaultList:[{name:"a42bdcc1178e62b4694c830f028db5c0",url:"https://o5wwk8baw.qnssl.com/a42bdcc1178e62b4694c830f028db5c0/avatar"},{name:"bc7521e033abdd1e92222d733590f104",url:"https://o5wwk8baw.qnssl.com/bc7521e033abdd1e92222d733590f104/avatar"}],defaults:{},modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},activeIndex:0,datas:this.configData[this.configNum]}},watch:{configData:{handler:function(t,e){this.datas=t[this.configNum]},deep:!0}},mounted:function(){console.log("ssss",this.configNum)},methods:{modalPicTap:function(t){this.modalPic=!0},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var n=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:960px;height:550px;padding:20px;"});this.dialog=n;var a=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 a}),37)},getPic:function(t){var e=this;this.$nextTick((function(){e.configData[e.configNum][e.name].url=t.att_dir,e.modalPic=!1}))}}},r=c,s=(n("542e"),n("2877")),u=Object(s["a"])(r,a,i,!1,null,"7c8819c4",null);e["default"]=u.exports},b305:function(t,e,n){t.exports=n.p+"img/sheet_google_64_indexed_128.04280c7a.png"},b554:function(t,e,n){"use strict";var a=n("ba19"),i=n.n(a);i.a},b7be:function(t,e,n){"use strict";n.d(e,"q",(function(){return i})),n.d(e,"n",(function(){return o})),n.d(e,"p",(function(){return c})),n.d(e,"s",(function(){return r})),n.d(e,"S",(function(){return s})),n.d(e,"T",(function(){return u})),n.d(e,"t",(function(){return l})),n.d(e,"m",(function(){return d})),n.d(e,"r",(function(){return m})),n.d(e,"o",(function(){return f})),n.d(e,"db",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return b})),n.d(e,"e",(function(){return v})),n.d(e,"a",(function(){return A})),n.d(e,"Q",(function(){return k})),n.d(e,"O",(function(){return y})),n.d(e,"P",(function(){return x})),n.d(e,"j",(function(){return _})),n.d(e,"k",(function(){return w})),n.d(e,"Z",(function(){return j})),n.d(e,"i",(function(){return O})),n.d(e,"h",(function(){return C})),n.d(e,"l",(function(){return N})),n.d(e,"M",(function(){return L})),n.d(e,"W",(function(){return S})),n.d(e,"V",(function(){return D})),n.d(e,"U",(function(){return I})),n.d(e,"X",(function(){return T})),n.d(e,"E",(function(){return E})),n.d(e,"J",(function(){return B})),n.d(e,"Y",(function(){return P})),n.d(e,"R",(function(){return M})),n.d(e,"g",(function(){return R})),n.d(e,"f",(function(){return V})),n.d(e,"eb",(function(){return U})),n.d(e,"cb",(function(){return z})),n.d(e,"ab",(function(){return F})),n.d(e,"bb",(function(){return Q})),n.d(e,"I",(function(){return G})),n.d(e,"z",(function(){return q})),n.d(e,"A",(function(){return W})),n.d(e,"C",(function(){return Z})),n.d(e,"D",(function(){return J})),n.d(e,"F",(function(){return Y})),n.d(e,"B",(function(){return H})),n.d(e,"u",(function(){return X})),n.d(e,"v",(function(){return K})),n.d(e,"w",(function(){return $})),n.d(e,"x",(function(){return tt})),n.d(e,"y",(function(){return et})),n.d(e,"G",(function(){return nt})),n.d(e,"H",(function(){return at})),n.d(e,"K",(function(){return it})),n.d(e,"L",(function(){return ot})),n.d(e,"N",(function(){return ct}));var a=n("6b6c");function i(t){return Object(a["a"])({url:"marketing/coupon/list",method:"get",params:t})}function o(t){return Object(a["a"])({url:"marketing/coupon/create/".concat(t),method:"get"})}function c(t){return Object(a["a"])({url:"marketing/coupon/".concat(t,"/edit"),method:"get"})}function r(t){return Object(a["a"])({url:"marketing/coupon/issue/".concat(t),method:"get"})}function s(t){return Object(a["a"])({url:"marketing/coupon/released",method:"get",params:t})}function u(t){return Object(a["a"])({url:"marketing/coupon/released/issue_log/".concat(t),method:"get"})}function l(t){return Object(a["a"])({url:"marketing/coupon/status/".concat(t.id,"/").concat(t.status),method:"get"})}function d(t){return Object(a["a"])({url:"product/category/tree/".concat(t),method:"get"})}function m(t){return Object(a["a"])({url:"marketing/coupon/save_coupon",method:"post",data:t})}function f(t){return Object(a["a"])({url:"marketing/coupon/copy/".concat(t),method:"get"})}function h(t){return Object(a["a"])({url:"/marketing/coupon/user",method:"get",params:t})}function p(t){return Object(a["a"])({url:"marketing/bargain",method:"get",params:t})}function g(t){return Object(a["a"])({url:"marketing/bargain/".concat(t),method:"get"})}function b(t){return Object(a["a"])({url:"marketing/bargain/".concat(t.id),method:"POST",data:t})}function v(t){return Object(a["a"])({url:"marketing/bargain/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function A(t){return Object(a["a"])({url:"marketing/advance/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function k(t){return Object(a["a"])({url:"marketing/advance/index",method:"get",params:t})}function y(t){return Object(a["a"])({url:"marketing/advance/save/".concat(t.id),method:"POST",data:t})}function x(t){return Object(a["a"])({url:"marketing/advance/info/".concat(t),method:"get"})}function _(t){return Object(a["a"])({url:"marketing/combination",method:"get",params:t})}function w(t){return Object(a["a"])({url:"marketing/combination/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function j(){return Object(a["a"])({url:"marketing/combination/statistics",method:"GET"})}function O(t){return Object(a["a"])({url:"marketing/combination/".concat(t),method:"get"})}function C(t){return Object(a["a"])({url:"marketing/combination/".concat(t.id),method:"POST",data:t})}function N(t){return Object(a["a"])({url:"marketing/combination/combine/list",method:"GET",params:t})}function L(t){return Object(a["a"])({url:"marketing/combination/order_pink/".concat(t),method:"GET"})}function S(t){return Object(a["a"])({url:"marketing/seckill",method:"GET",params:t})}function D(t){return Object(a["a"])({url:"marketing/seckill/".concat(t),method:"GET"})}function I(t){return Object(a["a"])({url:"marketing/seckill/".concat(t.id),method:"post",data:t})}function T(t){return Object(a["a"])({url:"marketing/seckill/set_status/".concat(t.id,"/").concat(t.status),method:"put"})}function E(t){return Object(a["a"])({url:"marketing/integral",method:"GET",params:t})}function B(t){return Object(a["a"])({url:"marketing/integral/statistics",method:"GET",params:t})}function P(){return Object(a["a"])({url:"marketing/seckill/time_list",method:"GET"})}function M(t,e){return Object(a["a"])({url:"product/product/attrs/".concat(t,"/").concat(e),method:"GET"})}function R(t){return Object(a["a"])({url:"marketing/bargain_list",method:"get",params:t})}function V(t){return Object(a["a"])({url:"marketing/bargain_list_info/".concat(t),method:"get"})}function U(t){return Object(a["a"])({url:"export/userPoint",method:"get",params:t})}function z(t){return Object(a["a"])({url:"export/storeBargain",method:"get",params:t})}function F(t){return Object(a["a"])({url:"export/storeCombination",method:"get",params:t})}function Q(t){return Object(a["a"])({url:"export/storeSeckill",method:"get",params:t})}function G(t){return Object(a["a"])({url:"marketing/integral_product",method:"GET",params:t})}function q(t){return Object(a["a"])({url:"marketing/integral/".concat(t.id),method:"post",data:t})}function W(t){return Object(a["a"])({url:"marketing/integral/batch",method:"post",data:t})}function Z(t){return Object(a["a"])({url:"marketing/integral/".concat(t),method:"GET"})}function J(t){return Object(a["a"])({url:"marketing/integral/set_show/".concat(t.id,"/").concat(t.is_show),method:"put"})}function Y(t){return Object(a["a"])({url:"marketing/integral/order/list",method:"get",params:t})}function H(t){return Object(a["a"])({url:"marketing/integral/order/chart",method:"get",params:t})}function X(t){return Object(a["a"])({url:"marketing/integral/order/express/".concat(t),method:"get"})}function K(t){return Object(a["a"])({url:"marketing/integral/order/express_list?status="+t,method:"get"})}function $(t){return Object(a["a"])({url:"marketing/integral/order/info/".concat(t),method:"get"})}function tt(t){return Object(a["a"])({url:"marketing/integral/order/distribution/".concat(t),method:"get"})}function et(t){return Object(a["a"])({url:"marketing/integral/order/status/".concat(t.id),method:"get",params:t.datas})}function nt(t){return Object(a["a"])({url:"marketing/integral/order/delivery/".concat(t.id),method:"put",data:t.datas})}function at(t){return Object(a["a"])({url:"marketing/integral/order/remark/".concat(t.id),method:"put",data:t.remark})}function it(){return Object(a["a"])({url:"marketing/integral/order/delivery/list",method:"get"})}function ot(t){return Object(a["a"])({url:"marketing/integral/order/express/temp",method:"get",params:t})}function ct(){return Object(a["a"])({url:"marketing/integral/order/sheet_info",method:"get"})}},b7c7:function(t,e,n){"use strict";n.r(e);var a=n("4360");e["default"]={install:function(t,e){e.developmentOff,t.config.errorHandler=function(e,n,i){var o={type:"script",code:0,mes:e.message,url:window.location.href};t.nextTick((function(){a["a"].dispatch("addErrorLog",o)}))}}}},b996:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.datas[t.name].tabList?n("div",{staticClass:"title-tips"},[n("span",[t._v("选择模板")]),t._v(t._s(t.datas[t.name].tabList[t.datas[t.name].tabVal].name)+"\n ")]):t._e(),n("div",{staticClass:"radio-box",class:{on:1==t.datas[t.name].type}},[n("RadioGroup",{attrs:{type:"button",size:"large"},on:{"on-change":function(e){return t.radioChange(e)}},model:{value:t.datas[t.name].tabVal,callback:function(e){t.$set(t.datas[t.name],"tabVal",e)},expression:"datas[name].tabVal"}},t._l(t.datas[t.name].tabList,(function(e,a){return n("Radio",{key:a,attrs:{label:a}},[e.icon?n("span",{staticClass:"iconfont",class:e.icon}):n("span",[t._v(t._s(e.name))])])})),1)],1)])},i=[],o=(n("c5f6"),{name:"c_tab",props:{name:{type:String},configData:{type:null},configNum:{type:Number|String,default:"default"},moduleName:{type:String}},data:function(){return{formData:{type:0},defaults:{},datas:this.configData[this.configNum]}},watch:{configData:{handler:function(t,e){this.datas=t[this.configNum],this.$store.commit("moren/upDataGoodList",{name:this.moduleName,type:this.datas.tabConfig.tabVal})},deep:!0}},mounted:function(){this.$nextTick((function(){}))},methods:{radioChange:function(t){this.$emit("getConfig",t),this.$store.commit("moren/upDataGoodList",{name:this.moduleName,type:t})}}}),c=o,r=(n("836c"),n("2877")),s=Object(r["a"])(c,a,i,!1,null,"5533db38",null);e["default"]=s.exports},ba19:function(t,e,n){},bbe3:function(t,e,n){"use strict";var a=n("d7c5"),i=n.n(a);i.a},be35:function(t,e,n){},be5c:function(t,e,n){"use strict";var a=n("1255"),i=n.n(a);i.a},bf0d:function(t,e,n){},c24f:function(t,e,n){"use strict";n.d(e,"A",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"m",(function(){return c})),n.d(e,"a",(function(){return r})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"l",(function(){return l})),n.d(e,"n",(function(){return d})),n.d(e,"p",(function(){return m})),n.d(e,"s",(function(){return f})),n.d(e,"r",(function(){return h})),n.d(e,"q",(function(){return p})),n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"j",(function(){return A})),n.d(e,"u",(function(){return k})),n.d(e,"k",(function(){return y})),n.d(e,"t",(function(){return x})),n.d(e,"B",(function(){return _})),n.d(e,"x",(function(){return w})),n.d(e,"w",(function(){return j})),n.d(e,"h",(function(){return O})),n.d(e,"D",(function(){return C})),n.d(e,"z",(function(){return N})),n.d(e,"y",(function(){return L})),n.d(e,"v",(function(){return S})),n.d(e,"C",(function(){return D})),n.d(e,"g",(function(){return I})),n.d(e,"o",(function(){return T}));var a=n("6b6c");function i(t){return Object(a["a"])({url:"user/user",method:"get",params:t})}function o(t){return Object(a["a"])({url:"user/user/".concat(t,"/edit"),method:"get"})}function c(t){return Object(a["a"])({url:"user/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}function r(t){return Object(a["a"])({url:"marketing/coupon/grant",method:"get",params:t})}function s(t){return Object(a["a"])({url:"user/edit_other/".concat(t),method:"get"})}function u(t){return Object(a["a"])({url:"user/user/".concat(t),method:"get"})}function l(t){return Object(a["a"])({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function d(t){return Object(a["a"])({url:"user/user_level/vip_list",method:"get",params:t})}function m(t){return Object(a["a"])({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function f(t,e){return Object(a["a"])({url:"user/user_level/task/".concat(t),method:"get",params:e})}function h(t){return Object(a["a"])({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function p(t){return Object(a["a"])({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function g(t){return Object(a["a"])({url:"/user/user_level/create_task",method:"get",params:t})}function b(t){return Object(a["a"])({url:"user/user_level/create",method:"get",params:t})}function v(t){return Object(a["a"])({url:"user/give_level/".concat(t),method:"get"})}function A(t){return Object(a["a"])({url:"user/give_level_time/".concat(t),method:"get"})}function k(t){return Object(a["a"])({url:"user/user_group/list",method:"get",params:t})}function y(t){return Object(a["a"])({url:"user/user_group/add/".concat(t),method:"get"})}function x(t){return Object(a["a"])({url:"setting/update_admin",method:"PUT",data:t})}function _(t){return Object(a["a"])({url:"user/set_group",method:"post",data:t})}function w(t){return Object(a["a"])({url:"user/user_label",method:"get",params:t})}function j(t){return Object(a["a"])({url:"user/user_label_cate/all",method:"get",params:t})}function O(){return Object(a["a"])({url:"/user/user/create",method:"get"})}function C(){return Object(a["a"])({url:"/user/user/syncUsers",method:"get"})}function N(t){return Object(a["a"])({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function L(t){return Object(a["a"])({url:"user/user_label_cate/create",method:"get"})}function S(t){return Object(a["a"])({url:"user/user_label/add/".concat(t),method:"get"})}function D(t){return Object(a["a"])({url:"user/set_label",method:"post",data:t})}function I(t){return Object(a["a"])({url:"user/label/".concat(t),method:"get"})}function T(t,e){return Object(a["a"])({url:"user/label/".concat(t),method:"post",data:e})}},c276:function(t,e,n){"use strict";n.d(e,"q",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"m",(function(){return g})),n.d(e,"c",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"t",(function(){return A})),n.d(e,"r",(function(){return k})),n.d(e,"j",(function(){return y})),n.d(e,"e",(function(){return x})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return w})),n.d(e,"b",(function(){return O})),n.d(e,"n",(function(){return C})),n.d(e,"o",(function(){return N})),n.d(e,"l",(function(){return L})),n.d(e,"k",(function(){return S})),n.d(e,"p",(function(){return D})),n.d(e,"s",(function(){return I})),n.d(e,"a",(function(){return T})),n.d(e,"f",(function(){return E}));n("8e6e"),n("456d"),n("7514"),n("ac6a"),n("28a5"),n("20d6"),n("a481"),n("6762"),n("2fdb");var a=n("75fc"),i=n("bd86"),o=(n("7f7f"),n("a78e")),c=n.n(o),r=n("f121"),s=n("90de"),u=n("2ef0");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function d(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"home",a=-1,i=e.length,o={};while(++a=0||c.push({name:n,path:i,meta:o}),c},w=function(t,e){var n={};if(2===t.length)n=x(t);else{var a=t.findIndex((function(t){return C(t,e)}));n=a===t.length-1?t[t.length-2]:t[a+1]}return n},j=function(t,e){var n=-1;while(++n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4?arguments[4]:void 0;window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)});var o=Math.abs(e-n),c=Math.ceil(o/a*50),r=function e(n,a,o){if(n!==a){var c=n+o>a?a:n+o;n>a&&(c=n-o0)if("image"===this.$route.query.fodder){var t=form_create_helper.get("image");form_create_helper.set("image",t.concat(this.images)),form_create_helper.close("image")}else this.$emit("getProductId",this.images);else this.$Message.warning("请先选择商品")},userSearchs:function(){this.currentid=0,this.productRow={},this.formValidate.page=1,this.diy?this.productList():this.getList()},clear:function(){this.productRow.id="",this.currentid=""}}},l=u,d=(n("679f"),n("2877")),m=Object(d["a"])(l,a,i,!1,null,"0e4efae4",null);e["default"]=m.exports},c4c8:function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"k",(function(){return o})),n.d(e,"o",(function(){return c})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"w",(function(){return u})),n.d(e,"x",(function(){return l})),n.d(e,"F",(function(){return d})),n.d(e,"u",(function(){return m})),n.d(e,"n",(function(){return f})),n.d(e,"v",(function(){return h})),n.d(e,"p",(function(){return p})),n.d(e,"q",(function(){return g})),n.d(e,"D",(function(){return b})),n.d(e,"c",(function(){return v})),n.d(e,"y",(function(){return A})),n.d(e,"C",(function(){return k})),n.d(e,"e",(function(){return y})),n.d(e,"f",(function(){return x})),n.d(e,"g",(function(){return _})),n.d(e,"i",(function(){return w})),n.d(e,"B",(function(){return j})),n.d(e,"z",(function(){return O})),n.d(e,"A",(function(){return C})),n.d(e,"h",(function(){return N})),n.d(e,"r",(function(){return L})),n.d(e,"t",(function(){return S})),n.d(e,"s",(function(){return D})),n.d(e,"E",(function(){return I})),n.d(e,"d",(function(){return T})),n.d(e,"m",(function(){return E})),n.d(e,"G",(function(){return B})),n.d(e,"l",(function(){return P}));var a=n("6b6c");function i(){return Object(a["a"])({url:"product/product/type_header",method:"get"})}function o(t){return Object(a["a"])({url:"product/product",method:"get",params:t})}function c(){return Object(a["a"])({url:"product/cache",method:"get"})}function r(){return Object(a["a"])({url:"product/cache",method:"delete"})}function s(t,e){return Object(a["a"])({url:"product/product/set_show/".concat(t,"/").concat(e),method:"put"})}function u(t){return Object(a["a"])({url:"product/product/product_show",method:"put",data:t})}function l(t){return Object(a["a"])({url:"product/product/product_unshow",method:"put",data:t})}function d(t){return Object(a["a"])({url:"product/category/tree/".concat(t),method:"get"})}function m(t){return Object(a["a"])({url:"product/product/".concat(t),method:"get"})}function f(t){return Object(a["a"])({url:"product/product/".concat(t.id),method:"POST",data:t})}function h(t){return Object(a["a"])({url:"product/category",method:"get",params:t})}function p(){return Object(a["a"])({url:"product/category/create",method:"get"})}function g(t){return Object(a["a"])({url:"product/category/".concat(t),method:"get"})}function b(t){return Object(a["a"])({url:"product/category/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function v(t){return Object(a["a"])({url:"product/product/list",method:"GET",params:t})}function A(t){return Object(a["a"])({url:"product/reply",method:"get",params:t})}function k(t,e){return Object(a["a"])({url:"product/reply/set_reply/".concat(e),method:"PUT",data:t})}function y(){return Object(a["a"])({url:"product/copy_config",method:"get"})}function x(t){return Object(a["a"])({url:"product/copy",method:"POST",data:t})}function _(t){return Object(a["a"])({url:"product/crawl/save",method:"POST",data:t})}function w(t,e,n){return Object(a["a"])({url:"product/generate_attr/".concat(e,"/").concat(n),method:"POST",data:t})}function j(t){return Object(a["a"])({url:"product/product/rule",method:"GET",params:t})}function O(t,e){return Object(a["a"])({url:"product/product/rule/".concat(e),method:"POST",data:t})}function C(t){return Object(a["a"])({url:"product/product/rule/".concat(t),method:"get"})}function N(t){return Object(a["a"])({url:"product/reply/fictitious_reply/".concat(t),method:"get"})}function L(){return Object(a["a"])({url:"product/product/get_rule",method:"get"})}function S(){return Object(a["a"])({url:"product/product/get_template",method:"get"})}function D(){return Object(a["a"])({url:"product/product/get_temp_keys",method:"get"})}function I(t){return Object(a["a"])({url:"export/storeProduct",method:"get",params:t})}function T(t){return Object(a["a"])({url:"product/product/check_activity/".concat(t),method:"get"})}function E(){return Object(a["a"])({url:"user/user_label",method:"get"})}function B(){return Object(a["a"])({url:"file/upload_type",method:"get"})}function P(t){return Object(a["a"])({url:"product/product/import_card",method:"get",params:t})}},c759:function(t,e,n){t.exports=n.p+"img/foo4-01.b50f04b1.png"},c7a6:function(t,e,n){},ca62:function(t,e,n){},ccbf:function(t,e,n){},ccf0:function(t,e){t.exports="data:image/png;base64,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"},cd95:function(t,e,n){"use strict";var a=n("73cb"),i=n.n(a);i.a},ce34:function(t,e,n){"use strict";var a=n("6aed"),i=n.n(a);i.a},d548:function(t,e,n){"use strict";var a=n("5c24"),i=n.n(a);i.a},d635:function(t,e,n){t.exports=n.p+"media/newOrderAudioLink.71ee2b71.mp3"},d708:function(t,e,n){"use strict";var a="",i=a||"".concat(location.origin,"/adminapi"),o={apiBaseURL:i,routerMode:"history",showProgressBar:!0};e["a"]=o},d720:function(t,e,n){},d7c5:function(t,e,n){},e211:function(t,e){t.exports="data:image/png;base64,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"},e282:function(t,e,n){"use strict";var a=n("f184"),i=n.n(a);i.a},e553:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.defaults.goodsList?n("div",{staticClass:"goods-box"},[n("div",{staticClass:"wrapper"},[n("draggable",{staticClass:"dragArea list-group",attrs:{list:t.defaults.goodsList.list,group:"peoples"}},[t._l(t.defaults.goodsList.list,(function(e,a){return t.defaults.goodsList.list.length?n("div",{key:a,staticClass:"item"},[n("img",{attrs:{src:1==t.type?e.pic:e.image,alt:""}}),n("span",{staticClass:"iconfont icondel_1",on:{click:function(e){return e.stopPropagation(),t.bindDelete(a)}}})]):t._e()})),n("div",{staticClass:"add-item item",on:{click:function(e){t.modals=!0}}},[n("span",{staticClass:"iconfont iconaddto"})])],2)],1),n("Modal",{staticClass:"paymentFooter",class:t.type?"":"middleTop",attrs:{loading:t.loading,title:t.titles,scrollable:"",width:"900"},on:{"on-cancel":t.cancel,"on-ok":t.ok},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals&&1==t.type?n("sort-list",{ref:"goodslist",on:{getProductDiy:t.getProductDiy}}):t._e(),t.modals&&1!=t.type?n("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0,type:t.type,is_new:t.is_new,diy:!0},on:{getProductDiy:t.getProductDiy}}):t._e()],1)],1):t._e()},i=[],o=(n("ac6a"),n("5df3"),n("f400"),n("c5f6"),n("310e")),c=n.n(o),r=n("c4ad"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"goodList"},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":120,"label-position":"right"}},[n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"商品分类:","label-for":"pid"}},[n("Select",{staticStyle:{width:"230px"},attrs:{clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.pid,callback:function(e){t.$set(t.formValidate,"pid",e)},expression:"formValidate.pid"}},t._l(t.treeSelect,(function(e){return n("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.cate_name)+"\n ")])})),1)],1)],1),n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"商品搜索:","label-for":"store_name"}},[n("Input",{staticStyle:{width:"80%"},attrs:{search:"","enter-button":"",placeholder:"请输入商品分类,id"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.name,callback:function(e){t.$set(t.formValidate,"name",e)},expression:"formValidate.name"}})],1)],1)],1)],1),n("Table",{ref:"table",attrs:{"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果","max-height":"400",columns:t.columns,data:t.tableList,loading:t.loading},on:{"on-selection-change":t.selectionGood},scopedSlots:t._u([{key:"image",fn:function(t){var e=t.row;t.index;return[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.pic,expression:"row.pic"}]})])]}}])})],1)},u=[],l=(n("96cf"),n("3b8d")),d=n("f478"),m={name:"index",props:{},data:function(){return{formValidate:{pid:0,name:""},treeSelect:[],loading:!1,grid:{xl:10,lg:10,md:12,sm:24,xs:24},tableList:[],currentid:0,productRow:{},columns:[{type:"selection",width:60,align:"center"},{title:"商品ID",key:"id"},{title:"图片",slot:"image"},{title:"商品分类",key:"cate_name",minWidth:150}],images:[]}},computed:{},created:function(){},mounted:function(){this.goodsCategory(),this.getList()},methods:{selectionGood:function(t){this.$emit("getProductDiy",t)},goodsCategory:function(){var t=this;Object(d["e"])().then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,Object(d["e"])(this.formValidate).then(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.tableList=n.data,t.loading=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},userSearchs:function(){this.getList()}}},f=m,h=(n("e9b6"),n("2877")),p=Object(h["a"])(f,s,u,!1,null,"48fc96de",null),g=p.exports,b={name:"c_goods",props:{name:{type:String},configData:{type:null},configNum:{type:Number|String,default:"default"}},components:{goodsList:r["default"],sortList:g,draggable:c.a},watch:{configData:{handler:function(t,e){this.defaults=t[this.configNum];var n=t[this.configNum].titleInfo?t[this.configNum].titleInfo.type:0;switch(this.type=t[this.configNum].selectConfig.type?t[this.configNum].selectConfig.type:n||0,console.log("huhu",this.type),this.type){case 0:this.titles="商品列表";break;case 1:this.titles="分类列表";break;case 8:this.titles="砍价列表";break;case 2:this.titles="秒杀列表";break;case 3:this.titles="拼团列表";break;default:}},immediate:!0,deep:!0}},data:function(){return{modals:!1,goodsList:[],tempGoods:[],defaults:{},type:"",is_new:"",loading:!0,titles:""}},created:function(){this.defaults=this.configData[this.configNum],this.is_new=this.configData[this.configNum].is_new},methods:{getProductDiy:function(t){this.tempGoods=t,this.loading=!1},cancel:function(){this.tempGoods=[]},unique:function(t){var e=new Map;return t.filter((function(t){return!e.has(t.id)&&e.set(t.id,1)}))},ok:function(){if(!this.tempGoods.length)return this.$Message.warning("请先选择商品");var t=this.defaults.goodsList.list;t.push.apply(t,this.tempGoods);var e=this.unique(t);this.defaults.goodsList.list=e},bindDelete:function(t){this.defaults.goodsList.list.splice(t,1)}}},v=b,A=(n("17c3"),Object(h["a"])(v,a,i,!1,null,"2e7eb6e8",null));e["default"]=A.exports},e573:function(t,e,n){"use strict";var a=n("c7a6"),i=n.n(a);i.a},e9b6:function(t,e,n){"use strict";var a=n("020c"),i=n.n(a);i.a},ea81:function(t,e,n){},eb5c:function(t,e,n){},ed11:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tabBars"},[n("div",{staticClass:"title"},[t._v(t._s(t.datas[t.name].title))]),n("draggable",{staticClass:"dragArea list-group",attrs:{list:t.datas[t.name].list,group:"peoples",handle:".iconfont"}},t._l(t.datas[t.name].list,(function(e,a){return n("div",{key:a,staticClass:"box-item"},[n("div",{staticClass:"left-tool"},[n("span",{staticClass:"iconfont icondrag2"})]),n("div",{staticClass:"right-wrapper"},[n("div",{staticClass:"img-wrapper"},t._l(e.imgList,(function(e,i){return n("div",{staticClass:"img-item",on:{click:function(e){return t.modalPicTap("单选",a,i)}}},[e?n("img",{attrs:{src:e,alt:""}}):t._e(),e?n("p",{staticClass:"txt"},[t._v(t._s(0==i?"选中":"未选中"))]):n("div",{staticClass:"empty-img"},[n("span",{staticClass:"iconfont iconjiahao"}),n("p",[t._v(t._s(0==i?"选中":"未选中"))])])])})),0),n("div",{staticClass:"c_row-item"},[n("Col",{staticClass:"label",attrs:{span:"4"}},[t._v("\n 名称\n ")]),n("Col",{staticClass:"slider-box",attrs:{span:"19"}},[n("Input",{attrs:{placeholder:"选填不超过10个字"},model:{value:e.name,callback:function(n){t.$set(e,"name",n)},expression:"item.name"}})],1)],1),n("div",{staticClass:"c_row-item"},[n("Col",{staticClass:"label",attrs:{span:"4"}},[t._v("\n 链接\n ")]),n("Col",{staticClass:"slider-box",attrs:{span:"19"}},[n("Input",{attrs:{placeholder:"选填不超过10个字"},model:{value:e.link,callback:function(n){t.$set(e,"link",n)},expression:"item.link"}})],1)],1)]),n("div",{staticClass:"del-box",on:{click:function(e){return t.deleteMenu(a)}}},[n("span",{staticClass:"iconfont iconcha"})])])})),0),t.datas[t.name].list.length<5?n("div",{staticClass:"add-btn"},[n("Button",{staticStyle:{width:"100%",height:"40px","border-color":"#1890FF",color:"#1890FF"},attrs:{type:"primary",ghost:""},on:{click:t.addMenu}},[t._v("添加图文导航\n ")])],1):t._e(),n("div",[n("Modal",{attrs:{width:"950px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":888},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?n("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)],1)},i=[],o=(n("7f7f"),n("c5f6"),n("310e")),c=n.n(o),r=n("b0e7"),s={name:"c_tab_bar",props:{name:{type:String},configData:{type:null},configNum:{type:Number|String,default:"default"}},components:{uploadPictures:r["a"],draggable:c.a},data:function(){return{modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},activeIndex:0,isSelect:0,datas:this.configData[this.configNum],lastObj:{}}},mounted:function(){},watch:{configData:{handler:function(t,e){this.datas=t[this.configNum]},deep:!0}},methods:{addMenu:function(){if(0==this.configData[this.configNum][this.name].list.length)this.configData[this.configNum][this.name].list.push(this.lastObj);else{var t=JSON.parse(JSON.stringify(this.configData[this.configNum][this.name].list[this.configData[this.configNum][this.name].list.length-1]));this.configData[this.configNum][this.name].list.push(t)}},deleteMenu:function(t){var e=this;this.$Modal.confirm({title:"提示",content:"是否确定删除该菜单",onOk:function(){1==e.configData[e.configNum][e.name].list.length&&(e.lastObj=e.configData[e.configNum][e.name].list[0]),e.configData[e.configNum][e.name].list.splice(t,1)},onCancel:function(){}})},modalPicTap:function(t,e,n){this.activeIndex=e,this.modalPic=!0,this.isSelect=n},getPic:function(t){var e=this;this.$nextTick((function(){e.configData[e.configNum][e.name].list[e.activeIndex].imgList[e.isSelect]=t.att_dir,e.modalPic=!1}))}}},u=s,l=(n("8990"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"3d6c686f",null);e["default"]=d.exports},ef8e:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.datas?n("div",{staticClass:"c_product"},[n("div",{staticClass:"title"},[t._v(t._s(t.datas[t.name].title))]),n("div",{staticClass:"list-box"},[n("draggable",{staticClass:"dragArea list-group",attrs:{list:t.datas[t.name].list,group:"peoples",handle:".move-icon"}},t._l(t.datas[t.name].list,(function(e,a){return n("div",{key:a,staticClass:"item"},[n("div",{staticClass:"move-icon"},[n("span",{staticClass:"iconfont icondrag2"})]),n("div",{staticClass:"content"},[t._l(e.chiild,(function(e,i){return n("div",{key:i,staticClass:"con-item"},["链接"===e.title?n("div",{staticClass:"dif"},[n("Col",{staticClass:"label"},[n("span",[t._v(t._s(e.title))])]),n("Col",{staticClass:"slider-box"},[n("div",{staticClass:"input-box",on:{click:function(e){return t.getLink(a,i)}}},[n("Input",{attrs:{placeholder:e.pla,maxlength:e.max,icon:"ios-arrow-forward",readonly:""},model:{value:e.val,callback:function(n){t.$set(e,"val",n)},expression:"list.val"}})],1)])],1):n("div",{staticClass:"dif"},[n("Col",{staticClass:"label"},[n("span",[t._v(t._s(e.title))])]),n("Col",{staticClass:"slider-box",attrs:{span:"19"}},[n("Input",{staticStyle:{"text-align":"right"},attrs:{placeholder:e.pla,maxlength:e.max},model:{value:e.val,callback:function(n){t.$set(e,"val",n)},expression:"list.val"}})],1)],1)])})),e.link?n("div",{staticClass:"con-item"},[n("span",[t._v(t._s(e.link.title))]),n("Select",{model:{value:e.link.activeVal,callback:function(n){t.$set(e.link,"activeVal",n)},expression:"item.link.activeVal"}},t._l(e.link.optiops,(function(e,a){return n("Option",{key:a,attrs:{value:e.value}},[t._v(t._s(e.label)+"\n ")])})),1)],1):t._e()],2),t.datas[t.name].max>1?n("div",{staticClass:"delete",on:{click:function(e){return e.stopPropagation(),t.bindDelete(a)}}},[n("Icon",{attrs:{type:"ios-close-circle",size:"26"}})],1):t._e()])})),0)],1),t.datas[t.name]?n("div",[t.datas[t.name].list.lengthv;)b(g[v++]);l.constructor=s,s.prototype=l,n("2aba")(r,"RegExp",s)}n("7a56")("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return l}));n("8e6e"),n("ac6a"),n("456d");var r=n("bd86");n("6b54"),n("3b2b"),n("a481");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return c({required:!0,message:t,type:"string"},e)}function l(t){return f.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(d,"请输入%s"),s(l,"%s格式不正确");var f=Object.keys(u).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(r["a"])({},e,t);return c(c({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),a)},s(t[e],u[e]),t}),{})},a694:function(t,e,n){},b562:function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"t",(function(){return c})),n.d(e,"p",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return s})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return p})),n.d(e,"q",(function(){return h})),n.d(e,"s",(function(){return b})),n.d(e,"r",(function(){return g})),n.d(e,"x",(function(){return v})),n.d(e,"k",(function(){return m})),n.d(e,"c",(function(){return O})),n.d(e,"w",(function(){return w})),n.d(e,"u",(function(){return j})),n.d(e,"v",(function(){return y})),n.d(e,"o",(function(){return E})),n.d(e,"m",(function(){return _})),n.d(e,"n",(function(){return C})),n.d(e,"l",(function(){return x})),n.d(e,"b",(function(){return P}));var r=n("6b6c");function a(){return Object(r["a"])({url:"app/routine/syncSubscribe",method:"GET"})}function c(){return Object(r["a"])({url:"app/wechat/syncSubscribe",method:"GET"})}function o(t){return Object(r["a"])({url:"app/wechat/menu",method:"get"})}function i(t){return Object(r["a"])({url:"app/wechat/menu",method:"post",data:t})}function u(t){return Object(r["a"])({url:t.url,method:"post",data:t.key})}function s(t){return Object(r["a"])({url:"app/routine/download",method:"post",data:t})}function d(){return Object(r["a"])({url:"app/routine/info",method:"get"})}function l(t){return Object(r["a"])({url:"app/wechat/keyword",method:"get",params:t})}function f(t){return Object(r["a"])({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function p(t,e){return Object(r["a"])({url:t,method:"get",params:e.key})}function h(t){return Object(r["a"])({url:"/app/wechat/news",method:"POST",data:t})}function b(t){return Object(r["a"])({url:"app/wechat/news",method:"GET",params:t})}function g(t){return Object(r["a"])({url:"app/wechat/news/".concat(t),method:"GET"})}function v(t){return Object(r["a"])({url:"app/wechat/user",method:"GET",params:t})}function m(){return Object(r["a"])({url:"app/wechat/user/tag_group",method:"GET"})}function O(t){return Object(r["a"])({url:t,method:"GET"})}function w(){return Object(r["a"])({url:"app/wechat/tag",method:"GET"})}function j(){return Object(r["a"])({url:"app/wechat/tag/create",method:"GET"})}function y(t){return Object(r["a"])({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function E(){return Object(r["a"])({url:"app/wechat/group",method:"GET"})}function _(){return Object(r["a"])({url:"app/wechat/group/create",method:"GET"})}function C(t){return Object(r["a"])({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function x(t){return Object(r["a"])({url:"app/wechat/action",method:"GET",params:t})}function P(t){return Object(r["a"])({url:"app/wechat/code_reply/".concat(t),method:"GET"})}},c959:function(t,e,n){"use strict";var r=n("a694"),a=n.n(r);a.a},ddee: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",[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])])]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"flex-wrapper"},[n("div",[n("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{src:t.iframeUrl,frameborder:"0"}}),n("div",{staticClass:"mask"})]),n("div",{staticClass:"right"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-box title"},[n("div",{staticClass:"line"}),n("div",{staticClass:"right title"},[t._v("小程序设置")])]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序名称:")]),n("div",{staticClass:"right"},[t._v(t._s(t.pageData.routine_name||"未命名"))])]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序码:")]),n("div",{staticClass:"right"},[n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.downLoadCode(t.pageData.code)}}},[t._v("下载小程序码")])],1)]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序包:")]),n("div",{staticClass:"right"},[n("span",[t._v("是否已开通小程序直播")]),n("RadioGroup",{staticClass:"rad",attrs:{size:"large"},model:{value:t.is_live,callback:function(e){t.is_live=e},expression:"is_live"}},[n("Radio",{attrs:{label:0}},[t._v("未开通")]),n("Radio",{attrs:{label:1}},[t._v("已开通")])],1)],1)]),n("div",{staticClass:"content-box last"},[n("div",{staticClass:"left"}),n("div",{staticClass:"right"},[n("div",[t._v("\n 请谨慎选择是否有开通小程序直播功能,否则将影响小程序的发布\n 可前往\n "),n("a",{attrs:{href:t.pageData.help,target:"_blank"}},[t._v("帮助文档")]),t._v("\n 查看如何开通直播功能\n ")]),n("Button",{staticClass:"mt10",attrs:{type:"primary"},on:{click:function(e){return t.downLoad()}}},[t._v("下载小程序包")])],1)])])])])])],1)},a=[],c=(n("8e6e"),n("ac6a"),n("456d"),n("bd86")),o=n("b562"),i=n("2f62"),u=n("61f7");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;eg;)h(v[g++]);u.constructor=c,c.prototype=u,a("2aba")(i,"RegExp",c)}a("7a56")("RegExp")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return d})),a.d(e,"b",(function(){return u}));a("8e6e"),a("ac6a"),a("456d");var i=a("bd86");a("6b54"),a("3b2b"),a("a481");function r(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return o({required:!0,message:t,type:"string"},e)}function u(t){return m.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}c(d,"请输入%s"),c(u,"%s格式不正确");var m=Object.keys(l).reduce((function(t,e){return t[e]=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="range"===e?{min:t[0],max:t[1]}:Object(i["a"])({},e,t);return o(o({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},n),r)},c(t[e],l[e]),t}),{})},"6f83":function(t,e,a){"use strict";var i=a("0b9c"),r=a.n(i);r.a},"6fd3":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Modal",{attrs:{scrollable:"",title:"商品规格",width:"950"},on:{"on-cancel":t.onCancel},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[a("Form",{ref:"formDynamic",staticClass:"attrFrom",attrs:{model:t.formDynamic,rules:t.rules,"label-width":110,"label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{gutter:24}},[a("Col",{attrs:{span:"24"}},[a("Col",{staticClass:"mb15",attrs:{span:"8"}},[a("FormItem",{attrs:{label:"规格模板名称:",prop:"rule_name"}},[a("Input",{attrs:{placeholder:"请输入标题名称",maxlength:20},model:{value:t.formDynamic.rule_name,callback:function(e){t.$set(t.formDynamic,"rule_name",e)},expression:"formDynamic.rule_name"}})],1)],1)],1),t._l(t.formDynamic.spec,(function(e,i){return a("Col",{key:i,staticClass:"noForm",attrs:{span:"23"}},[a("FormItem",[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),a("Icon",{attrs:{type:"ios-close-circle"},on:{click:function(e){return t.handleRemove(i)}}})],1),a("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,r){return a("Tag",{key:r,attrs:{type:"dot",closable:"",color:"primary",name:i},on:{"on-close":function(a){return t.handleRemove2(e.detail,r)}}},[t._v(t._s(i))])})),a("Input",{staticStyle:{width:"200px"},attrs:{search:"","enter-button":"添加",placeholder:"请输入属性名称"},on:{"on-search":function(a){return t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}})],2)])],1)})),t.isBtn?a("Col",{staticClass:"mt10",attrs:{span:"24"}},[a("Col",{staticClass:"mr15",attrs:{span:"8"}},[a("FormItem",{attrs:{label:"规格名称:"}},[a("Input",{attrs:{placeholder:"请输入规格"},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),a("Col",{staticClass:"mr20",attrs:{span:"8"}},[a("FormItem",{attrs:{label:"规格值:"}},[a("Input",{attrs:{placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),a("Col",{attrs:{span:"2"}},[a("Button",{attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")])],1),a("Col",{attrs:{span:"2"}},[a("Button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1):t._e(),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],2),t.isBtn?t._e():a("Button",{staticClass:"ml95 mt10",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary",loading:t.modal_loading},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确定")])],1)],1)},r=[],o=(a("7f7f"),a("c4c8")),n={name:"addAttr",data:function(){return{spinShow:!1,modal_loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{rule_name:[{required:!0,message:"请输入规格名称",trigger:"blur"}]},formDynamic:{rule_name:"",spec:[]},attrsName:"",attrsVal:"",formDynamicNameData:[],isBtn:!1,formDynamicName:[],results:[],result:[],ids:0}},computed:{},methods:{onCancel:function(){this.ids=0,this.clear()},addBtn:function(){this.isBtn=!0},getIofo:function(t){var e=this;this.spinShow=!0,this.ids=t.id,Object(o["A"])(t.id).then((function(t){e.formDynamic=t.data.info,e.spinShow=!1})).catch((function(t){e.spinShow=!1,e.$Message.error(t.msg)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){return!!t&&(0===e.formDynamic.spec.length?e.$Message.warning("请至少添加一条商品规格!"):(e.modal_loading=!0,void setTimeout((function(){Object(o["z"])(e.formDynamic,e.ids).then((function(t){e.$Message.success(t.msg),setTimeout((function(){e.modal=!1,e.modal_loading=!1}),500),setTimeout((function(){e.$emit("getList"),e.clear()}),600)})).catch((function(t){e.modal_loading=!1,e.$Message.error(t.msg)}))}),1200)))}))},clear:function(){this.$refs["formDynamic"].resetFields(),this.formDynamic.spec=[],this.isBtn=!1,this.attrsName="",this.attrsVal="",this.ids=0},offAttrName:function(){this.isBtn=!1},handleRemove:function(t){this.formDynamic.spec.splice(t,1)},handleRemove2:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.attrsName&&this.attrsVal){var t={value:this.attrsName,detail:[this.attrsVal]};this.formDynamic.spec.push(t);var e={};this.formDynamic.spec=this.formDynamic.spec.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.attrsName="",this.attrsVal="",this.isBtn=!1}else this.$Message.warning("请添加规格名称或规格值")},createAttr:function(t,e){if(t){this.formDynamic.spec[e].detail.push(t);var a={};this.formDynamic.spec[e].detail=this.formDynamic.spec[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[])}else this.$Message.warning("请添加属性")}}},s=n,l=(a("6f83"),a("2877")),c=Object(l["a"])(s,i,r,!1,null,"921f4090",null);e["a"]=c.exports},"79e7":function(t,e,a){},"7bbc":function(t,e,a){var i=a("6821"),r=a("9093").f,o={}.toString,n="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return n.slice()}};t.exports.f=function(t){return n&&"[object Window]"==o.call(t)?s(t):r(i(t))}},"8a81":function(t,e,a){"use strict";var i=a("7726"),r=a("69a8"),o=a("9e1e"),n=a("5ca1"),s=a("2aba"),l=a("67ab").KEY,c=a("79e5"),d=a("5537"),u=a("7f20"),m=a("ca5a"),p=a("2b4c"),f=a("37c8"),h=a("3a72"),v=a("d4c0"),g=a("1169"),_=a("cb7c"),b=a("d3f4"),y=a("4bf8"),V=a("6821"),k=a("6a99"),w=a("4630"),x=a("2aeb"),C=a("7bbc"),F=a("11e9"),I=a("2621"),$=a("86cc"),B=a("0d58"),N=F.f,S=$.f,O=C.f,T=i.Symbol,D=i.JSON,R=D&&D.stringify,M="prototype",P=p("_hidden"),j=p("toPrimitive"),L={}.propertyIsEnumerable,A=d("symbol-registry"),E=d("symbols"),W=d("op-symbols"),z=Object[M],G="function"==typeof T&&!!I.f,U=i.QObject,q=!U||!U[M]||!U[M].findChild,J=o&&c((function(){return 7!=x(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a}))?function(t,e,a){var i=N(z,e);i&&delete z[e],S(t,e,a),i&&t!==z&&S(z,e,i)}:S,H=function(t){var e=E[t]=x(T[M]);return e._k=t,e},K=G&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Y=function(t,e,a){return t===z&&Y(W,e,a),_(t),e=k(e,!0),_(a),r(E,e)?(a.enumerable?(r(t,P)&&t[P][e]&&(t[P][e]=!1),a=x(a,{enumerable:w(0,!1)})):(r(t,P)||S(t,P,w(1,{})),t[P][e]=!0),J(t,e,a)):S(t,e,a)},Q=function(t,e){_(t);var a,i=v(e=V(e)),r=0,o=i.length;while(o>r)Y(t,a=i[r++],e[a]);return t},X=function(t,e){return void 0===e?x(t):Q(x(t),e)},Z=function(t){var e=L.call(this,t=k(t,!0));return!(this===z&&r(E,t)&&!r(W,t))&&(!(e||!r(this,t)||!r(E,t)||r(this,P)&&this[P][t])||e)},tt=function(t,e){if(t=V(t),e=k(e,!0),t!==z||!r(E,e)||r(W,e)){var a=N(t,e);return!a||!r(E,e)||r(t,P)&&t[P][e]||(a.enumerable=!0),a}},et=function(t){var e,a=O(V(t)),i=[],o=0;while(a.length>o)r(E,e=a[o++])||e==P||e==l||i.push(e);return i},at=function(t){var e,a=t===z,i=O(a?W:V(t)),o=[],n=0;while(i.length>n)!r(E,e=i[n++])||a&&!r(z,e)||o.push(E[e]);return o};G||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=m(arguments.length>0?arguments[0]:void 0),e=function(a){this===z&&e.call(W,a),r(this,P)&&r(this[P],t)&&(this[P][t]=!1),J(this,t,w(1,a))};return o&&q&&J(z,t,{configurable:!0,set:e}),H(t)},s(T[M],"toString",(function(){return this._k})),F.f=tt,$.f=Y,a("9093").f=C.f=et,a("52a7").f=Z,I.f=at,o&&!a("2d00")&&s(z,"propertyIsEnumerable",Z,!0),f.f=function(t){return H(p(t))}),n(n.G+n.W+n.F*!G,{Symbol:T});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)p(it[rt++]);for(var ot=B(p.store),nt=0;ot.length>nt;)h(ot[nt++]);n(n.S+n.F*!G,"Symbol",{for:function(t){return r(A,t+="")?A[t]:A[t]=T(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in A)if(A[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),n(n.S+n.F*!G,"Object",{create:X,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:at});var st=c((function(){I.f(1)}));n(n.S+n.F*st,"Object",{getOwnPropertySymbols:function(t){return I.f(y(t))}}),D&&n(n.S+n.F*(!G||c((function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){var e,a,i=[t],r=1;while(arguments.length>r)i.push(arguments[r++]);if(a=e=i[1],(b(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof a&&(e=a.call(this,t,e)),!K(e))return e}),i[1]=e,R.apply(D,i)}}),T[M][j]||a("32e9")(T[M],j,T[M].valueOf),u(T,"Symbol"),u(Math,"Math",!0),u(i.JSON,"JSON",!0)},"9d83":function(t,e,a){},ac4d:function(t,e,a){a("3a72")("asyncIterator")},c7e8:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"shopp-manager"}},[a("div",{staticClass:"i-layout-page-header"},[a("div",{staticClass:"i-layout-page-header"},[a("router-link",{attrs:{to:{path:"/admin/product/product_list"}}},[a("Button",{staticClass:"mr20",attrs:{icon:"ios-arrow-back",size:"small"}},[t._v("返回")])],1),a("span",{staticClass:"ivu-page-header-title mr20",domProps:{textContent:t._s(t.$route.params.id?"编辑商品":"添加商品")}})],1)]),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Tabs",{on:{"on-click":t.onhangeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},[a("TabPane",{attrs:{label:"商品信息",name:"1"}}),a("TabPane",{attrs:{label:"商品详情",name:"2"}}),a("TabPane",{attrs:{label:"其他设置",name:"3"}})],1),a("Form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{directives:[{name:"show",rawName:"v-show",value:"1"===t.currentTab,expression:"currentTab === '1'"}],attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品名称:",prop:"store_name"}},[a("Input",{staticClass:"perW50",attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品分类:",prop:"cate_id"}},[a("Select",{staticClass:"perW50",attrs:{placeholder:"请选择商品分类",multiple:""},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}},t._l(t.treeSelect,(function(e){return a("Option",{key:e.id,attrs:{disabled:0===e.pid,value:e.id}},[t._v(t._s(e.html+e.cate_name))])})),1)],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品关键字:",prop:""}},[a("Input",{staticClass:"perW50",attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"单位:",prop:"unit_name"}},[a("Input",{staticClass:"perW50",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品简介:",prop:""}},[a("Input",{staticClass:"perW50",attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品封面图:",prop:"image"}},[a("div",{staticClass:"pictrueBox",on:{click:function(e){return t.modalPicTap("dan","danFrom")}}},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.image,expression:"formValidate.image"}]}),a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.image,callback:function(e){t.$set(t.formValidate,"image",e)},expression:"formValidate.image"}})],1):a("div",{staticClass:"upLoad acea-row row-center-wrapper"},[a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.image,callback:function(e){t.$set(t.formValidate,"image",e)},expression:"formValidate.image"}}),a("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)]),a("div",{staticClass:"tips"},[t._v("(345*345)")])])],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品推荐图:"}},[a("div",{staticClass:"pictrueBox",on:{click:function(e){return t.modalPicTap("dan","recommend_image")}}},[t.formValidate.recommend_image?a("div",{staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.recommend_image,expression:"formValidate.recommend_image"}]}),a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.recommend_image,callback:function(e){t.$set(t.formValidate,"recommend_image",e)},expression:"formValidate.recommend_image"}})],1):a("div",{staticClass:"upLoad acea-row row-center-wrapper"},[a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.recommend_image,callback:function(e){t.$set(t.formValidate,"recommend_image",e)},expression:"formValidate.recommend_image"}}),a("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)]),a("div",{staticClass:"tips"},[t._v("(382*160)")])])],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(e,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"true"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e,expression:"item"}]}),a("Button",{staticClass:"btndel",attrs:{shape:"circle",icon:"md-close"},nativeOn:{click:function(e){return t.handleRemove(i)}}})],1)})),t.formValidate.slider_image.length<10?a("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:function(e){return t.modalPicTap("duo")}}},[a("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1):t._e(),a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.slider_image[0],callback:function(e){t.$set(t.formValidate.slider_image,0,e)},expression:"formValidate.slider_image[0]"}})],2),a("div",{staticClass:"tips"},[t._v("(最多10张"),a("br"),t._v("750*750)")])])],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"主图视频:",prop:"video_link"}},[a("Input",{staticClass:"perW50",attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),a("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),"1"!==t.upload_type||t.videoLink?a("Button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v(t._s(t.videoLink?"确认添加":"上传视频"))]):t._e(),"1"!==t.upload_type||t.videoLink?t._e():a("Upload",{staticClass:"ml10",staticStyle:{display:"inline-block"},attrs:{"show-upload-list":!1,action:t.fileUrl,"before-upload":t.beforeUpload,data:t.uploadData,headers:t.header,multiple:!0,"on-success":t.handleSuccess}},[a("Button",{attrs:{type:"primary",icon:"ios-cloud-upload-outline"}},[t._v("上传视频")])],1),t.upload.videoIng?a("Progress",{attrs:{percent:t.progress,"stroke-width":5}}):t._e(),t.formValidate.video_link?a("div",{staticClass:"iview-video-style"},[a("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),a("div",{staticClass:"mark"}),a("Icon",{staticClass:"iconv",attrs:{type:"ios-trash-outline"},on:{click:t.delVideo}})],1):t._e()],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品类型:",props:"is_virtual"}},[a("RadioGroup",{on:{"on-change":t.changeSpec},model:{value:t.formValidate.is_virtual,callback:function(e){t.$set(t.formValidate,"is_virtual",e)},expression:"formValidate.is_virtual"}},[a("Radio",{staticClass:"radio",attrs:{label:0}},[t._v("普通商品")]),a("Radio",{attrs:{label:1}},[t._v("虚拟商品")])],1)],1)],1),t.formValidate.is_virtual?a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"虚拟类型:",props:"is_virtual"}},[a("RadioGroup",{on:{"on-change":t.changeSpec},model:{value:t.formValidate.virtual_type,callback:function(e){t.$set(t.formValidate,"virtual_type",e)},expression:"formValidate.virtual_type"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("卡密")]),a("Radio",{attrs:{label:2}},[t._v("优惠券")])],1)],1)],1):t._e(),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品规格:",props:"spec_type"}},[a("RadioGroup",{on:{"on-change":t.changeSpec},model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[a("Radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),a("Radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),1===t.formValidate.spec_type?a("Col",{staticClass:"noForm",attrs:{span:"24"}},[a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"选择规格:",prop:""}},[a("div",{staticClass:"acea-row row-middle"},[a("Select",{staticStyle:{width:"23%"},model:{value:t.formValidate.selectRule,callback:function(e){t.$set(t.formValidate,"selectRule",e)},expression:"formValidate.selectRule"}},t._l(t.ruleList,(function(e,i){return a("Option",{key:i,attrs:{value:e.rule_name}},[t._v(t._s(e.rule_name))])})),1),a("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")]),a("Button",{on:{click:t.addRule}},[t._v("添加规格模板")])],1)])],1),a("Col",{attrs:{span:"24"}},[0!==t.attrs.length?a("FormItem",[a("draggable",{staticClass:"dragArea list-group",attrs:{list:t.attrs,group:"peoples",handle:".move-icon",move:t.checkMove},on:{end:t.end}},t._l(t.attrs,(function(e,i){return a("div",{key:i,staticClass:"acea-row row-middle mb10"},[a("div",{staticClass:"move-icon"},[a("span",{staticClass:"iconfont icondrag2"})]),a("div",{class:t.moveIndex===i?"borderStyle":"",staticStyle:{width:"90%"}},[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),a("Icon",{staticClass:"curs",attrs:{type:"ios-close-circle",size:"14"},on:{click:function(e){return t.handleRemoveRole(i)}}})],1),a("div",{staticClass:"rulesBox"},[a("draggable",{attrs:{list:e.detail,handle:".drag"}},t._l(e.detail,(function(i,r){return a("Tag",{key:r,staticClass:"mr20 drag",attrs:{type:"dot",closable:"",color:"primary",name:i},on:{"on-close":function(a){return t.handleRemove2(e.detail,r)}}},[t._v(t._s(i))])})),1),a("Input",{staticStyle:{width:"150px"},attrs:{search:"","enter-button":"添加",placeholder:"请输入属性名称"},on:{"on-search":function(a){return t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}})],1)])])})),0)],1):t._e()],1),t.createBnt?a("Col",{attrs:{span:"24"}},[a("FormItem",[a("Button",{staticClass:"mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")]),a("Button",{attrs:{type:"success"},on:{click:function(e){return t.generate(1)}}},[t._v("立即生成")])],1)],1):t._e(),t.showIput?a("Col",{attrs:{span:"24"}},[a("Col",{attrs:{xl:6,lg:9,md:10,sm:24,xs:24}},[a("FormItem",{attrs:{label:"规格:"}},[a("Input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),a("Col",{attrs:{xl:6,lg:9,md:10,sm:24,xs:24}},[a("FormItem",{attrs:{label:"规格值:"}},[a("Input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),a("Col",{attrs:{xl:6,lg:5,md:10,sm:24,xs:24}},[a("FormItem",[a("Button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),a("Button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1)],1):t._e(),t.manyFormValidate.length&&0!==t.formValidate.header.length&&0!==t.attrs.length?a("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[t.formValidate.is_virtual?t._e():a("Col",{attrs:{span:"24"}},[a("FormItem",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[a("Table",{attrs:{data:t.oneFormBatch,columns:t.formValidate.is_virtual?t.columns3:t.columns2,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row;var i=e.index;return[a("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","duopi",i)}}},[t.oneFormBatch[0].pic?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormBatch[0].pic,expression:"oneFormBatch[0].pic"}]})]):a("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[a("Icon",{staticClass:"iconfont",attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}},{key:"price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].price,callback:function(e){t.$set(t.oneFormBatch[0],"price",e)},expression:"oneFormBatch[0].price"}})]}},{key:"cost",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].cost,callback:function(e){t.$set(t.oneFormBatch[0],"cost",e)},expression:"oneFormBatch[0].cost"}})]}},{key:"ot_price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].ot_price,callback:function(e){t.$set(t.oneFormBatch[0],"ot_price",e)},expression:"oneFormBatch[0].ot_price"}})]}},{key:"stock",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{disabled:1==t.formValidate.is_virtual&&1==t.formValidate.virtual_type,min:0},model:{value:t.oneFormBatch[0].stock,callback:function(e){t.$set(t.oneFormBatch[0],"stock",e)},expression:"oneFormBatch[0].stock"}})]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):i.virtual_list.length||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"oneFormBatch",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"oneFormBatch")}}},[t._v("添加卡密")]):a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"oneFormBatch")}}},[t._v("添加优惠券")])]}},{key:"bar_code",fn:function(e){e.row,e.index;return[a("Input",{model:{value:t.oneFormBatch[0].bar_code,callback:function(e){t.$set(t.oneFormBatch[0],"bar_code",e)},expression:"oneFormBatch[0].bar_code"}})]}},{key:"weight",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{step:.1,min:0},model:{value:t.oneFormBatch[0].weight,callback:function(e){t.$set(t.oneFormBatch[0],"weight",e)},expression:"oneFormBatch[0].weight"}})]}},{key:"volume",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{step:.1,min:0},model:{value:t.oneFormBatch[0].volume,callback:function(e){t.$set(t.oneFormBatch[0],"volume",e)},expression:"oneFormBatch[0].volume"}})]}},{key:"action",fn:function(e){e.row,e.index;return[a("a",{on:{click:t.batchAdd}},[t._v("批量添加")]),a("Divider",{attrs:{type:"vertical"}}),a("a",{on:{click:t.batchDel}},[t._v("清空")])]}}],null,!1,2574576162)})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{staticClass:"labeltop",attrs:{label:"商品属性:"}},[a("Table",{attrs:{data:t.manyFormValidate,columns:t.formValidate.header,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row;var i=e.index;return[a("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","duoTable",i)}}},[t.manyFormValidate[i].pic?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.manyFormValidate[i].pic,expression:"manyFormValidate[index].pic"}]})]):a("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[a("Icon",{staticClass:"iconfont",attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}},{key:"price",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].price,callback:function(e){t.$set(t.manyFormValidate[i],"price",e)},expression:"manyFormValidate[index].price"}})]}},{key:"cost",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].cost,callback:function(e){t.$set(t.manyFormValidate[i],"cost",e)},expression:"manyFormValidate[index].cost"}})]}},{key:"ot_price",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].ot_price,callback:function(e){t.$set(t.manyFormValidate[i],"ot_price",e)},expression:"manyFormValidate[index].ot_price"}})]}},{key:"stock",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{disabled:1==t.formValidate.is_virtual&&1==t.formValidate.virtual_type,min:0,precision:0},model:{value:t.manyFormValidate[i].stock,callback:function(e){t.$set(t.manyFormValidate[i],"stock",e)},expression:"manyFormValidate[index].stock"}})]}},{key:"bar_code",fn:function(e){e.row;var i=e.index;return[a("Input",{model:{value:t.manyFormValidate[i].bar_code,callback:function(e){t.$set(t.manyFormValidate[i],"bar_code",e)},expression:"manyFormValidate[index].bar_code"}})]}},{key:"weight",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].weight,callback:function(e){t.$set(t.manyFormValidate[i],"weight",e)},expression:"manyFormValidate[index].weight"}})]}},{key:"volume",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].volume,callback:function(e){t.$set(t.manyFormValidate[i],"volume",e)},expression:"manyFormValidate[index].volume"}})]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):i.virtual_list||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"manyFormValidate")}}},[t._v("添加卡密")]):a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"manyFormValidate")}}},[t._v("添加优惠券")])]}},{key:"action",fn:function(e){e.row;var i=e.index;return[a("a",{on:{click:function(e){return t.delAttrTable(i)}}},[t._v("删除")])]}}],null,!1,1036322893)})],1)],1)],1):t._e()],1):t._e(),0===t.formValidate.spec_type?a("Col",{attrs:{xl:23,lg:24,md:24,sm:24,xs:24}},[a("FormItem",[a("Table",{attrs:{data:t.oneFormValidate,columns:t.formValidate.is_virtual?t.columns3.slice(0,7):t.columns,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row;var i=e.index;return[a("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","danTable",i)}}},[t.oneFormValidate[0].pic?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormValidate[0].pic,expression:"oneFormValidate[0].pic"}]})]):a("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[a("Icon",{attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}},{key:"price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].price,callback:function(e){t.$set(t.oneFormValidate[0],"price",e)},expression:"oneFormValidate[0].price"}})]}},{key:"cost",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].cost,callback:function(e){t.$set(t.oneFormValidate[0],"cost",e)},expression:"oneFormValidate[0].cost"}})]}},{key:"ot_price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].ot_price,callback:function(e){t.$set(t.oneFormValidate[0],"ot_price",e)},expression:"oneFormValidate[0].ot_price"}})]}},{key:"stock",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.is_virtual&&1==t.formValidate.virtual_type,precision:0},model:{value:t.oneFormValidate[0].stock,callback:function(e){t.$set(t.oneFormValidate[0],"stock",e)},expression:"oneFormValidate[0].stock"}})]}},{key:"bar_code",fn:function(e){e.row,e.index;return[a("Input",{model:{value:t.oneFormValidate[0].bar_code,callback:function(e){t.$set(t.oneFormValidate[0],"bar_code",e)},expression:"oneFormValidate[0].bar_code"}})]}},{key:"weight",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].weight,callback:function(e){t.$set(t.oneFormValidate[0],"weight",e)},expression:"oneFormValidate[0].weight"}})]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"oneFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):t._e():a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"oneFormValidate")}}},[t._v("添加优惠券")]),i.virtual_list.length||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"oneFormValidate",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"oneFormValidate")}}},[t._v("添加卡密")])]}},{key:"volume",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].volume,callback:function(e){t.$set(t.oneFormValidate[0],"volume",e)},expression:"oneFormValidate[0].volume"}})]}}],null,!1,2703005854)})],1)],1):t._e(),1!=t.formValidate.is_virtual?a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("Select",{staticClass:"mr20 perW50 maxW",attrs:{clearable:"",placeholder:"请选择运费模板"},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.templateList,(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1),a("Button",{on:{click:t.addTemp}},[t._v("添加运费模板")])],1)])],1):t._e(),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"关联用户标签:",prop:"label_id"}},[a("Select",{staticClass:"perW50",attrs:{placeholder:"请选择关联用户标签",multiple:""},model:{value:t.formValidate.label_id,callback:function(e){t.$set(t.formValidate,"label_id",e)},expression:"formValidate.label_id"}},t._l(t.labelSelect,(function(e){return a("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.label_name))])})),1)],1)],1)],1),a("Row",{directives:[{name:"show",rawName:"v-show",value:"2"===t.currentTab,expression:"currentTab === '2'"}]},[a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品详情:"}},[a("vue-ueditor-wrap",{staticStyle:{width:"90%"},attrs:{config:t.myConfig},on:{beforeInit:t.addCustomDialog},model:{value:t.formValidate.description,callback:function(e){t.$set(t.formValidate,"description",e)},expression:"formValidate.description"}})],1)],1)],1),a("Row",{directives:[{name:"show",rawName:"v-show",value:"3"===t.currentTab,expression:"currentTab === '3'"}],attrs:{type:"flex",justify:"space-between"}},[a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"虚拟销量:"}},[a("InputNumber",{attrs:{min:0,placeholder:"请输入虚拟销量"},model:{value:t.formValidate.ficti,callback:function(e){t.$set(t.formValidate,"ficti",e)},expression:"formValidate.ficti"}})],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"积分:",prop:"give_integral"}},[a("InputNumber",{attrs:{min:0,placeholder:"请输入积分"},model:{value:t.formValidate.give_integral,callback:function(e){t.$set(t.formValidate,"give_integral",e)},expression:"formValidate.give_integral"}})],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"排序:"}},[a("InputNumber",{attrs:{min:0,placeholder:"请输入排序"},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"单独设置:"}},[a("CheckboxGroup",{on:{"on-change":t.checkAllGroupChange},model:{value:t.formValidate.is_sub,callback:function(e){t.$set(t.formValidate,"is_sub",e)},expression:"formValidate.is_sub"}},[a("Checkbox",{attrs:{label:1}},[t._v("佣金设置(数字即返佣金额)")])],1)],1)],1),t.formValidate.is_sub.length?a("Col",{attrs:{span:"24"}},[0===t.formValidate.spec_type?a("FormItem",{attrs:{label:"商品属性:"}},[a("Table",{attrs:{data:t.oneFormValidate,columns:t.columnsInstall,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row,e.index;return[a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormValidate[0].pic,expression:"oneFormValidate[0].pic"}]})])]}},{key:"price",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].price))]}},{key:"cost",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].cost))]}},{key:"ot_price",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].ot_price))]}},{key:"stock",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].stock))]}},{key:"bar_code",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].bar_code))]}},{key:"weight",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].weight))]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):i.virtual_list.length||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"oneFormValidate",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"oneFormValidate")}}},[t._v("添加卡密")]):a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"oneFormValidate")}}},[t._v("添加优惠券")])]}},{key:"volume",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].volume))]}},{key:"brokerage",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].brokerage,callback:function(e){t.$set(t.oneFormValidate[0],"brokerage",e)},expression:"oneFormValidate[0].brokerage"}})]}},{key:"brokerage_two",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].brokerage_two,callback:function(e){t.$set(t.oneFormValidate[0],"brokerage_two",e)},expression:"oneFormValidate[0].brokerage_two"}})]}},{key:"vip_price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].vip_price,callback:function(e){t.$set(t.oneFormValidate[0],"vip_price",e)},expression:"oneFormValidate[0].vip_price"}})]}}],null,!1,714993360)})],1):t._e(),1===t.formValidate.spec_type?a("FormItem",{attrs:{label:"批量设置:"}},[t.formValidate.is_sub.indexOf(1)>-1?a("span",[t._v("\n 一级返佣:"),a("InputNumber",{staticClass:"columnsBox perW20",attrs:{placeholder:"请输入一级返佣",min:0},model:{value:t.manyBrokerage,callback:function(e){t.manyBrokerage=e},expression:"manyBrokerage"}}),t._v("\n 二级返佣:"),a("InputNumber",{staticClass:"columnsBox perW20",attrs:{placeholder:"请输入二级返佣",min:0},model:{value:t.manyBrokerageTwo,callback:function(e){t.manyBrokerageTwo=e},expression:"manyBrokerageTwo"}})],1):t._e(),t.formValidate.is_sub.indexOf(0)>-1?a("span",[t._v("\n 会员价:"),a("InputNumber",{staticClass:"columnsBox perW20",attrs:{placeholder:"请输入会员价",min:0},model:{value:t.manyVipPrice,callback:function(e){t.manyVipPrice=e},expression:"manyVipPrice"}})],1):t._e(),a("Button",{attrs:{type:"primary"},on:{click:t.brokerageSetUp}},[t._v("批量设置")])],1):t._e(),1===t.formValidate.spec_type&&t.manyFormValidate.length?a("FormItem",{attrs:{label:"商品属性:"}},[t.formValidate.is_sub?a("Table",{attrs:{data:t.manyFormValidate,columns:t.columnsInstal2,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row;var i=e.index;return[a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.manyFormValidate[i].pic,expression:"manyFormValidate[index].pic"}]})])]}},{key:"price",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].price))]}},{key:"cost",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].cost))]}},{key:"ot_price",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].ot_price))]}},{key:"stock",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].stock))]}},{key:"bar_code",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].bar_code))]}},{key:"weight",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].weight))]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):i.virtual_list.length||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"manyFormValidate")}}},[t._v("添加卡密")]):a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"manyFormValidate")}}},[t._v("添加优惠券")])]}},{key:"volume",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].volume))]}},{key:"brokerage",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].brokerage,callback:function(e){t.$set(t.manyFormValidate[i],"brokerage",e)},expression:"manyFormValidate[index].brokerage"}})]}},{key:"brokerage_two",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].brokerage_two,callback:function(e){t.$set(t.manyFormValidate[i],"brokerage_two",e)},expression:"manyFormValidate[index].brokerage_two"}})]}},{key:"vip_price",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].vip_price,callback:function(e){t.$set(t.manyFormValidate[i],"vip_price",e)},expression:"manyFormValidate[index].vip_price"}})]}}],null,!1,1109189007)}):t._e()],1):t._e()],1):t._e(),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"商品状态:"}},[a("RadioGroup",{model:{value:t.formValidate.is_show,callback:function(e){t.$set(t.formValidate,"is_show",e)},expression:"formValidate.is_show"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("上架")]),a("Radio",{attrs:{label:0}},[t._v("下架")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"热卖单品:"}},[a("RadioGroup",{model:{value:t.formValidate.is_hot,callback:function(e){t.$set(t.formValidate,"is_hot",e)},expression:"formValidate.is_hot"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"促销单品:"}},[a("RadioGroup",{model:{value:t.formValidate.is_benefit,callback:function(e){t.$set(t.formValidate,"is_benefit",e)},expression:"formValidate.is_benefit"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"精品推荐:"}},[a("RadioGroup",{model:{value:t.formValidate.is_best,callback:function(e){t.$set(t.formValidate,"is_best",e)},expression:"formValidate.is_best"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"首发新品:"}},[a("RadioGroup",{model:{value:t.formValidate.is_new,callback:function(e){t.$set(t.formValidate,"is_new",e)},expression:"formValidate.is_new"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"优品推荐:"}},[a("RadioGroup",{model:{value:t.formValidate.is_good,callback:function(e){t.$set(t.formValidate,"is_good",e)},expression:"formValidate.is_good"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid3,!1),[a("FormItem",{attrs:{label:"活动优先级:"}},[a("div",{staticClass:"color-list acea-row row-middle"},[t._l(t.formValidate.activity,(function(e){return a("div",{directives:[{name:"dragging",rawName:"v-dragging",value:{item:e,list:t.formValidate.activity,group:"color"},expression:"{\n item: color,\n list: formValidate.activity,\n group: 'color',\n }"}],key:e,staticClass:"color-item",class:t.activity[e]},[t._v("\n "+t._s(e)+"\n ")])})),a("div",{staticClass:"tip"},[t._v("可拖动按钮调整活动的优先展示顺序")])],2)])],1),a("Col",t._b({},"Col",t.grid3,!1),[a("FormItem",{attrs:{label:"选择优品推荐商品:"}},[a("div",{staticClass:"picBox"},[t._l(t.formValidate.recommend_list,(function(e,i){return a("div",{key:i,staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"item.image"}]}),a("Button",{staticClass:"btndel",attrs:{shape:"circle",icon:"md-close"},nativeOn:{click:function(e){return t.handleRemoveRecommend(i)}}})],1)})),a("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:t.changeGoods}},[a("Icon",{staticClass:"iconfonts",attrs:{type:"ios-add",size:"26"}})],1)],2)])],1),a("Col",t._b({},"Col",t.grid3,!1),[a("FormItem",{attrs:{label:"赠送优惠券:"}},[t.couponName.length?a("div",{staticClass:"mb20"},t._l(t.couponName,(function(e,i){return a("Tag",{key:i,attrs:{closable:""},on:{"on-close":function(a){return t.handleClose(e)}}},[t._v(t._s(e.title))])})),1):t._e(),a("Button",{attrs:{type:"primary"},on:{click:t.addCoupon}},[t._v("添加优惠券")])],1)],1),a("Col",t._b({},"Col",t.grid3,!1),[a("FormItem",{attrs:{label:"商品口令:"}},[a("Input",{attrs:{placeholder:"请输入商品口令"},model:{value:t.formValidate.command_word,callback:function(e){t.$set(t.formValidate,"command_word",e)},expression:"formValidate.command_word"}})],1)],1)],1),a("FormItem",["1"!==t.currentTab?a("Button",{on:{click:t.upTab}},[t._v("上一步")]):t._e(),"3"!==t.currentTab?a("Button",{staticClass:"submission",attrs:{type:"primary"},on:{click:t.downTab}},[t._v("下一步")]):t._e(),t.$route.params.id||"3"===t.currentTab?a("Button",{staticClass:"submission",attrs:{type:"primary",disabled:t.openSubimit},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("保存")]):t._e()],1),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],1),a("Modal",{attrs:{width:"1024px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?a("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic,getPicD:t.getPicD}}):t._e()],1),a("Modal",{attrs:{width:"700px",closable:"",title:"添加卡密","mask-closable":!1,"z-index":1,"footer-hide":""},on:{"on-visible-change":t.initVirtualData},model:{value:t.addVirtualModel,callback:function(e){t.addVirtualModel=e},expression:"addVirtualModel"}},[a("div",{staticClass:"trip"}),a("div",{staticClass:"scroll-virtual"},t._l(t.virtualList,(function(e,i){return a("div",{key:i,staticClass:"virtual-data mb10"},[a("span",{staticClass:"mr10 virtual-title"},[t._v("卡号"+t._s(i+1)+":")]),a("Input",{staticClass:"mr10",staticStyle:{width:"150px"},attrs:{type:"text",placeholder:"请输入卡号(非必填)"},model:{value:e.key,callback:function(a){t.$set(e,"key",a)},expression:"item.key"}}),a("span",{staticClass:"mr10 virtual-title"},[t._v("卡密"+t._s(i+1)+":")]),a("Input",{staticClass:"mr10",staticStyle:{width:"150px"},attrs:{type:"text",placeholder:"请输入卡密"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}}),a("Button",{attrs:{type:"dashed"},on:{click:function(e){return t.removeVirtual(i)}}},[t._v("删除")])],1)})),0),a("div",{staticClass:"add-more"},[a("Button",{attrs:{type:"info",icon:"md-add"},on:{click:t.handleAdd}},[t._v("新增")]),a("Upload",{staticClass:"ml10",attrs:{action:t.cardUrl,data:t.uploadData,"before-upload":t.beforeUpload,headers:t.header,"on-success":t.upFile}},[a("Button",{attrs:{type:"info",icon:"ios-cloud-upload-outline"}},[t._v("导入卡密")])],1)],1),a("div",{staticClass:"footer"},[a("div",{staticClass:"clear",on:{click:t.closeVirtual}},[t._v("取消")]),a("div",{staticClass:"submit",on:{click:t.upVirtual}},[t._v("确认")])])])],1),a("freightTemplate",{ref:"templates",attrs:{template:t.template},on:{changeTemplate:t.changeTemplate}}),a("add-attr",{ref:"addattr",on:{getList:t.userSearchs}}),a("coupon-list",{ref:"couponTemplates",attrs:{couponids:t.formValidate.coupon_ids,updateIds:t.updateIds,updateName:t.updateName},on:{nameId:t.nameId}}),a("coupon-list",{ref:"goodsCoupon",attrs:{many:"one"},on:{nameId:t.goodsCouponId}}),a("Modal",{staticClass:"Box",attrs:{scrollable:"","footer-hide":"",closable:"",title:"复制淘宝、天猫、京东、苏宁、1688","mask-closable":!1,width:"800",height:"500"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals?a("tao-bao",{ref:"taobaos",on:{"on-close":t.onClose}}):t._e()],1),a("Modal",{staticClass:"paymentFooter",attrs:{title:"商品列表",footerHide:"",scrollable:"",width:"900"},model:{value:t.goods_modals,callback:function(e){t.goods_modals=e},expression:"goods_modals"}},[t.goods_modals?a("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0},on:{getProductId:t.getProductId}}):t._e()],1)],1)},r=[],o=(a("ac4d"),a("8a81"),a("1c4c"),a("8e6e"),a("456d"),a("a481"),a("75fc")),n=(a("96cf"),a("3b8d")),s=(a("6b54"),a("7f7f"),a("ac6a"),a("5df3"),a("f400"),a("c5f6"),a("bd86")),l=a("2f62"),c=a("310e"),d=a.n(c),u=a("b0e7"),m=a("5334"),p=a("e449"),f=a("6fd3"),h=a("6625"),v=a.n(h),g=a("c4ad"),_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[a("Card",[a("div",[t._v("生成的商品默认是没有上架的,请手动上架商品!\n "),2==t.copyConfig.copy_type?a("a",{attrs:{href:"http://help.crmeb.net/crmeb-v4/1863579",target:"_blank"}},[t._v("如何配置密钥")]):a("span",[t._v("您当前剩余"+t._s(t.copyConfig.copy_num)+"条采集次数,"),a("a",{attrs:{href:"#"},on:{click:function(e){return t.mealPay("copy")}}},[t._v("增加采集次数")])])]),a("div",[t._v("商品采集设置:设置 > 系统设置 > 第三方接口设置 > 采集商品配置")])]),a("Form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{"label-width":120,"label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{span:"18"}},[a("FormItem",{attrs:{label:"链接地址:"}},[a("Input",{staticClass:"numPut",attrs:{search:"","enter-button":"确定",placeholder:"请输入链接地址"},on:{"on-search":t.add},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}})],1)],1)],1)],1),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)},b=[],y=a("c4c8"),V={name:"taoBao",data:function(){return{soure_link:"",spinShow:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},copyConfig:{copy_type:2,copy_num:0},artFrom:{type:"taobao",url:""}}},computed:{},created:function(){},mounted:function(){this.getCopyConfig()},methods:{mealPay:function(t){this.$router.push({path:"/admin/setting/sms/sms_pay/index",query:{type:t}})},getCopyConfig:function(){var t=this;Object(y["e"])().then((function(e){t.copyConfig.copy_type=e.data.copy_type,t.copyConfig.copy_num=e.data.copy_num}))},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$Message.warning("请输入以http开头的地址!");this.spinShow=!0,this.artFrom.url=this.soure_link,Object(y["f"])(this.artFrom).then((function(e){var a=e.data.productInfo;t.$emit("on-close",a),t.spinShow=!1})).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))}else this.$Message.warning("请输入链接地址!")}}},k=V,w=(a("ee61"),a("2877")),x=Object(w["a"])(k,_,b,!1,null,"f94a755e",null),C=x.exports,F=a("d708"),I=a("c276");function $(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=B(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,s=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return n=t.done,t},e:function(t){s=!0,o=t},f:function(){try{n||null==a.return||a.return()}finally{if(s)throw o}}}}function B(t,e){if(t){if("string"===typeof t)return N(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a-1?this.columnsInstall=this.columns2.slice(0,4).concat(this.member):t.indexOf(1)>-1?this.columnsInstall=this.columns2.slice(0,4).concat(this.rakeBack):this.columnsInstall=this.columns2.slice(0,4),2===t.length&&(this.columnsInstall=this.columns2.slice(0,4).concat(this.rakeBack).concat(this.member))):(t.indexOf(0)>-1?this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.member):t.indexOf(1)>-1?this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.rakeBack):this.columnsInstal2=this.columnsInstalM.slice(0,4),2===t.length&&(this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.rakeBack).concat(this.member)))},addCoupon:function(){this.$refs.couponTemplates.isTemplate=!0,this.$refs.couponTemplates.tableList()},see:function(t,e,a){this.tabName=e,this.tabIndex=a,1===this.formValidate.virtual_type?(this.virtualList=t.virtual_list,this.addVirtualModel=!0):(this.$refs.goodsCoupon.isTemplate=!0,this.$refs.goodsCoupon.tableList(3))},addGoodsCoupon:function(t,e){this.tabIndex=t,this.tabName=e,this.$refs.goodsCoupon.isTemplate=!0,this.$refs.goodsCoupon.tableList(3)},addVirtual:function(t,e){this.tabIndex=t,this.tabName=e,this.addVirtualModel=!0},upVirtual:function(){for(var t=0;t-1){if(t.manyBrokerage<=0||t.manyBrokerageTwo<=0)return t.$Message.error("请填写返佣金额后进行批量添加")}else if(t.formValidate.is_sub.indexOf(0)>-1&&t.manyVipPrice<=0)return t.$Message.error("请填写会员价后进行批量添加");if(2===this.formValidate.is_sub.length&&(t.manyBrokerage<=0||t.manyBrokerageTwo<=0||t.manyVipPrice<=0))return t.$Message.error("请填写完金额后进行批量添加");var e,a=$(t.manyFormValidate);try{for(a.s();!(e=a.n()).done;){var i=e.value;this.$set(i,"brokerage",t.manyBrokerage),this.$set(i,"brokerage_two",t.manyBrokerageTwo),this.$set(i,"vip_price",t.manyVipPrice)}}catch(r){a.e(r)}finally{a.f()}},vipPriceSetUp:function(){var t=this;if(t.manyVipPrice<=0)return t.$Message.error("请填写会员价在进行批量添加");var e,a=$(t.manyFormValidate);try{for(a.s();!(e=a.n()).done;){var i=e.value;this.$set(i,"vip_price",t.manyVipPrice)}}catch(r){a.e(r)}finally{a.f()}},handleAdd:function(){this.virtualList.push({key:"",value:""})},initVirtualData:function(t){t||(this.virtualList=[{key:"",value:""}])},removeVirtual:function(t){this.virtualList.splice(t,1)},batchDel:function(){this.oneFormBatch=[{pic:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},confirm:function(){var t=this;if(t.createBnt=!0,t.formValidate.selectRule.trim().length<=0)return t.$Message.error("请选择属性");t.ruleList.forEach((function(e,a){e.rule_name===t.formValidate.selectRule&&(t.attrs=e.rule_value)}))},productGetRule:function(){var t=this;Object(y["r"])().then((function(e){t.ruleList=e.data}))},productGetTemplate:function(){var t=this;Object(y["t"])().then((function(e){t.templateList=e.data}))},delAttrTable:function(t){var e=this,a=this.$route.params.id;a?Object(y["d"])(a).then((function(a){e.manyFormValidate.splice(t,1),e.$Message.success(a.msg)})).catch((function(t){e.$Message.error(t.msg)})):this.manyFormValidate.splice(t,1)},batchAdd:function(){var t,e=$(this.manyFormValidate);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.oneFormBatch[0].pic&&this.$set(a,"pic",this.oneFormBatch[0].pic),this.oneFormBatch[0].price>0&&this.$set(a,"price",this.oneFormBatch[0].price),this.oneFormBatch[0].cost>0&&this.$set(a,"cost",this.oneFormBatch[0].cost),this.oneFormBatch[0].ot_price>0&&this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.oneFormBatch[0].stock>0&&this.$set(a,"stock",this.oneFormBatch[0].stock),""!==this.oneFormBatch[0].bar_code&&this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.oneFormBatch[0].weight>0&&this.$set(a,"weight",this.oneFormBatch[0].weight),this.oneFormBatch[0].volume>0&&this.$set(a,"volume",this.oneFormBatch[0].volume)}}catch(i){e.e(i)}finally{e.f()}},addBtn:function(){this.clearAttr(),this.createBnt=!1,this.showIput=!0},generate:function(t){var e=this;Object(y["i"])({attrs:this.attrs,is_virtual:this.formValidate.is_virtual,virtual_type:this.formValidate.virtual_type},this.formValidate.id,t).then((function(t){var a=t.data.info,i=JSON.parse(JSON.stringify(a.header));"0"!==e.$route.params.id&&(e.manyFormValidate=a.value);var r=a.header;e.formValidate.is_virtual?(e.columnsInstalM=r,e.formValidate.header=r):(e.formValidate.header=i,e.columnsInstalM=a.header),e.checkAllGroup(e.formValidate.is_sub),e.$route.params.id||1!==e.formValidate.spec_type?e.$route.params.id&&(e.manyFormValidate.map((function(t){t.pic||(t.pic=e.formValidate.image)})),e.oneFormBatch[0].pic=e.formValidate.image):(e.manyFormValidate.map((function(t){t.pic=e.formValidate.image})),e.oneFormBatch[0].pic=e.formValidate.image)})).catch((function(t){e.$Message.error(t.msg)}))},offAttrName:function(){this.showIput=!1,this.createBnt=!0},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveRole:function(t){this.attrs.splice(t,1),this.manyFormValidate.splice(t,1)},handleRemove2:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.formDynamic.attrsName&&this.formDynamic.attrsVal){var t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]};this.attrs.push(t);var e={};this.attrs=this.attrs.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.clearAttr(),this.showIput=!1,this.createBnt=!0}else this.$Message.warning("请添加完整的规格!")},createAttr:function(t,e){if(t){this.attrs[e].detail.push(t);var a={};this.attrs[e].detail=this.attrs[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[])}else this.$Message.warning("请添加属性")},goodsCategory:function(){var t=this;Object(y["F"])(1).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},userLabel:function(){var t=this;Object(y["m"])().then((function(e){t.labelSelect=e.data.list})).catch((function(e){t.$Message.error(e.msg)}))},changeSpec:function(){var t=this;this.formValidate.is_sub=[];var e=this.$route.params.id;e&&Object(y["d"])(e).then((function(t){})).catch((function(e){t.formValidate.spec_type=t.spec_type,t.$Message.error(e.msg)}))},getInfo:function(){var t=this,e=this;e.spinShow=!0,Object(y["u"])(e.$route.params.id).then(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(a){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data.productInfo,t.infoData(i),t.spinShow=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))},onhangeTab:function(t){this.currentTab=t},handleRemove:function(t){console.log(t),this.images.splice(t,1),this.formValidate.slider_image.splice(t,1)},changeCancel:function(t){this.modalPic=!1},modalPicTap:function(t,e,a){this.modalPic=!0,this.isChoice="dan"===t?"单选":"多选",this.picTit=e,this.tableIndex=a},getPic:function(t){switch(this.picTit){case"danFrom":this.formValidate.image=t.att_dir,this.$route.params.id||(0===this.formValidate.spec_type?this.oneFormValidate[0].pic=t.att_dir:(this.manyFormValidate.map((function(e){e.pic=t.att_dir})),this.oneFormBatch[0].pic=t.att_dir));break;case"danTable":this.oneFormValidate[this.tableIndex].pic=t.att_dir;break;case"duopi":this.oneFormBatch[this.tableIndex].pic=t.att_dir;break;case"recommend_image":this.formValidate.recommend_image=t.att_dir;break;default:this.manyFormValidate[this.tableIndex].pic=t.att_dir}this.modalPic=!1},getPicD:function(t){var e=this;this.images=t,this.images.map((function(t){e.formValidate.slider_image.push(t.att_dir),e.formValidate.slider_image=e.formValidate.slider_image.splice(0,10)})),this.modalPic=!1},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(t){if(e.formValidate.type=e.type,0===e.formValidate.spec_type?(e.formValidate.attrs=e.oneFormValidate,e.formValidate.header=[],e.formValidate.items=[]):(e.formValidate.items=e.attrs,e.formValidate.attrs=e.manyFormValidate),1===e.formValidate.spec_type&&0===e.manyFormValidate.length)return e.$Message.warning("商品信息-请点击生成多规格");var a=e.formValidate.attrs;if(1===e.formValidate.is_sub[0]){for(var i=0;i]*>/gi,(function(t,e){return t=t.replace(/style="[^"]+"/gi,"").replace(/style='[^']+'/gi,""),t=t.replace(/width="[^"]+"/gi,"").replace(/width='[^']+'/gi,""),t=t.replace(/height="[^"]+"/gi,"").replace(/height='[^']+'/gi,""),t}));return e=e.replace(/style="[^"]+"/gi,(function(t,e){return t=t.replace(/width:[^;]+;/gi,"max-width:100%;").replace(/width:[^;]+;/gi,"max-width:100%;"),t})),e=e.replace(/
]*\/>/gi,""),e=e.replace(/\
c)l.call(t,n=s[c++])&&e.push(n)}return e}},e449:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"优惠券列表",width:"60%"},on:{"on-ok":t.ok,"on-cancel":t.cancel},model:{value:t.isTemplate,callback:function(e){t.isTemplate=e},expression:"isTemplate"}},[a("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.couponList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},on:{"on-select":t.handleSelectRow,"on-select-cancel":t.handleCancelRow,"on-select-all":t.handleSelectAll,"on-select-all-cancel":t.handleSelectAll},scopedSlots:t._u([{key:"count",fn:function(e){var i=e.row;e.index;return[i.is_permanent?a("span",[t._v("不限量")]):a("div",[a("span",{staticClass:"fa"},[t._v("发布:"+t._s(i.total_count))]),a("span",{staticClass:"sheng"},[t._v("剩余:"+t._s(i.remain_count))])])]}},{key:"start_time",fn:function(e){var i=e.row;e.index;return[i.start_time?a("div",[t._v("\n "+t._s(t._f("formatDate")(i.start_time))+" - "+t._s(t._f("formatDate")(i.end_time))+"\n ")]):a("span",[t._v("不限时")])]}},{key:"type",fn:function(e){var i=e.row;return[1===i.type?a("span",[t._v("品类券")]):2===i.type?a("span",[t._v("商品券")]):a("span",[t._v("通用券")])]}},{key:"status",fn:function(e){var i=e.row;e.index;return[a("Tag",{directives:[{name:"show",rawName:"v-show",value:1===i.status,expression:"row.status === 1"}],attrs:{color:"blue"}},[t._v("正常")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:0===i.status,expression:"row.status === 0"}],attrs:{color:"gold"}},[t._v("未开启")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:-1===i.status,expression:"row.status === -1"}],attrs:{color:"red"}},[t._v("已失效")])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.receivePageChange}})],1)],1)],1)},r=[],o=a("75fc"),n=(a("1c4c"),a("f400"),a("ac6a"),a("5df3"),a("4f7f"),a("b7be")),s=a("61f7"),l={name:"index",filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(s["a"])(e,"yyyy-MM-dd hh:mm")}}},props:{couponids:{type:Array},updateIds:{type:Array},updateName:{type:Array},many:{type:String,default:"more"},luckDraw:{type:Boolean,default:!1}},data:function(){return{isTemplate:!1,loading:!1,tableFrom:{receive_type:3,page:1,limit:10},total:0,ids:[],texts:[],columns:[{title:"ID",key:"id",width:60},{title:"优惠券名称",key:"title",minWidth:150},{title:"优惠券类型",slot:"type",minWidth:80},{title:"面值",key:"coupon_price",minWidth:100},{title:"最低消费额",key:"use_min_price",minWidth:100},{title:"发布数量",slot:"count",minWidth:120},{title:"有效期限",slot:"start_time",minWidth:120},{title:"状态",slot:"status",minWidth:80}],couponList:[],selectedIds:new Set,selectedNames:new Set}},mounted:function(){var t=this,e={width:60,align:"center",render:function(e,a){var i=a.row.id,r=!1;console.log(t.currentid,i),r=t.currentid===i;var o=t;return e("div",[e("Radio",{props:{value:r},on:{"on-change":function(){o.currentid=i,t.productRow=a.row,t.productRow.id?(t.$emit("nameId",t.productRow),t.currentid=t.luckDraw?t.currentid:0,t.isTemplate=!!t.luckDraw):t.$Message.warning("请先选择商品")}}})])}},a={type:"selection",width:60,align:"center"};"more"!==this.many||this.luckDraw?this.columns.unshift(e):this.columns.unshift(a)},watch:{updateIds:function(t){this.selectedIds=new Set(t)},updateName:function(t){this.selectedNames=new Set(t)}},methods:{unique:function(t){var e=new Map;return t.filter((function(t){return!e.has(t.id)&&e.set(t.id,1)}))},handleSelectAll:function(t){var e=this;if(0===t.length){var a=this,i=a.$refs.table.data;i.forEach((function(t){if(a.selectedIds.has(t.id)){a.selectedIds.delete(t.id);var e=a.unique(Array.from(a.selectedNames));a.unique(Array.from(a.selectedNames)).forEach((function(a,i){a.id===t.id&&e.splice(i,1)})),a.selectedNames=new Set(e)}}))}else t.forEach((function(t){e.selectedIds.add(t.id),e.selectedNames.add({id:t.id,title:t.title})}));this.$nextTick((function(){e.setChecked()}))},handleSelectRow:function(t,e){var a=this;this.selectedIds.add(e.id),this.selectedNames.add({id:e.id,title:e.title}),this.$nextTick((function(){a.setChecked()}))},handleCancelRow:function(t,e){var a=this,i=this;i.selectedIds.delete(e.id);var r=Array.from(i.selectedNames);Array.from(i.selectedNames).forEach((function(t,a){t.id===e.id&&r.splice(a,1)})),i.selectedNames=new Set(r),this.$nextTick((function(){a.setChecked()}))},setChecked:function(){this.ids=Object(o["a"])(this.selectedIds),this.texts=Object(o["a"])(this.selectedNames);var t=this.$refs.table.objData;for(var e in t)this.selectedIds.has(t[e].id)&&(t[e]._isChecked=!0)},cancel:function(){this.isTemplate=!1,this.luckDraw&&(this.currentid=0)},tableList:function(t){var e=this;this.loading=!0,this.tableFrom.receive_type=t||3,console.log("222"),this.couponList=[],this.selectedIds=[],this.selectedNames=[],Object(n["S"])(this.tableFrom).then((function(t){var a=t.data;e.couponList=a.list,e.$nextTick((function(){e.setChecked()})),e.total=a.count,e.loading=!1}))},ok:function(){this.luckDraw?(this.$emit("getCouponId",this.productRow),this.currentid=0):(this.$emit("nameId",this.ids,this.texts),this.currentid=0)},receivePageChange:function(t){this.tableFrom.page=t,this.tableList()}}},c=l,d=a("2877"),u=Object(d["a"])(c,i,r,!1,null,"09d5965b",null);e["a"]=u.exports},ee61:function(t,e,a){"use strict";var i=a("79e7"),r=a.n(i);r.a}}]);
\ No newline at end of file
diff --git a/crmeb/public/admin/js/chunk-11830870.26ea1789.js b/crmeb/public/admin/js/chunk-11830870.26ea1789.js
deleted file mode 100644
index 5f096cb49..000000000
--- a/crmeb/public/admin/js/chunk-11830870.26ea1789.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11830870"],{"0f87":function(t,e,n){"use strict";var r=n("ee3e"),u=n.n(r);u.a},"90e7":function(t,e,n){"use strict";n.d(e,"p",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"nb",(function(){return a})),n.d(e,"mb",(function(){return o})),n.d(e,"g",(function(){return i})),n.d(e,"O",(function(){return s})),n.d(e,"rb",(function(){return d})),n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h})),n.d(e,"I",(function(){return l})),n.d(e,"N",(function(){return m})),n.d(e,"T",(function(){return p})),n.d(e,"x",(function(){return b})),n.d(e,"ub",(function(){return g})),n.d(e,"Z",(function(){return j})),n.d(e,"Y",(function(){return O})),n.d(e,"u",(function(){return _})),n.d(e,"v",(function(){return v})),n.d(e,"i",(function(){return w})),n.d(e,"P",(function(){return k})),n.d(e,"j",(function(){return y})),n.d(e,"S",(function(){return T})),n.d(e,"R",(function(){return x})),n.d(e,"Q",(function(){return S})),n.d(e,"U",(function(){return $})),n.d(e,"W",(function(){return C})),n.d(e,"H",(function(){return L})),n.d(e,"X",(function(){return E})),n.d(e,"eb",(function(){return I})),n.d(e,"C",(function(){return P})),n.d(e,"db",(function(){return G})),n.d(e,"m",(function(){return D})),n.d(e,"k",(function(){return F})),n.d(e,"l",(function(){return R})),n.d(e,"n",(function(){return M})),n.d(e,"o",(function(){return B})),n.d(e,"ab",(function(){return U})),n.d(e,"bb",(function(){return A})),n.d(e,"cb",(function(){return H})),n.d(e,"L",(function(){return J})),n.d(e,"M",(function(){return q})),n.d(e,"J",(function(){return z})),n.d(e,"K",(function(){return N})),n.d(e,"E",(function(){return W})),n.d(e,"w",(function(){return K})),n.d(e,"A",(function(){return Q})),n.d(e,"z",(function(){return V})),n.d(e,"r",(function(){return X})),n.d(e,"B",(function(){return Y})),n.d(e,"t",(function(){return Z})),n.d(e,"y",(function(){return tt})),n.d(e,"s",(function(){return et})),n.d(e,"q",(function(){return nt})),n.d(e,"D",(function(){return rt})),n.d(e,"f",(function(){return ut})),n.d(e,"c",(function(){return ct})),n.d(e,"d",(function(){return at})),n.d(e,"ob",(function(){return ot})),n.d(e,"pb",(function(){return it})),n.d(e,"qb",(function(){return st})),n.d(e,"V",(function(){return dt})),n.d(e,"fb",(function(){return ft})),n.d(e,"F",(function(){return ht})),n.d(e,"hb",(function(){return lt})),n.d(e,"gb",(function(){return mt})),n.d(e,"ib",(function(){return pt})),n.d(e,"jb",(function(){return bt})),n.d(e,"kb",(function(){return gt})),n.d(e,"lb",(function(){return jt})),n.d(e,"sb",(function(){return Ot})),n.d(e,"tb",(function(){return _t})),n.d(e,"G",(function(){return vt})),n.d(e,"e",(function(){return wt}));var r=n("6b6c");function u(t){return Object(r["a"])({url:"setting/config/header_basics",method:"get",params:t})}function c(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function a(t){return Object(r["a"])({url:t.url,method:"get",params:t.data})}function o(){return Object(r["a"])({url:"notify/sms/temp/create",method:"get"})}function i(t){return Object(r["a"])({url:"serve/login",method:"post",data:t})}function s(t){return Object(r["a"])({url:"serve/modify",method:"post",data:t})}function d(t){return Object(r["a"])({url:"serve/update_phone",method:"post",data:t})}function f(t){return Object(r["a"])({url:"serve/captcha",method:"post",data:t})}function h(t){return Object(r["a"])({url:"serve/checkCode",method:"post",data:t})}function l(t){return Object(r["a"])({url:"serve/register",method:"post",data:t})}function m(){return Object(r["a"])({url:"serve/info",method:"get"})}function p(t){return Object(r["a"])({url:"serve/sms/sign",method:"PUT",data:t})}function b(t){return Object(r["a"])({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function g(t){return Object(r["a"])({url:"app/wechat/speechcraft",method:"get",params:t})}function j(t){return Object(r["a"])({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function O(){return Object(r["a"])({url:"app/wechat/speechcraft/create",method:"get"})}function _(t){return Object(r["a"])({url:"app/feedback",method:"get",params:t})}function v(t){return Object(r["a"])({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function w(){return Object(r["a"])({url:"serve/export_all",method:"get"})}function k(){return Object(r["a"])({url:"serve/open",method:"get"})}function y(t){return Object(r["a"])({url:"serve/export_temp",method:"get",params:t})}function T(t){return Object(r["a"])({url:"serve/record",method:"get",params:t})}function x(t){return Object(r["a"])({url:"serve/open",method:"get",params:t})}function S(t){return Object(r["a"])({url:"serve/opn_express",method:"post",data:t})}function $(t){return Object(r["a"])({url:"serve/sms/open",method:"get",params:t})}function C(t){return Object(r["a"])({url:"serve/meal_list",method:"get",params:t})}function L(t){return Object(r["a"])({url:"serve/pay_meal",method:"post",data:t})}function E(t){return Object(r["a"])({url:"notify/sms/record",method:"get",params:t})}function I(){return Object(r["a"])({url:"merchant/store",method:"GET"})}function P(){return Object(r["a"])({url:"merchant/store/address",method:"GET"})}function G(t){return Object(r["a"])({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function D(t){return Object(r["a"])({url:"freight/express",method:"get",params:t})}function F(){return Object(r["a"])({url:"/freight/express/create",method:"get"})}function R(t){return Object(r["a"])({url:"freight/express/".concat(t,"/edit"),method:"get"})}function M(t){return Object(r["a"])({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function B(){return Object(r["a"])({url:"freight/express/sync_express",method:"get"})}function U(){return Object(r["a"])({url:"app/wechat/speechcraftcate",method:"get"})}function A(){return Object(r["a"])({url:"app/wechat/speechcraftcate/create",method:"get"})}function H(t){return Object(r["a"])({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function J(t){return Object(r["a"])({url:"setting/role",method:"GET",params:t})}function q(t){return Object(r["a"])({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function z(t){return Object(r["a"])({url:"setting/role/".concat(t.id),method:"post",data:t})}function N(t){return Object(r["a"])({url:"setting/role/".concat(t,"/edit"),method:"get"})}function W(){return Object(r["a"])({url:"setting/role/create",method:"get"})}function K(t){return Object(r["a"])({url:"app/wechat/kefu",method:"get",params:t})}function Q(t){return Object(r["a"])({url:"app/wechat/kefu/create",method:"get",params:t})}function V(){return Object(r["a"])({url:"app/wechat/kefu/add",method:"get"})}function X(t){return Object(r["a"])({url:"app/wechat/kefu",method:"post",data:t})}function Y(t){return Object(r["a"])({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function Z(t){return Object(r["a"])({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function tt(t,e){return Object(r["a"])({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function et(t){return Object(r["a"])({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function nt(){return Object(r["a"])({url:"notify/sms/is_login",method:"GET"})}function rt(){return Object(r["a"])({url:"notify/sms/logout",method:"GET"})}function ut(t){return Object(r["a"])({url:"setting/city/list/".concat(t),method:"get"})}function ct(t){return Object(r["a"])({url:"setting/city/add/".concat(t),method:"get"})}function at(t){return Object(r["a"])({url:"setting/city/".concat(t,"/edit"),method:"get"})}function ot(t){return Object(r["a"])({url:"setting/shipping_templates/list",method:"get",params:t})}function it(t){return Object(r["a"])({url:"setting/shipping_templates/city_list",method:"get"})}function st(t,e){return Object(r["a"])({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function dt(t){return Object(r["a"])({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function ft(){return Object(r["a"])({url:"merchant/store/get_header",method:"get"})}function ht(t){return Object(r["a"])({url:"merchant/store",method:"get",params:t})}function lt(t,e){return Object(r["a"])({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function mt(t){return Object(r["a"])({url:"merchant/store/get_info/".concat(t),method:"get"})}function pt(t){return Object(r["a"])({url:"merchant/store_staff",method:"get",params:t})}function bt(){return Object(r["a"])({url:"merchant/store_staff/create",method:"get"})}function gt(t){return Object(r["a"])({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function jt(t,e){return Object(r["a"])({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function Ot(t){return Object(r["a"])({url:"merchant/verify_order",method:"get",params:t})}function _t(t){return Object(r["a"])({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function vt(){return Object(r["a"])({url:"merchant/store_list",method:"get"})}function wt(){return Object(r["a"])({url:"setting/city/clean_cache",method:"get"})}},a53e: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:"article-manager"},[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.title))]),n("div",[n("Tabs",{on:{"on-click":t.changeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headerList,(function(t,e){return n("TabPane",{key:e,attrs:{icon:t.icon,label:t.label,name:t.value.toString()}})})),1)],1)])]),n("Card",{staticClass:"ivu-mt fromBox",attrs:{bordered:!1,"dis-hover":""}},[t.headerChildrenList.length?n("Tabs",{attrs:{type:"card"},on:{"on-click":t.changeChildrenTab},model:{value:t.childrenId,callback:function(e){t.childrenId=e},expression:"childrenId"}},t._l(t.headerChildrenList,(function(t,e){return n("TabPane",{key:e,attrs:{label:t.label,name:t.id.toString()}})})),1):t._e(),0!==t.rules.length?n("form-create",{attrs:{option:t.option,rule:t.rules},on:{"on-submit":t.onSubmit}}):t._e(),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)},u=[],c=(n("7f7f"),n("c5f6"),n("96cf"),n("3b8d")),a=(n("6b54"),n("ac6a"),n("9860")),o=n.n(a),i=n("90e7"),s=n("6b6c"),d={name:"setting_setSystem",components:{formCreate:o.a.$form()},data:function(){return{rules:[],option:{form:{labelWidth:185},submitBtn:{col:{span:3,push:3}},global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$Message.error(t.msg)}}},frame:{props:{closeBtn:!1,okBtn:!1}}}},spinShow:!1,FromData:null,currentTab:"",headerList:[],headerChildrenList:[],childrenId:"",title:""}},created:function(){this.getAllData()},watch:{$route:function(t,e){this.headerChildrenList=[],this.getAllData()},childrenId:function(){this.getFrom()}},methods:{childrenList:function(){var t=this;t.headerList.forEach((function(e){e.value.toString()===t.currentTab&&(void 0===e.children?(t.childrenId=e.id,t.headerChildrenList=[]):(t.headerChildrenList=e.children,t.childrenId=e.children.length?e.children[0].id.toString():""))}))},getHeader:function(){var t=this;return this.spinShow=!0,new Promise((function(e,n){var r=t.$route.params.tab_id,u={type:t.$route.params.type?t.$route.params.type:0,pid:r||0};Object(i["p"])(u).then(function(){var n=Object(c["a"])(regeneratorRuntime.mark((function n(r){var u;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:u=r.data.config_tab,t.headerList=u,t.currentTab=u[0].value.toString(),t.childrenList(),e(t.currentTab),t.spinShow=!1;case 6:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e)}))}))},getFrom:function(){var t=this;return this.spinShow=!0,new Promise((function(e,n){var r="";r="3"===t.$route.params.type?t.$route.params.tab_id:t.childrenId?t.childrenId:t.currentTab;var u={tab_id:Number(r)},a="freight/config/edit_basics",o="agent/config/edit_basics",s="marketing/integral_config/edit_basics",d="serve/sms_config/edit_basics",f="setting/config/edit_basics",h="setting_logistics"===t.$route.name?a:"setting_distributionSet"===t.$route.name?o:"setting_message"===t.$route.name?d:"setting_setSystem"===t.$route.name?f:s;Object(i["h"])(u,h).then(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.spinShow=!1,!1!==n.data.status){e.next=3;break}return e.abrupt("return",t.$authLapse(n.data));case 3:t.FromData=n.data,t.rules=n.data.rules,t.title=n.data.title;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))}))},getAllData:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("3"===this.$route.params.type){t.next=5;break}return t.next=3,this.getHeader();case 3:t.next=7;break;case 5:this.headerList=[],this.getFrom();case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),changeTab:function(){this.childrenList()},changeChildrenTab:function(t){this.childrenId=t},onSubmit:function(t){var e=this;Object(s["a"])({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))}}},f=d,h=(n("0f87"),n("2877")),l=Object(h["a"])(f,r,u,!1,null,"5fcc85ee",null);e["default"]=l.exports},ee3e:function(t,e,n){}}]);
\ No newline at end of file
diff --git a/crmeb/public/admin/js/chunk-8c9fae8a.4e2cce78.js b/crmeb/public/admin/js/chunk-8c9fae8a.4e2cce78.js
new file mode 100644
index 000000000..515d2e307
--- /dev/null
+++ b/crmeb/public/admin/js/chunk-8c9fae8a.4e2cce78.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8c9fae8a"],{"02f4a":function(t,e,a){},"0b9c":function(t,e,a){},"37c8":function(t,e,a){e.f=a("2b4c")},"3a72":function(t,e,a){var i=a("7726"),r=a("8378"),o=a("2d00"),n=a("37c8"),s=a("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:n.f(t)})}},"3b2b":function(t,e,a){var i=a("7726"),r=a("5dbc"),o=a("86cc").f,n=a("9093").f,s=a("aae3"),l=a("0bfb"),c=i.RegExp,d=c,u=c.prototype,m=/a/g,p=/a/g,f=new c(m)!==m;if(a("9e1e")&&(!f||a("79e5")((function(){return p[a("2b4c")("match")]=!1,c(m)!=m||c(p)==p||"/a/i"!=c(m,"i")})))){c=function(t,e){var a=this instanceof c,i=s(t),o=void 0===e;return!a&&i&&t.constructor===c&&o?t:r(f?new d(i&&!o?t.source:t,e):d((i=t instanceof c)?t.source:t,i&&o?l.call(t):e),a?this:u,c)};for(var h=function(t){t in c||o(c,t,{configurable:!0,get:function(){return d[t]},set:function(e){d[t]=e}})},v=n(d),g=0;v.length>g;)h(v[g++]);u.constructor=c,c.prototype=u,a("2aba")(i,"RegExp",c)}a("7a56")("RegExp")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return d})),a.d(e,"b",(function(){return u}));a("8e6e"),a("ac6a"),a("456d");var i=a("bd86");a("6b54"),a("3b2b"),a("a481");function r(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return o({required:!0,message:t,type:"string"},e)}function u(t){return m.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}c(d,"请输入%s"),c(u,"%s格式不正确");var m=Object.keys(l).reduce((function(t,e){return t[e]=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="range"===e?{min:t[0],max:t[1]}:Object(i["a"])({},e,t);return o(o({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},n),r)},c(t[e],l[e]),t}),{})},"6f83":function(t,e,a){"use strict";var i=a("0b9c"),r=a.n(i);r.a},"6fd3":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Modal",{attrs:{scrollable:"",title:"商品规格",width:"950"},on:{"on-cancel":t.onCancel},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[a("Form",{ref:"formDynamic",staticClass:"attrFrom",attrs:{model:t.formDynamic,rules:t.rules,"label-width":110,"label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{gutter:24}},[a("Col",{attrs:{span:"24"}},[a("Col",{staticClass:"mb15",attrs:{span:"8"}},[a("FormItem",{attrs:{label:"规格模板名称:",prop:"rule_name"}},[a("Input",{attrs:{placeholder:"请输入标题名称",maxlength:20},model:{value:t.formDynamic.rule_name,callback:function(e){t.$set(t.formDynamic,"rule_name",e)},expression:"formDynamic.rule_name"}})],1)],1)],1),t._l(t.formDynamic.spec,(function(e,i){return a("Col",{key:i,staticClass:"noForm",attrs:{span:"23"}},[a("FormItem",[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),a("Icon",{attrs:{type:"ios-close-circle"},on:{click:function(e){return t.handleRemove(i)}}})],1),a("div",{staticClass:"rulesBox"},[t._l(e.detail,(function(i,r){return a("Tag",{key:r,attrs:{type:"dot",closable:"",color:"primary",name:i},on:{"on-close":function(a){return t.handleRemove2(e.detail,r)}}},[t._v(t._s(i))])})),a("Input",{staticStyle:{width:"200px"},attrs:{search:"","enter-button":"添加",placeholder:"请输入属性名称"},on:{"on-search":function(a){return t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}})],2)])],1)})),t.isBtn?a("Col",{staticClass:"mt10",attrs:{span:"24"}},[a("Col",{staticClass:"mr15",attrs:{span:"8"}},[a("FormItem",{attrs:{label:"规格名称:"}},[a("Input",{attrs:{placeholder:"请输入规格"},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),a("Col",{staticClass:"mr20",attrs:{span:"8"}},[a("FormItem",{attrs:{label:"规格值:"}},[a("Input",{attrs:{placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),a("Col",{attrs:{span:"2"}},[a("Button",{attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")])],1),a("Col",{attrs:{span:"2"}},[a("Button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1):t._e(),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],2),t.isBtn?t._e():a("Button",{staticClass:"ml95 mt10",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary",loading:t.modal_loading},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确定")])],1)],1)},r=[],o=(a("7f7f"),a("c4c8")),n={name:"addAttr",data:function(){return{spinShow:!1,modal_loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{rule_name:[{required:!0,message:"请输入规格名称",trigger:"blur"}]},formDynamic:{rule_name:"",spec:[]},attrsName:"",attrsVal:"",formDynamicNameData:[],isBtn:!1,formDynamicName:[],results:[],result:[],ids:0}},computed:{},methods:{onCancel:function(){this.ids=0,this.clear()},addBtn:function(){this.isBtn=!0},getIofo:function(t){var e=this;this.spinShow=!0,this.ids=t.id,Object(o["A"])(t.id).then((function(t){e.formDynamic=t.data.info,e.spinShow=!1})).catch((function(t){e.spinShow=!1,e.$Message.error(t.msg)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){return!!t&&(0===e.formDynamic.spec.length?e.$Message.warning("请至少添加一条商品规格!"):(e.modal_loading=!0,void setTimeout((function(){Object(o["z"])(e.formDynamic,e.ids).then((function(t){e.$Message.success(t.msg),setTimeout((function(){e.modal=!1,e.modal_loading=!1}),500),setTimeout((function(){e.$emit("getList"),e.clear()}),600)})).catch((function(t){e.modal_loading=!1,e.$Message.error(t.msg)}))}),1200)))}))},clear:function(){this.$refs["formDynamic"].resetFields(),this.formDynamic.spec=[],this.isBtn=!1,this.attrsName="",this.attrsVal="",this.ids=0},offAttrName:function(){this.isBtn=!1},handleRemove:function(t){this.formDynamic.spec.splice(t,1)},handleRemove2:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.attrsName&&this.attrsVal){var t={value:this.attrsName,detail:[this.attrsVal]};this.formDynamic.spec.push(t);var e={};this.formDynamic.spec=this.formDynamic.spec.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.attrsName="",this.attrsVal="",this.isBtn=!1}else this.$Message.warning("请添加规格名称或规格值")},createAttr:function(t,e){if(t){this.formDynamic.spec[e].detail.push(t);var a={};this.formDynamic.spec[e].detail=this.formDynamic.spec[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[])}else this.$Message.warning("请添加属性")}}},s=n,l=(a("6f83"),a("2877")),c=Object(l["a"])(s,i,r,!1,null,"921f4090",null);e["a"]=c.exports},"79e7":function(t,e,a){},"7bbc":function(t,e,a){var i=a("6821"),r=a("9093").f,o={}.toString,n="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return n.slice()}};t.exports.f=function(t){return n&&"[object Window]"==o.call(t)?s(t):r(i(t))}},"7d53":function(t,e,a){"use strict";var i=a("02f4a"),r=a.n(i);r.a},"8a81":function(t,e,a){"use strict";var i=a("7726"),r=a("69a8"),o=a("9e1e"),n=a("5ca1"),s=a("2aba"),l=a("67ab").KEY,c=a("79e5"),d=a("5537"),u=a("7f20"),m=a("ca5a"),p=a("2b4c"),f=a("37c8"),h=a("3a72"),v=a("d4c0"),g=a("1169"),_=a("cb7c"),b=a("d3f4"),y=a("4bf8"),V=a("6821"),k=a("6a99"),w=a("4630"),x=a("2aeb"),C=a("7bbc"),F=a("11e9"),I=a("2621"),$=a("86cc"),B=a("0d58"),N=F.f,S=$.f,O=C.f,T=i.Symbol,D=i.JSON,R=D&&D.stringify,M="prototype",P=p("_hidden"),j=p("toPrimitive"),L={}.propertyIsEnumerable,A=d("symbol-registry"),E=d("symbols"),W=d("op-symbols"),z=Object[M],G="function"==typeof T&&!!I.f,U=i.QObject,q=!U||!U[M]||!U[M].findChild,J=o&&c((function(){return 7!=x(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a}))?function(t,e,a){var i=N(z,e);i&&delete z[e],S(t,e,a),i&&t!==z&&S(z,e,i)}:S,H=function(t){var e=E[t]=x(T[M]);return e._k=t,e},K=G&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Y=function(t,e,a){return t===z&&Y(W,e,a),_(t),e=k(e,!0),_(a),r(E,e)?(a.enumerable?(r(t,P)&&t[P][e]&&(t[P][e]=!1),a=x(a,{enumerable:w(0,!1)})):(r(t,P)||S(t,P,w(1,{})),t[P][e]=!0),J(t,e,a)):S(t,e,a)},Q=function(t,e){_(t);var a,i=v(e=V(e)),r=0,o=i.length;while(o>r)Y(t,a=i[r++],e[a]);return t},X=function(t,e){return void 0===e?x(t):Q(x(t),e)},Z=function(t){var e=L.call(this,t=k(t,!0));return!(this===z&&r(E,t)&&!r(W,t))&&(!(e||!r(this,t)||!r(E,t)||r(this,P)&&this[P][t])||e)},tt=function(t,e){if(t=V(t),e=k(e,!0),t!==z||!r(E,e)||r(W,e)){var a=N(t,e);return!a||!r(E,e)||r(t,P)&&t[P][e]||(a.enumerable=!0),a}},et=function(t){var e,a=O(V(t)),i=[],o=0;while(a.length>o)r(E,e=a[o++])||e==P||e==l||i.push(e);return i},at=function(t){var e,a=t===z,i=O(a?W:V(t)),o=[],n=0;while(i.length>n)!r(E,e=i[n++])||a&&!r(z,e)||o.push(E[e]);return o};G||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=m(arguments.length>0?arguments[0]:void 0),e=function(a){this===z&&e.call(W,a),r(this,P)&&r(this[P],t)&&(this[P][t]=!1),J(this,t,w(1,a))};return o&&q&&J(z,t,{configurable:!0,set:e}),H(t)},s(T[M],"toString",(function(){return this._k})),F.f=tt,$.f=Y,a("9093").f=C.f=et,a("52a7").f=Z,I.f=at,o&&!a("2d00")&&s(z,"propertyIsEnumerable",Z,!0),f.f=function(t){return H(p(t))}),n(n.G+n.W+n.F*!G,{Symbol:T});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)p(it[rt++]);for(var ot=B(p.store),nt=0;ot.length>nt;)h(ot[nt++]);n(n.S+n.F*!G,"Symbol",{for:function(t){return r(A,t+="")?A[t]:A[t]=T(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in A)if(A[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),n(n.S+n.F*!G,"Object",{create:X,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:at});var st=c((function(){I.f(1)}));n(n.S+n.F*st,"Object",{getOwnPropertySymbols:function(t){return I.f(y(t))}}),D&&n(n.S+n.F*(!G||c((function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){var e,a,i=[t],r=1;while(arguments.length>r)i.push(arguments[r++]);if(a=e=i[1],(b(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof a&&(e=a.call(this,t,e)),!K(e))return e}),i[1]=e,R.apply(D,i)}}),T[M][j]||a("32e9")(T[M],j,T[M].valueOf),u(T,"Symbol"),u(Math,"Math",!0),u(i.JSON,"JSON",!0)},ac4d:function(t,e,a){a("3a72")("asyncIterator")},c7e8:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"shopp-manager"}},[a("div",{staticClass:"i-layout-page-header"},[a("div",{staticClass:"i-layout-page-header"},[a("router-link",{attrs:{to:{path:"/admin/product/product_list"}}},[a("Button",{staticClass:"mr20",attrs:{icon:"ios-arrow-back",size:"small"}},[t._v("返回")])],1),a("span",{staticClass:"ivu-page-header-title mr20",domProps:{textContent:t._s(t.$route.params.id?"编辑商品":"添加商品")}})],1)]),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Tabs",{on:{"on-click":t.onhangeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},[a("TabPane",{attrs:{label:"商品信息",name:"1"}}),a("TabPane",{attrs:{label:"商品详情",name:"2"}}),a("TabPane",{attrs:{label:"其他设置",name:"3"}})],1),a("Form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{directives:[{name:"show",rawName:"v-show",value:"1"===t.currentTab,expression:"currentTab === '1'"}],attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品名称:",prop:"store_name"}},[a("Input",{staticClass:"perW50",attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品分类:",prop:"cate_id"}},[a("Select",{staticClass:"perW50",attrs:{placeholder:"请选择商品分类",multiple:""},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}},t._l(t.treeSelect,(function(e){return a("Option",{key:e.id,attrs:{disabled:0===e.pid,value:e.id}},[t._v(t._s(e.html+e.cate_name))])})),1)],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品关键字:",prop:""}},[a("Input",{staticClass:"perW50",attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"单位:",prop:"unit_name"}},[a("Input",{staticClass:"perW50",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品简介:",prop:""}},[a("Input",{staticClass:"perW50",attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info",e)},expression:"formValidate.store_info"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品封面图:",prop:"image"}},[a("div",{staticClass:"pictrueBox",on:{click:function(e){return t.modalPicTap("dan","danFrom")}}},[t.formValidate.image?a("div",{staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.image,expression:"formValidate.image"}]}),a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.image,callback:function(e){t.$set(t.formValidate,"image",e)},expression:"formValidate.image"}})],1):a("div",{staticClass:"upLoad acea-row row-center-wrapper"},[a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.image,callback:function(e){t.$set(t.formValidate,"image",e)},expression:"formValidate.image"}}),a("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)]),a("div",{staticClass:"tips"},[t._v("(345*345)")])])],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品推荐图:"}},[a("div",{staticClass:"pictrueBox",on:{click:function(e){return t.modalPicTap("dan","recommend_image")}}},[t.formValidate.recommend_image?a("div",{staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.recommend_image,expression:"formValidate.recommend_image"}]}),a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.recommend_image,callback:function(e){t.$set(t.formValidate,"recommend_image",e)},expression:"formValidate.recommend_image"}})],1):a("div",{staticClass:"upLoad acea-row row-center-wrapper"},[a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.recommend_image,callback:function(e){t.$set(t.formValidate,"recommend_image",e)},expression:"formValidate.recommend_image"}}),a("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)]),a("div",{staticClass:"tips"},[t._v("(382*160)")])])],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(e,i){return a("div",{key:i,staticClass:"pictrue",attrs:{draggable:"true"},on:{dragstart:function(a){return t.handleDragStart(a,e)},dragover:function(a){return a.preventDefault(),t.handleDragOver(a,e)},dragenter:function(a){return t.handleDragEnter(a,e)},dragend:function(a){return t.handleDragEnd(a,e)}}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e,expression:"item"}]}),a("Button",{staticClass:"btndel",attrs:{shape:"circle",icon:"md-close"},nativeOn:{click:function(e){return t.handleRemove(i)}}})],1)})),t.formValidate.slider_image.length<10?a("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:function(e){return t.modalPicTap("duo")}}},[a("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1):t._e(),a("Input",{staticStyle:{display:"none"},model:{value:t.formValidate.slider_image[0],callback:function(e){t.$set(t.formValidate.slider_image,0,e)},expression:"formValidate.slider_image[0]"}})],2),a("div",{staticClass:"tips"},[t._v("(最多10张"),a("br"),t._v("750*750)")])])],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"主图视频:",prop:"video_link"}},[a("Input",{staticClass:"perW50",attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),a("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),"1"!==t.upload_type||t.videoLink?a("Button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v(t._s(t.videoLink?"确认添加":"上传视频"))]):t._e(),"1"!==t.upload_type||t.videoLink?t._e():a("Upload",{staticClass:"ml10",staticStyle:{display:"inline-block"},attrs:{"show-upload-list":!1,action:t.fileUrl,"before-upload":t.beforeUpload,data:t.uploadData,headers:t.header,multiple:!0,"on-success":t.handleSuccess}},[a("Button",{attrs:{type:"primary",icon:"ios-cloud-upload-outline"}},[t._v("上传视频")])],1),t.upload.videoIng?a("Progress",{attrs:{percent:t.progress,"stroke-width":5}}):t._e(),t.formValidate.video_link?a("div",{staticClass:"iview-video-style"},[a("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),a("div",{staticClass:"mark"}),a("Icon",{staticClass:"iconv",attrs:{type:"ios-trash-outline"},on:{click:t.delVideo}})],1):t._e()],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品类型:",props:"is_virtual"}},[a("RadioGroup",{on:{"on-change":t.changeSpec},model:{value:t.formValidate.is_virtual,callback:function(e){t.$set(t.formValidate,"is_virtual",e)},expression:"formValidate.is_virtual"}},[a("Radio",{staticClass:"radio",attrs:{label:0}},[t._v("普通商品")]),a("Radio",{attrs:{label:1}},[t._v("虚拟商品")])],1)],1)],1),t.formValidate.is_virtual?a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"虚拟类型:",props:"is_virtual"}},[a("RadioGroup",{on:{"on-change":t.changeSpec},model:{value:t.formValidate.virtual_type,callback:function(e){t.$set(t.formValidate,"virtual_type",e)},expression:"formValidate.virtual_type"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("卡密")]),a("Radio",{attrs:{label:2}},[t._v("优惠券")])],1)],1)],1):t._e(),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品规格:",props:"spec_type"}},[a("RadioGroup",{on:{"on-change":t.changeSpec},model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[a("Radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),a("Radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),1===t.formValidate.spec_type?a("Col",{staticClass:"noForm",attrs:{span:"24"}},[a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"选择规格:",prop:""}},[a("div",{staticClass:"acea-row row-middle"},[a("Select",{staticStyle:{width:"23%"},model:{value:t.formValidate.selectRule,callback:function(e){t.$set(t.formValidate,"selectRule",e)},expression:"formValidate.selectRule"}},t._l(t.ruleList,(function(e,i){return a("Option",{key:i,attrs:{value:e.rule_name}},[t._v(t._s(e.rule_name))])})),1),a("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")]),a("Button",{on:{click:t.addRule}},[t._v("添加规格模板")])],1)])],1),a("Col",{attrs:{span:"24"}},[0!==t.attrs.length?a("FormItem",[a("draggable",{staticClass:"dragArea list-group",attrs:{list:t.attrs,group:"peoples",handle:".move-icon",move:t.checkMove},on:{end:t.end}},t._l(t.attrs,(function(e,i){return a("div",{key:i,staticClass:"acea-row row-middle mb10"},[a("div",{staticClass:"move-icon"},[a("span",{staticClass:"iconfont icondrag2"})]),a("div",{class:t.moveIndex===i?"borderStyle":"",staticStyle:{width:"90%"}},[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"mr5"},[t._v(t._s(e.value))]),a("Icon",{staticClass:"curs",attrs:{type:"ios-close-circle",size:"14"},on:{click:function(e){return t.handleRemoveRole(i)}}})],1),a("div",{staticClass:"rulesBox"},[a("draggable",{attrs:{list:e.detail,handle:".drag"}},t._l(e.detail,(function(i,r){return a("Tag",{key:r,staticClass:"mr20 drag",attrs:{type:"dot",closable:"",color:"primary",name:i},on:{"on-close":function(a){return t.handleRemove2(e.detail,r)}}},[t._v(t._s(i))])})),1),a("Input",{staticStyle:{width:"150px"},attrs:{search:"","enter-button":"添加",placeholder:"请输入属性名称"},on:{"on-search":function(a){return t.createAttr(e.detail.attrsVal,i)}},model:{value:e.detail.attrsVal,callback:function(a){t.$set(e.detail,"attrsVal",a)},expression:"item.detail.attrsVal"}})],1)])])})),0)],1):t._e()],1),t.createBnt?a("Col",{attrs:{span:"24"}},[a("FormItem",[a("Button",{staticClass:"mr15",attrs:{type:"primary",icon:"md-add"},on:{click:t.addBtn}},[t._v("添加新规格")]),a("Button",{attrs:{type:"success"},on:{click:function(e){return t.generate(1)}}},[t._v("立即生成")])],1)],1):t._e(),t.showIput?a("Col",{attrs:{span:"24"}},[a("Col",{attrs:{xl:6,lg:9,md:10,sm:24,xs:24}},[a("FormItem",{attrs:{label:"规格:"}},[a("Input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),a("Col",{attrs:{xl:6,lg:9,md:10,sm:24,xs:24}},[a("FormItem",{attrs:{label:"规格值:"}},[a("Input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),a("Col",{attrs:{xl:6,lg:5,md:10,sm:24,xs:24}},[a("FormItem",[a("Button",{staticClass:"mr15",attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),a("Button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1)],1):t._e(),t.manyFormValidate.length&&0!==t.formValidate.header.length&&0!==t.attrs.length?a("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[t.formValidate.is_virtual?t._e():a("Col",{attrs:{span:"24"}},[a("FormItem",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[a("Table",{attrs:{data:t.oneFormBatch,columns:t.formValidate.is_virtual?t.columns3:t.columns2,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row;var i=e.index;return[a("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","duopi",i)}}},[t.oneFormBatch[0].pic?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormBatch[0].pic,expression:"oneFormBatch[0].pic"}]})]):a("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[a("Icon",{staticClass:"iconfont",attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}},{key:"price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].price,callback:function(e){t.$set(t.oneFormBatch[0],"price",e)},expression:"oneFormBatch[0].price"}})]}},{key:"cost",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].cost,callback:function(e){t.$set(t.oneFormBatch[0],"cost",e)},expression:"oneFormBatch[0].cost"}})]}},{key:"ot_price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormBatch[0].ot_price,callback:function(e){t.$set(t.oneFormBatch[0],"ot_price",e)},expression:"oneFormBatch[0].ot_price"}})]}},{key:"stock",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{disabled:1==t.formValidate.is_virtual&&1==t.formValidate.virtual_type,min:0},model:{value:t.oneFormBatch[0].stock,callback:function(e){t.$set(t.oneFormBatch[0],"stock",e)},expression:"oneFormBatch[0].stock"}})]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):i.virtual_list.length||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"oneFormBatch",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"oneFormBatch")}}},[t._v("添加卡密")]):a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"oneFormBatch")}}},[t._v("添加优惠券")])]}},{key:"bar_code",fn:function(e){e.row,e.index;return[a("Input",{model:{value:t.oneFormBatch[0].bar_code,callback:function(e){t.$set(t.oneFormBatch[0],"bar_code",e)},expression:"oneFormBatch[0].bar_code"}})]}},{key:"weight",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{step:.1,min:0},model:{value:t.oneFormBatch[0].weight,callback:function(e){t.$set(t.oneFormBatch[0],"weight",e)},expression:"oneFormBatch[0].weight"}})]}},{key:"volume",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{step:.1,min:0},model:{value:t.oneFormBatch[0].volume,callback:function(e){t.$set(t.oneFormBatch[0],"volume",e)},expression:"oneFormBatch[0].volume"}})]}},{key:"action",fn:function(e){e.row,e.index;return[a("a",{on:{click:t.batchAdd}},[t._v("批量添加")]),a("Divider",{attrs:{type:"vertical"}}),a("a",{on:{click:t.batchDel}},[t._v("清空")])]}}],null,!1,2574576162)})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{staticClass:"labeltop",attrs:{label:"商品属性:"}},[a("Table",{attrs:{data:t.manyFormValidate,columns:t.formValidate.header,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row;var i=e.index;return[a("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","duoTable",i)}}},[t.manyFormValidate[i].pic?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.manyFormValidate[i].pic,expression:"manyFormValidate[index].pic"}]})]):a("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[a("Icon",{staticClass:"iconfont",attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}},{key:"price",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].price,callback:function(e){t.$set(t.manyFormValidate[i],"price",e)},expression:"manyFormValidate[index].price"}})]}},{key:"cost",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].cost,callback:function(e){t.$set(t.manyFormValidate[i],"cost",e)},expression:"manyFormValidate[index].cost"}})]}},{key:"ot_price",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].ot_price,callback:function(e){t.$set(t.manyFormValidate[i],"ot_price",e)},expression:"manyFormValidate[index].ot_price"}})]}},{key:"stock",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{disabled:1==t.formValidate.is_virtual&&1==t.formValidate.virtual_type,min:0,precision:0},model:{value:t.manyFormValidate[i].stock,callback:function(e){t.$set(t.manyFormValidate[i],"stock",e)},expression:"manyFormValidate[index].stock"}})]}},{key:"bar_code",fn:function(e){e.row;var i=e.index;return[a("Input",{model:{value:t.manyFormValidate[i].bar_code,callback:function(e){t.$set(t.manyFormValidate[i],"bar_code",e)},expression:"manyFormValidate[index].bar_code"}})]}},{key:"weight",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].weight,callback:function(e){t.$set(t.manyFormValidate[i],"weight",e)},expression:"manyFormValidate[index].weight"}})]}},{key:"volume",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].volume,callback:function(e){t.$set(t.manyFormValidate[i],"volume",e)},expression:"manyFormValidate[index].volume"}})]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):i.virtual_list||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"manyFormValidate")}}},[t._v("添加卡密")]):a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"manyFormValidate")}}},[t._v("添加优惠券")])]}},{key:"action",fn:function(e){e.row;var i=e.index;return[a("a",{on:{click:function(e){return t.delAttrTable(i)}}},[t._v("删除")])]}}],null,!1,1036322893)})],1)],1)],1):t._e()],1):t._e(),0===t.formValidate.spec_type?a("Col",{attrs:{xl:23,lg:24,md:24,sm:24,xs:24}},[a("FormItem",[a("Table",{attrs:{data:t.oneFormValidate,columns:t.formValidate.is_virtual?t.columns3.slice(0,7):t.columns,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row;var i=e.index;return[a("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","danTable",i)}}},[t.oneFormValidate[0].pic?a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormValidate[0].pic,expression:"oneFormValidate[0].pic"}]})]):a("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[a("Icon",{attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}},{key:"price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].price,callback:function(e){t.$set(t.oneFormValidate[0],"price",e)},expression:"oneFormValidate[0].price"}})]}},{key:"cost",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].cost,callback:function(e){t.$set(t.oneFormValidate[0],"cost",e)},expression:"oneFormValidate[0].cost"}})]}},{key:"ot_price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].ot_price,callback:function(e){t.$set(t.oneFormValidate[0],"ot_price",e)},expression:"oneFormValidate[0].ot_price"}})]}},{key:"stock",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0,disabled:1==t.formValidate.is_virtual&&1==t.formValidate.virtual_type,precision:0},model:{value:t.oneFormValidate[0].stock,callback:function(e){t.$set(t.oneFormValidate[0],"stock",e)},expression:"oneFormValidate[0].stock"}})]}},{key:"bar_code",fn:function(e){e.row,e.index;return[a("Input",{model:{value:t.oneFormValidate[0].bar_code,callback:function(e){t.$set(t.oneFormValidate[0],"bar_code",e)},expression:"oneFormValidate[0].bar_code"}})]}},{key:"weight",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].weight,callback:function(e){t.$set(t.oneFormValidate[0],"weight",e)},expression:"oneFormValidate[0].weight"}})]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"oneFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):t._e():a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"oneFormValidate")}}},[t._v("添加优惠券")]),i.virtual_list.length||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"oneFormValidate",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"oneFormValidate")}}},[t._v("添加卡密")])]}},{key:"volume",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].volume,callback:function(e){t.$set(t.oneFormValidate[0],"volume",e)},expression:"oneFormValidate[0].volume"}})]}}],null,!1,2703005854)})],1)],1):t._e(),1!=t.formValidate.is_virtual?a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"运费模板:",prop:"temp_id"}},[a("div",{staticClass:"acea-row"},[a("Select",{staticClass:"mr20 perW50 maxW",attrs:{clearable:"",placeholder:"请选择运费模板"},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.templateList,(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1),a("Button",{on:{click:t.addTemp}},[t._v("添加运费模板")])],1)])],1):t._e(),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"关联用户标签:",prop:"label_id"}},[a("Select",{staticClass:"perW50",attrs:{placeholder:"请选择关联用户标签",multiple:""},model:{value:t.formValidate.label_id,callback:function(e){t.$set(t.formValidate,"label_id",e)},expression:"formValidate.label_id"}},t._l(t.labelSelect,(function(e){return a("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.label_name))])})),1)],1)],1)],1),a("Row",{directives:[{name:"show",rawName:"v-show",value:"2"===t.currentTab,expression:"currentTab === '2'"}]},[a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"商品详情:"}},[a("vue-ueditor-wrap",{staticStyle:{width:"90%"},attrs:{config:t.myConfig},on:{beforeInit:t.addCustomDialog},model:{value:t.formValidate.description,callback:function(e){t.$set(t.formValidate,"description",e)},expression:"formValidate.description"}})],1)],1)],1),a("Row",{directives:[{name:"show",rawName:"v-show",value:"3"===t.currentTab,expression:"currentTab === '3'"}],attrs:{type:"flex",justify:"space-between"}},[a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"虚拟销量:"}},[a("InputNumber",{attrs:{min:0,placeholder:"请输入虚拟销量"},model:{value:t.formValidate.ficti,callback:function(e){t.$set(t.formValidate,"ficti",e)},expression:"formValidate.ficti"}})],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"积分:",prop:"give_integral"}},[a("InputNumber",{attrs:{min:0,placeholder:"请输入积分"},model:{value:t.formValidate.give_integral,callback:function(e){t.$set(t.formValidate,"give_integral",e)},expression:"formValidate.give_integral"}})],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"排序:"}},[a("InputNumber",{attrs:{min:0,placeholder:"请输入排序"},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1),a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"单独设置:"}},[a("CheckboxGroup",{on:{"on-change":t.checkAllGroupChange},model:{value:t.formValidate.is_sub,callback:function(e){t.$set(t.formValidate,"is_sub",e)},expression:"formValidate.is_sub"}},[a("Checkbox",{attrs:{label:1}},[t._v("佣金设置(数字即返佣金额)")])],1)],1)],1),t.formValidate.is_sub.length?a("Col",{attrs:{span:"24"}},[0===t.formValidate.spec_type?a("FormItem",{attrs:{label:"商品属性:"}},[a("Table",{attrs:{data:t.oneFormValidate,columns:t.columnsInstall,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row,e.index;return[a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormValidate[0].pic,expression:"oneFormValidate[0].pic"}]})])]}},{key:"price",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].price))]}},{key:"cost",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].cost))]}},{key:"ot_price",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].ot_price))]}},{key:"stock",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].stock))]}},{key:"bar_code",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].bar_code))]}},{key:"weight",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].weight))]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):i.virtual_list.length||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"oneFormValidate",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"oneFormValidate")}}},[t._v("添加卡密")]):a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"oneFormValidate")}}},[t._v("添加优惠券")])]}},{key:"volume",fn:function(e){e.row,e.index;return[t._v(t._s(t.oneFormValidate[0].volume))]}},{key:"brokerage",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].brokerage,callback:function(e){t.$set(t.oneFormValidate[0],"brokerage",e)},expression:"oneFormValidate[0].brokerage"}})]}},{key:"brokerage_two",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].brokerage_two,callback:function(e){t.$set(t.oneFormValidate[0],"brokerage_two",e)},expression:"oneFormValidate[0].brokerage_two"}})]}},{key:"vip_price",fn:function(e){e.row,e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.oneFormValidate[0].vip_price,callback:function(e){t.$set(t.oneFormValidate[0],"vip_price",e)},expression:"oneFormValidate[0].vip_price"}})]}}],null,!1,714993360)})],1):t._e(),1===t.formValidate.spec_type?a("FormItem",{attrs:{label:"批量设置:"}},[t.formValidate.is_sub.indexOf(1)>-1?a("span",[t._v("\n 一级返佣:"),a("InputNumber",{staticClass:"columnsBox perW20",attrs:{placeholder:"请输入一级返佣",min:0},model:{value:t.manyBrokerage,callback:function(e){t.manyBrokerage=e},expression:"manyBrokerage"}}),t._v("\n 二级返佣:"),a("InputNumber",{staticClass:"columnsBox perW20",attrs:{placeholder:"请输入二级返佣",min:0},model:{value:t.manyBrokerageTwo,callback:function(e){t.manyBrokerageTwo=e},expression:"manyBrokerageTwo"}})],1):t._e(),t.formValidate.is_sub.indexOf(0)>-1?a("span",[t._v("\n 会员价:"),a("InputNumber",{staticClass:"columnsBox perW20",attrs:{placeholder:"请输入会员价",min:0},model:{value:t.manyVipPrice,callback:function(e){t.manyVipPrice=e},expression:"manyVipPrice"}})],1):t._e(),a("Button",{attrs:{type:"primary"},on:{click:t.brokerageSetUp}},[t._v("批量设置")])],1):t._e(),1===t.formValidate.spec_type&&t.manyFormValidate.length?a("FormItem",{attrs:{label:"商品属性:"}},[t.formValidate.is_sub?a("Table",{attrs:{data:t.manyFormValidate,columns:t.columnsInstal2,border:""},scopedSlots:t._u([{key:"pic",fn:function(e){e.row;var i=e.index;return[a("div",{staticClass:"pictrue pictrueTab"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.manyFormValidate[i].pic,expression:"manyFormValidate[index].pic"}]})])]}},{key:"price",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].price))]}},{key:"cost",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].cost))]}},{key:"ot_price",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].ot_price))]}},{key:"stock",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].stock))]}},{key:"bar_code",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].bar_code))]}},{key:"weight",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].weight))]}},{key:"fictitious",fn:function(e){var i=e.row,r=e.index;return[i.coupon_id||2!=t.formValidate.virtual_type?i.coupon_id&&2==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v(t._s(i.coupon_name))]):i.virtual_list.length||1!=t.formValidate.virtual_type?i.virtual_list.length&&1==t.formValidate.virtual_type?a("span",{staticClass:"see",on:{click:function(e){return t.see(i,"manyFormValidate",r)}}},[t._v("已设置")]):t._e():a("Button",{on:{click:function(e){return t.addVirtual(r,"manyFormValidate")}}},[t._v("添加卡密")]):a("Button",{on:{click:function(e){return t.addGoodsCoupon(r,"manyFormValidate")}}},[t._v("添加优惠券")])]}},{key:"volume",fn:function(e){e.row;var a=e.index;return[t._v(t._s(t.manyFormValidate[a].volume))]}},{key:"brokerage",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].brokerage,callback:function(e){t.$set(t.manyFormValidate[i],"brokerage",e)},expression:"manyFormValidate[index].brokerage"}})]}},{key:"brokerage_two",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].brokerage_two,callback:function(e){t.$set(t.manyFormValidate[i],"brokerage_two",e)},expression:"manyFormValidate[index].brokerage_two"}})]}},{key:"vip_price",fn:function(e){e.row;var i=e.index;return[a("InputNumber",{staticClass:"priceBox",attrs:{min:0},model:{value:t.manyFormValidate[i].vip_price,callback:function(e){t.$set(t.manyFormValidate[i],"vip_price",e)},expression:"manyFormValidate[index].vip_price"}})]}}],null,!1,1109189007)}):t._e()],1):t._e()],1):t._e(),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"商品状态:"}},[a("RadioGroup",{model:{value:t.formValidate.is_show,callback:function(e){t.$set(t.formValidate,"is_show",e)},expression:"formValidate.is_show"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("上架")]),a("Radio",{attrs:{label:0}},[t._v("下架")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"热卖单品:"}},[a("RadioGroup",{model:{value:t.formValidate.is_hot,callback:function(e){t.$set(t.formValidate,"is_hot",e)},expression:"formValidate.is_hot"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"促销单品:"}},[a("RadioGroup",{model:{value:t.formValidate.is_benefit,callback:function(e){t.$set(t.formValidate,"is_benefit",e)},expression:"formValidate.is_benefit"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"精品推荐:"}},[a("RadioGroup",{model:{value:t.formValidate.is_best,callback:function(e){t.$set(t.formValidate,"is_best",e)},expression:"formValidate.is_best"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"首发新品:"}},[a("RadioGroup",{model:{value:t.formValidate.is_new,callback:function(e){t.$set(t.formValidate,"is_new",e)},expression:"formValidate.is_new"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"优品推荐:"}},[a("RadioGroup",{model:{value:t.formValidate.is_good,callback:function(e){t.$set(t.formValidate,"is_good",e)},expression:"formValidate.is_good"}},[a("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),a("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),a("Col",t._b({},"Col",t.grid3,!1),[a("FormItem",{attrs:{label:"活动优先级:"}},[a("div",{staticClass:"color-list acea-row row-middle"},[t._l(t.formValidate.activity,(function(e){return a("div",{directives:[{name:"dragging",rawName:"v-dragging",value:{item:e,list:t.formValidate.activity,group:"color"},expression:"{\n item: color,\n list: formValidate.activity,\n group: 'color',\n }"}],key:e,staticClass:"color-item",class:t.activity[e]},[t._v("\n "+t._s(e)+"\n ")])})),a("div",{staticClass:"tip"},[t._v("可拖动按钮调整活动的优先展示顺序")])],2)])],1),a("Col",t._b({},"Col",t.grid3,!1),[a("FormItem",{attrs:{label:"选择优品推荐商品:"}},[a("div",{staticClass:"picBox"},[t._l(t.formValidate.recommend_list,(function(e,i){return a("div",{key:i,staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"item.image"}]}),a("Button",{staticClass:"btndel",attrs:{shape:"circle",icon:"md-close"},nativeOn:{click:function(e){return t.handleRemoveRecommend(i)}}})],1)})),a("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:t.changeGoods}},[a("Icon",{staticClass:"iconfonts",attrs:{type:"ios-add",size:"26"}})],1)],2)])],1),a("Col",t._b({},"Col",t.grid3,!1),[a("FormItem",{attrs:{label:"赠送优惠券:"}},[t.couponName.length?a("div",{staticClass:"mb20"},t._l(t.couponName,(function(e,i){return a("Tag",{key:i,attrs:{closable:""},on:{"on-close":function(a){return t.handleClose(e)}}},[t._v(t._s(e.title))])})),1):t._e(),a("Button",{attrs:{type:"primary"},on:{click:t.addCoupon}},[t._v("添加优惠券")])],1)],1),a("Col",t._b({},"Col",t.grid3,!1),[a("FormItem",{attrs:{label:"商品口令:"}},[a("Input",{attrs:{placeholder:"请输入商品口令"},model:{value:t.formValidate.command_word,callback:function(e){t.$set(t.formValidate,"command_word",e)},expression:"formValidate.command_word"}})],1)],1)],1),a("FormItem",["1"!==t.currentTab?a("Button",{on:{click:t.upTab}},[t._v("上一步")]):t._e(),"3"!==t.currentTab?a("Button",{staticClass:"submission",attrs:{type:"primary"},on:{click:t.downTab}},[t._v("下一步")]):t._e(),t.$route.params.id||"3"===t.currentTab?a("Button",{staticClass:"submission",attrs:{type:"primary",disabled:t.openSubimit},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("保存")]):t._e()],1),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],1),a("Modal",{attrs:{width:"1024px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?a("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic,getPicD:t.getPicD}}):t._e()],1),a("Modal",{attrs:{width:"700px",closable:"",title:"添加卡密","mask-closable":!1,"z-index":1,"footer-hide":""},on:{"on-visible-change":t.initVirtualData},model:{value:t.addVirtualModel,callback:function(e){t.addVirtualModel=e},expression:"addVirtualModel"}},[a("div",{staticClass:"trip"}),a("div",{staticClass:"scroll-virtual"},t._l(t.virtualList,(function(e,i){return a("div",{key:i,staticClass:"virtual-data mb10"},[a("span",{staticClass:"mr10 virtual-title"},[t._v("卡号"+t._s(i+1)+":")]),a("Input",{staticClass:"mr10",staticStyle:{width:"150px"},attrs:{type:"text",placeholder:"请输入卡号(非必填)"},model:{value:e.key,callback:function(a){t.$set(e,"key",a)},expression:"item.key"}}),a("span",{staticClass:"mr10 virtual-title"},[t._v("卡密"+t._s(i+1)+":")]),a("Input",{staticClass:"mr10",staticStyle:{width:"150px"},attrs:{type:"text",placeholder:"请输入卡密"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}}),a("Button",{attrs:{type:"dashed"},on:{click:function(e){return t.removeVirtual(i)}}},[t._v("删除")])],1)})),0),a("div",{staticClass:"add-more"},[a("Button",{attrs:{type:"info",icon:"md-add"},on:{click:t.handleAdd}},[t._v("新增")]),a("Upload",{staticClass:"ml10",attrs:{action:t.cardUrl,data:t.uploadData,"before-upload":t.beforeUpload,headers:t.header,"on-success":t.upFile}},[a("Button",{attrs:{type:"info",icon:"ios-cloud-upload-outline"}},[t._v("导入卡密")])],1)],1),a("div",{staticClass:"footer"},[a("div",{staticClass:"clear",on:{click:t.closeVirtual}},[t._v("取消")]),a("div",{staticClass:"submit",on:{click:t.upVirtual}},[t._v("确认")])])])],1),a("freightTemplate",{ref:"templates",attrs:{template:t.template},on:{changeTemplate:t.changeTemplate}}),a("add-attr",{ref:"addattr",on:{getList:t.userSearchs}}),a("coupon-list",{ref:"couponTemplates",attrs:{couponids:t.formValidate.coupon_ids,updateIds:t.updateIds,updateName:t.updateName},on:{nameId:t.nameId}}),a("coupon-list",{ref:"goodsCoupon",attrs:{many:"one"},on:{nameId:t.goodsCouponId}}),a("Modal",{staticClass:"Box",attrs:{scrollable:"","footer-hide":"",closable:"",title:"复制淘宝、天猫、京东、苏宁、1688","mask-closable":!1,width:"800",height:"500"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals?a("tao-bao",{ref:"taobaos",on:{"on-close":t.onClose}}):t._e()],1),a("Modal",{staticClass:"paymentFooter",attrs:{title:"商品列表",footerHide:"",scrollable:"",width:"900"},model:{value:t.goods_modals,callback:function(e){t.goods_modals=e},expression:"goods_modals"}},[t.goods_modals?a("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0},on:{getProductId:t.getProductId}}):t._e()],1)],1)},r=[],o=(a("ac4d"),a("8a81"),a("1c4c"),a("8e6e"),a("456d"),a("a481"),a("75fc")),n=(a("96cf"),a("3b8d")),s=(a("6b54"),a("7f7f"),a("ac6a"),a("5df3"),a("f400"),a("c5f6"),a("bd86")),l=a("2f62"),c=a("310e"),d=a.n(c),u=a("b0e7"),m=a("5334"),p=a("e449"),f=a("6fd3"),h=a("6625"),v=a.n(h),g=a("c4ad"),_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[a("Card",[a("div",[t._v("生成的商品默认是没有上架的,请手动上架商品!\n "),2==t.copyConfig.copy_type?a("a",{attrs:{href:"http://help.crmeb.net/crmeb-v4/1863579",target:"_blank"}},[t._v("如何配置密钥")]):a("span",[t._v("您当前剩余"+t._s(t.copyConfig.copy_num)+"条采集次数,"),a("a",{attrs:{href:"#"},on:{click:function(e){return t.mealPay("copy")}}},[t._v("增加采集次数")])])]),a("div",[t._v("商品采集设置:设置 > 系统设置 > 第三方接口设置 > 采集商品配置")])]),a("Form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{"label-width":120,"label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{span:"18"}},[a("FormItem",{attrs:{label:"链接地址:"}},[a("Input",{staticClass:"numPut",attrs:{search:"","enter-button":"确定",placeholder:"请输入链接地址"},on:{"on-search":t.add},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}})],1)],1)],1)],1),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)},b=[],y=a("c4c8"),V={name:"taoBao",data:function(){return{soure_link:"",spinShow:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},copyConfig:{copy_type:2,copy_num:0},artFrom:{type:"taobao",url:""}}},computed:{},created:function(){},mounted:function(){this.getCopyConfig()},methods:{mealPay:function(t){this.$router.push({path:"/admin/setting/sms/sms_pay/index",query:{type:t}})},getCopyConfig:function(){var t=this;Object(y["e"])().then((function(e){t.copyConfig.copy_type=e.data.copy_type,t.copyConfig.copy_num=e.data.copy_num}))},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$Message.warning("请输入以http开头的地址!");this.spinShow=!0,this.artFrom.url=this.soure_link,Object(y["f"])(this.artFrom).then((function(e){var a=e.data.productInfo;t.$emit("on-close",a),t.spinShow=!1})).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))}else this.$Message.warning("请输入链接地址!")}}},k=V,w=(a("ee61"),a("2877")),x=Object(w["a"])(k,_,b,!1,null,"f94a755e",null),C=x.exports,F=a("d708"),I=a("c276");function $(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=B(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,s=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return n=t.done,t},e:function(t){s=!0,o=t},f:function(){try{n||null==a.return||a.return()}finally{if(s)throw o}}}}function B(t,e){if(t){if("string"===typeof t)return N(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a-1?this.columnsInstall=this.columns2.slice(0,4).concat(this.member):t.indexOf(1)>-1?this.columnsInstall=this.columns2.slice(0,4).concat(this.rakeBack):this.columnsInstall=this.columns2.slice(0,4),2===t.length&&(this.columnsInstall=this.columns2.slice(0,4).concat(this.rakeBack).concat(this.member))):(t.indexOf(0)>-1?this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.member):t.indexOf(1)>-1?this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.rakeBack):this.columnsInstal2=this.columnsInstalM.slice(0,4),2===t.length&&(this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.rakeBack).concat(this.member)))},addCoupon:function(){this.$refs.couponTemplates.isTemplate=!0,this.$refs.couponTemplates.tableList()},see:function(t,e,a){this.tabName=e,this.tabIndex=a,1===this.formValidate.virtual_type?(this.virtualList=t.virtual_list,this.addVirtualModel=!0):(this.$refs.goodsCoupon.isTemplate=!0,this.$refs.goodsCoupon.tableList(3))},addGoodsCoupon:function(t,e){this.tabIndex=t,this.tabName=e,this.$refs.goodsCoupon.isTemplate=!0,this.$refs.goodsCoupon.tableList(3)},addVirtual:function(t,e){this.tabIndex=t,this.tabName=e,this.addVirtualModel=!0},upVirtual:function(){for(var t=0;t-1){if(t.manyBrokerage<=0||t.manyBrokerageTwo<=0)return t.$Message.error("请填写返佣金额后进行批量添加")}else if(t.formValidate.is_sub.indexOf(0)>-1&&t.manyVipPrice<=0)return t.$Message.error("请填写会员价后进行批量添加");if(2===this.formValidate.is_sub.length&&(t.manyBrokerage<=0||t.manyBrokerageTwo<=0||t.manyVipPrice<=0))return t.$Message.error("请填写完金额后进行批量添加");var e,a=$(t.manyFormValidate);try{for(a.s();!(e=a.n()).done;){var i=e.value;this.$set(i,"brokerage",t.manyBrokerage),this.$set(i,"brokerage_two",t.manyBrokerageTwo),this.$set(i,"vip_price",t.manyVipPrice)}}catch(r){a.e(r)}finally{a.f()}},vipPriceSetUp:function(){var t=this;if(t.manyVipPrice<=0)return t.$Message.error("请填写会员价在进行批量添加");var e,a=$(t.manyFormValidate);try{for(a.s();!(e=a.n()).done;){var i=e.value;this.$set(i,"vip_price",t.manyVipPrice)}}catch(r){a.e(r)}finally{a.f()}},handleAdd:function(){this.virtualList.push({key:"",value:""})},initVirtualData:function(t){t||(this.virtualList=[{key:"",value:""}])},removeVirtual:function(t){this.virtualList.splice(t,1)},batchDel:function(){this.oneFormBatch=[{pic:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0}]},confirm:function(){var t=this;if(t.createBnt=!0,t.formValidate.selectRule.trim().length<=0)return t.$Message.error("请选择属性");t.ruleList.forEach((function(e,a){e.rule_name===t.formValidate.selectRule&&(t.attrs=e.rule_value)}))},productGetRule:function(){var t=this;Object(y["r"])().then((function(e){t.ruleList=e.data}))},productGetTemplate:function(){var t=this;Object(y["t"])().then((function(e){t.templateList=e.data}))},delAttrTable:function(t){var e=this,a=this.$route.params.id;a?Object(y["d"])(a).then((function(a){e.manyFormValidate.splice(t,1),e.$Message.success(a.msg)})).catch((function(t){e.$Message.error(t.msg)})):this.manyFormValidate.splice(t,1)},batchAdd:function(){var t,e=$(this.manyFormValidate);try{for(e.s();!(t=e.n()).done;){var a=t.value;this.oneFormBatch[0].pic&&this.$set(a,"pic",this.oneFormBatch[0].pic),this.oneFormBatch[0].price>0&&this.$set(a,"price",this.oneFormBatch[0].price),this.oneFormBatch[0].cost>0&&this.$set(a,"cost",this.oneFormBatch[0].cost),this.oneFormBatch[0].ot_price>0&&this.$set(a,"ot_price",this.oneFormBatch[0].ot_price),this.oneFormBatch[0].stock>0&&this.$set(a,"stock",this.oneFormBatch[0].stock),""!==this.oneFormBatch[0].bar_code&&this.$set(a,"bar_code",this.oneFormBatch[0].bar_code),this.oneFormBatch[0].weight>0&&this.$set(a,"weight",this.oneFormBatch[0].weight),this.oneFormBatch[0].volume>0&&this.$set(a,"volume",this.oneFormBatch[0].volume)}}catch(i){e.e(i)}finally{e.f()}},addBtn:function(){this.clearAttr(),this.createBnt=!1,this.showIput=!0},generate:function(t){var e=this;Object(y["i"])({attrs:this.attrs,is_virtual:this.formValidate.is_virtual,virtual_type:this.formValidate.virtual_type},this.formValidate.id,t).then((function(t){var a=t.data.info,i=JSON.parse(JSON.stringify(a.header));"0"!==e.$route.params.id&&(e.manyFormValidate=a.value);var r=a.header;e.formValidate.is_virtual?(e.columnsInstalM=r,e.formValidate.header=r):(e.formValidate.header=i,e.columnsInstalM=a.header),e.checkAllGroup(e.formValidate.is_sub),e.$route.params.id||1!==e.formValidate.spec_type?e.$route.params.id&&(e.manyFormValidate.map((function(t){t.pic||(t.pic=e.formValidate.image)})),e.oneFormBatch[0].pic=e.formValidate.image):(e.manyFormValidate.map((function(t){t.pic=e.formValidate.image})),e.oneFormBatch[0].pic=e.formValidate.image)})).catch((function(t){e.$Message.error(t.msg)}))},offAttrName:function(){this.showIput=!1,this.createBnt=!0},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveRole:function(t){this.attrs.splice(t,1),this.manyFormValidate.splice(t,1)},handleRemove2:function(t,e){t.splice(e,1)},createAttrName:function(){if(this.formDynamic.attrsName&&this.formDynamic.attrsVal){var t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]};this.attrs.push(t);var e={};this.attrs=this.attrs.reduce((function(t,a){return!e[a.value]&&(e[a.value]=t.push(a)),t}),[]),this.clearAttr(),this.showIput=!1,this.createBnt=!0}else this.$Message.warning("请添加完整的规格!")},createAttr:function(t,e){if(t){this.attrs[e].detail.push(t);var a={};this.attrs[e].detail=this.attrs[e].detail.reduce((function(t,e){return!a[e]&&(a[e]=t.push(e)),t}),[])}else this.$Message.warning("请添加属性")},goodsCategory:function(){var t=this;Object(y["F"])(1).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},userLabel:function(){var t=this;Object(y["m"])().then((function(e){t.labelSelect=e.data.list})).catch((function(e){t.$Message.error(e.msg)}))},changeSpec:function(){var t=this;this.formValidate.is_sub=[];var e=this.$route.params.id;e&&Object(y["d"])(e).then((function(t){})).catch((function(e){t.formValidate.spec_type=t.spec_type,t.$Message.error(e.msg)}))},getInfo:function(){var t=this,e=this;e.spinShow=!0,Object(y["u"])(e.$route.params.id).then(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(a){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=a.data.productInfo,t.infoData(i),t.spinShow=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))},onhangeTab:function(t){this.currentTab=t},handleRemove:function(t){console.log(t),this.images.splice(t,1),this.formValidate.slider_image.splice(t,1)},changeCancel:function(t){this.modalPic=!1},modalPicTap:function(t,e,a){this.modalPic=!0,this.isChoice="dan"===t?"单选":"多选",this.picTit=e,this.tableIndex=a},getPic:function(t){switch(this.picTit){case"danFrom":this.formValidate.image=t.att_dir,this.$route.params.id||(0===this.formValidate.spec_type?this.oneFormValidate[0].pic=t.att_dir:(this.manyFormValidate.map((function(e){e.pic=t.att_dir})),this.oneFormBatch[0].pic=t.att_dir));break;case"danTable":this.oneFormValidate[this.tableIndex].pic=t.att_dir;break;case"duopi":this.oneFormBatch[this.tableIndex].pic=t.att_dir;break;case"recommend_image":this.formValidate.recommend_image=t.att_dir;break;default:this.manyFormValidate[this.tableIndex].pic=t.att_dir}this.modalPic=!1},getPicD:function(t){var e=this;this.images=t,this.images.map((function(t){e.formValidate.slider_image.push(t.att_dir),e.formValidate.slider_image=e.formValidate.slider_image.splice(0,10)})),this.modalPic=!1},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(t){if(e.formValidate.type=e.type,0===e.formValidate.spec_type?(e.formValidate.attrs=e.oneFormValidate,e.formValidate.header=[],e.formValidate.items=[]):(e.formValidate.items=e.attrs,e.formValidate.attrs=e.manyFormValidate),1===e.formValidate.spec_type&&0===e.manyFormValidate.length)return e.$Message.warning("商品信息-请点击生成多规格");var a=e.formValidate.attrs;if(1===e.formValidate.is_sub[0]){for(var i=0;i]*>/gi,(function(t,e){return t=t.replace(/style="[^"]+"/gi,"").replace(/style='[^']+'/gi,""),t=t.replace(/width="[^"]+"/gi,"").replace(/width='[^']+'/gi,""),t=t.replace(/height="[^"]+"/gi,"").replace(/height='[^']+'/gi,""),t}));return e=e.replace(/style="[^"]+"/gi,(function(t,e){return t=t.replace(/width:[^;]+;/gi,"max-width:100%;").replace(/width:[^;]+;/gi,"max-width:100%;"),t})),e=e.replace(/
]*\/>/gi,""),e=e.replace(/\
c)l.call(t,n=s[c++])&&e.push(n)}return e}},e449:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"优惠券列表",width:"60%"},on:{"on-ok":t.ok,"on-cancel":t.cancel},model:{value:t.isTemplate,callback:function(e){t.isTemplate=e},expression:"isTemplate"}},[a("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.couponList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},on:{"on-select":t.handleSelectRow,"on-select-cancel":t.handleCancelRow,"on-select-all":t.handleSelectAll,"on-select-all-cancel":t.handleSelectAll},scopedSlots:t._u([{key:"count",fn:function(e){var i=e.row;e.index;return[i.is_permanent?a("span",[t._v("不限量")]):a("div",[a("span",{staticClass:"fa"},[t._v("发布:"+t._s(i.total_count))]),a("span",{staticClass:"sheng"},[t._v("剩余:"+t._s(i.remain_count))])])]}},{key:"start_time",fn:function(e){var i=e.row;e.index;return[i.start_time?a("div",[t._v("\n "+t._s(t._f("formatDate")(i.start_time))+" - "+t._s(t._f("formatDate")(i.end_time))+"\n ")]):a("span",[t._v("不限时")])]}},{key:"type",fn:function(e){var i=e.row;return[1===i.type?a("span",[t._v("品类券")]):2===i.type?a("span",[t._v("商品券")]):a("span",[t._v("通用券")])]}},{key:"status",fn:function(e){var i=e.row;e.index;return[a("Tag",{directives:[{name:"show",rawName:"v-show",value:1===i.status,expression:"row.status === 1"}],attrs:{color:"blue"}},[t._v("正常")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:0===i.status,expression:"row.status === 0"}],attrs:{color:"gold"}},[t._v("未开启")]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:-1===i.status,expression:"row.status === -1"}],attrs:{color:"red"}},[t._v("已失效")])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.receivePageChange}})],1)],1)],1)},r=[],o=a("75fc"),n=(a("1c4c"),a("f400"),a("ac6a"),a("5df3"),a("4f7f"),a("b7be")),s=a("61f7"),l={name:"index",filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(s["a"])(e,"yyyy-MM-dd hh:mm")}}},props:{couponids:{type:Array},updateIds:{type:Array},updateName:{type:Array},many:{type:String,default:"more"},luckDraw:{type:Boolean,default:!1}},data:function(){return{isTemplate:!1,loading:!1,tableFrom:{receive_type:3,page:1,limit:10},total:0,ids:[],texts:[],columns:[{title:"ID",key:"id",width:60},{title:"优惠券名称",key:"title",minWidth:150},{title:"优惠券类型",slot:"type",minWidth:80},{title:"面值",key:"coupon_price",minWidth:100},{title:"最低消费额",key:"use_min_price",minWidth:100},{title:"发布数量",slot:"count",minWidth:120},{title:"有效期限",slot:"start_time",minWidth:120},{title:"状态",slot:"status",minWidth:80}],couponList:[],selectedIds:new Set,selectedNames:new Set}},mounted:function(){var t=this,e={width:60,align:"center",render:function(e,a){var i=a.row.id,r=!1;console.log(t.currentid,i),r=t.currentid===i;var o=t;return e("div",[e("Radio",{props:{value:r},on:{"on-change":function(){o.currentid=i,t.productRow=a.row,t.productRow.id?(t.$emit("nameId",t.productRow),t.currentid=t.luckDraw?t.currentid:0,t.isTemplate=!!t.luckDraw):t.$Message.warning("请先选择商品")}}})])}},a={type:"selection",width:60,align:"center"};"more"!==this.many||this.luckDraw?this.columns.unshift(e):this.columns.unshift(a)},watch:{updateIds:function(t){this.selectedIds=new Set(t)},updateName:function(t){this.selectedNames=new Set(t)}},methods:{unique:function(t){var e=new Map;return t.filter((function(t){return!e.has(t.id)&&e.set(t.id,1)}))},handleSelectAll:function(t){var e=this;if(0===t.length){var a=this,i=a.$refs.table.data;i.forEach((function(t){if(a.selectedIds.has(t.id)){a.selectedIds.delete(t.id);var e=a.unique(Array.from(a.selectedNames));a.unique(Array.from(a.selectedNames)).forEach((function(a,i){a.id===t.id&&e.splice(i,1)})),a.selectedNames=new Set(e)}}))}else t.forEach((function(t){e.selectedIds.add(t.id),e.selectedNames.add({id:t.id,title:t.title})}));this.$nextTick((function(){e.setChecked()}))},handleSelectRow:function(t,e){var a=this;this.selectedIds.add(e.id),this.selectedNames.add({id:e.id,title:e.title}),this.$nextTick((function(){a.setChecked()}))},handleCancelRow:function(t,e){var a=this,i=this;i.selectedIds.delete(e.id);var r=Array.from(i.selectedNames);Array.from(i.selectedNames).forEach((function(t,a){t.id===e.id&&r.splice(a,1)})),i.selectedNames=new Set(r),this.$nextTick((function(){a.setChecked()}))},setChecked:function(){this.ids=Object(o["a"])(this.selectedIds),this.texts=Object(o["a"])(this.selectedNames);var t=this.$refs.table.objData;for(var e in t)this.selectedIds.has(t[e].id)&&(t[e]._isChecked=!0)},cancel:function(){this.isTemplate=!1,this.luckDraw&&(this.currentid=0)},tableList:function(t){var e=this;this.loading=!0,this.tableFrom.receive_type=t||3,console.log("222"),this.couponList=[],this.selectedIds=[],this.selectedNames=[],Object(n["S"])(this.tableFrom).then((function(t){var a=t.data;e.couponList=a.list,e.$nextTick((function(){e.setChecked()})),e.total=a.count,e.loading=!1}))},ok:function(){this.luckDraw?(this.$emit("getCouponId",this.productRow),this.currentid=0):(this.$emit("nameId",this.ids,this.texts),this.currentid=0)},receivePageChange:function(t){this.tableFrom.page=t,this.tableList()}}},c=l,d=a("2877"),u=Object(d["a"])(c,i,r,!1,null,"09d5965b",null);e["a"]=u.exports},ee61:function(t,e,a){"use strict";var i=a("79e7"),r=a.n(i);r.a}}]);
\ No newline at end of file
diff --git a/crmeb/public/admin/js/chunk-96c43e02.8fef881a.js b/crmeb/public/admin/js/chunk-96c43e02.8fef881a.js
new file mode 100644
index 000000000..6eddd1ab0
--- /dev/null
+++ b/crmeb/public/admin/js/chunk-96c43e02.8fef881a.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-96c43e02"],{"90e7":function(t,e,n){"use strict";n.d(e,"p",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"nb",(function(){return a})),n.d(e,"mb",(function(){return o})),n.d(e,"g",(function(){return i})),n.d(e,"O",(function(){return s})),n.d(e,"rb",(function(){return d})),n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h})),n.d(e,"I",(function(){return l})),n.d(e,"N",(function(){return m})),n.d(e,"T",(function(){return p})),n.d(e,"x",(function(){return b})),n.d(e,"ub",(function(){return g})),n.d(e,"Z",(function(){return j})),n.d(e,"Y",(function(){return O})),n.d(e,"u",(function(){return _})),n.d(e,"v",(function(){return v})),n.d(e,"i",(function(){return w})),n.d(e,"P",(function(){return k})),n.d(e,"j",(function(){return y})),n.d(e,"S",(function(){return T})),n.d(e,"R",(function(){return x})),n.d(e,"Q",(function(){return S})),n.d(e,"U",(function(){return $})),n.d(e,"W",(function(){return C})),n.d(e,"H",(function(){return L})),n.d(e,"X",(function(){return E})),n.d(e,"eb",(function(){return I})),n.d(e,"C",(function(){return P})),n.d(e,"db",(function(){return G})),n.d(e,"m",(function(){return D})),n.d(e,"k",(function(){return F})),n.d(e,"l",(function(){return R})),n.d(e,"n",(function(){return M})),n.d(e,"o",(function(){return B})),n.d(e,"ab",(function(){return U})),n.d(e,"bb",(function(){return A})),n.d(e,"cb",(function(){return H})),n.d(e,"L",(function(){return q})),n.d(e,"M",(function(){return J})),n.d(e,"J",(function(){return z})),n.d(e,"K",(function(){return N})),n.d(e,"E",(function(){return W})),n.d(e,"w",(function(){return K})),n.d(e,"A",(function(){return Q})),n.d(e,"z",(function(){return V})),n.d(e,"r",(function(){return X})),n.d(e,"B",(function(){return Y})),n.d(e,"t",(function(){return Z})),n.d(e,"y",(function(){return tt})),n.d(e,"s",(function(){return et})),n.d(e,"q",(function(){return nt})),n.d(e,"D",(function(){return rt})),n.d(e,"f",(function(){return ut})),n.d(e,"c",(function(){return ct})),n.d(e,"d",(function(){return at})),n.d(e,"ob",(function(){return ot})),n.d(e,"pb",(function(){return it})),n.d(e,"qb",(function(){return st})),n.d(e,"V",(function(){return dt})),n.d(e,"fb",(function(){return ft})),n.d(e,"F",(function(){return ht})),n.d(e,"hb",(function(){return lt})),n.d(e,"gb",(function(){return mt})),n.d(e,"ib",(function(){return pt})),n.d(e,"jb",(function(){return bt})),n.d(e,"kb",(function(){return gt})),n.d(e,"lb",(function(){return jt})),n.d(e,"sb",(function(){return Ot})),n.d(e,"tb",(function(){return _t})),n.d(e,"G",(function(){return vt})),n.d(e,"e",(function(){return wt}));var r=n("6b6c");function u(t){return Object(r["a"])({url:"setting/config/header_basics",method:"get",params:t})}function c(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function a(t){return Object(r["a"])({url:t.url,method:"get",params:t.data})}function o(){return Object(r["a"])({url:"notify/sms/temp/create",method:"get"})}function i(t){return Object(r["a"])({url:"serve/login",method:"post",data:t})}function s(t){return Object(r["a"])({url:"serve/modify",method:"post",data:t})}function d(t){return Object(r["a"])({url:"serve/update_phone",method:"post",data:t})}function f(t){return Object(r["a"])({url:"serve/captcha",method:"post",data:t})}function h(t){return Object(r["a"])({url:"serve/checkCode",method:"post",data:t})}function l(t){return Object(r["a"])({url:"serve/register",method:"post",data:t})}function m(){return Object(r["a"])({url:"serve/info",method:"get"})}function p(t){return Object(r["a"])({url:"serve/sms/sign",method:"PUT",data:t})}function b(t){return Object(r["a"])({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function g(t){return Object(r["a"])({url:"app/wechat/speechcraft",method:"get",params:t})}function j(t){return Object(r["a"])({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function O(){return Object(r["a"])({url:"app/wechat/speechcraft/create",method:"get"})}function _(t){return Object(r["a"])({url:"app/feedback",method:"get",params:t})}function v(t){return Object(r["a"])({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function w(){return Object(r["a"])({url:"serve/export_all",method:"get"})}function k(){return Object(r["a"])({url:"serve/open",method:"get"})}function y(t){return Object(r["a"])({url:"serve/export_temp",method:"get",params:t})}function T(t){return Object(r["a"])({url:"serve/record",method:"get",params:t})}function x(t){return Object(r["a"])({url:"serve/open",method:"get",params:t})}function S(t){return Object(r["a"])({url:"serve/opn_express",method:"post",data:t})}function $(t){return Object(r["a"])({url:"serve/sms/open",method:"get",params:t})}function C(t){return Object(r["a"])({url:"serve/meal_list",method:"get",params:t})}function L(t){return Object(r["a"])({url:"serve/pay_meal",method:"post",data:t})}function E(t){return Object(r["a"])({url:"notify/sms/record",method:"get",params:t})}function I(){return Object(r["a"])({url:"merchant/store",method:"GET"})}function P(){return Object(r["a"])({url:"merchant/store/address",method:"GET"})}function G(t){return Object(r["a"])({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function D(t){return Object(r["a"])({url:"freight/express",method:"get",params:t})}function F(){return Object(r["a"])({url:"/freight/express/create",method:"get"})}function R(t){return Object(r["a"])({url:"freight/express/".concat(t,"/edit"),method:"get"})}function M(t){return Object(r["a"])({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function B(){return Object(r["a"])({url:"freight/express/sync_express",method:"get"})}function U(){return Object(r["a"])({url:"app/wechat/speechcraftcate",method:"get"})}function A(){return Object(r["a"])({url:"app/wechat/speechcraftcate/create",method:"get"})}function H(t){return Object(r["a"])({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function q(t){return Object(r["a"])({url:"setting/role",method:"GET",params:t})}function J(t){return Object(r["a"])({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function z(t){return Object(r["a"])({url:"setting/role/".concat(t.id),method:"post",data:t})}function N(t){return Object(r["a"])({url:"setting/role/".concat(t,"/edit"),method:"get"})}function W(){return Object(r["a"])({url:"setting/role/create",method:"get"})}function K(t){return Object(r["a"])({url:"app/wechat/kefu",method:"get",params:t})}function Q(t){return Object(r["a"])({url:"app/wechat/kefu/create",method:"get",params:t})}function V(){return Object(r["a"])({url:"app/wechat/kefu/add",method:"get"})}function X(t){return Object(r["a"])({url:"app/wechat/kefu",method:"post",data:t})}function Y(t){return Object(r["a"])({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function Z(t){return Object(r["a"])({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function tt(t,e){return Object(r["a"])({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function et(t){return Object(r["a"])({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function nt(){return Object(r["a"])({url:"notify/sms/is_login",method:"GET"})}function rt(){return Object(r["a"])({url:"notify/sms/logout",method:"GET"})}function ut(t){return Object(r["a"])({url:"setting/city/list/".concat(t),method:"get"})}function ct(t){return Object(r["a"])({url:"setting/city/add/".concat(t),method:"get"})}function at(t){return Object(r["a"])({url:"setting/city/".concat(t,"/edit"),method:"get"})}function ot(t){return Object(r["a"])({url:"setting/shipping_templates/list",method:"get",params:t})}function it(t){return Object(r["a"])({url:"setting/shipping_templates/city_list",method:"get"})}function st(t,e){return Object(r["a"])({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function dt(t){return Object(r["a"])({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function ft(){return Object(r["a"])({url:"merchant/store/get_header",method:"get"})}function ht(t){return Object(r["a"])({url:"merchant/store",method:"get",params:t})}function lt(t,e){return Object(r["a"])({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function mt(t){return Object(r["a"])({url:"merchant/store/get_info/".concat(t),method:"get"})}function pt(t){return Object(r["a"])({url:"merchant/store_staff",method:"get",params:t})}function bt(){return Object(r["a"])({url:"merchant/store_staff/create",method:"get"})}function gt(t){return Object(r["a"])({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function jt(t,e){return Object(r["a"])({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function Ot(t){return Object(r["a"])({url:"merchant/verify_order",method:"get",params:t})}function _t(t){return Object(r["a"])({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function vt(){return Object(r["a"])({url:"merchant/store_list",method:"get"})}function wt(){return Object(r["a"])({url:"setting/city/clean_cache",method:"get"})}},a53e: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:"article-manager"},[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.title))]),n("div",[n("Tabs",{on:{"on-click":t.changeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headerList,(function(t,e){return n("TabPane",{key:e,attrs:{icon:t.icon,label:t.label,name:t.value.toString()}})})),1)],1)])]),n("Card",{staticClass:"ivu-mt fromBox",attrs:{bordered:!1,"dis-hover":""}},[t.headerChildrenList.length?n("Tabs",{attrs:{type:"card"},on:{"on-click":t.changeChildrenTab},model:{value:t.childrenId,callback:function(e){t.childrenId=e},expression:"childrenId"}},t._l(t.headerChildrenList,(function(t,e){return n("TabPane",{key:e,attrs:{label:t.label,name:t.id.toString()}})})),1):t._e(),0!==t.rules.length?n("form-create",{attrs:{option:t.option,rule:t.rules},on:{"on-submit":t.onSubmit}}):t._e(),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)},u=[],c=(n("7f7f"),n("c5f6"),n("96cf"),n("3b8d")),a=(n("6b54"),n("ac6a"),n("9860")),o=n.n(a),i=n("90e7"),s=n("6b6c"),d={name:"setting_setSystem",components:{formCreate:o.a.$form()},data:function(){return{rules:[],option:{form:{labelWidth:185},submitBtn:{col:{span:3,push:3}},global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$Message.error(t.msg)}}},frame:{props:{closeBtn:!1,okBtn:!1}}}},spinShow:!1,FromData:null,currentTab:"",headerList:[],headerChildrenList:[],childrenId:"",title:""}},created:function(){this.getAllData()},watch:{$route:function(t,e){this.headerChildrenList=[],this.getAllData()},childrenId:function(){this.getFrom()}},methods:{childrenList:function(t){var e=this;e.headerList.forEach((function(n){n.value.toString()===e.currentTab&&(void 0===n.children?(e.childrenId=n.id,e.headerChildrenList=[]):(e.headerChildrenList=n.children,e.childrenId=n.children.length?n.children[t||0].id.toString():""))}))},getHeader:function(t){var e=this;return this.spinShow=!0,new Promise((function(n,r){var u=e.$route.params.tab_id,a={type:e.$route.params.type?e.$route.params.type:0,pid:u||0};Object(i["p"])(a).then(function(){var r=Object(c["a"])(regeneratorRuntime.mark((function r(u){var c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:c=u.data.config_tab,e.headerList=c,e.currentTab=c[t||0].value.toString(),e.childrenList(1),n(e.currentTab),e.spinShow=!1;case 6:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(t){e.spinShow=!1,e.$Message.error(t)}))}))},getFrom:function(){var t=this;return this.spinShow=!0,new Promise((function(e,n){var r="";r="3"===t.$route.params.type?t.$route.params.tab_id:t.childrenId?t.childrenId:t.currentTab;var u={tab_id:Number(r)},a="freight/config/edit_basics",o="agent/config/edit_basics",s="marketing/integral_config/edit_basics",d="serve/sms_config/edit_basics",f="setting/config/edit_basics",h="setting_logistics"===t.$route.name?a:"setting_distributionSet"===t.$route.name?o:"setting_message"===t.$route.name?d:"setting_setSystem"===t.$route.name?f:s;Object(i["h"])(u,h).then(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.spinShow=!1,!1!==n.data.status){e.next=3;break}return e.abrupt("return",t.$authLapse(n.data));case 3:t.FromData=n.data,t.rules=n.data.rules,t.title=n.data.title;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))}))},getAllData:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("download"!==this.$route.query.from){t.next=5;break}return t.next=3,this.getHeader(2);case 3:t.next=12;break;case 5:if("3"===this.$route.params.type){t.next=10;break}return t.next=8,this.getHeader();case 8:t.next=12;break;case 10:this.headerList=[],this.getFrom();case 12:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),changeTab:function(){this.childrenList()},changeChildrenTab:function(t){this.childrenId=t},onSubmit:function(t){var e=this;Object(s["a"])({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))}}},f=d,h=(n("ec5b"),n("2877")),l=Object(h["a"])(f,r,u,!1,null,"57e83041",null);e["default"]=l.exports},a866:function(t,e,n){},ec5b:function(t,e,n){"use strict";var r=n("a866"),u=n.n(r);u.a}}]);
\ No newline at end of file
diff --git a/crmeb/public/admin/js/chunk-e591b84a.bcf5a8ec.js b/crmeb/public/admin/js/chunk-e591b84a.bcf5a8ec.js
new file mode 100644
index 000000000..0bd76a530
--- /dev/null
+++ b/crmeb/public/admin/js/chunk-e591b84a.bcf5a8ec.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e591b84a"],{"3b2b":function(t,e,n){var r=n("7726"),a=n("5dbc"),c=n("86cc").f,o=n("9093").f,i=n("aae3"),u=n("0bfb"),s=r.RegExp,d=s,l=s.prototype,f=/a/g,p=/a/g,h=new s(f)!==f;if(n("9e1e")&&(!h||n("79e5")((function(){return p[n("2b4c")("match")]=!1,s(f)!=f||s(p)==p||"/a/i"!=s(f,"i")})))){s=function(t,e){var n=this instanceof s,r=i(t),c=void 0===e;return!n&&r&&t.constructor===s&&c?t:a(h?new d(r&&!c?t.source:t,e):d((r=t instanceof s)?t.source:t,r&&c?u.call(t):e),n?this:l,s)};for(var b=function(t){t in s||c(s,t,{configurable:!0,get:function(){return d[t]},set:function(e){d[t]=e}})},g=o(d),v=0;g.length>v;)b(g[v++]);l.constructor=s,s.prototype=l,n("2aba")(r,"RegExp",s)}n("7a56")("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return l}));n("8e6e"),n("ac6a"),n("456d");var r=n("bd86");n("6b54"),n("3b2b"),n("a481");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return c({required:!0,message:t,type:"string"},e)}function l(t){return f.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(d,"请输入%s"),s(l,"%s格式不正确");var f=Object.keys(u).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(r["a"])({},e,t);return c(c({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),a)},s(t[e],u[e]),t}),{})},b562:function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"t",(function(){return c})),n.d(e,"p",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return s})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return p})),n.d(e,"q",(function(){return h})),n.d(e,"s",(function(){return b})),n.d(e,"r",(function(){return g})),n.d(e,"x",(function(){return v})),n.d(e,"k",(function(){return m})),n.d(e,"c",(function(){return O})),n.d(e,"w",(function(){return w})),n.d(e,"u",(function(){return j})),n.d(e,"v",(function(){return y})),n.d(e,"o",(function(){return _})),n.d(e,"m",(function(){return E})),n.d(e,"n",(function(){return C})),n.d(e,"l",(function(){return x})),n.d(e,"b",(function(){return k}));var r=n("6b6c");function a(){return Object(r["a"])({url:"app/routine/syncSubscribe",method:"GET"})}function c(){return Object(r["a"])({url:"app/wechat/syncSubscribe",method:"GET"})}function o(t){return Object(r["a"])({url:"app/wechat/menu",method:"get"})}function i(t){return Object(r["a"])({url:"app/wechat/menu",method:"post",data:t})}function u(t){return Object(r["a"])({url:t.url,method:"post",data:t.key})}function s(t){return Object(r["a"])({url:"app/routine/download",method:"post",data:t})}function d(){return Object(r["a"])({url:"app/routine/info",method:"get"})}function l(t){return Object(r["a"])({url:"app/wechat/keyword",method:"get",params:t})}function f(t){return Object(r["a"])({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function p(t,e){return Object(r["a"])({url:t,method:"get",params:e.key})}function h(t){return Object(r["a"])({url:"/app/wechat/news",method:"POST",data:t})}function b(t){return Object(r["a"])({url:"app/wechat/news",method:"GET",params:t})}function g(t){return Object(r["a"])({url:"app/wechat/news/".concat(t),method:"GET"})}function v(t){return Object(r["a"])({url:"app/wechat/user",method:"GET",params:t})}function m(){return Object(r["a"])({url:"app/wechat/user/tag_group",method:"GET"})}function O(t){return Object(r["a"])({url:t,method:"GET"})}function w(){return Object(r["a"])({url:"app/wechat/tag",method:"GET"})}function j(){return Object(r["a"])({url:"app/wechat/tag/create",method:"GET"})}function y(t){return Object(r["a"])({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function _(){return Object(r["a"])({url:"app/wechat/group",method:"GET"})}function E(){return Object(r["a"])({url:"app/wechat/group/create",method:"GET"})}function C(t){return Object(r["a"])({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function x(t){return Object(r["a"])({url:"app/wechat/action",method:"GET",params:t})}function k(t){return Object(r["a"])({url:"app/wechat/code_reply/".concat(t),method:"GET"})}},dc07:function(t,e,n){"use strict";var r=n("ed5c"),a=n.n(r);a.a},ddee: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",[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])])]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"flex-wrapper"},[n("div",[n("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{src:t.iframeUrl,frameborder:"0"}}),n("div",{staticClass:"mask"})]),n("div",{staticClass:"right"},[n("div",{staticClass:"content"},[n("div",{staticClass:"content-box title"},[n("div",{staticClass:"line"}),n("div",{staticClass:"right title"},[t._v("小程序设置")])]),t.pageData.appId?t._e():n("Alert",[n("template",{slot:"desc"},[t._v("\n 您尚未配置小程序信息,请"),n("router-link",{attrs:{to:{path:"/admin/setting/system_config?from=download"}}},[t._v("立即设置")])],1)],2),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序名称:")]),n("div",{staticClass:"right"},[t._v(t._s(t.pageData.routine_name||"未命名"))])]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序码:")]),n("div",{staticClass:"right"},[n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.downLoadCode(t.pageData.code)}}},[t._v("下载小程序码")])],1)]),n("div",{staticClass:"content-box"},[n("div",{staticClass:"left"},[t._v("小程序包:")]),n("div",{staticClass:"right"},[n("span",[t._v("是否已开通小程序直播")]),n("RadioGroup",{staticClass:"rad",attrs:{size:"large"},model:{value:t.is_live,callback:function(e){t.is_live=e},expression:"is_live"}},[n("Radio",{attrs:{label:0}},[t._v("未开通")]),n("Radio",{attrs:{label:1}},[t._v("已开通")])],1)],1)]),n("div",{staticClass:"content-box last"},[n("div",{staticClass:"left"}),n("div",{staticClass:"right"},[n("div",[t._v("\n 请谨慎选择是否有开通小程序直播功能,否则将影响小程序的发布\n 可前往\n "),n("a",{attrs:{href:t.pageData.help,target:"_blank"}},[t._v("帮助文档")]),t._v("\n 查看如何开通直播功能\n ")]),n("Button",{staticClass:"mt10",attrs:{type:"primary"},on:{click:function(e){return t.downLoad()}}},[t._v("下载小程序包")])],1)])],1)])])])],1)},a=[],c=(n("8e6e"),n("ac6a"),n("456d"),n("bd86")),o=n("b562"),i=n("2f62"),u=n("61f7");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e加载中
\ No newline at end of file
+ document.write('')