Browse Source

[edit] style

wenliming 2 years ago
parent
commit
6546bf107b

+ 8 - 7
src/logic/content/twitter.js

@@ -1076,15 +1076,16 @@ export const getTweetUserFollowStatus = (params) => {
         promiseList[i] = TwitterApiUserByScreenNameReq({ screen_name: userList[i]['name'] });
     }
 
-    Promise.all(promiseList).then((res) => {
+    Promise.allSettled(promiseList).then((res) => {
         let list = [];
         if (res && res.length) {
-            for (let i = 0; i < res.length; i++) {
-                let item = res[i];
-                if (item && item.data && item.data.data) {
-                    list.push(item.data.data)
-                }
-            }
+          let resList = res.filter(item => item.status == 'fulfilled');
+          for (let i = 0; i < resList.length; i++) {
+              let item = resList[i];
+              if (item && item.value && item.value.data && item.value.data.data) {
+                  list.push(item.value.data.data)
+              }
+          }
         }
 
         chrome.runtime.sendMessage({ actionType: 'CONTENT_GET_TWEET_USER_FOLLOW_STATUS_RES', data: list, tweetId, type: params.type, iframeId: params.iframeId }, () => { })

+ 2 - 1
src/view/components/custom-card-cover.vue

@@ -92,7 +92,7 @@
             <img class="img-treasure-big" :src="require('@/assets/img/icon-treasure-box.png')">
 
             <div class="treasure-row-4">
-               <img class="img" :src="require('@/assets/svg/icon-card-cover-treasure-tasks.svg')"> to Hunt Treasure
+               <img class="img" :src="require('@/assets/svg/icon-three-line.svg')"> to Hunt Treasure
             </div>
 
             <div class="open-btn" @click="open">
@@ -377,6 +377,7 @@ onMounted(() => {
 
             .img {
                 width: 76px;
+                margin-right: 10px;
             }
         }
 

+ 1 - 1
src/view/iframe/treasure-hunt/components/invite-friends.vue

@@ -268,7 +268,7 @@ const clickCopy = () => {
       box-sizing: border-box;
 
       .invite-friends-content-head {
-        margin-bottom: 18px;
+        margin-bottom: 16px;
         padding: 0 6px;
         box-sizing: border-box;