فهرست منبع

修复手机号验证BUG

fanghuisheng 1 سال پیش
والد
کامیت
6450d60c98
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/pages/common/phoneVerify/index.vue

+ 3 - 1
src/pages/common/phoneVerify/index.vue

@@ -14,7 +14,7 @@
 
         <u-input v-model="verify" prefixIcon="email" placeholder="请输入验证码" :maxlength="6">
           <template #suffix>
-            <button class="content-area-center-verify" @click="getVerifyCode">{{ !codeTime ? "获取验证码" : codeTime + "s" }}</button>
+            <button class="content-area-center-verify" @click="getVerifyCode">{{ !useStore.codeTime ? "获取验证码" : useStore.codeTime + "s" }}</button>
           </template>
         </u-input>
       </view>
@@ -27,10 +27,12 @@
 <script setup>
 import { onLoad, onShow, onReady, onHide, onLaunch, onNavigationBarButtonTap, onPageScroll, onBackPress, onUnload } from "@dcloudio/uni-app";
 import { reactive, getCurrentInstance, toRefs, inject } from "vue";
+import { useStores, publicStores } from "@/store/modules/index";
 
 import { getCodeImg } from "@/api/login";
 import { phoneVerify } from "@/api/common/index.js";
 
+const useStore = useStores();
 const { proxy } = getCurrentInstance();
 
 const data = reactive({