cascader.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <van-field required="{{required}}" value="{{area}}" label="单位行政区域" readonly is-link center input-align="right" bindtap='showArea' type="textarea" autosize placeholder="请选择单位行政区域" />
  2. <van-action-sheet show="{{ show }}" bind:click-overlay="close">
  3. <view class="card">
  4. <view wx:if="{{contactPhone}}" class="tip">
  5. 注意:若所属地区不存在,请联系系统管理员, 联系电话:
  6. <!-- {{contactPhone}}。 -->
  7. <view class="inline-block" bind:tap="callPhone">
  8. <!-- <van-icon name="/images/ic_student_tel.png" size="33rpx"/> -->
  9. <!-- <text>{{contactPhone}}</text> -->
  10. <!-- 联系电话:{{contactPhone}}。 -->
  11. {{contactPhone}}
  12. </view>
  13. </view>
  14. <view class="top">
  15. <edu-mark text='请选择单位行政区域' />
  16. <view bind:tap="click">确定</view>
  17. </view>
  18. <view class="cascader-content">
  19. <van-tabs active="{{ active }}" bind:change="onChange" wx:if="{{show}}" id="tabs" class="mytab">
  20. <van-tab title="{{item.title || dict[index]}}" wx:for="{{tabs}}" wx:key="index">
  21. <view class="list">
  22. <van-radio-group value="{{ item.title }}">
  23. <block wx:for="{{item.data}}" wx:for-item="cell" wx:key="cellIndex" wx:for-index="cellIndex">
  24. <van-cell title="{{cell.name}}" border="{{false}}" clickable data-cell="{{cell}}" data-index="{{index}}" bind:click="onClick">
  25. <van-radio slot="right-icon" checked-color="#FF4330" name="{{cell.name}}" />
  26. </van-cell>
  27. </block>
  28. </van-radio-group>
  29. </view>
  30. </van-tab>
  31. </van-tabs>
  32. <view class="cascader-loading" wx:if="{{loading}}">
  33. <van-loading color="#FF4330" />
  34. </view>
  35. </view>
  36. </view>
  37. </van-action-sheet>