| | |
| | | <view class="login_list"> |
| | | <view class="login_list_item"> |
| | | <image src="@/static/login_ic_phone@2x.png" mode="widthFix" /> |
| | | <input v-model="form.username" maxlength="18" @focus="showKeyboard = true" @blur="showKeyboard = false" placeholder="账号" /> |
| | | <input v-model="form.username" type="number" maxlength="18" @focus="showKeyboard = true" @blur="showKeyboard = false" placeholder="账号" /> |
| | | </view> |
| | | <view class="login_list_item"> |
| | | <image src="@/static/login_ic_password@2x.png" mode="widthFix" /> |
| | |
| | | ProtocolFlag: false, |
| | | captcha: {}, |
| | | htmlText: '', |
| | | windowHeight: '' |
| | | windowHeight: '', |
| | | |
| | | ywinfo: {} |
| | | } |
| | | }, |
| | | |
| | |
| | | this.initCaptcha() |
| | | const result = uni.getWindowInfo() |
| | | this.windowHeight = result.windowHeight |
| | | console.log('result', result); |
| | | |
| | | const ywinfo = uni.getStorageSync('ywinfo') || {} |
| | | if (ywinfo.ywid && ywinfo.type == 2) { |
| | | this.ywinfo = ywinfo |
| | | uni.setStorageSync('ywinfo', {}) |
| | | } |
| | | }, |
| | | onBackPress(options) { |
| | | uni.redirectTo({ |
| | |
| | | if (res.code === 200) { |
| | | this.setToken(res.data) |
| | | getUserInfo().then(ress => { |
| | | uni.setStorageSync('ywinfo', this.ywinfo) |
| | | this.setUserInfo(ress.data) |
| | | uni.redirectTo({ |
| | | url: "/pages/staff/index" |
| | | }) |
| | | }) |
| | | saveHkUserOpenid({}) |
| | | } |
| | | }else{ |
| | | this.initCaptcha() |
| | | } |
| | | }) |
| | | } |
| | | } |