index.wxml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!-- 提示收藏小程序组件 animation="{{animationData}}"-->
  2. <view class='collectedTips' animation="{{animationData}}" wx:if="{{showShopPopup}}">
  3. {{collegeTips}}
  4. </view>
  5. <!-- 提示关注公众号组件 -->
  6. <view style='width:100%;'>
  7. <official-account style="" class="attent" bindload="successload" binderror='failload'></official-account>
  8. </view>
  9. <scroll-view class="bg-scroll-view" scroll-y>
  10. <image class="banner" src="../../icon/public/diban.png"></image>
  11. <view class="item-bg">
  12. <view class="picker-view">
  13. <text>{{picker[0].t}}</text>
  14. <picker mode="multiSelector" value="{{picker[0].v}}" range="{{picker[0].a}}" id="{{picker[0].i}}" bindchange="pickerChange" bindcolumnchange="pickerColumnChange">
  15. <view class="picker-content-view">
  16. <text>{{picker[0].c}}</text>
  17. <image src="../../icon/public/arrow.png"></image>
  18. </view>
  19. </picker>
  20. </view>
  21. <view class="line"></view>
  22. <view class="picker-view" hidden="{{picker[4].a.length <= 1}}">
  23. <text>{{picker[4].t}}</text>
  24. <picker value="{{picker[4].v}}" range="{{picker[4].a}}" id="{{picker[4].i}}" bindchange="pickerChange">
  25. <view class="picker-content-view">
  26. <text>{{picker[4].c}}</text>
  27. <image src="../../icon/public/arrow.png"></image>
  28. </view>
  29. </picker>
  30. </view>
  31. <view class="line" hidden="{{picker[4].a.length <= 1}}"></view>
  32. <view>
  33. <text>{{input.t}}</text>
  34. <input placeholder="{{input.p}}" placeholder-class="placeholder" maxlength="10" value="{{input.c}}" type="number" bindinput="inputAction" bindblur='bindblurAction' hidden="{{tips.s}}" id="{{input.i}}"></input>
  35. </view>
  36. <view class="line"></view>
  37. <view class="picker-view">
  38. <text>{{picker[1].t}}</text>
  39. <view bindtap="tipsAction" id="0">
  40. <image src="../../icon/home/info.png"></image>
  41. </view>
  42. <picker value="{{picker[1].v}}" range="{{picker[1].a}}" id="{{picker[1].i}}" bindchange="pickerChange">
  43. <view class="picker-content-view">
  44. <text>{{picker[1].c}}</text>
  45. <image src="../../icon/public/arrow.png"></image>
  46. </view>
  47. </picker>
  48. </view>
  49. <view class="line"></view>
  50. <view class="picker-view">
  51. <text>{{picker[2].t}}</text>
  52. <view bindtap="tipsAction" id="1">
  53. <image src="../../icon/home/info.png"></image>
  54. </view>
  55. <picker value="{{picker[2].v}}" range="{{picker[2].a}}" id="{{picker[2].i}}" bindchange="pickerChange">
  56. <view class="picker-content-view">
  57. <text>{{picker[2].c}}</text>
  58. <image src="../../icon/public/arrow.png"></image>
  59. </view>
  60. </picker>
  61. </view>
  62. <view class="line"></view>
  63. <view hidden="{{picker[2].v == 2}}" class="picker-view">
  64. <text>{{picker[3].t}}</text>
  65. <picker value="{{picker[3].v}}" range="{{picker[3].a}}" id="{{picker[3].i}}" bindchange="pickerChange">
  66. <view class="picker-content-view">
  67. <text>{{picker[3].c}}</text>
  68. <image src="../../icon/public/arrow.png"></image>
  69. </view>
  70. </picker>
  71. </view>
  72. <view class="line"></view>
  73. <view>
  74. <text>{{deduct.t}}</text>
  75. <text bindtap="toDeduct">{{deduct.c}}</text>
  76. <image bindtap="toDeduct" style="width: 16rpx;height: 28rpx;margin: auto 30rpx auto 24rpx;" src="../../icon/public/arrow.png"></image>
  77. <!-- <view bindtap="toDeduct">填报</view> -->
  78. </view>
  79. <view class="line"></view>
  80. <view class="button-view" id="bottomView">
  81. <button open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo" style="border-color: rgba(0, 0, 0, 0)" hover-class="none" plain="true">计算</button>
  82. </view>
  83. </view>
  84. <view class='banner-bottom' id="bannerBottom">
  85. <image src='../../icon/public/jieshui.png' bindtap='toweb'></image>
  86. </view>
  87. <view style="width:100%;height:{{interval}}px;"></view>
  88. <view class="bottom-view">
  89. <image src="../../icon/public/footer.png"></image>
  90. </view>
  91. </scroll-view>
  92. <template is="tips-view" data="{{...tips}}"/>
  93. <template name="tips-view">
  94. <view class="tips-view" wx:if="{{s}}">
  95. <view>
  96. <text>{{t}}</text>
  97. <view>
  98. <text wx:for="{{c}}" wx:key="">{{item}}</text>
  99. </view>
  100. <view></view>
  101. <view bindtap="dismissTipsView">知道了</view>
  102. </view>
  103. </view>
  104. </template>