启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-commons.655a27a8.js

1 lines
35 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-commons"],{"0f56":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:14}},t._l(t.cardLists,(function(e,a){return i("el-col",{key:a,staticClass:"ivu-mb mb10",attrs:{xl:8,lg:t.more?6:8,md:12,sm:24,xs:24}},[i("div",{staticClass:"card_box"},[i("div",{staticClass:"card_box_cir",class:{one:a%5==0,two:a%5==1,three:a%5==2,four:a%5==3,five:a%5==4}},[i("div",{staticClass:"card_box_cir1",class:{one1:a%5==0,two1:a%5==1,three1:a%5==2,four1:a%5==3,five1:a%5==4}},[i("i",{class:e.className,staticStyle:{"font-size":"24px"}})])]),t._v(" "),i("div",{staticClass:"card_box_txt"},[i("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),t._v(" "),i("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])})),1)},n=[],r={name:"Index",props:{cardLists:Array,more:Boolean}},o=r,s=(i("8fbe"),i("2877")),c=Object(s["a"])(o,a,n,!1,null,"2b01e184",null);e["a"]=c.exports},1679:function(t,e,i){},"1ee6":function(t,e,i){"use strict";i("b8c6")},"2ca6":function(t,e,i){"use strict";i("eb30")},"2f08":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 1==t.openVersion?i("div",{staticClass:"ivu-global-footer i-copyright"},[-1==t.version.status?i("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s("Copyright "+t.version.year+" ")),i("a",{attrs:{href:""+t.version.url,target:"_blank"}},[t._v(t._s(t.version.version))])]):i("div",{staticClass:"ivu-global-footer-copyright"},[t._v(t._s(t.version.Copyright))])]):t._e()},n=[],r=i("2801"),o=(i("3dbf"),{name:"i-copyright",data:function(){return{copyright:"Copyright © 2022 西安众邦网络科技有限公司",openVersion:"0",copyright_status:"0",version:{}}},mounted:function(){this.getVersion()},methods:{getVersion:function(){var t=this;Object(r["r"])().then((function(e){e.data.version;t.version=e.data,t.copyright=e.data.Copyright,t.openVersion=e.data.sys_open_version})).catch((function(e){t.$message.error(e.message)}))}}}),s=o,c=(i("f116"),i("2877")),l=Object(c["a"])(s,a,n,!1,null,"3794a029",null);e["a"]=l.exports},"30dc":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.fileVisible?i("el-dialog",{attrs:{title:"导出订单列表",visible:t.fileVisible,width:"900px"},on:{"update:visible":function(e){t.fileVisible=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[i("el-table-column",{attrs:{label:"文件名",prop:"name","min-width":"200"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作者ID",prop:"admin_id","min-width":"80"}}),t._v(" "),i("el-table-column",{attrs:{label:"生成时间",prop:"create_time","min-width":"180"}}),t._v(" "),i("el-table-column",{attrs:{label:"类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.type))])]}}],null,!1,1406222782)}),t._v(" "),i("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("exportOrderStatusFilter")(e.row.status)))])]}}],null,!1,359322133)}),t._v(" "),i("el-table-column",{key:"8",attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return t.downLoad(e.row.path)}}},[t._v("下载")]):t._e()]}}],null,!1,921379384)})],1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()],1)},n=[],r=i("f8b7"),o=(i("bbcc"),i("5f87"),{name:"FileList",data:function(){return{fileVisible:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{exportFileList:function(t){var e=this;this.loading=!0,this.tableFrom.type=t,Object(r["f"])(this.tableFrom).then((function(t){e.fileVisible=!0,e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.loading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},downLoad:function(t){window.open(t)},pageChange:function(t){this.tableFrom.page=t,this.exportFileList()},pageChangeLog:function(t){this.tableFromLog.page=t,this.exportFileList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.exportFileList()}}}),s=o,c=(i("2ca6"),i("2877")),l=Object(c["a"])(s,a,n,!1,null,"0edee6a2",null);e["a"]=l.exports},4553:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"mt20 ml20"},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),t._v(" "),i("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),t._v(" "),i("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:t.zh_uploadFile}},[t._v(t._s(t.videoLink?"确认添加":"上传视频"))]),t._v(" "),t.upload.videoIng?i("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:t.progress,"text-inside":!0}}):t._e(),t._v(" "),t.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),t._v(" "),i("div",{staticClass:"mark"}),t._v(" "),i("i",{staticClass:"iconv el-icon-delete",on:{click:t.delVideo}})]):t._e()],1),t._v(" "),i("div",{staticClass:"mt50 ml20"},[i("el-button",{attrs:{type:"primary"},on:{click:t.uploads}},[t._v("确认")])],1)])},n=[],r=(i("7f7f"),i("c4c8")),o=(i("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var t=this;t.$set(t.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this,i=t.target.files[0].name.substr(t.target.files[0].name.indexOf("."));if(".mp4"!==i)return e.$message.error("只能上传MP4文件");Object(r["fb"])().then((function(i){e.$videoCloud.videoUpload({type:i.data.type,evfile:t,res:i,uploading:function(t,i){e.upload.videoIng=t,console.log(t,i)}}).then((function(t){e.formValidate.video_link=t.url||t.data.src,e.$message.success("视频上传成功"),e.progress=100,e.upload.videoIng=!1})).catch((function(t){e.$message.error(t)}))}))},uploads:function(){return this.formValidate.video_link||this.videoLink?""==this.videoLink||this.formValidate.video_link?void(this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("<video src='"+this.formValidate.video_link+"' controls='controls'></video>",!0))):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),s=o,c=(i("9ecc"),i("2877")),l=Object(c["a"])(s,a,n,!1,null,"6cdcd4a8",null);e["default"]=l.exports},"5b4c":function(t,e,i){},6069:function(t,e,i){"use strict";i("c1ad")},"66a8":function(t,e,i){"use strict";i("5b4c")},"7af3":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"divBox"},[t.modals?i("el-dialog",{attrs:{visible:t.modals,title:"选择链接",width:"860px","before-close":t.cancel},on:{"update:visible":function(e){t.modals=e}}},[i("div",{staticClass:"table_box"},[i("div",{staticClass:"left_box"},[i("el-tree",{attrs:{data:t.categoryData,"default-expand-all":"","node-key":"id","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":t.treeId},on:{"node-click":t.handleCheckChange}})],1),t._v(" "),"link"==t.currenType?i("div",{staticClass:"right_box"},t._l(t.currentList,(function(e,a){return i("div",{key:a},[i("div",{staticClass:"cont"},[t._v(t._s(e.name))]),t._v(" "),i("div",{staticClass:"Box"},t._l(e.pageLink,(function(e,a){return i("div",{key:a,staticClass:"cont_box",class:t.currenId==e.id?"on":"",on:{click:function(i){return t.getUrl(e)}}},[t._v(t._s(e.name))])})),0)])})),0):t._e(),t._v(" "),"special"==t.currenType||"product_category"==t.currenType||"points_cate"==t.currenType||"product"==t.currenType||"seckill"==t.currenType||"presell"==t.currenType||"bargain"==t.currenType||"combination"==t.currenType||"news"==t.currenType||"active"==t.currenType||"merchant"==t.currenType||"micro"==t.currenType||"activity_form"==t.currenType?i("div",{staticClass:"right_box"},["product"==t.currenType?i("el-form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":"80px"}},[i("el-row",{attrs:{type:"flex"}},[i("el-col",[i("el-form-item",{attrs:{label:"商品分类:"}},[i("el-cascader",{staticClass:"selWidth",attrs:{options:t.merCateList,props:t.props,clearable:"",size:"small"},on:{change:function(e){return t.userSearchs()}},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1)],1),t._v(" "),i("el-col",[i("el-form-item",{attrs:{label:"搜索:"}},[i("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,编号",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.userSearchs(e)}},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(),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",attrs:{size:"mini",data:t.tableList,"row-key":function(t){return t.id},"default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[i("el-table-column",{key:"1",attrs:{label:"选择","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-radio",{attrs:{label:e.$index},nativeOn:{change:function(i){return t.getCurrentRow(e.row)}},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}})]}}],null,!1,4056121160)}),t._v(" "),i("el-table-column",{key:"2",attrs:{prop:"id",label:"ID","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.id||e.row.product_id||e.row.group_data_id||e.row.mer_id||e.row.article_id||e.row.store_category_id||e.row.activity_id))])]}}],null,!1,3586208883)}),t._v(" "),"special"==t.currenType||"micro"==t.currenType?i("el-table-column",{key:"3",attrs:{prop:"special"==t.currenType?"title":"name",label:"页面名称","min-width":"100"}}):t._e(),t._v(" "),"special"==t.currenType?i("el-table-column",{key:"4",attrs:{prop:"url",label:"页面链接","min-width":"150"}}):t._e(),t._v(" "),"product_category"==t.currenType||"points_cate"==t.currenType?i("el-table-column",{key:"5",attrs:{prop:"cate_name",label:"分类名称","min-width":"60"}}):t._e(),t._v(" "),"product_category"==t.currenType?i("el-table-column",{key:"6",attrs:{label:"分类图标","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.pic,"preview-src-list":[t.row.pic]}})],1)]}}],null,!1,251680844)}):t._e(),t._v(" "),"bargain"==t.currenType||"combination"==t.currenType||"presell"==t.currenType||"seckill"==t.currenType||"product"==t.currenType?i("el-table-column",{key:"7",attrs:{label:"商品图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.image||t.row.product&&t.row.product.image,"preview-src-list":[t.row.image||t.row.product&&t.row.product.image]}})],1)]}}],null,!1,942845708)}):t._e(),t._v(" "),"bargain"==t.currenType||"combination"==t.currenType||"presell"==t.currenType||"seckill"==t.currenType||"product"==t.currenType?i("el-table-column",{key:"8",attrs:{prop:"store_name",label:"商品名称","min-width":"150"}}):t._e(),t._v(" "),"news"==t.currenType?i("el-table-column",{key:"9",attrs:{label:"文章图片","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.image_input,"preview-src-list":[t.row.image_input]}})],1)]}}],null,!1,4245953164)}):t._e(),t._v(" "),"active"==t.currenType?i("el-table-column",{key:"10",attrs:{label:"专场图片","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.value&&t.row.value.image,"preview-src-list":[t.row.value&&t.row.value.image]}})],1)]}}],null,!1,293088972)}):t._e(),t._v(" "),"merchant"==t.currenType?i("el-table-column",{key:"11",attrs:{label:"商户头像","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.mer_avatar,"preview-src-list":[t.row.mer_avatar]}})],1)]}}],null,!1,2002965932)}):t._e(),t._v(" "),"news"==t.currenType?i("el-table-column",{key:"12",attrs:{prop:"title",label:"文章名称","min-width":"60"}}):t._e(),t._v(" "),"active"==t.currenType?i("el-table-column",{key:"13",attrs:{prop:"value.name",label:"专场名称","min-width":"150"}}):t._e(),t._v(" "),"merchant"==t.currenType?i("el-table-column",{key:"14",attrs:{prop:"mer_name",label:"商户名称","min-width":"150"}}):t._e(),t._v(" "),"micro"==t.currenType?i("el-table-column",{key:"16",attrs:{prop:"add_time",label:"创建时间","min-width":"150"}}):t._e(),t._v(" "),"micro"==t.currenType?i("el-table-column",{key:"17",attrs:{prop:"update_time",label:"更新时间","min-width":"150"}}):t._e(),t._v(" "),"activity_form"==t.currenType?i("el-table-column",{key:"19",attrs:{prop:"activity_name",label:"报名活动名称","min-width":"120"}}):t._e(),t._v(" "),"activity_form"==t.currenType?i("el-table-column",{key:"20",attrs:{label:"封面图","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.pic,"preview-src-list":[t.row.pic]}})],1)]}}],null,!1,251680844)}):t._e(),t._v(" "),"activity_form"==t.currenType?i("el-table-column",{key:"21",attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}):t._e()],1),t._v(" "),"product"==t.currenType||"seckill"==t.currenType||"micro"==t.currenType||"presell"==t.currenType||"bargain"==t.currenType||"combination"==t.currenType||"news"==t.currenType||"active"==t.currenType||"merchant"==t.currenType||"activity_form"==t.currenType||"special"==t.currenType?i("div",{staticClass:"acea-row"},[i("el-pagination",{attrs:{"page-size":t.formValidate.limit,"current-page":t.formValidate.page,layout:"prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1):t._e()],1):t._e(),t._v(" "),"custom"==t.currenType?i("div",{staticClass:"right_box"},[i("div",{staticStyle:{width:"360px",margin:"150px 100px 0 120px"}},[i("el-form",{ref:"customdate",attrs:{model:t.customdate,rules:t.ruleValidate,"label-width":"120px"}},[i("el-form-item",{attrs:{"label-width":"0"}},[i("el-radio-group",{model:{value:t.customdate.status,callback:function(e){t.$set(t.customdate,"status",e)},expression:"customdate.status"}},[i("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("普通链接")]),t._v(" "),i("el-radio",{attrs:{label:2}},[t._v("跳转其他小程序")])],1)],1),t._v(" "),1==t.customdate.status?i("el-form-item",{attrs:{label:"跳转路径:",prop:"url"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入正确跳转路径"},model:{value:t.customdate.url,callback:function(e){t.$set(t.customdate,"url",e)},expression:"customdate.url"}})],1):t._e(),t._v(" "),2==t.customdate.status?i("div",[i("el-form-item",{attrs:{label:"APPID:",prop:"appid"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入正确APPID"},model:{value:t.customdate.appid,callback:function(e){t.$set(t.customdate,"appid",e)},expression:"customdate.appid"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"小程序路径:",prop:"mpUrl"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入正确小程序路径"},model:{value:t.customdate.mpUrl,callback:function(e){t.$set(t.customdate,"mpUrl",e)},expression:"customdate.mpUrl"}})],1),t._v(" "),i("el-form-item",{attrs:{"label-width":"0"}},[i("div",[t._v("路径示例:merchant/devise/diy/index?id=184")])]),t._v(" "),i("div",{staticStyle:{color:"#ff4949"}},[t._v("小程序跳转外链链接,域名需在白名单范围内的合法域名")])],1):t._e()],1)],1)]):t._e()]),t._v(" "),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:t.cancel}},[t._v("取消")]),t._v(" "),"custom"==t.currenType?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("customdate")}}},[t._v("确定")]):i("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.ok}},[t._v("确定")])],1)]):t._e()],1)},n=[],r=i("c80c"),o=(i("ac6a"),i("96cf"),i("3b8d")),s=(i("7f7f"),i("f478")),c=i("c4c8"),l=i("1336"),d={name:"linkaddress",data:function(){return{modals:!1,categoryData:[],currenType:"link",type:this.$store.state.settings.storeDiy,radio:"",props:{emitPath:!1},merCateList:[],formValidate:{page:1,limit:6,cate_id:"",store_name:""},total:0,currentList:[],currenId:"",currenUrl:"",loading:!1,tableList:[],presentId:0,categoryId:"",customdate:{name:"",mpUrl:"",url:"",status:1},customNum:1,treeId:0,ruleValidate:{name:[{required:!0,message:"请输入链接名称",trigger:"blur"}],mpUrl:[{required:!0,message:"请输入跳转路径",trigger:"blur"}],appid:[{required:!0,message:"请输入APPID",trigger:"blur"}]}}},computed:{},created:function(){this.getSort(),this.goodsCategory()},methods:{getCurrentRow:function(t){t.checked=!0,this.presentId=t.id,this.currenUrl=t.url},getCustomList:function(){var t=this;Object(s["Q"])(this.categoryId,{type:this.type,page:this.formValidate.page,limit:this.formValidate.limit}).then((function(e){e.data.list&&e.data.list.length||(t.customNum=2),t.tableList=e.data.list})).catch((function(e){t.$message.error(e.message)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(t){var i=e.customdate.url;i=1==e.customdate.status?e.customdate.url:e.customdate.mpUrl+"@APPID="+e.customdate.appid,e.$emit("linkUrl",i),e.modals=!1,e.reset()}else e.$message.error("请填写信息")}))},pageChange:function(t){this.formValidate.page=t,this.getList()},handleSizeChange:function(t){this.formValidate.limit=t,this.getList()},goodsCategory:function(){var t=this;Object(c["w"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},userSearchs:function(){this.formValidate.page=1,this.getList()},reset:function(){this.currenUrl="",this.presentId=0,this.currenId="",this.radio="",this.customdate.status,this.customdate.url="",this.customdate.mpUrl=""},getUrl:function(t){this.currenId=t.id,this.currenUrl=t.url},getSort:function(){var t=this;Object(s["P"])({type:this.type}).then((function(e){e.data[0].children[0]?(e.data[0].children[0].selected=!0,t.treeId=e.data[0]["children"][0]["id"],t.handleCheckChange(e.data[0].children[0])):(t.handleCheckChange(e.data[0]),t.treeId=e.data[0]&&e.data[0]["id"]),t.categoryData=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(){var t=this;if(this.loading=!0,"product"==this.currenType){var e=this.formValidate;e.product_type=0,Object(s["z"])(e).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(i){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=i.data,a.list.forEach((function(t){t.url="/pages/goods_details/index?id=".concat(t.product_id)})),t.tableList=a.list,t.total=i.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.message)}))}else if("seckill"==this.currenType){var i=this.formValidate;i.product_type=1,Object(s["z"])(i).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(i){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=i.data,a.list.forEach((function(t){t.url="/pages/activity/goods_seckill_details/index?id=".concat(t.product_id)})),t.tableList=a.list,t.total=i.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.message)}))}else if("bargain"==this.currenType){var a=this.formValidate;a.product_type=3,Object(s["z"])(a).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(i){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=i.data,a.list.forEach((function(t){t.url="/pages/activity/assist_details/index?id=".concat(t.activity_id)})),t.tableList=a.list,t.total=i.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.message)}))}else if("combination"==this.currenType){var n=this.formValidate;n.product_type=4,Object(s["z"])(n).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(i){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=i.data,a.list.forEach((function(t){t.url="/pages/activity/combination_details/index?id=".concat(t.activity_id)})),t.tableList=a.list,t.total=i.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.message)}))}else if("presell"==this.currenType){var c=this.formValidate;c.product_type=2,Object(s["z"])(c).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(i){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=i.data,a.list.forEach((function(t){t.url="/pages/activity/presell_details/index?id=".concat(t.activity_id)})),t.tableList=a.list,t.total=i.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.message)}))}else"news"==this.currenType?Object(l["i"])(this.formValidate).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(i){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=i.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.message)})):Object(s["Q"])(this.categoryId,{page:this.formValidate.page,limit:this.formValidate.limit,type:this.type}).then((function(e){t.loading=!1;var i=e.data;if(t.currentList=i,"special"==t.currenType){var a=[],n=e.data.list;n.forEach((function(t){t.url="/pages/news_details/index?id=".concat(t.article_id),a.push(t)})),t.tableList=a}else"product_category"==t.currenType?(i.forEach((function(t){t.hasOwnProperty("children")&&t.children.forEach((function(t){t.url="/pages/columnGoods/goods_list/index?id=".concat(t.store_category_id,"&title=").concat(t.cate_name),t.hasOwnProperty("children")&&t.children.forEach((function(t){t.url="/pages/columnGoods/goods_list/index?id=".concat(t.store_category_id,"&title=").concat(t.cate_name)}))})),t.url="/pages/columnGoods/goods_list/index?id=".concat(t.store_category_id,"&title=默认")})),t.tableList=i):"active"==t.currenType?(i.list.forEach((function(t){t.id=t.group_data_id,t.url="/pages/activity/topic_detail/index?id=".concat(t.group_data_id)})),t.tableList=i.list,t.total=e.data.count):"merchant"==t.currenType?(i.list.forEach((function(t){t.id=t.mer_id,t.url="/pages/store/home/index?id=".concat(t.mer_id)})),t.tableList=i.list,t.total=e.data.count):"micro"==t.currenType?(i.list.forEach((function(t){t.url="/pages/small_page/index?id=".concat(t.id)})),t.tableList=i.list,t.total=e.data.count):"activity_form"==t.currenType&&(i.list.forEach((function(t){t.id=t.activity_id,t.url="/pages/activity/registrate_activity/index?id=".concat(t.activity_id)})),t.tableList=i.list,t.total=e.data.count)})).catch((function(e){t.loading=!1,t.$message.error(e.message)}))},handleCheckChange:function(t){var e=this;this.reset();var i="";if(this.currenType=t.type,!t.pid)return!1;if(i=t.id,this.categoryId=t.id,this.loading=!0,this.currenType=t.type,this.formValidate.page=1,"product"==this.currenType||"seckill"==this.currenType||"presell"==this.currenType||"bargain"==this.currenType||"combination"==this.currenType||"news"==this.currenType)this.getList();else if("custom"==this.currenType)this.getCustomList();else{var a={type:this.type,page:this.formValidate.page,limit:this.formValidate.limit};"active"!=this.currenType&&"merchant"!=this.currenType||(a.page=this.formValidate.page,a.limit=this.formValidate.limit),Object(s["Q"])(i,a).then((function(t){e.loading=!1;var i=t.data;if(e.currentList=i,"special"==e.currenType){var a=[];i.list.forEach((function(t){t.url="/pages/news_details/index?id=".concat(t.article_id),a.push(t)})),e.tableList=a,e.total=i.count}else"product_category"==e.currenType||"points_cate"==e.currenType?(i.forEach((function(t){t.id=t.store_category_id,t.hasOwnProperty("children")&&t.children.forEach((function(t){t.id=t.store_category_id,t.url="/pages/columnGoods/goods_list/index?id=".concat(t.store_category_id,"&title=").concat(t.cate_name),t.hasOwnProperty("children")&&t.children.forEach((function(t){t.id=t.store_category_id,t.url="/pages/columnGoods/goods_list/index?id=".concat(t.store_category_id,"&title=").concat(t.cate_name)}))})),"product_category"==e.currenType?t.url="/pages/columnGoods/goods_list/index?id=".concat(t.store_category_id,"&title=默认"):t.url="/pages/points_mall/integral_goods_list?cate_id=".concat(t.store_category_id)})),e.tableList=i):"active"==e.currenType?(i.list.forEach((function(t){t.id=t.group_data_id,t.url="/pages/activity/topic_detail/index?id=".concat(t.group_data_id)})),e.tableList=i.list,e.total=t.data.count):"merchant"==e.currenType?(i.list.forEach((function(t){t.id=t.mer_id,t.url="/pages/store/home/index?id=".concat(t.mer_id)})),e.tableList=i.list,e.total=t.data.count):"micro"==e.currenType?(i.list.forEach((function(t){t.url="/pages/small_page/index?id=".concat(t.id)})),e.tableList=i.list,e.total=t.data.count):"activity_form"==e.currenType&&(i.list.forEach((function(t){t.id=t.activity_id,t.url="/pages/activity/registrate_activity/index?id=".concat(t.activity_id)})),e.tableList=i.list,e.total=t.data.count)})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}},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()}}},u=d,p=(i("1ee6"),i("2877")),m=Object(p["a"])(u,a,n,!1,null,"5bbc4d7e",null);e["a"]=m.exports},"8c98":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"goods_detail"},[i("div",{staticClass:"goods_detail_wrapper",class:t.previewKey||t.goodsId?"on":""},[t.previewKey?i("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{src:"/pages/admin/goods_details/index?preview_key="+t.previewKey+"&inner_frame=1",frameborder:"0"}}):t._e(),t._v(" "),t.goodsId?i("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{src:"/pages/admin/goods_details/index?product_id="+t.goodsId+"&product_type="+t.productType+"&inner_frame=1",frameborder:"0"}}):t._e()])])},n=[],r=(i("c5f6"),{name:"PreviewBox",props:{goodsId:{type:String|Number,default:""},productType:{type:String|Number,default:""},previewKey:{type:String|Number,default:""}},data:function(){return{}},mounted:function(){},methods:{getProListUrl:function(){}}}),o=r,s=(i("66a8"),i("2877")),c=Object(s["a"])(o,a,n,!1,null,"93efb12e",null);e["a"]=c.exports},"8fbe":function(t,e,i){"use strict";i("cde7")},"9ecc":function(t,e,i){"use strict";i("1679")},a069:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.monacoBox,expression:"!monacoBox"}]},[i("div",{ref:"wang-editor",staticClass:"wang-editor"})]),t._v(" "),t.monacoBox?i("div",[i("el-button",{staticClass:"bottom",attrs:{type:"primary"},on:{click:t.getHtmlint}},[t._v("可视化界面")]),t._v(" "),i("monaco",{attrs:{value:t.newHtml},on:{change:t.changeValue}})],1):t._e(),t._v(" "),i("el-dialog",{attrs:{visible:t.modalVideo,width:"1024px",title:"上传视频"},on:{"update:visible":function(e){t.modalVideo=e}}},[i("uploadVideo",{attrs:{isDiy:!0},on:{getVideo:t.getvideo}})],1)],1)},n=[],r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"code_box",staticClass:"text"})},o=[],s=i("8ea9"),c={data:function(){return{monacoInstance:null}},props:{value:{type:String,default:""}},mounted:function(){this.seteditor()},methods:{setValue:function(t){},seteditor:function(){var t=this;this.monacoInstance=s["a"].create(this.$refs.code_box,{value:this.value,theme:"vs",language:"html",readOnly:!1}),this.monacoInstance.onDidChangeModelContent((function(){t.$emit("change",t.monacoInstance.getValue())}))}},beforeDestroy:function(){this.monacoInstance.dispose(),this.monacoInstance=null}},l=c,d=(i("6069"),i("2877")),u=Object(d["a"])(l,r,o,!1,null,"65a72eb6",null),p=u.exports,m=i("6fad"),h=i.n(m),f=i("d225"),g=i("b0b4"),v=i("4e2b"),_=i("c603"),y=i("d8ad"),b=(h.a.$,h.a.BtnMenu),w=(h.a.DropListMenu,h.a.PanelMenu,h.a.DropList,h.a.Panel,h.a.Tooltip,function(t){Object(v["a"])(i,t);var e=Object(_["a"])(i);function i(t){Object(f["a"])(this,i),t;var a=h.a.$('<div class="w-e-menu" data-title="视频">\n <div class="iconfont iconshipin"></div>\n </div>');return e.call(this,a,t)}return Object(g["a"])(i,[{key:"clickHandler",value:function(){y["a"].$emit("Video")}},{key:"tryChangeActive",value:function(){this.active()}}]),i}(b)),x=(h.a.$,h.a.BtnMenu),k=(h.a.DropListMenu,h.a.PanelMenu,h.a.DropList,h.a.Panel,h.a.Tooltip,function(t){Object(v["a"])(i,t);var e=Object(_["a"])(i);function i(t){Object(f["a"])(this,i),t;var a=h.a.$('<div class="w-e-menu" data-title="html">\n <div style="font-size=\'12px;\'">HTML</div>\n </div>');return e.call(this,a,t)}return Object(g["a"])(i,[{key:"clickHandler",value:function(){y["a"].$emit("Html")}},{key:"tryChangeActive",value:function(){this.active()}}]),i}(x)),T=i("b5b8"),C=i("4553"),V={name:"Index",components:{uploadPictures:T["default"],uploadVideo:C["default"],monaco:p},props:{content:{type:String,default:""}},data:function(){return{monacoBox:!1,value:"",modalPic:!1,isChoice:"多选",picTit:"danFrom",img:"",modalVideo:!1,editor:null,uploadSize:2,video:"",newHtml:""}},computed:{initEditor:function(){return this.content&&this.editor}},watch:{initEditor:function(t){t&&this.editor.txt.html(this.content)}},created:function(){},mounted:function(){var t=this;this.createEditor(),y["a"].$on("Video",(function(e){t.getvideoint()})),y["a"].$on("Html",(function(e){t.getHtmlint()}))},methods:{changeValue:function(t){this.newHtml=t,this.$emit("editorContent",t),this.$emit("input",t)},getPic:function(t){var e=this;e.img=t.att_dir,e.modalPic=!1,this.editor.cmd.do("insertHTML",'<img src="'.concat(e.img,'" style="max-width:100%;"/>'))},getimg:function(){var t=this;t.isChoice="多选",t.$modalUpload((function(e){e.map((function(e){t.editor.cmd.do("insertHTML",'<img src="'.concat(e,'" style="max-width:100%;"/>'))}))}))},getvideoint:function(){this.modalVideo=!0},getHtmlint:function(){this.monacoBox=!this.monacoBox,this.value=this.newHtml,this.monacoBox||this.editor.txt.html(this.newHtml)},getPicD:function(t){var e=this,i=this;i.modalPic=!1,t.map((function(t){e.editor.cmd.do("insertHTML",'<img src="'.concat(t.att_dir,'" style="max-width:100%;"/>'))}))},getvideo:function(t){var e=this;e.modalVideo=!1,this.video=t,this.editor.cmd.do("insertHTML",'<video src="'.concat(e.video,'" controls style="max-width:100%;"/>'))},createEditor:function(){var t=this,e=this,i="alertMenuKey",a="alertHtml";this.editor=new h.a(this.$refs["wang-editor"]),this.editor.menus.extend(i,w),this.editor.menus.extend(a,k),this.editor.config.menus=this.editor.config.menus.concat(a),this.editor.config.menus=this.editor.config.menus.concat(i),this.editor.config.uploadImgFromMedia=function(){e.getimg()},this.editor.config.height=600,this.editor.config.menus=["alertHtml","head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","justify","quote","emoticon","image","alertMenuKey","code","splitLine"],this.editor.config.uploadImgShowBase64=!0,this.editor.config.zIndex=0,this.editor.config.compatibleMode=function(){return!0},this.editor.config.onchange=function(e){t.newHtml=e,t.$emit("editorContent",e)},this.editor.config.onchangeTimeout=800,this.editor.create()}}},L=V,O=(i("f015"),Object(d["a"])(L,a,n,!1,null,"22cc7ad5",null));e["a"]=O.exports},a479:function(t,e,i){},b8c6:function(t,e,i){},c1ad:function(t,e,i){},cde7:function(t,e,i){},e176:function(t,e,i){},eb30:function(t,e,i){},ef0d:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("vue-ueditor-wrap",{staticStyle:{width:"90%"},attrs:{config:t.myConfig},on:{beforeInit:t.addCustomDialog},model:{value:t.contents,callback:function(e){t.contents=e},expression:"contents"}})],1)},n=[],r=i("6625"),o=i.n(r),s=i("83d6"),c=i("bbcc"),l=i("5f87"),d={name:"Index",components:{VueUeditorWrap:o.a},scrollerHeight:{content:String,default:""},props:{content:{type:String,default:""}},data:function(){var t=c["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(l["a"])();return{contents:this.content,myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",elementPathEnabled:!1,wordCount:!1,enableAutoSave:!1,UEDITOR_HOME_URL:"/UEditor/",serverUrl:t,imageUrl:t,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]}}},watch:{content:function(t){this.contents=this.content},contents:function(t){this.$emit("input",t)}},created:function(){},methods:{addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var i=new window.UE.ui.Dialog({iframeUrl:s["roterPre"]+"/setting/uploadPicture?field=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1000px;height:620px;padding:20px;"});this.dialog=i;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(){i.render(),i.open()}});return a}),37)}}},u=d,p=i("2877"),m=Object(p["a"])(u,a,n,!1,null,"6b6db0aa",null);e["a"]=m.exports},f015:function(t,e,i){"use strict";i("e176")},f116:function(t,e,i){"use strict";i("a479")}}]);