热门产品前端页面

This commit is contained in:
2025-07-26 11:33:06 +08:00
parent bb42f9c5b7
commit cf6c7788f5
5 changed files with 640 additions and 204 deletions

View File

@@ -43,19 +43,27 @@ export function delProductSalesScript(scriptId) {
})
}
// 记录话术访问频率
export function recordVisit(productId) {
return request({
url: '/klp/productSalesScript/recordVisit/' + productId,
method: 'post'
})
}
// // 记录话术访问频率
// export function recordVisit(productId) {
// return request({
// url: '/klp/productSalesScript/recordVisit/' + productId,
// method: 'post'
// })
// }
// 获取热门产品排行
export function getHotProducts(limit = 10) {
// // 获取热门产品排行
// export function getHotProducts(limit = 10) {
// return request({
// url: '/klp/productSalesScript/hotProducts',
// method: 'get',
// params: { limit }
// })
// }
// 获取产品咨询热度排行
export function getProductRanking() {
return request({
url: '/klp/productSalesScript/hotProducts',
method: 'get',
params: { limit }
url: '/klp/productSalesScript/dashboard/ranking',
method: 'get'
})
}