index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="floating-customer-service">
  3. <button open-type="contact" class="contact-btns">
  4. <image src="https://kntobs.jnmyunl.com/shop/images/customer.png" mode="aspectFit" />
  5. <view class="text">客服投诉</view>
  6. </button>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. name: "FloatingCustomerService",
  12. data() {
  13. return {
  14. };
  15. }
  16. }
  17. </script>
  18. <style lang="scss" scoped>
  19. .floating-customer-service {
  20. position: fixed;
  21. right: 30rpx;
  22. bottom: 15%; // Slightly higher to avoid tabbar overlap
  23. z-index: 9999;
  24. width: 100rpx;
  25. height: 100rpx;
  26. border-radius: 50%;
  27. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.2);
  28. background-color: #2BC7B9;
  29. overflow: hidden;
  30. .contact-btns {
  31. width: 100%;
  32. height: 100%;
  33. padding: 0;
  34. margin: 0;
  35. background: transparent;
  36. border: none;
  37. display: flex;
  38. flex-direction: column;
  39. align-items: center;
  40. justify-content: center;
  41. &::after {
  42. border: none;
  43. }
  44. image {
  45. width: 50%;
  46. height: 50%;
  47. margin-bottom: 2rpx;
  48. }
  49. .text {
  50. font-size: 20rpx;
  51. color: #fff;
  52. line-height: 1;
  53. font-weight: bold;
  54. }
  55. }
  56. }
  57. </style>