wkw hai 6 meses
pai
achega
17fc5ca70c
Modificáronse 2 ficheiros con 8 adicións e 3 borrados
  1. 1 1
      my/enterpriseInfo/enterpriseInfo.vue
  2. 7 2
      pages/my/myCompany.vue

+ 1 - 1
my/enterpriseInfo/enterpriseInfo.vue

@@ -496,7 +496,7 @@ export default {
 		 * 岗位分类数组
 		 */
 		getClassify() {
-			this.$Request.getT("/app/postPush/getCompanyClassify", {
+			this.$Request.getT("/app/postPush/getCompanyClassifyByCompanyId", {
 				companyId: this.companyId
 			}).then(res => {
 				if (res.code == 0) {

+ 7 - 2
pages/my/myCompany.vue

@@ -125,7 +125,6 @@ export default {
 		// 离开公司
 		leaveCompany() {
 			this.showLeaveModal = true;
-			this.leaveCompany = 1
 		},
 		// 加入公司
 		goCompany() {
@@ -146,6 +145,13 @@ export default {
 			});
 			this.$Request.postJson("/app/company/deleteCompany").then(res => {
 				uni.hideLoading();
+				if(res.code == 0 && res.data && res.data.code != 0){
+					uni.showToast({
+						title: res.data.msg || '已离开公司',
+						icon:'none'
+					});
+					return;
+				}
 				if (res.code === 0) {
 					// 离开公司之后需要清除缓存的公司信息
 					uni.removeStorageSync('companyId');
@@ -184,7 +190,6 @@ export default {
 
 		// 更换公司
 		changeCompany() {
-			this.leaveCompany = 2
 			this.showLeaveModal = true;
 		}
 	}