lin
2026-05-22 f1ce6aefad85026c97f4db41a64cb6ff58839225
pages/login/login.vue
@@ -1,18 +1,22 @@
<template>
   <view>
   <view style="background: url('/static/imgs/loginBg.png') center bottom / 100% no-repeat;height: calc(100vh - 44px);">
      <view class="login-title">
         <view class="login-title-1">手机号登录</view>
         <view class="login-title-2">未注册的手机号将自动注册</view>
         <image style="height: 140rpx;width: 140rpx;" src="@/static/imgs/loginLogo.png" mode="scaleToFill"></image>
         <view class="login-title-1">
            <text>购你所想</text>
            <text>购你所爱</text>
         </view>
         <view class="login-title-2">欢迎登录鹿不选</view>
      </view>
      <view class="login-type">
         <view class="login-type-v">
            <view :class="formData.loginType == 1 ? 'active' : ''" @tap="loginTypeClick(1)">账号密码登录</view>
            <view :class="formData.loginType == 2 ? 'active' : ''" @tap="loginTypeClick(2)">短信登录</view>
            <view :class="formData.loginType == 1 ? 'active' : ''" @tap="loginTypeClick(1)">账号密码登录</view>
         </view>
      </view>
      <view class="login-list">
         <view class="login-item">
            <input type="tel" v-model="formData.phone" placeholder="请输入手机号" />
            <input type="tel" maxlength="11" v-model="formData.phone" placeholder="请输入手机号" />
         </view>
         <view class="login-item" v-if="formData.loginType == 1">
            <input type="password" v-model="formData.pass" placeholder="请输入密码" />
@@ -36,6 +40,7 @@
            <view class="fr" @tap="$util.goPages('/pages/findpass/findpass')">忘记密码</view>
         </view>
      </view>
      <!-- <image style="height: 576rpx;width: 100%;" src="@/static/imgs/loginBg.png" mode="scaleToFill"></image> -->
      <agreePup ref="agreePup1" :gp="1" title="注册协议"></agreePup>
      <agreePup ref="agreePup2" :gp="2" title="隐私政策"></agreePup>
   </view>
@@ -54,7 +59,7 @@
               phone: '',
               code: '',
               pass: '',
               loginType: 1,
               loginType: 2,
            },
            phoneReg: /^\d{11}$/,
            backUrl: '',