(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/mine"],{"02b9":function(t,e,n){"use strict";n.r(e);var o=n("3415"),i=n.n(o);for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},"20e5":function(t,e,n){"use strict";(function(t){n("39a3");o(n("66fd"));var e=o(n("7a95"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"2a94":function(t,e,n){},3415:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(){Promise.all([n.e("common/vendor"),n.e("components/TabBar/TabBar")]).then(function(){return resolve(n("a31d"))}.bind(null,n)).catch(n.oe)},i=function(){n.e("components/Popup/Popup").then(function(){return resolve(n("5643"))}.bind(null,n)).catch(n.oe)},s=function(){n.e("components/Popup/VipPopup").then(function(){return resolve(n("82d5"))}.bind(null,n)).catch(n.oe)},a={components:{TabBar:o,Popup:i,VipPopup:s},data:function(){return{scrollHeight:0,topNavAlpha:0,assetsUrl:this.$util.assetsUrl,defaulHead:"".concat(this.$util.assetsUrl,"default-head.png"),startTime:0,startPosition:0,endPosition:0,tabIndex:2,tabs:[{name:"异性访客",num:0,dotnum:0,path:"/pages/mine/guest?pagetype=VisitForMe&name=异性访客"},{name:"喜欢我的",num:0,dotnum:0,path:"/pages/mine/guest?pagetype=FavsForMe&name=喜欢我的"},{name:"我喜欢的",num:0,dotnum:0,path:"/pages/mine/guest?pagetype=MyFavs&name=我喜欢的"},{name:"我看过的",num:0,dotnum:0,path:"/pages/mine/guest?pagetype=MyVisit&name=我看过的"}],cards:[{title:"认证中心",tip:"提升人气秘密",bgImg:"mine-star.png",class:"card2",path:"/pages/auth/auth"},{title:"我的钱包",tip:"充糖果、看收益",bgImg:"mine-money.png",class:"card3",path:"/pages/wallet/wallet"}],currentPic:null,currentIndex:0,pics:[],cover:{url:"",cate:"image",isFullScreen:!1},popup:{content1:"",content2:"",tip1:"",tip2:"",btntext:""},vipPopupIndex:-1,onshowIsNot:!1}},computed:{statusBarHeight:function(){return this.$store.state.statusBarHeight},topbarOffsetHeight:function(){return this.$store.state.topbarOffsetHeight},platform:function(){return this.$store.state.platform},userInfo:function(){return this.$store.state.userInfo||{}}},onLoad:function(){this.cards[1].path="/pages/wallet/wallet"},onShow:function(){this.computedScollviewHeight(),t.getStorageSync("token")&&(this.onshowIsNot||(this.getMineData(),this.getMineDetail(),this.getPkgVideo()))},onShareAppMessage:function(){return{title:"糖果公园",path:"/pages/login/login?share=".concat(this.userInfo.inviteCode)}},methods:{computedScollviewHeight:function(){var e=this.$store.state.tabbarHeight/2,n=t.getSystemInfoSync();this.scrollHeight=n.windowHeight-e},toCardsPath:function(e){if(!t.getStorageSync("token"))return this.popup={content1:"您还未登录",content2:"该功能登录后才能使用",tip1:"",tip2:"",btntext:"去登录"},void this.$refs.loginpopup.open();switch(e){case"/pages/auth/auth":return this.popup={content1:"进行认证流程需给客服回复关键词",content2:"「真人认证」",tip1:"",tip2:"",btntext:"联系客服去认证"},void this.$refs.popup.open();case"/pages/wallet/wallet":return this.popup={content1:"查看钱包和提现需给客服回复关键词",content2:"「钱包」",tip1:"",tip2:"",btntext:"联系客服查看"},void this.$refs.popup.open()}},closePopup:function(){this.$refs.popup.close()},closeLoginPopup:function(){this.$refs.loginpopup.close()},closeVipPopup:function(){this.vipPopupIndex=-1,this.$refs.vippopup.close()},toEditVideo:function(){if(!t.getStorageSync("token"))return this.popup={content1:"您还未登录",content2:"该功能登录后才能使用",tip1:"",tip2:"",btntext:"去登录"},void this.$refs.loginpopup.open();t.navigateTo({url:"/pagesSub/faceVideo/faceVideo"})},toLogin:function(){t.getStorageSync("token")||t.reLaunch({url:"/pages/login/login"})},toService:function(){if(!t.getStorageSync("token"))return this.popup={content1:"您还未登录",content2:"该功能登录后才能使用",tip1:"",tip2:"",btntext:"去登录"},void this.$refs.loginpopup.open();this.$refs.popup.close(),t.openCustomerServiceChat({extInfo:{url:"https://work.weixin.qq.com/kfid/kfca1b21d2f7e8a18e9"},corpId:"wwa8f2a0d8a6dc0950",fail:function(t){console.log(t),wx.showToast({title:"客服联系失败",icon:"none"})}})},toSetting:function(){if(!t.getStorageSync("token"))return this.popup={content1:"您还未登录",content2:"该功能登录后才能使用",tip1:"",tip2:"",btntext:"去登录"},void this.$refs.loginpopup.open();t.navigateTo({url:"/pagesSub/setting/setting"})},handleScroll:function(t){this.topNavAlpha=t.detail.scrollTop/250},toAlbum:function(){if(!t.getStorageSync("token"))return this.popup={content1:"您还未登录",content2:"该功能登录后才能使用",tip1:"",tip2:"",btntext:"去登录"},void this.$refs.loginpopup.open();t.navigateTo({url:"/pages/mine/album"})},preview:function(){var e=this,n=[],o={};console.log(this.pics),this.onshowIsNot=!0;for(var i=0;i10){this.endPosition=t.changedTouches[0].clientY;var n=this.endPosition-this.startPosition>0?"toBottom":"toTop";this.cover.isFullScreen="toBottom"===n}},videoAction:function(){this.cover.isFullScreen&&(this.cover.isFullScreen=!1)},getMineData:function(){var t=this;this.$api.public.mine({}).then((function(e){t.tabs[0].dotnum=e.data.vmb,t.tabs[0].num=e.data.vme,t.tabs[1].dotnum=e.data.fmb,t.tabs[1].num=e.data.fm,t.tabs[2].num=e.data.fv,t.tabs[3].num=e.data.vbm}))},getMineDetail:function(){var e=this,n=JSON.parse(t.getStorageSync("user"));this.$api.public.mineDetail({getAlbum:!0,completeUser:n}).then((function(n){e.$store.commit("setUserInfo",n.data),t.setStorageSync("userInfo",JSON.stringify(n.data)),e.pics=e.userInfo.medias,e.currentPic=e.userInfo.medias[0]}))},getPkgVideo:function(){var e=this,n=JSON.parse(t.getStorageSync("user"));this.$api.public.videoProcess({completeUser:n,pageHomeUserId:n.id,personalPageHomeVideoOperateEnum:"NONE"}).then((function(t){if("Succ"===t.status&&t.data.personalPageHomeVideoUrl)return e.cover.url=t.data.personalPageHomeVideoUrl,void(e.cover.cate="video");e.userInfo.bkg&&-1!==e.userInfo.bkg.indexOf(".mp4")?(e.cover.cate="video",e.cover.url=e.userInfo.bkg):(e.cover.cate="img",e.cover.url=e.userInfo.bkg)}))},picItemClick:function(t){this.currentIndex=t,this.currentPic=this.pics[t],this.currentPic.height=this.currentPic.h/(this.currentPic.w/343)}}};e.default=a}).call(this,n("543d")["default"])},"5fab":function(t,e,n){"use strict";var o=n("2a94"),i=n.n(o);i.a},"60f0":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o}));var o={TabBar:function(){return Promise.all([n.e("common/vendor"),n.e("components/TabBar/TabBar")]).then(n.bind(null,"a31d"))},uniPopup:function(){return n.e("node-modules/@dcloudio/uni-ui/lib/uni-popup/uni-popup").then(n.bind(null,"8eb5"))},Popup:function(){return n.e("components/Popup/Popup").then(n.bind(null,"5643"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.scrollHeight>0&&!t.cover.isFullScreen&&"Male"===t.userInfo.sex&&t.userInfo.vip?t.userInfo.memExpire.split(" "):null);t.$mp.data=Object.assign({},{$root:{g0:n}})},s=[]},"7a95":function(t,e,n){"use strict";n.r(e);var o=n("60f0"),i=n("02b9");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("5fab");var a,u=n("f0c5"),p=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"28b3f28f",null,!1,o["a"],a);e["default"]=p.exports}},[["20e5","common/runtime","common/vendor"]]]);