MrShi
2026-04-29 34543971457e9e00346afeec14c5aa857f7d4387
small-program/shop/pages/login/login.vue
@@ -87,7 +87,7 @@
         }
      },
      methods: {
         async handleLogin() {
         handleLogin() {
            if (!this.form.telephone) {
               uni.showToast({
                  title: '请输入账号',
@@ -109,13 +109,11 @@
               })
               return
            }
            uni.showLoading({ title: '登录中...', mask: true })
            const res = await this.$u.api.shopLogin({
            this.$u.api.shopLogin({
               openid: this.openid,
               password: this.form.password,
               telephone: this.form.telephone
            })
            uni.hideLoading()
            }).then(async res => {
            if (res.code === 200) {
               this.$store.commit('setUserType', 1)
               this.$store.commit('setShopToken', res.data.token)
@@ -131,6 +129,7 @@
                  });
               }, 1500)
            }
            })
         },
         goToService(type) {
            uni.navigateTo({