1
jhzh
2025-11-12 1bd03f5c2e7b9fa9cc80c4e673e18132da411333
src/page/login/register.vue
@@ -11,14 +11,7 @@
          <el-input :placeholder="$t('请输入')" :size="medium" v-model="phone" clearable @input="handleInput()">
          </el-input>
          <!-- <div class="forms_title">{{ $t("hj25") }}</div>
          <el-input :placeholder="$t('请输入')" :size="medium" v-model="yzmCode" clearable @input="handleInput()">
            <template slot="append">
              <van-button type="info" size="small" @click="getYzm" :loading="djs > 0" :loading-text="djs + ''">
                <span style="font-size: 14px;">{{ $t('获取验证码') }}</span>
              </van-button>
            </template>
          </el-input> -->
          <div class="forms_title">{{ $t("Password") }}</div>
          <el-input :placeholder="$t('hj19')" :size="medium" v-model="userPassword" clearable @input="handleInput()">
@@ -31,7 +24,17 @@
          <div class="forms_title">{{ $t("hj21") }}</div>
          <el-input :placeholder="$t('请输入')" :size="medium" v-model="userName" clearable @input="handleInput()">
          </el-input>
          <div class="forms_title">{{ $t("hj25") }}</div>
                    <el-input :placeholder="$t('请输入')" :size="medium" v-model="yzmCode" clearable @input="handleInput()">
                      <template slot="append">
                        <van-button type="info" size="small" @click="getYzm" :loading="djs > 0" :loading-text="djs + ''">
                          <span style="font-size: 14px;">{{ $t('获取验证码') }}</span>
                        </van-button>
                      </template>
          </el-input>
        </div>
        <div class="radio-con" style="display: flex; align-items: center; font-size: 14px">
          <van-checkbox v-model="checked" @change="handleInput()">
            {{ $t("我已閱讀並同意") }}
@@ -78,7 +81,7 @@
      placeholder: this.$t("hj16"),
      phone: "",
      userName: "",
      yzmCode: '6666',
      yzmCode: '',
      code: "",
      userPassword: "",
      btnClass: false,
@@ -153,6 +156,7 @@
          };
          let data = await api.register(opts);
          if (data.status === 0) {
            Notify({ type: "success", message: this.$t('hj34') });
            setTimeout(() => {
              this.$router.push("/login");
            }, 1000);