edit.wxml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <My_form id='from1' fromList='{{from1}}' bindCompletedOrNot='form1CompletedOrNot'>
  2. </My_form>
  3. <view style="height: 20rpx;" />
  4. <My_form id='from2' fromList='{{from2}}' />
  5. <view style="height: 20rpx;" />
  6. <My_form id='from3' fromList='{{from3}}'>
  7. <view slot='slot' style="width: 100%;" bindtap="openPopup">
  8. <view wx:if="{{from3[0].value}}">
  9. <van-tag plain custom-class='tag' wx:if="{{per.query(from3[0].value,'支持者')}}" type="warning">支持者</van-tag>
  10. <van-tag plain custom-class='tag' wx:if="{{per.query(from3[0].value,'反对者')}}" type="danger">反对者</van-tag>
  11. <van-tag plain custom-class='tag' wx:if="{{per.query(from3[0].value,'关键决策人')}}" type="primary">关键决策人</van-tag>
  12. </view>
  13. <text wx:else style="color: rgba(0, 0, 0, .3); font-size: 28rpx;">请选择</text>
  14. </view>
  15. <view slot='slot1' style="width: 100%;">
  16. <picker bindchange="bindPickerChange" value="{{groupname}}" range="{{groupNameList}}">
  17. <text wx:if="{{groupName}}">{{groupName}}</text>
  18. <text wx:else style="color: rgba(0, 0, 0, .3); font-size: 28rpx;">请选择</text>
  19. </picker>
  20. </view>
  21. </My_form>
  22. <!-- 标签弹出层 -->
  23. <van-popup show="{{ popupShow }}" position="bottom" custom-style="height: 530rpx;" round bind:close="closePopup">
  24. <view class="popup-title">选择联系人标签</view>
  25. <van-cell title="关键决策人" value-class="value-class" clickable bind:click="changeChecked">
  26. <van-checkbox catch:tap="noop" custom-class="checkboxes" bind:tap="changeChecked" value="{{ checked }}" />
  27. </van-cell>
  28. <van-radio-group value="{{ radio }}">
  29. <van-cell-group>
  30. <van-cell title="支持者" clickable data-name="支持者" bind:click="onChange">
  31. <van-radio slot="right-icon" name="支持者" />
  32. </van-cell>
  33. <van-cell title="反对者" clickable data-name="反对者" bind:click="onChange">
  34. <van-radio slot="right-icon" name="反对者" />
  35. </van-cell>
  36. </van-cell-group>
  37. </van-radio-group>
  38. <view class="popup-button">
  39. <van-button custom-class='but' type="default" bindtap="closePopup">取消</van-button>
  40. <van-button custom-class='but' type="info" bindtap="handleTag">确定</van-button>
  41. </view>
  42. </van-popup>
  43. <view class="footer">
  44. <van-button wx:if="{{sys_phonebookid==0}}" custom-class='button' loading='{{loading}}' loading-text="添加中..." disabled='{{disabled}}' color="#3874F6" bindtap="submit">确定添加</van-button>
  45. <van-button wx:else custom-class='button' disabled='{{disabled}}' loading='{{loading}}' loading-text="保存中..." color="#FA8C16" bindtap="submit">保存</van-button>
  46. </view>
  47. <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />