|
|
@@ -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'
|