1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-94f6b82a"],{"07db":function(t,e,i){},"31b4":function(t,e,i){"use strict";i("a630"),i("3ca3");var n=i("5530"),s=(i("d3b7"),i("159b"),i("30ba")),a=(s=i.n(s),i("6b6c")),r=i("2f62");s={name:"edit",components:{formCreate:s.a.$form()},computed:Object(n.a)({},Object(r.d)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},watch:{FromData:function(){this.FromData.rules.forEach((function(t){t.title+=":"}))}},data:function(){return{modals:!1,type:0,loading:!1,fapi:null,config:{form:{labelWidth:"100px"},resetBtn:!1,submitBtn:!1,global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},formSubmit:function(){this.fapi.submit()},onSubmit:function(t){var e=this;this.loading||(this.loading=!0,Object(a.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$message.error(t.msg)})))},cancel:function(){this.type=0}}},i("fae3"),n=i("2877"),r=Object(n.a)(s,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("el-dialog",{attrs:{visible:t.modals,title:t.FromData.title,"z-index":1,width:"720px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("el-radio-group",{on:{input:t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio",{attrs:{label:0}},[t._v("通用券")]),e("el-radio",{attrs:{label:1}},[t._v("品类券")]),e("el-radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(this.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit},model:{value:t.fapi,callback:function(e){t.fapi=e},expression:"fapi"}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.modals=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v("确 定")])],1)],2)],1):t._e()}),[],!1,null,"224af4d2",null);e.a=r.exports},3211:function(t,e,i){"use strict";i("07db")},4967:function(t,e,i){},"4e82":function(t,e,i){"use strict";var n=i("23e7"),s=i("e330"),a=i("59ed"),r=i("7b0b"),o=i("07fa"),c=i("083a"),l=i("577e"),u=i("d039"),d=i("addb"),m=i("a640"),f=i("04d1"),g=i("d998"),p=i("2d00"),b=i("512ce"),h=[],v=s(h.sort),_=s(h.push),y=(i=u((function(){h.sort(void 0)})),s=u((function(){h.sort(null)})),m=m("sort"),!u((function(){if(p)return p<70;if(!(f&&3<f)){if(g)return!0;if(b)return b<603;for(var t,e,i,n="",s=65;s<76;s++){switch(t=String.fromCharCode(s),s){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(i=0;i<47;i++)h.push({k:t+i,v:e})}for(h.sort((function(t,e){return e.v-t.v})),i=0;i<h.length;i++)t=h[i].k.charAt(0),n.charAt(n.length-1)!==t&&(n+=t);return"DGBEFHACIJK"!==n}})));n({target:"Array",proto:!0,forced:i||!s||!m||!y},{sort:function(t){void 0!==t&&a(t);var e=r(this);if(y)return void 0===t?v(e):v(e,t);for(var i,n,s=[],u=o(e),m=0;m<u;m++)m in e&&_(s,e[m]);for(d(s,(n=t,function(t,e){return void 0===e?-1:void 0===t?1:void 0!==n?+n(t,e)||0:l(t)>l(e)?1:-1})),i=o(s),m=0;m<i;)e[m]=s[m++];for(;m<u;)c(e,m++);return e}})},"590d":function(t,e,i){t.exports=i.p+"system_static/img/pclogin.3d27e2c2.png"},"713f":function(t,e,i){t.exports=i.p+"system_static/img/bluesgin.032bae4b.png"},8593:function(t,e,i){"use strict";i.d(e,"i",(function(){return s})),i.d(e,"g",(function(){return a})),i.d(e,"h",(function(){return r})),i.d(e,"db",(function(){return o})),i.d(e,"m",(function(){return c})),i.d(e,"k",(function(){return l})),i.d(e,"l",(function(){return u})),i.d(e,"j",(function(){return d})),i.d(e,"L",(function(){return m})),i.d(e,"D",(function(){return f})),i.d(e,"K",(function(){return g})),i.d(e,"I",(function(){return p})),i.d(e,"F",(function(){return b})),i.d(e,"G",(function(){return h})),i.d(e,"H",(function(){return v})),i.d(e,"J",(function(){return _})),i.d(e,"Z",(function(){return y})),i.d(e,"fb",(function(){return C})),i.d(e,"s",(function(){return x})),i.d(e,"c",(function(){return k})),i.d(e,"e",(function(){return O})),i.d(e,"b",(function(){return w})),i.d(e,"d",(function(){return j})),i.d(e,"f",(function(){return L})),i.d(e,"w",(function(){return $})),i.d(e,"u",(function(){return S})),i.d(e,"v",(function(){return P})),i.d(e,"Q",(function(){return T})),i.d(e,"P",(function(){return I})),i.d(e,"R",(function(){return E})),i.d(e,"Y",(function(){return B})),i.d(e,"o",(function(){return F})),i.d(e,"n",(function(){return U})),i.d(e,"U",(function(){return G})),i.d(e,"q",(function(){return A})),i.d(e,"t",(function(){return D})),i.d(e,"V",(function(){return R})),i.d(e,"a",(function(){return V})),i.d(e,"A",(function(){return z})),i.d(e,"cb",(function(){return H})),i.d(e,"E",(function(){return N})),i.d(e,"rb",(function(){return W})),i.d(e,"qb",(function(){return q})),i.d(e,"M",(function(){return J})),i.d(e,"O",(function(){return M})),i.d(e,"B",(function(){return K})),i.d(e,"S",(function(){return Q})),i.d(e,"T",(function(){return X})),i.d(e,"x",(function(){return Y})),i.d(e,"ab",(function(){return Z})),i.d(e,"y",(function(){return tt})),i.d(e,"bb",(function(){return et})),i.d(e,"p",(function(){return it})),i.d(e,"C",(function(){return nt})),i.d(e,"z",(function(){return st})),i.d(e,"W",(function(){return at})),i.d(e,"lb",(function(){return rt})),i.d(e,"nb",(function(){return ot})),i.d(e,"kb",(function(){return ct})),i.d(e,"ob",(function(){return lt})),i.d(e,"mb",(function(){return ut})),i.d(e,"r",(function(){return dt})),i.d(e,"pb",(function(){return mt})),i.d(e,"gb",(function(){return ft})),i.d(e,"eb",(function(){return gt})),i.d(e,"hb",(function(){return pt})),i.d(e,"X",(function(){return bt})),i.d(e,"jb",(function(){return ht})),i.d(e,"N",(function(){return vt})),i.d(e,"ib",(function(){return _t})),i("99af");var n=i("6b6c");function s(t){return Object(n.a)({url:"setting/config_class",method:"get",params:t})}function a(t){return Object(n.a)({url:"setting/config_class/create",method:"get"})}function r(t){return Object(n.a)({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function o(t){return Object(n.a)({url:"setting/config_class/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function c(t){return Object(n.a)({url:"setting/config",method:"get",params:t})}function l(t){return Object(n.a)({url:"setting/config/create",method:"get",params:t})}function u(t){return Object(n.a)({url:"/setting/config/".concat(t,"/edit"),method:"get"})}function d(t,e){return Object(n.a)({url:"setting/config/set_status/".concat(t,"/").concat(e),method:"PUT"})}function m(t){return Object(n.a)({url:"setting/group",method:"get",params:t})}function f(t){return Object(n.a)({url:t.url,method:t.method,data:t.datas})}function g(t){return Object(n.a)({url:"setting/group/".concat(t),method:"get"})}function p(t,e){return Object(n.a)({url:e,method:"get",params:t})}function b(t,e){return Object(n.a)({url:e,method:"get",params:t})}function h(t,e){return Object(n.a)({url:e,method:"get",params:t})}function v(t,e){return Object(n.a)({url:e,method:"get",params:t})}function _(t){return Object(n.a)({url:t,method:"PUT"})}function y(t){return Object(n.a)({url:"system/log/search_admin",method:"GET"})}function C(t){return Object(n.a)({url:"system/log",method:"GET",params:t})}function x(){return Object(n.a)({url:"system/file",method:"GET"})}function k(){return Object(n.a)({url:"system/backup",method:"GET"})}function O(t){return Object(n.a)({url:"system/backup/read",method:"GET",params:t})}function w(t){return Object(n.a)({url:"system/backup/backup",method:"put",data:t})}function j(t){return Object(n.a)({url:"system/backup/optimize",method:"put",data:t})}function L(t){return Object(n.a)({url:"system/backup/repair",method:"put",data:t})}function $(t){return Object(n.a)({url:"system/backup/file_list",method:"GET"})}function S(t){return Object(n.a)({url:"backup/download",method:"get",params:t})}function P(t){return Object(n.a)({url:"system/backup/import",method:"POST",data:t})}function T(t){return Object(n.a)({url:"system/file/login",method:"POST",data:t})}function I(t){return Object(n.a)({url:"system/file/opendir",method:"GET",params:t,file_edit:!0})}function E(t){return Object(n.a)({url:"system/file/openfile",method:"GET",params:t,file_edit:!0})}function B(t){return Object(n.a)({url:"system/file/savefile?fileToken=".concat(t.fileToken),method:"post",data:t,file_edit:!0})}function F(t){return Object(n.a)({url:"system/file/createFolder",method:"GET",params:t,file_edit:!0})}function U(t){return Object(n.a)({url:"system/file/createFile",method:"GET",params:t,file_edit:!0})}function G(t){return Object(n.a)({url:"system/file/rename",method:"GET",params:t,file_edit:!0})}function A(t){return Object(n.a)({url:"system/file/delFolder",method:"GET",params:t,file_edit:!0})}function D(t){return Object(n.a)({url:"system/file/mark",method:"get",params:t,file_edit:!0})}function R(t){return Object(n.a)({url:"system/replace_site_url",method:"post",data:t})}function V(){return Object(n.a)({url:"auth",method:"get"})}function z(){return Object(n.a)({url:"setting/get_kf_adv",method:"get"})}function H(t){return Object(n.a)({url:"setting/set_kf_adv",method:"post",data:t})}function N(){return Object(n.a)({url:"setting/group_all",method:"get"})}function W(t){return Object(n.a)({url:"system/version_list",method:"get",params:t})}function q(t){return Object(n.a)({url:"system/version_crate/".concat(t),method:"get"})}function J(t){return Object(n.a)({url:"setting/group_data/save_all",method:"POST",data:t})}function M(t){return Object(n.a)({url:"diy/open_adv/add",method:"POST",data:t})}function K(){return Object(n.a)({url:"diy/open_adv/info",method:"get"})}function Q(t){return Object(n.a)({url:"setting/config/get_system/".concat(t),method:"get"})}function X(t){return Object(n.a)({url:"setting/config/save_basics",method:"POST",data:t})}function Y(){return Object(n.a)({url:"setting/get_user_agreement",method:"get"})}function Z(t){return Object(n.a)({url:"setting/set_user_agreement",method:"post",data:t})}function tt(t){return Object(n.a)({url:"setting/get_agreement/".concat(t),method:"get"})}function et(t,e){return Object(n.a)({url:"setting/save_agreement",method:"post",data:t})}function it(t){return Object(n.a)({url:"crmeb_product",method:"get",params:t})}function nt(){return Object(n.a)({url:"setting/get_version",method:"get"})}function st(){return Object(n.a)({url:"copyright",method:"get"})}function at(t){return Object(n.a)({url:"copyright",method:"post",data:t})}function rt(t){return Object(n.a)({url:"/system/upgrade/list",method:"get",params:t})}function ot(){return Object(n.a)({url:"/system/upgrade_progress",method:"get"})}function ct(){return Object(n.a)({url:"/system/upgrade/agreement",method:"get"})}function lt(){return Object(n.a)({url:"/system/upgrade_status",method:"get"})}function ut(t){return Object(n.a)({url:"/system/upgrade_log/list",method:"get",params:t})}function dt(t){return Object(n.a)({url:"/system/upgrade_download/"+t,method:"POST"})}function mt(t){return Object(n.a)({url:"/system/upgradeable/list",method:"get",params:t})}function ft(t){return Object(n.a)({url:"system/crontab/list",params:t})}function gt(t,e){return Object(n.a)({url:"system/crontab/set_open/".concat(t,"/").concat(e)})}function pt(t){return Object(n.a)({url:"system/crontab/info/".concat(t)})}function bt(t){return Object(n.a)({url:"system/crontab/save",method:"post",data:t})}function ht(t){return Object(n.a)({url:"system/database/update_mark",method:"post",data:t})}function vt(t,e){return Object(n.a)({url:"system/file/mark/save?fileToken=".concat(t),method:"post",data:e})}function _t(){return Object(n.a)({url:"system/crontab/mark"})}},"89c2":function(t,e,i){t.exports=i.p+"system_static/img/oragesgin.00077d3a.png"},"90be":function(t,e,i){t.exports=i.p+"system_static/img/redsgin.d8b0c12e.png"},"943f":function(t,e,i){t.exports=i.p+"system_static/img/pinksgin.0e1c51b4.png"},bceb:function(t,e,i){t.exports=i.p+"system_static/img/greesgin.43ae54b5.png"},cb18:function(t,e,i){"use strict";i.r(e),i("b0c0"),i("4e82"),i("9911");var n=i("c7eb"),s=i("1da1"),a=i("5530"),r=(i("ac1f"),i("5319"),i("d3b7"),i("159b"),i("14d9"),i("b64b"),i("e9c4"),i("a434"),i("a069")),o=i("d708"),c=i("f478"),l=i("2f62"),u=i("31b4"),d=i("c4c8"),m=i("8593"),f=i("b76a"),g=(f=i.n(f),i("b0e7")),p=i("7af3"),b=i("c276");u={name:"list",components:{editFrom:u.a,draggable:f.a,uploadPictures:g.a,linkaddress:p.a,WangEditor:r.a},computed:Object(a.a)({bgcolors:function(){return{"--color-theme":this.bgCol}},labelWidth:function(){return this.isMobile?void 0:"120px"},labelPosition:function(){return this.isMobile?"top":"right"}},Object(l.d)("admin/layout",["menuCollapse"])),data:function(){return{formValidate:{content:""},ruleValidate:{},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:""},a:0,guide:0,bgimg:0,columns1:[],bgCol:"",name:"routine_home_bast_banner",grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,sginList:[],progress:0,swiperOption:{pagination:{el:".swiper-pagination"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},autoplay:!1,loop:!1},url:"",BaseURL:o.a.apiBaseURL.replace(/adminapi/,""),pageId:0,theme3:"light",tabList:[],upload_type:"",uploadData:{},lastObj:{add_time:"",comment:"",gid:"",id:"",img:"",link:"",sort:"",status:1},isChoice:"单选",modalPic:!1,gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},groupAll:[],activeIndex:0,sortName:null,activeIndexs:0,cmsList:[],loadingExist:!1,formItem:{time:"",type:"pic",status:1,value:[],video_link:""},fileUrl:o.a.apiBaseURL+"/file/upload",cardUrl:o.a.apiBaseURL+"/file/upload/1",header:{},type:0,upload:{videoIng:!1}}},created:function(){this.color(),this.uploadType(),this.getToken()},mounted:function(){this.getGroupAll(),this.info(),this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=1"},methods:{getEditorContent:function(t){this.formValidate.content=t},delVideo:function(){this.$set(this.formItem,"video_link","")},uploadType:function(){var t=this;Object(d.I)().then((function(e){t.upload_type=e.data.upload_type}))},handleSuccess:function(t,e,i){200===t.status?(this.$set(this.formItem,"video_link",t.data.src),this.$message.success(t.msg)):this.$message.error(t.msg)},zh_uploadFile:function(){this.video_link?this.formValidate.video_link=this.video_link:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this;if(-1===t.target.files[0].name.substr(t.target.files[0].name.indexOf(".")).indexOf(".mp4"))return e.$message.error("只能上传MP4文件");var i={key:t.target.files[0].name,contentType:t.target.files[0].type};Object(d.t)(i).then((function(i){e.$videoCloud.videoUpload({type:i.data.type,evfile:t,res:i,uploading:function(t,i){e.upload.videoIng=t}}).then((function(t){e.formValidate.video_link=t.url,e.$message.success("视频上传成功")})).catch((function(t){e.$message.error(t)}))})).catch((function(t){e.$message.error(t.msg)}))},getToken:function(){this.header["Authori-zation"]="Bearer "+Object(b.c)("token")},beforeUpload:function(){var t=this;return this.uploadData={},new Promise((function(e){t.$nextTick((function(){e(!0)}))}))},linkUrl:function(t){this.tabList.list[this.activeIndexs].link=t},color:function(){var t=this;Object(c.h)("color_change").then((function(e){switch(e.data.status){case 1:t.bgCol="#3875EA",t.bgimg=1;break;case 2:t.bgCol="#00C050",t.bgimg=2;break;case 3:t.bgCol="#E93323",t.bgimg=3;break;case 4:t.bgCol="#FF448F",t.bgimg=4;break;case 5:t.bgCol="#FE5C2D",t.bgimg=5}}))},groupAdd:function(){var t=this;this.$modalForm(Object(m.F)({gid:this.pageId,config_name:this.name},"setting/group_data/create")).then((function(){t.url=t.BaseURL+"pages/users/user_sgin/index",t.info()}))},info:function(){var t=this;Object(m.I)({config_name:this.name},"setting/group_data").then(function(){var e=Object(s.a)(Object(n.a)().mark((function e(i){return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.tabList=i.data,"admin_login_slide"==t.name?t.tabList.list.forEach((function(t,e,i){"string"!=typeof t.slide&&"undefined"!=t.slide&&(t.slide=t.slide[0])})):"sign_day_num"==t.name?t.cmsList=i.data.list:"user_recharge_quota"==t.name?t.sginList=i.data:t.tabList.list.forEach((function(t,e,i){"string"!=typeof t.img&&"undefined"!=t.img&&(t.img=t.img[0])}));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)}))},edits:function(t){var e=this;if(this.pageId=t.id||0,this.name=t.config_name||"",1==t)this.a=1,this.guide=0,this.getAgreement();else if(2==t)this.a=0,this.guide=2,this.pageId=1617,Object(m.B)().then((function(t){t.data?(e.formItem=t.data,e.tabList.list=t.data.value):(e.formItem={time:"",type:"pic",status:1,value:[],video_link:""},e.tabList.list=[])}));else switch(this.info(),this.guide=0,this.a=0,t.config_name){case"routine_home_bast_banner":this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=1&name=精品推荐";break;case"sign_day_num":this.url="",this.getListHeader();break;case"combination_banner":this.url=this.BaseURL+"pages/activity/goods_combination/index";break;case"routine_home_hot_banner":this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=2&name=热门榜单";break;case"routine_home_new_banner":this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=3&name=首发新品";break;case"routine_home_benefit_banner":this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=4&name=促销单品";break;case"user_recharge_quota":this.url="",this.getListHeader();break;case"admin_login_slide":case"integral_shop_banner":this.url=""}},addBox:function(){var t;0==this.tabList.list.length?(this.tabList.list.push(this.lastObj),this.lastObj={add_time:"",comment:"",gid:"",id:"",img:"",link:"",sort:"",status:1}):5==this.tabList.list.length?this.$message.warning("最多添加五张呦"):(t=JSON.parse(JSON.stringify(this.lastObj)),this.tabList.list.push(t))},bindDelete:function(t,e){this.tabList.list.splice(e,1)},modalPicTap:function(t,e){this.activeIndex=e,this.modalPic=!0},getPic:function(t){var e=this;this.$nextTick((function(){"admin_login_slide"==e.name?e.tabList.list[e.activeIndex].slide=t.att_dir:e.tabList.list[e.activeIndex].img=t.att_dir,e.modalPic=!1}))},save:function(){var t=this;1==this.a?this.onsubmit("formValidate"):2==this.guide?(this.formItem.value=this.tabList.list,Object(m.O)(this.formItem).then((function(e){t.$message.success(e.msg)}))):(this.loadingExist=!0,Object(m.M)({gid:this.pageId,config_name:this.name,data:this.tabList.list}).then((function(e){t.loadingExist=!1,t.$message.success(e.msg)})).catch((function(e){t.loadingExist=!1,t.$message.error(e.msg)})))},link:function(t){this.activeIndexs=t,this.$refs.linkaddres.modals=!0},getListHeader:function(){var t=this;this.loading=!0,Object(m.H)({config_name:this.name},"setting/sign_data/header").then((function(e){e=e.data.header,t.columns1=e,t.loading=!1})).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},edit:function(t){var e=this;this.$modalForm(Object(m.G)({gid:this.pageId,config_name:this.name},"setting/group_data/"+t.id+"/edit")).then((function(){e.info(),e.url=e.BaseURL+"pages/users/user_sgin/index"}))},del:function(t,e,i){var n=this;e={title:e,num:i,url:"setting/group_data/"+t.id,method:"DELETE",ids:""};this.$modalSure(e).then((function(t){n.info(),n.$message.success(t.msg)})).catch((function(t){n.$message.error(t.msg)}))},onchangeIsShow:function(t){var e=this;Object(m.J)("setting/group_data/set_status/"+t.id+"/"+t.status).then(function(){var t=Object(s.a)(Object(n.a)().mark((function t(i){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.url=e.BaseURL+"/pages/users/user_sgin/index",e.$message.success(i.msg),e.info();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.url=e.BaseURL+"/pages/users/user_sgin/index",e.$message.error(t.msg)}))},getGroupAll:function(){var t=this;Object(m.E)().then(function(){var e=Object(s.a)(Object(n.a)().mark((function e(i){return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.groupAll=i.data,t.sortName=i.data[0].config_name,t.pageId=i.data[0].id;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},getContent:function(t){this.formValidate.content=t},onsubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(m.ab)(e.formValidate).then(function(){var t=Object(s.a)(Object(n.a)().mark((function t(i){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(i.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))}))},getAgreement:function(){var t=this;Object(m.x)().then(function(){var e=Object(s.a)(Object(n.a)().mark((function e(i){var s;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=i.data,t.formValidate={content:s.content};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)}))}}},i("3211"),f=i("2877"),g=Object(f.a)(u,(function(){var t=this,e=t._self._c;return e("div",{style:t.bgcolors},[e("div",{staticClass:"i-layout-page-header header-title"},[e("span",{staticClass:"ivu-page-header-title mr20"},[t._v(t._s(t.$route.meta.title))]),e("div",[e("div",{staticStyle:{float:"right"}},[e("el-button",{staticClass:"bnt",attrs:{type:"primary"},on:{click:t.save}},[t._v("保存")])],1)])]),e("div",{staticClass:"box-wrapper h100"},[!t.$route.params.id&&t.groupAll.length?e("div",{staticClass:"left-wrapper"},[e("div",{staticClass:"tree-vis"},[t._l(t.groupAll,(function(i,n){return e("div",{key:n,staticClass:"tab-item",class:{active:i.id==t.pageId},on:{click:function(e){return t.edits(i)}}},[t._v("\n "+t._s(i.name)+"\n ")])})),e("div",{staticClass:"tab-item",class:{active:1617==t.pageId},on:{click:function(e){return t.edits(2)}}},[t._v("开屏广告")])],2)]):t._e(),"user_recharge_quota"==t.name?e("div",{staticClass:"iframe"},[e("div",{staticClass:"iframe-boxs"},[e("div",{staticClass:"moneyBox"},[t._m(0),e("div",{staticClass:"moneyBox_content"},[t._m(1),e("div",{staticClass:"box3"},[t._l(t.sginList.list,(function(i,n){return e("div",{directives:[{name:"show",rawName:"v-show",value:0!=i.status,expression:"item.status != 0"}],key:n,staticClass:"box3_box"},[e("div",[t._v(t._s(i.price)),e("i",{staticClass:"font"},[t._v("元")])]),e("div",{staticClass:"font"},[t._v("赠送:"+t._s(i.give_money)+"元")])])})),t._m(2)],2),t._m(3),e("div",{staticClass:"box5"},[t._v("立即充值")])])])])]):t._e(),"admin_login_slide"==t.name?e("div",{staticClass:"pciframe",attrs:{bordered:!1,shadow:"never"}},[e("img",{staticClass:"pciframe-box",attrs:{src:i("590d")}}),e("div",{staticClass:"pcmoddile_goods"},[""==t.tabList.list?e("div",{staticClass:"nofont"},[t._v("暂无照片,请添加~")]):e("swiper",{staticClass:"pcswiperimg_goods",attrs:{options:t.swiperOption}},t._l(t.tabList.list,(function(t,i){return e("swiper-slide",{key:i,staticClass:"spcwiperimg_goods"},[e("img",{attrs:{src:t.slide}})])})),1)],1)]):t._e(),"integral_shop_banner"==t.name?e("div",{staticClass:"iframe",attrs:{bordered:!1}},[e("div",{staticClass:"iframe-box"},[e("img",{staticStyle:{width:"100%"},attrs:{src:i("d50d")}}),e("div",{staticClass:"moddile_goods"},[""!=t.tabList.list&&t.tabList.list.length&&t.tabList.list[0].img?e("swiper",{staticClass:"pcswiperimg_goods",attrs:{options:t.swiperOption}},t._l(t.tabList.list,(function(t,i){return e("swiper-slide",{key:i,staticClass:"swiperimg_goods"},[e("img",{attrs:{src:t.img}})])})),1):e("div",{staticClass:"nofonts"},[t._v("\n 暂无照片,请添加~\n ")])],1)])]):t._e(),"sign_day_num"!=t.name&&"admin_login_slide"!=t.name&&"user_recharge_quota"!=t.name&&"integral_shop_banner"!=t.name&&1!=t.a&&2!=t.guide?e("div",{staticClass:"iframe",attrs:{bordered:!1,shadow:"never"}},[e("iframe",{staticClass:"iframe-box",attrs:{src:t.url,frameborder:"0"}}),e("div",{staticClass:"moddile"}),"routine_home_bast_banner"==t.name||"routine_home_hot_banner"==t.name||"routine_home_new_banner"==t.name||"routine_home_benefit_banner"==t.name?e("div",{staticClass:"moddile_box"},[t.tabList.list&&t.tabList.list.length&&t.tabList.list[0].img?e("swiper",{staticClass:"swiperimg",attrs:{options:t.swiperOption}},t._l(t.tabList.list,(function(t,i){return e("swiper-slide",{key:i,staticClass:"swiperimg"},[e("img",{attrs:{src:t.img}})])})),1):e("div",{staticClass:"nofonts"},[t._v("\n 暂无照片,请添加~\n ")])],1):t._e(),"combination_banner"==t.name?e("div",{staticClass:"moddile_goods"},[""==t.tabList.list?e("div",{staticClass:"nofonts"},[t._v("暂无照片,请添加~")]):e("swiper",{staticClass:"swiperimg_goods",attrs:{options:t.swiperOption}},t._l(t.tabList.list,(function(t,i){return e("swiper-slide",{key:i,staticClass:"swiperimg_goods"},[e("img",{attrs:{src:t.img}})])})),1)],1):t._e()]):t._e(),"sign_day_num"==t.name?e("div",{staticClass:"iframe",attrs:{bordered:!1}},[e("div",{staticClass:"iframe-box"},[1==t.bgimg?e("img",{attrs:{src:i("713f")}}):t._e(),2==t.bgimg?e("img",{attrs:{src:i("bceb")}}):t._e(),3==t.bgimg?e("img",{attrs:{src:i("90be")}}):t._e(),4==t.bgimg?e("img",{attrs:{src:i("943f")}}):t._e(),5==t.bgimg?e("img",{attrs:{src:i("89c2")}}):t._e()])]):t._e(),1==t.a?e("div",{staticClass:"iframe",attrs:{bordered:!1}},[e("div",{staticClass:"agreement-box"},[e("div",{staticClass:"template"}),e("div",{staticClass:"htmls_box"},[e("div",{staticClass:"htmls_top"},[t._v("服务协议与隐私政策")]),t._m(4),e("div",{staticClass:"htmls",domProps:{innerHTML:t._s(t.formValidate.content)}})])])]):t._e(),1==t.a?e("div",{staticStyle:{"margin-left":"40px"}},[e("div",{staticClass:"table_box"},[e("div",[e("div",t._b({},"div",t.grid,!1),[e("div",{staticClass:"title"},[t._v("隐私权限页面展示:")])])]),e("div",[e("el-form",{ref:"formValidate",staticClass:"form",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("div",{staticClass:"goodsTitle acea-row"}),e("el-form-item",{staticStyle:{margin:"0px"},attrs:{label:"",prop:"content"}},[e("WangEditor",{staticStyle:{width:"90%"},attrs:{content:t.formValidate.content},on:{editorContent:t.getEditorContent}})],1)],1)],1)])]):t._e(),2==t.guide?e("div",{staticClass:"iframe",attrs:{bordered:!1}},[""!=t.tabList.list&&t.tabList.list.length&&t.tabList.list[0].img?e("swiper",{staticClass:"swiperimgs",attrs:{options:t.swiperOption}},t._l(t.tabList.list,(function(t,i){return e("swiper-slide",{key:i,staticClass:"swiperimgs"},[e("img",{attrs:{src:t.img}})])})),1):e("div",{staticClass:"nofonts"},[t._v("\n 暂无照片,请添加~\n ")])],1):t._e(),"sign_day_num"==t.name?e("div",{staticStyle:{"margin-left":"20px"}},[e("div",{staticClass:"table_box"},[e("div",[e("div",t._b({},"div",t.grid,!1),[e("div",{staticClass:"title"},[t._v("签到天数设置")]),e("el-button",{staticStyle:{"margin-left":"14px","margin-top":"30px"},attrs:{type:"primary"},on:{click:function(e){return t.groupAdd("添加数据")}}},[t._v("添加数据")])],1)]),e("div",{staticClass:"table"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.cmsList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"编号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.id))])]}}],null,!1,773642443)}),e("el-table-column",{attrs:{label:"第几天","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.day))])]}}],null,!1,955831162)}),e("el-table-column",{attrs:{label:"获取积分","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.sign_num))])]}}],null,!1,119199068)}),e("el-table-column",{attrs:{label:"是否可用","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:i.row.status,size:"large"},on:{change:function(e){return t.onchangeIsShow(i.row)}},model:{value:i.row.status,callback:function(e){t.$set(i.row,"status",e)},expression:"scope.row.status"}})]}}],null,!1,2916475551)}),e("el-table-column",{attrs:{label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.sort))])]}}],null,!1,753807644)}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"150"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("a",{on:{click:function(e){return t.edit(i.row,"编辑")}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(i.row,"删除这条信息",i.$index)}}},[t._v("删除")])]}}],null,!1,1600716782)})],1)],1)])]):t._e(),"user_recharge_quota"==t.name?e("div",{staticStyle:{"margin-left":"20px"}},[e("div",{staticClass:"table_box"},[e("div",[e("div",t._b({},"div",t.grid,!1),[e("div",{staticClass:"title"},[t._v("充值金额设置")]),e("el-button",{staticStyle:{"margin-left":"14px","margin-top":"30px"},attrs:{type:"primary"},on:{click:function(e){return t.groupAdd("添加数据")}}},[t._v("添加数据")])],1)]),e("div",{staticClass:"table"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.sginList.list,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},t._l(t.columns1,(function(i,n){return e("el-table-column",{key:n,attrs:{label:i.title,"min-width":i.minWidth},scopedSlots:t._u([{key:"default",fn:function(n){return[i.key?[e("div",[e("span",[t._v(t._s(n.row[i.key]))])])]:"status"===i.slot?[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:n.row.status,size:"large"},on:{change:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}})]:"action"===i.slot?[e("a",{on:{click:function(e){return t.edit(n.row,"编辑")}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(n.row,"删除这条信息",n.$index)}}},[t._v("删除")])]:t._e()]}}],null,!0)})})),1)],1)])]):e("div",["sign_day_num"!=t.name&&1!=t.a&&2!=t.guide?e("div",{class:"admin_login_slide"!=t.name?"content":"contents"},[e("div",{staticClass:"right-box"},[e("div",{staticClass:"hot_imgs"},["admin_login_slide"==t.name?e("div",{staticClass:"title"},[t._v("幻灯片设置")]):e("div",{staticClass:"title"},[t._v("轮播图设置")]),e("div",{staticClass:"title-text"},[t._v("建议尺寸:690 * 240px,拖拽图片可调整图片顺序哦,最多添加五张")]),e("div",{staticClass:"list-box"},["admin_login_slide"==t.name?e("draggable",{staticClass:"dragArea list-group Bbox",attrs:{list:t.tabList.list,group:"peoples",handle:".move-icon"}},t._l(t.tabList.list,(function(i,n){return e("div",{key:n,staticClass:"items"},[e("div",{staticClass:"move-icon"},[e("span",{staticClass:"iconfont icondrag2"})]),e("div",{staticClass:"img-box",on:{click:function(e){return t.modalPicTap("单选",n)}}},[i.slide?e("img",{attrs:{src:i.slide,alt:""}}):e("div",{staticClass:"upload-box"},[e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})]),e("div",{staticClass:"delect-btn",on:{click:function(e){return e.stopPropagation(),t.bindDelete(i,n)}}},[e("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"24px"}})])]),e("div",{staticClass:"info"})])})),0):e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.tabList.list,group:"peoples",handle:".move-icon"}},t._l(t.tabList.list,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"move-icon"},[e("span",{staticClass:"iconfont icondrag2"})]),e("div",{staticClass:"img-box",on:{click:function(e){return t.modalPicTap("单选",n)}}},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"upload-box"},[e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})]),e("div",{staticClass:"delect-btn",on:{click:function(e){return e.stopPropagation(),t.bindDelete(i,n)}}},[e("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"24px"}})])]),e("div",{staticClass:"info"},[e("div",{staticClass:"info-item"},[e("span",[t._v("图片名称:")]),e("div",{staticClass:"input-box"},[e("el-input",{attrs:{placeholder:"请填写名称"},model:{value:i.comment,callback:function(e){t.$set(i,"comment",e)},expression:"item.comment"}})],1)]),e("div",{staticClass:"info-item"},[e("span",[t._v("链接地址:")]),e("div",{staticClass:"input-box",on:{click:function(e){return t.link(n)}}},[e("el-input",{attrs:{readonly:"",placeholder:"选择链接","suffix-icon":"el-icon-arrow-right"},model:{value:i.link,callback:function(e){t.$set(i,"link",e)},expression:"item.link"}})],1)])])])})),0),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传商品图","close-on-click-modal":!1,"show-close":!0},on:{"update:visible":function(e){t.modalPic=e}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)],1),[e("div",{staticClass:"add-btn"},[e("el-button",{staticStyle:{width:"100px",height:"35px","background-color":"var(--prev-color-primary)",color:"#ffffff"},attrs:{type:"primary",ghost:""},on:{click:t.addBox}},[t._v("添加图片\n ")])],1)]],2)])]):t._e()]),2===t.guide?e("div",{class:"admin_login_slide"!=t.name?"content":"contents"},[e("div",{staticClass:"right-box"},[e("div",{staticClass:"hot_imgs"},[e("div",{staticClass:"title"},[t._v("引导页设置")]),e("div",{staticClass:"title-text"},[t._v("建议尺寸:750 * 1334px,拖拽图片可调整图片顺序哦,最多添加五张")]),e("div",{staticClass:"list-box"},[e("div",[e("el-form",{attrs:{model:t.formItem,"label-width":"85px"}},[e("el-form-item",{attrs:{label:"开屏广告:"}},[e("el-switch",{attrs:{"active-value":"1","inactive-value":"0",size:"large"},model:{value:t.formItem.status,callback:function(e){t.$set(t.formItem,"status",e)},expression:"formItem.status"}})],1),e("el-form-item",{attrs:{label:"广告时间:"}},[e("el-input",{staticStyle:{width:"150px"},attrs:{type:"number",placeholder:"请输入开屏广告时间"},model:{value:t.formItem.time,callback:function(e){t.$set(t.formItem,"time",t._n(e))},expression:"formItem.time"}}),t._v("\n 单位(秒)\n ")],1)],1)],1),e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.tabList.list,group:"peoples",handle:".move-icon"}},t._l(t.tabList.list,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"move-icon"},[e("span",{staticClass:"iconfont icondrag2"})]),e("div",{staticClass:"img-box",on:{click:function(e){return t.modalPicTap("单选",n)}}},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"upload-box"},[e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})]),e("div",{staticClass:"delect-btn",on:{click:function(e){return e.stopPropagation(),t.bindDelete(i,n)}}},[e("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"24px"}})])]),e("div",{staticClass:"info"},[e("div",{staticClass:"info-item"},[e("span",[t._v("图片名称:")]),e("div",{staticClass:"input-box"},[e("el-input",{attrs:{placeholder:"请填写名称"},model:{value:i.comment,callback:function(e){t.$set(i,"comment",e)},expression:"item.comment"}})],1)]),e("div",{staticClass:"info-item"},[e("span",[t._v("链接地址:")]),e("div",{staticClass:"input-box",on:{click:function(e){return t.link(n)}}},[e("el-input",{attrs:{readonly:"",placeholder:"选择链接"},model:{value:i.link,callback:function(e){t.$set(i,"link",e)},expression:"item.link"}})],1)])])])})),0),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传商品图","close-on-click-modal":!1},on:{"update:visible":function(e){t.modalPic=e}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)],1),t.tabList.list.length<5?[e("div",{staticClass:"add-btn"},[e("el-button",{staticStyle:{width:"100px",height:"35px","background-color":"var(--prev-color-primary)",color:"#ffffff"},attrs:{type:"primary",ghost:""},on:{click:t.addBox}},[t._v("添加图片\n ")])],1)]:t._e()],2)])]):t._e()]),e("linkaddress",{ref:"linkaddres",on:{linkUrl:t.linkUrl}})],1)}),[function(){var t=this._self._c;return t("div",{staticClass:"box1"},[t("div",{staticClass:"font1"},[this._v("我的余额")]),t("div",[this._v("¥ "),t("i",{staticClass:"font2"},[this._v("0.00")])])])},function(){var t=this._self._c;return t("div",{staticClass:"box2"},[t("div",[this._v("账户充值")]),t("div",[this._v("佣金导入")])])},function(){var t=this._self._c;return t("div",{staticClass:"box3_box"},[t("div",{staticClass:"other"},[this._v("其他")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"box4"},[e("div",{staticClass:"tips"},[t._v("注意事项:")]),e("div",{staticClass:"tips-samll"},[e("p",[t._v("充值后帐户的金额不能提现,可用于商城消费使用。")]),e("p",[t._v("佣金导入账户之后不能再次导出、不可提现。")]),e("p",[t._v("账户充值出现问题可联系商城客服,也可拨打商城客服热线:40088888889。")])])])},function(){var t=this._self._c;return t("div",{staticClass:"htmls_font"},[t("div",{staticClass:"ok"},[this._v("我同意")]),t("div",[this._v("不同意")])])}],!1,null,"6a5d4957",null);e.default=g.exports},d50d:function(t,e,i){t.exports=i.p+"system_static/img/integral.fcfc352b.png"},fae3:function(t,e,i){"use strict";i("4967")}}]);
|