1 line
26 KiB
JavaScript
1 line
26 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4364b0e3"],{"0ac5":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4MDY0M0Y3Q0E4NzIxMUU5ODkzNjgxRTI4OUY2MUZEMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo4MDY0M0Y3REE4NzIxMUU5ODkzNjgxRTI4OUY2MUZEMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ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qsDGgIhAQoJUAgJUOQO1QGFF4bcCanFosovIn4qlXA7cFAq6Yxo4WHpjZowgv4BhYFCMaDIGcsnpLoNznTQChEXjbrzgpttCVDEzvIT0xfm9Zwz4Q9lIEICFBKgEBKgyB+qAwovDBciL1hWnPBBpRIephQUS2pGEPHj9kQHeuCyUAwocke3E3nB7rR4DrURIi7ck6iCVuQFS4AiTuYjCzhYWNDRMMIfykCEBCgkQCEkQJE/VAcUXiiMhM9HCcpllV9E/MgLFn5jv8gCDjbynDIhFAOKTNBpd0MB1qP9mW5NFiIOarXQC+5vtzqGS4g4cY+TDbL6HF6RkmREQyAkQCEBCiEBityhOqDwQmGkEApQ9T/hg2pVXrDwiLOAFQMKxYAifzj3LXCeXLVa0aiI2JAXLJK1BK81E7r/Xzub0ev1+t5fH6xek1e/wZ9mR71er9/M6xHgP1oIhC/+J8AA7HhyuC3Y6gAAAAAASUVORK5CYII="},"1e73c":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,"#releaseVideo .content[data-v-6e5290b8]{background:#fff;padding-bottom:1rem;overflow:hidden}#releaseVideo .content .settitle[data-v-6e5290b8]{margin:1rem 0}#releaseVideo .content .settitle[data-v-6e5290b8]:after{border:none}#releaseVideo .content .main[data-v-6e5290b8]{padding:0 .875rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#releaseVideo .content .main[data-v-6e5290b8],#releaseVideo .content .video_Cover[data-v-6e5290b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:.75rem}#releaseVideo .content .video_Cover[data-v-6e5290b8]{width:49%;height:15.625rem;background:#f7f7f7;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative}#releaseVideo .content .video_Cover .cover_img[data-v-6e5290b8],#releaseVideo .content .video_Cover .cover_img1[data-v-6e5290b8]{height:13.125rem;width:100%;-o-object-fit:none;object-fit:none;margin:0}#releaseVideo .content .video_Cover .cover_img1[data-v-6e5290b8]{-o-object-fit:contain;object-fit:contain}#releaseVideo .content .video_Cover p[data-v-6e5290b8]{text-align:center;padding:0 .5rem}#releaseVideo .content .video_Cover .deletaIcon[data-v-6e5290b8]{font-size:1rem;background:#333;color:#fff;position:absolute;top:0;right:0}#releaseVideo .content .video-wrap[data-v-6e5290b8]{width:49%;height:15.625rem;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background:#f7f7f7;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}#releaseVideo .content .video-wrap .shade[data-v-6e5290b8]{position:absolute;right:0;top:0;text-align:center;z-index:10}#releaseVideo .content .video-wrap .back_img[data-v-6e5290b8]{width:5rem;height:5rem}#releaseVideo .content .video-wrap .video-guide[data-v-6e5290b8]{position:absolute;color:#fff}#releaseVideo .content .video-wrap .video-input[data-v-6e5290b8]{width:100%;position:absolute;left:0;right:0;top:0;bottom:0;opacity:0}#releaseVideo .content .changeGoodClass[data-v-6e5290b8]{display:inline-block;width:14.38rem;height:2.5rem;font-size:1rem;color:#f15353;line-height:2.5rem;margin-top:1.88rem;border-radius:.25rem;border:.0625rem solid #f15353}#releaseVideo .goood-class[data-v-6e5290b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:.63rem .94rem 3.94rem;background:#fff}#releaseVideo .goood-class img[data-v-6e5290b8]{width:3.75rem;height:3.75rem;margin:.63rem}#releaseVideo .goood-class .right-class[data-v-6e5290b8]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;padding:.63rem .63rem .63rem 0}#releaseVideo .goood-class .right-class p[data-v-6e5290b8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:left;margin-bottom:.81rem;color:#333;font-size:.9375rem}#releaseVideo .goood-class .right-class .price[data-v-6e5290b8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#releaseVideo .goood-class .right-class .price .now-price[data-v-6e5290b8]{font-size:1rem;color:#f15353;margin-right:1.19rem}#releaseVideo .goood-class .right-class .price .old-price[data-v-6e5290b8]{font-size:.75rem;color:#8c8c8c}#releaseVideo .bottomBtn[data-v-6e5290b8]{position:fixed;bottom:0;width:100%;height:3.31rem;background:#fff;border-top:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#releaseVideo .bottomBtn span[data-v-6e5290b8]{display:inline-block;width:100%;height:2.5rem;line-height:2.5rem;background-color:#f15353;border-radius:.25rem;margin:.34rem .94rem;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:1rem;color:#fff}",""]),e.exports=t},"2d88":function(e,t,i){"use strict";i.d(t,"b",(function(){return h})),i.d(t,"c",(function(){return v}));var o=i("c7eb"),a=i("1da1"),r=i("1d53");function s(e,t,i){return n.apply(this,arguments)}function n(){return n=Object(a["a"])(Object(o["a"])().mark((function e(t,i,a){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r["a"].post("plugin.circle.frontend.circle-invitation.set-invitation-review",{invitation_id:t,circle_id:i,invitation_type:a});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}function l(e){return $http.post("plugin.circle.frontend.circle.quit-circle",{circle_id:e})}function d(e){return $http.post("plugin.circle.frontend.circle.add-circle",{circle_id:e})}function c(e,t,i){return $http.post("plugin.circle.frontend.circle-pay.index",{member_id:e,pay_method:t,pay_name:i})}function h(){return u.apply(this,arguments)}function u(){return u=Object(a["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.get("plugin.circle.frontend.circle.get-set").then((function(e){return 1==e.result?e.data:e}),(function(e){}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function v(e){return p.apply(this,arguments)}function p(){return p=Object(a["a"])(Object(o["a"])().mark((function e(t){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.post("plugin.circle.frontend.circle-member.edit-member-info",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}t["a"]={postOperation:s,quitCircle:l,joinFreeCircle:d,joinPayCircle:c,getSet:h,saveEditMemberInfo:v}},3359:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"releaseVideo"}},[o("c-title",{attrs:{hide:!1,text:"发布视频"}}),o("div",{staticClass:"content"},[o("van-cell-group",{staticClass:"settitle"},[o("van-field",{attrs:{placeholder:"标题:请输入标题,4-18个字",maxlength:"18"},model:{value:e.title,callback:function(t){e.title="string"===typeof t?t.trim():t},expression:"title"}})],1),o("div",{staticClass:"main"},[o("div",{staticClass:"video-wrap",nativeOn:{click:function(t){return e.upp.apply(null,arguments)}}},[o("div",{staticClass:"shade"},[e.videoUrl?o("i",{staticClass:"iconfont icon-guanbi deletaIcon",on:{click:function(t){return t.stopPropagation(),e.removeVideo.apply(null,arguments)}}}):e._e()]),o("video",{directives:[{name:"show",rawName:"v-show",value:e.videoUrl,expression:"videoUrl"}],ref:"video",staticStyle:{height:"100%",width:"100%",background:"#fff"},attrs:{preload:"metadata",controlslist:"nodownload","custom-cache":"false",controls:"","webkit-playsinline":"true","x5-video-player-type":"h5",playsinline:"","x5-playsinline":"","x5-video-orientation":"portrait","x5-video-player-fullscreen":"",autoplay:"autoplay",src:e.videoUrl,id:"video"}},[o("source",{attrs:{src:e.videoUrl,type:"video/ogg"}}),o("source",{attrs:{src:e.videoUrl,type:"video/mp4"}}),o("source",{attrs:{src:e.videoUrl,type:"video/webm"}}),e._v("你的浏览器不支持video标签! ")]),o("img",{directives:[{name:"show",rawName:"v-show",value:!e.videoUrl,expression:"!videoUrl"}],staticClass:"back_img",attrs:{src:i("0ac5"),alt:""}}),o("input",{directives:[{name:"show",rawName:"v-show",value:!e.videoUrl,expression:"!videoUrl"}],staticClass:"video-input",attrs:{type:"file",id:"file",accept:"video/*"},on:{change:e.onReadVideo}}),e.limit>0?o("p",{staticStyle:{margin:"0.25rem 1rem","text-align":"left",color:"#757575"}},[e._v(" 视频时长不应超过 "),o("small",{staticStyle:{color:"#ffc107","font-size":"0.875rem"}},[e._v(e._s(e.limit))]),e._v("秒 ")]):e._e()]),o("div",{staticClass:"video_Cover"},[o("van-uploader",{staticStyle:{width:"100%"},attrs:{"after-read":e.onRead}},[o("img",{directives:[{name:"show",rawName:"v-show",value:!e.videoCover,expression:"!videoCover"}],staticClass:"cover_img",attrs:{src:i("5a72"),alt:""}})]),o("van-image-preview",{attrs:{images:e.images},model:{value:e.showOpen,callback:function(t){e.showOpen=t},expression:"showOpen"}}),e.videoCover?o("img",{staticClass:"cover_img1",attrs:{src:e.videoCover,alt:""},on:{click:function(t){t.stopPropagation(),e.showOpen=!0}}}):e._e(),o("p",[e._v(" 提示:封面图尽量和视频高度一致 "),o("em",{directives:[{name:"show",rawName:"v-show",value:e.videoCover,expression:"videoCover"}],staticStyle:{color:"#f15353"}},[e._v("(点击图片预览)")])]),e.videoCover?o("i",{staticClass:"iconfont icon-guanbi deletaIcon",on:{click:function(t){return t.stopPropagation(),e.removeImg.apply(null,arguments)}}}):e._e()],1)]),e.selectGoods&&e.chooseGoods.length>0?o("span",{staticClass:"changeGoodClass",on:{click:e.gotoAdd}},[e._v("更换商品")]):e._e()],1),e.selectGoods?o("ul",{staticClass:"goods-list"},e._l(e.chooseGoods,(function(t){return o("div",{key:t.id,staticClass:"goood-class"},[o("img",{attrs:{src:t.thumb,alt:""}}),o("div",{staticClass:"right-class"},[o("p",[e._v(e._s(e._f("escapeTitle")(t.title)))]),o("div",{staticClass:"price"},[o("span",{staticClass:"now-price"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))]),o("span",{staticClass:"old-price"},[e._v("原价:"+e._s(e.$i18n.t("money"))+e._s(t.market_price))])])])])})),0):e._e(),o("div",{staticStyle:{height:"2.8125rem"}}),o("div",{staticClass:"bottomBtn",style:{width:3==this.fun.getPhoneEnv()?"375px":"100%"}},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.showUploadBtn&&!e.uploadIng,expression:"!showUploadBtn && !uploadIng"}],on:{click:e.BtnMethos}},[e._v(e._s(this.selectGoods&&0==e.chooseGoods.length?"添加商品":"确认发布"))]),o("span",{directives:[{name:"show",rawName:"v-show",value:e.showUploadBtn,expression:"showUploadBtn"}],on:{click:e.play_Upload}},[e._v("上传视频")]),o("span",{directives:[{name:"show",rawName:"v-show",value:!e.showUploadBtn&&e.uploadIng,expression:"!showUploadBtn && uploadIng"}],staticStyle:{"background-color":"#7d7e80"}},[e._v("视频上传中...")])])],1)},a=[],r=(i("e7e5"),i("d399")),s=(i("b64b"),i("a9e3"),i("14d9"),i("8a79"),i("b0c0"),i("d3b7"),i("3ca3"),i("ddb0"),i("2b3d"),i("9861"),i("88a7"),i("271a"),i("5494"),i("e9c4"),i("ac1f"),i("5319"),i("81b2"),i("0eb6"),i("b7ef"),i("8bd4"),i("c19f"),i("ace4"),i("5cc6"),i("907a"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("986a"),i("1d02"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("6ce5"),i("2834"),i("72f7"),i("4ea1"),i("00b4"),i("2d88")),n={data:function(){return{file:"",title:"",videoUrl:"",isVideo:!0,images:[],realVideo:"",photosize:2097152,coverUrl:"",duration:0,chooseGoods:[],videoPath:"",videoCover:"",videoCoverPath:"",limit:null,uploadIng:!1,videoProgress:0,showOpen:!1,showUploadBtn:!1,isRirst:!0,ManualUploadImg:!1,isNeedGoods:!0,circleId:null,selectGoods:!1}},activated:function(){this.init(),this.getList(),this.getSet(),this.fun.isTextEmpty(JSON.parse(localStorage.getItem("shareVideoPath")))||(this.fun.isTextEmpty(JSON.parse(localStorage.getItem("shareVideoPath")).title)||(this.title=JSON.parse(localStorage.getItem("shareVideoPath")).title),this.fun.isTextEmpty(JSON.parse(localStorage.getItem("shareVideoPath")).videoUrl)||(this.videoUrl=JSON.parse(localStorage.getItem("shareVideoPath")).videoUrl),this.fun.isTextEmpty(JSON.parse(localStorage.getItem("shareVideoPath")).videoUrl)||(this.videoPath=JSON.parse(localStorage.getItem("shareVideoPath")).videoPath),this.fun.isTextEmpty(JSON.parse(localStorage.getItem("shareVideoPath")).videoCover)||(this.videoCover=JSON.parse(localStorage.getItem("shareVideoPath")).videoCover,this.images[0]=this.videoCover),this.fun.isTextEmpty(JSON.parse(localStorage.getItem("shareVideoPath")).videoCoverPath)||(this.videoCoverPath=JSON.parse(localStorage.getItem("shareVideoPath")).videoCoverPath),this.fun.isTextEmpty(JSON.parse(localStorage.getItem("shareVideoPath")).file_name)||(this.file=JSON.parse(localStorage.getItem("shareVideoPath")).file_name)),void 0!==this.$route.query.goods_id&&null!==this.$route.query.goods_id&&this.getGoodsById(),(this.$route.query.circle_id||this.$route.query.id)&&(this.circleId=parseInt(this.$route.query.circle_id||this.$route.query.id))},mounted:function(){},deactivated:function(){},methods:{init:function(){this.title="",this.file="",this.videoUrl="",this.isVideo=!0,this.coverUrl="",this.duration=0,this.chooseGoods=[],this.realVideo="",this.videoPath="",this.videoCover="",this.images=[],this.showOpen=!1,this.limit=null,this.uploadIng=!1,this.showUploadBtn=!1,this.isRirst=!0,this.ManualUploadImg=!1,this.selectGoods=!1,document.getElementById("file").value=null},getList:function(){var e=this;s["a"].getSet().then((function(t){var i=t.limit;e.limit=i?Number(i):i}))},getGoodsById:function(){var e=this;$http.get("plugin.circle.frontend.circle-invitation.search-goods",{goods_id:this.$route.query.goods_id}).then((function(t){1==t.result?e.chooseGoods=t.data.data:e.$dialog.alert({message:t.msg})}))},gotoAdd:function(){this.$router.push(this.fun.getUrl("circleVideogood",{}))},removeVideo:function(){this.videoUrl=null},onReadVideo:function(e){var t=this,i=e.target.files||e.dataTransfer.files;if(i.length)if(this.realVideo=i[0],i[0].name.endsWith(".mp4")||i[0].name.endsWith(".MP4")||i[0].name.endsWith(".mov")||i[0].name.endsWith(".MOV")){this.videoUrl=null;var o=null;void 0!=window.createObjectURL?o=window.createObjectURL(i[0]):void 0!=window.URL?o=window.URL.createObjectURL(i[0]):void 0!=window.webkitURL&&(o=window.webkitURL.createObjectURL(i[0])),this.videoUrl=o,t.showUploadBtn=!0}else t.$dialog.alert({message:"请上传MP4或MOV格式视频"})},play_Upload:function(){var e=this.$refs.video;e.play(),this.showUploadBtn=!1,this.getDuration()},getDuration:function(){var e=this,t=this.$refs.video;function i(){return e.duration=t.duration,e.duration<1?(e.videoUrl=null,void e.$dialog.alert({message:"视频时长太短了!"})):0!=e.limit&&e.duration>Number(e.limit)+1?(e.videoUrl=null,void e.$dialog.alert({message:"视频时长不能超过".concat(e.limit,"秒")})):(e.setSrcAndCaptureImage(),void t.removeEventListener("loadedmetadata",i))}t.src=this.videoUrl,t.addEventListener("loadedmetadata",i)},setSrcAndCaptureImage:function(){var e=this,t=this.$refs.video;function i(){var o=1,a=document.createElement("canvas");a.width=t.videoWidth*o,a.height=t.videoHeight*o,a.getContext("2d").drawImage(t,0,0,a.width,a.height),e.coverUrl=a.toDataURL("image/png"),e.uploadAudioM(),e.uploadImageM(),t.removeEventListener("loadeddata",i)}t.addEventListener("loadeddata",i)},autoPlayAudio2:function(){var e=this.$refs.video;e.play(),wx.config({debug:!1,appId:"",timestamp:1,nonceStr:"",signature:"",jsApiList:[]}),wx.ready((function(){e.play()}))},BtnMethos:function(){var e=this;if(this.selectGoods&&0==this.chooseGoods.length){var t={title:e.title,videoPath:e.videoPath,videoUrl:e.videoUrl,videoCoverPath:e.videoCoverPath,videoCover:e.videoCover,file_name:e.file};localStorage.setItem("shareVideoPath",JSON.stringify(t)),this.$router.replace(this.fun.getUrl("circleVideogood",{},{circle_id:this.circleId,refresh:1,to_home:1}))}else{if(this.fun.isTextEmpty(this.title))return void Object(r["a"])("请输入4-18个字标题");if(this.title.length<4)return void this.$dialog.alert({message:"标题不小于4个字"});if(this.fun.isTextEmpty(this.videoUrl))return void Object(r["a"])("请选择视频进行上传!");if(!this.isRirst)return;this.isRirst=!1;var i={goods_id:this.$route.query.goods_id,title:this.title,content:this.videoUrl,img:this.videoCoverPath,file_name:this.file,circle_id:this.circleId,invitation_status:2,address:"",store_id:"",city:"",latitude:"",longitude:"",ylat:"",ylng:""};$http.post("plugin.circle.frontend.circle-invitation.release",i).then((function(t){e.isRirst=!0,1===t.result?(e.$dialog.alert({message:t.msg}),localStorage.removeItem("shareVideoPath"),e.$router.push(e.fun.getUrl("circleDetails",{},{id:e.circleId,refresh:1,to_home:1,tab:"video"}))):Object(r["a"])(t.msg)}),(function(t){e.isRirst=!0}))}},uploadAudioM:function(){r["a"].loading({message:"上传中",forbidClick:!0}),this.uploadIng=!0;var e=this,t=this.fun.getRealUrl("plugin.circle.frontend.upload.uploadAudio",{}),i=new FormData;i.append("file",this.realVideo),axios.post(t,i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){if(r["a"].clear(),1==t.data.result){e.videoPath=t.data.data.audio,e.videoUrl=t.data.data.audio_url,e.file=t.data.data.file_name,e.uploadIng=!1;var i={title:e.title,videoPath:e.videoPath,videoUrl:t.data.data.audio_url,videoCoverPath:e.videoCoverPath,videoCover:e.videoCover,file_name:e.file};localStorage.setItem("shareVideoPath",JSON.stringify(i))}else Object(r["a"])({message:t.data.msg,duration:2500}),document.getElementById("file").value=null,e.videoUrl=null,e.uploadIng=!1,e.videoUrl=null,e.videoCover=null,e.videoCoverPath=null,e.images=[],e.showUploadBtn=!1,document.getElementById("file").value=null})).catch((function(t){r["a"].clear(),e.uploadIng=!1,document.getElementById("file").value=null,e.videoUrl=null,Object(r["a"])("error:".concat(t))}))},uploadImageM:function(){if(!this.ManualUploadImg){var e=this,t=this.fun.getRealUrl("upload.uploadPic",{}),i=new FormData;i.append("file",this.dataURItoBlob(this.coverUrl)),axios.post(t,i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){1==t.data.result?(e.videoCover=t.data.data.img_url,e.videoCoverPath=t.data.data.img,e.images[0]=e.videoCover):(e.videoCover=null,e.videoCoverPath=null,Object(r["a"])(t.data.msg))})).catch((function(t){e.videoCover=null,e.videoCoverPath=null,Object(r["a"])(t)}))}},dataURItoBlob:function(e){for(var t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(t.length),a=new Uint8Array(o),r=0;r<t.length;r++)a[r]=t.charCodeAt(r);return new Blob([o],{type:i})},removeImg:function(){this.videoCover=null,this.images=[]},onRead:function(e,t){r["a"].loading({message:"上传中",forbidClick:!0});var i=new FormData;!0===t?i.append("file",e):i.append("file",e.file);var o=this,a=this.fun.getRealUrl("upload.uploadPic",{});axios.post(a,i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var t=e.data;o.ManualUploadImg=!0,1===t.result?(r["a"].clear(),o.videoCover=e.data.data.img_url,o.videoCoverPath=e.data.data.img,o.images[0]=o.videoCover):Object(r["a"])(t.msg)})).catch((function(e){}))},onPhotoSize:function(e){this.imgPreview(e.file,1)},imgPreview:function(e,t){var i=this;if(e&&window.FileReader&&/^image/.test(e.type)){var o=new FileReader;o.readAsDataURL(e),o.onloadend=function(){var t=this.result,o=new Image;o.src=t,o.onload=function(){var t=this.width,a=this.height,r=400,s=400,n=t,l=a;(t>r||a>s)&&(t/a>r/s?(n=r,l=Math.round(r*(a/t))):(l=s,n=Math.round(s*(t/a))));var d=document.createElement("canvas"),c=d.getContext("2d");d.width=n,d.height=l,c.clearRect(0,0,n,l),c.drawImage(o,0,0,n,l),d.toBlob((function(e){i.onRead(e,!0)}),e.type||"image/png")}}}},getSet:function(){var e=this;$http.get("plugin.circle.frontend.circle.get-set").then((function(t){var i=t.data;e.selectGoods=Boolean(i["select_goods"])}))}},components:{}},l=n,d=l,c=(i("a807"),i("2877")),h=Object(c["a"])(d,o,a,!1,null,"6e5290b8",null);t["default"]=h.exports},"5a72":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGQ0lEQVR4Xu2bf4hUVRTHz/e6P3CJZEkiTTIy6YeEYqBRhBFSgZlkifRTiBhsc+febVs1Eh2ztC2Zd++ObDQkbGgolloJFYhFglkS9FOjaPtlf0RW7Ebsbu3unLr2VsZx5/2YnXnOyLw/Z86973w/7577zj33PhARKaVmEZHDzHMANNjfKvli5l8AbAXwjOM4/V5aEI/HpwshviSiukoWPZrvzNwthJjjOM4f+bRBKdVFRMvONfEjeph5izGm2QuAffozsgx+JKIfKhSIcMO4PgvAR8aY6/ICkFIeBzDFNfi1p6dnaldX10CFAqDW1taJw8PDh4noclfDV1rrqwMBYOaDxph5lSp+xG8ppQEQDw2AiN7XWt9U6QCUUo59uVUB/E8geAhUR0A1BKpzQHUSrL4Fqq/B8HnAqlWrJgwMDMwEIIQQ3clk8vjZzCWizAMgpXyciDYAOJV/E1G6r6+vJZ1O950NEJEBkFKuBbA+z1J0vzHmlnMWQFNT00W1tbU/Aaj1EHmX1npP1BAiGQFSygcBvOwljpm3G2MeGCuApqam8+rq6lZqrdcG6SsqAK0ANvsA2GuMWRzEaS8bpdSbRDS/r69vQjqdHvTrLxIA8Xj8NiHE2z7ObNZat/k57CN+JRG1W5tMJrO4o6Njr19/kQAgIltO+yKnmnSab8w80xjzuZ/D+f5XStml+QEiEq7NDq31vX79RQWAVqxYcWVNTc27RDQp1ylm3miMedLP2Xz/t7S0XJzJZD4DcEGWTX+QMIgM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6nUz9bGHnLoJqLLsmbG74nIrvRK/tWIW+V9zatq67MW+C3n/IBdOv9ujJkYZBScBCCl3Afg9qANSmDXX19fP6m9vb03bN9SyrEDUErNZuYPfY67hfUtrP31Wmv7nU+oqygA7B3th5PMnCSiuQG2pkM56WXMzH8T0fbGxsZYIpHIhO24aADC3rhc7KsAijEHlMvTLMSP6giQ8iiA0z6KZOZjxpjsL2E92Za6nl/Igw3cRillzyE+nZMIPW+MsadLA10VDcAqtEURIoq5al8fHBxs6+zs/CuQ+v+M/gUVORt3Mz0zrwAAAABJRU5ErkJggg=="},"7e15":function(e,t,i){var o=i("1e73c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("6b71cbb4",o,!0,{sourceMap:!1,shadowMode:!1})},a807:function(e,t,i){"use strict";i("7e15")}}]); |