|
@@ -128,7 +128,7 @@
|
|
|
<div class="tab-box flex-start">
|
|
|
<div class="tab-item" @click="tabClick(0)" >
|
|
|
<div class="tab-item-text fw700" :style="{
|
|
|
- 'font-size':`${tabIndex===0?'44rpx':'36rpx'}`,
|
|
|
+ 'font-size':`${tabIndex===0?'22px':'18px'}`,
|
|
|
'color':`${tabIndex===0?'#ffffff':''}`,
|
|
|
'font-weight':`${tabIndex===0?'#ffffff':''}`}">关于{{otherInfo.sex==='Famale'?'她':'他'}}</div>
|
|
|
</div>
|
|
@@ -139,35 +139,35 @@
|
|
|
'color':`${tabIndex===1?'#ffffff':''}`,
|
|
|
'font-weight':`${tabIndex===1?'#ffffff':''}`}">动态</div>
|
|
|
</div> -->
|
|
|
- <img :src="`${assetsUrl}friends-circle.png`" mode="aspectFill" class="tab-item-bg" :style="{'left':`${tabIndex*195+15}rpx`}" ></img>
|
|
|
+ <img :src="`${assetsUrl}friends-circle.png`" mode="aspectFill" class="tab-item-bg" :style="{'left':`${tabIndex*195+15}px`}" ></img>
|
|
|
</div>
|
|
|
<div class="cup-box flex-start">
|
|
|
<div class="cup-item flex-center" v-if="otherInfo.realMan">
|
|
|
- <img :src="`${assetsUrl}friends-real.png`" mode="aspectFit" class="cup-img" style="width: 76rpx;height: 40rpx;"></img>
|
|
|
+ <img :src="`${assetsUrl}friends-real.png`" mode="aspectFit" class="cup-img" style="width: 38px;height: 20px;"></img>
|
|
|
<div class="cup-text font24" >
|
|
|
{{otherInfo.sex==='Famale'?'她':'他'}}已完成真人认证
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="cup-item flex-center" v-if="otherInfo.vip">
|
|
|
- <img :src="`${assetsUrl}friends-vip.png`" mode="aspectFit" class="cup-img" style="width: 76rpx;height: 40rpx;"></img>
|
|
|
+ <img :src="`${assetsUrl}friends-vip.png`" mode="aspectFit" class="cup-img" style="width:38px;height: 20px;"></img>
|
|
|
<div class="cup-text font24" >
|
|
|
{{otherInfo.sex==='Famale'?'她':'他'}}是尊贵的vip用户
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- <div class="cup-item flex-center">
|
|
|
- <img :src="`${assetsUrl}user-cup.png`" mode="aspectFit" class="cup-img" style="width: 40rpx;height: 40rpx;"></img>
|
|
|
+ <img :src="`${assetsUrl}user-cup.png`" mode="aspectFit" class="cup-img" style="width: 20px;height: 20px;"></img>
|
|
|
<div class="cup-text font24">
|
|
|
重庆市魅力榜第3名
|
|
|
</div>
|
|
|
</div> -->
|
|
|
<div class="cup-item flex-center" v-if="otherInfo.goddess&&otherInfo.realMan">
|
|
|
- <img :src="`${assetsUrl}user-charm.png`" mode="aspectFit" class="cup-img" style="width: 76rpx;height: 42rpx;"></img>
|
|
|
+ <img :src="`${assetsUrl}user-charm.png`" mode="aspectFit" class="cup-img" style="width: 38px;height: 20px;"></img>
|
|
|
<div class="cup-text font24">
|
|
|
{{otherInfo.sex==='Famale'?'她':'他'}}已完成真人认证且颜值较高
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="cup-item flex-center" v-if="!otherInfo.realMan">
|
|
|
- <img :src="`${assetsUrl}user-no-real.png`" mode="aspectFit" class="cup-img" style="width: 76rpx;height: 42rpx;"></img>
|
|
|
+ <img :src="`${assetsUrl}user-no-real.png`" mode="aspectFit" class="cup-img" style="width: 38px;height: 21px;"></img>
|
|
|
<div class="cup-text font24">
|
|
|
{{otherInfo.sex==='Famale'?'她':'他'}}未完成真人认证、交友谨慎
|
|
|
</div>
|
|
@@ -221,7 +221,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="btn-box flex-between">
|
|
|
- <div class="talk-btn flex-center" :style="{'width':`${isLiked?'100%':'160px'}`}" @click="toTalk">
|
|
|
+ <div class="talk-btn flex-center" :style="{'width':`${isLiked?'100%':'160px'}`}" @click="toTalk(otherInfo.id)">
|
|
|
<img :src="`${assetsUrl}user-talk.png`" mode="aspectFit" class="btn-icon"></img>
|
|
|
<p class="btn-text font32 fw600">聊一聊</p>
|
|
|
</div>
|
|
@@ -466,27 +466,68 @@
|
|
|
this.likeNum=res.data;
|
|
|
})
|
|
|
},
|
|
|
- toTalk(){
|
|
|
- console.log(this.userInfo)
|
|
|
- if(this.userInfo.sex==='Male'&&!this.userInfo.vip){
|
|
|
- this.payPopupIndex=0;
|
|
|
- this.showPayPopup=true;
|
|
|
- return;
|
|
|
- }
|
|
|
- if(this.userInfo.sex==='Famale'&&!this.userInfo.realMan){
|
|
|
- this.popup={
|
|
|
- content1:'认证后才能开启私聊哦',
|
|
|
- content2:'给客服回复关键词「真人认证」',
|
|
|
- tip1:'',
|
|
|
- tip2:'',
|
|
|
- btntext:'联系客服去认证'
|
|
|
- }
|
|
|
- this.showPopup=true;
|
|
|
- return;
|
|
|
- }
|
|
|
- // uni.navigateTo({
|
|
|
- // url:`/pagesSub/chatting/chatting?conversationid=C2C${this.userInfo.id}`
|
|
|
- // })
|
|
|
+ toTalk(id){
|
|
|
+ this.$toast.loading({
|
|
|
+ message: '加载中',
|
|
|
+ forbidClick: true,
|
|
|
+ duration:0
|
|
|
+ });
|
|
|
+ let user=JSON.parse(localStorage.getItem('user'));
|
|
|
+ this.$api.public.userDetail({getAlbum:true,completeUser:user,uponUserId:id}).then(res=>{
|
|
|
+ this.$toast.clear();
|
|
|
+ this.otherInfo=res.data;
|
|
|
+ let arr=[],obj={latitude:0,longitude:0};
|
|
|
+ obj.latitude=this.otherInfo.geo.lat;
|
|
|
+ obj.longitude=this.otherInfo.geo.lon;
|
|
|
+ arr.push(obj);
|
|
|
+ wxMapSdk.calculateDistance({
|
|
|
+ mode:'straight',
|
|
|
+ from:{
|
|
|
+ latitude: this.$store.state.latitude,
|
|
|
+ longitude: this.$store.state.longitude
|
|
|
+ },
|
|
|
+ to:arr,
|
|
|
+ success:dists=>{
|
|
|
+
|
|
|
+ if(dists.message==="query ok"){
|
|
|
+ console.log(dists,this.otherInfo,this.userInfo)
|
|
|
+ for(let j=0;j<dists.result.elements.length;j++){
|
|
|
+ this.otherInfo.distance=(dists.result.elements[j].distance>1000?`${Math.floor(dists.result.elements[j].distance/100)/10}km`:`${dists.result.elements[j].distance}m`)
|
|
|
+ }
|
|
|
+ if(this.userInfo.sex==='Male'&&!this.userInfo.vip){
|
|
|
+ this.payPopupIndex=0;
|
|
|
+ this.showPayPopup=true;
|
|
|
+ return;
|
|
|
+
|
|
|
+ }
|
|
|
+ if(this.userInfo.sex==='Famale'&&!this.userInfo.realMan){
|
|
|
+ this.popup={
|
|
|
+ content1:'认证后才能开启私聊哦',
|
|
|
+ content2:'给客服回复关键词「真人认证」',
|
|
|
+ tip1:'',
|
|
|
+ tip2:'',
|
|
|
+ btntext:'去认证'
|
|
|
+ }
|
|
|
+ this.showPopup=true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ localStorage.setItem('otherInfo',JSON.stringify(this.otherInfo));
|
|
|
+ this.$router.push({name:'chatting',params:{conversationid:`C2C${id}`}})
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$toast('计算距离失败')
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ fail:err=>{
|
|
|
+ console.log(err)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
getMineDetail(){
|
|
|
let user=JSON.parse(localStorage.getItem('user'));
|