nieyuge il y a 3 ans
Parent
commit
91a8f94b79

+ 4 - 0
src/view/iframe/publish/components/paypal-button.vue

@@ -11,6 +11,7 @@
                     :src="`${payConfig.paypalHtml}?paypalClientId=${payConfig.paypalClientId}&amount=${props.finalAmountData.finalAmountValue}`"></iframe>
             </div>
             <div class="token-pay" 
+                :class="{ disabled: Number(currentCurrencyInfo.balance) < Number(payConfig.amount) }"
                 v-if="currentCurrencyInfo.currencyCode != 'USD'"
                 @click="tokenPay">
                 Pay {{payConfig.amount || 0}} {{currentCurrencyInfo.tokenSymbol}}
@@ -195,6 +196,9 @@ onMounted(() => {
             color: #fff;
             cursor: pointer;
             padding: 0 30px;
+            &.disabled {
+                background: #DEDEDE;
+            }
         }
 
         .iframe-pay {

+ 5 - 5
src/view/iframe/publish/give-dialog.vue

@@ -3,7 +3,7 @@
         <div class="content"
             :style="{
                 height: dialogHeight + 'px',
-                width: showComType != 'preview' ? '600px' : '1100px'}">   
+                width: showComType != 'preview' ? '600px' : '870px'}">   
             <div class="pop-mask"  
                 v-show="showCurrencyPop" 
                 @click.stop="showCurrencyPop = false"></div>
@@ -440,7 +440,7 @@ provide('installStatus', installStatus)
 let publishRes = reactive({});
 
 //弹窗是否展示
-let visible = ref(true);
+let visible = ref(false);
 
 //弹窗高度
 let dialogHeight = ref(680);
@@ -1946,7 +1946,7 @@ onMounted(() => {
         position: relative;
         .flash {
             overflow: hidden;
-            height: 450px;
+            height: 460px;
             border-radius: 26px;
             border: solid 1px #ECECEC;
         }
@@ -2000,12 +2000,12 @@ onMounted(() => {
     }
     .card-content {
         float: right;
-        width: 630px;
+        width: 400px;
     }
     .card-amount {
         overflow: hidden;
         display: flex;
-        height: 40px;
+        height: 80px;
         padding: 20px;
         border-radius: 20px;
         border: 1px solid #E6E6E6;