评论样式

This commit is contained in:
zhaofang
2022-11-14 16:03:45 +08:00
parent 2c6d13e0f9
commit e4a1862d6f
8 changed files with 92 additions and 64 deletions

View File

@@ -14,7 +14,13 @@
</view>
</view>
<view v-if="conType == 1">
<view v-if="courseList.length > 0">
<view v-if="courseList.length == 0 && loadStatus == 'noMore'" class="empt-box">
<u-empty
text="你还没有收藏哦~"
icon="../../static/images/favorite-empt.png">
</u-empty>
</view>
<view v-else >
<view v-for="(item, idx) in courseList" :key="idx" class="course_box">
<view class="course" @click="toCourseDetail(item)">
<view class="course-info">
@@ -42,17 +48,15 @@
</view>
</view>
</view>
<view v-else class="empt-box">
<u-empty
</view>
<view v-if="conType == 2">
<view class="empt-box" v-if="articleList.length == 0 && loadStatus == 'noMore'">
<u-empty
text="你还没有收藏哦~"
icon="../../static/images/favorite-empt.png">
</u-empty>
</view>
</view>
<view v-if="conType == 2">
<view class="" v-if="articleList.length > 0">
<view v-else >
<view class="article_one" v-for="(item, idx) in articleList" :key="idx">
<view class="articla_tit" @click="toArticleDetail(item)" v-html="$keywordActiveShow(item.title, query.keyword)"></view>
<text class="articla_text" v-html="$keywordActiveShow(item.summary, query.keyword)"></text>
@@ -65,15 +69,16 @@
</view>
</view>
</view>
<view v-else class="empt-box">
<u-empty
</view>
<view v-if="conType == 4">
<view class="empt-box" v-if="qaList.length == 0 && loadStatus == 'noMore'">
<u-empty
text="你还没有收藏哦~"
icon="../../static/images/favorite-empt.png">
</u-empty>
</view>
</view>
<view v-if="conType == 4">
<view v-if="qaList.length > 0">
<view >
<view v-for="(item, idx) in qaList" :key="idx" class="qa">
<view class="qa-body" @click="toQaDetail(item.question)">
<text v-if="item.question.isResolve" style="color:#08A890">已解决</text>
@@ -107,12 +112,7 @@
</view>
</view>
</view>
<view v-else class="empt-box">
<u-empty
text="你还没有收藏哦~"
icon="../../static/images/favorite-empt.png">
</u-empty>
</view>
</view>
<!-- <view v-show="count > query.pageSize"><uni-load-more :status="loadStatus"></uni-load-more></view> -->

View File

@@ -7,7 +7,7 @@
</view>
<view class="top-content">
<view>{{uinfo.uCurrency}}</view>
统计时间2022.11.4
统计时间{{formatDate(new Date())}}
</view>
</view>
<view class="ub-list" v-for="(day, index) in uCoinRecord" :key="index">
@@ -22,14 +22,12 @@
{{info.uvalue}}
</view>
</view>
</view>
</view>
</template>
<script>
import {formatDate} from '../../utils/tools.js'
import { mapGetters } from 'vuex';
import apiStat from '@/api/phase2/stat.js';
export default {
@@ -41,6 +39,7 @@
},
data() {
return {
formatDate,
uCoinRecord: [],
uinfo: {
uCurrency: 0, // 用户累计U币