Commit 41104e77 authored by liwei's avatar liwei

修改了页面,增加了假数据

parent 735870a9
......@@ -236,7 +236,7 @@
// this.getList(true)
},
goPage(path) {
if (uni.getStorageSync('info') != '') {
if (uni.getStorageSync('userInfo') != '') {
uni.navigateTo({
url: path
})
......
......@@ -172,7 +172,9 @@
}
bannerList(query).then(res =>{
//将res.data.rows集合里的bannerPicture取出来,放到集合中
this.bannerList = res.data.data.map(item => item.bannerPicture)
// console.log('res.data.data:',res.data.data)
this.bannerList = res.data.data.map(item => item.path)
console.log('this.bannerList:',this.bannerList)
}).catch(e => {
console.log(e)
})
......
......@@ -164,7 +164,7 @@
this.dataList = [
{
createTime:'2024-12-28 15:02:01',
headPortrait:'11111',//头像
headPortrait:'http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg',//头像
nickName:'不爱吃辣的小王',//nickName
gender:'MALE',//性别
information:'02·重庆市·硕士·互联网',//个人信息
......
<template>
<view :class="{ popUpShow: showLikePop}" style="background-color: #F4F5F9;min-height: 100vh;">
<!-- 页头-->
<u-navbar @leftClick="backbar" bgColor="#F4F5F9" title="用户详情"> </u-navbar>
<view :style="{'top':navHeight+'px'}" v-if="isInit" :class="{ pagePop: showAnima,'pageanima':true }">
<view class="div" style="height: 100%;background: #F4F5F9;">
<view class="">
<view class="box">
<!-- 下方俩图标 喜欢和不喜欢-->
<view class="swiper">
<ls-swiper :list="userData.imgList" imgKey="" :loop="true" :dots="true" :autoplay="true"
:height="340" />
<view class="hint" v-if="userData.result!=null&&userData.result">
<view class="hint" v-if="userData.result != null && userData.result">
<image src="../../static/images/like/02.png" mode="aspectFill"></image>
<view class="t">
{{
'相互喜欢'
}}
{{ '相互喜欢' }}
</view>
</view>
<view class="hint"
v-else-if="userData.otherMatchingStatus!=null&&userData.otherMatchingStatus=='NOT_LIKE_ME'">
v-else-if="userData.otherMatchingStatus != null && userData.otherMatchingStatus=='NOT_LIKE_ME'">
<image src="../../static/images/like/dislike.png" mode="aspectFill"></image>
<view class="t">
{{
'对我无感'
}}
{{ '对我无感' }}
</view>
</view>
<view class="hint"
......@@ -61,12 +59,12 @@
</view>
</view>
</view>
<!-- 个人信息-->
<view class="box-name">
<view class="name">{{ userData.nickName ? userData.nickName : '' }}</view>
<image src="../../static/xiugai/nv.png" mode="aspectFill" v-if="userData.gender=='FEMALE'"></image>
<image src="../../static/xiugai/nv.png" mode="aspectFill" v-if="userData.gender == 'FEMALE'"></image>
<image src="../../static/images/like/male.png" mode="aspectFill" v-else></image>
<view class="hint" v-if="userData.userAuthStatus!=null">
<view class="hint" v-if="userData.userAuthStatus != null">
<image src="../../static/images/auth.png" mode="aspectFill"></image>
<view class="t">
{{
......@@ -99,13 +97,12 @@
: ''
}}</view>
</view>
<view class="line">
<view class="sm-line" v-for="(item, index) in 12" :key="item"></view>
</view>
<view class="circle"></view>
<view class="circles"></view>
<!-- 标签 -->
<view class="lable">
<view class="lable-div" style="margin-right: 20rpx;">
职业:{{ userData.profession ? userData.profession : '' }}</view>
......@@ -137,8 +134,9 @@
<view class="" style="height: 44rpx;"></view>
</view>
<view class="safe-bottom">
<!-- 动态图片-->
<view class="card" style="height: auto;" @click="goDynamicState"
v-if="(userData.userArticleViewResponse.articleImg!==null&&userData.userArticleViewResponse.articleImg.length)||userData.userArticleViewResponse.articleContent!==null">
v-if="(userData.userArticleViewResponse.articleImg !== null && userData.userArticleViewResponse.articleImg.length) || userData.userArticleViewResponse.articleContent !== null">
<view class="content">
<view class="have_image">
<image src="@/static/images/106.svg"
......@@ -148,7 +146,7 @@
我的动态
</view>
</view>
<view :class="['imgs',userData.userArticleViewResponse.articleImg.length==2?'twoTemp':'']" v-if="userData.userArticleViewResponse.articleImg!==null&&userData.userArticleViewResponse.articleImg.length">
<view :class="['imgs',userData.userArticleViewResponse.articleImg.length == 2?'twoTemp':'']" v-if="userData.userArticleViewResponse.articleImg!==null&&userData.userArticleViewResponse.articleImg.length">
<image v-for="item in userData.userArticleViewResponse.articleImg" :src="item"
mode="aspectFill">
</image>
......@@ -158,6 +156,7 @@
</view>
</view>
</view>
<!-- 关于我自己-->
<view class="card">
<view class="content">
<view class="have_image">
......@@ -168,6 +167,7 @@
<view class="one"></view>
</view>
</view>
<!-- 兴趣爱好-->
<view class="card">
<view class="content">
<view class="have_image">
......@@ -178,6 +178,7 @@
<view class="one"></view>
</view>
</view>
<!-- 心仪的Ta-->
<view class="card">
<view class="content">
<view class="have_image">
......@@ -188,6 +189,7 @@
<view class="one"></view>
</view>
</view>
<view class="bo"
:style="{'border-radius':userData.selfMatchingStatus!==null?'24rpx 24rpx 0 0':'24rpx'}">
<u-button class="name" open-type="share" :hairline="false" :customStyle="{
......@@ -196,38 +198,37 @@
'font-weight': '800',
'color': '#434343',
'border':'none',
}">
<image src="../../static/images/share.png" class="simg" mode="aspectFill"></image>
{{userData.gender!='MALE'?'她':'他'}}推荐给好友
{{userData.gender != 'MALE'?'她':'他'}}推荐给好友
</u-button>
<!-- <view class="name">{{userData.gender!='MALE'?'她':'他'}}推荐给好友</view> -->
</view>
<view class="bo2" v-if="userData.selfMatchingStatus!==null" @click="canelLike()">
<image v-if="userData.selfMatchingStatus=='NOT_LIKE'"
<view class="bo2" v-if="userData.selfMatchingStatus !== null" @click="canelLike()">
<image v-if="userData.selfMatchingStatus == 'NOT_LIKE'"
src="../../static/images/like/noLike.png" class="simg" mode="aspectFill"></image>
<image v-if="userData.selfMatchingStatus=='LIKE'" src="../../static/images/like/liketo.png"
<image v-if="userData.selfMatchingStatus == 'LIKE'" src="../../static/images/like/liketo.png"
class="simg" mode="aspectFill"></image>
<view class="name"> {{userData.selfMatchingStatus=='NOT_LIKE'?'取消无感':
userData.selfMatchingStatus=='LIKE'?'取消喜欢':''
<view class="name"> {{userData.selfMatchingStatus == 'NOT_LIKE'?'取消无感':
userData.selfMatchingStatus == 'LIKE'?'取消喜欢':''
}} </view>
</view>
<!-- IP地址-->
<view class="fe">
<view class="" style="height: 40rpx;display: flex;align-items: center;margin-top: 26rpx;">
<view class="line"></view>
<view class="text">IP属地:{{ userData.city!=null?userData.city:city }}</view>
<view class="text">IP属地:{{ userData.city != null ? userData.city : city }}</view>
<view class="line"></view>
</view>
</view>
</view>
</view>
</view>
<view class="footer-fixed" @click="goSedMsg" v-if="userData.result!=null&&userData.result">
<image src="../../static/images/like/chat.png" mode="aspectFill"></image>
<view class="footer-fixed" @click="goSedMsg" v-if="userData.result != null && userData.result">
<image src="../../static/images/like/chat.png" mode="aspectFill"/>
发起聊天
</view>
<view v-if="showArrowDown">
<view class="footer-fixedlike" v-if="userData.selfMatchingStatus==null">
<view class="footer-fixedlike" v-if="userData.selfMatchingStatus == null">
<view class="left" @click="logion(userData.id, false, '../../static/images/clo.png')">
<image src="../../static/images/clo.png" style="width: 100%;height: 100%;;" mode="aspectFill"></image>
</view>
......@@ -275,9 +276,9 @@
</u-popup>
<login @change="getUserInfowx" :isLoginPop="isLoginPop" class="my-select"></login>
</view>
<ELM ref="elm" :msg="tipMsg"></ELM>
<myPopup v-if="isShow" :content="userData.selfMatchingStatus=='NOT_LIKE'?'是否取消无感?':
userData.selfMatchingStatus=='LIKE'?'是否取消喜欢?':'是否解除匹配?'" @confirm="confirm" @cancel="cancelbtn"></myPopup>
userData.selfMatchingStatus=='LIKE'?'是否取消喜欢?':'是否解除匹配?'" @confirm="confirm" @cancel="cancelbtn">
</myPopup>
</view>
</template>
......@@ -296,8 +297,36 @@
},
data() {
return {
//用户信息
userData: {
imgList:['http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg'],
school:'天津大学',
education:'Undergraduate',
educationalType:'FullTime',
nickName:'爱吃火锅',
gender:'FEMALE',
userAuthStatus:'DOUBLE',
age:'20',
height:'165',
constellation:'学生',
city:'天津市',
emotional:'Single',
profession:'学生',
annualSalary:'Less_Ten',
marriage:'Unmarried',
userArticleViewResponse: {
articleContent: '111111111',
articleImg: [
'http://192.168.1.80/upload/CmsActivity/20241230/E3994EF11C524D48AD88D383A2B5786B.jpg',
'http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg',
'http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg'
]
},
aboutMe:'111111',
interest:'222222',
loveRequirement:'33333'
},
isShow: false,
tipMsg: '',
mutualInfo: {},
showLikePop: false,
animUrl: '',
......@@ -309,12 +338,6 @@
scrollTop: 0,
unfold: false,
isLoginPop: false,
userData: {
userArticleViewResponse: {
articleContent: null,
articleImg: []
}
},
img: this.$BASE_URL,
// bgColor: 'linear-gradient(to bottom, #e8eef6, #eef5f6)',
bgColor: '#F4F5F9',
......@@ -352,7 +375,7 @@
},
onLoad(options) {
this.id = options.id;
this.getUserInfo();
// this.getUserInfo();
if (options.share != null) {
this.share = options.share;
}
......@@ -423,8 +446,7 @@
},
methods: {
goDynamicState(){
this.tipMsg = "开源版暂未开放,敬请期待!如需旗舰版,可联系作者微信(MMRWXM)咨询";
this.$refs.elm.showDialog();
},
confirm() {
this.isShow = false;
......@@ -436,8 +458,7 @@
if (res.data.code == 200) {
this.getUserInfo();
} else {
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
}
})
},
......@@ -543,8 +564,7 @@
console.log("匹配结束2:" + userId)
this.getUserInfo();
} else {
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
this.showBtn = true;
}
})
......@@ -634,8 +654,7 @@
url: '/pagesintroduction/selfIntroduction?code=' + code
});
} else {
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
}
},
backbar() {
......
<template>
<view>
<!-- 头像部分-->
<view class="w-100 pt30 pb60">
<view class="pr40 pl72 pt40 rowa" v-if="userInfo.waitApprovedStatus!='PASS'">
<view class="pr40 pl72 pt40 rowa" v-if="userInfo.waitApprovedStatus != 'PASS'">
<view class="mw32 mt8 h32 bc000 cfff br-50 tc lh32 fs24">!</view>
<view class="ml14 c333 fs28 lh44">
{{userInfo.remarks==null?"请上传个人的真实照片,通过后这样才能匹配到高质量好友哦~":userInfo.remarks}}
</view>
</view>
<!-- 个人资料 顶部头像-->
<view class="pr32 pl32 rowa">
<!-- 大头像-->
<view class="relative" @click="showSingleNoPopup(9)">
<image v-if="userInfo.waitApprovedImg!=null" class="w328 br24 h328 blc "
<image v-if="userInfo.waitApprovedImg != null" class="w328 br24 h328 blc "
:src="userInfo.waitApprovedImg[0]" mode="aspectFill"></image>
<view class="absolute w328 h328 rowjcic top0">
<view class="w186 h52 lh52 tc cfff fs28 br10" style="background-color: rgba(0,0,0,0.3);">头像/封面
</view>
</view>
</view>
<!-- 4个小头像-->
<view class="h328 crowjb">
<view class="ml30 w-100">
<view class="rowjbic pr30 w-100 warp h328">
<view @click="showSingleNoPopup(1)"
v-if="userInfo.waitApprovedImg!=null&&userInfo.waitApprovedImg.length>1">
v-if="userInfo.waitApprovedImg != null && userInfo.waitApprovedImg.length > 1">
<image class="w150 h150 br24 blc" :src="userInfo.waitApprovedImg[1]" mode="aspectFill">
</image>
</view>
......@@ -32,7 +36,7 @@
</block>
<view @click="showSingleNoPopup(2)"
v-if="userInfo.waitApprovedImg!=null&&userInfo.waitApprovedImg.length>2">
v-if="userInfo.waitApprovedImg !=null && userInfo.waitApprovedImg.length > 2">
<image class="w150 h150 br24 blc" :src="userInfo.waitApprovedImg[2]" mode="aspectFill">
</image>
</view>
......@@ -44,7 +48,7 @@
</block>
<view @click="showSingleNoPopup(3)"
v-if="userInfo.waitApprovedImg!=null&&userInfo.waitApprovedImg.length>3">
v-if="userInfo.waitApprovedImg != null&&userInfo.waitApprovedImg.length > 3">
<image class="w150 h150 br24 blc" :src="userInfo.waitApprovedImg[3]" mode="aspectFill">
</image>
</view>
......@@ -56,7 +60,7 @@
</block>
<view @click="showSingleNoPopup(4)"
v-if="userInfo.waitApprovedImg!=null&&userInfo.waitApprovedImg.length>4">
v-if="userInfo.waitApprovedImg != null && userInfo.waitApprovedImg.length > 4">
<image class="w150 h150 br24 blc" :src="userInfo.waitApprovedImg[4]" mode="aspectFill">
</image>
</view>
......@@ -66,13 +70,13 @@
+
</view>
</block>
</view>
</view>
</view>
</view>
</view>
<!-- 基础资料-->
<view class="w690 p30 bcfff br20 ml30 mt35" style="margin-top: -30rpx;">
<view class="rowjbic">
<view class="rowic">
......@@ -86,20 +90,24 @@
<view class="rowic mt40">
<view class="fs40 fwb" style="color: #4A4A4A;">{{userInfo.nickName}}</view>
<image class="w48 h48 br-50 ml30"
:src="userInfo.gender=='MALE' ?'/static/images/like/male.png': '/static/xiugai/nv.png'" mode="aspectFill">
:src="userInfo.gender == 'MALE' ?'/static/images/like/male.png': '/static/xiugai/nv.png'" mode="aspectFill">
</image>
</view>
<view class="fs28 fwb c333 rowic mt25">
<view><text v-if="userInfo.age">{{userInfo.age}}</text>岁 · <text
v-if="userInfo.height">{{userInfo.height}}</text>cm · <text
v-if="userInfo.constellation">{{userInfo.constellation}}</text></view>
<view>
<text v-if="userInfo.age">{{userInfo.age}}</text>岁 ·
<text v-if="userInfo.height">{{userInfo.height}}</text>cm ·
<text v-if="userInfo.constellation">{{userInfo.constellation}}</text>
</view>
<view class="fs24 w3 ml30 mr30 h24" style="background-color: #E0E2E8;"></view>
<view> <text v-if="userInfo.city">{{userInfo.city}} </text></view>
<view>
<text v-if="userInfo.city">{{userInfo.city}}</text>
</view>
</view>
<view class="rowic mt36" v-if="userInfo.emotional!=null">
<view class="rowic mt36" v-if="userInfo.emotional != null">
<image class="w42 h42" src="../../static/images/indexlable.png" mode="aspectFill"></image>
<view class="fs24 ml10 c333" v-if="userInfo.emotional=='Single'">正在寻觅</view>
<view class="fs24 ml10 c333" v-if="userInfo.emotional=='Love'">热恋中</view>
<view class="fs24 ml10 c333" v-if="userInfo.emotional == 'Single'">正在寻觅</view>
<view class="fs24 ml10 c333" v-if="userInfo.emotional == 'Love'">热恋中</view>
</view>
<view class="w690 rowjbic mt56" style="margin-left: -30rpx;">
<view class="circle"></view>
......@@ -112,106 +120,108 @@
职业:{{userInfo.profession}}</view>
<view v-if="userInfo.annualSalary" class="w285 mt25 h60 tc fs28 c333 lh60 br100"
style="background-color: #FFE3DE;">年薪:
<text v-if="userInfo.annualSalary=='Less_Ten'">小于10w</text>
<text v-if="userInfo.annualSalary=='Ten_Two'">10w到20w</text>
<text v-if="userInfo.annualSalary=='Two_Three'">20w到30w</text>
<text v-if="userInfo.annualSalary=='Three_Five'">30w到50w</text>
<text v-if="userInfo.annualSalary=='Five_Hundred'">50w到100w</text>
<text v-if="userInfo.annualSalary=='Greater_Hundred'">大于100w</text>
<text v-if="userInfo.annualSalary=='Secrecy'">保密</text>
<text v-if="userInfo.annualSalary == 'Less_Ten'">小于10w</text>
<text v-if="userInfo.annualSalary == 'Ten_Two'">10w到20w</text>
<text v-if="userInfo.annualSalary == 'Two_Three'">20w到30w</text>
<text v-if="userInfo.annualSalary == 'Three_Five'">30w到50w</text>
<text v-if="userInfo.annualSalary == 'Five_Hundred'">50w到100w</text>
<text v-if="userInfo.annualSalary == 'Greater_Hundred'">大于100w</text>
<text v-if="userInfo.annualSalary == 'Secrecy'">保密</text>
</view>
<view v-if="userInfo.marriage" class="w285 mt25 h60 tc fs28 c333 lh60 br100"
style="background-color: #F2E8F9;">婚姻状况:
<text v-if="userInfo.marriage=='Unmarried'">未婚</text>
<text v-if="userInfo.marriage=='Divorce'">离异</text>
<text v-if="userInfo.marriage=='Widow'">丧偶</text>
<text v-if="userInfo.marriage == 'Unmarried'">未婚</text>
<text v-if="userInfo.marriage == 'Divorce'">离异</text>
<text v-if="userInfo.marriage == 'Widow'">丧偶</text>
</view>
</view>
</view>
<!-- 认证板块-->
<view class="w690 p30 bcfff br20 mt30 ml30 p30">
<view class="rowic">
<image class="w30 h30" src="/static/xiugai/2.png" mode="aspectFill"></image>
<view style="color: #434343;" class="fs28 fwb ml10">双重认证({{numtwo}}/2)</view>
<view style="color: #434343;" class="fs28 fwb ml10">双重认证({{ numtwo }}/2)</view>
</view>
<view class="rowjbic mt25">
<view class="fs28 fwb" style="color: #434343;">实名认证</view>
<view class="fs24" style="color: #434343;">认证后配对成功率提升200%</view>
<view v-if="userInfo.identityAuth=='EXAMINE'" class="w120 h52 lh52 tc br100 fs28"
<view v-if="userInfo.identityAuth == 'EXAMINE'" class="w120 h52 lh52 tc br100 fs28"
style="color: #434343; background-color: #F5F6FA;" @click="gotomation()">审核中</view>
<view v-if="userInfo.identityAuth=='PASS'" class="w120 h52 lh52 tc br100 fs28"
<view v-if="userInfo.identityAuth == 'PASS'" class="w120 h52 lh52 tc br100 fs28"
style="color: #434343; background-color: #F5F6FA;" @click="gotomation()">已认证</view>
<view v-if="userInfo.identityAuth=='REFUSE'" class="w120 h52 lh52 tc br100 fs28"
<view v-if="userInfo.identityAuth == 'REFUSE'" class="w120 h52 lh52 tc br100 fs28"
style="color: #434343; background-color: #F5F6FA;" @click="gotomation()">已拒绝</view>
<view v-if="userInfo.identityAuth==null" class="w120 h52 lh52 tc br100 fs28"
<view v-if="userInfo.identityAuth == null" class="w120 h52 lh52 tc br100 fs28"
style="color: #434343; background-color: #F5F6FA;" @click="gotomation()">未认证</view>
</view>
<view class="rowjbic mt30">
<view class="fs28 fwb" style="color: #434343;">学历认证</view>
<view class="fs24" style="color: #434343;" v-if="userInfo.school">{{userInfo.school}}
<view class="fs24" style="color: #434343;" v-if="userInfo.school">{{userInfo.school}}·
<text class="ml10"></text>
<text v-if="userInfo.education=='Specialty'">专科</text>
<text v-if="userInfo.education=='Undergraduate'">本科</text>
<text v-if="userInfo.education=='Master'">硕士</text>
<text v-if="userInfo.education=='Doctor'">博士</text>
<text v-if="userInfo.education == 'Specialty'">专科</text>
<text v-if="userInfo.education == 'Undergraduate'">本科</text>
<text v-if="userInfo.education == 'Master'">硕士</text>
<text v-if="userInfo.education == 'Doctor'">博士</text>
·
<text v-if="userInfo.educationalType=='FullTime'" class="ml10">全日制</text>
<text v-if="userInfo.educationalType=='NOFullTime'" class="ml10">非全日制</text>
<text v-if="userInfo.educationalType == 'FullTime'" class="ml10">全日制</text>
<text v-if="userInfo.educationalType == 'NOFullTime'" class="ml10">非全日制</text>
</view>
<view v-if="userInfo.educationAuth=='EXAMINE'" class="w120 h52 lh52 tc br100 fs28"
<view v-if="userInfo.educationAuth == 'EXAMINE'" class="w120 h52 lh52 tc br100 fs28"
style="color: #434343; background-color: #F5F6FA;" @click="gotoeducation()">审核中</view>
<view v-if="userInfo.educationAuth=='PASS'" class="w120 h52 lh52 tc br100 fs28"
<view v-if="userInfo.educationAuth == 'PASS'" class="w120 h52 lh52 tc br100 fs28"
style="color: #434343; background-color: #F5F6FA;" @click="gotoeducation()">已认证</view>
<view v-if="userInfo.educationAuth=='REFUSE'" class="w120 h52 lh52 tc br100 fs28"
<view v-if="userInfo.educationAuth == 'REFUSE'" class="w120 h52 lh52 tc br100 fs28"
style="color: #434343; background-color: #F5F6FA;" @click="gotoeducation()">已拒绝</view>
<view v-if="userInfo.educationAuth==null" class="w120 h52 lh52 tc br100 fs28"
<view v-if="userInfo.educationAuth == null" class="w120 h52 lh52 tc br100 fs28"
style="color: #434343; background-color: #F5F6FA;" @click="gotoeducation()">未认证</view>
</view>
</view>
<!-- 关于我自己-->
<view class="w690 p30 bcfff br20 mt30 ml30 p30">
<view class="rowjbic">
<view class="rowic">
<image class="w30 h30" src="/static/images/indexinterest.png" mode="aspectFill"></image>
<image class="w30 h30" src="/static/images/indexinterest.png" mode="aspectFill"/>
<view style="color: #434343;" class="fs28 fwb ml10">关于我自己</view>
</view>
<view class="w120 h52 lh52 tc br100 fs28" @click="gotoEditText(1,userInfo.aboutMe)"
style="color: #434343; background-color: #F5F6FA;">编辑</view>
<view class="w120 h52 lh52 tc br100 fs28" @click="gotoEditText(1,userInfo.aboutMe)" style="color: #434343; background-color: #F5F6FA;">
编辑
</view>
</view>
<view class=" mt25 fs28" style="color: #434343; ">
<view>{{userInfo.aboutMe}}</view>
</view>
</view>
<!-- 兴趣爱好-->
<view class="w690 p30 bcfff br20 mt30 ml30 p30">
<view class="rowjbic">
<view class="rowic">
<image class="w30 h30" src="/static/images/indexlove.png" mode="aspectFill"></image>
<view style="color: #434343;" class="fs28 fwb ml10">兴趣爱好</view>
</view>
<view class="w120 h52 lh52 tc br100 fs28" @click="gotoEditText(2,userInfo.interest)"
style="color: #434343; background-color: #F5F6FA;">编辑</view>
<view class="w120 h52 lh52 tc br100 fs28" @click="gotoEditText(2,userInfo.interest)" style="color: #434343; background-color: #F5F6FA;">
编辑
</view>
</view>
<view class=" mt25 fs28" style="color: #434343; ">
<view>{{userInfo.interest}}</view>
</view>
</view>
<!-- 心仪的Ta-->
<view class="w690 p30 bcfff br20 mt30 ml30 p30">
<view class="rowjbic">
<view class="rowic">
<image class="w30 h30" src="/static/images/indexcharacter.png" mode="aspectFill"></image>
<view style="color: #434343;" class="fs28 fwb ml10">心仪的Ta</view>
</view>
<view class="w120 h52 lh52 tc br100 fs28" @click="gotoEditText(3,userInfo.loveRequirement)"
style="color: #434343; background-color: #F5F6FA;">编辑</view>
<view class="w120 h52 lh52 tc br100 fs28" @click="gotoEditText(3,userInfo.loveRequirement)" style="color: #434343; background-color: #F5F6FA;">
编辑
</view>
</view>
<view class=" mt25 fs28" style="color: #434343; ">
<view>{{userInfo.loveRequirement}}</view>
</view>
</view>
<view class="h40"></view>
<!-- 单列不滚动 -->
......@@ -224,23 +234,46 @@
</view>
</view>
</u-popup>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
</view>
</template>
<script>
import ELM from '@/components/elm-toast/index.vue';
export default {
data() {
return {
//用户资料
userInfo: {
waitApprovedStatus:'',
waitApprovedImg:[
'http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg',
'http://192.168.1.80/upload/CmsActivity/20241230/E3994EF11C524D48AD88D383A2B5786B.jpg'
],
nickName:'冬天不怕冷',
gender:'MALE',
age:'10',
height:'188',
constellation:'111',
city:'天津市',
emotional:'Love',
profession:'医生',
annualSalary:'Ten_Two',
marriage:'Unmarried',
numtwo:0,
identityAuth:null,
school:'天津大学',
education:'Master',
educationalType:'FullTime',
educationAuth:null,
aboutMe:'我是一个医生',
interest:'我的兴趣爱好是学习',
loveRequirement:'希望对方也是一名医生',
},
multiple: 100, //倍数
percent: 0, //百分比
perceptualScore: 0,
value: 40,
img: this.$BASE_URL,
bgColor: 'rgb(232,241,247)',
userInfo: {},
// 新上传的图片路径
newImageSrc: "",
// 单列不滚动
......@@ -248,19 +281,9 @@
singleIndex: 0,
numtwo: 0,
waitApprovedImg: [],
tipMsg: '',
isConfirm: false
}
},
components: {
ELM
},
onLoad(option) {
// this.$myRequest({
// url: '/test/delete/fruser/'+51,
// withToken: true,
// method: 'GET',
// })
uni.$once('updateAboutMe', this.updateAboutMe)
uni.$once('updateLoveRequirement', this.updateLoveRequirement)
uni.$once('updateInterest', this.updateInterest)
......@@ -271,17 +294,11 @@
},
methods: {
gotomation() {
// uni.navigateTo({
// url:"/pagesme/me/identityauthentication?type="+type
// })
uni.navigateTo({
url: "/pagesme/me/doubleauth"
})
},
gotoeducation(type) {
// uni.navigateTo({
// url:"/pagesme/me/educationcertification?type="+type
// })
uni.navigateTo({
url: "/pagesme/me/doubleauth?type=" + type
})
......@@ -344,8 +361,6 @@
},
fail: (loginErr) => {
uni.hideLoading();
this.tipMsg = "上传失败,请重试";
this.$refs.elm.showDialog();
},
complete() {}
});
......@@ -392,8 +407,7 @@
if (res.data.code == 200) {
this.getUserIno();
} else {
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
}
},
updateAboutMe(e) {
......@@ -417,7 +431,6 @@
uni.setStorageSync("editText", value)
uni.navigateTo({
url: "/pagesme/me/editAbout?type=" + type
// url:"/pagesintroduction/selectSchool/selectSchool"
})
} else {
......@@ -429,18 +442,17 @@
})
},
async getUserIno() {
const res = await this.$myRequest({
url: '/nostalgia/fruser/personalInfo',
withToken: true,
method: 'GET',
});
if (res.data.code == 200) {
this.userInfo = res.data.data;
this.waitApprovedImg = res.data.data.waitApprovedImg;
} else {
this.tipMsg = res.data.msg;
this.$refs.elm.showDialog();
}
// const res = await this.$myRequest({
// url: '/nostalgia/fruser/personalInfo',
// withToken: true,
// method: 'GET',
// });
// if (res.data.code == 200) {
// this.userInfo = res.data.data;
// this.waitApprovedImg = res.data.data.waitApprovedImg;
// } else {
// }
},
sliderChange(e) {
console.log(e)
......
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