特易招,招聘小程序
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.

85 lines
1.7 KiB

  1. <template>
  2. <view class="float-button">
  3. <!-- <button type="default" open-type="contact" class="kf-btn">
  4. <img src="../../static/images/details/kefu.svg" style="width: 26px;height: 36px;" alt="kefu"
  5. srcset="">
  6. </button> -->
  7. <button @click="call" class="kf-btn">
  8. <uv-icon
  9. name="server-fill"
  10. size="60rpx"
  11. color="#fff"
  12. ></uv-icon>
  13. </button>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. };
  21. },
  22. methods: {
  23. call(){
  24. uni.showModal({
  25. title: `确定呼叫客服吗?`,
  26. success : (r) => {
  27. if(r.confirm){
  28. uni.makePhoneCall({
  29. phoneNumber: this.configList.config_service_phone
  30. })
  31. }
  32. }
  33. })
  34. },
  35. // openCustomerService() {
  36. // uni.openCustomerServiceChat({
  37. // //企业微信的企业id
  38. // corpId: 'wwccd9a21f09fed62d',
  39. // extInfo: {
  40. // //客服链接
  41. // url: 'https://work.weixin.qq.com/kfid/kfc09f128696578f66d'
  42. // },
  43. // success: (e) => {
  44. // console.log('e', e)
  45. // },
  46. // fail: (err) => {
  47. // console.log('err', err)
  48. // }
  49. // })
  50. // }
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. .float-button {
  56. position: fixed;
  57. bottom: 40vh;
  58. /* 距离底部的距离 */
  59. right: 20px;
  60. /* 距离右侧的距离 */
  61. width: 52px;
  62. /* 按钮的宽度 */
  63. height: 52px;
  64. z-index: 9999;
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. /* 按钮的高度 */
  69. /* 其他样式 */
  70. .kf-btn {
  71. background-color: $uni-color;
  72. box-shadow: 0 0 10rpx 10rpx rgba($uni-color, 0.3);
  73. height: 52px;
  74. width: 52px;
  75. border-radius: 50%;
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. }
  80. }
  81. </style>