index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <popup v-if="show">
  3. <div @touchmove.stop class="ui-message ui-message-confirm" style="width: 90%">
  4. <div class="ui-message-header">
  5. <span>{{title}}</span>
  6. <span @click="$emit('close')">
  7. <i class="iconfont icon-close"></i>
  8. </span>
  9. </div>
  10. <div class="ui-message-main">
  11. <slot name="content" />
  12. </div>
  13. </div>
  14. </popup>
  15. </template>
  16. <script>
  17. import Popup from "@/components/shared/popup";
  18. export default {
  19. props:['show','title'],
  20. components:{
  21. Popup
  22. },
  23. data(){
  24. return {
  25. key:''
  26. }
  27. },
  28. methods:{
  29. }
  30. }
  31. </script>
  32. <style lang="less" scoped>
  33. .ui-message-confirm{
  34. padding: 0;
  35. border-radius: 0;
  36. .icon-close{
  37. color: #909090;
  38. }
  39. .ui-message-header{
  40. border-bottom: 1px solid #EBEBEB;
  41. padding: 12px 20px 12px 30px;
  42. >span{
  43. margin: 0;
  44. }
  45. }
  46. .ui-message-main{
  47. margin: 20px auto;
  48. background: #fff;
  49. }
  50. .ui-message-footer{
  51. width: 100%;
  52. .btn{
  53. width: 80%;
  54. display: flex;
  55. justify-content: center;
  56. margin: 0 auto;
  57. .ui-button{
  58. max-width: 104px
  59. }
  60. }
  61. }
  62. }
  63. </style>
  64. <style lang="less" scoped>
  65. .con {
  66. padding: 24px 30px;
  67. .top {
  68. display: flex;
  69. justify-content: space-between;
  70. align-items: center;
  71. .icon-close{
  72. color: #202020;
  73. }
  74. }
  75. .btn{
  76. margin-top: 18px;
  77. .ui-button{
  78. position: relative;
  79. &:hover{
  80. .upload-list{
  81. display: block;
  82. }
  83. }
  84. }
  85. }
  86. >.list{
  87. margin-top: 20px;
  88. .img{
  89. width: 60px;
  90. height: 60px;
  91. position: relative;
  92. overflow: hidden;
  93. cursor: pointer;
  94. >img{
  95. position: absolute;
  96. height: 100%;
  97. transform: translate(-50%,-50%);
  98. top: 50%;
  99. left: 50%;
  100. }
  101. }
  102. .audio{
  103. position: relative;
  104. width: 60px;
  105. height: 60px;
  106. i{
  107. font-size: 24px;
  108. position: absolute;
  109. transform: translateY(-50%);
  110. top: 50%;
  111. left: 5px;
  112. cursor: pointer;
  113. }
  114. }
  115. }
  116. }
  117. .cancel{
  118. background: #EBEBEB;
  119. }
  120. .ui-button-rect{
  121. border-radius: 0;
  122. align-items: center;
  123. vertical-align: middle;
  124. color: #202020;
  125. display: flex;
  126. justify-content: center;
  127. padding: 0 20px;
  128. line-height: 32px;
  129. height: 32px;
  130. border: none;
  131. text-align: center;
  132. >i{
  133. margin-left: 5px;
  134. }
  135. }
  136. .ui-message-header{
  137. font-weight: bold;
  138. font-size: 16px;
  139. }
  140. </style>