Bladeren bron

积分弹窗文字修改。去掉标题

lifanagju_citu 9 maanden geleden
bovenliggende
commit
af4543d9ea
1 gewijzigde bestanden met toevoegingen van 2 en 14 verwijderingen
  1. 2 14
      src/utils/prefixUrl.js

+ 2 - 14
src/utils/prefixUrl.js

@@ -22,21 +22,9 @@ export const getSuffixAfterPrefix = (str) => {
 // 展示积分
 export function showNextAction (list) { // , currentIndex = 0
   const arr = list.reduce((newArr, action) => {
-    if (action.match) newArr.push(`+${action.point}  恭喜您【${action.title}】获得${action.point}积分`)
+    // if (action.match) newArr.push(`+${action.point}  恭喜您【${action.title}】获得${action.point}积分`)
+    if (action.match) newArr.push(`+${action.point}  恭喜您获得${action.point}积分`)
     return newArr
   }, [])
   if (arr?.length) Curtain('point', { list: arr })
-  // if (currentIndex < list.length) {
-  //   const action = list[currentIndex]
-  //   if (action.match) {
-  //     Snackbar.point(`+${action.point}  恭喜您${action.title}获得${action.point}积分`)
-  //     setTimeout(() => {
-  //       showNextAction(list, currentIndex + 1)
-  //     }, 3000)
-  //   } else {
-  //     setTimeout(() => {
-  //       showNextAction(list, currentIndex + 1)
-  //     }, 0)
-  //   }
-  // }
 }