kefu.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="content">
  3. <view class="kefu_box">
  4. <view class="title">联系电话</view>
  5. <view style="font-size: 32rpx;">{{mobile}}</view>
  6. <view class="btn" @click="PhoneCall">一键拨打</view>
  7. <view class="image">
  8. <image src="../../../static/logo.png"></image>
  9. </view>
  10. <view class="tit">长按二维码添加微信</view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. mobile: '17884849832'
  19. }
  20. },
  21. methods: {
  22. PhoneCall() {
  23. uni.makePhoneCall({
  24. phoneNumber: this.mobile //仅为示例
  25. });
  26. }
  27. }
  28. }
  29. </script>
  30. <style>
  31. page {
  32. background: #F2F2F2;
  33. }
  34. .content {
  35. width: 100%;
  36. }
  37. .kefu_box {
  38. width: 90%;
  39. margin: 0 auto;
  40. background: #ffffff;
  41. border-radius: 17rpx;
  42. margin-top: 40rpx;
  43. padding: 35rpx 0rpx;
  44. text-align: center;
  45. }
  46. .title {
  47. padding: 20rpx 0rpx;
  48. font-size: 41rpx;
  49. letter-spacing: 2rpx;
  50. }
  51. .btn {
  52. background: #FF6A04;
  53. color: #ffffff;
  54. width: 42%;
  55. margin: 0 auto;
  56. border-radius: 54rpx;
  57. padding: 20rpx 0rpx;
  58. font-size: 37rpx;
  59. letter-spacing: 2rpx;
  60. margin-top: 25rpx;
  61. }
  62. .image {
  63. width: 40%;
  64. height: 300rpx;
  65. margin: 0 auto;
  66. padding: 20rpx 0rpx;
  67. }
  68. .image image {
  69. width: 100%;
  70. height: 100%;
  71. }
  72. .tit {
  73. color: #666666;
  74. font-size: 28rpx;
  75. }
  76. </style>