user-data-edit.wxml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--module/user/components/user-data-edit/user-data-edit.wxml-->
  2. <wxs src="../../../../core/wxs/dictionary.wxs" module="dictionary" />
  3. <wxs src="../../../../core/wxs/field-status.wxs" module="field" />
  4. <!-- dictionary.label($dictionaries, 'sys_user_sex', model['sex'])}}" -->
  5. <block wx:if="{{showSpecialPeriodPicker}}">
  6. <t-cell t-class="cell-border-gradient cell-field" t-class-note="cell-field__wrapper {{field.className(dirty, model, 'womenSpecialPeriod')}}" title="女性特殊期" required bind:tap="onPicker">
  7. <field-picker class="cell-field__inner full" slot="note" title="女性特殊期" name="womenSpecialPeriod" value="{{model['womenSpecialPeriod']}}" options="{{dictionary.options($dictionaries, 'women_special_period')}}" multiple="{{false}}"></field-picker>
  8. </t-cell>
  9. </block>
  10. <t-cell t-class="cell-border-gradient cell-field" t-class-note="cell-field__wrapper {{field.className(dirty, model, 'womenSpecialPeriod')}}" title="身高" required>
  11. <input class="cell-field__inner suffix" slot="note" name="height" value="{{model['height']}}" type="number" placeholder="请输入身高" confirm-type="next" />
  12. <view class="cell-field__suffix" slot="note">厘米</view>
  13. </t-cell>
  14. <t-cell t-class="cell-border-gradient cell-field" t-class-note="cell-field__wrapper" title="体重" required>
  15. <input class="cell-field__inner suffix" slot="note" name="weight" value="{{model['weight']}}" type="number" placeholder="请输入体重" confirm-type="next" wx:key="weight" />
  16. <view class="cell-field__suffix" slot="note">公斤</view>
  17. </t-cell>
  18. <block wx:if="{{!retractable || expanded}}">
  19. <t-cell t-class="cell-border-gradient cell-field" t-class-note="cell-field__wrapper" title="食物过敏" bind:tap="onPicker">
  20. <field-picker class="cell-field__inner full" slot="note" title="食物过敏" name="foodAllergy" value="{{model['foodAllergy']}}" options="{{dictionary.options($dictionaries, 'food_allergy')}}"></field-picker>
  21. </t-cell>
  22. <t-cell t-class="cell-border-gradient cell-field" t-class-note="cell-field__wrapper" title="喜好口味" bind:tap="onPicker">
  23. <field-picker class="cell-field__inner full" slot="note" title="喜好口味" name="hobbyFlavor" value="{{model['hobbyFlavor']}}" options="{{dictionary.options($dictionaries, 'hobby_flavor')}}"></field-picker>
  24. </t-cell>
  25. <t-cell t-class="cell-border-gradient cell-field" title="饮酒情况">
  26. <field-radio slot="note" name="drinkState" default-value="N" value="{{model['drinkState']}}" options="{{dictionary.options($dictionaries, 'sys_yes_no')}}">
  27. </field-radio>
  28. </t-cell>
  29. <t-cell t-class="cell-border-gradient cell-field" title="吸烟情况">
  30. <field-radio slot="note" name="smokeState" default-value="N" value="{{model['smokeState']}}" options="{{dictionary.options($dictionaries, 'sys_yes_no')}}">
  31. </field-radio>
  32. </t-cell>
  33. <t-cell t-class="cell-border-gradient cell-field" t-class-note="cell-field__wrapper" title="现住址" bind:tap="onPicker">
  34. <field-cascader class="cell-field__inner full" slot="note" title="请选择地址" name="address" value="{{model['address']}}"></field-cascader>
  35. </t-cell>
  36. <t-cell t-class="cell-border-gradient cell-field" t-class-note="cell-field__wrapper" title="详细地址">
  37. <input class="cell-field__inner" slot="note" name="detailAddress" value="{{model['detailAddress']}}" type="text" placeholder="请输入详细地址" confirm-type="next" />
  38. </t-cell>
  39. <t-cell t-class="cell-border-gradient cell-field" t-class-note="cell-field__wrapper" title="职业" bind:tap="onPicker">
  40. <field-picker class="cell-field__inner full" slot="note" title="职业" name="job" value="{{model['job']}}" options="{{dictionary.options($dictionaries, 'job')}}" multiple="{{false}}"></field-picker>
  41. </t-cell>
  42. </block>
  43. <view class="more-button" wx:else bind:tap="onExpand">查看更多</view>