From 14f43e929fae9ad6a2c802af62c38a8f451fecfc Mon Sep 17 00:00:00 2001 From: kron Date: Mon, 27 Oct 2025 13:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90ios=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditOption.vue | 30 ++-- src/components/PointRecord.vue | 1 - src/components/RingBarChart.vue | 3 +- src/components/ScrollList.vue | 9 +- src/pages/point-book-home.vue | 259 +++++++++++++++---------------- src/pages/point-book-list.vue | 153 ++++++++---------- src/pages/point-book-profile.vue | 114 ++++++++++++++ src/pages/point-book.vue | 134 ++++++++++++++-- src/static/app-bg6.png | Bin 0 -> 8684 bytes src/static/back-grey.png | Bin 0 -> 273 bytes src/static/email-yellow.png | Bin 0 -> 1132 bytes src/static/password-yellow.png | Bin 0 -> 687 bytes src/static/pen-yellow.png | Bin 0 -> 1289 bytes src/static/user-yellow.png | Bin 0 -> 877 bytes src/uni.scss | 2 + 15 files changed, 454 insertions(+), 251 deletions(-) create mode 100644 src/pages/point-book-profile.vue create mode 100644 src/static/app-bg6.png create mode 100644 src/static/back-grey.png create mode 100644 src/static/email-yellow.png create mode 100644 src/static/password-yellow.png create mode 100644 src/static/pen-yellow.png create mode 100644 src/static/user-yellow.png diff --git a/src/components/EditOption.vue b/src/components/EditOption.vue index 58aabaa..b7754ab 100644 --- a/src/components/EditOption.vue +++ b/src/components/EditOption.vue @@ -27,7 +27,7 @@ const props = defineProps({ default: "", }, }); -const itemTexts = ["选择弓种", "选择练习距离", "选择靶纸", "选择组/箭数"]; +const itemTexts = ["Bow Type", "Distance", "Target Type", "Sets/Arrows"]; const distances = [5, 8, 10, 18, 25, 30, 50, 60, 70]; const groupArrows = [3, 6, 12, 18]; @@ -135,22 +135,22 @@ onMounted(async () => { }" > - {{ - itemIndex !== 3 ? itemTexts[itemIndex] : "选择组" + {{ + itemIndex !== 3 ? itemTexts[itemIndex] : "Select Sets" }} - {{ + {{ value || itemTexts[itemIndex] }} - {{ - value && value > 0 ? value + "米" : itemTexts[itemIndex] + {{ + value && value > 0 ? value + "m" : itemTexts[itemIndex] }} - {{ + {{ value || itemTexts[itemIndex] }} - {{ + {{ selectedIndex !== -1 && secondSelectIndex !== -1 - ? `${selectedIndex}组/${groupArrows[secondSelectIndex]}箭` + ? `${selectedIndex}sets/${groupArrows[secondSelectIndex]}arrows` : itemTexts[itemIndex] }} @@ -186,7 +186,7 @@ onMounted(async () => { @click="onSelectItem(index)" > {{ item }} - + m - + m @@ -227,12 +227,12 @@ onMounted(async () => { @click="onSelectItem(i)" > {{ i }} - + sets 选择每组的箭数Select arrows per set { @click="onSelectSecondItem(index)" > {{ item }} - + arrows diff --git a/src/components/PointRecord.vue b/src/components/PointRecord.vue index 0df8e8d..8afdb29 100644 --- a/src/components/PointRecord.vue +++ b/src/components/PointRecord.vue @@ -68,7 +68,6 @@ onMounted(() => { display: flex; align-items: center; border-radius: 25rpx; - margin-bottom: 25rpx; height: 200rpx; border: 2rpx solid #fed848; } diff --git a/src/components/RingBarChart.vue b/src/components/RingBarChart.vue index b4d4e0d..74f55d2 100644 --- a/src/components/RingBarChart.vue +++ b/src/components/RingBarChart.vue @@ -4,7 +4,7 @@ import { ref, computed } from "vue"; const props = defineProps({ data: { type: Object, - default: () => ({}), + default: Array, }, total: { type: Number, @@ -69,6 +69,7 @@ const ringText = (ring) => { display: flex; flex-direction: column; justify-content: flex-end; + margin-top: -30rpx; } .container > view { padding: 0 10rpx; diff --git a/src/components/ScrollList.vue b/src/components/ScrollList.vue index 1e0d788..1ea4474 100644 --- a/src/components/ScrollList.vue +++ b/src/components/ScrollList.vue @@ -59,6 +59,7 @@ onShow(async () => { { > - 加载中... - {{ count === 0 ? "暂无数据" : "没有更多了" }} + Loading... + {{ count === 0 ? "No data" : "That‘s all" }} @@ -83,9 +84,7 @@ onShow(async () => { .scroll-list { width: 100%; height: 100%; -} -.tips { - height: 50rpx; + flex-direction: column; } .tips > text { color: #d0d0d0; diff --git a/src/pages/point-book-home.vue b/src/pages/point-book-home.vue index 67a7d57..da775ed 100644 --- a/src/pages/point-book-home.vue +++ b/src/pages/point-book-home.vue @@ -1,7 +1,6 @@ diff --git a/src/pages/point-book-profile.vue b/src/pages/point-book-profile.vue new file mode 100644 index 0000000..79538a9 --- /dev/null +++ b/src/pages/point-book-profile.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/src/pages/point-book.vue b/src/pages/point-book.vue index 4ae6c6b..0f56629 100644 --- a/src/pages/point-book.vue +++ b/src/pages/point-book.vue @@ -1,6 +1,9 @@