index.vue 3.5 KB

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