demingshangjia/pages/user/index.vue

100 lines
2.4 KiB
Vue
Raw Normal View History

2020-06-12 15:08:37 +08:00
<template>
<view class="user">
2020-06-13 17:36:24 +08:00
<view class="head" @click="toOthersPage('info')">
2020-06-12 15:08:37 +08:00
<view class="info">
<image></image>
<view class="name">
<text>萨大赛</text>
2020-06-12 18:05:39 +08:00
<text>账号123456789</text>
<text>个性签名为梦努力</text>
2020-06-12 15:08:37 +08:00
</view>
</view>
2020-06-12 18:05:39 +08:00
<image src="/static/image/user/1.png"></image>
2020-06-12 15:08:37 +08:00
</view>
2020-06-12 18:05:39 +08:00
<view class="nav" @click="toOthersPage('fans')">
<text>我的粉丝</text>
<image src="/static/image/user/1.png"></image>
</view>
2020-06-13 17:36:24 +08:00
<view class="nav" @click="toOthersPage('content')">
2020-06-12 18:05:39 +08:00
<text>内容管理</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="nav" @click="toOthersPage('complaint')">
<text>骑手投诉</text>
<image src="/static/image/user/1.png"></image>
</view>
2020-06-12 15:08:37 +08:00
</view>
</template>
<script>
export default {
2020-06-12 18:05:39 +08:00
name:"user",
methods: {
toOthersPage(url) {
uni.navigateTo({
url: '/pages/user/' + url
});
}
},
2020-06-12 15:08:37 +08:00
}
</script>
<style lang="scss" scoped>
.user{
2020-06-12 18:05:39 +08:00
min-height: calc(100vh - var(--window-top));
background: #ececec;
2020-06-12 15:08:37 +08:00
.head{
width: 100%;
height: 220rpx;
background-color: #FF780F;
padding: 0 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
.info{
display: flex;
align-items: center;
>image{
width: 110rpx;
height: 110rpx;
border-radius: 50%;
2020-06-12 18:05:39 +08:00
background-color: #0f0;
2020-06-12 15:08:37 +08:00
}
.name{
font-size: 24rpx;
color: #fff;
display: flex;
flex-direction: column;
margin-left: 26rpx;
>text{
margin-top: 14rpx;
}
>text:first-child{
font-size: 28rpx;
margin-top: 0;
}
}
}
>image{
width: 12rpx;
height: 20rpx;
}
}
2020-06-12 18:05:39 +08:00
.nav{
width: 100%;
height: 100rpx;
display: flex;
padding: 30rpx;
align-items: center;
justify-content: space-between;
font-size: 30rpx;
margin-bottom: 2rpx;
color:#333;
background-color: #fff;
>image{
width: 13rpx;
height: 25rpx;
}
}
2020-06-12 15:08:37 +08:00
}
</style>