index.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  2. <view slot="info" class="main" style="height:{{infoHeight}}px;">
  3. <view class="one">
  4. <button type="primary" size="mini" bindtap="toAdd">添加用户</button>
  5. </view>
  6. <view class="two">
  7. <view class="list" wx:key="item" wx:for="{{list}}">
  8. <view class="name">{{item.name}}</view>
  9. <view class="other">
  10. <view class="otherInfo">联系电话:<text>{{item.phone||'暂无' }}</text></view>
  11. <view class="otherInfo textOver">电子邮箱:<text>{{item.email||'暂无' }}</text></view>
  12. </view>
  13. <view class="btn">
  14. <button type="info" size="mini" bindtap="toView">详细信息</button>
  15. <button type="info" size="mini" bindtap="toEdit">信息变更</button>
  16. <button type="primary" size="mini" bindtap="toReset">密码重置</button>
  17. <button type="warn" size="mini" bindtap="toDel">删除信息</button>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </mobile-main>
  23. <van-dialog use-slot title="{{dialog.title}}" show="{{ dialog.show }}" confirmButtonText="返回">
  24. <view class="dialog">
  25. <view class="content">
  26. <view class="left"><text>姓名:</text></view>
  27. <view class="right"><input name="name" value="{{info.name}}" disabled></input></view>
  28. </view>
  29. <view class="content">
  30. <view class="left"><text>电话:</text></view>
  31. <view class="right"><input name="phone" value="{{info.phone}}" disabled></input></view>
  32. </view>
  33. <view class="content">
  34. <view class="left"><text>电子邮箱:</text></view>
  35. <view class="right"><input name="email" value="{{info.email}}" disabled></input></view>
  36. </view>
  37. <view class="content">
  38. <view class="left"><text>联系地址:</text></view>
  39. <view class="right"><input name="address" value="{{info.address}}" disabled></input></view>
  40. </view>
  41. <view class="content">
  42. <view class="left"><text>部门:</text></view>
  43. <view class="right"><input name="dept" value="{{info.dept}}" disabled></input></view>
  44. </view>
  45. <view class="content">
  46. <view class="left"><text>职务:</text></view>
  47. <view class="right"><input name="zw" value="{{info.zw}}" disabled></input></view>
  48. </view>
  49. <view class="content">
  50. <view class="left"><text>工作单位:</text></view>
  51. <view class="right"><input name="company" value="{{info.company}}" disabled></input></view>
  52. </view>
  53. <view class="content">
  54. <view class="left"><text>用户类型:</text></view>
  55. <view class="right"><input name="type" value="{{info.type}}" disabled></input></view>
  56. </view>
  57. </view>
  58. </van-dialog>