Service.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <div class="ewm_dialog">
  3. <van-popup v-model="isShow" style="border-radius: 0.3rem;" @click-overlay="closed">
  4. <div class="ewm-part">
  5. <h3 class="ewm-top">
  6. {{serviceData.title}}
  7. </h3>
  8. <div class="ewm-center">
  9. <img :src="serviceData.url" alt="">
  10. </div>
  11. <div class="ewm-bottom">
  12. <p>{{serviceData.desc}}</p>
  13. <p>{{serviceData.remark}}</p>
  14. </div>
  15. </div>
  16. </van-popup>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: '',
  22. props: {
  23. show: {
  24. type: Boolean,
  25. default: false,
  26. require: true
  27. },
  28. serviceData: Object
  29. },
  30. data () {
  31. return {
  32. isShow: false
  33. }
  34. },
  35. components: {},
  36. computed: {},
  37. beforeMount () {},
  38. mounted () {},
  39. methods: {
  40. closed () {
  41. this.$emit('closeDialog')
  42. }
  43. },
  44. created () {
  45. },
  46. watch: {
  47. 'show': function (val) {
  48. this.isShow = val
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang='less' scoped>
  54. .ewm_dialog {
  55. .ewm-part {
  56. width: 5.5rem;
  57. height: 5.88rem;
  58. background: #fff;
  59. border-radius: 0.3rem;
  60. overflow: hidden;
  61. .ewm-top {
  62. background: #28cd5e;
  63. height: 0.88rem;
  64. width: 100%;
  65. color: #fff;
  66. text-align: center;
  67. font-weight: 600;
  68. font-size: 0.36rem;
  69. line-height: 0.88rem;
  70. }
  71. .ewm-center img {
  72. height: 3rem;
  73. width: 3rem;
  74. display: block;
  75. margin: .5rem auto .35rem;
  76. }
  77. .ewm-bottom {
  78. line-height: .42rem;
  79. font-size: 0.26rem;
  80. color: #4c4c4c;
  81. text-align: center;
  82. }
  83. }
  84. }
  85. </style>