更新
This commit is contained in:
@@ -35,9 +35,10 @@
|
||||
<button class="cu-btn margin-top round lg" @tap="refuseEmpower">
|
||||
输入手机号码登录
|
||||
</button>
|
||||
<button class="cu-btn margin-top bg-0 round lg" style="font-size: 28rpx;" @tap="refuseLogin">
|
||||
跳过登录
|
||||
</button>
|
||||
<!-- <button class="cu-btn margin-top bg-0 round lg" style="font-size: 28rpx;" @tap="refuseLogin">
|
||||
回到首页
|
||||
</button> -->
|
||||
<view class="tip">仅提供给星油能源内部合作用户使用</view>
|
||||
</view>
|
||||
<view class="isKLUser" v-if='otherUser'>
|
||||
<view class="isKLUser">卡力用户仅支持跳转登录</view>
|
||||
@@ -207,19 +208,19 @@
|
||||
})
|
||||
},
|
||||
refuseLogin(){
|
||||
uni.clearStorageSync()
|
||||
uni.setStorageSync('refuseLogin','true')
|
||||
// uni.clearStorageSync()
|
||||
// uni.setStorageSync('refuseLogin','true')
|
||||
uni.switchTab({
|
||||
url: '/pages/tabbar/home/home'
|
||||
})
|
||||
},
|
||||
refreshLocation() {
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function(res) {
|
||||
uni.setStorageSync('location', res)
|
||||
}
|
||||
});
|
||||
// uni.getLocation({
|
||||
// type: 'wgs84',
|
||||
// success: function(res) {
|
||||
// uni.setStorageSync('location', res)
|
||||
// }
|
||||
// });
|
||||
},
|
||||
autoLogin() {
|
||||
let url = 'loginCompany'
|
||||
@@ -308,6 +309,13 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.tip {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 150rpx;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
.isKLUser{
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
|
||||
@@ -330,9 +330,10 @@
|
||||
let type = this.TabCur == 0 ? 'Personal' : 'Company';
|
||||
authApi.loginPwd(data, type).then(res => {
|
||||
this.loginSuccess(res)
|
||||
}).catch(err => {
|
||||
this.logout()
|
||||
})
|
||||
// .catch(err => {
|
||||
// this.logout()
|
||||
// })
|
||||
},
|
||||
loginRandom() {
|
||||
if (!this.checked) {
|
||||
|
||||
Reference in New Issue
Block a user