From 2d2756dc0e61ed8cd38c2796daf5cacdfdd49bf2 Mon Sep 17 00:00:00 2001
From: jialh <1972868360@qq.com>
Date: 星期三, 20 八月 2025 18:46:54 +0800
Subject: [PATCH] 更新
---
pages/login/login.vue | 57 +++++++++++++++++++++++++++++++++++++--------------------
1 files changed, 37 insertions(+), 20 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 7afa7c0..a281738 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -8,7 +8,7 @@
<view class="margin-top padding-left padding-right radius" v-if="!loginByPhone">
<view class="cu-form-group margin-top">
<view class="title">鐢ㄦ埛鍚�</view>
- <input placeholder="璇疯緭鍏ョ敤鎴峰悕" name="input" v-model="username"></input>
+ <input placeholder="璇疯緭鍏ュ鍚�/鎵嬫満鍙�" name="input" v-model="username"></input>
</view>
<view class="cu-form-group border-bottom">
<view class="title">瀵嗙爜</view>
@@ -31,7 +31,7 @@
<view class="padding flex flex-direction margin-top">
<button class="cu-btn bg-blue lg" @click="_doLogin()">鐧诲綍</button>
<!-- #ifdef MP-WEIXIN -->
- <wechat-login ref="wechatLoginRef"></wechat-login>
+ <!-- <wechat-login ref="wechatLoginRef"></wechat-login> -->
<!-- #endif -->
</view>
<!-- #ifdef H5 -->
@@ -55,10 +55,10 @@
import context from '../../lib/java110/Java110Context.js';
import {
-
+
getLoginCode
} from '../../lib/java110/page/Page.js';
-
+
import {
saveOwnerStorage,
saveUserLoginInfo,
@@ -67,7 +67,7 @@
saveWAppId,
getLoginFlag
} from '@/lib/java110/utils/StorageUtil.js';
- import wechatLogin from '@/components/user/wechat-login.vue';
+ // import wechatLogin from '@/components/user/wechat-login.vue';
const constant = context.constant;
const factory = context.factory;
@@ -98,14 +98,14 @@
uni.setStorageSync(constant.mapping.W_APP_ID, wAppId);
}
// #ifdef MP-WEIXIN
- setTimeout(function(){
+ setTimeout(function() {
that.$refs.wechatLoginRef._initWechatLogin();
- },1000)
+ }, 1000)
// #endif
},
- components:{
- wechatLogin
- },
+ // components: {
+ // wechatLogin
+ // },
methods: {
_doLogin: function() {
let _that = this;
@@ -130,17 +130,34 @@
appId: this.vc.getWAppId(),
loginByPhone: this.loginByPhone
};
- ownerLogin(this,_obj)
+ ownerLogin(this, _obj)
.then((_user) => {
//todo 淇濆瓨鐧诲綍淇℃伅
- saveUserLoginInfo(_user.userId, _user.token, _user.key);
- uni.navigateTo({
- url:'/pages/login/loginInitWechat?communityId='+_user.communityId
- })
- },err=>{
- uni.showToast({
- icon:'none',
- title:err
+ if (_user.auditState == "11000") {
+ saveUserLoginInfo(_user.userId, _user.token, _user.key);
+ uni.navigateTo({
+ url: '/pages/index/authOwnerLog'
+ })
+ } else if (_user.auditState == "10000") {
+ uni.showToast({
+ icon: 'none',
+ title: '鎮ㄦ彁浜ょ殑鎴垮眿璁よ瘉瀹℃牳涓紝璇疯仈绯荤墿涓氱鐞嗕汉鍛�'
+ })
+ } else if (_user.auditState == "13000") {
+ uni.showToast({
+ icon: 'none',
+ title: '鎮ㄦ彁浜ょ殑鎴垮眿璁よ瘉瀹℃牳澶辫触锛岃鑱旂郴鐗╀笟绠$悊浜哄憳'
+ })
+ } else {
+ saveUserLoginInfo(_user.userId, _user.token, _user.key);
+ uni.navigateTo({
+ url: '/pages/login/loginInitWechat?communityId=' + _user.communityId
+ })
+ }
+ }, err => {
+ wx.showToast({
+ icon: 'none',
+ title: err
})
});
},
@@ -193,4 +210,4 @@
color: #FFFFFF;
font-size: 30upx;
}
-</style>
+</style>
\ No newline at end of file
--
Gitblit v1.8.0