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.
1 lines
11 KiB
1 lines
11 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-667e7af6"],{"31b4":function(t,e,i){"use strict";var s=i("9860"),a=i.n(s),o=i("b6bd"),n=i("2f62");function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function c(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var u={name:"edit",components:{formCreate:a.a.$form()},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(n.e)("admin/userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},userEdit:{type:Number,default:0}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}},isDisable:!1}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e,i=this;(setTimeout((function(){i.isDisable=!1}),1e3),this.isDisable)||(this.isDisable=!0,e=t,Object(o.a)({url:this.FromData.action,method:this.FromData.method,data:e}).then((function(t){i.$parent.getList(),i.$Message.success(t.msg),i.modals=!1,setTimeout((function(){i.$emit("submitFail")}),1e3)})).catch((function(t){i.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},d=(i("c262"),i("2877")),m=Object(d.a)(u,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("Modal",{class:t.userEdit?"userEdit":"",attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/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("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("Radio",{attrs:{label:0}},[t._v("通用券")]),e("Radio",{attrs:{label:1}},[t._v("品类券")]),e("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{"on-submit":t.onSubmit}})],2)],1):t._e()}),[],!1,null,"2850396f",null);e.a=m.exports},"3e48":function(t,e,i){},c262:function(t,e,i){"use strict";i("c54c")},c54c:function(t,e,i){},cb18:function(t,e,i){"use strict";i.r(e);var s=i("d708"),a=(i("f478"),i("2f62")),o=i("31b4"),n=i("8593"),r=i("b76a"),l=i.n(r),c=i("b0e7"),u=i("7af3");function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function p(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=d(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var f={name:"list",components:{editFrom:o.a,draggable:l.a,uploadPictures:c.a,linkaddress:u.a},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?m(Object(i),!0).forEach((function(e){p(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}},Object(a.e)("admin/layout",["menuCollapse","isMobile"])),data:function(){return{formValidate:{content:""},ruleValidate:{},agreementType:0,bgimg:0,columns1:[],bgCol:"",name:"routine_home_bast_banner",grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,sginList:[],swiperOption:{pagination:{el:".swiper-pagination"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},autoplay:{delay:2e3,disableOnInteraction:!1},loop:!1},url:"",BaseURL:s.a.apiBaseURL.replace(/adminapi/,""),pageId:0,theme3:"light",tabList:{list:[]},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:0,interval_time:0,type:"pic",status:1,value:[],video_link:""}}},mounted:function(){this.info(),this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=1&name=精品推荐"},methods:{getEditorContent:function(t){this.formValidate.content=t},linkUrl:function(t){this.tabList.list[this.activeIndexs].link=t},info:function(){var t=this;Object(n.v)().then((function(e){e.data.status=parseInt(e.data.status),t.formItem=e.data,t.tabList.list=e.data.value}))},addBox:function(){var t=this;5==this.tabList.list.length?this.$Message.warning("最多添加五张呦"):this.$nextTick((function(){t.tabList.list.push(JSON.parse(JSON.stringify(t.lastObj)))}))},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(){e.tabList.list[e.activeIndex].img=t.att_dir,e.modalPic=!1}))},save:function(){var t=this;this.formItem.value=this.tabList.list,Object(n.J)(this.formItem).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}}},b=(i("e596"),i("2877")),v=Object(b.a)(f,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",style:"padding-right:"+(t.menuCollapse?105:20)+"px",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{staticClass:"float-l"},[e("span",{staticClass:"mr20"},[t._v("开屏广告")])])])])],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{staticClass:"ivu-mt box-wrapper"},[e("Col",[e("div",{staticClass:"iframe",attrs:{bordered:!1}},[""==t.tabList.list?e("div",{staticClass:"nofonts"},[t._v("暂无照片,请添加~")]):t._e(),e("swiper",{staticClass:"swiperimg on",attrs:{options:t.swiperOption}},t._l(t.tabList.list,(function(t,i){return e("swiper-slide",{key:i+"a",staticClass:"swiperimg on"},[e("img",{attrs:{src:t.img}})])})),1)],1)]),e("Col",[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("Form",{attrs:{model:t.formItem,"label-width":80}},[e("FormItem",{attrs:{label:"开屏广告:"}},[e("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},model:{value:t.formItem.status,callback:function(e){t.$set(t.formItem,"status",e)},expression:"formItem.status"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1),e("FormItem",{attrs:{label:"广告时间:"}},[e("InputNumber",{staticStyle:{width:"150px"},attrs:{min:0,placeholder:"请输入开屏广告时间"},model:{value:t.formItem.time,callback:function(e){t.$set(t.formItem,"time",e)},expression:"formItem.time"}}),t._v("\n (单位:秒)\n ")],1),e("FormItem",{attrs:{label:"展示间隔:"}},[e("InputNumber",{staticStyle:{width:"150px"},attrs:{min:0,placeholder:"请输入展示间隔时间"},model:{value:t.formItem.interval_time,callback:function(e){t.$set(t.formItem,"interval_time",e)},expression:"formItem.interval_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,s){return e("div",{key:s,staticClass:"item"},[e("div",{staticClass:"move-icon"},[e("span",{staticClass:"iconfont icondrag2"})]),e("div",{staticClass:"img-box",on:{click:function(e){return t.modalPicTap("单选",s)}}},[i.img?e("img",{attrs:{src:i.img,alt:""}}):e("div",{staticClass:"upload-box"},[e("Icon",{attrs:{type:"ios-camera-outline",size:"36"}})],1),e("div",{staticClass:"delect-btn",on:{click:function(e){return e.stopPropagation(),t.bindDelete(i,s)}}},[e("Icon",{attrs:{type:"md-close-circle",size:"26"}})],1)]),e("div",{staticClass:"info"},[e("div",{staticClass:"info-item"},[e("span",[t._v("图片名称:")]),e("div",{staticClass:"input-box"},[e("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(s)}}},[e("Input",{attrs:{icon:"ios-arrow-forward",readonly:"",placeholder:"选择链接"},model:{value:i.link,callback:function(e){t.$set(i,"link",e)},expression:"item.link"}})],1)])])])})),0),e("div",[e("Modal",{attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":999},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[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("Button",{staticClass:"btn-add",attrs:{ghost:""},on:{click:t.addBox}},[t._v("添加图片")])],1)]],2)])])])],1)],1),e("Card",{staticClass:"fixed-card",style:{left:"".concat(t.menuCollapse?t.isMobile?"0":"80px":"200px")},attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-center-wrapper"},[e("Button",{staticClass:"bnt",attrs:{type:"primary",loading:t.loadingExist},on:{click:t.save}},[t._v("保存")])],1)]),e("linkaddress",{ref:"linkaddres",on:{linkUrl:t.linkUrl}})],1)}),[],!1,null,"97aeebf2",null);e.default=v.exports},e596:function(t,e,i){"use strict";i("3e48")}}]); |