tanyanfei 4 роки тому
батько
коміт
7ff132a597
3 змінених файлів з 14 додано та 9 видалено
  1. 1 1
      pages/post/post.js
  2. 8 8
      pages/post/post.wxml
  3. 5 0
      pages/post/post.wxss

+ 1 - 1
pages/post/post.js

@@ -8,7 +8,7 @@ Page({
    */
   data: {
     sexArray: ["男","女"],    //性别
-    recordArray: ["初中", "高中", "大专", "本科","硕士","博士"], //学历
+    recordArray: ["初中", "高中或同等学历", "中专或同等学历", "专科或同等学历", "本科或同等学历","研究生以上"], //学历
     categoryArray: [{ label: '电工', id: 0 }, { label: '水工', id: 1 }], //作业类别
     subjectArray: [{name:'请选择'}],    //准操项目
     trainArray: [{ name: '新办', intro: '第一次取证;或者以前取证了没有按规定的时间复审、换证' }, 

+ 8 - 8
pages/post/post.wxml

@@ -53,12 +53,12 @@
       <view wx:if="{{categoryArray[category].intro}}" class="intro">{{categoryArray[category].intro}}</view>
   </view>
  <view class="item" wx:if='{{dev!=""}}' bindtap="open">
-    <label>设备种类</label> {{dev}}
+    <label>设备种类</label> <text class="dev_text">{{dev}}</text>
   </view>
   <view class="item" wx:if="{{type != 3}}">
-      <label wx:if="{{z_type == '特种作业'}}">准操项目</label>
-      <label wx:if="{{z_type != '特种作业' && device_cats.length==0}}">资格类型</label>
-      <label wx:else>项目代码</label>
+      <label wx:if="{{z_type == '特种作业人员'}}">准操项目</label>
+      <label wx:if="{{z_type == '特种设备培训'}}">项目代码</label>
+      <label wx:else>资格类型</label>
       <picker  data-name='subject'  bindchange="pickerChange" value="{{subject}}" range="{{subjectArray}}" range-key="name">
         <view class="picker">
         <text wx:if="{{subject<0}}">请选择</text>
@@ -195,12 +195,12 @@
       <view wx:if="{{categoryArray[category].intro}}" class="intro">{{categoryArray[category].intro}}</view>
   </view>
   <view class="item" wx:if='{{dev!=""}}' bindtap="open">
-    <label>设备种类</label> {{dev}}
+    <label>设备种类</label> <text class="dev_text">{{dev}}</text>
   </view>
   <view class="item" wx:if="{{!class_id}}">
-      <label wx:if="{{z_type == '特种作业'}}">准操项目</label>
-      <label wx:if="{{z_type != '特种作业' && device_cats.length==0}}">资格类型</label>
-      <label wx:else>项目代码</label>
+       <label wx:if="{{z_type == '特种作业人员'}}">准操项目</label>
+      <label wx:if="{{z_type == '特种设备培训'}}">项目代码</label>
+      <label wx:else>资格类型</label>
       <picker  data-name='subject'  bindchange="pickerChange" value="{{subject}}" range="{{subjectArray}}" range-key="name">
         <view class="picker">
         <text wx:if="{{subject<0}}">请选择</text>

+ 5 - 0
pages/post/post.wxss

@@ -66,6 +66,11 @@ form{
   color: #358BFF;
   font-size: 24rpx;
 }
+.dev_text{
+  position: relative;
+  left: 20px;
+  top: 1px;
+}
 .bg_dev{
   position: fixed;
   width: 100%;