diff --git a/.trae/rules/project_rules.md b/.trae/rules/project_rules.md index 63d5c2b..e2c1361 100644 --- a/.trae/rules/project_rules.md +++ b/.trae/rules/project_rules.md @@ -1,3 +1,5 @@ +每次编写代码时,请你先查看我的整个目录,提供的哪些文件、组件、功能、API接口,了解我的代码风格,写出和我风格一致的代码 + ## 项目规则 1、将列表以及列表中的元素封装成组件,并使用组件的方式来组织项目。使他可以复用 2、项目中使用到的功能优先去查看uni_modules里面的组件列表,若没有则自己封装。 diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue index a76babc..e4303da 100644 --- a/components/base/tabbar.vue +++ b/components/base/tabbar.vue @@ -2,7 +2,7 @@ + @click="toPath(item, index)" class="tabbar-item"> - - - - - - - - {{ name }} - - - {{ score }} 亲密值 - {{ level }} - - + + + + + + + + {{ name }} + + + {{ score }} 亲密值 + {{ level }} + + \ No newline at end of file + .rank-item { + display: flex; + align-items: center; + justify-content: space-between; + background: #fffbe6; + border-radius: 16rpx; + margin-bottom: 18rpx; + box-shadow: 0 2rpx 8rpx 0 rgba(184, 110, 59, 0.06); + padding: 0 24rpx; + height: 100rpx; + + .rank-left { + display: flex; + align-items: center; + + .rank-icon, + .rank-num-img { + width: 38rpx; + height: 38rpx; + margin-right: 10rpx; + } + + .medal { + width: 44rpx; + height: 44rpx; + margin-right: 10rpx; + } + + .avatar { + width: 44rpx; + height: 44rpx; + border-radius: 50%; + margin-right: 14rpx; + border: 2rpx solid #ffd700; + object-fit: cover; + } + + .name { + font-size: 26rpx; + color: #222; + font-weight: 500; + } + } + + .rank-right { + display: flex; + flex-direction: column; + align-items: flex-end; + + .score { + font-size: 22rpx; + color: #b86e3b; + } + + .level { + font-size: 20rpx; + color: #fff; + background: #e6b07c; + border-radius: 8rpx; + padding: 2rpx 10rpx; + margin-top: 6rpx; + font-weight: 500; + } + } + } + \ No newline at end of file diff --git a/components/novel/novelItem.vue b/components/novel/novelItem.vue index 1a89025..f6d31ad 100644 --- a/components/novel/novelItem.vue +++ b/components/novel/novelItem.vue @@ -1,5 +1,5 @@