(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/annex/vip_paid_rights/index"],{"0111":function(t,n,e){"use strict";(function(t,n){var o=e("47a9");e("f076");o(e("3240"));var i=o(e("54ac"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"54ac":function(t,n,e){"use strict";e.r(n);var o=e("bba7"),i=e("ab25");for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e("fae6");var c=e("828b"),a=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"3a2a8c65",null,!1,o["a"],void 0);n["default"]=a.exports},"7a5b":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("92f9"),i={components:{NavBar:function(){e.e("components/NavBar").then(function(){return resolve(e("a7d8"))}.bind(null,e)).catch(e.oe)}},data:function(){return{iconColor:"#FFFFFF",isScrolling:!1,memberRights:[],currentIndex:0,contentScrollTop:0,sectionTops:[],navScrollLeft:0,scrollWithAnimation:!0,isFeatureClosed:!1}},onLoad:function(){this.memberCard()},methods:{memberCard:function(){var n=this;t.showLoading({title:"正在加载…"}),(0,o.memberCard)().then((function(e){t.hideLoading();var o=e.data.member_rights;n.memberRights=o,n.currentIndex=0,n.$nextTick((function(){setTimeout((function(){n.measureSections()}),200)}))})).catch((function(e){t.hideLoading(),n.isPaidMemberClosedError(e)?n.redirectFeatureClosed():t.showToast({title:e,icon:"none"})}))},isPaidMemberClosedError:function(t){return-1!==String(t).indexOf("付费会员功能已关闭")},redirectFeatureClosed:function(){this.isFeatureClosed||(this.isFeatureClosed=!0,t.showToast({title:"付费会员功能已关闭",icon:"none"}),setTimeout((function(){var n=getCurrentPages();n.length>1?t.navigateBack():t.reLaunch({url:"/pages/index/index"})}),1200))},swiperChange:function(t){this.currentIndex=t.detail.current},tapRight:function(t){var n=this;this.currentIndex=t,this.setNavScroll(t),this.scrollWithAnimation=!0;var e=this.sectionTops[t]||0;if(this.contentScrollTop===e)return this.contentScrollTop=e+1,void this.$nextTick((function(){n.contentScrollTop=e}));this.contentScrollTop=e},contentScroll:function(t){var n=t.detail.scrollTop||0;if(this.sectionTops.length){for(var e=0,o=0;o<this.sectionTops.length;o++)n+24>=this.sectionTops[o]&&(e=o);e!==this.currentIndex&&(this.currentIndex=e,this.setNavScroll(e))}},setNavScroll:function(t){this.navScrollLeft=Math.max(0,148*t-60)},formatContent:function(t){return t?String(t).replace(/\n/g,"<br/>"):"暂无权益介绍~"},measureSections:function(){var n=this,e=t.createSelectorQuery().in(this);e.select(".rights-scroll").boundingClientRect(),e.selectAll(".rights-section").boundingClientRect(),e.exec((function(t){var e=t[0],o=t[1]||[];e&&o.length&&(n.sectionTops=o.map((function(t){return Math.max(0,t.top-e.top+n.contentScrollTop)})))}))}},onPageScroll:function(n){t.$emit("scroll")}};n.default=i}).call(this,e("df3c")["default"])},ab25:function(t,n,e){"use strict";e.r(n);var o=e("7a5b"),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},bba7:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.memberRights,(function(n,e){var o=t.__get_orig(n),i=t.formatContent(n.content);return{$orig:o,m0:i}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},f387:function(t,n,e){},fae6:function(t,n,e){"use strict";var o=e("f387"),i=e.n(o);i.a}},[["0111","common/runtime","common/vendor"]]]);