Parcourir la source

Merge branch 'master' of http://118.190.145.217:3000/xiaojincai/yifengxcx

xjc il y a 4 ans
Parent
commit
35203cfeda
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  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">