姨妈管家小程序代码

firstSetting.wxml 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!--index.wxml-->
  2. <import src="../../template/switch/switch.wxml"/>
  3. <view wx:if="{{!hasUserInfo}}" class="login-wrapper">
  4. <view class="content-box"><icon class="icon-meiduo"></icon><text class="title">美多经期助手</text></view>
  5. <view class="btn-wrapper"><button class="login-btn" open-type="getUserInfo" bindgetuserinfo="getUserInfo">登录</button></view>
  6. </view>
  7. <view wx:else class='menses-set'>
  8. <view class='menses-set-title'>请填写您的基本情况</view>
  9. <!-- 最近一次月经时间 -->
  10. <view class='menses-flex-height'>
  11. <view class="picker-wrapper">
  12. <picker class="date-picker" mode="date" value="{{today}}" start="{{choose_start}}" end="{{today}}" bindchange="bindStartDateChange">
  13. <form bindsubmit="formSubmit" report-submit="true" style="height: 50px">
  14. <button class='submit-btn' hover-class="none" formType="submit"/>
  15. </form>
  16. <view class="set-date">
  17. <view class='flex-left'>
  18. <icon class='icon icon_setlist_01'></icon>
  19. <text>最近一次月经开始</text>
  20. </view>
  21. <view class='flex-right'>
  22. <text> {{start_date}}</text>
  23. <icon class='icon icon_setlist'></icon>
  24. </view>
  25. </view>
  26. </picker>
  27. </view>
  28. <view class="set-date p10"><text>您最近这次姨妈结束了吗</text><template is="switchWrapper" data="{{switchFlag}}" /></view>
  29. <view class="picker-wrapper" hidden="{{!switchFlag}}" >
  30. <picker class="date-picker" mode="date" value="{{today}}" start="{{choose_start}}" end="{{today}}" bindchange="bindEndDateChange">
  31. <form bindsubmit="formSubmit" report-submit="true" style="height: 50px">
  32. <button class='submit-btn' hover-class="none" formType="submit"/>
  33. </form>
  34. <view class="set-date" >
  35. <view class='flex-left'>
  36. <icon class='icon icon_setlist_01'></icon>
  37. <text>最近一次月经结束</text>
  38. </view>
  39. <view class='flex-right'>
  40. <text> {{end_date}}</text>
  41. <icon class='icon icon_setlist'></icon>
  42. </view>
  43. </view>
  44. </picker>
  45. </view>
  46. <!-- 月经周期 -->
  47. <view class="picker-wrapper">
  48. <picker class="date-picker" bindchange="bindPeriodChange" value="{{periodIndex}}" range="{{periodArr}}">
  49. <form bindsubmit="formSubmit" report-submit="true" style="height: 50px">
  50. <button class='submit-btn' hover-class="none" formType="submit"/>
  51. </form>
  52. <view class='set-date'>
  53. <view class='flex-left'>
  54. <icon class='icon icon_setlist_02'></icon>
  55. <text>月经周期</text>
  56. </view>
  57. <view class='flex-right'>
  58. <text>{{periodArr[periodIndex]}}天</text>
  59. <icon class='icon icon_setlist'></icon>
  60. </view>
  61. </view>
  62. </picker>
  63. </view>
  64. <!-- 经期时间 -->
  65. <view class="picker-wrapper">
  66. <picker class="date-picker" bindchange="bindMenstrualChange" value="{{index}}" range="{{menstrualArr}}">
  67. <form bindsubmit="formSubmit" report-submit="true" style="height: 50px">
  68. <button class='submit-btn' hover-class="none" formType="submit"/>
  69. </form>
  70. <view class='set-date'>
  71. <view class='flex-left'>
  72. <icon class='icon icon_setlist_03'></icon>
  73. <text>经期时间</text>
  74. </view>
  75. <view class='flex-right'>
  76. <text>{{menstrualArr[index]}}天</text>
  77. <icon class='icon icon_setlist'></icon>
  78. </view>
  79. </view>
  80. </picker>
  81. </view>
  82. </view>
  83. <button class='btn' bindtap="finishSetting">设置完成</button>
  84. </view>