From 1d37c375fd114212ee1419c3bbdadc81d76666a4 Mon Sep 17 00:00:00 2001
From: yearning <10538594+wangweifeng1999@user.noreply.gitee.com>
Date: 星期四, 03 九月 2026 18:01:59 +0800
Subject: [PATCH] 优化

---
 src/views/h5/login/bind.vue |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/views/h5/login/bind.vue b/src/views/h5/login/bind.vue
index ede5d35..6e760e7 100644
--- a/src/views/h5/login/bind.vue
+++ b/src/views/h5/login/bind.vue
@@ -5,18 +5,18 @@
         <el-input v-model="form.mobile" placeholder="璇疯緭鍏ョ粦瀹氭墜鏈哄彿" style="width: 100%" size="large" />
       </el-form-item>
       <el-form-item prop="code" :rules="[$rules.required('璇疯緭鍏ラ獙璇佺爜'), $rules.code()]">
-        <el-input 
-          v-model="form.code" 
-          placeholder="璇疯緭鍏ラ獙璇佺爜" 
-          style="width: 100%" size="large"
+        <el-input
+           v-model="form.code"
+           placeholder="璇疯緭鍏ラ獙璇佺爜"
+           style="width: 100%" size="large"
         >
           <template #append>
             <el-row style="width: 70px;justify-content: center;">
-              <el-button 
-                v-if="countdown == 180"
+              <el-button
+                 v-if="countdown == 180"
                 style="color: var(--el-color-primary);"
-                class="cursor-p" 
-                :loading="sendCodeLoading"
+                class="cursor-p"
+                 :loading="sendCodeLoading"
                 @click="sendCode()"
               >
                 鑾峰彇楠岃瘉鐮�
@@ -34,6 +34,7 @@
 import { tokenUtils } from '@/utils/axios.js';
 import { useLoginStore } from '@/stores/login.js'
 import { storeToRefs } from 'pinia';
+import cityItems from '@/assets/json/cityItems.json'
 export default {
   setup() {
     const { lastRouteInfo } = storeToRefs(useLoginStore())
@@ -106,12 +107,12 @@
       }
     },
     login() {
-      const data = {
+      let data = {
         mobile: this.form.mobile,
         code: this.form.code,
         state: this.state,
         openid: this.openid,
-        wxCode: this.wxCode
+        wxCode: this.wxCode,
       }
       this.loginLoading = true
       this.$axios.post('/system/auth/staff/checkin/bind', data).then(async res => {
@@ -119,7 +120,7 @@
           const resData = res.data.data
           tokenUtils.setTokens(resData.accessToken, resData.refreshToken)
           this.$message.success('缁戝畾鎴愬姛')
-          const path = localStorage.getItem('verify_url')
+          const path = localStorage.getItem('_enterUrl')
           if (path) {
             this.$router.replace(path)
           }
@@ -137,4 +138,4 @@
 .login {
   padding: 40px 20px 20px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0