memberList.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <view class="memberList">
  2. <navigation-bar title="选择会员享用人"></navigation-bar>
  3. <view class="appBg"></view>
  4. <scroll-view scroll-y class="memberListCon">
  5. <view wx:for="{{ memberList }}" wx:key="index" bind:tap="onSelect" data-item="{{ item }}" class="memberInfo {{ item.id === id?'active':'' }}">
  6. <view class="infoCon">
  7. <image class="tip" src="../index/images/member.png" />
  8. <text class="name">{{item.name}}</text>
  9. <text class="phone">{{item.phone}}</text>
  10. </view>
  11. <view class="schoolInfoCon">
  12. <text class="schoolInfo">学校信息</text><text class="schoolInfoDes">{{
  13. item.provinceName + item.cityName + item.regionName + item.schoolAreaName + my.GRADE_ENUM[item.currentGradeNum] + item.currentClass + "班"
  14. }}
  15. </text>
  16. </view>
  17. <view class="operateCon">
  18. <view class="radio">
  19. <image wx:if="{{item.id === id}}" src="../login/images/radio-active.png"></image>
  20. <image wx:else src="../login/images/radio-default.png"></image>
  21. <text>{{ item.id === id ? "当前选中" : "未选中"}}</text>
  22. </view>
  23. <view class="operate">
  24. <view catch:tap="onDel" data-id="{{ item.id }}">删除</view>
  25. <view catch:tap="onEdit" data-id="{{ item.id }}">编辑</view>
  26. </view>
  27. </view>
  28. </view>
  29. </scroll-view>
  30. <view class="submitCon">
  31. <view class="subBtn" bind:tap="onAdd">
  32. <image src="./images/user.png" />
  33. 新增会员信息
  34. </view>
  35. </view>
  36. <view class="popup-section" wx:if="{{popupShow}}">
  37. <view class="popup-mask" bind:tap="onDialogClose"></view>
  38. <view class="popup-container">
  39. <view class="tit">请确认是否删除该会员信息</view>
  40. <view class="btnCon">
  41. <view bind:tap="onDialogClose">取消</view>
  42. <view bind:tap="onDialogOk">确认</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <wxs module="my">
  48. var GRADE_ENUM = {
  49. '1': '一年级',
  50. '2': '二年级',
  51. '3': '三年级',
  52. '4': '四年级',
  53. '5': '五年级',
  54. '6': '六年级',
  55. '7': '七年级',
  56. '8': '八年级',
  57. '9': '九年级'
  58. }
  59. module.exports = {
  60. GRADE_ENUM: GRADE_ENUM
  61. }
  62. </wxs>