update:英文版代码备份
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script setup>
|
||||
import { t } from "@/locales";
|
||||
|
||||
import useStore from "@/store";
|
||||
import { storeToRefs } from "pinia";
|
||||
const { user } = storeToRefs(useStore());
|
||||
@@ -18,8 +20,8 @@ const rowCount = new Array(6).fill(0);
|
||||
|
||||
const getRingText = (arrow) => {
|
||||
if (!arrow) return "-";
|
||||
if (arrow.ringX && arrow.ring) return "X环";
|
||||
return `${Number(arrow.ring) || 0}环`;
|
||||
if (arrow.ringX && arrow.ring) return t('x');
|
||||
return t('value_pts', { p0: Number(arrow.ring) || 0 });
|
||||
};
|
||||
const isMember = (player = {}) => player.vip === true || player.sVip === true;
|
||||
|
||||
@@ -71,7 +73,7 @@ const getMemberNicknameClass = (player = {}) => [
|
||||
scores
|
||||
.map((s) => (s || []).reduce((last, next) => last + next.ring, 0))
|
||||
.reduce((last, next) => last + next, 0)
|
||||
}}环</text
|
||||
}}{{ t('pts') }}</text
|
||||
>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user