Browse Source

[fix] style

wenliming 2 years ago
parent
commit
b87da8a9b8

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

@@ -80,7 +80,10 @@
             </div>
 
             <div class="treasure-row-2">
-                Your Gain Up to $ <div class="amount">{{data.upGainAmountUsdValue || 0}}</div>
+                Your Gain Up to $
+                <component-zoom :width="160" :txt="data.upGainAmountUsdValue || 0">
+                  <div class="amount">{{data.upGainAmountUsdValue || 0}}</div>
+                </component-zoom>
             </div>
 
             <div class="treasure-row-3" :style="{'visibility': data.currencyCode? 'visible' : 'hidden'}">

+ 2 - 0
src/view/iframe/publish/give-dialog.vue

@@ -1466,6 +1466,8 @@ const calcUsd2TokenEstimate = (params) => {
  */
 const calcFansUnitAmount = () => {
     if(!baseFormData.totalCount || !baseFormData.amountValue) {
+        treasureFormData.upGainAmountUsdValue = ''
+        treasureFormData.fansUnitAmount = '';
         return;
     }
 

+ 6 - 6
src/view/popup/tabbar-page/message/index.vue

@@ -386,13 +386,13 @@ const clickListItem = (params) => {
   }
   let twitterUrl = "https://twitter.com/";
   let nickName = "";
-  if (params.type == 1 || params.type == 3) {
-    nickName = params.userInfo.nickName;
-  } else if (params.type == 2) {
+  if (params.type == 2) {
     nickName = userInfo.value.nickName;
+  } else {
+    nickName = params.userInfo.nickName;
   }
-  let url = twitterUrl + nickName + "/status/" + params.srcContentId;
 
+  let url = twitterUrl + nickName + "/status/" + params.srcContentId;
   chrome.tabs.create({
     url,
   });
@@ -467,7 +467,7 @@ const terminaHandler = (params, index) => {
     modalTitle.value = `Early termination of Giveaway?`
     modalContent.value = `The remaining amount will be returned to your wallet within 1 day.`
   }
-  
+
   modalVisible.value = true;
 };
 
@@ -852,4 +852,4 @@ onBeforeUnmount(() => {
     }
   }
 }
-</style>
+</style>