Skip to content

Commit

Permalink
优化推荐软件
Browse files Browse the repository at this point in the history
  • Loading branch information
songchudong committed Mar 23, 2022
1 parent 4cd94c5 commit d6b0769
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
File renamed without changes
16 changes: 11 additions & 5 deletions BTPanel/static/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -1736,11 +1736,17 @@ var site = {
title:item.title,
event:function(row){
if(item.name === 'total'){ // 仅linux系统单独判断
bt.soft.set_lib_config(item.name,item.pluginName)
setTimeout(function(){
site_monitoring_statistics.template_config.site_name = row.name
$('[data-funname="overview"]').click()
},500)
if(!item.isBuy){
product_recommend.recommend_product_view(item)
}else if(!item.install){
bt.soft.install(item.name)
}else{
bt.soft.set_lib_config(item.name,item.pluginName)
setTimeout(function(){
site_monitoring_statistics.template_config.site_name = row.name
$('[data-funname="overview"]').click()
},500)
}
}else{
product_recommend.get_version_event(item,row.name)
}
Expand Down

0 comments on commit d6b0769

Please sign in to comment.