smart-app alpha 版本

This commit is contained in:
zhuoda
2024-03-10 22:26:32 +08:00
parent d64b769d40
commit 728ddb9a7e
295 changed files with 20261 additions and 1 deletions

View File

@@ -0,0 +1,112 @@
<template>
<!-- 顶部背景 -->
<view class="nav-container">
<view class="title"> 我的 </view>
</view>
<!-- 用户信息 -->
<view class="user-info-box">
<view class="user-icon">
<image
:src="'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F4d40b566-1f0a-4f8d-bc97-c513df8775b3%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1708226948&t=a9a155669b60f13d6a32c00de2477f22'"
class="user-image"
>
</image>
</view>
<view class="user-info">
<view class="user-name">{{ actualName }}</view>
<view class="user-phone">{{ phone }}</view>
</view>
<view class="vip-flag">
<image src="/@/static/images/mine/no-vip-flag.png" mode=""></image>
</view>
</view>
</template>
<script setup>
import { useUserStore } from '/@/store/modules/system/user';
import { computed } from 'vue';
const actualName = computed(() => {
return useUserStore().actualName;
});
const phone = computed(() => {
return useUserStore().phone;
});
</script>
<style scoped lang="scss">
.nav-container {
flex-shrink: 0;
width: 100%;
height: 312rpx;
background: url('@/static/images/mine/top-background.png') center/100% no-repeat;
position: relative;
.title {
text-align: center;
margin-top: 100rpx;
font-size: 34rpx;
color: #fff;
font-weight: bold;
}
}
.user-info-box {
z-index: 10;
margin: -53px 12px 0;
background: #ffffff;
border-radius: 6px;
box-shadow: 0px 3px 4px 0px rgba(24, 144, 255, 0.06);
backdrop-filter: blur(5.98px);
padding: 20px 15px;
display: flex;
flex-direction: row;
align-items: center;
.user-icon {
width: 58px;
height: 58px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
border-radius: 29px;
background-color: white;
.user-image {
width: 54px;
height: 54px;
border-radius: 27px;
}
}
.user-info {
display: flex;
flex-direction: column;
align-items: flex-start;
flex-shrink: 0;
margin: 5px auto 0 12px;
align-self: flex-start;
.user-name {
height: 25px;
font-size: 18px;
font-weight: 600;
text-align: center;
color: #323333;
}
.user-phone {
margin-top: 4px;
height: 20px;
font-size: 14px;
font-weight: 400;
text-align: left;
color: #777777;
line-height: 20px;
}
}
.vip-flag {
align-self: flex-start;
width: 83px;
height: 29px;
margin: 3px 0 0 auto;
image {
width: 100%;
height: 100%;
}
}
}
</style>