| | |
| | | <input type="password" v-model="passwords" placeholder="请输入密码" /> |
| | | </view> |
| | | <view class="loging"> |
| | | <button class="confirm bubble" @click="longing(names,passwords)" type="default">登入</button> |
| | | <button class="confirm bubble" @click="longing(names,passwords)" type="default">登录</button> |
| | | </view> |
| | | <view class="msg"> |
| | | <span>{{msg}}</span> |
| | |
| | | }, |
| | | methods: { |
| | | judgeUse() { |
| | | var login = WxStorage.get("init") //重复登入 |
| | | var login = WxStorage.get("init") //重复登录 |
| | | var name = WxStorage.get("name") |
| | | var userID = WxStorage.get("ids") |
| | | var accounts = WxStorage.get("accounts"); |
| | |
| | | uni.reLaunch({ |
| | | url: '../alarm_list/alarm_list' |
| | | }) |
| | | return '成功登入' |
| | | return '成功登录' |
| | | } else { |
| | | this.icons = 'warn'; |
| | | this.colors = '#d53c00'; |
| | | this.msg = '账号密码错误'; |
| | | this.$store.commit('loginReset', this); //重置登入 |
| | | this.$store.commit('loginReset', this); //重置登录 |
| | | uni.hideNavigationBarLoading(); |
| | | return '未成功登入' |
| | | return '未成功登录' |
| | | } |
| | | } |
| | | } |