|
@@ -28,7 +28,7 @@
|
|
|
<a @click="$jumpTo('app', item.id, item.systemNumber, item.url)">{{ item.systemName }}</a>
|
|
|
</ellipsis-tooltip>
|
|
|
<span class="top-count"><svg-icon icon-class="remen" class="hot-icon" />{{ formatCount(item.hits) }}</span>
|
|
|
- <el-button v-if="item.isFavorite" type="primary" size="small" style="width:68px; cursor: default">已收藏</el-button>
|
|
|
+ <el-button v-if="item.isStar === 1" type="primary" size="small" style="width:68px; cursor: default">已收藏</el-button>
|
|
|
<el-button v-else size="small" style="width:68px" @click="addSysFavorite(item.id, index)">收藏</el-button>
|
|
|
</div>
|
|
|
<div class="more-item"><span style="cursor: pointer;" @click="showMoreHot('sys')">查看更多</span></div>
|
|
@@ -43,7 +43,7 @@
|
|
|
<a @click="$jumpTo('business', item.id, item.businessNumber, item.url)">{{ item.businessName }}</a>
|
|
|
</ellipsis-tooltip>
|
|
|
<span class="top-count"><svg-icon icon-class="remen" class="hot-icon" />{{ formatCount(item.hits) }}</span>
|
|
|
- <el-button v-if="item.isFavorite" type="primary" size="small" style="width:68px; cursor: default">已收藏</el-button>
|
|
|
+ <el-button v-if="item.isStar === 1" type="primary" size="small" style="width:68px; cursor: default">已收藏</el-button>
|
|
|
<el-button v-else size="small" style="width:68px" @click="addBizFavorite(item.appId, item.id, index)">收藏</el-button>
|
|
|
</div>
|
|
|
<div class="more-item"><span style="cursor: pointer;" @click="showMoreHot('biz')">查看更多</span></div>
|
|
@@ -187,7 +187,8 @@ export default {
|
|
|
size: 5,
|
|
|
order: 'hits',
|
|
|
params: {
|
|
|
- delFlag: 0
|
|
|
+ delFlag: 0,
|
|
|
+ isStar: 1
|
|
|
}
|
|
|
}
|
|
|
if (this.curHotTab === 'hotSys') {
|
|
@@ -233,7 +234,7 @@ export default {
|
|
|
addSysFavorite(id, index) {
|
|
|
this.sysLoading = true
|
|
|
pushAddFavorite(id).then(res => {
|
|
|
- this.sysTopData[index].isFavorite = true
|
|
|
+ this.sysTopData[index].isStar = 1
|
|
|
this.sysLoading = false
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
@@ -253,7 +254,7 @@ export default {
|
|
|
addBizFavorite(appId, id, index) {
|
|
|
this.bizLoading = true
|
|
|
pushAddBizFavorite(appId, id).then(res => {
|
|
|
- this.bizTopData[index].isFavorite = true
|
|
|
+ this.bizTopData[index].isStar = 1
|
|
|
this.bizLoading = false
|
|
|
this.$message({
|
|
|
type: 'success',
|