wkw 6 meses atrás
pai
commit
470315d788
2 arquivos alterados com 7 adições e 23 exclusões
  1. 7 17
      src/components/header/header.vue
  2. 0 6
      src/views/post/postInfo.vue

+ 7 - 17
src/components/header/header.vue

@@ -801,6 +801,12 @@
 			this.token = localStorage.getItem('token')
 			if (this.token) {
 				this.getUserInfo();
+				// 获取当前用户的vip数据
+				this.getUserInfoVipList();
+				this.selectVipDetails();
+				this.getVipdetile();
+				// 获取HR信息
+				this.getUserHrInfo()
 				this.$Request.get('/app/chat/selectChatCount').then(res => {
 					if (res.code === 0) {
 
@@ -833,12 +839,6 @@
 			// this.getVipPrice()
 			this.getVipCom()
 			this.getNoVipCom()
-			// 获取当前用户的vip数据
-			this.getUserInfoVipList();
-			this.selectVipDetails();
-			this.getVipdetile();
-			// 获取HRD信息
-			this.getUserHrInfo()
 		},
 		computed: {
 			userType() {
@@ -859,7 +859,7 @@
 			},
 		},
 		methods: {
-			// 获取HRD信息
+			// 获取HR信息
 			getUserHrInfo() {
 				this.$Request.get("/app/HrFirst/getUserHr").then((res) => {
 					if (res.code == 0) {
@@ -898,11 +898,6 @@
 							this.annual = res.data[2];
 						}
 						
-					} else {
-						uni.showToast({
-							title: '暂无VIP套餐',
-							icon: 'none'
-						})
 					}
 				});
 			},
@@ -956,10 +951,6 @@
 					console.error("获取VIP详情失败", err);
 					this.remainingDays = 0;
 					this.vipStatus = "未开通VIP";
-					// uni.showToast({
-					//     title: "获取VIP信息失败,请重试",
-					//     icon: "none"
-					// });
 				});
 			},
 			formatTimeToTimestamp(timeStr) {
@@ -1385,7 +1376,6 @@
 						userType: 1
 					}).then(async res => {
 						if (res.code == 0) {
-							// uni.setStorageSync('companyId', this.CompanyList.companyId)
 							await this.getUserInfo()
 							this.$router.push({
 								name: 'index'

+ 0 - 6
src/views/post/postInfo.vue

@@ -277,12 +277,6 @@
 						console.log(this.byUserId, 'vvvvvvvvvvvvvvv')
 						console.log(this.chatConversationId, 'vvvvvvvvvvvvvvv')
 						this.showMeg = true
-						// uni.navigateTo({
-						// 	url: '/pages/msg/im?byUserId=' + this.info.user
-						// 		.userId + '&chatConversationId=' + res.data
-						// 		.chatConversationId + '&postPushId=' + res.data
-						// 		.postPushId
-						// })
 					}
 				})