zhb 3 hete
szülő
commit
2d15c4ea6a
1 módosított fájl, 26 hozzáadás és 24 törlés
  1. 26 24
      pages/ib/transfer.vue

+ 26 - 24
pages/ib/transfer.vue

@@ -39,7 +39,8 @@
                                                         <span> | </span>
                                                         <span v-t="'Label.CommissionBalance'" />
                                                         <span>:</span>
-                                                        <span class="text-danger">${{ balance }}</span>
+                                                        <span class="text-danger">${{ Number(balance).toFixed(2)
+                                                            }}</span>
                                                     </h5>
                                                 </view>
 
@@ -54,7 +55,8 @@
                                                         <!-- <uni-forms-item name="to" :error-message="deposittoErrorMessage" class="form-select mb-3"></uni-forms-item> -->
                                                         <cwg-combox v-model:value="form.to" :clearable="false"
                                                             :options="depositDisplayList"
-                                                            :placeholder="t('placeholder.choose')" @change="showCentAccountTransferTip"/>
+                                                            :placeholder="t('placeholder.choose')"
+                                                            @change="showCentAccountTransferTip" />
                                                     </uni-forms-item>
                                                 </view>
                                                 <view class="col-lg-6 mb-3">
@@ -82,7 +84,7 @@
                                                                     <checkbox value="1" :checked="form.agree5" />
                                                                     <text>{{
                                                                         t('news_add_field1.activitiesNZTwo.itemDeposit1')
-                                                                    }}</text>
+                                                                        }}</text>
 
                                                                     <p
                                                                         style="margin-top: 10px;line-height: 1.5; font-size: 14px">
@@ -91,7 +93,7 @@
                                                                                 t('Custom.Withdraw.Des') }}</text>
                                                                         <text>{{
                                                                             t('news_add_field1.activitiesNZTwo.itemDeposit2')
-                                                                        }}</text>
+                                                                            }}</text>
                                                                         <text class="clause crm-cursor"
                                                                             style="text-decoration: underline;"
                                                                             @click.stop="dialogClauseNZTwo = true">{{
@@ -99,7 +101,7 @@
                                                                             }}</text>
                                                                         <text>{{
                                                                             t('news_add_field1.activitiesNZTwo.itemDeposit4')
-                                                                        }}</text>
+                                                                            }}</text>
                                                                     </p>
 
                                                                 </label>
@@ -122,7 +124,7 @@
                                                                             style="margin-top: 10px; line-height: 1.5; font-size: 14px">
                                                                             <text> {{
                                                                                 t('news_add_field1.activitiesNewList.item1')
-                                                                            }}{{
+                                                                                }}{{
                                                                                     t('news_add_field1.activitiesNewList.item2')
                                                                                 }}</text>
                                                                         </view>
@@ -523,24 +525,24 @@ async function toTransfer() {
     }
 }
 const showCentAccountTransferTip = (login) => {
-  const list =  activeTab.value != 3 ? toInfo.value:agentInfo.value
-
-  const selectedAccount = list.find(
-    (item) => item.login == login,
-  );
-  if (!selectedAccount) {
-    return;
-  }
-  const isCentAccount =
-    selectedAccount.type == "8" || selectedAccount.currency === "USC";
-  if (isCentAccount) {
-    confirm({
-      title: t("Msg.SystemPrompt"),
-      content: t("vu.item14") + t("vu.item15") + t("vu.item16"),
-      confirmText: t("Btn.Confirm"),
-      cancelText: t("Btn.Cancel"),
-    })
-  }
+    const list = activeTab.value != 3 ? toInfo.value : agentInfo.value
+
+    const selectedAccount = list.find(
+        (item) => item.login == login,
+    );
+    if (!selectedAccount) {
+        return;
+    }
+    const isCentAccount =
+        selectedAccount.type == "8" || selectedAccount.currency === "USC";
+    if (isCentAccount) {
+        confirm({
+            title: t("Msg.SystemPrompt"),
+            content: t("vu.item14") + t("vu.item15") + t("vu.item16"),
+            confirmText: t("Btn.Confirm"),
+            cancelText: t("Btn.Cancel"),
+        })
+    }
 }
 // 打开不参加活动弹窗
 function openDontActive() {