index.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view class="dialog adffc" v-if="show">
  3. <view class="dialog-box">
  4. <view class="dialog-box-title">{{title}}</view>
  5. <image class="dialog-box-close" :src="imgBase+'remind_close.png'" @click="close"></image>
  6. <div class="dialog-box-select adfacjb">
  7. <div class="dialog-box-select-left">已选 {{selectNums}} 人</div>
  8. <div class="dialog-box-select-right adfac" @click="changeAll">
  9. <image :src="imgBase+'selected.png'" v-if="selectAll"></image>
  10. <image :src="imgBase+'not_select.png'" v-else></image>
  11. <text>全选</text>
  12. </div>
  13. </div>
  14. <view class="dialog-box-list">
  15. <view class="dialog-box-list-item adfac" v-for="(item,index) in list" :key="index" @click="handleSelectUser(item,index)">
  16. <view class="dialog-box-list-item-status" :class="{'wzd':item.status===0,'yzd':item.status===1}">{{statusCfg[item.status]}}</view>
  17. <view class="dialog-box-list-item-select">
  18. <image :src="imgBase+'selected.png'" v-if="item.select"></image>
  19. <image :src="imgBase+'not_select.png'" v-else></image>
  20. </view>
  21. <view>
  22. <view class="dialog-box-list-item-name adfac">
  23. <text>{{item.realName}}</text>
  24. <view class="type">{{item.categoryName}}</view>
  25. </view>
  26. <view class="dialog-box-list-item-email">{{item.email}}</view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="zt_btn" style="margin-top: 80rpx;" @click="handleConfirm">确认发送</view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. props:{
  37. show:{
  38. typeof:Boolean,
  39. default:false
  40. },
  41. list:{
  42. typeof:Array,
  43. default:[]
  44. }
  45. },
  46. data(){
  47. return {
  48. title:'发送报告',
  49. statusCfg:{
  50. 0:'未作答',
  51. 1:'已作答'
  52. },
  53. selectNums:0,
  54. selectAll:false,
  55. }
  56. },
  57. methods:{
  58. close(){
  59. this.$emit('close');
  60. },
  61. changeAll(){
  62. this.selectAll = !this.selectAll;
  63. this.$emit('changeAll',this.selectAll);
  64. },
  65. handleSelectUser(item,index){
  66. this.$emit('handleSelectUser',index);
  67. },
  68. handleConfirm(){
  69. this.$emit('handleConfirm');
  70. },
  71. }
  72. }
  73. </script>
  74. <style scoped lang="scss">
  75. @import '../../static/_asset-config';
  76. .dialog{
  77. position: fixed;
  78. left: 0;
  79. right: 0;
  80. top: 0;
  81. bottom: 0;
  82. z-index: 1001;
  83. background: rgba(0,0,0,.4);
  84. justify-content: flex-end;
  85. &-box{
  86. width: 100%;
  87. background: #F7F7F7;
  88. border-radius: 24rpx 24rpx 0rpx 0rpx;
  89. padding: 48rpx 24rpx 64rpx;
  90. box-sizing: border-box;
  91. position: relative;
  92. &-title{
  93. font-family: PingFang-SC, PingFang-SC;
  94. font-weight: bold;
  95. font-size: 32rpx;
  96. color: #002846;
  97. line-height: 32rpx;
  98. text-align: center;
  99. }
  100. &-close{
  101. width: 48rpx;
  102. height: 48rpx;
  103. position: absolute;
  104. top: 30rpx;
  105. right: 30rpx;
  106. }
  107. &-select{
  108. margin-top: 66rpx;
  109. &-left{
  110. font-family: PingFang-SC, PingFang-SC;
  111. font-weight: bold;
  112. font-size: 32rpx;
  113. color: #002846;
  114. line-height: 36rpx;
  115. }
  116. &-right{
  117. image{
  118. width: 36rpx;
  119. height: 36rpx;
  120. }
  121. text{
  122. font-family: PingFangSC, PingFang SC;
  123. font-weight: 400;
  124. font-size: 30rpx;
  125. color: #002846;
  126. line-height: 36rpx;
  127. margin-left: 10rpx;
  128. }
  129. }
  130. }
  131. &-bottom{
  132. width: 100%;
  133. height: 88rpx;
  134. background: rgba(25,156,156,0.1);
  135. border-radius: 44rpx;
  136. font-family: PingFang-SC, PingFang-SC;
  137. font-weight: bold;
  138. font-size: 32rpx;
  139. color: #009191;
  140. line-height: 88rpx;
  141. text-align: center;
  142. margin-top: 40rpx;
  143. }
  144. &-list{
  145. height: 900rpx;
  146. margin-top: 10rpx;
  147. overflow-y: auto;
  148. &-item{
  149. background: #FFFFFF;
  150. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  151. border-radius: 24rpx;
  152. margin-top: 20rpx;
  153. position: relative;
  154. padding: 36rpx 24rpx;
  155. &-status{
  156. padding: 11rpx 16rpx 29rpx 37rpx;
  157. box-sizing: border-box;
  158. position: absolute;
  159. top: 0;
  160. right: 0;
  161. font-family: PingFangSC, PingFang SC;
  162. font-weight: 400;
  163. font-size: 24rpx;
  164. color: #FFFFFF;
  165. line-height: 24rpx;
  166. &.wzd{
  167. background: asset-image('team_user_wzd.png') no-repeat;
  168. background-size: 100% 100%;
  169. color: #193D59;
  170. }
  171. &.yzd{
  172. background: asset-image('team_user_yzd.png') no-repeat;
  173. background-size: 100% 100%;
  174. }
  175. }
  176. &-select{
  177. padding-right: 24rpx;
  178. image{
  179. width: 36rpx;
  180. height: 36rpx;
  181. }
  182. }
  183. &-name{
  184. text{
  185. font-family: PingFang-SC, PingFang-SC;
  186. font-weight: bold;
  187. font-size: 30rpx;
  188. color: #002846;
  189. line-height: 32rpx;
  190. }
  191. .type{
  192. margin-left: 20rpx;
  193. background: #FFF7DC;
  194. border-radius: 20rpx;
  195. padding: 5rpx 16rpx;
  196. font-family: PingFangSC, PingFang SC;
  197. font-weight: 400;
  198. font-size: 22rpx;
  199. color: #BA9B31;
  200. line-height: 30rpx;
  201. }
  202. }
  203. &-email{
  204. font-family: PingFangSC, PingFang SC;
  205. font-weight: 400;
  206. font-size: 28rpx;
  207. color: #667E90;
  208. line-height: 28rpx;
  209. margin-top: 24rpx;
  210. }
  211. }
  212. }
  213. }
  214. }
  215. </style>