bztang-admin/addons/yun_shop/static/app/js/chunk-e43bf40e.c5005f04.js

3 lines
33 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e43bf40e"],{"1da1":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));i("d3b7");function r(e,t,i,r,n,a,c){try{var o=e[a](c),s=o.value}catch(l){return void i(l)}o.done?t(s):Promise.resolve(s).then(r,n)}function n(e){return function(){var t=this,i=arguments;return new Promise((function(n,a){var c=e.apply(t,i);function o(e){r(c,n,a,o,s,"next",e)}function s(e){r(c,n,a,o,s,"throw",e)}o(void 0)}))}}},"1f0e":function(e,t,i){"use strict";i("e7e5");var r=i("d399"),n=(i("e17f"),i("2241")),a=(i("d3b7"),i("2d88"));function c(e){return new Promise((function(t,i){n["a"].confirm({title:"确定要退出圈子吗?",message:"付费圈子退出后再次入圈需缴费",beforeClose:function(n,c){if("cancel"===n)return c(),void i();var o=r["a"].loading();a["a"].quitCircle(e).then((function(e){e.data;var n=e.result,a=e.msg;if(c(),o.clear(),0==n)return i(),void Object(r["a"])(a);Object(r["a"])("退出成功"),t()}))}})}))}function o(e){var t=r["a"].loading();return new Promise((function(i,r){return a["a"].joinFreeCircle(e).then((function(e){t.clear(),1==e.result?i(e):r(e)}))}))}function s(){return new Promise((function(e,t){return a["a"].joinPayCircle().then((function(e){}))}))}t["a"]={quitCircle:c,joinFreeCircle:o,joinPayCircle:s}},"2d88":function(e,t,i){"use strict";i.d(t,"b",(function(){return u})),i.d(t,"c",(function(){return m}));var r=i("c7eb"),n=i("1da1"),a=i("1d53");function c(e,t,i){return o.apply(this,arguments)}function o(){return o=Object(n["a"])(Object(r["a"])().mark((function e(t,i,n){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a["a"].post("plugin.circle.frontend.circle-invitation.set-invitation-review",{invitation_id:t,circle_id:i,invitation_type:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function s(e){return $http.post("plugin.circle.frontend.circle.quit-circle",{circle_id:e})}function l(e){return $http.post("plugin.circle.frontend.circle.add-circle",{circle_id:e})}function d(e,t,i){return $http.post("plugin.circle.frontend.circle-pay.index",{member_id:e,pay_method:t,pay_name:i})}function u(){return f.apply(this,arguments)}function f(){return f=Object(n["a"])(Object(r["a"])().mark((function e(){var t;return Object(r["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)}))),f.apply(this,arguments)}function m(e){return p.apply(this,arguments)}function p(){return p=Object(n["a"])(Object(r["a"])().mark((function e(t){return Object(r["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:c,quitCircle:s,joinFreeCircle:l,joinPayCircle:d,getSet:u,saveEditMemberInfo:m}},4222:function(e,t,i){"use strict";i("df9e")},"43a7":function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.i,'#circleDetails .member[data-v-6de8442c]{width:100%;height:9rem;background-size:100%;border-bottom-left-radius:60% 15%;border-bottom-right-radius:60% 15%;overflow:hidden;position:relative;text-align:left}#circleDetails .member .memberUser[data-v-6de8442c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.938rem}#circleDetails .member .memberUser .face img[data-v-6de8442c]{width:3.75rem;height:3.75rem;border-radius:50%}#circleDetails .member .memberUser .userInfo[data-v-6de8442c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;color:#fff;padding-left:.5rem}#circleDetails .member .memberUser .userInfo .c1[data-v-6de8442c]{font-size:1.375rem;font-weight:700}#circleDetails .member .memberUser .userInfo .number[data-v-6de8442c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:8.522rem}#circleDetails .member .memberUser .userInfo .number .productionNum[data-v-6de8442c]{width:3.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#circleDetails .member .memberUser .userInfo .number .productionNum .numShow[data-v-6de8442c],#circleDetails .member .memberUser .userInfo .number .productionNum .tipText[data-v-6de8442c]{font-size:.875rem;font-weight:700;-webkit-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2}#circleDetails .member .memberUser .userInfo .c3[data-v-6de8442c]{font-size:.75rem;font-weight:700;color:#e1e1e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#circleDetails .member .btn[data-v-6de8442c]{position:absolute;top:2rem;right:.94rem;width:3.75rem;height:1.563rem;background-color:#3175fe;border-radius:.781rem;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:.688rem;font-weight:700;color:#fff}#circleDetails .member .iconSet[data-v-6de8442c]{position:absolute;top:.3rem;right:1.94rem;font-weight:700;color:#fff}#circleDetails .wrapper[data-v-6de8442c]{width:100%;padding:0 .9375rem;-webkit-transform:translateY(-3rem);transform:translateY(-3rem)}#circleDetails .wrapper .acticle[data-v-6de8442c]{background:#fff;border-radius:.625rem;padding-left:.813rem;padding-right:1rem;padding-top:.475rem;padding-bottom:.1rem}#circleDetails .wrapper .acticle .acticleItem[data-v-6de8442c]{margin-bottom:.319rem}#circleDetails .wrapper .acticle .acticleItem[data-v-6de8442c],#circleDetails .wrapper .acticle .acticleItem .label[data-v-6de8442c]{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}#circleDetails .wrapper .acticle .acticleItem .label[data-v-6de8442c]{width:3rem;height:1.125rem;background-color:#d6e4ff;border-radius:.125rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.688rem;font-weight:700;color:#3175fe}#circleDetails .wrapper .acticle .acticleItem .title[data-v-6de8442c]{margin-left:.375rem;color:#202020;font-size:.938rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#circleDetails .tabs[data-v-6de8442c]{margin-top:.625rem;background:#fff;border-top-left-radius:.625rem;border-top-right-radius:.625rem;padding:.863rem .969rem .5rem}#circleDetails .tabs[data-v-6de8442c],#circleDetails .tabs .tabItem[data-v-6de8442c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#circleDetails .tabs .tabItem[data-v-6de8442c]{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}#circleDetails .tabs .tabItem.active[data-v-6de8442c]{font-size:1rem;color:#3175fe;position:relative}#circleDetails .tabs .tabItem.active[data-v-6de8442c]:after{content:"";display:block;width:1.25rem;height:.188rem;background-color:#3175fe;border-radius:.094rem;position:absolute;bottom:-.4rem;left:.3rem}#circleDetails .cards[data-v-6de8442c]{padding-bottom:1.375rem}#circleDetails .card[data-v-6de8442c]:first-child{border-top-left-radius:0;border-top-right-radius:0}#circleDetails .card[data-v-6de8442c]{background-color:#fff;border-radius:.625rem;padding:.781rem .875rem 1rem .938rem;margin-bottom:.625rem;text-align:left}#circleDetails .card .userInfo[data-v-6de8442c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}#circleDetails .card .userInfo .face img[data-v-6de8442c]{width:2.5rem;height:2.5rem;border-radius:50%}#circleDetails .card .userInfo .right[data-v-6de8442c]{margin-left:.469rem;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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#circleDetails .card .userInfo .right .name[data-v-6de8442c]{font-size:.938rem;font-weight:700;color:#333}#circleDetails .card .userInfo .right .time[data-v-6de8442c]{font-size:.688rem;font-weight:700;color:#999}#circleDetails .card .opet[data-v-6de8442c]{position:absolute;right:0;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#circleDetails .card .opet .btn[data-v-6de8442c]{width:3.75rem;height:1.563rem;background-color:#3175fe;border-radius:.781rem;color:#fff;font-size:.688rem;font-weight:700;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#circleDetails .card .opet .btn[data-v-6de8442c],#circleDetails .card .opet .iconfont[data-v-6de8442c]{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}#circleDetails .card .opet .iconfont[data-v-6de8442c]{font-size:2.5rem;height:2.5rem;margin-left:1.094rem}#circleDetails .card .title[data-v-6de8442c]{font-size:1rem;font-weight:700;color:#202020;padding-top:1rem;padding-bottom:.8rem}#circleDetails .card .desc[data-v-6de8442c]{font-size:.813rem;font-weight:700;font-stretch:normal;color:#868585;padding-bottom:.8rem}#circleDetails .card .contentImg img[data-v-6de8442c]{width:100%;height:100%;border-radius:.469rem}#circleDetails .card .circleWrapper[data-v-6de8442c]{width:9.25rem;height:1.188rem;background-color:#f1f6ff;border-radius:.594rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.125rem .219rem}#circleDetails .card .circleWrapper img[data-v-6de8442c]{width:.938rem;height:.938rem;border-radius:50%}#circleDetails .card .circleWrapper .text[data-v-6de8442c]{margin-left:.29rem;font-size:.625rem;font-weight:700;color:#6d99f3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#circleDetails .card .otherInfo[data-v-6de8442c]{margin-top:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}#circleDetails .card .otherInfo .otherItem[data-v-6de8442c]{margin-left:1rem;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}#circleDetails .card .otherInfo .otherItem[data-v-6de8442c],#circleDetails .card .otherInfo .otherItem .iconfont[data-v-6de8442c]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}#circleDetails .card .otherInfo .otherItem .iconfont[data-v-6de8442c]{vertical-align:baseline;margin-right:.1rem;color:#7c7c78;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#circleDetails .card .otherInfo .otherItem .iconfont.active[data-v-6de8442c]{color:#3175fe}#circleDetails .noCircle[data-v-6de8442c]{font-size:.688rem;font-weight:700;color:#787878;text-align:center}#circleDetails .sendBtns[data-v-6de8442c]{position:fixed;left:0;right:0;bottom:1.28rem;height:2.5rem;padding:0 2.125rem;margin:0 auto;width:23.4375rem}#circleDetails .sendBtns .sendBtn[data-v-6de8442c]{height:2.5rem;background-color:#3175fe;border-radius:1.25rem;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:.938rem;color:#fff}#circleDetails .sendBtns .sendBtn.reviewing[data-v-6de8442c]{-webkit-filter:grayscale(100%);filter:grayscale(100%)}#circleDetails .postBtn[data-v-6de8442c]{position:fixed;bottom:4rem;right:1rem;width:3rem;height:3rem;-webkit-box-shadow:0 0 0 0 hsla(0,0%,74.5%,.6);box-shadow:0 0 0 0 hsla(0,0%,74.5%,.6)}@media screen and (min-width:1025px){#circleDetails .postBtn[data-v-6de8442c]{left:50%;margin-left:8.75rem;-webkit-transform:translateX(-50%);transform:translateX(-50%)}}#circleDetails .postBtn img[data-v-6de8442c]{width:3rem;height:3rem}',""]),e.exports=t},"487d":function(e,t,i){var r=i("43a7");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=i("499e").default;n("26fa5090",r,!0,{sourceMap:!1,shadowMode:!1})},9079:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.circleInfo?r("div",{attrs:{id:"circleDetails"}},[r("c-title",{attrs:{hide:!1,text:e.circleInfo.name,url:e.backUrl}}),r("div",{staticClass:"member",style:{"background-image":"url("+e.bg_img+")"}},[r("div",{staticClass:"memberUser"},[r("div",{staticClass:"face"},[r("van-image",{staticStyle:{width:"3.75rem",height:"3.75rem","border-radius":"50%"},attrs:{round:"",src:e.circle_img}})],1),r("div",{staticClass:"userInfo"},[r("div",{staticClass:"c1"},[e._v(e._s(e.name))]),r("div",{staticClass:"number"},[r("div",{staticClass:"productionNum"},[r("div",{staticClass:"tipText"},[e._v("作品")]),r("div",{staticClass:"numShow"},[e._v(e._s(e.invitation_count))])]),r("div",{staticClass:"productionNum"},[r("div",{staticClass:"tipText"},[e._v("成员")]),r("div",{staticClass:"numShow"},[e._v(e._s(e.member_count))])])]),r("div",{staticClass:"c3"},[e._v("简介:"+e._s(e.synopsis))])]),r("div",{staticClass:"btn",on:{click:function(t){return e.check(e.id)}}},[e._v("查看")]),1==e.is_master?r("i",{staticClass:"iconfont iconSet icon-fontclass-shezhi2",on:{click:function(t){return e.setting(e.id)}}}):e._e()])]),r("div",{staticClass:"wrapper"},[e.topList&&e.topList.length>0?r("div",{staticClass:"acticle"},e._l(e.topList,(function(t,i){return r("div",{key:i,staticClass:"acticleItem"},[r("div",{staticClass:"label"},[e._v("置顶")]),r("div",{staticClass:"title",on:{click:function(t){return e.toPostDetails(i,"top")}}},[e._v(e._s(t.title))])])})),0):e._e(),r("div",{staticClass:"tabs",on:{click:e.switchTabs}},[r("div",{staticClass:"tabItem",class:"attention"==e.currentShowTab?"active":"",attrs:{"data-name":"attention"}},[e._v("关注")]),r("div",{staticClass:"tabItem",class:"posts"==e.currentShowTab?"active":"",staticStyle:{"margin-left":"1.59rem"},attrs:{"data-name":"posts"}},[e._v("帖子")]),r("div",{staticClass:"tabItem",class:"video"==e.currentShowTab?"active":"",staticStyle:{"margin-left":"1.59rem"},attrs:{"data-name":"video"}},[e._v("视频")])]),r("d-list",{attrs:{finished:e.postPagination.finished,loading:e.postPagination.loading,showStatusText:e.circleInfo.is_exist||e.circlePosts.length>0},on:{load:e.loadPost}},[r("div",{staticClass:"cards"},e._l(e.circlePosts,(function(t,n){return r("div",{key:t.id,on:{click:function(t){return e.toPostDetails(n)}}},[r("post-item",{attrs:{data:t,showCircle:!1}},[r("div",{staticStyle:{display:"flex"},attrs:{slot:"operator"},slot:"operator"},[r("circle-button",{staticClass:"btn",style:{padding:"0.2rem 0.2125rem"},attrs:{border:!t.is_attention,height:"1.625rem"},on:{click:function(t){return e.attentionAuthor(n)}}},[e._v(e._s(t.is_attention?"已关注":"关注"))]),e.circleInfo.is_master?r("img",{staticStyle:{"margin-left":"0.625rem",width:"1.25rem"},attrs:{src:i("96f7")},on:{click:function(t){return t.stopPropagation(),e.displayPostActionSheet(n)}}}):e._e()],1)])],1)})),0)]),0==e.circleInfo.is_master&&0==e.is_exist?r("div",{staticClass:"noCircle"},[e._v("加入圈子查看更多帖子~")]):e._e()],1),r("div",{staticClass:"sendBtns"},[0==e.circleInfo.is_master&&0==e.is_exist||0==e.circleInfo.member_review?r("div",{staticClass:"sendBtn",class:{reviewing:0==e.circleInfo.member_review&&1==e.circleInfo.is_exist},on:{click:e.joinCircle}},[e._v(" "+e._s(e.joinQuitCircleText)+" ")]):e._e()]),r("div",{staticClass:"postBtn"},[1==e.circleInfo.is_master||1==e.circleInfo.is_posting&&1==e.circleInfo.is_exist&&1==e.circleInfo.member_review?r("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/circleDetailPost@3x.png"},on:{click:function(t){return e.compile(e.id)}}}):e._e()]),r("van-action-sheet",{attrs:{actions:e.postActionSheet,"cancel-text":"取消","close-on-click-action":""},on:{select:e.selectPostActionSheet},model:{value:e.showPostActionSheet,callback:function(t){e.showPostActionSheet=t},expression:"showPostActionSheet"}})],1):e._e()},n=[],a=(i("2cbd"),i("ab2c")),c=(i("4056"),i("44bf")),o=i("c7eb"),s=i("1da1"),l=i("2909"),d=(i("e7e5"),i("d399")),u=(i("ac1f"),i("5319"),i("c740"),i("b0c0"),i("a9e3"),i("a434"),i("94b4")),f=i("2d88"),m=i("1f0e"),p=i("0de7"),h=i("faa7"),b={data:function(){return{attentions:[],posts:[],videoPosts:[],tabsIndex:0,name:"",bg_img:"",circle_img:"",synopsis:"",is_exist:"",member_count:"",invitation_count:"",category_name:"",is_master:"",member_review:"",is_toll:"",price:"",is_review_member:"",is_posting:"",id:"",topList:"",circleInfo:null,currentShowTab:"posts",circleId:0,circlePosts:[],postPagination:{loading:!1,finished:!1,page:1},showPostActionSheet:!1,currentOperationPostIndex:null,postActionSheet:[],goods_id:"",backUrl:null}},activated:function(){if(!this.$route.query.id)return Object(d["a"])("圈子不存在"),void this.$router.go(-1);this.circleId=this.$route.query.id,this.$route.query.refresh&&(this.circlePosts=[],this.postPagination.finished=!1,this.postPagination.loading=!1,this.postPagination.page=1),this.$route.query.to_home&&(this.backUrl="circleIndex"),this.$route.query.tab&&(this.currentShowTab=this.$route.query.tab),this.loadPost()},mounted:function(){this.getData(),this.getstick()},computed:{joinQuitCircleText:function(){return this.circleInfo?this.circleInfo.is_master?"":this.circleInfo.is_exist?0==this.circleInfo.member_review?"等待圈主审核":"退出圈子":this.circleInfo.is_toll?"加入圈子(申请费用¥".concat(this.circleInfo.price,""):"加入圈子":"加入圈子"}},methods:{getstick:function(){var e=this,t={circle_id:this.$route.query.id,is_top:1};$http.get("plugin.circle.frontend.circle-invitation.get-circle-invitation-list",t,"").then((function(t){1!==t.result?Object(d["a"])(t.msg):e.topList=t.data.data}),(function(e){Object(d["a"])(e)})).catch((function(e){}))},joinCircle:function(){var e=this;this.circleInfo.is_exist||(this.circleInfo.is_toll?this.payAddCircle():m["a"].joinFreeCircle(this.circleInfo.id).then((function(t){Object(d["a"])(t.msg),e.is_exist=1,e.circleInfo.is_exist=1,e.getData()})).catch((function(e){Object(d["a"])(e.msg)})))},payAddCircle:function(){var e=this;$http.get("plugin.circle.frontend.circle-pay.add-circle-order",{circle_id:this.circleInfo.id},"").then((function(t){var i=t.data,r=t.result,n=t.msg;0===r&&Object(d["a"])(n),e.goods_id=i.goods_id,e.createOrder()}))},createOrder:function(){var e=this;$http.post("plugin.circle.api.create.index",{circle_id:this.circleInfo.id,goods:[{goods_id:this.goods_id,total:1,option_id:0}]},"").then((function(t){var i=t.data,r=t.result,n=t.msg;0!==r?e.$router.replace(e.fun.getUrl("orderpay",{status:"2",order_ids:i.order_ids})):Object(d["a"])(n)}))},compile:function(e){var t=this.is_exist;(1==t||this.circleInfo.is_master)&&this.$router.push(this.fun.getUrl("circleSelect",{},{id:e}))},toPostDetails:function(e,t){var i=null,r=null,n=null;switch("top"==t?(r=this.topList[e],n=this.topList.findIndex((function(e,t,i){return e.id===r.id}))):(r=this.circlePosts[e],n=this.circlePosts.findIndex((function(e,t,i){return e.id===r.id}))),r.status){case 1:i=this.fun.getUrl("topicDetails",{},{pid:r.id});break;case 2:n=Math.ceil((n+1)/15),i=this.fun.getUrl("circleVideodetail",{},{circle_invitation_id:r.id,from:"circle",page:n,circle_id:r.circle_id,vid:r.id});break}this.$router.push(i)},setting:function(e){this.$router.push(this.fun.getUrl("circleSetting",{},{id:e}))},check:function(e){this.$router.push(this.fun.getUrl("circleIntroduce",{},{id:e}))},getData:function(){var e=this;$http.get("plugin.circle.frontend.circle.get-circle",{circle_id:this.$route.query.id},"").then((function(t){1!==t.result?Object(d["a"])(t.msg):(e.fun.setWXTitle(t.data.name),e.circleInfo=t.data,e.name=t.data.name,e.bg_img=t.data.bg_img,e.circle_img=t.data.circle_img,e.synopsis=t.data.synopsis,e.is_exist=t.data.is_exist,e.member_count=t.data.member,e.invitation_count=t.data.invitation,e.category_name=t.data.category_name,e.price=t.data.price,e.is_posting=t.data.is_posting,e.is_master=t.data.is_master,e.member_review=t.data.member_review,e.is_toll=t.data.is_toll,e.price=t.data.price,e.is_review_member=t.data.is_review_member,e.member_review=t.data.member_review,e.id=t.data.id)}),(function(e){Object(d["a"])(e)})).catch((function(e){}))},getAttData:function(e,t){var i=this;this.tabsIndex=e;var r="",n={};0==t?(r="plugin.circle.frontend.circle-invitation.get-circle-invitation-list",n={circle_id:this.$route.query.id,is_attention:1}):(r="plugin.circle.frontend.circle-invitation.get-circle-invitation-list",n={circle_id:this.$route.query.id,invitation_status:t}),$http.get(r,n).then((function(e){1!==e.result?Object(d["a"])(e.msg):i.posts=e.data.data}),(function(e){Object(d["a"])(e)})).catch((function(e){}))},switchTabs:function(e){var t=e.target.dataset;t.name&&(this.currentShowTab=t.name,this.circlePosts=[],this.postPagination={loading:!1,finished:!1,page:1},this.loadPost())},loadPost:function(){var e=this;if(!this.postPagination.finished&&!this.postPagination.loading){this.postPagination.loading=!0;var t={circle_id:this.circleId};switch(this.currentShowTab){case"attention":t["is_attention"]=1;break;case"posts":t["invitation_status"]=1;break;case"video":t["invitation_status"]=2;break}t["page"]=this.postPagination.page,$http.get("plugin.circle.frontend.circle-invitation.get-circle-invitation-list",t).then((function(t){var i,r=t.data,n=t.result,a=t.msg;0!=n?((0===r.total||r.data.length<r.per_page||r.last_page==r.current_page)&&(e.postPagination.finished=!0),(i=e.circlePosts).push.apply(i,Object(l["a"])(r.data)),e.postPagination.page++,e.postPagination.loading=!1):Object(d["a"])(a)}))}},attentionAuthor:function(e){var t=this.circlePosts[e];if(t["is_current_member"])Object(d["a"])("无法关注自己");else{var i="plugin.circle.frontend.circle-member.cancel-attention";0==t["is_attention"]&&(i="plugin.circle.frontend.circle-member.attention-member"),$http.post(i,{attention_member_id:t["member_id"]}).then((function(e){e.result&&(t["is_attention"]=Number(!t["is_attention"])),Object(d["a"])(e.msg)}))}},selectPostActionSheet:function(e){var t=this;return Object(s["a"])(Object(o["a"])().mark((function i(){var r,n,a,c,s,l;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:r=e.key,n=null,i.t0=r,i.next="top"===i.t0?5:"recommend"===i.t0?7:"displayorder"===i.t0?9:"delete"===i.t0?11:13;break;case 5:return n="is_top",i.abrupt("break",13);case 7:return n="is_recommend",i.abrupt("break",13);case 9:return n="is_show",i.abrupt("break",13);case 11:return t.deletePost(),i.abrupt("break",13);case 13:if(null===n){i.next=22;break}return a=t.circlePosts[t.currentOperationPostIndex],i.next=17,f["a"].postOperation(a.id,a.circle_id,n);case 17:c=i.sent,s=c.result,l=c.msg,1==s&&(l="操作成功",a[n]=!a[n]),Object(d["a"])(l);case 22:case"end":return i.stop()}}),i)})))()},deletePost:function(){var e=this,t=this.circlePosts[this.currentOperationPostIndex];$http.post("plugin.circle.frontend.circle-invitation.del",{invitation_id:t.id}).then((function(t){var i=t.result,r=t.msg;1==i&&e.circlePosts.splice(e.currentOperationPostIndex,1),Object(d["a"])(r)}))},accessMember:function(e){this.$router.push(this.fun.getUrl("circleMyRelease",{},{member_id:e}))},displayPostActionSheet:function(e){this.showPostActionSheet=!0,this.currentOperationPostIndex=e,this.computedPostActionSheet(e)},computedPostActionSheet:function(e){if(this.circleInfo&&this.circleInfo.is_master){var t=this.circlePosts[e],i=[{name:"推荐",key:"recommend"},{name:"置顶",key:"top"},{name:"未加入可见",key:"displayorder"},{name:"删除",key:"delete"}];t.is_recommend&&(i[0]["name"]="取消推荐"),t.is_top&&(i[1]["name"]="取消置顶"),t.is_show&&(i[2]["name"]="取消未加入可见"),this.postActionSheet=i}}},components:{DList:u["a"],PostItem:p["a"],CircleButton:h["a"],VanImage:c["a"],VanActionSheet:a["a"]}},g=b,v=g,w=(i("4222"),i("f11a"),i("2877")),y=Object(w["a"])(v,r,n,!1,null,"6de8442c",null);t["default"]=y.exports},"92d1":function(e,t,i){var r=i("24fb");t=r(!1),t.push([e.i,".post-item[data-v-6de8442c]{margin-bottom:1.25rem}",""]),e.exports=t},"96f7":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFREE0NDBENEMzMTQxMUU5QjA3MUU5QTA5N0MyRkY2OSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFREE0NDBENUMzMTQxMUU5QjA3MUU5QTA5N0MyRkY2OSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkVEQTQ0MEQyQzMxNDExRTlCMDcxRTlBMDk3QzJGRjY5IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkVEQTQ0MEQzQzMxNDExRTlCMDcxRTlBMDk3QzJGRjY5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+JUg0NwAAAQFJREFUeNrsmM8KgkAQxrXO3qKiV1HIi0SefQkvPY1B+C71AN07pHjuHbpsszCBhLN/Lpn0ffCB7O7szA+cAQ2VUsGUNQsmLgAAAAAAAAAAAAAAAAAAAAAAwGjS38R993QgX8kN+UzOPK5dkivyjV3xmqsyztlwDaVYrwBQ67MDLhySb8jdQKxeWznEF0Lu2hVgK1yg/SBHlgJqQ/zJEhtxDik+/qx3qAdyQ4K1vsSwPyfvDPt7PiMp5hyScpcmfk69iZMffoWSMZv4/q0mfqvkEdaSL+TUc4wee2NUPy884lPO2drGaIh/owAAAAAAAAAAAAAAAAAAAAAAgD8FeAkwAEIu+S53y3ZJAAAAAElFTkSuQmCC"},c7eb:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("b636"),i("944a"),i("0c47"),i("23dc"),i("d9e2"),i("3410"),i("159b"),i("b0c0"),i("131a"),i("fb6a");var r=i("53ca");function n(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
n=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,i){return e[t]=i}}function d(e,t,i,r){var n=t&&t.prototype instanceof m?t:m,a=Object.create(n.prototype),c=new I(r||[]);return a._invoke=function(e,t,i){var r="suspendedStart";return function(n,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw a;return j()}for(i.method=n,i.arg=a;;){var c=i.delegate;if(c){var o=k(c,i);if(o){if(o===f)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var s=u(e,t,i);if("normal"===s.type){if(r=i.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:i.done}}"throw"===s.type&&(r="completed",i.method="throw",i.arg=s.arg)}}}(e,i,c),a}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(P){return{type:"throw",arg:P}}}e.wrap=d;var f={};function m(){}function p(){}function h(){}var b={};l(b,c,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(D([])));v&&v!==t&&i.call(v,c)&&(b=v);var w=h.prototype=m.prototype=Object.create(b);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,c,o,s){var l=u(e[a],e,c);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==Object(r["a"])(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(f).then((function(e){d.value=e,o(d)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var a;this._invoke=function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return a=a?a.then(r,r):r()}}function k(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=u(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var n=r.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=h,l(w,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},y(x.prototype),l(x.prototype,o,(function(){return this})),e.AsyncIterator=x,e.async=function(t,i,r,n,a){void 0===a&&(a=Promise);var c=new x(d(t,i,r,n),a);return e.isGeneratorFunction(i)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},y(w),l(w,s,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var r=t.pop();if(r in e)return i.value=r,i.done=!1,i}return i.done=!0,i}},e.values=D,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(i,r){return c.type="throw",c.arg=e,t.next=i,r&&(t.method="next",t.arg=void 0),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var o=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(o&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),A(i),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var n=r.arg;A(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:D(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),f}},e}},df9e:function(e,t,i){var r=i("92d1");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var n=i("499e").default;n("49bf2e64",r,!0,{sourceMap:!1,shadowMode:!1})},f11a:function(e,t,i){"use strict";i("487d")}}]);