NULL1222 2 هفته پیش
والد
کامیت
1a0cb76b61
3فایلهای تغییر یافته به همراه15 افزوده شده و 1 حذف شده
  1. 2 0
      bgj/handling/transferWorkOrder/transfer.js
  2. 4 1
      components/Yl_field/index.wxml
  3. 9 0
      components/Yl_field/index.wxss

+ 2 - 0
bgj/handling/transferWorkOrder/transfer.js

@@ -83,9 +83,11 @@ Page({
           type: "checkbox",
           value: [],
           interrupt: true,
+          descKey: "position",
           radioList: res.data.map(v => {
             return {
               ...v,
+              position:v.position,
               id: v.userid,
             }
           }),

+ 4 - 1
components/Yl_field/index.wxml

@@ -165,7 +165,10 @@
         <view class="content">
           <van-checkbox-group direction='{{item.direction||"vertical"}}' value="{{ item.value }}" data-item="{{item}}" disabled="{{item.disabled||false}}" bind:change="checkboxChange">
             <van-checkbox wx:for="{{item.radioList}}" wx:for-item="it" wx:for-index="i" wx:key="name" icon-size="16" custom-class="checkbox {{i != 0&&item.direction!='horizontal' ? 'checkbox_margin_top' : '' }}" name="{{it.id}}">
-              {{language[it.name]||it.name}}
+              <view class="checkbox-label">
+                <text>{{language[it.name]||it.name}}</text>
+                <text wx:if="{{item.descKey && it[item.descKey]}}" class="checkbox-desc">{{it[item.descKey]}}</text>
+              </view>
             </van-checkbox>
           </van-checkbox-group>
         </view>

+ 9 - 0
components/Yl_field/index.wxss

@@ -64,6 +64,15 @@
   margin-top: 10px;
 }
 
+.checkbox-label {
+  display: flex;
+}
+
+.checkbox-desc {
+  padding-left: 20rpx;
+  color: #999;
+}
+
 /* 座机电话输入框 */
 .telephone {
   display: flex;