fix: balance issue
This commit is contained in:
@@ -167,6 +167,7 @@ func (m *usersModel) Update(ctx context.Context, id int64, userModel *model.User
|
||||
stmt := tbl.
|
||||
UPDATE(
|
||||
tbl.MutableColumns.Except(
|
||||
tbl.Balance,
|
||||
tbl.CreatedAt,
|
||||
tbl.DeletedAt,
|
||||
),
|
||||
|
||||
@@ -30,19 +30,19 @@ const showArticle = (article) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="bg-white shadow overflow-hidden hover:shadow-md transition-shadow duration-200 cursor-pointer flex h-32"
|
||||
<div class="bg-white rounded shadow-lg overflow-hidden transition-shadow duration-200 cursor-pointer flex flex-col"
|
||||
@click="showArticle(article)">
|
||||
<!-- Left side - Image -->
|
||||
<!-- Top - Image -->
|
||||
<div v-if="article.head_images && article.head_images.length > 0"
|
||||
class="relative w-32 flex-shrink-0 bg-gray-100 overflow-hidden">
|
||||
class="relative h-32 w-full bg-gray-100 overflow-hidden">
|
||||
<img :src="article.head_images[0]"
|
||||
class="absolute inset-0 h-full w-full object-cover transition-transform duration-300 hover:scale-105"
|
||||
:alt="article.title" />
|
||||
<div class="absolute inset-0 bg-gradient-to-r from-transparent to-black/20"></div>
|
||||
<div class="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"></div>
|
||||
</div>
|
||||
|
||||
<!-- Right side - Content -->
|
||||
<div class="flex-1 p-4 flex flex-col justify-between min-w-0">
|
||||
<!-- Bottom - Content -->
|
||||
<div class="p-4 flex flex-col justify-between flex-1 min-w-0">
|
||||
<div class="space-y-2">
|
||||
<h3 class="text-lg font-semibold text-gray-800 line-clamp-2">
|
||||
{{ article.title }}
|
||||
|
||||
@@ -87,7 +87,7 @@ onMounted(() => {
|
||||
</div>
|
||||
|
||||
<div class="flex-1 overflow-y-auto">
|
||||
<div class="container max-w-2xl mx-auto py-4">
|
||||
<div class="container max-w-2xl mx-auto p-4">
|
||||
<div class="grid gap-4">
|
||||
<ArticleListItem v-for="article in articles" :key="article.id" :article="article" />
|
||||
</div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user