dengjie commit : 完善我的页面和我的发布页面样式初步完成
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<template>
|
||||
<view class="my_avatar">
|
||||
<view style="border: 1px solid #EEEEEE;border-radius: 50rpx;">
|
||||
<u--image :src="avatar" width="100rpx" height="100rpx" shape="circle">
|
||||
</u--image>
|
||||
<u-avatar :src="avatar" size="100rpx" shape="circle"></u-avatar>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;margin-bottom: 4rpx;">
|
||||
<u--image v-if="show==false" :src="normal" width="84rpx" height="30rpx">
|
||||
@@ -10,20 +9,46 @@
|
||||
<u--image v-else :src="VIP" width="84rpx" height="30rpx">
|
||||
</u--image>
|
||||
</view>
|
||||
<text>顾发航</text>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<text style="margin-right: 8rpx;">顾发航</text>
|
||||
<u--image v-if="showEdit==true" src="/static/my/wd_icon_bj.png" width="22rpx" height="22rpx"
|
||||
@click="changeAvatar()">
|
||||
</u--image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "myAvatar",
|
||||
props: {
|
||||
center: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
avatar: '/static/my/avatar.png',
|
||||
showEdit: true,
|
||||
avatar: 'https://cdn.uviewui.com/uview/album/2.jpg',
|
||||
normal: '/static/my/wo_icon_pthy.png',
|
||||
VIP: '/static/my/wo_icon_vip.png',
|
||||
};
|
||||
},
|
||||
created() {
|
||||
if (this.center != false) {
|
||||
this.showEdit = false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//修改头像
|
||||
changeAvatar() {
|
||||
uni.navigateTo({
|
||||
url: '../../packageMy/changeAvatar/changeAvatar'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -16,10 +16,15 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "form",
|
||||
name: "myForm",
|
||||
data() {
|
||||
return {
|
||||
|
||||
model: {
|
||||
userInfo: {
|
||||
name: '',
|
||||
phone: '',
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
{{item.desc}}
|
||||
</view>
|
||||
<view class="releaseDate">
|
||||
<u-image src="/static/products/sy_icon_sjf.png" width="22rpx" height="22rpx"
|
||||
<u-image src="/static/products/xp_icon_sjf.png" width="22rpx" height="22rpx"
|
||||
:lazy-load="true">
|
||||
</u-image>
|
||||
<text class="release">发布日期:</text>
|
||||
|
||||
Reference in New Issue
Block a user