徐总多门店
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
9.3 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e261899e"],{"0d2b":function(e,t,i){"use strict";var l=i("2a95");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var l=i.call(e,t||"default");if("object"!=a(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i("8237"),t.a={props:{options:{type:Array,default:function(){return[]}},value:{type:String|Number|Array,default:""},placeholder:{type:String,default:""},title:{type:String,default:""},type:{type:String,default:"text"},suffix:{type:String,default:""},prefix:{type:String,default:""},styleModel:{type:String,default:""},className:{type:String,default:""},field:{type:String,default:""},timerType:{type:String,default:"timerange"},timerFormat:{type:String,default:"HH:mm:ss"},info:{type:String,default:""},on:{type:Object,default:function(){return{}}},validate:{type:Object,default:function(){return{}}},errorsValidate:{type:Array,default:function(){return[]}}},data:function(){return{valueModel:this.value,errorMessage:"",exampleImage:{site_logo:"/statics/system/adminSet01.png",site_logo_square:"/statics/system/adminSet02.png",login_logo:"/statics/system/adminSet03.png",admin_login_slide:"/statics/system/adminSet04.png",start_login_logo:"/statics/system/adminSet05.png",wap_login_logo:"/statics/system/mobileSet01.png",wechat_share_img:"/statics/system/mobileSet02.png",pc_logo:"/statics/system/pcSet01.png",pay_weixin_client_cert:{text:'更多详情请查看:<br><a href="https://kf.qq.com/faq/161222NneAJf161222U7fARv.html" target="_blank" rel="noopener noreferrer">https://kf.qq.com/faq/161222NneAJf161222U7fARv.html</a>',image:"/statics/system/wxSet01.png"},pay_weixin_client_key:{text:'更多详情请查看:<br><a href="https://kf.qq.com/faq/161222NneAJf161222U7fARv.html" target="_blank" rel="noopener noreferrer">https://kf.qq.com/faq/161222NneAJf161222U7fARv.html</a>',image:"/statics/system/wxSet01.png"},terminal_number:"/statics/system/yilianyunPrinter.png",config_export_siid:"/statics/system/kuadi100Dump.png",product_poster_title:"/statics/system/productSharePoster.png",product_video_status:"/statics/system/productVideo.png"},exampleSize:{site_logo:364,site_logo_square:364,login_logo:364,admin_login_slide:364,start_login_logo:364,wap_login_logo:256,wechat_share_img:256,pc_logo:364,terminal_number:364,config_export_siid:364,product_poster_title:256}}},watch:{errorsValidate:{handler:function(e){var t=this;if(e){var i=e.find((function(e){return e.field===t.field}));this.errorMessage=i?i.message:""}else this.errorMessage=""},deep:!0}},methods:{getClassName:function(){var e=["input-build-"+this.field];return this.errorMessage&&e.push("ivu-form-item-error"),(this.validate[this.field]?this.validate[this.field].filter((function(e){return!0===e.required})):[]).length&&e.push("ivu-form-item-required"),e},changeEvent:function(e,t){"change"===e&&this.$emit("changeValue",{field:this.field,value:this.valueModel}),this.on[e]&&this.on[e](t),this.validator(e)},validator:function(e){var t=this;if((this.validate[this.field]?this.validate[this.field].filter((function(t){return t.trigger===e})):[]).length){var i=new l.a(this.validate),a=s({},this.field,this.valueModel);i.validate(a,(function(e,i){if(e){var l=e.find((function(e){return e.field===t.field}));t.errorMessage=l?l.message:""}else t.errorMessage=""}))}}}}},"36c4":function(e,t,i){"use strict";i.r(t);var l=i("0d2b"),a=i("5613"),s=i("d708");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n={name:"uploadFrameBuild",mixins:[l.a],components:{lookImage:a.a},props:{upload:{type:Object,default:function(){return{url:"",width:"800px",height:"900px",field:"",maxNum:1}}},icon:{type:String,default:""}},data:function(){return{baseURL:s.a.apiBaseURL.replace(/adminapi/,""),visible:!1,multiple:!1,imageUrl:"",disabledSeleteImage:!0,baseUrl:""}},watch:{valueModel:{handler:function(e){this.multiple?(this.getUploadUrl(),e.length>=this.upload.maxNum?this.disabledSeleteImage=!1:this.disabledSeleteImage=!0):this.disabledSeleteImage=!e,this.changeValue()},deep:!0}},created:function(){this.multiple=this.upload.maxNum>1,this.baseUrl=this.upload.url,this.getUploadUrl(),this.multiple?"object"!==o(this.valueModel)&&(this.valueModel=[]):"string"!=typeof this.valueModel&&(this.valueModel=""),this.multiple?this.valueModel.length>=this.upload.maxNum?this.disabledSeleteImage=!1:this.disabledSeleteImage=!0:this.disabledSeleteImage=!this.valueModel},methods:{getUploadUrl:function(){var e=this.multiple?this.upload.maxNum-this.valueModel.length:1;this.upload.url=this.baseUrl+(-1!==this.baseUrl.indexOf("?")?"&fodder="+this.field:"?fodder="+this.field)+"&maxLength="+e,this.upload.url+=this.multiple?"&type=many":"type=0"},handleView:function(e){this.imageUrl=e,this.$refs.lookImage.open()},handleRemove:function(e){this.multiple?this.valueModel.splice(e,1):this.valueModel=""},changeValue:function(){this.$emit("changeValue",{field:this.field,value:this.valueModel}),this.on.change&&this.on.change(this.valueModel)},selectImage:function(){this.visible=!0},closeUploadFrame:function(){this.visible=!1},setValue:function(e){this.multiple?"object"===o(e)&&(this.valueModel=e):this.valueModel=e[this.upload.field]||""}},mounted:function(){var e=this;void 0===window.$fromSubmit&&(window.$fromSubmit={}),window.$fromSubmit[this.field]={closeUploadFrame:null,setValue:null,getValue:null},window.$fromSubmit[this.field].closeUploadFrame=function(){return e.closeUploadFrame()},window.$fromSubmit[this.field].getValue=function(){return e.valueModel},window.$fromSubmit[this.field].setValue=function(t){return e.setValue(t)}}},r=(i("e7cd"),i("2877")),u=Object(r.a)(n,(function(){var e=this,t=e._self._c;return t("FormItem",{staticClass:"input-build upload-build",class:e.getClassName(),attrs:{label:e.title}},[e.multiple?e._l(e.valueModel,(function(i,l){return t("div",{staticClass:"demo-upload-list"},[t("img",{attrs:{src:i}}),t("div",{staticClass:"demo-upload-list-cover"},[t("Icon",{attrs:{type:"ios-eye-outline"},nativeOn:{click:function(t){return e.handleView(i)}}}),t("Icon",{attrs:{type:"ios-trash-outline"},nativeOn:{click:function(t){return e.handleRemove(l)}}})],1)])})):e._e(),t("div",{staticClass:"input-error-wrapper"},[e.disabledSeleteImage?t("div",{staticClass:"ivu-upload",staticStyle:{display:"inline-block",width:"58px"},on:{click:e.selectImage}},[t("div",{staticClass:"ivu-upload ivu-upload-drag"},[t("div",{staticStyle:{width:"58px",height:"58px","line-height":"58px"}},[t("i",{staticClass:"ivu-icon",class:e.icon?"ivu-icon-"+e.icon:"ivu-icon-ios-image",staticStyle:{"font-size":"20px"}})])])]):e._e(),e.errorMessage?t("div",{staticClass:"error-wrapper"},[e._v(e._s(e.errorMessage))]):e._e()]),e.valueModel&&!1===e.multiple?t("div",{staticClass:"demo-upload-list"},[t("img",{attrs:{src:e.valueModel}}),t("div",{staticClass:"demo-upload-list-cover"},[t("Icon",{attrs:{type:"ios-eye-outline"},nativeOn:{click:function(t){return e.handleView(e.valueModel)}}}),t("Icon",{attrs:{type:"ios-trash-outline"},nativeOn:{click:function(t){return e.handleRemove(e.valueModel)}}})],1)]):e._e(),e.info?t("div",{staticClass:"info-wrapper"},[e._v(e._s(e.info)+"\n "),e.exampleImage[e.field]?t("Poptip",{attrs:{placement:"bottom",trigger:"hover",width:e.exampleSize[e.field],transfer:!0,padding:"8px"}},[t("a",[e._v("查看示例")]),t("div",{staticClass:"exampleImg",class:364==e.exampleSize[e.field]?"on":"",attrs:{slot:"content"},slot:"content"},[t("img",{attrs:{src:e.baseURL+e.exampleImage[e.field],alt:""}})])]):e._e()],1):e._e(),t("Modal",{attrs:{title:"选择图片",styles:{height:e.upload.height?e.upload.height:"500px"},width:e.upload.width?e.upload.width:"900px","footer-hide":""},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{style:"height:"+(e.upload.height?e.upload.height:"500px")},[e.visible?t("iframe",{attrs:{src:e.upload.url,frameborder:"0",width:"100%",height:"100%"}}):e._e()])]),t("look-image",{ref:"lookImage",attrs:{imageUrl:e.imageUrl}})],2)}),[],!1,null,"f7e9d218",null);t.default=u.exports},"460f":function(e,t,i){"use strict";i("5930")},5613:function(e,t,i){"use strict";var l={name:"lookImage",props:{imageUrl:{type:String,default:""},styleImg:{type:String,default:""},title:{type:String,default:"查看图片"}},data:function(){return{visible:!1}},methods:{clear:function(){this.visible=!1},open:function(){this.visible=!0}}},a=(i("460f"),i("2877")),s=Object(a.a)(l,(function(){var e=this,t=e._self._c;return t("Modal",{attrs:{title:e.title,"footer-hide":""},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"image"},[e.visible?t("img",{style:e.styleImg?e.styleImg:"width: 100%;",attrs:{src:e.imageUrl}}):e._e()]),t("div",{attrs:{slot:"footer"},slot:"footer"})])}),[],!1,null,"9a098c1c",null);t.a=s.exports},5930:function(e,t,i){},e7cd:function(e,t,i){"use strict";i("fd4d")},fd4d:function(e,t,i){}}]);