admin-api/public/system/js/chunk-commons.a75449c7.js

1 line
28 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-commons"],{"0511":function(e,t,i){},"0936":function(e,t,i){"use strict";i("0511")},"09fc":function(e,t,i){"use strict";i("cdfb")},"0f56":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:10}},e._l(e.cardLists,(function(t,a){return i("el-col",{key:a,staticClass:"ivu-mb mb10",attrs:{xl:4,lg: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:t.className,staticStyle:{"font-size":"24px"}})])]),e._v(" "),i("div",{staticClass:"card_box_txt"},[i("span",{staticClass:"sp1",domProps:{textContent:e._s(t.count||0)}}),e._v(" "),i("span",{staticClass:"sp2",domProps:{textContent:e._s(t.name)}})])])])})),1)},r=[],n={name:"Index",props:{cardLists:Array}},s=n,o=(i("a79a"),i("2877")),l=Object(o["a"])(s,a,r,!1,null,"4370b2b2",null);t["a"]=l.exports},"30dc":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.fileVisible?i("el-dialog",{attrs:{title:"导出订单列表",visible:e.fileVisible,width:"900px"},on:{"update:visible":function(t){e.fileVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"mini","highlight-current-row":""}},[i("el-table-column",{attrs:{label:"文件名",prop:"name","min-width":"200"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作者ID",prop:"admin_id","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"生成时间",prop:"create_time","min-width":"180"}}),e._v(" "),i("el-table-column",{attrs:{label:"类型","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.type))])]}}],null,!1,1406222782)}),e._v(" "),i("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("exportOrderStatusFilter")(t.row.status)))])]}}],null,!1,359322133)}),e._v(" "),i("el-table-column",{key:"8",attrs:{label:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return e.downLoad(t.row.path)}}},[e._v("下载")]):e._e()]}}],null,!1,921379384)})],1),e._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-sizes":[10,20,30],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()],1)},r=[],n=i("f8b7"),s=(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(e){var t=this;this.loading=!0,this.tableFrom.type=e,Object(n["f"])(this.tableFrom).then((function(e){t.fileVisible=!0,t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},downLoad:function(e){window.open(e)},pageChange:function(e){this.tableFrom.page=e,this.exportFileList()},pageChangeLog:function(e){this.tableFromLog.page=e,this.exportFileList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.exportFileList()}}}),o=s,l=(i("09fc"),i("2877")),c=Object(l["a"])(o,a,r,!1,null,"d4f4ffce",null);t["a"]=c.exports},4553:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"mt20 ml20"},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),e._v(" "),i("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),e._v(" "),i("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]),e._v(" "),e.upload.videoIng?i("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:e.progress,"text-inside":!0}}):e._e(),e._v(" "),e.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),e._v(" "),i("div",{staticClass:"mark"}),e._v(" "),i("i",{staticClass:"iconv el-icon-delete",on:{click:e.delVideo}})]):e._e()],1),e._v(" "),i("div",{staticClass:"mt50 ml20"},[i("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])},r=[],n=(i("7f7f"),i("c4c8")),s=(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 e=this;e.$set(e.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this,i=e.target.files[0].name.substr(e.target.files[0].name.indexOf("."));if(".mp4"!==i)return t.$message.error("只能上传MP4文件");Object(n["eb"])().then((function(i){t.$videoCloud.videoUpload({type:i.data.type,evfile:e,res:i,uploading:function(e,i){t.upload.videoIng=e,console.log(e,i)}}).then((function(e){t.formValidate.video_link=e.url||e.data.src,t.$message.success("视频上传成功"),t.progress=100,t.upload.videoIng=!1})).catch((function(e){t.$message.error(e)}))}))},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("您还没有上传视频!")}}}),o=s,l=(i("ecb5"),i("2877")),c=Object(l["a"])(o,a,r,!1,null,"5b42be5d",null);t["default"]=c.exports},"7af3":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"divBox"},[e.modals?i("el-dialog",{attrs:{visible:e.modals,title:"选择链接",width:"860px","before-close":e.cancel},on:{"update:visible":function(t){e.modals=t}}},[i("div",{staticClass:"table_box"},[i("div",{staticClass:"left_box"},[i("el-tree",{attrs:{data:e.categoryData,"default-expand-all":"","node-key":"id","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":e.treeId},on:{"node-click":e.handleCheckChange}})],1),e._v(" "),"link"==e.currenType?i("div",{staticClass:"right_box"},e._l(e.currentList,(function(t,a){return i("div",{key:a},[i("div",{staticClass:"cont"},[e._v(e._s(t.name))]),e._v(" "),i("div",{staticClass:"Box"},e._l(t.pageLink,(function(t,a){return i("div",{key:a,staticClass:"cont_box",class:e.currenId==t.id?"on":"",on:{click:function(i){return e.getUrl(t)}}},[e._v(e._s(t.name))])})),0)])})),0):e._e(),e._v(" "),"special"==e.currenType||"product_category"==e.currenType||"points_cate"==e.currenType||"product"==e.currenType||"seckill"==e.currenType||"presell"==e.currenType||"bargain"==e.currenType||"combination"==e.currenType||"news"==e.currenType||"active"==e.currenType||"merchant"==e.currenType||"micro"==e.currenType?i("div",{staticClass:"right_box"},["product"==e.currenType?i("el-form",{ref:"formValidate",staticClass:"tabform",attrs:{model:e.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:e.merCateList,props:e.props,clearable:"",size:"small"},on:{change:function(t){return e.userSearchs()}},model:{value:e.formValidate.cate_id,callback:function(t){e.$set(e.formValidate,"cate_id",t)},expression:"formValidate.cate_id"}})],1)],1),e._v(" "),i("el-col",[i("el-form-item",{attrs:{label:"搜索:"}},[i("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,编号",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.userSearchs(t)}},model:{value:e.formValidate.store_name,callback:function(t){e.$set(e.formValidate,"store_name",t)},expression:"formValidate.store_name"}})],1)],1)],1)],1):e._e(),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{size:"mini",data:e.tableList,"row-key":function(e){return e.id},"default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[i("el-table-column",{key:"1",attrs:{label:"选择","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-radio",{attrs:{label:t.$index},nativeOn:{change:function(i){return e.getCurrentRow(t.row)}},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}})]}}],null,!1,4056121160)}),e._v(" "),i("el-table-column",{key:"2",attrs:{prop:"id",label:"ID","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.id||t.row.product_id||t.row.group_data_id||t.row.mer_id||t.row.article_id||t.row.store_category_id))])]}}],null,!1,1821772460)}),e._v(" "),"special"==e.currenType||"micro"==e.currenType?i("el-table-column",{key:"3",attrs:{prop:"special"==e.currenType?"title":"name",label:"页面名称","min-width":"100"}}):e._e(),e._v(" "),"special"==e.currenType?i("el-table-column",{key:"4",attrs:{prop:"url",label:"页面链接","min-width":"150"}}):e._e(),e._v(" "),"product_category"==e.currenType||"points_cate"==e.currenType?i("el-table-column",{key:"5",attrs:{prop:"cate_name",label:"分类名称","min-width":"60"}}):e._e(),e._v(" "),"product_category"==e.currenType?i("el-table-column",{key:"6",attrs:{label:"分类图标","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.pic,"preview-src-list":[e.row.pic]}})],1)]}}],null,!1,251680844)}):e._e(),e._v(" "),"bargain"==e.currenType||"combination"==e.currenType||"presell"==e.currenType||"seckill"==e.currenType||"product"==e.currenType?i("el-table-column",{key:"7",attrs:{label:"商品图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image||e.row.product&&e.row.product.image,"preview-src-list":[e.row.image||e.row.product&&e.row.product.image]}})],1)]}}],null,!1,942845708)}):e._e(),e._v(" "),"bargain"==e.currenType||"combination"==e.currenType||"presell"==e.currenType||"seckill"==e.currenType||"product"==e.currenType?i("el-table-column",{key:"8",attrs:{prop:"store_name",label:"商品名称","min-width":"150"}}):e._e(),e._v(" "),"news"==e.currenType?i("el-table-column",{key:"9",attrs:{label:"文章图片","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image_input,"preview-src-list":[e.row.image_input]}})],1)]}}],null,!1,4245953164)}):e._e(),e._v(" "),"active"==e.currenType?i("el-table-column",{key:"10",attrs:{label:"专场图片","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.value&&e.row.value.image,"preview-src-list":[e.row.value&&e.row.value.image]}})],1)]}}],null,!1,293088972)}):e._e(),e._v(" "),"merchant"==e.currenType?i("el-table-column",{key:"11",attrs:{label:"商户头像","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.mer_avatar,"preview-src-list":[e.row.mer_avatar]}})],1)]}}],null,!1,2002965932)}):e._e(),e._v(" "),"news"==e.currenType?i("el-table-column",{key:"12",attrs:{prop:"title",label:"文章名称","min-width":"60"}}):e._e(),e._v(" "),"active"==e.currenType?i("el-table-column",{key:"13",attrs:{prop:"value.name",label:"专场名称","min-width":"150"}}):e._e(),e._v(" "),"merchant"==e.currenType?i("el-table-column",{key:"14",attrs:{prop:"mer_name",label:"商户名称","min-width":"150"}}):e._e(),e._v(" "),"merchant"!==e.currenType&&"active"!==e.currenType&&"news"!==e.currenType&&"bargain"!==e.currenType&&"combination"!==e.currenType&&"product_category"!==e.currenType&&"points_cate"!==e.currenType&&"special"!==e.currenType&&"micro"!==e.currenType?i("el-table-column",{key:"15",attrs:{label:"商品图片","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}],null,!1,2331550732)}):e._e(),e._v(" "),"micro"==e.currenType?i("el-table-column",{key:"16",attrs:{prop:"add_time",label:"创建时间","min-width":"150"}}):e._e(),e._v(" "),"micro"==e.currenType?i("el-table-column",{key:"17",attrs:{prop:"update_time",label:"更新时间","min-width":"150"}}):e._e()],1),e._v(" "),"product"==e.currenType||"seckill"==e.currenType||"micro"==e.currenType||"presell"==e.currenType||"bargain"==e.currenType||"combination"==e.currenType||"news"==e.currenType||"active"==e.currenType||"merchant"==e.currenType?i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-sizes":[15,30,45,60],"page-size":e.formValidate.limit,"current-page":e.formValidate.page,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1):e._e()],1):e._e(),e._v(" "),"custom"==e.currenType?i("div",{staticClass:"right_box"},[i("div",{staticStyle:{width:"360px",margin:"150px 100px 0 120px"}},[i("el-form",{ref:"customdate",attrs:{model:e.customdate,rules:e.ruleValidate,"label-width":"120px"}},[i("el-form-item",{attrs:{"label-width":"0"}},[i("el-radio-group",{model:{value:e.customdate.status,callback:function(t){e.$set(e.customdate,"status",t)},expression:"customdate.status"}},[i("el-radio",{staticClass:"radio",attrs:{label:1}},[e._v("普通链接")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("跳转其他小程序")])],1)],1),e._v(" "),1==e.customdate.status?i("el-form-item",{attrs:{label:"跳转路径:",prop:"url"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入正确跳转路径"},model:{value:e.customdate.url,callback:function(t){e.$set(e.customdate,"url",t)},expression:"customdate.url"}})],1):e._e(),e._v(" "),2==e.customdate.status?i("div",[i("el-form-item",{attrs:{label:"APPID",prop:"appid"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入正确APPID"},model:{value:e.customdate.appid,callback:function(t){e.$set(e.customdate,"appid",t)},expression:"customdate.appid"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"小程序路径:",prop:"mpUrl"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入正确小程序路径"},model:{value:e.customdate.mpUrl,callback:function(t){e.$set(e.customdate,"mpUrl",t)},expression:"customdate.mpUrl"}})],1),e._v(" "),i("el-form-item",{attrs:{"label-width":"0"}},[i("div",[e._v("路径示例merchant/devise/diy/index?id=184")])]),e._v(" "),i("div",{staticStyle:{color:"#ff4949"}},[e._v("小程序跳转外链链接,域名需在白名单范围内的合法域名")])],1):e._e()],1)],1)]):e._e()]),e._v(" "),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),"custom"==e.currenType?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit("customdate")}}},[e._v("确定")]):i("el-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v("确定")])],1)]):e._e()],1)},r=[],n=i("c7eb"),s=(i("ac6a"),i("96cf"),i("1da1")),o=(i("7f7f"),i("f478")),l=i("c4c8"),c=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:15,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(e){e.checked=!0,this.presentId=e.id,this.currenUrl=e.url},getCustomList:function(){var e=this;Object(o["R"])(this.categoryId,{type:this.type}).then((function(t){t.data.list&&t.data.list.length||(e.customNum=2),e.tableList=t.data.list})).catch((function(t){e.$message.error(t.message)}))},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){var i=t.customdate.url;i=1==t.customdate.status?t.customdate.url:t.customdate.mpUrl+"@APPID="+t.customdate.appid,t.$emit("linkUrl",i),t.modals=!1,t.reset()}else t.$message.error("请填写信息")}))},pageChange:function(e){this.formValidate.page=e,this.getList()},handleSizeChange:function(e){this.formValidate.limit=e,this.getList()},goodsCategory:function(){var e=this;Object(l["w"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.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(e){this.currenId=e.id,this.currenUrl=e.url},getSort:function(){var e=this;Object(o["Q"])({type:this.type}).then((function(t){t.data[0].children[0]?(t.data[0].children[0].selected=!0,e.treeId=t.data[0]["children"][0]["id"],e.handleCheckChange(t.data[0].children[0])):(e.handleCheckChange(t.data[0]),e.treeId=t.data[0]&&t.data[0]["id"]),e.categoryData=t.data})).catch((function(t){e.$message.error(t.message)}))},getList:function(){var e=this;if(this.loading=!0,"product"==this.currenType){var t=this.formValidate;t.product_type=0,Object(o["A"])(t).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(i){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=i.data,a.list.forEach((function(e){e.url="/pages/goods_details/index?id=".concat(e.product_id)})),e.tableList=a.list,e.total=i.data.count,e.loading=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}else if("seckill"==this.currenType){var i=this.formValidate;i.product_type=1,Object(o["A"])(i).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(i){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=i.data,a.list.forEach((function(e){e.url="/pages/activity/goods_seckill_details/index?id=".concat(e.product_id)})),e.tableList=a.list,e.total=i.data.count,e.loading=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}else if("bargain"==this.currenType){var a=this.formValidate;a.product_type=3,Object(o["A"])(a).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(i){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=i.data,a.list.forEach((function(e){e.url="/pages/activity/assist_details/index?id=".concat(e.activity_id)})),e.tableList=a.list,e.total=i.data.count,e.loading=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}else if("combination"==this.currenType){var r=this.formValidate;r.product_type=4,Object(o["A"])(r).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(i){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=i.data,a.list.forEach((function(e){e.url="/pages/activity/combination_details/index?id=".concat(e.activity_id)})),e.tableList=a.list,e.total=i.data.count,e.loading=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}else if("presell"==this.currenType){var l=this.formValidate;l.product_type=2,Object(o["A"])(l).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(i){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=i.data,a.list.forEach((function(e){e.url="/pages/activity/presell_details/index?id=".concat(e.activity_id)})),e.tableList=a.list,e.total=i.data.count,e.loading=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)}))}else"news"==this.currenType?Object(c["i"])(this.formValidate).then(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(i){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=i.data,a.list.forEach((function(e){e.url="/pages/news_details/index?id=".concat(e.id)})),e.tableList=a.list,e.total=a.count,e.loading=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)})):"active"!=this.currenType&&"merchant"!=this.currenType||Object(o["R"])(this.categoryId,{page:this.formValidate.page,limit:this.formValidate.limit,type:this.type}).then((function(t){e.loading=!1;var i=t.data;if(e.currentList=i,"special"==e.currenType){var a=[];i.forEach((function(e){e.url="/pages/news_details/index?id=".concat(e.article_id),a.push(e)})),e.tableList=a}else"product_category"==e.currenType?(i.forEach((function(e){e.hasOwnProperty("children")&&e.children.forEach((function(e){e.url="/pages/columnGoods/goods_list/index?id=".concat(e.store_category_id,"&title=").concat(e.cate_name),e.hasOwnProperty("children")&&e.children.forEach((function(e){e.url="/pages/columnGoods/goods_list/index?id=".concat(e.store_category_id,"&title=").concat(e.cate_name)}))})),e.url="/pages/columnGoods/goods_list/index?id=".concat(e.store_category_id,"&title=默认")})),e.tableList=i):"active"==e.currenType?(i.list.forEach((function(e){e.id=e.group_data_id,e.url="/pages/activity/topic_detail/index?id=".concat(e.group_data_id)})),e.tableList=i.list,e.total=t.data.count):"merchant"==e.currenType&&(i.list.forEach((function(e){e.id=e.mer_id,e.url="/pages/store/home/index?id=".concat(e.mer_id)})),e.tableList=i.list,e.total=t.data.count)})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},handleCheckChange:function(e){var t=this;this.reset();var i="";if(this.currenType=e.type,!e.pid)return!1;if(i=e.id,this.categoryId=e.id,this.loading=!0,this.currenType=e.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};"active"!=this.currenType&&"merchant"!=this.currenType||(a.page=this.formValidate.page,a.limit=this.formValidate.limit),Object(o["R"])(i,a).then((function(e){t.loading=!1;var i=e.data;if(t.currentList=i,"special"==t.currenType){var a=[];i.list.forEach((function(e){e.url="/pages/news_details/index?id=".concat(e.article_id),a.push(e)})),t.tableList=a}else"product_category"==t.currenType||"points_cate"==t.currenType?(i.forEach((function(e){e.id=e.store_category_id,e.hasOwnProperty("children")&&e.children.forEach((function(e){e.id=e.store_category_id,e.url="/pages/columnGoods/goods_list/index?id=".concat(e.store_category_id,"&title=").concat(e.cate_name),e.hasOwnProperty("children")&&e.children.forEach((function(e){e.id=e.store_category_id,e.url="/pages/columnGoods/goods_list/index?id=".concat(e.store_category_id,"&title=").concat(e.cate_name)}))})),"product_category"==t.currenType?e.url="/pages/columnGoods/goods_list/index?id=".concat(e.store_category_id,"&title=默认"):e.url="/pages/points_mall/integral_goods_list?cate_id=".concat(e.store_category_id)})),t.tableList=i):"active"==t.currenType?(i.list.forEach((function(e){e.id=e.group_data_id,e.url="/pages/activity/topic_detail/index?id=".concat(e.group_data_id)})),t.tableList=i.list,t.total=e.data.count):"merchant"==t.currenType?(i.list.forEach((function(e){e.id=e.mer_id,e.url="/pages/store/home/index?id=".concat(e.mer_id)})),t.tableList=i.list,t.total=e.data.count):"micro"==t.currenType&&(i.list.forEach((function(e){e.id=e.id,e.url="/pages/small_page/index?id=".concat(e.id)})),t.tableList=i.list,t.total=e.data.count)})).catch((function(e){t.loading=!1,t.$message.error(e.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("92f9"),i("2877")),m=Object(p["a"])(u,a,r,!1,null,"182c5edb",null);t["a"]=m.exports},"8c98":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"goods_detail"},[i("div",{staticClass:"goods_detail_wrapper",class:e.previewKey||e.goodsId?"on":""},[e.previewKey?i("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{src:"/pages/admin/goods_details/index?preview_key="+e.previewKey+"&inner_frame=1",frameborder:"0"}}):e._e(),e._v(" "),e.goodsId?i("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{src:"/pages/admin/goods_details/index?product_id="+e.goodsId+"&product_type="+e.productType+"&inner_frame=1",frameborder:"0"}}):e._e()])])},r=[],n=(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(){}}}),s=n,o=(i("0936"),i("2877")),l=Object(o["a"])(s,a,r,!1,null,"5feee214",null);t["a"]=l.exports},"92f9":function(e,t,i){"use strict";i("e757")},a79a:function(e,t,i){"use strict";i("ed9d")},cdfb:function(e,t,i){},e500:function(e,t,i){},e757:function(e,t,i){},ecb5:function(e,t,i){"use strict";i("e500")},ed9d:function(e,t,i){},ef0d:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("vue-ueditor-wrap",{staticStyle:{width:"90%"},attrs:{config:e.myConfig},on:{beforeInit:e.addCustomDialog},model:{value:e.contents,callback:function(t){e.contents=t},expression:"contents"}})],1)},r=[],n=i("6625"),s=i.n(n),o=i("83d6"),l=i("bbcc"),c=i("5f87"),d={name:"Index",components:{VueUeditorWrap:s.a},scrollerHeight:{content:String,default:""},props:{content:{type:String,default:""}},data:function(){var e=l["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(c["a"])();return{contents:this.content,myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",elementPathEnabled:!1,wordCount:!1,enableAutoSave:!1,UEDITOR_HOME_URL:"/UEditor/",serverUrl:e,imageUrl:e,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]}}},watch:{content:function(e){this.contents=this.content},contents:function(e){this.$emit("input",e)}},created:function(){},methods:{addCustomDialog:function(e){window.UE.registerUI("test-dialog",(function(e,t){var i=new window.UE.ui.Dialog({iframeUrl:o["roterPre"]+"/setting/uploadPicture?field=dialog",editor:e,name:t,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,r,!1,null,"72b27d54",null);t["a"]=m.exports}}]);