* fix ai card.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
margin-bottom: 16px;
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
color: var(--color-slate-800);
|
||||
}
|
||||
|
||||
.program-text .desc {
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
if(!window.aiSquare) window.aiSquare = {};
|
||||
|
||||
window.aiSquare.handleStarBtnClick = function()
|
||||
window.aiSquare.handleStarBtnClick = function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
const $btn = $(this);
|
||||
const url = $btn.attr('data-url');
|
||||
$.get(url, function(response)
|
||||
|
||||
@@ -107,6 +107,7 @@ $miniProgramCard = function($miniProgram) use ($categoryList, $collectedIDs)
|
||||
$categoryList[$miniProgram->category]
|
||||
),
|
||||
btn(
|
||||
set::size('md'),
|
||||
setClass('ghost btn-star'),
|
||||
setData('url', createLink('ai', 'collectMiniProgram', "appID={$miniProgram->id}&delete={$delete}")),
|
||||
on::click('window.aiSquare.handleStarBtnClick'),
|
||||
|
||||
Reference in New Issue
Block a user