index.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. <!--components/diy-area/index.wxml-->
  2. <black wx:if="{{active == 1}}">
  3. <view class="box">
  4. <view style="font-size: {{txtfontsize}}rpx; color: {{txtcolor}}; margin: {{txtmargin}};">{{txt}}</view>
  5. <picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
  6. <view style="color: {{inputcolor}}; font-size: {{inputfontsize}}rpx; margin: {{inputmargin}};">
  7. {{region[0]}} {{region[1]}} {{region[2]}}
  8. </view>
  9. </picker>
  10. </view>
  11. </black>
  12. <black wx:if="{{active == 2}}">
  13. <view>
  14. <view style="font-size: {{txtfontsize}}rpx; color: {{txtcolor}}; margin: {{txtmargin}};">{{txt}}</view>
  15. <picker style="padding: {{padding}};border-radius: {{borderradius}}rpx;border: {{border}};width: {{width}}rpx; margin: {{margin}};" mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
  16. <view style="color: {{inputcolor}}; font-size: {{inputfontsize}}rpx;">
  17. {{region[0]}} {{region[1]}} {{region[2]}}
  18. </view>
  19. </picker>
  20. </view>
  21. </black>
  22. <black wx:if="{{active == 3}}">
  23. <view>
  24. <!-- <view style="font-size: {{txtfontsize}}rpx; color: {{txtcolor}}; margin: {{txtmargin}};">{{txt}}</view> -->
  25. <picker style="padding: {{padding}};border-radius: {{borderradius}}rpx;border: {{border}};width: {{width}}rpx; margin: {{margin}};" mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
  26. <view style="color: {{inputcolor}}; font-size: {{inputfontsize}}rpx;">
  27. {{region[0]}} {{region[1]}} {{region[2]}}
  28. </view>
  29. </picker>
  30. </view>
  31. </black>