li.shaoyi 3 nedēļas atpakaļ
vecāks
revīzija
c26a805c2d

+ 7 - 1
src/packages/mobile/views/user/forget/Index.vue

@@ -59,7 +59,7 @@
 </template>
 
 <script lang="ts" setup>
-import { reactive, ref, computed, shallowRef } from 'vue'
+import { reactive, ref, computed, shallowRef, onMounted } from 'vue'
 import { CellGroup, Button, Field, Form, FormInstance, showFailToast, FieldRule } from 'vant'
 import { useCountDown } from '@vant/use'
 import { fullloading, dialog } from '@/utils/vant'
@@ -254,4 +254,10 @@ const formSubmit = () => {
         })
     })
 }
+
+onMounted(() => {
+    if (openMethodList.length) {
+        selectedMethod.value = openMethodList[0].value
+    }
+})
 </script>

+ 5 - 0
src/packages/mobile/views/user/register/Index.vue

@@ -384,11 +384,16 @@ const formSubmit = () => {
 
 onMounted(() => {
   const os = plus.getSystemInfo('os')
+
   if (os === 'Android') {
     formData.openmode = 5
   }
   if (os === 'iOS') {
     formData.openmode = 6
   }
+  
+  if (openMethodList.length) {
+    selectedMethod.value = openMethodList[0].value
+  }
 })
 </script>