3.13提交
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user