Forráskód Böngészése

前端 小程序 sdy

zhongtianhaoyuan 3 éve
szülő
commit
5923084c87
2 módosított fájl, 21 hozzáadás és 6 törlés
  1. 0 3
      pageD/identity/companyIdentityLook.vue
  2. 21 3
      pages/user/user.vue

+ 0 - 3
pageD/identity/companyIdentityLook.vue

@@ -150,9 +150,6 @@
 		methods: {
 		methods: {
 			getList(ids) {		
 			getList(ids) {		
 					this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter, 'application/json;charset=UTF-8').then(res => {
 					this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter, 'application/json;charset=UTF-8').then(res => {
-							console.log("成功连接")
-							// this.procurementPlanInfos = res.data.data
-				
 							this.deptList = res.data.data
 							this.deptList = res.data.data
 					
 					
 							if(this.deptList.businessLicenseAddressUrl != ""){
 							if(this.deptList.businessLicenseAddressUrl != ""){

+ 21 - 3
pages/user/user.vue

@@ -354,10 +354,28 @@
 
 
 					return;
 					return;
 				}
 				}
-				if (item.url) {
-					uni.navigateTo({
-						url: item.url + `?companyId=${that.companyId}`
+				if (!this.hasLogin) {
+					uni.showModal({
+						title: '登录提示',
+						content: '您尚未登录,是否立即登录?',
+						showCancel: true,
+						confirmText: '登录',
+						success: (e) => {
+							if (e.confirm) {
+								uni.navigateTo({
+									url: '/pages/public/login'
+								})
+							}
+						},
+						fail: () => {},
+						complete: () => {}
 					})
 					})
+				}else {
+					if (item.url) {
+						uni.navigateTo({
+							url: item.url + `?companyId=${that.companyId}`
+						})
+					}
 				}
 				}
 			},
 			},
 			toLogin() {
 			toLogin() {