连云港陪玩陪聊
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chunwan/unpackage/dist/build/web/static/js/pages-users-personal-index....

1 line
22 KiB

1 month ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-personal-index"],{4672:function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("fd3c"),i("aa9c");var n=a(i("2634")),s=a(i("2fdc")),r=a(i("19bf")),o=uni.getSystemInfoSync(),d=uni.createInnerAudioContext(),u={data:function(){return{baseUrl:"",userInfo:{},clickIndex:-1,isShare:!1,isCollect:!1,isDashan:!1,isPlay:!1,isCoins:!1,title:"",isScroll:!1,isShow:!1,background:{background:"transparent"},current:0,statusBarHeight:0,list:[{name:"资料"},{name:"陪玩"},{name:"动态"}],activeStyle:{fontSize:"35rpx"},articleList:[],distance:0,sellerServiceList:[]}},onPageScroll:function(e){if(e.scrollTop<=10)this.background={background:"transparent"},this.title="";else{var t=e.scrollTop>=44?1:(e.scrollTop/44).toFixed(2);this.title=(this.userInfo.realname,this.userInfo.nickname+"主页"),this.background={background:"rgba(255,255,255,"+t+")"}}},onLoad:function(){this.statusBarHeight=o.statusBarHeight,this.baseUrl=this.$baseUrl},onShow:function(){this.getUserInfo()},methods:{userSellerServiceList:function(){var e=this;return(0,s.default)((0,n.default)().mark((function t(){var i,a,s,r;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.userSellerServiceList({userId:uni.getStorageSync("userInfo").id,sellerId:"",lat:uni.getStorageSync("jingweiInfo").latitude,lon:uni.getStorageSync("jingweiInfo").longitude});case 2:i=t.sent,a=i.code,s=i.data,r=i.msg,200==a?(e.sellerServiceList=s.serviceList,e.isShow=0==s.serviceList.length,e.distance=s.distance):uni.showToast({title:r,position:"bottom",icon:"none"});case 7:case"end":return t.stop()}}),t)})))()},userArticleList:function(){var e=this;return(0,s.default)((0,n.default)().mark((function t(){var i,a,s,r,o;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.userArticleList({userId:uni.getStorageSync("userInfo").id,limit:100,page:1});case 2:i=t.sent,a=i.code,s=i.data,r=i.msg,200==a?(o=[],s.list&&s.list.length>0&&s.list.map((function(e){e.imgurl&&(e.imgurl=e.imgurl.split(",")),o.push(e)})),e.articleList=o,e.isShow=0==s.totalCount):uni.showToast({title:r,position:"bottom",icon:"none"});case 7:case"end":return t.stop()}}),t)})))()},getUserInfo:function(){var e=this;return(0,s.default)((0,n.default)().mark((function t(){var i,a,s,r;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.findUserInfo({userId:uni.getStorageSync("userInfo").id});case 2:i=t.sent,a=i.code,s=i.data,r=i.msg,200==a?(e.userInfo=s,e.userInfo.xiangce=[],s.reserved1&&(e.userInfo.xiangce=s.reserved1.split(",")),s.home&&(e.userInfo.home=s.home.split("-")[0]+"-"+s.home.split("-")[1]),e.getDictDataByType()):uni.showToast({title:r,position:"bottom",icon:"none"});case 7:case"end":return t.stop()}}),t)})))()},getDictDataByType:function(){var e=this;return(0,s.default)((0,n.default)().mark((function t(){var i,a,s,r,o,d,u,c;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e,t.next=3,i.$api.getDictDataByType({dictType:"salary_type"});case 3:return a=t.sent,t.next=6,i.$api.getDictDataByType({dictType:"education_type"});case 6:return s=t.sent,t.next=9,i.$api.getDictDataByType({dictType:"constellation_type"});case 9:return r=t.sent,t.next=12,i.$api.getDictDataByType({dictType:"marriage_type"});case 12:return o=t.sent,t.next=15,i.$api.getDictDataByType({dictType:1==i.userInfo.sex?"sex_type_2":"sex_type_1"});case 15:d=t.sent,a.data&&a.data.length>0&&a.data.map((function(e,t){i.userInfo.annualIncome==e.dictValue&&(i.userInfo.annualIncome=e.dictLabel)})),s.data&&s.data.length>0&&s.data.map((function(e,t){i.userInfo.xueli==e.dictValue&&(i.userInfo.xueli=e.dictLabel)})),r.data&&r.data.length>0&&r.data.map((function(e,t){i.userInfo.constellation==e.dictValue&&(i.userInfo.constellation=e.dictLabel)})),o.data&&o.data.length>0&&o.data.map((function(e,t){i.userInfo.emotion==e.dictValue&&(i.userInfo.emotion=e.dictLabel)})),u="",c=[],[],d.d