doum
2025-09-11 7298d5354963a88643a543b51b90192dc9fc934c
h5/pages/staffLogin/login.vue
@@ -68,7 +68,8 @@
         <view class="modal">
            <!-- <view v-html="htmlText"></view> -->
            <view class="content">
               <mp-html :content="htmlText" />
               <!-- <mp-html :content="htmlText" /> -->
               <u-parse :content="htmlText"></u-parse>
            </view>
         </view>
      </u-popup>
@@ -81,7 +82,7 @@
      loginH5ByPhone,
      getUserInfo,
      getSystemDictData,
      saveHkUserOpenid,
      saveHkUserOpenid,
      sendSms
   } from '@/api'
   import {
@@ -95,7 +96,7 @@
         return {
            form: {
               // username: '18655749830',
               username: null,
               username: null,
               phone: null,
               password: null,
               code: null
@@ -159,7 +160,7 @@
                  title: '验证码不能为空',
                  icon: 'none'
               })
            }
            }
            let fn = activeTab == 0 ? loginPost : loginH5ByPhone
            fn({
               ...form,
@@ -175,9 +176,7 @@
                     })
                  })
                  saveHkUserOpenid({})
               } else {
                  this.initCaptcha()
               }
               } else {}
            })
         },
         ...mapMutations(["setToken", "setUserInfo"]),
@@ -216,11 +215,13 @@
            sendSms({
               phone: this.form.phone
            }).then(res => {
               this.countDown = 60
               setInterval(() => {
                  if (this.countDown == 0) return
                  this.countDown--
               }, 1000)
               if (res.code === 200) {
                  this.countDown = 60
                  setInterval(() => {
                     if (this.countDown == 0) return
                     this.countDown--
                  }, 1000)
               }
            })
         }
      }