diff --git a/src/components/PlayersRow.vue b/src/components/PlayersRow.vue
index f6372c2..6417382 100644
--- a/src/components/PlayersRow.vue
+++ b/src/components/PlayersRow.vue
@@ -115,6 +115,9 @@ defineProps({
overflow: hidden;
width: 120px;
transition: all 0.3s linear;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.avatar {
width: 40px;
diff --git a/src/components/UserHeader.vue b/src/components/UserHeader.vue
index c553737..4bdd888 100644
--- a/src/components/UserHeader.vue
+++ b/src/components/UserHeader.vue
@@ -35,7 +35,12 @@ const toUserPage = () => {
-
+
{{ user.nickName }}
@@ -60,12 +65,13 @@ const toUserPage = () => {
src="../static/global-rank.png"
mode="widthFix"
/>
- 本赛季全国
- 本赛季
+ 暂未上榜
+
@@ -82,7 +88,7 @@ const toUserPage = () => {
.user-details {
display: flex;
flex-direction: column;
- padding-left: 5px;
+ padding-left: 10px;
}
.user-name {
@@ -92,7 +98,7 @@ const toUserPage = () => {
}
.user-name > text:first-child {
- font-size: 16px;
+ font-size: 13px;
max-width: 100px;
white-space: nowrap;
overflow: hidden;
@@ -115,7 +121,7 @@ const toUserPage = () => {
}
.level-tag-first {
- width: 45px;
+ width: 40px;
background: #5f51ff;
}
@@ -127,7 +133,7 @@ const toUserPage = () => {
.level-tag,
.rank-tag {
border-radius: 12px;
- font-size: 10px;
+ font-size: 9px;
}
.rank-tag {
@@ -156,6 +162,8 @@ const toUserPage = () => {
position: relative;
color: #b3b3b3;
padding-left: 8px;
+ display: flex;
+ flex-direction: column;
}
.rank-info-image {
diff --git a/src/pages/first-try.vue b/src/pages/first-try.vue
index 7afc4c0..ca21a71 100644
--- a/src/pages/first-try.vue
+++ b/src/pages/first-try.vue
@@ -26,6 +26,7 @@ const stepButtonTexts = [
"",
"退出新手试炼",
];
+const title = ref("新手试炼场");
const start = ref(false);
const practiseResult = ref({});
const power = ref(0);
@@ -68,12 +69,16 @@ onUnmounted(() => {
const nextStep = async () => {
if (step.value === 0) {
step.value = 1;
+ title.value = "凹造型";
} else if (step.value === 1) {
btnDisabled.value = true;
step.value = 2;
+ title.value = "感知距离";
} else if (step.value === 2) {
step.value = 3;
+ title.value = "小试牛刀";
} else if (step.value === 3) {
+ title.value = "新手试炼场";
scores.value = [];
await createPractise(total);
step.value = 4;
@@ -96,9 +101,14 @@ const onClose = () => {
-
+
-
+
hi,{{ user.nickName }}
,这是新人必刷小任务,0基础小白也能快速掌握弓箭技巧和游戏规则哦~:)
diff --git a/src/pages/my-device.vue b/src/pages/my-device.vue
index 5651cc0..371158e 100644
--- a/src/pages/my-device.vue
+++ b/src/pages/my-device.vue
@@ -192,6 +192,7 @@ const backToHome = () => {
width: 40%;
color: #fff;
font-size: 14px;
+ margin: 35% 0;
}
.scan-code > view:first-child > image {
width: 100%;
@@ -270,6 +271,13 @@ const backToHome = () => {
margin-bottom: 5px;
border-radius: 10px;
}
+.device-binded > view > text {
+ width: 120px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ text-align: center;
+}
.device-binded > image {
width: 16vw;
margin: 0 20px;
diff --git a/src/pages/user.vue b/src/pages/user.vue
index 82db955..2a36d45 100644
--- a/src/pages/user.vue
+++ b/src/pages/user.vue
@@ -7,7 +7,7 @@ import Avatar from "@/components/Avatar.vue";
import useStore from "@/store";
import { storeToRefs } from "pinia";
const store = useStore();
-const { user } = storeToRefs(store);
+const { user, device } = storeToRefs(store);
const { updateUser } = store;
const toOrderPage = () => {
@@ -17,6 +17,12 @@ const toOrderPage = () => {
};
const toFristTryPage = () => {
+ if (!device.value.deviceId) {
+ return uni.showToast({
+ title: "请先绑定设备",
+ icon: "none",
+ });
+ }
uni.navigateTo({
url: "/pages/first-try",
});