tanyanfei 4 vuotta sitten
vanhempi
commit
ee5712c7d6
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 1
      pages/post/post.js
  2. 2 2
      pages/post/post.wxml

+ 1 - 1
pages/post/post.js

@@ -318,7 +318,7 @@ Page({
       }
       // console.log(this.data.class_)
       // console.log(this.data.z_type)
-      if (this.data.classList.length>0&&this.data.class_ == -1&&this.data.z_type != '特种作业人员') {
+      if (this.data.classList.length>0) {
         wx.showToast({
           title: '请选择班级',
           icon: 'none',

+ 2 - 2
pages/post/post.wxml

@@ -80,7 +80,7 @@
       <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
       <view wx:if="{{train>=0}}" class="intro">{{trainArray[train].intro}}</view>
   </view>
-  <view class="item" wx:if="{{type != 3&&z_type!='特种作业人员'&&classList.length>0}}">
+  <view class="item" wx:if="{{classList.length>0}}">
       <label>班级</label>
       <picker  data-name='class_'  bindchange="pickerChange" value="{{class_}}" range="{{classList}}" range-key="name">
         <view class="picker">
@@ -223,7 +223,7 @@
       <view wx:if="{{train>=0}}" class="intro">{{trainArray[train].intro}}</view>
   </view>
 
-  <view class="item" wx:if="{{!class_id&&z_type!='特种作业人员'&&classList.length>0}}">
+  <view class="item" wx:if="{{classList.length>0}}">
       <label>班级</label>
       <picker  data-name='class_'  bindchange="pickerChange" value="{{class_}}" range="{{classList}}" range-key="name">
         <view class="picker">