|
@@ -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({
|