item.wxml 1.2 KB

123456789101112131415161718192021
  1. <template name="main_item">
  2. <view style="display:flex;justify-content:space-between;align-items:center;width:98%;background-color:#FFFFFF;height:50px;">
  3. <text style="width:85px;margin-left:10px;font-size:10pt;">{{title}}</text>
  4. <view style="display:flex;justify-content:flex-start;align-items:center;width:100%;margin-left:5px;">
  5. <text style="font-size:10pt;">{{content}}</text>
  6. </view>
  7. <mp-icon icon="arrow" color="#a1a1a1" size="{{8}}" mar></mp-icon>
  8. </view>
  9. </template>
  10. <template name="main_item_input">
  11. <view style="display:flex;justify-content:space-between;align-items:center;width:98%;background-color:#FFFFFF;height:50px;">
  12. <text style="width:85px;margin-left:10px;font-size:10pt;">{{title}}</text>
  13. <view style="display:flex;justify-content:flex-start;align-items:center;width:100%;margin-left:5px;">
  14. <view class="weui-cells weui-cells_after-title" style="width:100%;">
  15. <input class="weui-input" maxlength="10" placeholder="{{placeholder}}" style="width:100%;font-size:10pt;height:30pt;border: none;"/>
  16. </view>
  17. </view>
  18. <mp-icon icon="arrow" color="#a1a1a1" size="{{8}}" mar></mp-icon>
  19. </view>
  20. </template>