添加计分本页面分享
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user