添加计分本页面分享

This commit is contained in:
kron
2025-09-22 14:55:00 +08:00
parent 0de4dc8e6d
commit 59016fe54f
4 changed files with 32 additions and 3 deletions

View File

@@ -18,8 +18,18 @@ const props = defineProps({
}); });
const onClick = () => { const onClick = () => {
if (props.onBack) props.onBack(); if (props.onBack) {
else uni.navigateBack(); props.onBack();
} else {
const pages = getCurrentPages();
if (pages.length > 1) {
uni.navigateBack();
} else {
uni.redirectTo({
url: "/pages/index",
});
}
}
}; };
const loading = ref(false); const loading = ref(false);

View File

@@ -73,6 +73,7 @@ onMounted(() => {
} }
.container > view:first-child > view:last-child { .container > view:first-child > view:last-child {
font-weight: 500; font-weight: 500;
color: #000;
} }
.labels { .labels {
align-items: flex-end !important; align-items: flex-end !important;

View File

@@ -1,6 +1,6 @@
<script setup> <script setup>
import { ref, onMounted } from "vue"; import { ref, onMounted } from "vue";
import { onShow } from "@dcloudio/uni-app"; import { onShow, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
import Container from "@/components/Container.vue"; import Container from "@/components/Container.vue";
import EditOption from "@/components/EditOption.vue"; import EditOption from "@/components/EditOption.vue";
import SButton from "@/components/SButton.vue"; import SButton from "@/components/SButton.vue";
@@ -75,6 +75,23 @@ onMounted(async () => {
expandIndex.value = 3; expandIndex.value = 3;
} }
}); });
onShareAppMessage(() => {
return {
title: "高效记录每一次射箭,深度分析助你提升!",
path: "pages/point-book-create",
imageUrl:
"https://static.shelingxingqiu.com/attachment/2025-09-22/dcz4m4nbgycqqwknrv.png",
};
});
onShareTimeline(() => {
return {
title: "高效记录每一次射箭,深度分析助你提升!",
query: "from=timeline",
imageUrl:
"https://static.shelingxingqiu.com/attachment/2025-09-22/dcz4m4nbgycqqwknrv.png",
};
});
</script> </script>
<template> <template>

View File

@@ -206,6 +206,7 @@ onLoad(async (options) => {
} }
.detail-data > view > text { .detail-data > view > text {
font-weight: 500; font-weight: 500;
color: #000;
} }
.question-mark { .question-mark {
width: 15px; width: 15px;