diff --git a/src/components/EditOption.vue b/src/components/EditOption.vue
index e21f9bf..91af9c8 100644
--- a/src/components/EditOption.vue
+++ b/src/components/EditOption.vue
@@ -1,5 +1,5 @@
+
+
+
+
+
+
+
+ openTip(1)"
+ >
+ 落点稳定性
+
+
+ {{ Number((data.stability || 0).toFixed(2)) }}
+
+
+ 黄心率
+ {{ Number((data.yellowRate * 100).toFixed(2)) }}%
+
+
+ 10环数
+ {{ data.tenRings }}
+
+
+ 平均环数
+ {{ Number((data.averageRing || 0).toFixed(2)) }}
+
+
+ 总环数
+ {{ data.userTotalRing }}/{{ data.totalRing }}
+
+
+
+
+ 落点分布
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ index }}:
+ {{ item.list.reduce((acc, cur) => acc + cur.ring, 0) }}
+ 环
+
+
+
+ {{
+ arrow.ring === 0 ? "X" : arrow.ring === -1 ? "M" : arrow.ring
+ }}
+
+
+
+
+ 开启我的弓箭记录
+
+
+
+
+ 落点稳定性说明
+ 通过计算每支箭与其他箭的平均距离衡一量射箭的稳定性,数字越小则说明射箭越稳定。该数据只能在用户标记落点的情况下生成。
+
+
+ 落点分布说明
+ 展示用户某次练习中射箭的点位
+
+
+
+
+
+
+
diff --git a/src/pages/point-book-detail.vue b/src/pages/point-book-detail.vue
index 9121582..2ce93f8 100644
--- a/src/pages/point-book-detail.vue
+++ b/src/pages/point-book-detail.vue
@@ -93,8 +93,7 @@ const shareImage = async () => {
onLoad(async (options) => {
if (options.id) {
- const result = await getPointBookDetailAPI(options.id || 194);
- console.log(result);
+ const result = await getPointBookDetailAPI(options.id || 195);
record.value = result;
notes.value = result.remark || "";
const config = uni.getStorageSync("point-book-config");
@@ -112,7 +111,7 @@ onLoad(async (options) => {
});
onShareAppMessage(async () => {
- const imageUrl = await generateShareCardImage(
+ const imageUrl = await generateShareCard(
"shareCardCanvas",
record.value.recordDate,
data.value.userTotalRing,
@@ -120,12 +119,12 @@ onShareAppMessage(async () => {
);
return {
title: "射箭打卡,今日又精进了一些~",
- path: "/pages/point-book-detail?id=" + record.value.id,
+ path: "/pages/point-book-detail-share?id=" + record.value.id,
imageUrl,
};
});
onShareTimeline(async () => {
- const imageUrl = await generateShareCardImage(
+ const imageUrl = await generateShareCard(
"shareCardCanvas",
record.value.recordDate,
data.value.userTotalRing,
@@ -252,9 +251,7 @@ onShareTimeline(async () => {
{{ index }}:
- {{
- item.list.reduce((acc, cur) => acc + cur.ring, 0)
- }}
+ {{ item.userTotalRing }}
环
{
display: flex;
flex-direction: column;
color: #000;
+ overflow: hidden;
}
.tip-content > text {
width: 100%;
@@ -499,6 +497,7 @@ onShareTimeline(async () => {
justify-content: center;
}
.ring-text-groups > view > view:first-child:nth-last-child(2) {
+ margin-left: 20rpx;
width: 90rpx;
text-align: center;
font-size: 20rpx;
@@ -528,9 +527,12 @@ onShareTimeline(async () => {
width: 1fr;
text-align: center;
margin-bottom: 10rpx;
+ font-weight: 500;
+ font-size: 26rpx;
}
.notes-input {
width: calc(100% - 40rpx);
+ min-width: calc(100% - 40rpx);
margin: 25rpx 0;
border: 1px solid #eee;
border-radius: 5px;
diff --git a/src/pages/point-book.vue b/src/pages/point-book.vue
index 7a31f98..0148bd4 100644
--- a/src/pages/point-book.vue
+++ b/src/pages/point-book.vue
@@ -333,7 +333,7 @@ onShareTimeline(() => {
-
+
{
:onClose="showTip ? () => (showTip = false) : null"
>
-
+
确认删除该记录吗