customer-service.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <view class="iframe-content">
  3. <headContent statusBarBg="#191A2E" bgColor="#191A2E">
  4. <template #left>
  5. <reverse-back iconColor="#fff" />
  6. </template>
  7. <template #content>
  8. <view class="haed-title">
  9. 在线客服
  10. </view>
  11. </template>
  12. <template #right>
  13. <closeIocn iconColor="#fff" />
  14. </template>
  15. </headContent>
  16. <view class="iframe-box">
  17. <iframe :src="kefu_url" frameborder="0"></iframe>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import {
  23. Way_getSetting
  24. } from "@/utils/common-request.js"
  25. export default {
  26. name: 'customer-service',
  27. data() {
  28. return {
  29. kefu_url: ''
  30. };
  31. },
  32. onLoad() {
  33. this.kefu_url = this.$getStorageSync('kefu_url') || ''
  34. //
  35. if (!this.kefu_url) {
  36. Way_getSetting().then(res => {
  37. this.kefu_url = res.kefu_url
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .haed-title {
  45. color: #fff !important;
  46. }
  47. .iframe-content {
  48. width: 100%;
  49. height: 100vh;
  50. display: flex;
  51. flex-direction: column;
  52. .iframe-box {
  53. flex: 1;
  54. iframe {
  55. width: 100%;
  56. height: 100%;
  57. }
  58. }
  59. }
  60. </style>