| @@ -14,7 +14,7 @@ | |||||
| <p class="title_three">欢迎登录</p> | <p class="title_three">欢迎登录</p> | ||||
| <p class="title_three">农村产权交易平台</p> | <p class="title_three">农村产权交易平台</p> | ||||
| </div> | </div> | ||||
| <van-tabs v-model="active" title-active-color="#37d6b1" :swipeable="true" style="background: rgba(255, 255, 255, .2);margin:1.5rem auto 0;width: calc(100% - 40px);border-radius: 20px;overflow: hidden;border: 1px solid #fff;"> | |||||
| <van-tabs v-model="active" title-active-color="#37d6b1" @change="tabsChange" :swipeable="true" style="background: rgba(255, 255, 255, .2);margin:1.5rem auto 0;width: calc(100% - 40px);border-radius: 20px;overflow: hidden;border: 1px solid #fff;"> | |||||
| <van-tab title="密码登录" name="1"> | <van-tab title="密码登录" name="1"> | ||||
| <van-form style="padding:30px 0;" v-if="!showMessage" @submit="handleLogin"> | <van-form style="padding:30px 0;" v-if="!showMessage" @submit="handleLogin"> | ||||
| <van-field | <van-field | ||||
| @@ -290,6 +290,10 @@ export default { | |||||
| //分享要用encodeURIComponent()方法 | //分享要用encodeURIComponent()方法 | ||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| tabsChange(val){ | |||||
| console.log(val) | |||||
| this.isSmsLogin = val == 1 ? false : true ; | |||||
| }, | |||||
| getCode() { | getCode() { | ||||
| getCodeImg().then((res) => { | getCodeImg().then((res) => { | ||||
| this.formData.uuid = res.uuid; | this.formData.uuid = res.uuid; | ||||