This commit is contained in:
haomingming
2026-03-16 14:34:53 +08:00
49 changed files with 680 additions and 250 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
@@ -263,6 +263,13 @@ const getNewsDetail = () => {
}
});
};
const fromatNumber = (number) => {
if(number < 10000){
return number;
}else{
return (number / 10000).toFixed(1) + 'w';
}
}
const getKePuCollection = () => {
api
.getKePuCollection({