list.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view>
  3. <block v-if="datainfo.length>0">
  4. <!-- 认证 -->
  5. <block v-if="type=='rzbox'">
  6. <view class="rzlist flex" v-for="(ite,idx) in datainfo" :key="idx">
  7. <view class="flex1">
  8. <view class="rztop flexc mb10">
  9. <view class="name">王宇宁</view>
  10. <view class="imgs flexcc">
  11. <image :src="man" class="imga"></image>
  12. <!-- <image :src="wman" class="imgb"></image> -->
  13. </view>
  14. <image :src="rzbtn" class="rzimg"></image>
  15. </view>
  16. <view class="num flexc">
  17. <image :src="car"></image>
  18. <view>340824201503270246</view>
  19. </view>
  20. <view class="tits flexcw">
  21. <view class="tita">
  22. <view class="tit">第一人民小学</view>
  23. <view class="txt">学校名称</view>
  24. </view>
  25. <view class="tita">
  26. <view class="tit">三年级 2 班</view>
  27. <view class="txt">班级名称</view>
  28. </view>
  29. </view>
  30. </view>
  31. <image :src="profile" class="headimg"></image>
  32. </view>
  33. </block>
  34. <view class="shax" v-if="wtdt">{{wtdt}}</view>
  35. </block>
  36. <!-- 无数据 -->
  37. <view class="nodata" v-else>
  38. <image :src="noiconpimg"></image>
  39. <view>您还未绑定孩子的信息,请前去添加绑定</view>
  40. <view>防溺水,早安心</view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  46. import config from '@/config'
  47. export default{
  48. props:{
  49. datainfo: {
  50. type: Array,
  51. default () {
  52. return []
  53. }
  54. },
  55. wtdt:{
  56. type:String,
  57. default () {
  58. return ''
  59. }
  60. },
  61. type:{
  62. type:String,
  63. default () {
  64. return 0
  65. }
  66. },
  67. },
  68. data(){
  69. return{
  70. noiconpimg:require("@/work/images/nodata.png"),
  71. man:require("@/work/images/rz/man.png"),
  72. wman:require("@/work/images/rz/wman.png"),
  73. rzbtn:require("@/work/images/rz/rzbtn.png"),
  74. car:require("@/work/images/rz/car.png"),
  75. profile:require("@/static/images/profile.jpg"),
  76. baseUrl:config.baseUrl,
  77. }
  78. },
  79. mounted() {
  80. },
  81. methods:{
  82. checkPermi, checkRole,
  83. getDetail(e){
  84. this.$emit('getDetail',e)
  85. },
  86. }
  87. }
  88. </script>
  89. <style lang="scss" scoped>
  90. // 认证列表
  91. .rzlist{background: linear-gradient(70deg, #E4ECFF, #FFFFFF, #F0F3FB);
  92. box-shadow: 0px 6rpx 14rpx 0px rgba(76,76,76,0.13);width: 100%;
  93. border-radius: 20rpx;margin-bottom: 28rpx;padding: 30rpx 30rpx 20rpx 32rpx;
  94. .rztop{
  95. .name{font-weight: bold;font-size: 32rpx;color: #000000;margin-right: 12rpx;}
  96. .imgs{width: 22rpx;height: 32rpx;margin-right: 12rpx;flex: 0 0 auto;
  97. .imga{width: 16rpx;height: 30rpx;}
  98. .imgb{width: 22rpx;height: 32rpx;}
  99. }
  100. .rzimg{width: 84rpx;height: 34rpx;flex: 0 0 auto;}
  101. }
  102. .num{font-weight: 500;font-size: 24rpx;color: #666666;margin-bottom: 52rpx;
  103. image{width: 26rpx;height: 22rpx;margin-right: 14rpx;}
  104. }
  105. .tits{
  106. .tita{min-width: 50%;margin-bottom: 10rpx;}
  107. .tit{font-weight: bold;font-size: 26rpx;color: #000000;margin-bottom: 12rpx;}
  108. .txt{font-weight: 500;font-size: 24rpx;color: #666666;}
  109. }
  110. .headimg{width: 178rpx;flex: 0 0 auto;margin-left: 10rpx;
  111. height: 208rpx;margin-top: 6rpx;}
  112. }
  113. // 无数据
  114. .nodata{display: flex;flex-direction: column;align-items: center;padding-top: 120rpx;
  115. image{width: 470rpx;height: 470rpx;margin-bottom: 4rpx;}
  116. view{font-size: 26rpx;color: #000000;font-weight: 500;line-height: 42rpx;}
  117. }
  118. </style>