| | |
| | | |
| | | |
| | | <view class="t-a input" v-if="loginType=='code'"> |
| | | <input type="text" :password="true" name="password" placeholder="请输入密码" v-model="password" /> |
| | | <input type="text" name="userName" placeholder="请输入手机验证码" v-model="smsCode" /> |
| | | </view> |
| | | |
| | | <button @tap="login()" class="bottom-button">登 录</button> |
| | | |
| | | <view class="flex"> |
| | | <view class="topic-font" @click="loginType='code'">手机验证码登录</view> |
| | | <view class="topic-font" @click="loginType='pwd'">账号密码登录</view> |
| | | |
| | | <view class="topic-font m-l-a m-r-0" @click="toReg">前往注册</view> |
| | | </view> |
| | | </form> |
| | |
| | | // password: '12345678', |
| | | userName: '', |
| | | phoneNumber: '', |
| | | smsCode:'', |
| | | password: '', |
| | | checked: false, |
| | | loginType: 'pwd', //pwd和code,密码和验证码登录 |