(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4520386e"],{"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("d3b7");function i(t,e,r,i,n,a,o){try{var c=t[a](o),s=c.value}catch(l){return void r(l)}c.done?e(s):Promise.resolve(s).then(i,n)}function n(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function c(t){i(o,n,a,c,s,"next",t)}function s(t){i(o,n,a,c,s,"throw",t)}c(void 0)}))}}},2698:function(t,e,r){var i=r("70b7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("499e").default;n("530b5158",i,!0,{sourceMap:!1,shadowMode:!1})},"2d88":function(t,e,r){"use strict";r.d(e,"b",(function(){return d})),r.d(e,"c",(function(){return f}));var i=r("c7eb"),n=r("1da1"),a=r("1d53");function o(t,e,r){return c.apply(this,arguments)}function c(){return c=Object(n["a"])(Object(i["a"])().mark((function t(e,r,n){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,a["a"].post("plugin.circle.frontend.circle-invitation.set-invitation-review",{invitation_id:e,circle_id:r,invitation_type:n});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),c.apply(this,arguments)}function s(t){return $http.post("plugin.circle.frontend.circle.quit-circle",{circle_id:t})}function l(t){return $http.post("plugin.circle.frontend.circle.add-circle",{circle_id:t})}function u(t,e,r){return $http.post("plugin.circle.frontend.circle-pay.index",{member_id:t,pay_method:e,pay_name:r})}function d(){return p.apply(this,arguments)}function p(){return p=Object(n["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,$http.get("plugin.circle.frontend.circle.get-set").then((function(t){return 1==t.result?t.data:t}),(function(t){}));case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t)}))),p.apply(this,arguments)}function f(t){return h.apply(this,arguments)}function h(){return h=Object(n["a"])(Object(i["a"])().mark((function t(e){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,$http.post("plugin.circle.frontend.circle-member.edit-member-info",e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),h.apply(this,arguments)}e["a"]={postOperation:o,quitCircle:s,joinFreeCircle:l,joinPayCircle:u,getSet:d,saveEditMemberInfo:f}},"52e2":function(t,e,r){var i=r("24fb");e=i(!1),e.push([t.i,'#circleMyRelease[data-v-6c0e8592]{position:relative}#circleMyRelease .member[data-v-6c0e8592]{width:100%;height:9rem;background-size:100%;border-bottom-left-radius:60% 15%;border-bottom-right-radius:60% 15%;overflow:hidden;position:relative}#circleMyRelease .member[data-v-6c0e8592] .backUpload{position:absolute;top:1.34rem;right:.94rem;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.63rem;color:#fff;width:5rem;height:1.344rem;border-radius:.125rem;border:.031rem solid #fff}#circleMyRelease .member[data-v-6c0e8592] .backUpload .van-uploader__wrapper,#circleMyRelease .member[data-v-6c0e8592] .backUpload .van-uploader__wrapper .van-uploader__input-wrapper{height:100%}#circleMyRelease .member[data-v-6c0e8592] .backUpload .van-uploader__wrapper .van-uploader__input-wrapper button{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;height:100%;padding:0;-webkit-transform:scale(.8);transform:scale(.8);margin:0;background:none;border:none;font-size:.125rem;color:#fff}#circleMyRelease .member[data-v-6c0e8592] .backUpload .van-uploader__wrapper .van-uploader__input-wrapper button .van-button__content{width:100%}#circleMyRelease .member[data-v-6c0e8592] .backUpload .van-uploader__preview{display:none}#circleMyRelease .member .upimg[data-v-6c0e8592]{position:absolute;top:1.34rem;right:.94rem;width:4.25rem;height:1.34rem;border-radius:.13rem;border:.05rem solid #fff;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.63rem;color:#fff}#circleMyRelease .member .upimg i[data-v-6c0e8592]{font-size:.63rem;margin-top:.0625rem}#circleMyRelease .wrapper[data-v-6c0e8592]{position:absolute;top:5.5rem;width:100%;padding:0 .9375rem}#circleMyRelease .tabs[data-v-6c0e8592]{margin-top:.625rem;background:#fff;border-top-left-radius:.625rem;border-top-right-radius:.625rem;padding:.863rem .969rem .5rem}#circleMyRelease .tabs[data-v-6c0e8592],#circleMyRelease .tabs[data-v-6c0e8592] .tabItem{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#circleMyRelease .tabs[data-v-6c0e8592] .tabItem{font-size:.813rem;font-weight:700;color:#666;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}#circleMyRelease .tabs[data-v-6c0e8592] .tabItem.active{font-size:1rem;color:#3175fe;position:relative}#circleMyRelease .tabs[data-v-6c0e8592] .tabItem.active:after{content:"";display:block;width:1.25rem;height:.188rem;background-color:#3175fe;border-radius:.094rem;position:absolute;bottom:-.4rem;left:.3rem}',""]),t.exports=e},"6c1a":function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"circleMyRelease"}},[r("c-title",{attrs:{hide:!1,text:"我的发布"}}),r("div",{staticClass:"member",style:{"background-image":"url("+t.bg_img+")"}},[t.visitor?t._e():r("van-uploader",{staticClass:"backUpload",attrs:{"after-read":t.onRead(!1)}},[r("van-button",{staticStyle:{"font-size":"0.75rem"},attrs:{icon:"plus"}},[t._v("上传背景")])],1)],1),r("div",{staticClass:"main-container"},[r("div",{staticClass:"header"},[r("div",{staticClass:"header-user"},[r("div",[r("div",{staticClass:"header-user-nickname"},[t._v(t._s(t.name))]),r("div",{staticClass:"header-user-signature"},[t._v(" "+t._s(""!=t.autograph?t.autograph:"个性签名")+" "),t.visitor?t._e():r("i",{staticClass:"iconfont icon-fontclass-bianji",on:{click:t.showEditSignaturePopup}})])]),r("van-image",{attrs:{width:"3.75rem",height:"3.75rem",round:"",src:t.header_img}})],1),r("ul",{staticClass:"header-statistics"},[r("li",{staticClass:"header-statistics-item"},[r("div",{staticClass:"header-statistics-count"},[t._v(t._s(t.invitation_count))]),r("div",{staticClass:"header-statistics-title"},[t._v("作品")])]),r("li",{staticClass:"header-statistics-item"},[r("div",{staticClass:"header-statistics-count"},[t._v(t._s(t.like_count))]),r("div",{staticClass:"header-statistics-title"},[t._v("点赞")])])])]),r("div",{staticClass:"tabs"},[r("div",{class:{tabItem:!0,active:"post"==t.currentShowType},on:{click:function(e){return t.switchPost("post")}}},[t._v("帖子")]),r("div",{class:{tabItem:!0,active:"video"==t.currentShowType},staticStyle:{"margin-left":"1.59rem"},on:{click:function(e){return t.switchPost("video")}}},[t._v("视频")])]),r("div",{staticClass:"post-list"},[r("d-list",{attrs:{finished:t.postPagination.finished,loading:t.postPagination.loading},on:{load:t.loadMorePost}},t._l(t.posts,(function(e,i){return r("div",{key:e.id,on:{click:function(e){return t.viewPost(i)}}},[r("post-item",{staticClass:"post-item",attrs:{data:e}},[t.visitor?t._e():r("div",{staticStyle:{"text-align":"right"},attrs:{slot:"operator"},slot:"operator"},[r("i",{staticClass:"iconfont icon-fontclass-tiezishezhi",on:{click:function(e){return e.stopPropagation(),t.displayPostActions(i)}}})])])],1)})),0)],1)]),r("van-action-sheet",{attrs:{actions:t.postActions,"cancel-text":"取消","close-on-click-action":""},on:{select:t.selectActionSheet,cancel:function(e){t.currentActionPostIndex=null}},model:{value:t.showPostActions,callback:function(e){t.showPostActions=e},expression:"showPostActions"}}),r("van-dialog",{attrs:{title:"修改个性签名","show-cancel-button":""},on:{confirm:t.saveSignature},model:{value:t.displayEditSignaturePopup,callback:function(e){t.displayEditSignaturePopup=e},expression:"displayEditSignaturePopup"}},[r("van-field",{attrs:{placeholder:"请输入签名内容",name:"content"},model:{value:t.formSignatureContent,callback:function(e){t.formSignatureContent=e},expression:"formSignatureContent"}})],1)],1)},n=[],a=(r("be7f"),r("565f")),o=(r("38d5"),r("772a")),c=(r("8a58"),r("e41f")),s=(r("2cbd"),r("ab2c")),l=(r("4056"),r("44bf")),u=r("c7eb"),d=r("1da1"),p=r("2909"),f=(r("e7e5"),r("d399")),h=(r("b0c0"),r("ac1f"),r("00b4"),r("a434"),r("c740"),r("6968")),m=r("94b4"),v=r("0de7"),g=r("2d88"),b={data:function(){return{memberId:null,bg_img:"",header_img:"",autograph:"",invitation_count:"",like_count:"",name:"",photosize:3145728,postPagination:{page:1,loading:!1,finished:!1},currentShowType:"post",posts:[],visitor:!1,showPostActions:!1,currentActionPostIndex:null,displayEditSignaturePopup:!1,formSignatureContent:""}},activated:function(){this.$route.query.member_id&&(this.memberId=this.$route.query.member_id,this.visitor=!0),this.getData(),this.loadMorePost()},computed:{postActions:function(){return"post"===this.currentShowType?[{name:"修改",key:"edit"},{name:"删除",key:"delete"}]:[{name:"删除",key:"delete"}]}},methods:{getData:function(){var t=this,e={};this.visitor&&(e["member_id"]=this.memberId),$http.get("plugin.circle.frontend.circle-member.my-invitation",e,"").then((function(e){1!==e.result?Object(f["a"])(e.msg):(e.data.bg_img&&(t.bg_img=e.data.bg_img),t.header_img=e.data.header_img,t.autograph=e.data.autograph,t.invitation_count=e.data.invitation,t.like_count=e.data.like_count,t.name=e.data.name)}),(function(t){Object(f["a"])(t)})).catch((function(t){}))},switchPost:function(t){this.posts=[],this.currentShowType=t,this.postPagination={page:1,loading:!1,finished:!1},this.loadMorePost()},onRead:function(){var t=this;return function(e){var r=new FormData;r.append("file",e.file);var i=t.fun.getRealUrl("upload.uploadPic",{}),n=f["a"].loading();axios.post(i,r,{headers:{"Content-Type":"multipart/form-data"}}).then((function(r){var i=new FileReader;i.readAsDataURL(e.file),i.onloadend=function(e){var i=e.target.result;$http.post("plugin.circle.frontend.circle-member.edit-member-info",{bg_img:r.data.data.img_url}).then((function(e){e.data;var r=e.result,a=e.msg;n.clear(),0!=r?(Object(f["a"])("更换成功"),t.bg_img=i):Object(f["a"])(a)}))}}))}},onphotosize:function(t){this.imgPreview(t.file,1)},imgPreview:function(t,e){var r=this;if(t&&window.FileReader&&/^image/.test(t.type)){var i=new FileReader;i.readAsDataURL(t),i.onloadend=function(){var e=this.result,i=new Image;i.src=e,i.onload=function(){var e=this.width,n=this.height,a=400,o=400,c=e,s=n;(e>a||n>o)&&(e/n>a/o?(c=a,s=Math.round(a*(n/e))):(s=o,c=Math.round(o*(e/n)))),canvas.width=c,canvas.height=s,context.clearRect(0,0,c,s),context.drawImage(i,0,0,c,s),canvas.toBlob((function(t){r.onRead(t,!0)}),t.type||"image/png")}}}},loadMorePost:function(){var t=this;if(!this.postPagination.finished&&!this.postPagination.loading){this.postPagination.loading=!0;var e="post"===this.currentShowType?1:2,r={invitation_status:e};this.visitor&&(r["member_id"]=this.memberId),$http.get("plugin.circle.frontend.circle-invitation.get-my-invitation-list",r).then((function(e){var r,i=e.data,n=e.result,a=e.msg;0!==n?((i.last_page===i.current_page||i.data.length=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var n=i.arg;P(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}},ca52:function(t,e,r){var i=r("52e2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("499e").default;n("76b08bc8",i,!0,{sourceMap:!1,shadowMode:!1})},feae:function(t,e,r){"use strict";r("2698")}}]);