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

1

parent 60675fc1
......@@ -95,7 +95,7 @@
export default{
data(){
return{
time:"0",
UserId:0,
pageTitle:"",
mainColor: "",
dataList:[{
......@@ -509,7 +509,7 @@
this.request2(
{
url: '/api/AppletMiai/GetMiAiBaseIfo',
data: { UserId:""}
data: { UserId:this.UserId}
},
res => {
if(res.resultCode==1){
......@@ -519,6 +519,9 @@
);
}
},
onLoad(options) {
this.UserId=options.UserId
},
created() {
this.mainColor = this.$uiConfig.mainColor;
// this.secondary = this.$uiConfig.secondary;
......@@ -527,7 +530,7 @@
mounted() {
this.getEnumList();
this.getMarriage();
// this.getInfo();
this.getInfo();
uni.getStorage({
key: 'basedata',
success: (res) =>{
......
......@@ -80,7 +80,7 @@
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
justify-content: flex-end;
}
.persondetails .pd-p-text{
width: 100%;
......@@ -151,9 +151,13 @@
align-items: center;
justify-content: center;
}
.bwytBtn{
}
</style>
<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="headStatus" v-if="scrollTop > 50" :style="[headStyle,
{
......@@ -193,6 +197,7 @@
未认证
</view>
</view>
<view @click="dianjiguanzhu(dataList)" v-if="dataList.IsFollow!=-1">
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==0" >
关注
......@@ -205,9 +210,9 @@
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==3">
互关
</view>
</view>
</view>
</view>
</view>
</view>
......@@ -339,6 +344,7 @@
mall_UserInfo:null,
UserId:0,
isShowBtn:true, //跳过来不显示编辑按钮
path:""
}
},
created() {
......@@ -358,7 +364,13 @@
}else{
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() {
this.init()
......@@ -398,7 +410,8 @@
},
goedit(){
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){//关注操作
......@@ -428,6 +441,10 @@
uni.navigateTo({
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