LinkSalerBox.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="com-del-box link-saler-box">
  3. <div class="title">
  4. <i @click="cancel()"></i>
  5. </div>
  6. <div class="content">
  7. <p><i class="fa fa-exclamation-circle"></i>抱歉,暂时无法与{{target == 'saler' ? '卖' : '买'}}家在线沟通!</p>
  8. <p>{{target == 'saler' ? '卖' : '买'}}家联系电话:<span v-text="tel"></span></p>
  9. <div>
  10. <a @click="cancel()">我知道了</a>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. tel: {
  19. default: '',
  20. type: String
  21. },
  22. target: {
  23. default: 'saler',
  24. type: String
  25. }
  26. },
  27. methods: {
  28. cancel: function () {
  29. this.$emit('cancelAction')
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .link-saler-box {
  36. width: 289px;
  37. height: auto;
  38. min-height: auto;
  39. border-radius: 2px;
  40. .title {
  41. background-color: #4290f7;
  42. height: 22px;
  43. line-height: 22px;
  44. margin-bottom: 20px;
  45. }
  46. .content {
  47. p {
  48. line-height: 20px;
  49. padding-top: 0;
  50. i {
  51. color: #4290f7;
  52. margin-right: 4px;
  53. }
  54. span {
  55. color: #f62d37;
  56. }
  57. }
  58. div {
  59. a {
  60. width: 78px;
  61. background: #4290f7;
  62. margin: 18px 0 13px 0;
  63. border-radius: 2px;
  64. }
  65. }
  66. }
  67. }
  68. </style>