|
|
<template> |
|
|
<view class="body"> |
|
|
<view class="head"> |
|
|
<image class="iamges" :src="form.headPhoto" mode=""></image> |
|
|
<view class="content"> |
|
|
<view class="name"> |
|
|
<view class="name-item"> |
|
|
{{form.nickname}} |
|
|
</view> |
|
|
<image src="../../static/320.png" mode="" @click="navedit"></image> |
|
|
</view> |
|
|
<view class="idnum"> |
|
|
<view class="num"> |
|
|
id:{{form.id}} |
|
|
</view> |
|
|
<image src="../../static/342.png" mode=""></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="bar"> |
|
|
<view class="item-bar" @click="mylike"> |
|
|
<image src="../../static/278.png" mode=""></image> |
|
|
<view class="txst"> |
|
|
いいね |
|
|
</view> |
|
|
</view> |
|
|
<view class="item-bar" @click="mycollection"> |
|
|
<image src="../../static/277.png" mode=""></image> |
|
|
<view class="txst"> |
|
|
コレクション |
|
|
</view> |
|
|
</view> |
|
|
<view class="item-bar" @click="set"> |
|
|
<image src="../../static/279.png" mode=""></image> |
|
|
<view class="txst"> |
|
|
設定 |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item" v-for="(item,index) in list" :key=index> |
|
|
<view class="item-content"> |
|
|
<view class="item-info"> |
|
|
<image :src="item.url" mode=""></image> |
|
|
<view class="item-text"> |
|
|
<view class="a"> |
|
|
{{item.pro}} <text class="name">{{item.name}}</text> |
|
|
</view> |
|
|
<view class="b"> |
|
|
{{item.value}} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<image src="../../static/207.png" mode="" @click="nav"></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
|
|
|
<script> |
|
|
export default { |
|
|
data() { |
|
|
return { |
|
|
form:{}, |
|
|
list: [{ |
|
|
url: "../../static/281.png", |
|
|
name: "Name", |
|
|
value: "辛い目の洋子", |
|
|
pro: "名前" |
|
|
}, |
|
|
{ |
|
|
url: "../../static/287.png", |
|
|
name: "Student Year", |
|
|
value: "1学年", |
|
|
pro: "学年" |
|
|
}, |
|
|
{ |
|
|
url: "../../static/292.png", |
|
|
name: "Student ID", |
|
|
value: "012682", |
|
|
pro: "学籍番号" |
|
|
}, |
|
|
{ |
|
|
url: "../../static/300.png", |
|
|
name: "Department", |
|
|
value: "これは資料です", |
|
|
pro: "学部学科" |
|
|
}, |
|
|
{ |
|
|
url: "../../static/307.png", |
|
|
name: "Club", |
|
|
value: "これは部族です", |
|
|
pro: "課外活動" |
|
|
},{ |
|
|
url: "../../static/281.png", |
|
|
name: "Say Something", |
|
|
value: "ここは個性的なサインです", |
|
|
pro: "一言" |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
}, |
|
|
onShow() { |
|
|
this.userinfo(); |
|
|
}, |
|
|
methods: { |
|
|
//查询用户信息 |
|
|
async userinfo() { |
|
|
let id=uni.getStorageSync("pass") |
|
|
const res = await this.$myRequest({ |
|
|
url: '/api/foreignAuth/userinfo?id='+id, |
|
|
header: { |
|
|
token: uni.getStorageSync("token"), |
|
|
Authorization: uni.getStorageSync("Authorization"), |
|
|
}, |
|
|
}) |
|
|
if (res.data.code == 200) { |
|
|
this.form=res.data.data |
|
|
this.list[0].value=res.data.data.nickname |
|
|
this.list[1].value=res.data.data.studentYear+"学年" |
|
|
this.list[2].value=res.data.data.studentNumber |
|
|
this.list[3].value=res.data.data.department |
|
|
this.list[4].value=res.data.data.club |
|
|
this.list[5].value=res.data.data.signature |
|
|
} |
|
|
}, |
|
|
//跳转我点赞页面 |
|
|
mylike(){ |
|
|
uni.navigateTo({ |
|
|
url:"./mylike" |
|
|
}) |
|
|
}, |
|
|
//跳转我的收藏 |
|
|
mycollection(){ |
|
|
uni.navigateTo({ |
|
|
url:"./collection" |
|
|
}) |
|
|
}, |
|
|
//跳转设置 |
|
|
set(){ |
|
|
uni.navigateTo({ |
|
|
url:"./setting" |
|
|
}) |
|
|
}, |
|
|
//跳转编辑页面 |
|
|
navedit(){ |
|
|
uni.navigateTo({ |
|
|
url:"./updateinfo" |
|
|
}) |
|
|
}, |
|
|
//跳转编辑页面 |
|
|
nav(){ |
|
|
uni.navigateTo({ |
|
|
url:"./updateinfoone" |
|
|
}) |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
|
|
|
<style lang="scss"> |
|
|
.body { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
align-items: center; |
|
|
background-color: #000000; |
|
|
min-height: 1340rpx; |
|
|
font-family: Arial-Regular; |
|
|
|
|
|
.head { |
|
|
display: flex; |
|
|
width: 100%; |
|
|
height: 196rpx; |
|
|
color: #FFFFFF; |
|
|
|
|
|
image { |
|
|
width: 196rpx; |
|
|
height: 196rpx; |
|
|
margin-left: 36rpx; |
|
|
margin-right: 48rpx; |
|
|
|
|
|
|
|
|
} |
|
|
.iamges{ |
|
|
border: 4rpx solid #FFFFFF; |
|
|
border-radius: 98rpx; |
|
|
} |
|
|
.content { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
justify-content: center; |
|
|
|
|
|
.name { |
|
|
font-size: 40rpx; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
|
|
|
image { |
|
|
width: 62rpx; |
|
|
height: 48rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
.idnum { |
|
|
margin-top: 16rpx; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
|
|
|
image { |
|
|
width: 36rpx; |
|
|
height: 36rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.bar { |
|
|
display: flex; |
|
|
margin-top: 66rpx; |
|
|
font-size: 24rpx; |
|
|
margin-bottom: 24rpx; |
|
|
|
|
|
.item-bar { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
align-items: center; |
|
|
height: 96rpx; |
|
|
width: 250rpx; |
|
|
border-right: 2rpx solid #545454; |
|
|
color: #FFFFFF; |
|
|
|
|
|
image { |
|
|
margin-bottom: 14rpx; |
|
|
width: 48rpx; |
|
|
height: 48rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
.item { |
|
|
width: 678rpx; |
|
|
height: 136rpx; |
|
|
background-color: #1C1C1C; |
|
|
border-radius: 16rpx; |
|
|
color: #FFFFFF; |
|
|
margin-top: 24rpx; |
|
|
|
|
|
.item-content { |
|
|
width: 678rpx; |
|
|
height: 136rpx; |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
align-items: center; |
|
|
|
|
|
image { |
|
|
width: 36rpx; |
|
|
height: 36rpx; |
|
|
margin-left: 36rpx; |
|
|
margin-right: 30rpx; |
|
|
} |
|
|
|
|
|
.item-info { |
|
|
align-items: center; |
|
|
display: flex; |
|
|
|
|
|
image { |
|
|
width: 48rpx; |
|
|
height: 48rpx; |
|
|
margin-right: 28rpx; |
|
|
} |
|
|
|
|
|
.item-text { |
|
|
.a { |
|
|
font-size: 28rpx; |
|
|
|
|
|
.name { |
|
|
margin-left: 26rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
.b { |
|
|
margin-top: 8rpx; |
|
|
font-size: 22rpx; |
|
|
color: #B4B4B4; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
</style>
|
|
|
|