Prechádzať zdrojové kódy

```
feat(mibiShop): 添加支付成功消息提示功能

- 在课程卡片组件中添加box_shadow_card样式类
- 调整课程卡片底部高度从174px到175.6px以优化显示效果
- 更新国际化配置,将'People Have Seen'翻译为'views'
- 新增米币商城支付成功消息的中英文本地化配置
- 在学习系统页面的课程列表项中添加阴影效果
- 修改确认购买函数以支持自定义支付成功消息
- 在米币商城页面集成支付成功消息提示功能
```

zhangningning 3 týždňov pred
rodič
commit
a5c01d4d11

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

@@ -1,5 +1,5 @@
 <template>
-  <div class="course-card list_item_animation" >
+  <div class="course-card list_item_animation box_shadow_card" >
     <div class="bg_color_f5 coverImg" @click.stop.prevent="goWorkflowDetail">
       <img :src="info.coverImage" alt="" class="coverImg" />
     </div>
@@ -162,7 +162,7 @@ const startUsing = () => {
     }
   }
   .course-card-bottom-height{
-    height: 174px;
+    height: 175.6px;
   }
 }
 </style>

+ 2 - 1
src/locales/en.js

@@ -16,7 +16,7 @@ export default {
     day: 'Day',
     hour: 'Hour',
     lijixuexi: 'Learn Now',
-    renkanguo: 'People Have Seen',
+    renkanguo: 'views',
     renbaoming: ' People Registered',
     qitakechengtuijian: 'Other Course Recommendations',
     kechengjieshao: 'Course Description',
@@ -120,6 +120,7 @@ export default {
     readAndAgree:"I have read and agree ",
     notFoundPage:"Sorry, the page you visited cannot be found!",
     addTags: 'New Tag',
+    mibiShopPaypSuccessMsg:"Pay Success, Please wait for the seller to ship your order",
   },
   login: {
     smsLogin: 'Captcha Login',

+ 1 - 0
src/locales/zh-CN.js

@@ -125,6 +125,7 @@ export default {
     remainingTime:"剩余时间",
     readAndAgree:"我已阅读并同意",
     notFoundPage:"对不起,您访问的页面找不到啦!",
+    mibiShopPaypSuccessMsg:"支付成功,请等待商家发货。",
   },
   login: {
     smsLogin: '验证码登录',

+ 1 - 1
src/pages/LearningSystem/LearningSystem.vue

@@ -100,7 +100,7 @@
       <!-- 列表 -->
       <div class="course-list mt20">
         <div class="course-grid">
-          <div v-for="(item, index) in list" :key="index" class="course-item list_item_animation">
+          <div v-for="(item, index) in list" :key="index" class="course-item list_item_animation box_shadow_card">
             <div class="bg_color_f5 coverImg" @click.stop.prevent="goDetail(item)" >
               <img :src="item.coverImageUrl" alt="" class="coverImg" />
             </div>

+ 2 - 1
src/pages/mibiShop/mibiShop.vue

@@ -28,7 +28,8 @@
                 t,
                 productId:item.itemId,
                 orderType:'mi_mall',
-                payMethod:'MI'
+                payMethod:'MI',
+                paySuccessMsg:$t('common.mibiShopPaypSuccessMsg')
               })"
             >
               {{$t('common.exchange')}}

+ 3 - 2
src/utils/util.js

@@ -59,7 +59,8 @@ export function confirmBuy({
   t,
   payMethod,
   orderType,
-  productId
+  productId,
+  paySuccessMsg=t('common.paySuccess')
 }){
   const balance = appStore.userInfo?.[type] || 0;
   if(balance < price ){
@@ -92,7 +93,7 @@ export function confirmBuy({
       })
       if(res.code === 200){
         // DGTMessage.success(t('common.buy')+t('common.success'));
-        paySuccess({t});
+        paySuccess({t,msg:paySuccessMsg});
         if(callback && typeof callback === 'function'){
           callback(callbackParams);
         }