Parcourir la source

```
fix(components): 调整课程卡片背景透明度以改善视觉效果

- 将课程卡片背景从纯白色改为带有透明度的白色 (rgba(255, 255, 255, 0.9))
- 保持原有的背景色注释说明

feat(home): 为用户总数图片添加动画类名

- 在首页用户总数展示图片上添加 list_item_animation 类名
- 增强页面元素的动效体验

fix(wallet): 修正钱包余额不足判断逻辑

- 将积分余额判断条件从小于配置值改为小于等于0
- 将币余额判断条件从小于1改为小于等于0
- 防止在余额为0时仍可进行兑换操作的问题
```

zhangningning il y a 1 semaine
Parent
commit
dc7773c098
3 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      src/components/course-card.vue
  2. 1 1
      src/pages/Home.vue
  3. 2 2
      src/pages/Personal/Wallet.vue

+ 1 - 1
src/components/course-card.vue

@@ -151,7 +151,7 @@ const startUsing = () => {
     right: 0;
     bottom: 0;
     padding: 16px;
-    background: white; // 确保背景色
+    background: rgba(255, 255, 255, 0.9); // 确保背景色
     transform: translateY(60px); // 初始完全在下方隐藏
     transition: transform 0.3s ease;
     box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);

+ 1 - 1
src/pages/Home.vue

@@ -12,7 +12,7 @@
           <div class="font_size24 line_height30">
             一站式发现、交易与运行自动化工作流。连接n8n、Coze、Dify 等主流平台,释放生产力潜能。
           </div>
-          <img :src="userTotal" alt="" style="height:52px">
+          <img :src="userTotal" alt="" style="height:52px" class="list_item_animation">
         </div>
         <el-carousel height="522px" style="width: 777px;" :autoplay="false" :interval="3000">
           <el-carousel-item v-for="(item,index) in 3" :key="index">

+ 2 - 2
src/pages/Personal/Wallet.vue

@@ -431,10 +431,10 @@ const changeTransformation = async (index: any) => {
     configTxt.value = result[0]
   }
   walletForm.value.orderAmt = index == 0 ? Number(configTxt.value.configValue) : 1
-  if(index==0 && appStore?.userInfo?.pointsBalance < Number(configTxt.value.configValue)){
+  if(index==0 && appStore?.userInfo?.pointsBalance <= 0){
     DGTMessage.warning(`${t('common.balanceNotEnough')}${t('common.baomibi')}`);
     return;
-  }else if(index==1 && appStore?.userInfo?.baoMiBalance < 1){
+  }else if(index==1 && appStore?.userInfo?.baoMiBalance <= 0){
     DGTMessage.warning(`${t('common.balanceNotEnough')}${t('common.mibi')}`);
     return;
   }