孤身 преди 7 месеца
родител
ревизия
cf55bf813c
променени са 2 файла, в които са добавени 45 реда и са изтрити 5 реда
  1. 5 5
      pages/recruitmentData/communicationRecords.vue
  2. 40 0
      pages/recruitmentData/index.vue

+ 5 - 5
pages/recruitmentData/communicationRecords.vue

@@ -71,9 +71,9 @@
                      </view>
                      <!-- 经验和薪资 -->
                      <view class="talent-experience">
-                       <text class="experience-text">{{ record.experience }}</text>
-                       <text class="education-salary">{{ record.education }} {{ record.salary }}</text>
-                       <text class="status-text">{{ record.jobStatus }}</text>
+                       <text class="experience-text">{{ record.resumesWorkExperience }}</text>
+                       <text class="education-salary">{{ record.resumesEducation }} {{ record.minSalary }}-{{record.maxSalary}}</text>
+                       <text class="status-text">{{ record.resumesStatus==1?'在职&考虑机会':"离职" }}</text>
                      </view>
                    </view>
                  </view>
@@ -88,7 +88,7 @@
                  <!-- 求职期望 -->
                  <view class="job-expectation">
                    <image src="../../static/images/xiangzi.svg" class="job-icon" mode="aspectFit"></image>
-                   <text class="expectation-text">求职期望: {{ record.jobExpectation }}</text>
+                   <text class="expectation-text">求职期望: {{ record.expectedPosition }}</text>
                  </view>
                  
                  <!-- 技能标签 -->
@@ -104,7 +104,7 @@
                  
                  <!-- 工作描述 -->
                  <view class="job-description">
-                   <text class="description-text">{{ record.description }}</text>
+                   <text class="description-text">{{ record.workContent }}</text>
                  </view>
                </view>
              </view>

+ 40 - 0
pages/recruitmentData/index.vue

@@ -159,8 +159,48 @@ export default {
     const systemInfo = uni.getSystemInfoSync()
     this.statusBarHeight = systemInfo.statusBarHeight || 0
 	// this.getData()
+	this.getZwList()
   },
   methods: {
+	getZwList(){
+	  this.$Request.getT("/app/postPush/getMyPostPush").then(res=>{
+	  	console.log(res);
+		res.data.records.forEach(item=>{
+			this.zwList.push({
+				name:item.ruleClassifyName,
+				id:item.postPushId
+			})
+			this.getDataStatics()
+		})
+	  })
+	},
+	getDataStatics(){
+		let data = {
+			postPushId:this.zwList[this.zwIndex].postPushId,
+			todayStart:this.formatDateRange(new Date(),new Date())[0],
+			todayEnd:this.formatDateRange(new Date(),new Date())[1],
+		}
+		this.$Request.getT("/app/user/userYesterdayData",data).then(res=>{
+			console.log(res);
+		})
+	},
+	formatDateRange(startDate, endDate) {
+	    // 格式化日期为 YYYY-MM-DD 格式
+	    const formatDate = (date) => {
+	        const year = date.getFullYear();
+	        const month = String(date.getMonth() + 1).padStart(2, '0');
+	        const day = String(date.getDate()).padStart(2, '0');
+	        return `${year}-${month}-${day}`;
+	    };
+	    
+	    // 创建开始日期的 00:00:00
+	    const startDateTime = `${formatDate(startDate)} 00:00:00`;
+	    
+	    // 创建结束日期的 23:59:59
+	    const endDateTime = `${formatDate(endDate)} 23:59:59`;
+	    
+	    return [startDateTime, endDateTime];
+	},
 	changeZw (e){
 		this.zwIndex=e.detail.value
 	},