diff --git a/src/components/EditOption.vue b/src/components/EditOption.vue index b7754ab..e489bfc 100644 --- a/src/components/EditOption.vue +++ b/src/components/EditOption.vue @@ -27,7 +27,7 @@ const props = defineProps({ default: "", }, }); -const itemTexts = ["Bow Type", "Distance", "Target Type", "Sets/Arrows"]; +const itemTexts = ["Bow Type", "Distance", "Target Type", "set/Arrows"]; const distances = [5, 8, 10, 18, 25, 30, 50, 60, 70]; const groupArrows = [3, 6, 12, 18]; @@ -120,7 +120,7 @@ onMounted(async () => { loadConfig(); } else { const config = await getPointBookConfigAPI(); - uni.setStorageSync("point-book-config", config); + uni.settorageSync("point-book-config", config); loadConfig(); } }); @@ -136,7 +136,7 @@ onMounted(async () => { > {{ - itemIndex !== 3 ? itemTexts[itemIndex] : "Select Sets" + itemIndex !== 3 ? itemTexts[itemIndex] : "Select set" }} {{ @@ -150,7 +150,7 @@ onMounted(async () => { }} {{ selectedIndex !== -1 && secondSelectIndex !== -1 - ? `${selectedIndex}sets/${groupArrows[secondSelectIndex]}arrows` + ? `${selectedIndex} set / ${groupArrows[secondSelectIndex]} arrows` : itemTexts[itemIndex] }} @@ -227,7 +227,7 @@ onMounted(async () => { @click="onSelectItem(i)" > {{ i }} - sets + set { } .distance-items > view > text:first-child, .amount-items > view > text:first-child { - width: 25px; + margin-right: 10rpx; display: block; text-align: center; } diff --git a/src/pages/point-book-detail.vue b/src/pages/point-book-detail.vue index 8dde86f..87671ca 100644 --- a/src/pages/point-book-detail.vue +++ b/src/pages/point-book-detail.vue @@ -12,11 +12,14 @@ import { getPointBookDetailAPI } from "@/apis"; const selectedIndex = ref(0); const showTip = ref(false); const showTip2 = ref(false); +const showTip3 = ref(false); const groups = ref([]); const data = ref({}); const targetId = ref(0); const targetSrc = ref(""); const arrows = ref([]); +const notes = ref(""); +const draftNotes = ref(""); const openTip = (index) => { if (index === 1) showTip.value = true; @@ -26,6 +29,13 @@ const openTip = (index) => { const closeTip = () => { showTip.value = false; showTip2.value = false; + showTip3.value = false; +}; + +const saveNote = () => { + notes.value = draftNotes.value; + draftNotes.value = ""; + showTip3.value = false; }; const onSelect = (index) => { @@ -121,7 +131,7 @@ onLoad(async (options) => { {{ Number((data.yellowRate * 100).toFixed(2)) }}% - 10 Rings + Gold Rings {{ data.tenRings }} @@ -132,6 +142,14 @@ onLoad(async (options) => { Total Rings {{ data.userTotalRing }}/{{ data.totalRing }} + + + @@ -155,18 +173,22 @@ onLoad(async (options) => { - Ring Value Distribution + Score Distribution - {{ selectedIndex === 0 ? "Rings per Set" : `Set ${selectedIndex} Rings` }} + {{ + selectedIndex === 0 ? "Rings per Set" : `Set ${selectedIndex} Rings` + }} - {{ `Set${index}` }} + {{ + `Set${index}` + }} {{ - arrow.ring === 0 - ? "X" - : arrow.ring === -1 - ? "M" - : arrow.ring + arrow.ring === 0 ? "X" : arrow.ring === -1 ? "M" : arrow.ring }} @@ -196,18 +214,40 @@ onLoad(async (options) => { Close - + Stability Description The stability of archery is measured by calculating the average distance of each arrow to other arrows. The smaller the number, the more stable the archery. This data can only be generated when the user marks the landing point.The stability of archery is measured by calculating the average + distance of each arrow to other arrows. The smaller the number, + the more stable the archery. This data can only be generated when + the user marks the landing point. Distribution Description Show the user's archery points in a practice session + + Notes + {{ notes }} +