This commit is contained in:
2026-06-25 16:38:55 +08:00
parent 22eb76a440
commit 8d83be7cb3
5 changed files with 22 additions and 11 deletions

View File

@ -295,9 +295,9 @@ const sendCodeApi = async (receiver: string) => {
params.email = receiver params.email = receiver
} else { } else {
params.mobile = receiver params.mobile = receiver
// // foreign_userInfo mobile_area
const match = receiver.match(/^\+(\d{1,4})/) const foreignUserInfo = getStorage<any>('foreign_userInfo')
params.mobile_area = match ? '+' + match[1] : '+86' params.mobile_area = foreignUserInfo?.mobile_area || '+86'
} }
return userStore.sendCode(params) return userStore.sendCode(params)
} }

View File

@ -36,9 +36,9 @@
<template #floatProfitLoss="{ row }"> <template #floatProfitLoss="{ row }">
<span>{{ getMarketFloatProfit(row.id) }}</span> <span>{{ getMarketFloatProfit(row.id) }}</span>
</template> </template>
<template #closeProfitLoss="{ row }"> <!-- <template #closeProfitLoss="{ row }">
<span>{{ getMarketCloseProfit(row.id) }}</span> <span>{{ getMarketCloseProfit(row.id) }}</span>
</template> </template> -->
<template #pointSpread="{ row }"> <template #pointSpread="{ row }">
<el-button type="primary" size="small" @click="handleViewPointDiff(row)"> 查看 </el-button> <el-button type="primary" size="small" @click="handleViewPointDiff(row)"> 查看 </el-button>
</template> </template>

View File

@ -51,7 +51,7 @@ export const marketTableColumns = [
//浮动盈亏 //浮动盈亏
{ label: '浮动盈亏', slotName: 'floatProfitLoss', align: 'center' as const, width: '100px', isNumber: true }, { label: '浮动盈亏', slotName: 'floatProfitLoss', align: 'center' as const, width: '100px', isNumber: true },
//平仓盈亏 //平仓盈亏
{ label: '平仓盈亏', slotName: 'closeProfitLoss', align: 'center' as const, width: '150px', isNumber: true }, { label: '平仓盈亏', prop: 'closeProfitLoss', align: 'center' as const, width: '150px', isNumber: true },
//风险金 //风险金
{ label: '风险金', prop: 'riskMargin', align: 'center' as const, width: '150px', isNumber: true }, { label: '风险金', prop: 'riskMargin', align: 'center' as const, width: '150px', isNumber: true },
//服务费 //服务费

View File

@ -536,10 +536,10 @@ const handlePasswordConfirm = async () => {
}; };
// mobile_area // mobile_area
if (passwordForm.verifyType === 'mobile' && userInfo.mobile) { // if (passwordForm.verifyType === 'mobile' && userInfo.mobile) {
const match = userInfo.mobile.match(/^\+(\d{1,4})/); // // userInfo mobile_area
params.mobile_area = match ? '+' + match[1] : '+86'; // params.mobile_area = userInfo.mobile_area || '+86';
} // }
await updatePwdByCaptchaApi(params); await updatePwdByCaptchaApi(params);
passwordDialogVisible.value = false; passwordDialogVisible.value = false;

View File

@ -71,7 +71,7 @@
<script setup lang="ts"> <script setup lang="ts">
import mammoth from 'mammoth' import mammoth from 'mammoth'
import { ref, onUnmounted, onMounted } from 'vue' import { ref, onUnmounted, onMounted, watch } from 'vue'
import termFile from '@/assets/file/服务条款.docx?url' import termFile from '@/assets/file/服务条款.docx?url'
import privacyFile from '@/assets/file/隐私协议.docx?url' import privacyFile from '@/assets/file/隐私协议.docx?url'
import riskFile from '@/assets/file/风险提示.docx?url' import riskFile from '@/assets/file/风险提示.docx?url'
@ -136,6 +136,17 @@ const registerForm = ref<any>({
inviteCode: '', inviteCode: '',
agreeAgreement: false, agreeAgreement: false,
}) })
//
watch(activeTab, () => {
registerForm.value.email = ''
registerForm.value.countryCode = '+86'
registerForm.value.phone = ''
registerForm.value.code = ''
//
registerFormRef.value?.clearValidate()
})
const registerRules = ref<FormRules>({ const registerRules = ref<FormRules>({
email: emailRules().email, email: emailRules().email,
phone: phoneRules(registerForm.value).phone, phone: phoneRules(registerForm.value).phone,