|
@@ -103,29 +103,11 @@
|
|
|
<van-row>
|
|
|
<van-col span="7" class="td"> 发稿量: </van-col>
|
|
|
<van-col span="5" class="td">
|
|
|
- <counto
|
|
|
- :startVal="0"
|
|
|
- :endVal="ratios.publish_count || 0"
|
|
|
- :duration="1000"
|
|
|
- ></counto>
|
|
|
- <span v-if="ratios.publish_countP">.</span>
|
|
|
- {{
|
|
|
- (ratios.publish_countP > 0 ? ratios.publish_countP : "") +
|
|
|
- ratios.publish_countWei
|
|
|
- }}
|
|
|
+ {{ratios.publish_count}}
|
|
|
</van-col>
|
|
|
<van-col span="7" class="td"> 阅读量: </van-col>
|
|
|
<van-col span="5" class="td">
|
|
|
- <counto
|
|
|
- :startVal="0"
|
|
|
- :endVal="ratios.read_count || 0"
|
|
|
- :duration="1000"
|
|
|
- ></counto>
|
|
|
- <span v-if="ratios.read_countP">.</span>
|
|
|
- {{
|
|
|
- (ratios.read_countP > 0 ? ratios.read_countP : "") +
|
|
|
- ratios.read_countWei
|
|
|
- }}
|
|
|
+ {{ratios.read_count}}
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
<van-cell-group border title="平台账号">
|
|
@@ -241,7 +223,6 @@
|
|
|
|
|
|
<script>
|
|
|
// @ is an alias to /src
|
|
|
-import counto from "@/components/counto/vue-countTo.vue";
|
|
|
import watermark from "watermark-package";
|
|
|
import {
|
|
|
Col as vanCol,
|
|
@@ -356,14 +337,10 @@ export default {
|
|
|
showPopup(i) {
|
|
|
this.show = true;
|
|
|
const ratios = JSON.parse(JSON.stringify(this.dep[i] || {}));
|
|
|
- let publish_count = this.formatType(ratios.publish_count, 2);
|
|
|
- ratios.publish_count = publish_count.N;
|
|
|
- ratios.publish_countP = publish_count.P;
|
|
|
- ratios.publish_countWei = publish_count.wei;
|
|
|
- let read_count = this.formatType(ratios.read_count, 2);
|
|
|
- ratios.read_count = read_count.N;
|
|
|
- ratios.read_countP = read_count.P;
|
|
|
- ratios.read_countWei = read_count.wei;
|
|
|
+ let publish_count = this.timeFormat(ratios.publish_count);
|
|
|
+ ratios.publish_count = publish_count;
|
|
|
+ let read_count = this.timeFormat(ratios.read_count);
|
|
|
+ ratios.read_count = read_count;
|
|
|
const detail = ratios.detail || [];
|
|
|
const new_detail = {};
|
|
|
for (let i = 0; i < detail.length; i++) {
|
|
@@ -379,7 +356,6 @@ export default {
|
|
|
},
|
|
|
beforeUnmount() {},
|
|
|
components: {
|
|
|
- counto,
|
|
|
vanCol,
|
|
|
vanRow,
|
|
|
vanIcon,
|