footer-copyright.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view>
  3. <view class="copy">
  4. <view class="copy-logo ddflex">
  5. <image :src="picUrlss+'lvluo/bot_logo.png'"></image>·{{content?content:'诊所私域专家'}}
  6. </view>
  7. <view class="copy-open" @click="toZhiqiyun()">我要开通</view>
  8. </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. picUrlss: req.public.picUrls,
  18. copyrighttitle: req.public.copyrighttitle,
  19. //头部页面背景链接
  20. copyrighttel: req.public.copyrighttel,
  21. copyrightlogo: req.public.copyrightlogo
  22. };
  23. },
  24. components: {},
  25. props: {
  26. hidden: {
  27. type: Boolean
  28. },
  29. content:{
  30. type: String
  31. },
  32. },
  33. methods: {
  34. phone() {
  35. uni.makePhoneCall({
  36. phoneNumber: req.public.copyrighttel
  37. });
  38. },
  39. jumpUrl(url) {
  40. uni.navigateTo({
  41. url: url
  42. })
  43. },
  44. toZhiqiyun() {
  45. // #ifdef MP-WEIXIN
  46. uni.navigateToMiniProgram({
  47. appId: 'wx5373f8753a5463ea',
  48. path: 'pages/index/index',
  49. envVersion: req.env.NODE_ENV == 'prd' ? 'release' : 'trial'
  50. });
  51. // #endif
  52. // #ifdef H5
  53. req.postRequestKDX('/api/v3/getAppletUrl', {
  54. path: 'pages/index/index',
  55. query: '',
  56. envVersion: req.env.NODE_ENV == 'prd' ? 'release' : 'trial',
  57. sysParameterVos: []
  58. }, json => {
  59. console.log('打开小程序》》》》', json);
  60. //跳入打开小程序
  61. window.location.href = json;
  62. }, true);
  63. // #endif
  64. }
  65. }
  66. };
  67. </script>
  68. <style>
  69. @import "./footer-copyright.css";
  70. </style>