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

1 lines
23 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-160ceedc"],{"0bf5":function(t,s,a){"use strict";a.r(s);var i=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"divBox"},[a("div",[1==t.cardShow||2==t.cardShow?a("div",{staticClass:"product_tabs",style:"padding-right:"+(t.menuCollapse?105:20)+"px"},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",[a("el-button",{staticClass:"bnt",attrs:{type:"primary",loading:t.loadingExist},on:{click:t.submit}},[t._v("保存")]),t._v(" "),a("el-button",{staticClass:"bnt ml20",on:{click:t.reast}},[t._v("重置")])],1)])]):t._e()]),t._v(" "),a("el-row",{staticClass:"ivu-mt box-wrapper"},[a("el-col",{staticClass:"left-wrapper",attrs:{span:3}},[a("el-menu",{attrs:{"default-active":"0",width:"auto"}},t._l(t.menuList,(function(s,i){return a("el-menu-item",{key:i,attrs:{name:s.id,index:i.toString()},nativeOn:{click:function(s){return t.bindMenuItem(i)}}},[t._v("\n "+t._s(s.name)+"\n ")])})),1)],1),t._v(" "),a("el-col",{staticClass:"right-wrapper",attrs:{span:21}},[0==t.cardShow?a("el-card",{attrs:{shadow:"never"}},[0==t.cardShow?a("el-row",[t.isDiy?a("el-col",{staticStyle:{width:"350px",height:"550px","margin-right":"10px",position:"relative"}},[a("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{id:"iframe",src:t.imgUrl,frameborder:"0"}}),t._v(" "),a("div",{staticClass:"mask"})]):t._e(),t._v(" "),a("el-col",{staticClass:"table",attrs:{span:24}},[a("div",{staticClass:"acea-row row-between-wrapper"},[a("el-row",{attrs:{type:"flex"}},[a("el-col",t._b({},"el-col",t.grid,!1),[a("div",{staticClass:"button acea-row row-middle"},[a("el-button",{staticStyle:{"font-size":"12px"},attrs:{type:"primary"},on:{click:t.add}},[a("i",{staticClass:"el-icon-plus",staticStyle:{"margin-right":"4px"}}),t._v("添加")])],1)])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"tables",attrs:{data:t.list,size:"mini"}},[a("el-table-column",{attrs:{prop:"id",label:"页面ID","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板名称","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"add_time",label:"添加时间","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"update_time",label:"更新时间","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(s){return[(s.row.status||s.row.is_diy)&&0==s.row.is_default?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.edit(s.row)}}},[t._v("编辑")]):t._e(),t._v(" "),1!=s.row.id&&s.row.is_diy&&0==s.row.is_default?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.del(s.row.id,s.$index)}}},[t._v("删除")]):t._e(),t._v(" "),1!=s.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.setStatus(s.row,s.$index)}}},[t._v("设为首页")]):t._e(),t._v(" "),s.row.is_diy?t._e():a("div",{staticStyle:{display:"inline-block"}},[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.recovery(s.row,s.$index)}}},[t._v("恢复初始设置")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.del(s.row,s.$index)}}},[t._v("删除")])],1),t._v(" "),s.row.status||s.row.is_diy?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDiyCopy(s.row)}}},[t._v("复制")]):t._e()]}}],null,!1,1878188763)})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.diyFrom.limit,"current-page":t.diyFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1):t._e()],1):1==t.cardShow?a("shopStreet",{ref:"shopStreet",on:{parentFun:t.getChildData}}):a("users",{ref:"users",on:{parentFun:t.getChildData}})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.modal,title:"预览"},on:{"update:visible":function(s){t.modal=s}}},[a("div",[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"acea-row row-around code"},[a("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[a("div",{ref:"qrCodeUrl",staticClass:"QRpic"}),t._v(" "),a("span",{staticClass:"mt10"},[t._v("公众号二维码")])]),t._v(" "),a("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[a("div",{staticClass:"QRpic"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.qrcodeImg,expression:"qrcodeImg"}]})]),t._v(" "),a("span",{staticClass:"mt10"},[t._v("小程序二维码")])])])])])],1)},e=[],n=a("c80c"),o=(a("96cf"),a("3b8d")),r=a("db72"),c=a("bbcc"),l=a("83d6"),d=(a("b311"),a("f478")),u=a("2f62"),v=a("d044"),h=a.n(v),p=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"goodClass"},[i("el-card",{attrs:{bordered:!1,"dis-hover":"",shadow:"never"}},[i("div",{staticClass:"list acea-row row-top"},[i("div",{staticClass:"left"},[i("div",{staticClass:"item"},["01"==t.image?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a("4274")}})]):t._e(),t._v(" "),"11"==t.image?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a("762b")}})]):t._e(),t._v(" "),"02"==t.image?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a("e4dc")}})]):t._e(),t._v(" "),"12"==t.image?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a("77e8")}})]):t._e(),t._v(" "),"03"==t.image?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a("1bae")}})]):t._e(),t._v(" "),"13"==t.image?i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a("1a1a")}})]):t._e()])]),t._v(" "),i("div",{staticClass:"right"},[i("div",{staticClass:"title"},[t._v("页面设置")]),t._v(" "),i("div",{staticClass:"c_row-item acea-row row-top"},[i("el-col",{staticClass:"label",attrs:{span:6}},[t._v("\n 是否显示距离:\n ")]),t._v(" "),i("el-col",{staticClass:"slider-box",attrs:{span:18}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:t.getPicUrl},model:{value:t.shopData.isShowDistance,callback:function(s){t.$set(t.shopData,"isShowDistance",s)},expression:"shopData.isShowDistance"}})],1)],1),t._v(" "),i("div",{staticClass:"c_row-item acea-row row-top"},[i("el-col",{staticClass:"label",attrs:{span:6}},[t._v("\n 页面风格:\n ")]),t._v(" "),i("el-col",{staticClass:"slider-box",attrs:{span:18}},[i("el-radio-group",{on:{change:t.getPicUrl},model:{value:t.shopData.status,callback:function(s){t.$set(t.shopData,"status",s)},expression:"shopData.status"}},[i("el-radio",{attrs:{label:1}},[t._v("样式1")]),t._v(" "),i("el-radio",{attrs:{label:2}},[t._v("样式2")]),t._v(" "),i("el-radio",{attrs:{label:3}},[t._v("样式3")])],1)],1)],1)])])])],1)},m=[],g={name:"goodClass",props:{},data:function(){return{image:"01",activeStyle:"-1",shopData:{isShowDistance:1,status:1}}},created:function(){this.getInfo()},methods:{getInfo:function(){var t=this;Object(d["u"])().then((function(s){t.activeStyle=s.data.status?s.data.status-1:0,t.shopData={isShowDistance:s.data.mer_location,status:s.data.store_street_theme?s.data.store_street_theme:1},t.getPicUrl()}))},getPicUrl:function(){0==this.shopData.isShowDistance?this.image=1==this.shopData.status?"01":2==this.shopData.status?"02":"03":this.image=1==this.shopData.status?"11":2==this.shopData.status?"12":"13"},selectTap:function(t){this.activeStyle=t},onSubmit:function(t){var s=this;this.$emit("parentFun",!0);var a={mer_location:this.shopData.isShowDistance,store_street_theme:this.shopData.status};Object(d["f"])(a).then((function(t){s.$emit("parentFun",!1),s.$message.success(t.message)})).catch((function(t){s.$message.error(t.message),s.$emit("parentFun",!1)}))}}},f=g,_=(a("ed67"),a("2877")),C=Object(_["a"])(f,p,m,!1,null,"d701e046",null),w=C.exports,b=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"users"},[i("el-card",{attrs:{shadow:"never"}},[i("div",{staticClass:"acea-row row-top"},[i("div",{staticClass:"left",style:t.colorStyle},[i("div",{staticClass:"header",class:3==t.userData.status?"bgColor":""},[i("div",{staticClass:"top acea-row row-between-wrapper"},[i("div",{staticClass:"picTxt acea-row row-middle"},[i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:a("cdfe")}})]),t._v(" "),i("div",{staticClass:"txt"},[i("div",{staticClass:"name"},[t._v("用户昵称")]),t._v(" "),i("div",{staticClass:"num"},[i("span",[t._v("ID: 9438")]),i("img",{attrs:{src:a("8170")}})])])]),t._v(" "),i("div",{staticClass:"acea-row row-middle"},[i("div",{staticClass:"news"},[i("span",{staticClass:"iconfont iconshezhi"}),t._v(" "),i("span",{staticClass:"iconfont iconliaotian"})])])]),t._v(" "),i("div",{staticClass:"center acea-row row-around row-middle"},[i("div",{staticClass:"item"},[i("div",{staticClass:"num"},[t._v("0.00")]),t._v(" "),i("div",{staticClass:"font"},[t._v("我的收藏")])]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"num"},[t._v("65749")]),t._v(" "),i("div",{staticClass:"font"},[t._v("关注店铺")])]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"num"},[t._v("25")]),t._v(" "),i("div",{staticClass:"font"},[t._v("浏览记录")])]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"num"},[t._v("40")]),t._v(" "),i("div",{staticClass:"font"},[t._v("优惠券")])])])]),t._v(" "),i("div",{staticClass:"wrapper"},[i("div",{staticClass:"orderCenter on"},[i("div",{staticClass:"title acea-row row-between-wrapper"},[i("div",{staticClass:"title-left"},[t._v("我的订单")]),t._v(" "),i("div",{staticClass:"all"},[t._v("全部订单"),i("span",{staticClass:"iconfont iconjinru"})])]),t._v(" "),i("div",{staticClass:"list acea-row row-around"},[i("div",{staticClass:"item"},[i("div",{staticClass:"iconfont",class:t.order.dfk}),t._v(" "),i("div",[t._v("待付款")])]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"iconfont",class:t.order.dfh}),t._v(" "),i("div",[t._v("待发货")])]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"iconfont",class:t.order.dsh}),t._v(" "),i("div",[t._v("待收货")])]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"iconfont",class:t.order.dpj}),t._v(" "),i("div",[t._v("待评价")])]),t._v(" "),i("div",{staticClass:"item"},[i("div",{staticClass:"iconfont",class:t.order.sh}),t._v(" "),i("div",[t._v("售后/退款")])])])]),t._v(" "),i("div",{staticClass:"carousel dotted",class:1==t.current?"solid":"",on:{click:function(s){return t.currentShow(1)}}},[t.userData.my_banner.length?i("swiper",{staticClass:"swiperimg",attrs:{options:t.swiperOption}},[t._l(t.userData.my_banner,(function(t,s){return i("swiper-slide",{key:s,staticClass:"swiperimg"},[i("img",{attrs:{src:t.pic}})])})),t._v(" "),i("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"})],2):i("div",{staticClass:"default"},[t._v("暂无广告数据")])],1),t._v(" "),i("div",{staticClass:"orderCenter service dotted",class:2==t.current?"solid":"",on:{click:function(s){return t.currentShow(2)}}},[i("div",{staticClass:"title acea-row row-between-wrapper"},[i("div",[t._v("我的服务")])]),t._v(" "),i("div",{staticClass:"list acea-row"},t._l(t.userData.my_menus,(function(s,a){return s.pic?i("div",{key:a,staticClass:"item"},[i("div",{staticClass:"pictrue"},[s.pic&&""!=s.pic?i("img",{attrs:{src:s.pic}}):i("span",{staticClass:"iconfont icontupian1"})]),t._v(" "),i("div",[t._v(t._s(s.name?s.name:"服务名称"))])]):t._e()})),0)]),t._v(" "),i("div",{staticClass:"orderCenter"},[i("div",{staticClass:"menu-list"},[i("div",{staticClass:"item-text"},[i("div",{staticClass:"item-title"},[i("span",[t._v("平台")]),t._v("管理")]),t._v(" "),i("div",{staticClass:"info"},[t._v("进入商户中心管理店铺")])]),t._v(" "),i("div",{staticClass:"picture"},[i("img",{attrs:{src:a("f467")}})])])]),t._v(" "),-1!==t.copyright.status?i("div",{staticClass:"copy-right"},[i("image",{staticClass:"img-copyright",attrs:{src:t.copyright.image,mode:"widthFix"}}),t._v(" "),i("div",{staticClass:"text"},[t._v("众邦科技提供技术支持")])]):i("div",{staticClass:"copy-right"},[i("div",{staticClass:"iconfont iconcrmeb1"}),t._v(" "),i("div",{staticClass:"text"},[t._v("众邦科技提供技术支持")])])])]),t._v(" "),i("div",{staticClass:"right"},[i("div",{staticClass:"title"},[t._v("页面设置")]),t._v(" "),1==t.current?i("div",{staticClass:"c_row-item acea-row row-top"},[i("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 广告位:\n ")]),t._v(" "),i("el-col",{staticClass:"slider-box",attrs:{span:20}},[i("div",{staticClass:"info"},[t._v("建议尺寸:750 * 138,拖拽图片可调整图片显示顺序哦,最多添加五张")]),t._v(" "),i("uploadPic",{attrs:{listData:t.userData.my_banner,type:2}})],1)],1):t._e(),t._v(" "),2==t.current?i("div",[i("div",{staticClass:"c_row-item acea-row row-top"},[i("el-col",{staticClass:"label",attrs:{span:4}},[t._v("\n 我的服务:\n ")]),t._v(" "),i("el-col",{staticClass:"slider-box",attrs:{span:20}},[i("div",{staticClass:"info"},[t._v("建议尺寸:86 * 86px,拖拽图片可调整图片显示顺序哦")]),t._v(" "),i("uploadPic",{attrs:{listData:t.userData.my_menus,type:3}})],1)],1)]):t._e()])])])],1)},y=[],x=a("c24f"),k=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"hot_imgs"},[a("div",{staticClass:"list-box"},[a("draggable",{staticClass:"dragArea list-group",attrs:{list:t.listData,group:"peoples",handle:".move-icon"}},t._l(t.listData,(function(s,i){return a("div",{key:i,staticClass:"item"},[a("div",{staticClass:"move-icon"},[a("span",{staticClass:"iconfont-diy icondrag"})]),t._v(" "),a("div",{staticClass:"img-box",on:{click:function(s){return t.modalPicTap("单选",i)}}},[s.pic&&""!=s.pic?a("img",{attrs:{src:s.pic,alt:""}}):a("div",{staticClass:"upload-box"},[a("i",{staticClass:"el-icon-camera-solid"})])]),t._v(" "),a("div",{staticClass:"info"},[s.hasOwnProperty("name")?a("div",{staticClass:"info-item"},[a("span",[t._v(t._s(1==t.type?"管理名称:":2==t.type?"广告名称":"服务名称:"))]),t._v(" "),a("div",{staticClass:"input-box"},[a("el-input",{attrs:{placeholder:2==t.type?"请输入名称":"服务中心",maxlength:"4"},model:{value:s.name,callback:function(a){t.$set(s,"name",a)},expression:"item.name"}})],1)]):t._e(),t._v(" "),a("div",{staticClass:"info-item"},[a("span",[t._v("链接地址:")]),t._v(" "),a("div",{staticClass:"input-box",on:{click:function(s){return t.getLink(i)}}},[a("el-input",{attrs:{icon:"ios-arrow-forward",readonly:"",placeholder:"选择链接"},model:{value:s.url,callback:function(a){t.$set(s,"url",a)},expression:"item.url"}})],1)])]),t._v(" "),a("div",{staticClass:"delect-btn",on:{click:function(a){return a.stopPropagation(),t.bindDelete(s,i)}}},[a("span",{staticClass:"iconfont-diy icondel_1"})])])})),0)],1),t._v(" "),t.listData?[1!=t.type&&2!=t.type||2==t.type&&t.listData.length<5?a("div",{staticClass:"add-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:t.addBox}},[t._v("添加板块")])],1):t._e()]:t._e(),t._v(" "),a("linkaddress",{ref:"linkaddres",on:{linkUrl:t.linkUrl}})],2)},D=[],S=(a("c5f6"),a("1980")),j=a.n(S),A=a("b5b8"),O=a("7af3"),$={name:"uploadPic",props:{listData:{type:Array},type:{type:Number}},components:{draggable:j.a,uploadPictures:A["default"],linkaddress:O["a"]},data:function(){return{modalPic:!1,isChoice:"单选",activeIndex:0,lastObj:{name:"",pic:"",url:""}}},mounted:function(){},watch:{configObj:{handler:function(t,s){},deep:!0}},methods:{linkUrl:function(t){this.listData[this.activeIndex].url=t},getLink:function(t){this.activeIndex=t,this.$refs.linkaddres.modals=!0},addBox:function(){if(0==this.listData.length)this.listData.push(this.lastObj);else{var t=JSON.parse(JSON.stringify(this.listData[this.listData.length-1]));t.name="",t.pic="",t.url="",this.listData.push(t)}},modalPicTap:function(t,s){this.activeIndex=s;var a=this;this.$modalUpload((function(t){a.listData[a.activeIndex].pic=t[0]}))},bindDelete:function(t,s){1==this.listData.length&&(this.lastObj=this.listData[0]),this.listData.splice(s,1)}}},z=$,L=(a("8093"),Object(_["a"])(z,k,D,!1,null,"090878e8",null)),P=L.exports,I={name:"users",components:{uploadPic:P},props:{},data:function(){return{swiperOption:{pagination:{el:".swiper-pagination"},autoplay:{delay:2e3,disableOnInteraction:!1},loop:!1},userData:{my_banner:[],my_menus:[]},current:1,colorStyle:"",order:{},copyright:{},order01:{dfk:"icondaifukuan-shengxianlv",dfh:"icondaifahuo-shengxianlv",dsh:"icondaishouhuo-shengxianlv",dpj:"icondaipingjia-shengxianlv",sh:"iconshouhou-tuikuan-shengxianlv"},order02:{dfk:"icondaifukuan-menghuanzi",dfh:"icondaifahuo-menghuanzi",dsh:"icondaishouhuo-menghuanzi",dpj:"icondaipingjia-menghuanzi",sh:"iconshouhou-tuikuan-menghuanzi"},order03:{dfk:"icondaifukuan-kejilan",dfh:"icondaifahuo-kejilan",dsh:"icondaishouhuo-kejilan",dpj:"icondaipingjia-kejilan",sh:"iconshouhou-tuikuan-kejilan"},order04:{dfk:"icondaifukuan-langmanfen",dfh:"icondaifahuo-langmanfen",dsh:"icondaishouhuo-langmanfen",dpj:"icondaipingjia-langmanfen",sh:"icona-shouhoutuikuan-langmanfen"},order05:{dfk:"icondaifukuan-yangguangcheng",dfh:"icondaifahuo-yangguangcheng",dsh:"icondaishouhuo-yangguangcheng",dpj:"icondaipingjia-yangguangcheng",sh:"iconshouhou-tuikuan1"},order06:{dfk:"icondaifukuan-zhongguohong",dfh:"icondaifahuo-zhongguohong",dsh:"icondaishouhuo-zhongguohong",dpj:"icondaipingjia-zhongguohong",sh:"iconshouhou-tuikuan-zhongguohong"}}},created:function(){this.getInfo(),this.getVersion()},methods:{currentShow:function(t){this.current=t},switchOrder:function(t){switch(t){case 1:this.order=this.order01;break;case 2:this.order=this.order02;break;case 3:this.order=this.order03;break;case 4:this.order=this.order04;break;case 5:this.order=this.order05;break;default:this.order=this.order01;break}},orderStyle:function(t){this.switchOrder(t)},getInfo:function(){var t=this;Object(d["w"])().then((function(s){t.colorStyle=s.data.theme.theme,t.userData.my_menus=s.data.my_menus,t.userData.my_banner=s.data.my_banner}))},getVersion:function(){var t=this;Object(x["s"])().then((function(s){t.copyright=s.data}))},onSubmit:function(){var t=this;this.$emit("parentFun",!0),Object(d["B"])(this.userData).then((function(s){t.$emit("parentFun",!1),t.$message.success(s.message)})).catch((function(s){t.$message.error(s.message),t.$emit("parentFun",!1)}))}}},U=I,E=(a("7fd8"),Object(_["a"])(U,b,y,!1,null,"66af7289",null)),B=E.exports,F={name:"devise_list",computed:Object(r["a"])({},Object(u["d"])("layout",["menuCollapse"])),components:{shopStreet:w,users:B},data:function(){return{grid:{sm:10,md:12,lg:19},loading:!1,theme3:"light",roterPre:l["roterPre"],menuList:[{name:"商城首页",id:1},{name:"店铺街",id:2},{name:"个人中心",id:3}],list:[],imgUrl:"",modal:!1,BaseURL:c["a"].httpUrl||"http://localhost:8080",cardShow:0,loadingExist:!1,isDiy:1,qrcodeImg:"",diyFrom:{page:1,limit:20},total:0}},created:function(){this.getList()},mounted:function(){},methods:{getChildData:function(t){this.loadingExist=t},submit:function(){1==this.cardShow?this.$refs.shopStreet.onSubmit():this.$refs.users.onSubmit()},reast:function(){1==this.cardShow?this.$refs.shopStreet.getInfo():this.$refs.users.getInfo()},bindMenuItem:function(t){this.cardShow=t},onCopy:function(){this.$message.success("复制预览链接成功")},onError:function(){this.$mssage.error("复制预览链接失败")},creatQrCode:function(t,s){this.$refs.qrCodeUrl.innerHTML="";var a="";if(s)a="".concat(this.BaseURL,"/pages/index/index?inner_frame=1");else{var i=1e3*(new Date).getTime();a="".concat(this.BaseURL,"/pages/index/index?inner_frame=1&time=").concat(i)}new h.a(this.$refs.qrCodeUrl,{text:a,width:160,height:160,colorDark:"#000000",colorLight:"#ffffff",correctLevel:h.a.CorrectLevel.H})},routineCode:function(t){var s=this;Object(d["z"])(t).then((function(t){s.qrcodeImg=t.data.image})).catch((function(t){s.$message.error(t)}))},preview:function(t){this.modal=!0,this.creatQrCode(t.id,t.status),this.routineCode(t.id)},getList:function(){var t=this,s=window.localStorage;this.imgUrl=s.getItem("imgUrl");var a=this;this.loading=!0,Object(d["n"])(this.diyFrom).then((function(i){t.loading=!1;var e=i.data;t.list=e.list,t.total=e.count;var n=1e3*(new Date).getTime(),o="".concat(a.BaseURL,"/pages/index/index?inner_frame=1&time=").concat(n);s.setItem("imgUrl",o),a.imgUrl=o}))},pageChange:function(t){this.diyFrom.page=t,this.getList()},handleSizeChange:function(t){this.diyFrom.limit=t,this.getList()},edit:function(t){this.$router.push({path:"".concat(l["roterPre"],"/setting/diy/index"),query:{id:t.id,name:t.template_name||"moren",types:1}})},add:function(){this.$router.push({path:"".concat(l["roterPre"],"/setting/diy/index"),query:{id:0,name:"首页",types:1}})},del:function(t,s){var a=this;this.$modalSure("删除模板吗").then((function(){Object(d["l"])(t).then((function(t){var s=t.message;a.$message.success(s),a.getList()})).catch((function(t){var s=t.message;a.$message.error(s)}))}))},setStatus:function(){var t=Object(o["a"])(Object(n["a"])().mark((function t(s){var a;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=this,a.$modalSure("把该模板设为首页").then((function(){Object(d["P"])(s.id).then((function(t){a.$message.success(t.message),a.getList()})).catch((function(t){a.$message.error(t.message)}))}));case 2:case"end":return t.stop()}}),t,this)})));function s(s){return t.apply(this,arguments)}return s}(),recovery:function(t){var s=this;Object(d["O"])(t.id).then((function(t){s.$message.success(t.message),s.getList()}))},onDiyCopy:function(t){var s=this;Object(d["k"])(t.id).then((function(){s.getList()})).catch((function(t){s.$message.error(t.message)}))}}},q=F,Q=(a("acd7"),Object(_["a"])(q,i,e,!1,null,"3b5f90ea",null));s["default"]=Q.exports},"1a1a":function(t,s,a){t.exports=a.p+"system/img/sort13.00b343dd.jpg"},"1bae":function(t,s,a){t.exports=a.p+"system/img/sort03.bfc49b2f.jpg"},4274:function(t,s,a){t.exports=a.p+"system/img/sort01.07c71b43.jpg"},"4fa2":function(t,s,a){},"762b":function(t,s,a){t.exports=a.p+"system/img/sort11.a8f274bd.jpg"},"77e8":function(t,s,a){t.exports=a.p+"system/img/sort12.bd009a37.jpg"},"7fd8":function(t,s,a){"use strict";a("4fa2")},8093:function(t,s,a){"use strict";a("8e23")},8170:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAXCAYAAAAP6L+eAAABfElEQVRIS63VPS9EQRTG8f8TEoVCKEiIRFSipdEQBWqNl0QhQWSV6PWiWCJCQQg+gMIHUEiUGoVGIxGll96RkbmbcXf3vu3e9ia/OXPmOTOigc/MOoBx4FXSY0ipqGtmfcAx0AW0AUeSziKvEOzRE+AL2ABmgG23kKRTh+eGY2hJ0qeDzGze44eSLnLBAdoDLEl6DltpZstACZjODAfoN9Di+7ou6T3CA3gqExzfvofdwblD+8ODVpQlXafCCT11aYjwW2ANOJB0mXp49dBg6w6/ArqB/QhNhNPQWBIqlSbmuFG0ZsXNQKtgM3P5dJPjJqoS/lhWo0Go2n7du8LM9oABYCWaqCLov4rNrBW4A3Yl3cQvpyCniZVWHZ6ZDfnozEl6KVppLXgW2AQmJP0EWV0AtsLwZ7lqK5Pn53wRWAX6gWFgFBjJi8Z73Auc+4vb/XsDnoAbSQ9ZqkxKRTsw6J+aj7xYU56mtEVlZmPATpHXJAEvO7gTmGwyfP8Lk7rAiroEjvcAAAAASUVORK5CYII="},"8e23":function(t,s,a){},"99c3":function(t,s,a){},a085:function(t,s,a){},acd7:function(t,s,a){"use strict";a("a085")},cdfe:function(t,s,a){t.exports=a.p+"system/img/f.5aa43cd3.png"},e4dc:function(t,s,a){t.exports=a.p+"system/img/sort02.4f93d65f.jpg"},ed67:function(t,s,a){"use strict";a("99c3")},f467:function(t,s,a){t.exports=a.p+"system/img/plant_form.84e781a9.png"}}]);