فهرست منبع

岗位过期判断移除

ZhangWenQiang 6 سال پیش
والد
کامیت
e6a8d762b2
2فایلهای تغییر یافته به همراه15 افزوده شده و 15 حذف شده
  1. 11 11
      pages/detail/index.js
  2. 4 4
      pages/detail/index.wxml

+ 11 - 11
pages/detail/index.js

@@ -101,16 +101,16 @@ Page({
           postitionDetail = data.data.hpWelfarePosition
           break;
       }
-      let isOpen;
-      if (this.data.positionCategory != 4) {
-        isOpen = Date.parse(new Date()) < Date.parse(postitionDetail.endTime);
-      } else {
-        isOpen = Date.parse(new Date()) < postitionDetail.groupEndTime;
-      }
+      // let isOpen;
+      // if (this.data.positionCategory != 4) {
+      //   isOpen = Date.parse(new Date()) < Date.parse(postitionDetail.endTime);
+      // } else {
+      //   isOpen = Date.parse(new Date()) < postitionDetail.groupEndTime;
+      // }
 
       this.setData({
         postitionDetail: postitionDetail,
-        isOpen: isOpen,
+        // isOpen: isOpen,
         isApply: data.data.isApply
       })
       //富文本转义
@@ -133,10 +133,10 @@ Page({
 
   //获取拼团列表
   fetchPtList() {
-    if (!this.data.isOpen) {
-      showToast('拼团已结束')
-      return false
-    }
+    // if (!this.data.isOpen) {
+    //   showToast('拼团已结束')
+    //   return false
+    // }
     groupList(this.data.hpPositionId).then(data => {
       console.log(data)
       this.setData({

+ 4 - 4
pages/detail/index.wxml

@@ -155,7 +155,7 @@
 
   <view class="address-box" wx:if="{{positionCategory==1}}">
     <view class="address" style='width:90%;'>
-      <image class="map-icon" src="{{imgServerUrl}}/images/detail/map-icon.png"  />
+      <image class="map-icon" src="{{imgServerUrl}}/images/detail/map-icon.png" />
       <text class="" style='width:90%;'>{{postitionDetail.hpCompany.adname}}{{postitionDetail.hpCompany.address}}</text>
     </view>
     <image class="map" src="{{imgServerUrl}}/images/detail/map.png" bindtap='tomap' />
@@ -216,7 +216,7 @@
 </view>
 
 <!-- btn -->
-<view class="btn-group fixed-footer" wx:if="{{isOpen}}">
+<view class="btn-group fixed-footer">
   <form bindsubmit="applyJob" report-submit='true' wx:if="{{positionCategory!=4 && !isApply}}">
     <button class="distance selfBtn" form-type="submit">免费申请工作</button>
   </form>
@@ -226,9 +226,9 @@
   <i-button type="primary" shape="circle" i-class="distance" wx:if="{{positionCategory!=4 && isApply}}">已申请</i-button>
   <i-button bind:click="catPt" type="primary" shape="circle" i-class="distance" wx:if="{{positionCategory==4 && isApply}}">我的拼团</i-button>
 </view>
-<view class='btn-group' wx:if="{{!isOpen}}">
+<!-- <view class='btn-group' wx:if="{{!isOpen}}">
   <i-button type="primary" shape="circle" i-class="distance">{{positionCategory!=4?"岗位已结束":"拼团已结束"}}</i-button>
-</view>
+</view> -->
 
 <view class='auth-mask' wx:if="{{authMask}}">
   <view class='auth-modal'>