!6 文章详情页面:新增调用增加浏览量接口

Merge pull request !6 from puhui999/master
pull/7/head v1.8.3
芋道源码 2023-10-21 14:27:43 +00:00 committed by Gitee
commit b5fc0068b1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9 additions and 0 deletions

View File

@ -29,3 +29,10 @@ export function getArticle(id) {
noAuth: true // TODO 芋艿:后续要做调整
});
}
// 增加文章浏览量
export function addArticleBrowseCount(id) {
return request.put("app-api/promotion/article/add-browse-count?id=" + id, {}, {
noAuth: true // TODO 芋艿:后续要做调整
});
}

View File

@ -114,6 +114,8 @@
}
// #endif
});
//
ArticleApi.addArticleBrowseCount(this.id)
},
goodInfo(id) {
ProductSpuApi.getSpuDetail(id).then(res=>{