Explorar el Código

小程序bug修改

ZhangWenQiang hace 6 años
padre
commit
b38ebaeb12
Se han modificado 3 ficheros con 15 adiciones y 4 borrados
  1. 8 2
      pages/detail/index.wxml
  2. 6 1
      pages/fulltime/index.wxml
  3. 1 1
      pages/index/index.wxml

+ 8 - 2
pages/detail/index.wxml

@@ -42,7 +42,7 @@
         </view>
       </view>
     </view>
-    <block wx:if="{{postitionDetail.hpPositionAddressList[0].adname}}">
+    <block wx:if="{{postitionDetail.hpPositionAddressList.length>0}}">
       <view class='three' catchtap='toaddressdetail'>
         <view class='left'>
           <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
@@ -160,6 +160,9 @@
           <block wx:for="{{globalTools.splitStr1(postitionDetail.specialWelfare,',')}}" wx:key="*this" wx:for-item="tag">
             {{tag}}
           </block>
+          <block wx:if="{{postitionDetail.otherWelfare}}">
+            ({{postitionDetail.otherWelfare}})
+          </block>
         </view>
       </view>
       <view class="work" wx:if="{{postitionDetail.regularBus}}">
@@ -213,7 +216,7 @@
         </view>
       </view>
     </view>
-    <block wx:if="{{postitionDetail.hpPositionAddressList[0].adname}}">
+    <block wx:if="{{postitionDetail.hpPositionAddressList.length>0}}">
       <view class='three' catchtap='toaddressdetail'>
         <view class='left'>
           <image src='{{imgServerUrl}}/images/happyjob/location.png'></image>
@@ -558,6 +561,9 @@
           <block wx:for="{{globalTools.splitStr1(postitionDetail.specialWelfare,',')}}" wx:key="*this" wx:for-item="tag">
             {{tag}}
           </block>
+          <block wx:if="{{postitionDetail.otherWelfare}}">
+            ({{postitionDetail.otherWelfare}})
+          </block>
         </view>
       </view>
       <view class="work" wx:if="{{postitionDetail.regularBus}}">

+ 6 - 1
pages/fulltime/index.wxml

@@ -70,7 +70,12 @@
           <view class='commpany'>{{item.hpCompany.companyName}}</view>
           <view class='area'>
             <image src='{{imgServerUrl}}/images/happyjob/address.png'></image>
-            <text class='area-name'>{{item.hpPositionAddressList[0].adname}}</text>
+            <block wx:if="{{item.hpPositionAddressList.length>0}}">
+              <text class='area-name'>{{item.hpPositionAddressList[0].adname}}</text>
+            </block>
+            <block wx:else>
+              <text class='area-name'>全国</text>
+            </block>
           </view>
         </view>
         <view class='two'>

+ 1 - 1
pages/index/index.wxml

@@ -129,7 +129,7 @@
             <view>
               <image src='{{imgServerUrl}}/images/happyjob/limit.png'></image>
             </view>
-            <text> {{globalTools.subStr(item.publishTime)}}-{{globalTools.subStr(item.endTime)}}</text>
+            <text> {{globalTools.subStr(item.publishTime)}} - {{globalTools.subStr(item.endTime)}}</text>
           </view>
           <view class='time'>{{item.settlementMethod}}</view>
         </view>