酒店桌布为微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
2.2 KiB

7 months ago
  1. <template>
  2. <!-- 联系客服弹框 -->
  3. <uv-overlay :show="show" @click="close">
  4. <view class="warp">
  5. <view class="rect" @tap.stop>
  6. <view class="title">联系客服</view>
  7. <view class="center">确定拨打客服电话?</view>
  8. <view class="bottom">
  9. <view>
  10. <uv-button type="info" shape="circle" text="取消" :custom-style="customStyle1"
  11. @click="close"></uv-button>
  12. </view>
  13. <view>
  14. <uv-button type="info" shape="circle" text="确定" :custom-style="customStyle2"
  15. @click="confirm"></uv-button>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </uv-overlay>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. show: false,
  27. }
  28. },
  29. computed: {
  30. customStyle1() {
  31. return {
  32. height: '60rpx',
  33. background: '#FFF',
  34. color: '#000000',
  35. fontSize: '36rpx',
  36. borderRadius: '40rpx', //圆角
  37. // nvue中必须是下方的写法
  38. 'border-top-right-radius': '40rpx',
  39. 'border-bottom-left-radius': '40rpx',
  40. 'border-bottom-right-radius': '40rpx',
  41. 'width': '150rpx',
  42. }
  43. },
  44. customStyle2() {
  45. return {
  46. height: '60rpx',
  47. background: '#fd5100',
  48. color: '#FFF',
  49. fontSize: '34px',
  50. borderRadius: '40rpx', //圆角
  51. // nvue中必须是下方的写法
  52. 'border-top-right-radius': '40rpx',
  53. 'border-bottom-left-radius': '40rpx',
  54. 'border-bottom-right-radius': '40rpx',
  55. 'width': '150rpx',
  56. }
  57. }
  58. },
  59. methods: {
  60. open(){
  61. this.show = true
  62. },
  63. close(){
  64. this.show = false
  65. },
  66. confirm() {
  67. this.show = false
  68. },
  69. }
  70. }
  71. </script>
  72. <style scoped lang="scss">
  73. .warp {
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. height: 100%;
  78. }
  79. .rect {
  80. width: 600rpx;
  81. height: 300rpx;
  82. background-color: #fff;
  83. border-radius: 20rpx;
  84. overflow: hidden;
  85. .title {
  86. padding: 10rpx 0 0 15rpx;
  87. background-color: #fd5100;
  88. color: #FFF;
  89. text-align: left;
  90. width: 100%;
  91. height: 18%;
  92. font-size: 36rpx;
  93. }
  94. .center {
  95. height: 40%;
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. font-size: 36rpx;
  100. }
  101. .bottom {
  102. display: flex;
  103. justify-content: center;
  104. gap: 50rpx;
  105. }
  106. }
  107. </style>