细节完善
This commit is contained in:
@@ -14,7 +14,11 @@ onShow(async () => {
|
||||
show.value = isGaming;
|
||||
});
|
||||
const onClick = async () => {
|
||||
const isGaming = await isGamingAPI();
|
||||
show.value = isGaming;
|
||||
if (isGaming) {
|
||||
const result = await getCurrentGameAPI();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -140,6 +140,7 @@ onLoad(async (options) => {
|
||||
}
|
||||
if (battleInfo.fireTime > 0) {
|
||||
const remain = Date.now() / 1000 - battleInfo.fireTime;
|
||||
console.log(`当前箭剩余${remain}秒`);
|
||||
if (remain > 0 && remain < 15) {
|
||||
// 等渲染好再通知
|
||||
setTimeout(() => {
|
||||
@@ -165,6 +166,7 @@ onLoad(async (options) => {
|
||||
scores.value.length ? "下半场-" : "上半场-"
|
||||
}请连续射出6支箭`;
|
||||
const remain = Date.now() / 1000 - battleInfo.startTime;
|
||||
console.log(`当前局剩余${remain}秒`);
|
||||
if (remain <= 90) {
|
||||
setTimeout(() => {
|
||||
uni.$emit("update-ramain", remain);
|
||||
|
||||
@@ -73,6 +73,7 @@ onLoad(async (options) => {
|
||||
scores.value.length ? "下半场-" : "上半场-"
|
||||
}请连续射出6支箭`;
|
||||
const remain = Date.now() / 1000 - battleInfo.startTime;
|
||||
console.log(`当前局剩余${remain}秒`);
|
||||
if (remain <= 90) {
|
||||
setTimeout(() => {
|
||||
uni.$emit("update-ramain", remain);
|
||||
|
||||
@@ -106,6 +106,7 @@ onLoad(async (options) => {
|
||||
}
|
||||
}
|
||||
if (battleInfo.fireTime > 0) {
|
||||
console.log(`当前箭剩余${remain}秒`);
|
||||
const remain = Date.now() / 1000 - battleInfo.fireTime;
|
||||
if (remain > 0 && remain <= 15) {
|
||||
// 等渲染好再通知
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 9.7 KiB |
Reference in New Issue
Block a user