index.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. .dialog{
  76. position: fixed;
  77. left: 0;
  78. right: 0;
  79. top: 0;
  80. bottom: 0;
  81. z-index: 1001;
  82. background: rgba(0,0,0,.4);
  83. justify-content: flex-end;
  84. &-box{
  85. width: 100%;
  86. background: #F7F7F7;
  87. border-radius: 24rpx 24rpx 0rpx 0rpx;
  88. padding: 48rpx 24rpx 64rpx;
  89. box-sizing: border-box;
  90. position: relative;
  91. &-title{
  92. font-family: PingFang-SC, PingFang-SC;
  93. font-weight: bold;
  94. font-size: 32rpx;
  95. color: #002846;
  96. line-height: 32rpx;
  97. text-align: center;
  98. }
  99. &-close{
  100. width: 48rpx;
  101. height: 48rpx;
  102. position: absolute;
  103. top: 30rpx;
  104. right: 30rpx;
  105. }
  106. &-select{
  107. margin-top: 66rpx;
  108. &-left{
  109. font-family: PingFang-SC, PingFang-SC;
  110. font-weight: bold;
  111. font-size: 32rpx;
  112. color: #002846;
  113. line-height: 36rpx;
  114. }
  115. &-right{
  116. image{
  117. width: 36rpx;
  118. height: 36rpx;
  119. }
  120. text{
  121. font-family: PingFangSC, PingFang SC;
  122. font-weight: 400;
  123. font-size: 30rpx;
  124. color: #002846;
  125. line-height: 36rpx;
  126. margin-left: 10rpx;
  127. }
  128. }
  129. }
  130. &-bottom{
  131. width: 100%;
  132. height: 88rpx;
  133. background: rgba(25,156,156,0.1);
  134. border-radius: 44rpx;
  135. font-family: PingFang-SC, PingFang-SC;
  136. font-weight: bold;
  137. font-size: 32rpx;
  138. color: #009191;
  139. line-height: 88rpx;
  140. text-align: center;
  141. margin-top: 40rpx;
  142. }
  143. &-list{
  144. height: 900rpx;
  145. margin-top: 10rpx;
  146. overflow-y: auto;
  147. &-item{
  148. background: #FFFFFF;
  149. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  150. border-radius: 24rpx;
  151. margin-top: 20rpx;
  152. position: relative;
  153. padding: 36rpx 24rpx;
  154. &-status{
  155. padding: 11rpx 16rpx 29rpx 37rpx;
  156. box-sizing: border-box;
  157. position: absolute;
  158. top: 0;
  159. right: 0;
  160. font-family: PingFangSC, PingFang SC;
  161. font-weight: 400;
  162. font-size: 24rpx;
  163. color: #FFFFFF;
  164. line-height: 24rpx;
  165. &.wzd{
  166. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/team_user_wzd.png') no-repeat;
  167. background-size: 100% 100%;
  168. color: #193D59;
  169. }
  170. &.yzd{
  171. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/team_user_yzd.png') no-repeat;
  172. background-size: 100% 100%;
  173. }
  174. }
  175. &-select{
  176. padding-right: 24rpx;
  177. image{
  178. width: 36rpx;
  179. height: 36rpx;
  180. }
  181. }
  182. &-name{
  183. text{
  184. font-family: PingFang-SC, PingFang-SC;
  185. font-weight: bold;
  186. font-size: 30rpx;
  187. color: #002846;
  188. line-height: 32rpx;
  189. }
  190. .type{
  191. margin-left: 20rpx;
  192. background: #FFF7DC;
  193. border-radius: 20rpx;
  194. padding: 5rpx 16rpx;
  195. font-family: PingFangSC, PingFang SC;
  196. font-weight: 400;
  197. font-size: 22rpx;
  198. color: #BA9B31;
  199. line-height: 30rpx;
  200. }
  201. }
  202. &-email{
  203. font-family: PingFangSC, PingFang SC;
  204. font-weight: 400;
  205. font-size: 28rpx;
  206. color: #667E90;
  207. line-height: 28rpx;
  208. margin-top: 24rpx;
  209. }
  210. }
  211. }
  212. }
  213. }
  214. </style>