123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <template>
- <view class="user">
- <header>
- <view class="title">个人中心</view>
- </header>
- <view class="card-info">
- <view class="top-info">
- <view class="img-box">
- <img src="../../../static/new-images/user/header.jpg" alt="">
- </view>
- <view class="text">
- <view class="name">韦忠林</view>
- <view class="label">
- <p>商家</p>
- <span>18811639900</span>
- </view>
- </view>
- <view class="bg-box">
- 个人管理
- </view>
- </view>
- <view class="perfect">
- <view class="bg"></view>
- <button class="btn">去完善</button>
- </view>
- </view>
- <main>
- <view class="info-list">
- <view class="info-item" v-for="(item, index) in infoList" :key="index">
- <view class="left">{{ item }}</view>
- <p>
- <template v-if="index < 2">
- <span>去认证</span>
- </template>
- <span><tui-icon name="arrowright" size="27" color="#B9B9B9"></tui-icon></span>
- </p>
- </view>
- </view>
- <view class="setUp">
- <view class="left">设置</view>
- <p>
- <span><tui-icon name="arrowright" size="27" color="#B9B9B9"></tui-icon></span>
- </p>
- </view>
- </main>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- infoList: ['个人认证信息', '企业认证信息', '商品管理', '订单管理', '会员管理', '信息管理']
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- page {
- background-color: #F5F5F5;
- }
- .user {
- header {
- padding: 30rpx 30rpx 25rpx;
- .title {
- font-size: 42rpx;
- font-weight: 700;
- }
- }
- .card-info {
- background-color: #fff;
- padding: 30rpx 0rpx 40rpx 40rpx;
- box-sizing: border-box;
- .top-info {
- display: flex;
- align-items: center;
- position: relative;
- margin-bottom: 40rpx;
- .img-box {
- width: 112rpx;
- height: 112rpx;
- margin-right: 25rpx;
- img {
- width: 100%;
- height: 100%;
- display: block;
- border-radius: 50%;
- }
- }
- .text {
- .name {
- font-size: 36rpx;
- font-weight: 600;
- margin-bottom: 15rpx;
- }
- .label {
- display: flex;
- align-items: center;
- gap: 10rpx;
- p {
- padding: 5rpx 20rpx;
- color: #fff;
- background-color: #FF6619;
- font-size: 20rpx;
- border-radius: 10rpx;
- }
- span {
- color: #969699;
- font-size: 22rpx;
- }
- }
- }
- .bg-box {
- background: url("../../../static/new-images/user/bg.png") no-repeat center;
- background-size: 100% 100%;
- width: 160rpx;
- height: 64rpx;
- text-align: center;
- line-height: 64rpx;
- color: #fff;
- position: absolute;
- top: 0;
- right: 0rpx;
- }
- }
- .perfect {
- padding-right: 30rpx;
- width: 100%;
- height: 130rpx;
- box-sizing: border-box;
- position: relative;
- .bg {
- width: 100%;
- height: 100%;
- background: url("../../../static/new-images/user/go.png") no-repeat center;
- background-size: 100% 100%;
- }
- .btn {
- position: absolute;
- top: 32rpx;
- right: 45rpx;
- background: linear-gradient(to right, #DCC5AD, #CDAC8D);
- color: #373535;
- text-align: center;
- width: 145rpx;
- height: 55rpx;
- line-height: 55rpx;
- font-size: 24rpx;
- }
- }
- }
- .info-list {
- margin-top: 30rpx;
- padding: 0 20rpx;
- box-sizing: border-box;
- background-color: #fff;
- }
- .info-item,
- .setUp {
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1rpx solid #E8E8E9;
- padding: 25rpx 10rpx;
- font-size: 30rpx;
- &:last-of-type{
- border-bottom: 0rpx;
- }
- p {
- display: flex;
- align-items: center;
- color: #B9B9B9;
- }
- }
- .setUp {
- background-color: #fff;
- margin-top: 24rpx;
- border-bottom: 0rpx;
- padding: 25rpx 30rpx
- }
- }</style>
|