You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
2.3 KiB

1 year ago
<template>
1 year ago
<view class="container">
<image class="bkg" mode="aspectFill" src="~@/static/me/bkg.png"></image>
<view class="top">
1 year ago
<image class="avatar" mode="aspectFit" :src="vuex_user.headimgurl"></image>
1 year ago
<view class="info">
1 year ago
<view class="info-name">{{ vuex_user.nickname || '微信用户' }}</view>
<view class="info-mobile">手机号{{ vuex_user.mobile || '' }}</view>
1 year ago
</view>
</view>
1 year ago
<view class="panel panel1">
<view class="tab" v-for="i in 5">
<image class="tab__icon" mode="aspectFit" src="~@/static/index/jiuyifuwu.png"></image>
<view>陪诊订单</view>
</view>
</view>
<view class="panel panel2">
<view class="row" v-for="i in 4">
<image class="row__icon" mode="aspectFit" src="~@/static/index/block1.png"></image>
<view>我要分享</view>
</view>
</view>
1 year ago
<tabbar />
</view>
</template>
<script>
import Tabbar from "@/component/Tabbar/Tabbar.vue";
export default {
components: {
Tabbar
},
data() {
return {};
}
}
</script>
<style lang="scss">
1 year ago
.container {
1 year ago
min-height: 100vh;
1 year ago
position: relative;
1 year ago
background: #f4efef;
1 year ago
.bkg {
width: 100vw;
z-index: 0;
height: 550rpx;
position: absolute;
top: 0;
left: 0;
}
1 year ago
1 year ago
.top {
1 year ago
display: flex;
align-items: center;
position: relative;
padding: 4vh 25rpx 0;
1 year ago
.avatar {
1 year ago
width: 100rpx;
height: 100rpx;
border-radius: 100%;
background: #fff;
padding: 10rpx;
object-fit: cover;
}
.info {
padding-left: 40rpx;
&-name {
font-weight: 600;
}
}
}
.panel {
position: relative;
background: #fff;
border-radius: 10rpx;
margin: 40rpx 25rpx 0;
padding: 28rpx 25rpx;
}
.panel1 {
display: grid;
grid-gap: 24rpx;
grid-template-columns: repeat(3, 1fr);
.tab {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&__icon {
width: 80rpx;
height: 80rpx;
margin-bottom: 10rpx;
}
}
}
.panel2 {
.row {
display: flex;
padding: 20rpx 10rpx;
border-bottom: 2rpx #aaa solid;
1 year ago
1 year ago
&__icon {
width: 40rpx;
height: 40rpx;
margin-right: 20rpx;
}
1 year ago
}
}
}
1 year ago
</style>