| 
					
				 | 
			
			
				@@ -875,19 +875,24 @@ const close = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             isBack.value = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             initParams(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            emits("close", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            closeDialog(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const closeToolBoxPage = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(toolBoxPageData.activePage == "EDITOR") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        emits("close", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        closeDialog(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } else if(toolBoxPageData.activePage == "PREVIEW") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         toolBoxPageData.activePage = "EDITOR"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const closeDialog = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    visible.value = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    emits("close", false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 设置弹窗高度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1529,7 +1534,14 @@ const onUsdEstimateOrderAmountInput = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         val = '0' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     treasureFormData.usdEstimateOrderAmount = val; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     calcTokenEstimate({type: 'ORDER_AMOUNT'}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if(+treasureFormData.usdEstimateFansUnitAmount > val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        treasureFormData.usdEstimateFansUnitAmount = val; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        calcTokenEstimate({type: 'FANS_AMOUNT'}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onIptSetErrorTxt(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(val && treasureFormData.usdEstimateFansUnitAmount) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1548,7 +1560,7 @@ const onUsdEstimateFansUnitAmountInput = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         val = '0' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(val > treasureFormData.usdEstimateOrderAmount) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if(treasureFormData.usdEstimateOrderAmount !== '' && val > treasureFormData.usdEstimateOrderAmount) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         val = treasureFormData.usdEstimateOrderAmount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1571,7 +1583,7 @@ const onFansUnitAmountInput = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         val = '0' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(+val > +baseFormData.amountValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if(baseFormData.amountValue !== '' && +val > +baseFormData.amountValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         val = baseFormData.amountValue 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1615,6 +1627,11 @@ const onAmountInput = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     calcUsdEstimate({type: 'ORDER_AMOUNT'}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onIptSetErrorTxt(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if(+baseFormData.fansUnitAmountValue > val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        baseFormData.fansUnitAmountValue = val; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        calcUsdEstimate({type: 'FANS_AMOUNT'}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(val && baseFormData.fansUnitAmountValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         treasureFormData.addFans = calcAddFans({totalAmount: val, unitPrice: baseFormData.fansUnitAmountValue}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2142,10 +2159,13 @@ const getCurrencyInfo = async (_params) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(currencyCode) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let currencyInfoRes = await getCurrencyByCode({currencyCode}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(currencyInfoRes.code == 0 && currencyInfoRes.data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                currentCurrencyInfo.value = currencyInfoRes.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                tempCurrentCurrencyInfo.value = currencyInfoRes.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(!loop) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    onIptSetErrorTxt(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let currentCurrencyCode= currentCurrencyInfo.value.currencyCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(currentCurrencyCode && currentCurrencyCode == currencyInfoRes.data.currencyCode || !currentCurrencyCode) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    currentCurrencyInfo.value = currencyInfoRes.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    tempCurrentCurrencyInfo.value = currencyInfoRes.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(!loop) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        onIptSetErrorTxt(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |