doum
2026-06-18 93de43267e1663031fe5dc2f5ae40d128a182a76
h5/pages/customer/login.vue
@@ -1,5 +1,11 @@
<template>
  <view class="cu-login">
    <view class="cu-auth-topbar">
      <view class="cu-auth-topbar__btn" @click="goRoleSelect">
        <u-icon name="reload" color="#2080f7" size="22" />
      </view>
    </view>
    <view class="cu-login__brand">
      <view class="cu-login__title">商户登录</view>
      <view class="cu-login__sub">阜宁文体中心 · 商户服务平台</view>
@@ -52,6 +58,9 @@
  },
  methods: {
    ...mapMutations(['setToken', 'setUserInfo', 'setOpenId', 'setUserType']),
    goRoleSelect () {
      uni.redirectTo({ url: '/pages/roleSelect?switch=1' })
    },
    onLogin () {
      if (!this.form.phone || !this.form.code) {
        return uni.showToast({ title: '请填写手机号和验证码', icon: 'none' })