footer-copyright.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <!--components/footer-logo/footer-logo.wxml-->
  3. <view class="conts" :hidden="hidden" @tap="copyrightlogo == 'zhiqiyun' ? toZhiqiyun() : ''">
  4. <!-- <view class="logos">
  5. <image :src="'/static/pages/images/' + copyrightlogo + '.png'" class="image"></image>
  6. </view> -->
  7. <view class="phone">- 智企云 技术支持 -</view>
  8. <!-- <view class="phone">提供技术支持 服务电话:<view bindtap="phone">{{copyrighttel}}</view></view> -->
  9. </view>
  10. </template>
  11. <script>
  12. // components/footer-logo/footer-logo.js
  13. const req = require("../../utils/request");
  14. export default {
  15. data() {
  16. return {
  17. copyrighttitle: req.public.copyrighttitle,
  18. //头部页面背景链接
  19. copyrighttel: req.public.copyrighttel,
  20. copyrightlogo: req.public.copyrightlogo
  21. };
  22. },
  23. components: {},
  24. props: {
  25. hidden: {
  26. type: Boolean
  27. }
  28. },
  29. methods: {
  30. phone() {
  31. uni.makePhoneCall({
  32. phoneNumber: req.public.copyrighttel
  33. });
  34. },
  35. toZhiqiyun() {
  36. uni.navigateToMiniProgram({
  37. appId: 'wx0ecc71add476037a',
  38. path: 'pages/index/index',
  39. envVersion: req.env.NODE_ENV == 'product' ? 'release' : 'trial'
  40. });
  41. }
  42. }
  43. };
  44. </script>
  45. <style>
  46. @import "./footer-copyright.css";
  47. </style>