|
|
@@ -147,29 +147,10 @@
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
|
|
|
+ <cwg-error-popup v-model:visible="dialogError" :responseMessage="RES" />
|
|
|
+ <cwg-success-popup v-model:visible="dialogSuccess" @confirm="closeDia" type="create" />
|
|
|
<!-- 账户开立上限提示弹框 -->
|
|
|
- <uni-popup :show="dialogAccountLimit" mode="center" round="16" @close="closeAccountLimitDialog">
|
|
|
- <view class="account-limit-content">
|
|
|
- <view class="icon">
|
|
|
- <text class="iconfont icon-warning"></text>
|
|
|
- </view>
|
|
|
- <view class="title">{{ t('accountLimit.title') }}</view>
|
|
|
- <view class="content">
|
|
|
- <view class="limit-text">
|
|
|
- <view>{{ t('accountLimit.mt4Message') }}</view>
|
|
|
- <view>
|
|
|
- <view>{{ t('accountLimit.mt4Condition1') }}</view>
|
|
|
- </view>
|
|
|
- <view>{{ t('accountLimit.mt4Action') }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="dialog-footer">
|
|
|
- <uv-button type="primary" class="confirm-btn" @click="closeAccountLimitDialog">
|
|
|
- {{ t('accountLimit.button') }}
|
|
|
- </uv-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </uni-popup>
|
|
|
+ <cwg-account-limit-popup v-model:visible="dialogAccountLimit" @confirm="closeAccountLimitDialog" />
|
|
|
</cwg-page-wrapper>
|
|
|
|
|
|
</template>
|
|
|
@@ -226,6 +207,8 @@ const tabs = computed(() => ([
|
|
|
{ value: 'demo', text: t('vu.item2') }
|
|
|
]))
|
|
|
|
|
|
+const dialogError = ref(false)
|
|
|
+const dialogSuccess = ref(false)
|
|
|
const currentAccount = computed(() => {
|
|
|
// 从账户列表中查找匹配的账户
|
|
|
const matched = standardAccounts.value.find(account => account.id == isOpenAccount.value);
|
|
|
@@ -488,8 +471,7 @@ const newAccount = async () => {
|
|
|
}
|
|
|
router.push('/pages/customer/index')
|
|
|
isOpenAccount.value = 0;
|
|
|
- dialogCheck.value = true;
|
|
|
- dialogVisible.value = true;
|
|
|
+ dialogSuccess.value = true;
|
|
|
if (formRef.value) {
|
|
|
formRef.value.resetFields();
|
|
|
}
|
|
|
@@ -499,8 +481,7 @@ const newAccount = async () => {
|
|
|
flag.value = false;
|
|
|
} else {
|
|
|
RES.value = res.msg;
|
|
|
- dialogCheck.value = true;
|
|
|
- dialogVisible.value = false;
|
|
|
+ dialogError.value = true;
|
|
|
flag.value = false;
|
|
|
resetForm()
|
|
|
}
|
|
|
@@ -512,7 +493,11 @@ const newAccount = async () => {
|
|
|
// showToast(error[0].errorMessage);
|
|
|
return
|
|
|
} else {
|
|
|
+ console.log(error)
|
|
|
+ dialogError.value = true;
|
|
|
RES.value = error.msg;
|
|
|
+ console.log(dialogError.value);
|
|
|
+ resetForm()
|
|
|
}
|
|
|
}
|
|
|
};
|