Procházet zdrojové kódy

岗位详情页调整

ZhangWenQiang před 6 roky
rodič
revize
b7fdba5aab
3 změnil soubory, kde provedl 92 přidání a 34 odebrání
  1. 7 3
      pages/detail/index.js
  2. 23 30
      pages/detail/index.wxml
  3. 62 1
      pages/detail/index.wxss

+ 7 - 3
pages/detail/index.js

@@ -435,9 +435,13 @@ Page({
 
   // 所有拼工
   allPt(e) {
-    this.setData({
-      showAllPt: true
-    })
+    if (this.data.storeAction.length > 0) {
+      this.setData({
+        showAllPt: true
+      })
+    }else{
+      showToast("拼工都已经完成啦,您可以申请开团哦!")
+    }
   },
   hideAllPt() {
     this.setData({

+ 23 - 30
pages/detail/index.wxml

@@ -23,25 +23,26 @@
     </view>
     <view class="two">
       <view class='left'>
-        <block wx:if="{{postitionDetail.femaleReward}}">
-          <view class='femaleReward'>
-            <image src='{{imgServerUrl}}/images/happyjob/female.png'></image>
-            返费 {{postitionDetail.femaleReward}} 元
-          </view>
-        </block>
-        <block wx:if="{{postitionDetail.maleReward}}">
-          <view class='maleReward'>
-            <image src='{{imgServerUrl}}/images/happyjob/male.png'></image>
-            返费 {{postitionDetail.maleReward}} 元
-          </view>
-        </block>
+        <view>
+          招聘人数:{{postitionDetail.recruitNumber?postitionDetail.recruitNumber:'若干'}}{{postitionDetail.recruitNumber?'人':''}}
+        </view>
       </view>
       <view class='right'>
         <view>
-          招聘人数:{{postitionDetail.recruitNumber?postitionDetail.recruitNumber:'若干'}}{{postitionDetail.recruitNumber?'人':''}} 发布于:{{globalTools.subStr(postitionDetail.updateDate)}}
+          发布于:{{globalTools.subStr(postitionDetail.updateDate)}}
         </view>
       </view>
     </view>
+    <view class="two1">
+      <view class='left'>
+        <block wx:if="{{postitionDetail.reward}}">
+          <view class='reward'>
+            <text class="reward1">返费 </text>
+            <text class="reward2">{{postitionDetail.reward}}元</text>
+          </view>
+        </block>
+      </view>
+    </view>
     <block wx:if="{{postitionDetail.hpPositionAddressList.length>0}}">
       <view class='three' catchtap='toaddressdetail'>
         <view class='left'>
@@ -209,10 +210,13 @@
     </view>
     <view class="two">
       <view class='left'>
+        <view>
+          招聘人数:{{postitionDetail.recruitNumber?postitionDetail.recruitNumber:'若干'}}{{postitionDetail.recruitNumber?'人':''}}
+        </view>
       </view>
       <view class='right'>
         <view>
-          招聘人数:{{postitionDetail.recruitNumber?postitionDetail.recruitNumber:'若干'}}{{postitionDetail.recruitNumber?'人':''}} 发布于:{{globalTools.subStr(postitionDetail.updateDate)}}
+          发布于:{{globalTools.subStr(postitionDetail.updateDate)}}
         </view>
       </view>
     </view>
@@ -416,23 +420,12 @@
         </block>
       </view>
     </view>
-    <view class="two">
+    <view class="two1">
       <view class='left'>
-        <block wx:if="{{postitionDetail.femaleReward}}">
-          <view class='femaleReward'>
-            <image src='{{imgServerUrl}}/images/happyjob/female.png'></image>
-            返费{{postitionDetail.femaleReward}}元
-          </view>
-        </block>
-        <block wx:if="{{postitionDetail.maleReward}}">
-          <view class='maleReward'>
-            <image src='{{imgServerUrl}}/images/happyjob/male.png'></image>
-            返费{{postitionDetail.maleReward}}元
-          </view>
-        </block>
-        <view class='backmoney'>
-          <image src='{{imgServerUrl}}/images/happyjob/back_money.png'></image>
-          入职最高奖励{{maxReward}}元, 最低{{minReward}}元
+        <view class='reward'>
+          <text class="reward1">返费 </text>
+          <text class="reward2">{{postitionDetail.reward}}元</text>
+          <text class="reward3">拼团成功最高可得{{maxReward}}元</text>
         </view>
       </view>
       <view class='right'>

+ 62 - 1
pages/detail/index.wxss

@@ -43,12 +43,16 @@
   display: flex;
   align-items: center;
   justify-content: space-between;
-  padding: 0 30rpx 30rpx 30rpx;
+  padding: 0 30rpx 20rpx 30rpx;
 }
 
 .panel .two .left {
   display: flex;
   flex-direction: row;
+  font-size: 22rpx;
+  font-family: PingFangSC;
+  font-weight: 400;
+  color: rgba(102, 102, 102, 1);
 }
 
 .panel .two .left .femaleReward {
@@ -103,6 +107,63 @@
   font-size: 20rpx;
 }
 
+.panel .two1 {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  padding: 0 30rpx 30rpx 30rpx;
+}
+
+.panel .two1 .left {
+  display: flex;
+  flex-direction: row;
+  font-size: 22rpx;
+  font-family: PingFangSC;
+  font-weight: 400;
+  color: rgba(102, 102, 102, 1);
+}
+
+.panel .two1 .left .reward1 {
+  background: linear-gradient(270deg, rgba(255, 131, 49, 1) 0%, rgba(255, 83, 49, 1) 100%);
+  border-radius: 10rpx;
+  font-size: 24rpx;
+  padding: 4rpx 12rpx;
+  font-family: PingFangSC;
+  font-weight: 400;
+  color: rgba(255, 255, 255, 1);
+}
+
+.panel .two1 .left .reward2 {
+  margin-left: 20rpx;
+  font-size: 24rpx;
+  font-family: PingFangSC;
+  font-weight: 400;
+  color: rgba(102, 102, 102, 1);
+}
+.panel .two1 .left .reward3 {
+  margin-left: 20rpx;
+  font-size: 24rpx;
+  font-family: PingFangSC;
+  font-weight: 400;
+  color: rgba(255, 143, 1, 1);
+}
+
+.panel .two1 .left .backmoney {
+  border: 2rpx solid rgba(255, 143, 1, 1);
+  border-radius: 30rpx;
+  font-size: 20rpx;
+  font-family: SourceHanSansCN-Regular;
+  font-weight: 400;
+  color: rgba(255, 143, 1, 1);
+  padding: 4rpx 15rpx;
+  margin-left: 20rpx;
+}
+
+.panel .two1 .left .backmoney image {
+  width: 10rpx;
+  height: 14rpx;
+}
+
 .panel .two_1 {
   display: flex;
   align-items: center;