3.13提交

This commit is contained in:
zoujiandong
2026-03-13 16:18:33 +08:00
parent 4e3a30b863
commit 4042df6762
30 changed files with 286 additions and 134 deletions
+9 -2
View File
@@ -34,14 +34,14 @@
<view class="bottom-box">
<view class="bottom-cell">
<image class="bottom-cell-img" :src="readImg" />
<text class="bottom-cell-text">{{ readnum }}</text>
<text class="bottom-cell-text">{{ fromatNumber(readnum) }}</text>
</view>
<view class="bottom-cell" @click="toggleAgree">
<image
class="bottom-cell-img"
:src="isAgree == 1 ? likeImg : dislikeImg"
/>
<text class="bottom-cell-text">{{ agreenum }}</text>
<text class="bottom-cell-text">{{ fromatNumber(agreenum) }}</text>
</view>
<view class="bottom-cell" @click="toggleCollect">
<image
@@ -265,6 +265,13 @@ const getNewsDetail = () => {
}
});
};
const fromatNumber = (number) => {
if(number < 10000){
return number;
}else{
return (number / 10000).toFixed(1) + 'w';
}
}
const getKePuCollection = () => {
api
.getKePuCollection({