<template> <view class="container"> <view class="position-relative"> <view…
- User
<view class="bg-white" style="height: 710rpx;"> <view style="padding: 0 30rpx;"> <view class="d-flex flex-column bg-white user-box"> <view class="d-flex align-items-center"> <view class="avatar"> <image :src="isLogin ? member.avatar : '/static/images/mine/default.png'"></image> <view class="badge" v-if="isLogin"> <image src="/static/images/mine/level.png"></image> <view>{{ member.memberLevel }}</view> </view> </view> <view class="d-flex flex-column flex-fill overflow-hidden" style="margin-top: 20rpx;"> <view v-if="isLogin" class="font-size-lg font-weight-bold d-flex justify-content-start align-items-center" @tap="userinfo"> <view class="text-truncate">{{ member.nickname }}</view> <view class="iconfont iconarrow-right line-height-100"></view> </view> <view v-else class="font-size-lg font-weight-bold" @tap="login">请点击授权登录</view> <view class="font-size-sm text-color-assist"> 当前积分{{ isLogin ? member.value : 0 }} </view> <view class="w-100"> <progress percent="0" activeColor="#ADB838" height="8rpx" :percent="growthValue" border-radius="8rpx" /> </view> </view> </view> </view> </view> <view class="service-box"> <view class="font-size-lg text-color-base font-weight-bold" style="margin-bottom: 20rpx;">我的服务</view> <view class="row"> <view class="grid" @tap="attendance"> <view class="image"> <image src="/static/images/mine/jfqd.png"></image> </view> <view>积分签到</view> </view> <view class="grid" @tap="balance"> <view class="image"> <image src="/static/images/mine/qb.png"></image> </view> <view>会员充值</view> </view> <view class="grid" @tap="logout"> <view class="image"> <image src="/static/images/mine/qb.png"></image> </view> <view>退出登录</view> </view> </view> </view> </view> </view> - Assistant
This is a template for a user profile page in an app. It includes a background image, a user avatar with a badge for their member level, and information about their current points and growth value. It also includes a list of services, such as point sign-in and member recharge, for the user to access. The template also includes functionality for the user to login, view their profile information, and logout.
- User
- Assistant
This is a SCSS style code for a user profile page in an app. It includes styling for elements such as the background image, user avatar, badges, and service list. It also includes positioning and margin settings for different elements to create a visually appealing layout. The code uses variables for colors and font sizes for consistency and easier modification.
- User
帮我优化一下样式
- Assistant