li.shaoyi 1 سال پیش
والد
کامیت
e6b190a66b

+ 0 - 8
MTP20_WEB_GLOBAL.code-workspace

@@ -1,8 +0,0 @@
-{
-	"folders": [
-		{
-			"path": "."
-		}
-	],
-	"settings": {}
-}

+ 2 - 2
app/package.json

@@ -1,6 +1,6 @@
 {
-  "name": "trading",
-  "version": "1.0.16",
+  "name": "trading-beta",
+  "version": "1.0.21",
   "main": "main.js",
   "dependencies": {
     "electron-updater": "^6.1.4",

+ 10 - 5
src/packages/gcszt/views/account/certification/components/captcha/Index.vue

@@ -1,20 +1,22 @@
 <template>
-    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading" :refresh="refresh">
+    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading"
+        :refresh="refresh">
         <app-view class="g-form">
             <template #header>
                 <app-navbar title="验证码" @back="closed" />
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
-                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码" placeholder="必填" :rules="formRules.captcha" autocomplete="off">
+                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码"
+                        placeholder="必填" :rules="formRules.captcha" autocomplete="off">
                         <template #button>
                             <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
-                                <span v-if="isCountdown">重新发送({{ currentTime.seconds }})</span>
+                                <span v-if="isCountdown">重新发送({{ currentTime }})</span>
                                 <span v-else>获取验证码</span>
                             </Button>
                         </template>
                     </Field>
-                </CellGroup> 
+                </CellGroup>
             </Form>
             <template #footer>
                 <div class="g-form__footer inset">
@@ -51,7 +53,10 @@ const countdown = useCountDown({
 })
 const isCountdown = ref(false) // 是否正在倒计时
 // 倒计时剩余时间
-const currentTime = computed(() => countdown.current.value)
+const currentTime = computed(() => {
+    const { total } = countdown.current.value
+    return (total / 1000).toFixed(0)
+})
 
 const props = defineProps({
     serialNo: {

+ 10 - 5
src/packages/gzcj/views/account/certification/components/captcha/Index.vue

@@ -1,20 +1,22 @@
 <template>
-    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading" :refresh="refresh">
+    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading"
+        :refresh="refresh">
         <app-view class="g-form">
             <template #header>
                 <app-navbar title="验证码" @back="closed" />
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
-                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码" placeholder="必填" :rules="formRules.captcha" autocomplete="off">
+                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码"
+                        placeholder="必填" :rules="formRules.captcha" autocomplete="off">
                         <template #button>
                             <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
-                                <span v-if="isCountdown">重新发送({{ currentTime.seconds }})</span>
+                                <span v-if="isCountdown">重新发送({{ currentTime }})</span>
                                 <span v-else>获取验证码</span>
                             </Button>
                         </template>
                     </Field>
-                </CellGroup> 
+                </CellGroup>
             </Form>
             <template #footer>
                 <div class="g-form__footer inset">
@@ -51,7 +53,10 @@ const countdown = useCountDown({
 })
 const isCountdown = ref(false) // 是否正在倒计时
 // 倒计时剩余时间
-const currentTime = computed(() => countdown.current.value)
+const currentTime = computed(() => {
+    const { total } = countdown.current.value
+    return (total / 1000).toFixed(0)
+})
 
 const props = defineProps({
     serialNo: {

+ 7 - 4
src/packages/mobile/views/bank/sign/components/edit/Index.vue

@@ -7,8 +7,8 @@
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
-                    <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="selectedBankName"
-                        readonly v-if="userInfo.bankid" />
+                    <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="selectedBankName" readonly
+                        v-if="userInfo.bankid" />
                     <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="selectedBankName"
                         :placeholder="$t('banksign.Pleaseselectyourbank')" :rules="formRules.OpenBankAccId"
                         @click-input="showSelect = true" readonly is-link v-else />
@@ -28,7 +28,7 @@
                                 autocomplete="off">
                                 <template #button>
                                     <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
-                                        <span v-if="isCountdown">{{ $t('banksign.sendagain') }}({{ currentTime.seconds
+                                        <span v-if="isCountdown">{{ $t('banksign.sendagain') }}({{ currentTime
                                             }})</span>
                                         <span v-else>{{ $t('banksign.verificationcode') }}</span>
                                     </Button>
@@ -109,7 +109,10 @@ const countdown = useCountDown({
 })
 const isCountdown = ref(false) // 是否正在倒计时
 // 倒计时剩余时间
-const currentTime = computed(() => countdown.current.value)
+const currentTime = computed(() => {
+    const { total } = countdown.current.value
+    return (total / 1000).toFixed(0)
+})
 
 const props = defineProps({
     isedit: {

+ 10 - 8
src/packages/mobile/views/user/forget/Index.vue

@@ -5,15 +5,17 @@
         </template>
         <Form ref="formRef" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
-                <Field v-model="formData.mobile" type="tel" name="mobile"
-                    :placeholder="$t('common.pleaseenter')" autocomplete="off" :rules="formRules.mobile" >
+                <Field v-model="formData.mobile" type="tel" name="mobile" :placeholder="$t('common.pleaseenter')"
+                    autocomplete="off" :rules="formRules.mobile">
                     <template #label>
                         <span>{{ $t('user.forget.mobile') }}</span>
                         <span style="margin-left: 10px;" @click="show = true">
                             {{ countryCode }}
                         </span>
                         <Popup v-model:show="show" position="bottom" teleport="body" round>
-                            <Picker :columns="datalist" @cancel="onCancel" @confirm="onConfirm" :confirm-button-text="$t('operation.confirm')" :cancel-button-text="$t('operation.cancel')">
+                            <Picker :columns="datalist" @cancel="onCancel" @confirm="onConfirm"
+                                :confirm-button-text="$t('operation.confirm')"
+                                :cancel-button-text="$t('operation.cancel')">
                                 <template #option="{ text, index }">
                                     <slot name="option" :row="datalist[index]" :index="index">
                                         {{ text }}
@@ -63,7 +65,7 @@ import { getCountryCodeList } from '@/constants/unit'
 
 const show = shallowRef(false) // 是否弹出选择器
 const datalist = computed(() => {
-    return  getCountryCodeList().map(e => {
+    return getCountryCodeList().map(e => {
         return { text: e.value, value: e.value }
     })
 })
@@ -162,7 +164,7 @@ const sendVerifyCode = () => {
         loading.value = true
         sendResetVerifyCode({
             data: {
-                mobile: getEncryptMobile(countryCode.value+formData.mobile),
+                mobile: getEncryptMobile(countryCode.value + formData.mobile),
                 businessType: 1
             }
         }).then(() => {
@@ -179,19 +181,19 @@ const formSubmit = () => {
     fullloading((hideLoading) => {
         queryLoginId({
             data: {
-                username: countryCode.value+formData.mobile
+                username: countryCode.value + formData.mobile
             }
         }).then((res) => {
             const { mobile, password, vcode } = formData
             const logincode = res.data
             const encryptedData = cryptojs.SHA256(logincode + password).toString()
             const encryptedHex = cryptojs.enc.Hex.parse(encryptedData).toString().toLocaleLowerCase()
-            formData.mobile = countryCode.value+formData.mobile
+            formData.mobile = countryCode.value + formData.mobile
 
             resetPassword({
                 data: {
                     logincode,
-                    mobile:  getEncryptMobile(mobile),
+                    mobile: getEncryptMobile(mobile),
                     password: encryptedHex,
                     vcode,
                 }

+ 24 - 19
src/packages/mobile/views/user/register/Index.vue

@@ -5,20 +5,22 @@
     </template>
     <Form ref="formRef" class="g-form__container register__form" @submit="formSubmit">
       <CellGroup inset>
-        <Field v-model="formData.mobilephone" type="digit" name="mobilephone" :placeholder="$t('common.required')" :rules="formRules.mobilephone">
+        <Field v-model="formData.mobilephone" type="digit" name="mobilephone" :placeholder="$t('common.required')"
+          :rules="formRules.mobilephone">
           <template #label>
             <span>{{ $t('user.register.mobile') }}</span>
             <span style="margin-left: 10px;" @click="show = true">
-                {{ countryCode }}
+              {{ countryCode }}
             </span>
             <Popup v-model:show="show" position="bottom" teleport="body" round>
-                <Picker :columns="datalist" @cancel="onCancel" @confirm="onConfirm" :confirm-button-text="$t('operation.confirm')" :cancel-button-text="$t('operation.cancel')">
-                    <template #option="{ text, index }">
-                        <slot name="option" :row="datalist[index]" :index="index">
-                            {{ text }}
-                        </slot>
-                    </template>
-                </Picker>
+              <Picker :columns="datalist" @cancel="onCancel" @confirm="onConfirm"
+                :confirm-button-text="$t('operation.confirm')" :cancel-button-text="$t('operation.cancel')">
+                <template #option="{ text, index }">
+                  <slot name="option" :row="datalist[index]" :index="index">
+                    {{ text }}
+                  </slot>
+                </template>
+              </Picker>
             </Popup>
           </template>
         </Field>
@@ -26,7 +28,7 @@
           :placeholder="$t('common.required')" :rules="formRules.vcode">
           <template #button>
             <Button size="small" type="danger" :disabled="loading" @click="sendVerifyCode">
-              <span v-if="isCountdown">{{ $t('user.register.sendagain') }}({{ currentTime.seconds }})</span>
+              <span v-if="isCountdown">{{ $t('user.register.sendagain') }}({{ currentTime }})</span>
               <span v-else>{{ $t('user.register.getsmscode') }}</span>
             </Button>
           </template>
@@ -99,18 +101,18 @@ defineProps({
 
 const show = shallowRef(false) // 是否弹出选择器
 const datalist = computed(() => {
-    return  getCountryCodeList().map(e => {
-        return { text: e.value, value: e.value }
-    })
+  return getCountryCodeList().map(e => {
+    return { text: e.value, value: e.value }
+  })
 })
 const countryCode = ref(datalist.value[0].value.toString())
 const onCancel = () => {
-    show.value = false
+  show.value = false
 }
 
 const onConfirm = ({ selectedValues: [value] }: PickerConfirmEventParams) => {
-    show.value = false
-    countryCode.value = value.toString()
+  show.value = false
+  countryCode.value = value.toString()
 }
 
 const { router, routerTo } = useNavigation()
@@ -142,7 +144,10 @@ const countdown = useCountDown({
 })
 
 // 倒计时剩余时间
-const currentTime = computed(() => countdown.current.value)
+const currentTime = computed(() => {
+  const { total } = countdown.current.value
+  return (total / 1000).toFixed(0)
+})
 
 // 表单数据
 const formData = reactive<Model.RegisterReq>({
@@ -222,7 +227,7 @@ const sendVerifyCode = () => {
     loading.value = true
     sendRegisterVerifyCode({
       data: {
-        phonenumber: countryCode.value+formData.mobilephone
+        phonenumber: countryCode.value + formData.mobilephone
       }
     }).then(() => {
       isCountdown.value = true
@@ -267,7 +272,7 @@ const formSubmit = () => {
       // 密码需进行两次base64加密
       const passwordData = Base64.stringify(Utf8.parse(formData.loginpwd))
       const loginpwd = Base64.stringify(Utf8.parse(passwordData))
-      const mobilephone = countryCode.value+formData.mobilephone
+      const mobilephone = countryCode.value + formData.mobilephone
 
       userRegister({
         data: {

+ 10 - 5
src/packages/qxst/views/account/certification/components/captcha/Index.vue

@@ -1,20 +1,22 @@
 <template>
-    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading" :refresh="refresh">
+    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading"
+        :refresh="refresh">
         <app-view class="g-form">
             <template #header>
                 <app-navbar title="验证码" @back="closed" />
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
-                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码" placeholder="必填" :rules="formRules.captcha" autocomplete="off">
+                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码"
+                        placeholder="必填" :rules="formRules.captcha" autocomplete="off">
                         <template #button>
                             <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
-                                <span v-if="isCountdown">重新发送({{ currentTime.seconds }})</span>
+                                <span v-if="isCountdown">重新发送({{ currentTime }})</span>
                                 <span v-else>获取验证码</span>
                             </Button>
                         </template>
                     </Field>
-                </CellGroup> 
+                </CellGroup>
             </Form>
             <template #footer>
                 <div class="g-form__footer inset">
@@ -51,7 +53,10 @@ const countdown = useCountDown({
 })
 const isCountdown = ref(false) // 是否正在倒计时
 // 倒计时剩余时间
-const currentTime = computed(() => countdown.current.value)
+const currentTime = computed(() => {
+    const { total } = countdown.current.value
+    return (total / 1000).toFixed(0)
+})
 
 const props = defineProps({
     serialNo: {

+ 5 - 2
src/packages/tss/views/bank/sign/components/edit/Index.vue

@@ -26,7 +26,7 @@
                                 autocomplete="off">
                                 <template #button>
                                     <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
-                                        <span v-if="isCountdown">{{ $t('banksign.sendagain') }}({{ currentTime.seconds
+                                        <span v-if="isCountdown">{{ $t('banksign.sendagain') }}({{ currentTime
                                             }})</span>
                                         <span v-else>{{ $t('banksign.verificationcode') }}</span>
                                     </Button>
@@ -106,7 +106,10 @@ const countdown = useCountDown({
 })
 const isCountdown = ref(false) // 是否正在倒计时
 // 倒计时剩余时间
-const currentTime = computed(() => countdown.current.value)
+const currentTime = computed(() => {
+    const { total } = countdown.current.value
+    return (total / 1000).toFixed(0)
+})
 
 const props = defineProps({
     isedit: {

+ 10 - 5
src/packages/zrwyt/views/account/certification/components/captcha/Index.vue

@@ -1,20 +1,22 @@
 <template>
-    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading" :refresh="refresh">
+    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading"
+        :refresh="refresh">
         <app-view class="g-form">
             <template #header>
                 <app-navbar title="验证码" @back="closed" />
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
-                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码" placeholder="必填" :rules="formRules.captcha" autocomplete="off">
+                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码"
+                        placeholder="必填" :rules="formRules.captcha" autocomplete="off">
                         <template #button>
                             <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
-                                <span v-if="isCountdown">重新发送({{ currentTime.seconds }})</span>
+                                <span v-if="isCountdown">重新发送({{ currentTime }})</span>
                                 <span v-else>获取验证码</span>
                             </Button>
                         </template>
                     </Field>
-                </CellGroup> 
+                </CellGroup>
             </Form>
             <template #footer>
                 <div class="g-form__footer inset">
@@ -51,7 +53,10 @@ const countdown = useCountDown({
 })
 const isCountdown = ref(false) // 是否正在倒计时
 // 倒计时剩余时间
-const currentTime = computed(() => countdown.current.value)
+const currentTime = computed(() => {
+    const { total } = countdown.current.value
+    return (total / 1000).toFixed(0)
+})
 
 const props = defineProps({
     serialNo: {

+ 10 - 5
src/packages/zrwyt2/views/account/certification/components/captcha/Index.vue

@@ -1,20 +1,22 @@
 <template>
-    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading" :refresh="refresh">
+    <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :loading="loading"
+        :refresh="refresh">
         <app-view class="g-form">
             <template #header>
                 <app-navbar title="验证码" @back="closed" />
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
-                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码" placeholder="必填" :rules="formRules.captcha" autocomplete="off">
+                    <Field v-model="CaptchaVerifyFormData.captcha" type="digit" name="captcha" label="短信验证码"
+                        placeholder="必填" :rules="formRules.captcha" autocomplete="off">
                         <template #button>
                             <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
-                                <span v-if="isCountdown">重新发送({{ currentTime.seconds }})</span>
+                                <span v-if="isCountdown">重新发送({{ currentTime }})</span>
                                 <span v-else>获取验证码</span>
                             </Button>
                         </template>
                     </Field>
-                </CellGroup> 
+                </CellGroup>
             </Form>
             <template #footer>
                 <div class="g-form__footer inset">
@@ -51,7 +53,10 @@ const countdown = useCountDown({
 })
 const isCountdown = ref(false) // 是否正在倒计时
 // 倒计时剩余时间
-const currentTime = computed(() => countdown.current.value)
+const currentTime = computed(() => {
+    const { total } = countdown.current.value
+    return (total / 1000).toFixed(0)
+})
 
 const props = defineProps({
     serialNo: {

+ 0 - 15
src/services/worker/quote.js

@@ -1,15 +0,0 @@
-// 监听来自主线程的消息
-self.onmessage = (e) => {
-    console.log('接收主线程消息', e.data);
-
-    // 处理数据(这里只是简单地将数据返回)  
-    const result = e.data.url.split('').reverse().join('');
-
-    // 将结果发送回主线程  
-    self.postMessage(result);
-}
-
-// 错误处理
-self.onerror = (error) => {
-    console.error('Worker error:', error);
-}