123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <template>
- <view class="base-container">
- <view class="user-info">
- <view class="user-left">
- <image class="avatar" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></image>
- <view class="info">
- <text class="name">听妈妈的话</text>
- <view class="text">这是您使用飞鸟有味的第15天</view>
- </view>
- </view>
- <view class="user-right">收货地址</view>
- </view>
- <view class="grid-wrap">
- <view class="grid-item ">
- <view class="grid-name">守护兑换</view>
- <text class="grid-text">积累能量获大礼</text>
- <image class="image" :src="`${config.BASIC_IMG}img/gift.png`"></image>
- </view>
- <view class="grid-item coupon">
- <view class="grid-name">优惠券</view>
- <text class="grid-text">满100减50</text>
- <image class="icon" :src="`${config.BASIC_IMG}img/coupon.png`"></image>
- </view>
- </view>
- <view class="list-wrap">
- <view class="list-item list-card">
- <view class="card-head">
- <text class="name">我的订单</text>
- <text>></text>
- </view>
- <view class="card-cont">
- <view class="list-item">
- 123
- </view>
- </view>
- </view>
- <view class="list-item list-card">
- <text class="name">我的守护</text>
- <text>></text>
- </view>
- <view class="list-item">
- <text class="name">联系客服</text>
- <up-icon name="arrow-right"></up-icon>
- </view>
- <view class="list-item">
- <text class="name">意见反馈</text>
- <text>></text>
- </view>
- </view>
- </view>
- </template>
- <script setup>
- import config from "@/api/config.js"
- </script>
- <style lang="scss" scoped>
- .base-container {
- .user-info {
- background: #fff;
- border-radius: 16rpx;
- padding: 24rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .user-left{
- display: flex;
- align-items: center;
- .avatar{
- width: 92rpx;
- height: 92rpx;
- margin-right: 28rpx;
- border-radius: 50%;
- }
- .info{
- .name{
- font-family: 'PangMenZhengDao';
- }
- .text{
- font-size: 24rpx;
- }
- }
- }
- .user-right{
- font-size: 24rpx;
- padding: 12rpx 32rpx;
- border-radius: 50rpx;
- color: #000;
- background: #FFD95E;
- font-weight: 500;
- }
- }
- .grid-wrap{
- display: flex;
- margin-top: 20rpx;
- .grid-item{
- padding: 20rpx 28rpx;
- flex: 1;
- border-radius: 16rpx;
- border: 2rpx solid #FFFFFF;
- background-image: linear-gradient(180deg,#FFECAE,#FFFFFF);
- line-height: 42rpx;
- position: relative;
- &.coupon{
- margin-left: 18rpx;
- background-image: linear-gradient(180deg,#FFDFC5,#FFFFFF);
- }
- .grid-name{
- font-family: 'PangMenZhengDao';
- }
- .grid-text{
- font-size: 24rpx;
- }
- .image{
- position: absolute;
- bottom: 0;
- right: 0;
- width: 110rpx;
- height: 120rpx;
- }
- .icon{
- position: absolute;
- bottom: 0;
- right: 0;
- width: 110rpx;
- height: 110rpx
- }
- }
- }
- .list-wrap{
- .list-item{
- background: #fff;
- border-radius: 10rpx;
- margin-top: 20rpx;
- padding: 26rpx 20rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .name{
- font-weight: 500;
- }
- }
- }
- }
- </style>
|