statistics.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <!-- 头部信息Start -->
  6. <view class="headers " :style="headerStyle">
  7. <view class="dis a-c j-c">
  8. <text>统计</text>
  9. <view class="headers-right">
  10. <image @click="weChatService" src="/static/image/my/kefu.png" mode="">
  11. </image>
  12. <text>客服</text>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. supportStaffUrl:'',
  23. headerStyle: {
  24. backgroundColor: 'transparent',
  25. backgroundImage: 'url("/static/beijing (2).png")',
  26. backgroundSize: 'cover',
  27. backgroundPosition: '',
  28. boxShadow: ''
  29. // 其他样式属性...
  30. },
  31. }
  32. },
  33. mounted() {
  34. this.$http.get('/sys/qy/wechat/find/picture').then(res => {
  35. this.supportStaffUrl = res.data.supportStaffUrl
  36. })
  37. },
  38. methods: {
  39. //点击跳转企业微信客服
  40. weChatService() {
  41. uni.share({
  42. provider: "weixin",
  43. openCustomerServiceChat: true,
  44. customerUrl: this.supportStaffUrl, //企业微信地址
  45. corpid: 'wwfe67d19509d43ec5', //企业id
  46. success: (res) => {},
  47. fail: (err) => {}
  48. });
  49. },
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .headers {
  55. position: fixed;
  56. top: 0;
  57. left: 0;
  58. height: auto;
  59. width: 100%;
  60. z-index: 999999;
  61. padding: 16px;
  62. padding-top: 40px;
  63. text {
  64. font-size: 18px;
  65. font-weight: 700;
  66. color: #333333;
  67. }
  68. }
  69. .headers-right{
  70. position: absolute;
  71. right: 15px;
  72. display: flex;
  73. align-items: center;
  74. text {
  75. font-size: 13px;
  76. color: #666666;
  77. }
  78. image {
  79. // right: 0;
  80. width: 15px;
  81. height: 15px;
  82. margin-right: 5px;
  83. }
  84. }
  85. </style>