index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <view class="dialog-box-list">
  7. <view class="dialog-box-list-item" v-for="(item,index) in list" :key="index">
  8. <view class="dialog-box-list-item-status" :class="{'wzd':item.status===0,'yzd':item.status===1}">{{statusCfg[item.status]}}</view>
  9. <view class="dialog-box-list-item-name adfac">
  10. <text>{{item.name}}</text>
  11. <view class="type">{{typeCfg[item.type]}}</view>
  12. </view>
  13. <view class="dialog-box-list-item-email">{{item.email}}</view>
  14. <image class="dialog-box-list-item-delete" :src="imgBase+''" @click="deleteUser(item,index)" v-if="deluser"></image>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. props:{
  23. title:{
  24. typeof:String,
  25. default:'团队人员'
  26. },
  27. show:{
  28. typeof:Boolean,
  29. default:false
  30. },
  31. deluser:{
  32. typeof:Boolean,
  33. default:false
  34. },
  35. list:{
  36. typeof:Array,
  37. default:[]
  38. }
  39. },
  40. data(){
  41. return {
  42. typeCfg:{
  43. 1:'赞助人Sponsor',
  44. 2:'团队Leader',
  45. 3:'利益相关者Stakeholder'
  46. },
  47. statusCfg:{
  48. 0:'未作答',
  49. 1:'已作答'
  50. }
  51. }
  52. },
  53. methods:{
  54. close(){
  55. this.$emit('close')
  56. },
  57. deleteUser(item,index){
  58. this.$emit('deleteUser')
  59. }
  60. }
  61. }
  62. </script>
  63. <style scoped lang="scss">
  64. .dialog{
  65. position: fixed;
  66. left: 0;
  67. right: 0;
  68. top: 0;
  69. bottom: 0;
  70. z-index: 1001;
  71. background: rgba(0,0,0,.4);
  72. justify-content: flex-end;
  73. &-box{
  74. width: 100%;
  75. background: #F7F7F7;
  76. border-radius: 24rpx 24rpx 0rpx 0rpx;
  77. padding: 30rpx 24rpx 50rpx;
  78. box-sizing: border-box;
  79. position: relative;
  80. &-title{
  81. font-family: PingFang-SC, PingFang-SC;
  82. font-weight: bold;
  83. font-size: 32rpx;
  84. color: #002846;
  85. line-height: 32rpx;
  86. text-align: center;
  87. }
  88. &-close{
  89. width: 48rpx;
  90. height: 48rpx;
  91. position: absolute;
  92. top: 30rpx;
  93. right: 30rpx;
  94. }
  95. &-list{
  96. height: 900rpx;
  97. margin-top: 40rpx;
  98. overflow-y: auto;
  99. &-item{
  100. background: #FFFFFF;
  101. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  102. border-radius: 24rpx;
  103. margin-top: 20rpx;
  104. position: relative;
  105. padding: 36rpx 24rpx;
  106. &-status{
  107. padding: 11rpx 16rpx 29rpx 37rpx;
  108. box-sizing: border-box;
  109. position: absolute;
  110. top: 0;
  111. right: 0;
  112. font-family: PingFangSC, PingFang SC;
  113. font-weight: 400;
  114. font-size: 24rpx;
  115. color: #FFFFFF;
  116. line-height: 24rpx;
  117. &.wzd{
  118. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/team_user_wzd.png') no-repeat;
  119. background-size: 100% 100%;
  120. }
  121. &.yzd{
  122. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/team_user_yzd.png') no-repeat;
  123. background-size: 100% 100%;
  124. }
  125. }
  126. &-name{
  127. text{
  128. font-family: PingFang-SC, PingFang-SC;
  129. font-weight: bold;
  130. font-size: 30rpx;
  131. color: #002846;
  132. line-height: 32rpx;
  133. }
  134. .type{
  135. margin-left: 20rpx;
  136. background: #F8F4F8;
  137. border-radius: 20rpx;
  138. padding: 5rpx 16rpx;
  139. font-family: PingFangSC, PingFang SC;
  140. font-weight: 400;
  141. font-size: 22rpx;
  142. color: #9F6196;
  143. line-height: 30rpx;
  144. }
  145. }
  146. &-email{
  147. font-family: PingFangSC, PingFang SC;
  148. font-weight: 400;
  149. font-size: 28rpx;
  150. color: #667E90;
  151. line-height: 28rpx;
  152. margin-top: 24rpx;
  153. }
  154. &-delete{
  155. width: 36rpx;
  156. height: 36rpx;
  157. position: absolute;
  158. right: 24rpx;
  159. top: 64rpx;
  160. }
  161. }
  162. }
  163. }
  164. }
  165. </style>