计分详情里添加注释功能
This commit is contained in:
@@ -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 () => {
|
||||
>
|
||||
<view @click="() => onExpand(itemIndex, !expand)">
|
||||
<text :style="{ opacity: expand ? 1 : 0 }">{{
|
||||
itemIndex !== 3 ? itemTexts[itemIndex] : "Select Sets"
|
||||
itemIndex !== 3 ? itemTexts[itemIndex] : "Select set"
|
||||
}}</text>
|
||||
<block>
|
||||
<text :style="{ opacity: expand ? 0 : 1 }" v-if="itemIndex === 0">{{
|
||||
@@ -150,7 +150,7 @@ onMounted(async () => {
|
||||
}}</text>
|
||||
<text :style="{ opacity: expand ? 0 : 1 }" v-if="itemIndex === 3">{{
|
||||
selectedIndex !== -1 && secondSelectIndex !== -1
|
||||
? `${selectedIndex}sets/${groupArrows[secondSelectIndex]}arrows`
|
||||
? `${selectedIndex} set / ${groupArrows[secondSelectIndex]} arrows`
|
||||
: itemTexts[itemIndex]
|
||||
}}</text>
|
||||
</block>
|
||||
@@ -227,7 +227,7 @@ onMounted(async () => {
|
||||
@click="onSelectItem(i)"
|
||||
>
|
||||
<text>{{ i }}</text>
|
||||
<text>sets</text>
|
||||
<text>set</text>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
@@ -330,7 +330,7 @@ onMounted(async () => {
|
||||
}
|
||||
.distance-items > view > text:first-child,
|
||||
.amount-items > view > text:first-child {
|
||||
width: 25px;
|
||||
margin-right: 10rpx;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user