This commit is contained in:
kron
2025-07-01 23:07:47 +08:00
parent 606de53579
commit d2aa87e91c
4 changed files with 18 additions and 13 deletions

View File

@@ -1,9 +1,8 @@
<script setup>
import { ref, onMounted } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import { getGameAPI } from "@/apis";
import Avatar from "@/components/Avatar.vue";
import { getHomeData } from "@/apis";
import { getGameAPI, getHomeData } from "@/apis";
import { topThreeColors } from "@/constants";
import useStore from "@/store";
import { storeToRefs } from "pinia";
@@ -145,6 +144,7 @@ const checkBowData = () => {
</block>
<view class="battle-e">
<image src="../static/row-yellow-bg.png" mode="widthFix" />
<Avatar v-if="data.mode === 1" :src="user.avatar" :size="40" />
<text v-if="data.gameMode === 1"
>经验 {{ totalPoints > 0 ? "+" + totalPoints : totalPoints }}</text
>
@@ -221,19 +221,20 @@ const checkBowData = () => {
.battle-e {
width: 100%;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 20px;
}
.battle-e > image {
position: absolute;
width: 100vw;
top: 45%;
}
.battle-e > text {
position: absolute;
width: 100%;
position: relative;
font-size: 30px;
color: #fff;
text-align: center;
top: 54%;
margin-left: 10px;
}
.description {
margin: 50px 0;