Commit 4d02ad0f authored by 罗超's avatar 罗超

1

parent 60675fc1
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
export default{ export default{
data(){ data(){
return{ return{
time:"0", UserId:0,
pageTitle:"", pageTitle:"",
mainColor: "", mainColor: "",
dataList:[{ dataList:[{
...@@ -509,7 +509,7 @@ ...@@ -509,7 +509,7 @@
this.request2( this.request2(
{ {
url: '/api/AppletMiai/GetMiAiBaseIfo', url: '/api/AppletMiai/GetMiAiBaseIfo',
data: { UserId:""} data: { UserId:this.UserId}
}, },
res => { res => {
if(res.resultCode==1){ if(res.resultCode==1){
...@@ -519,6 +519,9 @@ ...@@ -519,6 +519,9 @@
); );
} }
}, },
onLoad(options) {
this.UserId=options.UserId
},
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
// this.secondary = this.$uiConfig.secondary; // this.secondary = this.$uiConfig.secondary;
...@@ -527,7 +530,7 @@ ...@@ -527,7 +530,7 @@
mounted() { mounted() {
this.getEnumList(); this.getEnumList();
this.getMarriage(); this.getMarriage();
// this.getInfo(); this.getInfo();
uni.getStorage({ uni.getStorage({
key: 'basedata', key: 'basedata',
success: (res) =>{ success: (res) =>{
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: flex-end;
} }
.persondetails .pd-p-text{ .persondetails .pd-p-text{
width: 100%; width: 100%;
...@@ -151,9 +151,13 @@ ...@@ -151,9 +151,13 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.bwytBtn{
}
</style> </style>
<template> <template>
<scroll-view :scroll-y="true" @scroll="scrollHandler" @scrolltoupper="scrollTopHandler" style="height: 100vh;"> <scroll-view :scroll-y="true" @scroll="scrollHandler" @scrolltoupper="scrollTopHandler" style="height: 100vh;position: relative;">
<button open-type="contact" :send-message-title="dataList.Name" :send-message-path="path" :send-message-img="dataList.Photo" :show-message-card="true" class="bwytBtn">帮我约TA</button>
<view class="persondetails" > <view class="persondetails" >
<view class="headStatus" v-if="scrollTop > 50" :style="[headStyle, <view class="headStatus" v-if="scrollTop > 50" :style="[headStyle,
{ {
...@@ -193,6 +197,7 @@ ...@@ -193,6 +197,7 @@
未认证 未认证
</view> </view>
</view> </view>
<view @click="dianjiguanzhu(dataList)" v-if="dataList.IsFollow!=-1"> <view @click="dianjiguanzhu(dataList)" v-if="dataList.IsFollow!=-1">
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==0" > <view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==0" >
关注 关注
...@@ -205,9 +210,9 @@ ...@@ -205,9 +210,9 @@
</view> </view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==3"> <view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==3">
互关 互关
</view>
</view> </view>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -339,6 +344,7 @@ ...@@ -339,6 +344,7 @@
mall_UserInfo:null, mall_UserInfo:null,
UserId:0, UserId:0,
isShowBtn:true, //跳过来不显示编辑按钮 isShowBtn:true, //跳过来不显示编辑按钮
path:""
} }
}, },
created() { created() {
...@@ -358,7 +364,13 @@ ...@@ -358,7 +364,13 @@
}else{ }else{
this.isShowBtn=true; this.isShowBtn=true;
} }
let u = uni.getStorageSync("mall_UserInfo");
let uid = u.UserId ? u.UserId : 0;
let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
this.path = '/pages/index/index?id=' + options.UserId + "&user_id=" + uid+ "&Up=" + Up+'&JumpType=11';
console.log(this.path)
} }
}, },
onShow() { onShow() {
this.init() this.init()
...@@ -398,7 +410,8 @@ ...@@ -398,7 +410,8 @@
}, },
goedit(){ goedit(){
uni.navigateTo({ uni.navigateTo({
url: '/pages/blindDate/personal/editmaterial?UserId='+this.UserId // url: '/pages/blindDate/personal/editmaterial?UserId='+this.UserId
url: '/pages/blindDate/editData?UserId='+this.UserId
}); });
}, },
dianjiguanzhu(x){//关注操作 dianjiguanzhu(x){//关注操作
...@@ -428,6 +441,10 @@ ...@@ -428,6 +441,10 @@
uni.navigateTo({ uni.navigateTo({
url: '/pages/blindDate/basicdata' url: '/pages/blindDate/basicdata'
}) })
},
// 帮我约ta
yueta(){
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment